diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-a-M9FDA2.js b/assets/index-a-M9FDA2.js new file mode 100644 index 0000000..79e55d6 --- /dev/null +++ b/assets/index-a-M9FDA2.js @@ -0,0 +1,3993 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function T_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bp={exports:{}},pl={},Dp={exports:{}},Be={};/** + * @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 bs=Symbol.for("react.element"),w_=Symbol.for("react.portal"),A_=Symbol.for("react.fragment"),R_=Symbol.for("react.strict_mode"),C_=Symbol.for("react.profiler"),P_=Symbol.for("react.provider"),L_=Symbol.for("react.context"),b_=Symbol.for("react.forward_ref"),D_=Symbol.for("react.suspense"),I_=Symbol.for("react.memo"),N_=Symbol.for("react.lazy"),Kf=Symbol.iterator;function U_(t){return t===null||typeof t!="object"?null:(t=Kf&&t[Kf]||t["@@iterator"],typeof t=="function"?t:null)}var Ip={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Np=Object.assign,Up={};function Co(t,e,n){this.props=t,this.context=e,this.refs=Up,this.updater=n||Ip}Co.prototype.isReactComponent={};Co.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")};Co.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Op(){}Op.prototype=Co.prototype;function Gc(t,e,n){this.props=t,this.context=e,this.refs=Up,this.updater=n||Ip}var Wc=Gc.prototype=new Op;Wc.constructor=Gc;Np(Wc,Co.prototype);Wc.isPureReactComponent=!0;var Zf=Array.isArray,Fp=Object.prototype.hasOwnProperty,Xc={current:null},kp={key:!0,ref:!0,__self:!0,__source:!0};function zp(t,e,n){var i,r={},o=null,s=null;if(e!=null)for(i in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)Fp.call(e,i)&&!kp.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,me=L[se];if(0>>1;ser(ne,X))fer(oe,ne)?(L[se]=oe,L[fe]=X,se=fe):(L[se]=ne,L[G]=X,se=G);else if(fer(oe,X))L[se]=oe,L[fe]=X,se=fe;else break e}}return W}function r(L,W){var X=L.sortIndex-W.sortIndex;return X!==0?X:L.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,h=null,d=3,m=!1,v=!1,y=!1,p=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(L){for(var W=n(u);W!==null;){if(W.callback===null)i(u);else if(W.startTime<=L)i(u),W.sortIndex=W.expirationTime,e(l,W);else break;W=n(u)}}function E(L){if(y=!1,_(L),!v)if(n(l)!==null)v=!0,J(P);else{var W=n(u);W!==null&&te(E,W.startTime-L)}}function P(L,W){v=!1,y&&(y=!1,c(b),b=-1),m=!0;var X=d;try{for(_(W),h=n(l);h!==null&&(!(h.expirationTime>W)||L&&!O());){var se=h.callback;if(typeof se=="function"){h.callback=null,d=h.priorityLevel;var me=se(h.expirationTime<=W);W=t.unstable_now(),typeof me=="function"?h.callback=me:h===n(l)&&i(l),_(W)}else i(l);h=n(l)}if(h!==null)var Ge=!0;else{var G=n(u);G!==null&&te(E,G.startTime-W),Ge=!1}return Ge}finally{h=null,d=X,m=!1}}var R=!1,A=null,b=-1,w=5,S=-1;function O(){return!(t.unstable_now()-SL||125se?(L.sortIndex=X,e(u,L),n(l)===null&&L===n(u)&&(y?(c(b),b=-1):y=!0,te(E,X-se))):(L.sortIndex=me,e(l,L),v||m||(v=!0,J(P))),L},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(L){var W=d;return function(){var X=d;d=W;try{return L.apply(this,arguments)}finally{d=X}}}})(Xp);Wp.exports=Xp;var j_=Wp.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 Y_=ut,ln=j_;function ee(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"),Wu=Object.prototype.hasOwnProperty,q_=/^[: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]*$/,Jf={},ed={};function $_(t){return Wu.call(ed,t)?!0:Wu.call(Jf,t)?!1:q_.test(t)?ed[t]=!0:(Jf[t]=!0,!1)}function K_(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 Z_(t,e,n,i){if(e===null||typeof e>"u"||K_(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 Yt(t,e,n,i,r,o,s){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=o,this.removeEmptyString=s}var bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){bt[t]=new Yt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];bt[e]=new Yt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){bt[t]=new Yt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){bt[t]=new Yt(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){bt[t]=new Yt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){bt[t]=new Yt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){bt[t]=new Yt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){bt[t]=new Yt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){bt[t]=new Yt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Yc=/[\-:]([a-z])/g;function qc(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(Yc,qc);bt[e]=new Yt(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(Yc,qc);bt[e]=new Yt(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(Yc,qc);bt[e]=new Yt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){bt[t]=new Yt(t,1,!1,t.toLowerCase(),null,!1,!1)});bt.xlinkHref=new Yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){bt[t]=new Yt(t,1,!1,t.toLowerCase(),null,!0,!0)});function $c(t,e,n,i){var r=bt.hasOwnProperty(e)?bt[e]:null;(r!==null?r.type!==0:i||!(2a||r[s]!==o[a]){var l=` +`+r[s].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?qo(t):""}function Q_(t){switch(t.tag){case 5:return qo(t.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return t=Vl(t.type,!1),t;case 11:return t=Vl(t.type.render,!1),t;case 1:return t=Vl(t.type,!0),t;default:return""}}function qu(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 $r:return"Fragment";case qr:return"Portal";case Xu:return"Profiler";case Kc:return"StrictMode";case ju:return"Suspense";case Yu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case qp:return(t.displayName||"Context")+".Consumer";case Yp:return(t._context.displayName||"Context")+".Provider";case Zc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Qc:return e=t.displayName||null,e!==null?e:qu(t.type)||"Memo";case Ti:e=t._payload,t=t._init;try{return qu(t(e))}catch{}}return null}function J_(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 qu(e);case 8:return e===Kc?"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 Gi(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Kp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ev(t){var e=Kp(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,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hs(t){t._valueTracker||(t._valueTracker=ev(t))}function Zp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Kp(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function ka(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 $u(t,e){var n=e.checked;return dt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function nd(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Gi(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 Qp(t,e){e=e.checked,e!=null&&$c(t,"checked",e,!1)}function Ku(t,e){Qp(t,e);var n=Gi(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")?Zu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Zu(t,e.type,Gi(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function id(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 Zu(t,e,n){(e!=="number"||ka(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var $o=Array.isArray;function ao(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=Vs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ds(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var es={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},tv=["Webkit","ms","Moz","O"];Object.keys(es).forEach(function(t){tv.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),es[e]=es[t]})});function nm(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||es.hasOwnProperty(t)&&es[t]?(""+e).trim():e+"px"}function im(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=nm(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var nv=dt({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 ec(t,e){if(e){if(nv[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ee(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ee(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ee(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ee(62))}}function tc(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 nc=null;function Jc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ic=null,lo=null,uo=null;function sd(t){if(t=Ns(t)){if(typeof ic!="function")throw Error(ee(280));var e=t.stateNode;e&&(e=xl(e),ic(t.stateNode,t.type,e))}}function rm(t){lo?uo?uo.push(t):uo=[t]:lo=t}function om(){if(lo){var t=lo,e=uo;if(uo=lo=null,sd(t),e)for(t=0;t>>=0,t===0?32:31-(hv(t)/pv|0)|0}var Gs=64,Ws=4194304;function Ko(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 Va(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=Ko(a):(o&=s,o!==0&&(i=Ko(o)))}else s=n&~r,s!==0?i=Ko(s):o!==0&&(i=Ko(o));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,o=e&-e,r>=o||r===16&&(o&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 Ds(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-bn(e),t[e]=n}function vv(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=ns),md=" ",gd=!1;function wm(t,e){switch(t){case"keyup":return jv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Am(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Kr=!1;function qv(t,e){switch(t){case"compositionend":return Am(e);case"keypress":return e.which!==32?null:(gd=!0,md);case"textInput":return t=e.data,t===md&&gd?null:t;default:return null}}function $v(t,e){if(Kr)return t==="compositionend"||!lf&&wm(t,e)?(t=Em(),Ca=of=Li=null,Kr=!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=yd(n)}}function Lm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Lm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bm(){for(var t=window,e=ka();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ka(t.document)}return e}function uf(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 r0(t){var e=bm(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Lm(n.ownerDocument.documentElement,n)){if(i!==null&&uf(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,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!t.extend&&o>i&&(r=i,i=o,o=r),r=Sd(n,o);var s=Sd(n,i);r&&s&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>i?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.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,Zr=null,uc=null,rs=null,cc=!1;function Md(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Zr==null||Zr!==ka(i)||(i=Zr,"selectionStart"in i&&uf(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}),rs&&vs(rs,i)||(rs=i,i=Xa(uc,"onSelect"),0eo||(t.current=gc[eo],gc[eo]=null,eo--)}function et(t,e){eo++,gc[eo]=t.current,t.current=e}var Wi={},Bt=$i(Wi),Kt=$i(!1),_r=Wi;function vo(t,e){var n=t.type.contextTypes;if(!n)return Wi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Zt(t){return t=t.childContextTypes,t!=null}function Ya(){rt(Kt),rt(Bt)}function Pd(t,e,n){if(Bt.current!==Wi)throw Error(ee(168));et(Bt,e),et(Kt,n)}function Bm(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(ee(108,J_(t)||"Unknown",r));return dt({},n,i)}function qa(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Wi,_r=Bt.current,et(Bt,t),et(Kt,Kt.current),!0}function Ld(t,e,n){var i=t.stateNode;if(!i)throw Error(ee(169));n?(t=Bm(t,e,_r),i.__reactInternalMemoizedMergedChildContext=t,rt(Kt),rt(Bt),et(Bt,t)):rt(Kt),et(Kt,n)}var ei=null,yl=!1,nu=!1;function Hm(t){ei===null?ei=[t]:ei.push(t)}function g0(t){yl=!0,Hm(t)}function Ki(){if(!nu&&ei!==null){nu=!0;var t=0,e=qe;try{var n=ei;for(qe=1;t>=s,r-=s,ni=1<<32-bn(e)+r|n<b?(w=A,A=null):w=A.sibling;var S=d(c,A,_[b],E);if(S===null){A===null&&(A=w);break}t&&A&&S.alternate===null&&e(c,A),g=o(S,g,b),R===null?P=S:R.sibling=S,R=S,A=w}if(b===_.length)return n(c,A),at&&or(c,b),P;if(A===null){for(;b<_.length;b++)A=h(c,_[b],E),A!==null&&(g=o(A,g,b),R===null?P=A:R.sibling=A,R=A);return at&&or(c,b),P}for(A=i(c,A);b<_.length;b++)w=m(A,c,b,_[b],E),w!==null&&(t&&w.alternate!==null&&A.delete(w.key===null?b:w.key),g=o(w,g,b),R===null?P=w:R.sibling=w,R=w);return t&&A.forEach(function(O){return e(c,O)}),at&&or(c,b),P}function y(c,g,_,E){var P=Oo(_);if(typeof P!="function")throw Error(ee(150));if(_=P.call(_),_==null)throw Error(ee(151));for(var R=P=null,A=g,b=g=0,w=null,S=_.next();A!==null&&!S.done;b++,S=_.next()){A.index>b?(w=A,A=null):w=A.sibling;var O=d(c,A,S.value,E);if(O===null){A===null&&(A=w);break}t&&A&&O.alternate===null&&e(c,A),g=o(O,g,b),R===null?P=O:R.sibling=O,R=O,A=w}if(S.done)return n(c,A),at&&or(c,b),P;if(A===null){for(;!S.done;b++,S=_.next())S=h(c,S.value,E),S!==null&&(g=o(S,g,b),R===null?P=S:R.sibling=S,R=S);return at&&or(c,b),P}for(A=i(c,A);!S.done;b++,S=_.next())S=m(A,c,b,S.value,E),S!==null&&(t&&S.alternate!==null&&A.delete(S.key===null?b:S.key),g=o(S,g,b),R===null?P=S:R.sibling=S,R=S);return t&&A.forEach(function(j){return e(c,j)}),at&&or(c,b),P}function p(c,g,_,E){if(typeof _=="object"&&_!==null&&_.type===$r&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Bs:e:{for(var P=_.key,R=g;R!==null;){if(R.key===P){if(P=_.type,P===$r){if(R.tag===7){n(c,R.sibling),g=r(R,_.props.children),g.return=c,c=g;break e}}else if(R.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ti&&Id(P)===R.type){n(c,R.sibling),g=r(R,_.props),g.ref=Ho(c,R,_),g.return=c,c=g;break e}n(c,R);break}else e(c,R);R=R.sibling}_.type===$r?(g=gr(_.props.children,c.mode,E,_.key),g.return=c,c=g):(E=Oa(_.type,_.key,_.props,null,c.mode,E),E.ref=Ho(c,g,_),E.return=c,c=E)}return s(c);case qr:e:{for(R=_.key;g!==null;){if(g.key===R)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){n(c,g.sibling),g=r(g,_.children||[]),g.return=c,c=g;break e}else{n(c,g);break}else e(c,g);g=g.sibling}g=cu(_,c.mode,E),g.return=c,c=g}return s(c);case Ti:return R=_._init,p(c,g,R(_._payload),E)}if($o(_))return v(c,g,_,E);if(Oo(_))return y(c,g,_,E);Zs(c,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(n(c,g.sibling),g=r(g,_),g.return=c,c=g):(n(c,g),g=uu(_,c.mode,E),g.return=c,c=g),s(c)):n(c,g)}return p}var yo=Xm(!0),jm=Xm(!1),Za=$i(null),Qa=null,io=null,hf=null;function pf(){hf=io=Qa=null}function mf(t){var e=Za.current;rt(Za),t._currentValue=e}function xc(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 fo(t,e){Qa=t,hf=io=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&($t=!0),t.firstContext=null)}function yn(t){var e=t._currentValue;if(hf!==t)if(t={context:t,memoizedValue:e,next:null},io===null){if(Qa===null)throw Error(ee(308));io=t,Qa.dependencies={lanes:0,firstContext:t}}else io=io.next=t;return e}var fr=null;function gf(t){fr===null?fr=[t]:fr.push(t)}function Ym(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,gf(e)):(n.next=r.next,r.next=n),e.interleaved=n,li(t,i)}function li(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 wi=!1;function _f(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qm(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 oi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fi(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,We&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,li(t,n)}return r=i.interleaved,r===null?(e.next=e,gf(i)):(e.next=r.next,r.next=e),i.interleaved=e,li(t,n)}function La(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,tf(t,n)}}function Nd(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,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 Ja(t,e,n,i){var r=t.updateQueue;wi=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var f=t.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(o!==null){var h=r.baseState;s=0,f=u=l=null,a=o;do{var d=a.lane,m=a.eventTime;if((i&d)===d){f!==null&&(f=f.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=t,y=a;switch(d=e,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(m,h,d);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,d=typeof v=="function"?v.call(m,h,d):v,d==null)break e;h=dt({},h,d);break e;case 2:wi=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=r.effects,d===null?r.effects=[a]:d.push(a))}else m={eventTime:m,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=m,l=h):f=f.next=m,s|=d;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;d=a,a=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(f===null&&(l=h),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=f,e=r.shared.interleaved,e!==null){r=e;do s|=r.lane,r=r.next;while(r!==e)}else o===null&&(r.shared.lanes=0);yr|=s,t.lanes=s,t.memoizedState=h}}function Ud(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=ru.transition;ru.transition={};try{t(!1),e()}finally{qe=n,ru.transition=i}}function fg(){return Sn().memoizedState}function y0(t,e,n){var i=zi(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},dg(t))hg(e,n);else if(n=Ym(t,e,n,i),n!==null){var r=Wt();Dn(n,t,i,r),pg(n,e,i)}}function S0(t,e,n){var i=zi(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(dg(t))hg(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,Nn(a,s)){var l=e.interleaved;l===null?(r.next=r,gf(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=Ym(t,e,r,i),n!==null&&(r=Wt(),Dn(n,t,i,r),pg(n,e,i))}}function dg(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function hg(t,e){os=tl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function pg(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,tf(t,n)}}var nl={readContext:yn,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useInsertionEffect:Nt,useLayoutEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useMutableSource:Nt,useSyncExternalStore:Nt,useId:Nt,unstable_isNewReconciler:!1},M0={readContext:yn,useCallback:function(t,e){return On().memoizedState=[t,e===void 0?null:e],t},useContext:yn,useEffect:Fd,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Da(4194308,4,sg.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Da(4194308,4,t,e)},useInsertionEffect:function(t,e){return Da(4,2,t,e)},useMemo:function(t,e){var n=On();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=On();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=y0.bind(null,ft,t),[i.memoizedState,t]},useRef:function(t){var e=On();return t={current:t},e.memoizedState=t},useState:Od,useDebugValue:wf,useDeferredValue:function(t){return On().memoizedState=t},useTransition:function(){var t=Od(!1),e=t[0];return t=x0.bind(null,t[1]),On().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=ft,r=On();if(at){if(n===void 0)throw Error(ee(407));n=n()}else{if(n=e(),Rt===null)throw Error(ee(349));xr&30||Qm(i,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Fd(eg.bind(null,i,o,t),[t]),i.flags|=2048,As(9,Jm.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=On(),e=Rt.identifierPrefix;if(at){var n=ii,i=ni;n=(i&~(1<<32-bn(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ts++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=s.createElement(n,{is:i.is}):(t=s.createElement(n),n==="select"&&(s=t,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):t=s.createElementNS(t,n),t[zn]=e,t[Ss]=i,Tg(t,e,!1,!1),e.stateNode=t;e:{switch(s=tc(n,i),n){case"dialog":nt("cancel",t),nt("close",t),r=i;break;case"iframe":case"object":case"embed":nt("load",t),r=i;break;case"video":case"audio":for(r=0;rEo&&(e.flags|=128,i=!0,Vo(o,!1),e.lanes=4194304)}else{if(!i)if(t=el(s),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Vo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!at)return Ut(e),null}else 2*pt()-o.renderingStartTime>Eo&&n!==1073741824&&(e.flags|=128,i=!0,Vo(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=pt(),e.sibling=null,n=ct.current,et(ct,i?n&1|2:n&1),e):(Ut(e),null);case 22:case 23:return bf(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?rn&1073741824&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),null;case 24:return null;case 25:return null}throw Error(ee(156,e.tag))}function L0(t,e){switch(ff(e),e.tag){case 1:return Zt(e.type)&&Ya(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return So(),rt(Kt),rt(Bt),yf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return xf(e),null;case 13:if(rt(ct),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ee(340));xo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return rt(ct),null;case 4:return So(),null;case 10:return mf(e.type._context),null;case 22:case 23:return bf(),null;case 24:return null;default:return null}}var Js=!1,kt=!1,b0=typeof WeakSet=="function"?WeakSet:Set,de=null;function ro(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ht(t,e,i)}else n.current=null}function Cc(t,e,n){try{n()}catch(i){ht(t,e,i)}}var qd=!1;function D0(t,e){if(fc=Ga,t=bm(),uf(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,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,f=0,h=t,d=null;t:for(;;){for(var m;h!==n||r!==0&&h.nodeType!==3||(a=s+r),h!==o||i!==0&&h.nodeType!==3||(l=s+i),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)d=h,h=m;for(;;){if(h===t)break t;if(d===n&&++u===r&&(a=s),d===o&&++f===i&&(l=s),(m=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:t,selectionRange:n},Ga=!1,de=e;de!==null;)if(e=de,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,de=t;else for(;de!==null;){e=de;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,p=v.memoizedState,c=e.stateNode,g=c.getSnapshotBeforeUpdate(e.elementType===e.type?y:An(e.type,y),p);c.__reactInternalSnapshotBeforeUpdate=g}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(ee(163))}}catch(E){ht(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return v=qd,qd=!1,v}function ss(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 o=r.destroy;r.destroy=void 0,o!==void 0&&Cc(e,n,o)}r=r.next}while(r!==i)}}function El(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 Pc(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 Rg(t){var e=t.alternate;e!==null&&(t.alternate=null,Rg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[zn],delete e[Ss],delete e[mc],delete e[p0],delete e[m0])),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 Cg(t){return t.tag===5||t.tag===3||t.tag===4}function $d(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Cg(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 Lc(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=ja));else if(i!==4&&(t=t.child,t!==null))for(Lc(t,e,n),t=t.sibling;t!==null;)Lc(t,e,n),t=t.sibling}function bc(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(bc(t,e,n),t=t.sibling;t!==null;)bc(t,e,n),t=t.sibling}var Ct=null,Rn=!1;function _i(t,e,n){for(n=n.child;n!==null;)Pg(t,e,n),n=n.sibling}function Pg(t,e,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(ml,n)}catch{}switch(n.tag){case 5:kt||ro(n,e);case 6:var i=Ct,r=Rn;Ct=null,_i(t,e,n),Ct=i,Rn=r,Ct!==null&&(Rn?(t=Ct,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ct.removeChild(n.stateNode));break;case 18:Ct!==null&&(Rn?(t=Ct,n=n.stateNode,t.nodeType===8?tu(t.parentNode,n):t.nodeType===1&&tu(t,n),gs(t)):tu(Ct,n.stateNode));break;case 4:i=Ct,r=Rn,Ct=n.stateNode.containerInfo,Rn=!0,_i(t,e,n),Ct=i,Rn=r;break;case 0:case 11:case 14:case 15:if(!kt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Cc(n,e,s),r=r.next}while(r!==i)}_i(t,e,n);break;case 1:if(!kt&&(ro(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ht(n,e,a)}_i(t,e,n);break;case 21:_i(t,e,n);break;case 22:n.mode&1?(kt=(i=kt)||n.memoizedState!==null,_i(t,e,n),kt=i):_i(t,e,n);break;default:_i(t,e,n)}}function Kd(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new b0),e.forEach(function(i){var r=H0.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Mn(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=pt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*N0(i/1960))-i,10t?16:t,bi===null)var i=!1;else{if(t=bi,bi=null,ol=0,We&6)throw Error(ee(331));var r=We;for(We|=4,de=t.current;de!==null;){var o=de,s=o.child;if(de.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lpt()-Pf?mr(t,0):Cf|=n),Qt(t,e)}function Fg(t,e){e===0&&(t.mode&1?(e=Ws,Ws<<=1,!(Ws&130023424)&&(Ws=4194304)):e=1);var n=Wt();t=li(t,e),t!==null&&(Ds(t,e,n),Qt(t,n))}function B0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Fg(t,n)}function H0(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(ee(314))}i!==null&&i.delete(e),Fg(t,n)}var kg;kg=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Kt.current)$t=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return $t=!1,C0(t,e,n);$t=!!(t.flags&131072)}else $t=!1,at&&e.flags&1048576&&Vm(e,Ka,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Ia(t,e),t=e.pendingProps;var r=vo(e,Bt.current);fo(e,n),r=Mf(null,e,i,t,r,n);var o=Ef();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,Zt(i)?(o=!0,qa(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,_f(e),r.updater=Ml,e.stateNode=r,r._reactInternals=e,Sc(e,i,t,n),e=Tc(null,e,i,!0,o,n)):(e.tag=0,at&&o&&cf(e),Gt(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Ia(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=G0(i),t=An(i,t),r){case 0:e=Ec(null,e,i,t,n);break e;case 1:e=Xd(null,e,i,t,n);break e;case 11:e=Gd(null,e,i,t,n);break e;case 14:e=Wd(null,e,i,An(i.type,t),n);break e}throw Error(ee(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:An(i,r),Ec(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:An(i,r),Xd(t,e,i,r,n);case 3:e:{if(Sg(e),t===null)throw Error(ee(387));i=e.pendingProps,o=e.memoizedState,r=o.element,qm(t,e),Ja(e,i,null,n);var s=e.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Mo(Error(ee(423)),e),e=jd(t,e,i,n,r);break e}else if(i!==r){r=Mo(Error(ee(424)),e),e=jd(t,e,i,n,r);break e}else for(on=Oi(e.stateNode.containerInfo.firstChild),sn=e,at=!0,Cn=null,n=jm(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),i===r){e=ui(t,e,n);break e}Gt(t,e,i,n)}e=e.child}return e;case 5:return $m(e),t===null&&vc(e),i=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,s=r.children,hc(i,r)?s=null:o!==null&&hc(i,o)&&(e.flags|=32),yg(t,e),Gt(t,e,s,n),e.child;case 6:return t===null&&vc(e),null;case 13:return Mg(t,e,n);case 4:return vf(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=yo(e,null,i,n):Gt(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:An(i,r),Gd(t,e,i,r,n);case 7:return Gt(t,e,e.pendingProps,n),e.child;case 8:return Gt(t,e,e.pendingProps.children,n),e.child;case 12:return Gt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,o=e.memoizedProps,s=r.value,et(Za,i._currentValue),i._currentValue=s,o!==null)if(Nn(o.value,s)){if(o.children===r.children&&!Kt.current){e=ui(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=oi(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),xc(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(ee(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),xc(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Gt(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,fo(e,n),r=yn(r),i=i(r),e.flags|=1,Gt(t,e,i,n),e.child;case 14:return i=e.type,r=An(i,e.pendingProps),r=An(i.type,r),Wd(t,e,i,r,n);case 15:return vg(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:An(i,r),Ia(t,e),e.tag=1,Zt(i)?(t=!0,qa(e)):t=!1,fo(e,n),mg(e,i,r),Sc(e,i,r,n),Tc(null,e,i,!0,t,n);case 19:return Eg(t,e,n);case 22:return xg(t,e,n)}throw Error(ee(156,e.tag))};function zg(t,e){return dm(t,e)}function V0(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 _n(t,e,n,i){return new V0(t,e,n,i)}function If(t){return t=t.prototype,!(!t||!t.isReactComponent)}function G0(t){if(typeof t=="function")return If(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Zc)return 11;if(t===Qc)return 14}return 2}function Bi(t,e){var n=t.alternate;return n===null?(n=_n(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 Oa(t,e,n,i,r,o){var s=2;if(i=t,typeof t=="function")If(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case $r:return gr(n.children,r,o,e);case Kc:s=8,r|=8;break;case Xu:return t=_n(12,n,e,r|2),t.elementType=Xu,t.lanes=o,t;case ju:return t=_n(13,n,e,r),t.elementType=ju,t.lanes=o,t;case Yu:return t=_n(19,n,e,r),t.elementType=Yu,t.lanes=o,t;case $p:return wl(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Yp:s=10;break e;case qp:s=9;break e;case Zc:s=11;break e;case Qc:s=14;break e;case Ti:s=16,i=null;break e}throw Error(ee(130,t==null?t:typeof t,""))}return e=_n(s,n,e,r),e.elementType=t,e.type=i,e.lanes=o,e}function gr(t,e,n,i){return t=_n(7,t,i,e),t.lanes=n,t}function wl(t,e,n,i){return t=_n(22,t,i,e),t.elementType=$p,t.lanes=n,t.stateNode={isHidden:!1},t}function uu(t,e,n){return t=_n(6,t,null,e),t.lanes=n,t}function cu(t,e,n){return e=_n(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function W0(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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Nf(t,e,n,i,r,o,s,a,l){return t=new W0(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=_n(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_f(o),t}function X0(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gg)}catch(t){console.error(t)}}Gg(),Gp.exports=un;var K0=Gp.exports,rh=K0;Gu.createRoot=rh.createRoot,Gu.hydrateRoot=rh.hydrateRoot;/** + * @license + * Copyright 2010-2024 Three.js Authors + * SPDX-License-Identifier: MIT + */const kf="164",Cr={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Pr={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Z0=0,oh=1,Q0=2,Wg=1,J0=2,Qn=3,Xi=0,Jt=1,ti=2,Hi=0,po=1,sh=2,ah=3,lh=4,ex=5,lr=100,tx=101,nx=102,ix=103,rx=104,ox=200,sx=201,ax=202,lx=203,Oc=204,Fc=205,ux=206,cx=207,fx=208,dx=209,hx=210,px=211,mx=212,gx=213,_x=214,vx=0,xx=1,yx=2,ll=3,Sx=4,Mx=5,Ex=6,Tx=7,Xg=0,wx=1,Ax=2,Vi=0,Rx=1,Cx=2,Px=3,Lx=4,bx=5,Dx=6,Ix=7,jg=300,To=301,wo=302,kc=303,zc=304,Ll=306,Bc=1e3,hr=1001,Hc=1002,vn=1003,Nx=1004,na=1005,Pn=1006,fu=1007,pr=1008,ji=1009,Ux=1010,Ox=1011,Yg=1012,qg=1013,Ao=1014,Di=1015,bl=1016,$g=1017,Kg=1018,Os=1020,Fx=35902,kx=1021,zx=1022,Hn=1023,Bx=1024,Hx=1025,mo=1026,Cs=1027,Vx=1028,Zg=1029,Gx=1030,Qg=1031,Jg=1033,du=33776,hu=33777,pu=33778,mu=33779,uh=35840,ch=35841,fh=35842,dh=35843,hh=36196,ph=37492,mh=37496,gh=37808,_h=37809,vh=37810,xh=37811,yh=37812,Sh=37813,Mh=37814,Eh=37815,Th=37816,wh=37817,Ah=37818,Rh=37819,Ch=37820,Ph=37821,gu=36492,Lh=36494,bh=36495,Wx=36283,Dh=36284,Ih=36285,Nh=36286,Xx=3200,jx=3201,Yx=0,qx=1,Pi="",Fn="srgb",Zi="srgb-linear",zf="display-p3",Dl="display-p3-linear",ul="linear",it="srgb",cl="rec709",fl="p3",Lr=7680,Uh=519,$x=512,Kx=513,Zx=514,e_=515,Qx=516,Jx=517,ey=518,ty=519,Oh=35044,Fh="300 es",ri=2e3,dl=2001;class Ar{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(n)===-1&&i[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const r=i.slice(0);for(let o=0,s=r.length;o>8&255]+Ot[t>>16&255]+Ot[t>>24&255]+"-"+Ot[e&255]+Ot[e>>8&255]+"-"+Ot[e>>16&15|64]+Ot[e>>24&255]+"-"+Ot[n&63|128]+Ot[n>>8&255]+"-"+Ot[n>>16&255]+Ot[n>>24&255]+Ot[i&255]+Ot[i>>8&255]+Ot[i>>16&255]+Ot[i>>24&255]).toLowerCase()}function zt(t,e,n){return Math.max(e,Math.min(n,t))}function Bf(t,e){return(t%e+e)%e}function ny(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)}function iy(t,e,n){return t!==e?(n-t)/(e-t):0}function cs(t,e,n){return(1-n)*t+n*e}function ry(t,e,n,i){return cs(t,e,1-Math.exp(-n*i))}function oy(t,e=1){return e-Math.abs(Bf(t,e*2)-e)}function sy(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function ay(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function ly(t,e){return t+Math.floor(Math.random()*(e-t+1))}function uy(t,e){return t+Math.random()*(e-t)}function cy(t){return t*(.5-Math.random())}function fy(t){t!==void 0&&(kh=t);let e=kh+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function dy(t){return t*us}function hy(t){return t*Ps}function py(t){return(t&t-1)===0&&t!==0}function my(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function gy(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function _y(t,e,n,i,r){const o=Math.cos,s=Math.sin,a=o(n/2),l=s(n/2),u=o((e+i)/2),f=s((e+i)/2),h=o((e-i)/2),d=s((e-i)/2),m=o((i-e)/2),v=s((i-e)/2);switch(r){case"XYX":t.set(a*f,l*h,l*d,a*u);break;case"YZY":t.set(l*d,a*f,l*h,a*u);break;case"ZXZ":t.set(l*h,l*d,a*f,a*u);break;case"XZX":t.set(a*f,l*v,l*m,a*u);break;case"YXY":t.set(l*m,a*f,l*v,a*u);break;case"ZYZ":t.set(l*v,l*m,a*f,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function Yr(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Ht(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const vy={DEG2RAD:us,RAD2DEG:Ps,generateUUID:bo,clamp:zt,euclideanModulo:Bf,mapLinear:ny,inverseLerp:iy,lerp:cs,damp:ry,pingpong:oy,smoothstep:sy,smootherstep:ay,randInt:ly,randFloat:uy,randFloatSpread:cy,seededRandom:fy,degToRad:dy,radToDeg:hy,isPowerOfTwo:py,ceilPowerOfTwo:my,floorPowerOfTwo:gy,setQuaternionFromProperEuler:_y,normalize:Ht,denormalize:Yr};class Ee{constructor(e=0,n=0){Ee.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,i=this.y,r=e.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(zt(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const i=Math.cos(n),r=Math.sin(n),o=this.x-e.x,s=this.y-e.y;return this.x=o*i-s*r+e.x,this.y=o*r+s*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ie{constructor(e,n,i,r,o,s,a,l,u){Ie.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,i,r,o,s,a,l,u)}set(e,n,i,r,o,s,a,l,u){const f=this.elements;return f[0]=e,f[1]=r,f[2]=a,f[3]=n,f[4]=o,f[5]=l,f[6]=i,f[7]=s,f[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(e,n,i){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,o=this.elements,s=i[0],a=i[3],l=i[6],u=i[1],f=i[4],h=i[7],d=i[2],m=i[5],v=i[8],y=r[0],p=r[3],c=r[6],g=r[1],_=r[4],E=r[7],P=r[2],R=r[5],A=r[8];return o[0]=s*y+a*g+l*P,o[3]=s*p+a*_+l*R,o[6]=s*c+a*E+l*A,o[1]=u*y+f*g+h*P,o[4]=u*p+f*_+h*R,o[7]=u*c+f*E+h*A,o[2]=d*y+m*g+v*P,o[5]=d*p+m*_+v*R,o[8]=d*c+m*E+v*A,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],f=e[8];return n*s*f-n*a*u-i*o*f+i*a*l+r*o*u-r*s*l}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],f=e[8],h=f*s-a*u,d=a*l-f*o,m=u*o-s*l,v=n*h+i*d+r*m;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/v;return e[0]=h*y,e[1]=(r*u-f*i)*y,e[2]=(a*i-r*s)*y,e[3]=d*y,e[4]=(f*n-r*l)*y,e[5]=(r*o-a*n)*y,e[6]=m*y,e[7]=(i*l-u*n)*y,e[8]=(s*n-i*o)*y,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,i,r,o,s,a){const l=Math.cos(o),u=Math.sin(o);return this.set(i*l,i*u,-i*(l*s+u*a)+s+e,-r*u,r*l,-r*(-u*s+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(_u.makeScale(e,n)),this}rotate(e){return this.premultiply(_u.makeRotation(-e)),this}translate(e,n){return this.premultiply(_u.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<9;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const _u=new Ie;function t_(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function Ls(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function xy(){const t=Ls("canvas");return t.style.display="block",t}const zh={};function yy(t){t in zh||(zh[t]=!0,console.warn(t))}const Bh=new Ie().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Hh=new Ie().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),ia={[Zi]:{transfer:ul,primaries:cl,toReference:t=>t,fromReference:t=>t},[Fn]:{transfer:it,primaries:cl,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[Dl]:{transfer:ul,primaries:fl,toReference:t=>t.applyMatrix3(Hh),fromReference:t=>t.applyMatrix3(Bh)},[zf]:{transfer:it,primaries:fl,toReference:t=>t.convertSRGBToLinear().applyMatrix3(Hh),fromReference:t=>t.applyMatrix3(Bh).convertLinearToSRGB()}},Sy=new Set([Zi,Dl]),Qe={enabled:!0,_workingColorSpace:Zi,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Sy.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const i=ia[e].toReference,r=ia[n].fromReference;return r(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return ia[t].primaries},getTransfer:function(t){return t===Pi?ul:ia[t].transfer}};function go(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function vu(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let br;class My{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{br===void 0&&(br=Ls("canvas")),br.width=e.width,br.height=e.height;const i=br.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),n=br}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=Ls("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),o=r.data;for(let s=0;s0&&(i.userData=this.userData),n||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==jg)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Bc:e.x=e.x-Math.floor(e.x);break;case hr:e.x=e.x<0?0:1;break;case Hc:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Bc:e.y=e.y-Math.floor(e.y);break;case hr:e.y=e.y<0?0:1;break;case Hc:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}Xt.DEFAULT_IMAGE=null;Xt.DEFAULT_MAPPING=jg;Xt.DEFAULT_ANISOTROPY=1;class Pt{constructor(e=0,n=0,i=0,r=1){Pt.prototype.isVector4=!0,this.x=e,this.y=n,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,i,r){return this.x=e,this.y=n,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,o=this.w,s=e.elements;return this.x=s[0]*n+s[4]*i+s[8]*r+s[12]*o,this.y=s[1]*n+s[5]*i+s[9]*r+s[13]*o,this.z=s[2]*n+s[6]*i+s[10]*r+s[14]*o,this.w=s[3]*n+s[7]*i+s[11]*r+s[15]*o,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,i,r,o;const l=e.elements,u=l[0],f=l[4],h=l[8],d=l[1],m=l[5],v=l[9],y=l[2],p=l[6],c=l[10];if(Math.abs(f-d)<.01&&Math.abs(h-y)<.01&&Math.abs(v-p)<.01){if(Math.abs(f+d)<.1&&Math.abs(h+y)<.1&&Math.abs(v+p)<.1&&Math.abs(u+m+c-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const _=(u+1)/2,E=(m+1)/2,P=(c+1)/2,R=(f+d)/4,A=(h+y)/4,b=(v+p)/4;return _>E&&_>P?_<.01?(i=0,r=.707106781,o=.707106781):(i=Math.sqrt(_),r=R/i,o=A/i):E>P?E<.01?(i=.707106781,r=0,o=.707106781):(r=Math.sqrt(E),i=R/r,o=b/r):P<.01?(i=.707106781,r=.707106781,o=0):(o=Math.sqrt(P),i=A/o,r=b/o),this.set(i,r,o,n),this}let g=Math.sqrt((p-v)*(p-v)+(h-y)*(h-y)+(d-f)*(d-f));return Math.abs(g)<.001&&(g=1),this.x=(p-v)/g,this.y=(h-y)/g,this.z=(d-f)/g,this.w=Math.acos((u+m+c-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this.w=e.w+(n.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class wy extends Ar{constructor(e=1,n=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new Pt(0,0,e,n),this.scissorTest=!1,this.viewport=new Pt(0,0,e,n);const r={width:e,height:n,depth:1};i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Pn,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},i);const o=new Xt(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace);o.flipY=!1,o.generateMipmaps=i.generateMipmaps,o.internalFormat=i.internalFormat,this.textures=[];const s=i.count;for(let a=0;a=0?1:-1,_=1-c*c;if(_>Number.EPSILON){const P=Math.sqrt(_),R=Math.atan2(P,c*g);p=Math.sin(p*R)/P,a=Math.sin(a*R)/P}const E=a*g;if(l=l*p+d*E,u=u*p+m*E,f=f*p+v*E,h=h*p+y*E,p===1-a){const P=1/Math.sqrt(l*l+u*u+f*f+h*h);l*=P,u*=P,f*=P,h*=P}}e[n]=l,e[n+1]=u,e[n+2]=f,e[n+3]=h}static multiplyQuaternionsFlat(e,n,i,r,o,s){const a=i[r],l=i[r+1],u=i[r+2],f=i[r+3],h=o[s],d=o[s+1],m=o[s+2],v=o[s+3];return e[n]=a*v+f*h+l*m-u*d,e[n+1]=l*v+f*d+u*h-a*m,e[n+2]=u*v+f*m+a*d-l*h,e[n+3]=f*v-a*h-l*d-u*m,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,i,r){return this._x=e,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n=!0){const i=e._x,r=e._y,o=e._z,s=e._order,a=Math.cos,l=Math.sin,u=a(i/2),f=a(r/2),h=a(o/2),d=l(i/2),m=l(r/2),v=l(o/2);switch(s){case"XYZ":this._x=d*f*h+u*m*v,this._y=u*m*h-d*f*v,this._z=u*f*v+d*m*h,this._w=u*f*h-d*m*v;break;case"YXZ":this._x=d*f*h+u*m*v,this._y=u*m*h-d*f*v,this._z=u*f*v-d*m*h,this._w=u*f*h+d*m*v;break;case"ZXY":this._x=d*f*h-u*m*v,this._y=u*m*h+d*f*v,this._z=u*f*v+d*m*h,this._w=u*f*h-d*m*v;break;case"ZYX":this._x=d*f*h-u*m*v,this._y=u*m*h+d*f*v,this._z=u*f*v-d*m*h,this._w=u*f*h+d*m*v;break;case"YZX":this._x=d*f*h+u*m*v,this._y=u*m*h+d*f*v,this._z=u*f*v-d*m*h,this._w=u*f*h-d*m*v;break;case"XZY":this._x=d*f*h-u*m*v,this._y=u*m*h-d*f*v,this._z=u*f*v+d*m*h,this._w=u*f*h+d*m*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const i=n/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,i=n[0],r=n[4],o=n[8],s=n[1],a=n[5],l=n[9],u=n[2],f=n[6],h=n[10],d=i+a+h;if(d>0){const m=.5/Math.sqrt(d+1);this._w=.25/m,this._x=(f-l)*m,this._y=(o-u)*m,this._z=(s-r)*m}else if(i>a&&i>h){const m=2*Math.sqrt(1+i-a-h);this._w=(f-l)/m,this._x=.25*m,this._y=(r+s)/m,this._z=(o+u)/m}else if(a>h){const m=2*Math.sqrt(1+a-i-h);this._w=(o-u)/m,this._x=(r+s)/m,this._y=.25*m,this._z=(l+f)/m}else{const m=2*Math.sqrt(1+h-i-a);this._w=(s-r)/m,this._x=(o+u)/m,this._y=(l+f)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let i=e.dot(n)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(zt(this.dot(e),-1,1)))}rotateTowards(e,n){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,n/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const i=e._x,r=e._y,o=e._z,s=e._w,a=n._x,l=n._y,u=n._z,f=n._w;return this._x=i*f+s*a+r*u-o*l,this._y=r*f+s*l+o*a-i*u,this._z=o*f+s*u+i*l-r*a,this._w=s*f-i*a-r*l-o*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const i=this._x,r=this._y,o=this._z,s=this._w;let a=s*e._w+i*e._x+r*e._y+o*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=s,this._x=i,this._y=r,this._z=o,this;const l=1-a*a;if(l<=Number.EPSILON){const m=1-n;return this._w=m*s+n*this._w,this._x=m*i+n*this._x,this._y=m*r+n*this._y,this._z=m*o+n*this._z,this.normalize(),this}const u=Math.sqrt(l),f=Math.atan2(u,a),h=Math.sin((1-n)*f)/u,d=Math.sin(n*f)/u;return this._w=s*h+this._w*d,this._x=i*h+this._x*d,this._y=r*h+this._y*d,this._z=o*h+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,n,i){return this.copy(e).slerp(n,i)}random(){const e=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),i=Math.random(),r=Math.sqrt(1-i),o=Math.sqrt(i);return this.set(r*Math.sin(e),r*Math.cos(e),o*Math.sin(n),o*Math.cos(n))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class N{constructor(e=0,n=0,i=0){N.prototype.isVector3=!0,this.x=e,this.y=n,this.z=i}set(e,n,i){return i===void 0&&(i=this.z),this.x=e,this.y=n,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(Vh.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(Vh.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,i=this.y,r=this.z,o=e.elements;return this.x=o[0]*n+o[3]*i+o[6]*r,this.y=o[1]*n+o[4]*i+o[7]*r,this.z=o[2]*n+o[5]*i+o[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,o=e.elements,s=1/(o[3]*n+o[7]*i+o[11]*r+o[15]);return this.x=(o[0]*n+o[4]*i+o[8]*r+o[12])*s,this.y=(o[1]*n+o[5]*i+o[9]*r+o[13])*s,this.z=(o[2]*n+o[6]*i+o[10]*r+o[14])*s,this}applyQuaternion(e){const n=this.x,i=this.y,r=this.z,o=e.x,s=e.y,a=e.z,l=e.w,u=2*(s*r-a*i),f=2*(a*n-o*r),h=2*(o*i-s*n);return this.x=n+l*u+s*h-a*f,this.y=i+l*f+a*u-o*h,this.z=r+l*h+o*f-s*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,i=this.y,r=this.z,o=e.elements;return this.x=o[0]*n+o[4]*i+o[8]*r,this.y=o[1]*n+o[5]*i+o[9]*r,this.z=o[2]*n+o[6]*i+o[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const i=e.x,r=e.y,o=e.z,s=n.x,a=n.y,l=n.z;return this.x=r*l-o*a,this.y=o*s-i*l,this.z=i*a-r*s,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const i=e.dot(this)/n;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return yu.copy(this).projectOnVector(e),this.sub(yu)}reflect(e){return this.sub(yu.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(zt(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return n*n+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,i){const r=Math.sin(n)*e;return this.x=r*Math.sin(i),this.y=Math.cos(n)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,i){return this.x=e*Math.sin(n),this.y=i,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,n=Math.random()*2-1,i=Math.sqrt(1-n*n);return this.x=i*Math.cos(e),this.y=n,this.z=i*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const yu=new N,Vh=new Yi;class Fs{constructor(e=new N(1/0,1/0,1/0),n=new N(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,i=e.length;nthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,En),En.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,i;return e.normal.x>0?(n=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),n<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Wo),oa.subVectors(this.max,Wo),Dr.subVectors(e.a,Wo),Ir.subVectors(e.b,Wo),Nr.subVectors(e.c,Wo),vi.subVectors(Ir,Dr),xi.subVectors(Nr,Ir),Ji.subVectors(Dr,Nr);let n=[0,-vi.z,vi.y,0,-xi.z,xi.y,0,-Ji.z,Ji.y,vi.z,0,-vi.x,xi.z,0,-xi.x,Ji.z,0,-Ji.x,-vi.y,vi.x,0,-xi.y,xi.x,0,-Ji.y,Ji.x,0];return!Su(n,Dr,Ir,Nr,oa)||(n=[1,0,0,0,1,0,0,0,1],!Su(n,Dr,Ir,Nr,oa))?!1:(sa.crossVectors(vi,xi),n=[sa.x,sa.y,sa.z],Su(n,Dr,Ir,Nr,oa))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,En).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(En).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Yn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Yn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Yn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Yn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Yn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Yn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Yn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Yn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Yn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Yn=[new N,new N,new N,new N,new N,new N,new N,new N],En=new N,ra=new Fs,Dr=new N,Ir=new N,Nr=new N,vi=new N,xi=new N,Ji=new N,Wo=new N,oa=new N,sa=new N,er=new N;function Su(t,e,n,i,r){for(let o=0,s=t.length-3;o<=s;o+=3){er.fromArray(t,o);const a=r.x*Math.abs(er.x)+r.y*Math.abs(er.y)+r.z*Math.abs(er.z),l=e.dot(er),u=n.dot(er),f=i.dot(er);if(Math.max(-Math.max(l,u,f),Math.min(l,u,f))>a)return!1}return!0}const Ry=new Fs,Xo=new N,Mu=new N;class Hf{constructor(e=new N,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const i=this.center;n!==void 0?i.copy(n):Ry.setFromPoints(e).getCenter(i);let r=0;for(let o=0,s=e.length;othis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Xo.subVectors(e,this.center);const n=Xo.lengthSq();if(n>this.radius*this.radius){const i=Math.sqrt(n),r=(i-this.radius)*.5;this.center.addScaledVector(Xo,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Mu.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Xo.copy(e.center).add(Mu)),this.expandByPoint(Xo.copy(e.center).sub(Mu))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const qn=new N,Eu=new N,aa=new N,yi=new N,Tu=new N,la=new N,wu=new N;class r_{constructor(e=new N,n=new N(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,qn)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=qn.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(qn.copy(this.origin).addScaledVector(this.direction,n),qn.distanceToSquared(e))}distanceSqToSegment(e,n,i,r){Eu.copy(e).add(n).multiplyScalar(.5),aa.copy(n).sub(e).normalize(),yi.copy(this.origin).sub(Eu);const o=e.distanceTo(n)*.5,s=-this.direction.dot(aa),a=yi.dot(this.direction),l=-yi.dot(aa),u=yi.lengthSq(),f=Math.abs(1-s*s);let h,d,m,v;if(f>0)if(h=s*l-a,d=s*a-l,v=o*f,h>=0)if(d>=-v)if(d<=v){const y=1/f;h*=y,d*=y,m=h*(h+s*d+2*a)+d*(s*h+d+2*l)+u}else d=o,h=Math.max(0,-(s*d+a)),m=-h*h+d*(d+2*l)+u;else d=-o,h=Math.max(0,-(s*d+a)),m=-h*h+d*(d+2*l)+u;else d<=-v?(h=Math.max(0,-(-s*o+a)),d=h>0?-o:Math.min(Math.max(-o,-l),o),m=-h*h+d*(d+2*l)+u):d<=v?(h=0,d=Math.min(Math.max(-o,-l),o),m=d*(d+2*l)+u):(h=Math.max(0,-(s*o+a)),d=h>0?o:Math.min(Math.max(-o,-l),o),m=-h*h+d*(d+2*l)+u);else d=s>0?-o:o,h=Math.max(0,-(s*d+a)),m=-h*h+d*(d+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),r&&r.copy(Eu).addScaledVector(aa,d),m}intersectSphere(e,n){qn.subVectors(e.center,this.origin);const i=qn.dot(this.direction),r=qn.dot(qn)-i*i,o=e.radius*e.radius;if(r>o)return null;const s=Math.sqrt(o-r),a=i-s,l=i+s;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/n;return i>=0?i:null}intersectPlane(e,n){const i=this.distanceToPlane(e);return i===null?null:this.at(i,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let i,r,o,s,a,l;const u=1/this.direction.x,f=1/this.direction.y,h=1/this.direction.z,d=this.origin;return u>=0?(i=(e.min.x-d.x)*u,r=(e.max.x-d.x)*u):(i=(e.max.x-d.x)*u,r=(e.min.x-d.x)*u),f>=0?(o=(e.min.y-d.y)*f,s=(e.max.y-d.y)*f):(o=(e.max.y-d.y)*f,s=(e.min.y-d.y)*f),i>s||o>r||((o>i||isNaN(i))&&(i=o),(s=0?(a=(e.min.z-d.z)*h,l=(e.max.z-d.z)*h):(a=(e.max.z-d.z)*h,l=(e.min.z-d.z)*h),i>l||a>r)||((a>i||i!==i)&&(i=a),(l=0?i:r,n)}intersectsBox(e){return this.intersectBox(e,qn)!==null}intersectTriangle(e,n,i,r,o){Tu.subVectors(n,e),la.subVectors(i,e),wu.crossVectors(Tu,la);let s=this.direction.dot(wu),a;if(s>0){if(r)return null;a=1}else if(s<0)a=-1,s=-s;else return null;yi.subVectors(this.origin,e);const l=a*this.direction.dot(la.crossVectors(yi,la));if(l<0)return null;const u=a*this.direction.dot(Tu.cross(yi));if(u<0||l+u>s)return null;const f=-a*yi.dot(wu);return f<0?null:this.at(f/s,o)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,n,i,r,o,s,a,l,u,f,h,d,m,v,y,p){xt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,i,r,o,s,a,l,u,f,h,d,m,v,y,p)}set(e,n,i,r,o,s,a,l,u,f,h,d,m,v,y,p){const c=this.elements;return c[0]=e,c[4]=n,c[8]=i,c[12]=r,c[1]=o,c[5]=s,c[9]=a,c[13]=l,c[2]=u,c[6]=f,c[10]=h,c[14]=d,c[3]=m,c[7]=v,c[11]=y,c[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new xt().fromArray(this.elements)}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(e){const n=this.elements,i=e.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,i){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,n,i){return this.set(e.x,n.x,i.x,0,e.y,n.y,i.y,0,e.z,n.z,i.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,i=e.elements,r=1/Ur.setFromMatrixColumn(e,0).length(),o=1/Ur.setFromMatrixColumn(e,1).length(),s=1/Ur.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*o,n[5]=i[5]*o,n[6]=i[6]*o,n[7]=0,n[8]=i[8]*s,n[9]=i[9]*s,n[10]=i[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,i=e.x,r=e.y,o=e.z,s=Math.cos(i),a=Math.sin(i),l=Math.cos(r),u=Math.sin(r),f=Math.cos(o),h=Math.sin(o);if(e.order==="XYZ"){const d=s*f,m=s*h,v=a*f,y=a*h;n[0]=l*f,n[4]=-l*h,n[8]=u,n[1]=m+v*u,n[5]=d-y*u,n[9]=-a*l,n[2]=y-d*u,n[6]=v+m*u,n[10]=s*l}else if(e.order==="YXZ"){const d=l*f,m=l*h,v=u*f,y=u*h;n[0]=d+y*a,n[4]=v*a-m,n[8]=s*u,n[1]=s*h,n[5]=s*f,n[9]=-a,n[2]=m*a-v,n[6]=y+d*a,n[10]=s*l}else if(e.order==="ZXY"){const d=l*f,m=l*h,v=u*f,y=u*h;n[0]=d-y*a,n[4]=-s*h,n[8]=v+m*a,n[1]=m+v*a,n[5]=s*f,n[9]=y-d*a,n[2]=-s*u,n[6]=a,n[10]=s*l}else if(e.order==="ZYX"){const d=s*f,m=s*h,v=a*f,y=a*h;n[0]=l*f,n[4]=v*u-m,n[8]=d*u+y,n[1]=l*h,n[5]=y*u+d,n[9]=m*u-v,n[2]=-u,n[6]=a*l,n[10]=s*l}else if(e.order==="YZX"){const d=s*l,m=s*u,v=a*l,y=a*u;n[0]=l*f,n[4]=y-d*h,n[8]=v*h+m,n[1]=h,n[5]=s*f,n[9]=-a*f,n[2]=-u*f,n[6]=m*h+v,n[10]=d-y*h}else if(e.order==="XZY"){const d=s*l,m=s*u,v=a*l,y=a*u;n[0]=l*f,n[4]=-h,n[8]=u*f,n[1]=d*h+y,n[5]=s*f,n[9]=m*h-v,n[2]=v*h-m,n[6]=a*f,n[10]=y*h+d}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Cy,e,Py)}lookAt(e,n,i){const r=this.elements;return tn.subVectors(e,n),tn.lengthSq()===0&&(tn.z=1),tn.normalize(),Si.crossVectors(i,tn),Si.lengthSq()===0&&(Math.abs(i.z)===1?tn.x+=1e-4:tn.z+=1e-4,tn.normalize(),Si.crossVectors(i,tn)),Si.normalize(),ua.crossVectors(tn,Si),r[0]=Si.x,r[4]=ua.x,r[8]=tn.x,r[1]=Si.y,r[5]=ua.y,r[9]=tn.y,r[2]=Si.z,r[6]=ua.z,r[10]=tn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,o=this.elements,s=i[0],a=i[4],l=i[8],u=i[12],f=i[1],h=i[5],d=i[9],m=i[13],v=i[2],y=i[6],p=i[10],c=i[14],g=i[3],_=i[7],E=i[11],P=i[15],R=r[0],A=r[4],b=r[8],w=r[12],S=r[1],O=r[5],j=r[9],D=r[13],q=r[2],Y=r[6],J=r[10],te=r[14],L=r[3],W=r[7],X=r[11],se=r[15];return o[0]=s*R+a*S+l*q+u*L,o[4]=s*A+a*O+l*Y+u*W,o[8]=s*b+a*j+l*J+u*X,o[12]=s*w+a*D+l*te+u*se,o[1]=f*R+h*S+d*q+m*L,o[5]=f*A+h*O+d*Y+m*W,o[9]=f*b+h*j+d*J+m*X,o[13]=f*w+h*D+d*te+m*se,o[2]=v*R+y*S+p*q+c*L,o[6]=v*A+y*O+p*Y+c*W,o[10]=v*b+y*j+p*J+c*X,o[14]=v*w+y*D+p*te+c*se,o[3]=g*R+_*S+E*q+P*L,o[7]=g*A+_*O+E*Y+P*W,o[11]=g*b+_*j+E*J+P*X,o[15]=g*w+_*D+E*te+P*se,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[4],r=e[8],o=e[12],s=e[1],a=e[5],l=e[9],u=e[13],f=e[2],h=e[6],d=e[10],m=e[14],v=e[3],y=e[7],p=e[11],c=e[15];return v*(+o*l*h-r*u*h-o*a*d+i*u*d+r*a*m-i*l*m)+y*(+n*l*m-n*u*d+o*s*d-r*s*m+r*u*f-o*l*f)+p*(+n*u*h-n*a*m-o*s*h+i*s*m+o*a*f-i*u*f)+c*(-r*a*f-n*l*h+n*a*d+r*s*h-i*s*d+i*l*f)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=n,r[14]=i),this}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],f=e[8],h=e[9],d=e[10],m=e[11],v=e[12],y=e[13],p=e[14],c=e[15],g=h*p*u-y*d*u+y*l*m-a*p*m-h*l*c+a*d*c,_=v*d*u-f*p*u-v*l*m+s*p*m+f*l*c-s*d*c,E=f*y*u-v*h*u+v*a*m-s*y*m-f*a*c+s*h*c,P=v*h*l-f*y*l-v*a*d+s*y*d+f*a*p-s*h*p,R=n*g+i*_+r*E+o*P;if(R===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/R;return e[0]=g*A,e[1]=(y*d*o-h*p*o-y*r*m+i*p*m+h*r*c-i*d*c)*A,e[2]=(a*p*o-y*l*o+y*r*u-i*p*u-a*r*c+i*l*c)*A,e[3]=(h*l*o-a*d*o-h*r*u+i*d*u+a*r*m-i*l*m)*A,e[4]=_*A,e[5]=(f*p*o-v*d*o+v*r*m-n*p*m-f*r*c+n*d*c)*A,e[6]=(v*l*o-s*p*o-v*r*u+n*p*u+s*r*c-n*l*c)*A,e[7]=(s*d*o-f*l*o+f*r*u-n*d*u-s*r*m+n*l*m)*A,e[8]=E*A,e[9]=(v*h*o-f*y*o-v*i*m+n*y*m+f*i*c-n*h*c)*A,e[10]=(s*y*o-v*a*o+v*i*u-n*y*u-s*i*c+n*a*c)*A,e[11]=(f*a*o-s*h*o-f*i*u+n*h*u+s*i*m-n*a*m)*A,e[12]=P*A,e[13]=(f*y*r-v*h*r+v*i*d-n*y*d-f*i*p+n*h*p)*A,e[14]=(v*a*r-s*y*r-v*i*l+n*y*l+s*i*p-n*a*p)*A,e[15]=(s*h*r-f*a*r+f*i*l-n*h*l-s*i*d+n*a*d)*A,this}scale(e){const n=this.elements,i=e.x,r=e.y,o=e.z;return n[0]*=i,n[4]*=r,n[8]*=o,n[1]*=i,n[5]*=r,n[9]*=o,n[2]*=i,n[6]*=r,n[10]*=o,n[3]*=i,n[7]*=r,n[11]*=o,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(e,n,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const i=Math.cos(n),r=Math.sin(n),o=1-i,s=e.x,a=e.y,l=e.z,u=o*s,f=o*a;return this.set(u*s+i,u*a-r*l,u*l+r*a,0,u*a+r*l,f*a+i,f*l-r*s,0,u*l-r*a,f*l+r*s,o*l*l+i,0,0,0,0,1),this}makeScale(e,n,i){return this.set(e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,n,i,r,o,s){return this.set(1,i,o,0,e,1,s,0,n,r,1,0,0,0,0,1),this}compose(e,n,i){const r=this.elements,o=n._x,s=n._y,a=n._z,l=n._w,u=o+o,f=s+s,h=a+a,d=o*u,m=o*f,v=o*h,y=s*f,p=s*h,c=a*h,g=l*u,_=l*f,E=l*h,P=i.x,R=i.y,A=i.z;return r[0]=(1-(y+c))*P,r[1]=(m+E)*P,r[2]=(v-_)*P,r[3]=0,r[4]=(m-E)*R,r[5]=(1-(d+c))*R,r[6]=(p+g)*R,r[7]=0,r[8]=(v+_)*A,r[9]=(p-g)*A,r[10]=(1-(d+y))*A,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,n,i){const r=this.elements;let o=Ur.set(r[0],r[1],r[2]).length();const s=Ur.set(r[4],r[5],r[6]).length(),a=Ur.set(r[8],r[9],r[10]).length();this.determinant()<0&&(o=-o),e.x=r[12],e.y=r[13],e.z=r[14],Tn.copy(this);const u=1/o,f=1/s,h=1/a;return Tn.elements[0]*=u,Tn.elements[1]*=u,Tn.elements[2]*=u,Tn.elements[4]*=f,Tn.elements[5]*=f,Tn.elements[6]*=f,Tn.elements[8]*=h,Tn.elements[9]*=h,Tn.elements[10]*=h,n.setFromRotationMatrix(Tn),i.x=o,i.y=s,i.z=a,this}makePerspective(e,n,i,r,o,s,a=ri){const l=this.elements,u=2*o/(n-e),f=2*o/(i-r),h=(n+e)/(n-e),d=(i+r)/(i-r);let m,v;if(a===ri)m=-(s+o)/(s-o),v=-2*s*o/(s-o);else if(a===dl)m=-s/(s-o),v=-s*o/(s-o);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=f,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=v,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,i,r,o,s,a=ri){const l=this.elements,u=1/(n-e),f=1/(i-r),h=1/(s-o),d=(n+e)*u,m=(i+r)*f;let v,y;if(a===ri)v=(s+o)*h,y=-2*h;else if(a===dl)v=o*h,y=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*f,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=y,l[14]=-v,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<16;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e[n+9]=i[9],e[n+10]=i[10],e[n+11]=i[11],e[n+12]=i[12],e[n+13]=i[13],e[n+14]=i[14],e[n+15]=i[15],e}}const Ur=new N,Tn=new xt,Cy=new N(0,0,0),Py=new N(1,1,1),Si=new N,ua=new N,tn=new N,Gh=new xt,Wh=new Yi;class ci{constructor(e=0,n=0,i=0,r=ci.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,i,r=this._order){return this._x=e,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,i=!0){const r=e.elements,o=r[0],s=r[4],a=r[8],l=r[1],u=r[5],f=r[9],h=r[2],d=r[6],m=r[10];switch(n){case"XYZ":this._y=Math.asin(zt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-f,m),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(d,u),this._z=0);break;case"YXZ":this._x=Math.asin(-zt(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(zt(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,m),this._z=Math.atan2(-s,u)):(this._y=0,this._z=Math.atan2(l,o));break;case"ZYX":this._y=Math.asin(-zt(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,m),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-s,u));break;case"YZX":this._z=Math.asin(zt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-f,u),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-zt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(d,u),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-f,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,i){return Gh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Gh,n,i)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return Wh.setFromEuler(this),this.setFromQuaternion(Wh,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ci.DEFAULT_ORDER="XYZ";class o_{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){for(let i=0;i0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function o(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=o(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,f=l.length;u0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(i.geometries=a),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),f.length>0&&(i.images=f),h.length>0&&(i.shapes=h),d.length>0&&(i.skeletons=d),m.length>0&&(i.animations=m),v.length>0&&(i.nodes=v)}return i.object=r,i;function s(a){const l=[];for(const u in a){const f=a[u];delete f.metadata,l.push(f)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let i=0;i0?r.multiplyScalar(1/Math.sqrt(o)):r.set(0,0,0)}static getBarycoord(e,n,i,r,o){wn.subVectors(r,n),Kn.subVectors(i,n),Ru.subVectors(e,n);const s=wn.dot(wn),a=wn.dot(Kn),l=wn.dot(Ru),u=Kn.dot(Kn),f=Kn.dot(Ru),h=s*u-a*a;if(h===0)return o.set(0,0,0),null;const d=1/h,m=(u*l-a*f)*d,v=(s*f-a*l)*d;return o.set(1-m-v,v,m)}static containsPoint(e,n,i,r){return this.getBarycoord(e,n,i,r,Zn)===null?!1:Zn.x>=0&&Zn.y>=0&&Zn.x+Zn.y<=1}static getInterpolation(e,n,i,r,o,s,a,l){return this.getBarycoord(e,n,i,r,Zn)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(o,Zn.x),l.addScaledVector(s,Zn.y),l.addScaledVector(a,Zn.z),l)}static isFrontFacing(e,n,i,r){return wn.subVectors(i,n),Kn.subVectors(e,n),wn.cross(Kn).dot(r)<0}set(e,n,i){return this.a.copy(e),this.b.copy(n),this.c.copy(i),this}setFromPointsAndIndices(e,n,i,r){return this.a.copy(e[n]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,n,i,r){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return wn.subVectors(this.c,this.b),Kn.subVectors(this.a,this.b),wn.cross(Kn).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Bn.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Bn.getBarycoord(e,this.a,this.b,this.c,n)}getInterpolation(e,n,i,r,o){return Bn.getInterpolation(e,this.a,this.b,this.c,n,i,r,o)}containsPoint(e){return Bn.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Bn.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const i=this.a,r=this.b,o=this.c;let s,a;kr.subVectors(r,i),zr.subVectors(o,i),Cu.subVectors(e,i);const l=kr.dot(Cu),u=zr.dot(Cu);if(l<=0&&u<=0)return n.copy(i);Pu.subVectors(e,r);const f=kr.dot(Pu),h=zr.dot(Pu);if(f>=0&&h<=f)return n.copy(r);const d=l*h-f*u;if(d<=0&&l>=0&&f<=0)return s=l/(l-f),n.copy(i).addScaledVector(kr,s);Lu.subVectors(e,o);const m=kr.dot(Lu),v=zr.dot(Lu);if(v>=0&&m<=v)return n.copy(o);const y=m*u-l*v;if(y<=0&&u>=0&&v<=0)return a=u/(u-v),n.copy(i).addScaledVector(zr,a);const p=f*v-m*h;if(p<=0&&h-f>=0&&m-v>=0)return Kh.subVectors(o,r),a=(h-f)/(h-f+(m-v)),n.copy(r).addScaledVector(Kh,a);const c=1/(p+y+d);return s=y*c,a=d*c,n.copy(i).addScaledVector(kr,s).addScaledVector(zr,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const s_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Mi={h:0,s:0,l:0},fa={h:0,s:0,l:0};function bu(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)*6*(2/3-n):t}class Je{constructor(e,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,i)}set(e,n,i){if(n===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,n,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Fn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Qe.toWorkingColorSpace(this,n),this}setRGB(e,n,i,r=Qe.workingColorSpace){return this.r=e,this.g=n,this.b=i,Qe.toWorkingColorSpace(this,r),this}setHSL(e,n,i,r=Qe.workingColorSpace){if(e=Bf(e,1),n=zt(n,0,1),i=zt(i,0,1),n===0)this.r=this.g=this.b=i;else{const o=i<=.5?i*(1+n):i+n-i*n,s=2*i-o;this.r=bu(s,o,e+1/3),this.g=bu(s,o,e),this.b=bu(s,o,e-1/3)}return Qe.toWorkingColorSpace(this,r),this}setStyle(e,n=Fn){function i(o){o!==void 0&&parseFloat(o)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let o;const s=r[1],a=r[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,n);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,n);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const o=r[1],s=o.length;if(s===3)return this.setRGB(parseInt(o.charAt(0),16)/15,parseInt(o.charAt(1),16)/15,parseInt(o.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(o,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Fn){const i=s_[e.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=go(e.r),this.g=go(e.g),this.b=go(e.b),this}copyLinearToSRGB(e){return this.r=vu(e.r),this.g=vu(e.g),this.b=vu(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Fn){return Qe.fromWorkingColorSpace(Ft.copy(this),e),Math.round(zt(Ft.r*255,0,255))*65536+Math.round(zt(Ft.g*255,0,255))*256+Math.round(zt(Ft.b*255,0,255))}getHexString(e=Fn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Qe.workingColorSpace){Qe.fromWorkingColorSpace(Ft.copy(this),n);const i=Ft.r,r=Ft.g,o=Ft.b,s=Math.max(i,r,o),a=Math.min(i,r,o);let l,u;const f=(a+s)/2;if(a===s)l=0,u=0;else{const h=s-a;switch(u=f<=.5?h/(s+a):h/(2-s-a),s){case i:l=(r-o)/h+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const i=e[n];if(i===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[n]=i}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(i.dispersion=this.dispersion),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==po&&(i.blending=this.blending),this.side!==Xi&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==Oc&&(i.blendSrc=this.blendSrc),this.blendDst!==Fc&&(i.blendDst=this.blendDst),this.blendEquation!==lr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==ll&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Uh&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Lr&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Lr&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Lr&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(o){const s=[];for(const a in o){const l=o[a];delete l.metadata,s.push(l)}return s}if(n){const o=r(e.textures),s=r(e.images);o.length>0&&(i.textures=o),s.length>0&&(i.images=s)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let i=null;if(n!==null){const r=n.length;i=new Array(r);for(let o=0;o!==r;++o)i[o]=n[o].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class Vf extends Il{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Je(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ci,this.combine=Xg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const _t=new N,da=new Ee;class In{constructor(e,n,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=i,this.usage=Oh,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Di,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return yy("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,i){e*=this.itemSize,i*=n.itemSize;for(let r=0,o=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const r={};let o=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],f=[];for(let h=0,d=u.length;h0&&(r[l]=f,o=!0)}o&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(n));const r=e.attributes;for(const u in r){const f=r[u];this.setAttribute(u,f.clone(n))}const o=e.morphAttributes;for(const u in o){const f=[],h=o[u];for(let d=0,m=h.length;d0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let o=0,s=r.length;o(e.far-e.near)**2))&&(Zh.copy(o).invert(),tr.copy(e.ray).applyMatrix4(Zh),!(i.boundingBox!==null&&tr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,n,tr)))}_computeIntersections(e,n,i){let r;const o=this.geometry,s=this.material,a=o.index,l=o.attributes.position,u=o.attributes.uv,f=o.attributes.uv1,h=o.attributes.normal,d=o.groups,m=o.drawRange;if(a!==null)if(Array.isArray(s))for(let v=0,y=d.length;vn.far?null:{distance:u,point:xa.clone(),object:t}}function ya(t,e,n,i,r,o,s,a,l,u){t.getVertexPosition(a,Hr),t.getVertexPosition(l,Vr),t.getVertexPosition(u,Gr);const f=Oy(t,e,n,i,Hr,Vr,Gr,va);if(f){r&&(ma.fromBufferAttribute(r,a),ga.fromBufferAttribute(r,l),_a.fromBufferAttribute(r,u),f.uv=Bn.getInterpolation(va,Hr,Vr,Gr,ma,ga,_a,new Ee)),o&&(ma.fromBufferAttribute(o,a),ga.fromBufferAttribute(o,l),_a.fromBufferAttribute(o,u),f.uv1=Bn.getInterpolation(va,Hr,Vr,Gr,ma,ga,_a,new Ee)),s&&(Jh.fromBufferAttribute(s,a),ep.fromBufferAttribute(s,l),tp.fromBufferAttribute(s,u),f.normal=Bn.getInterpolation(va,Hr,Vr,Gr,Jh,ep,tp,new N),f.normal.dot(i.direction)>0&&f.normal.multiplyScalar(-1));const h={a,b:l,c:u,normal:new N,materialIndex:0};Bn.getNormal(Hr,Vr,Gr,h.normal),f.face=h}return f}class Er extends hi{constructor(e=1,n=1,i=1,r=1,o=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:i,widthSegments:r,heightSegments:o,depthSegments:s};const a=this;r=Math.floor(r),o=Math.floor(o),s=Math.floor(s);const l=[],u=[],f=[],h=[];let d=0,m=0;v("z","y","x",-1,-1,i,n,e,s,o,0),v("z","y","x",1,-1,i,n,-e,s,o,1),v("x","z","y",1,1,e,i,n,r,s,2),v("x","z","y",1,-1,e,i,-n,r,s,3),v("x","y","z",1,-1,e,n,i,r,o,4),v("x","y","z",-1,-1,e,n,-i,r,o,5),this.setIndex(l),this.setAttribute("position",new Wn(u,3)),this.setAttribute("normal",new Wn(f,3)),this.setAttribute("uv",new Wn(h,2));function v(y,p,c,g,_,E,P,R,A,b,w){const S=E/A,O=P/b,j=E/2,D=P/2,q=R/2,Y=A+1,J=b+1;let te=0,L=0;const W=new N;for(let X=0;X0?1:-1,f.push(W.x,W.y,W.z),h.push(me/A),h.push(1-X/b),te+=1}}for(let X=0;X0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(n.extensions=i),n}}class c_ extends an{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=ri}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Ei=new N,np=new Ee,ip=new Ee;class gn extends c_{constructor(e=50,n=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=Ps*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(us*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ps*2*Math.atan(Math.tan(us*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,n,i){Ei.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Ei.x,Ei.y).multiplyScalar(-e/Ei.z),Ei.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(Ei.x,Ei.y).multiplyScalar(-e/Ei.z)}getViewSize(e,n){return this.getViewBounds(e,np,ip),n.subVectors(ip,np)}setViewOffset(e,n,i,r,o,s){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(us*.5*this.fov)/this.zoom,i=2*n,r=this.aspect*i,o=-.5*r;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,u=s.fullHeight;o+=s.offsetX*r/l,n-=s.offsetY*i/u,r*=s.width/l,i*=s.height/u}const a=this.filmOffset;a!==0&&(o+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+r,n,n-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Wr=-90,Xr=1;class Hy extends an{constructor(e,n,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new gn(Wr,Xr,e,n);r.layers=this.layers,this.add(r);const o=new gn(Wr,Xr,e,n);o.layers=this.layers,this.add(o);const s=new gn(Wr,Xr,e,n);s.layers=this.layers,this.add(s);const a=new gn(Wr,Xr,e,n);a.layers=this.layers,this.add(a);const l=new gn(Wr,Xr,e,n);l.layers=this.layers,this.add(l);const u=new gn(Wr,Xr,e,n);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[i,r,o,s,a,l]=n;for(const u of n)this.remove(u);if(e===ri)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),o.up.set(0,0,-1),o.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===dl)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),o.up.set(0,0,1),o.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of n)this.add(u),u.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[o,s,a,l,u,f]=this.children,h=e.getRenderTarget(),d=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),v=e.xr.enabled;e.xr.enabled=!1;const y=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,r),e.render(n,o),e.setRenderTarget(i,1,r),e.render(n,s),e.setRenderTarget(i,2,r),e.render(n,a),e.setRenderTarget(i,3,r),e.render(n,l),e.setRenderTarget(i,4,r),e.render(n,u),i.texture.generateMipmaps=y,e.setRenderTarget(i,5,r),e.render(n,f),e.setRenderTarget(h,d,m),e.xr.enabled=v,i.texture.needsPMREMUpdate=!0}}class f_ extends Xt{constructor(e,n,i,r,o,s,a,l,u,f){e=e!==void 0?e:[],n=n!==void 0?n:To,super(e,n,i,r,o,s,a,l,u,f),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Vy extends Mr{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];this.texture=new f_(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Pn}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},r=new Er(5,5,5),o=new fi({name:"CubemapFromEquirect",uniforms:Ro(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Jt,blending:Hi});o.uniforms.tEquirect.value=n;const s=new Ln(r,o),a=n.minFilter;return n.minFilter===pr&&(n.minFilter=Pn),new Hy(1,10,this).update(e,s),n.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(e,n,i,r){const o=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,i,r);e.setRenderTarget(o)}}const Nu=new N,Gy=new N,Wy=new Ie;class Ai{constructor(e=new N(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,i,r){return this.normal.set(e,n,i),this.constant=r,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,i){const r=Nu.subVectors(i,n).cross(Gy.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const i=e.delta(Nu),r=this.normal.dot(i);if(r===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const o=-(e.start.dot(this.normal)+this.constant)/r;return o<0||o>1?null:n.copy(e.start).addScaledVector(i,o)}intersectsLine(e){const n=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return n<0&&i>0||i<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const i=n||Wy.getNormalMatrix(e),r=this.coplanarPoint(Nu).applyMatrix4(e),o=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(o),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const nr=new Hf,Sa=new N;class d_{constructor(e=new Ai,n=new Ai,i=new Ai,r=new Ai,o=new Ai,s=new Ai){this.planes=[e,n,i,r,o,s]}set(e,n,i,r,o,s){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(i),a[3].copy(r),a[4].copy(o),a[5].copy(s),this}copy(e){const n=this.planes;for(let i=0;i<6;i++)n[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,n=ri){const i=this.planes,r=e.elements,o=r[0],s=r[1],a=r[2],l=r[3],u=r[4],f=r[5],h=r[6],d=r[7],m=r[8],v=r[9],y=r[10],p=r[11],c=r[12],g=r[13],_=r[14],E=r[15];if(i[0].setComponents(l-o,d-u,p-m,E-c).normalize(),i[1].setComponents(l+o,d+u,p+m,E+c).normalize(),i[2].setComponents(l+s,d+f,p+v,E+g).normalize(),i[3].setComponents(l-s,d-f,p-v,E-g).normalize(),i[4].setComponents(l-a,d-h,p-y,E-_).normalize(),n===ri)i[5].setComponents(l+a,d+h,p+y,E+_).normalize();else if(n===dl)i[5].setComponents(a,h,y,_).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),nr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),nr.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(nr)}intersectsSprite(e){return nr.center.set(0,0,0),nr.radius=.7071067811865476,nr.applyMatrix4(e.matrixWorld),this.intersectsSphere(nr)}intersectsSphere(e){const n=this.planes,i=e.center,r=-e.radius;for(let o=0;o<6;o++)if(n[o].distanceToPoint(i)0?e.max.x:e.min.x,Sa.y=r.normal.y>0?e.max.y:e.min.y,Sa.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Sa)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let i=0;i<6;i++)if(n[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function h_(){let t=null,e=!1,n=null,i=null;function r(o,s){n(o,s),i=t.requestAnimationFrame(r)}return{start:function(){e!==!0&&n!==null&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(o){n=o},setContext:function(o){t=o}}}function Xy(t){const e=new WeakMap;function n(a,l){const u=a.array,f=a.usage,h=u.byteLength,d=t.createBuffer();t.bindBuffer(l,d),t.bufferData(l,u,f),a.onUploadCallback();let m;if(u instanceof Float32Array)m=t.FLOAT;else if(u instanceof Uint16Array)a.isFloat16BufferAttribute?m=t.HALF_FLOAT:m=t.UNSIGNED_SHORT;else if(u instanceof Int16Array)m=t.SHORT;else if(u instanceof Uint32Array)m=t.UNSIGNED_INT;else if(u instanceof Int32Array)m=t.INT;else if(u instanceof Int8Array)m=t.BYTE;else if(u instanceof Uint8Array)m=t.UNSIGNED_BYTE;else if(u instanceof Uint8ClampedArray)m=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+u);return{buffer:d,type:m,bytesPerElement:u.BYTES_PER_ELEMENT,version:a.version,size:h}}function i(a,l,u){const f=l.array,h=l._updateRange,d=l.updateRanges;if(t.bindBuffer(u,a),h.count===-1&&d.length===0&&t.bufferSubData(u,0,f),d.length!==0){for(let m=0,v=d.length;m 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,lS=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,uS=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,cS=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,fS=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,dS=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,hS=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + varying vec3 vColor; +#endif`,pS=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif`,mS=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +float luminance( const in vec3 rgb ) { + const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); + return dot( weights, rgb ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,gS=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,_S=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,vS=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,xS=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,yS=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,SS=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,MS="gl_FragColor = linearToOutputTexel( gl_FragColor );",ES=` +const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( + vec3( 0.8224621, 0.177538, 0.0 ), + vec3( 0.0331941, 0.9668058, 0.0 ), + vec3( 0.0170827, 0.0723974, 0.9105199 ) +); +const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( + vec3( 1.2249401, - 0.2249404, 0.0 ), + vec3( - 0.0420569, 1.0420571, 0.0 ), + vec3( - 0.0196376, - 0.0786361, 1.0982735 ) +); +vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { + return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); +} +vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { + return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); +} +vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +} +vec4 LinearToLinear( in vec4 value ) { + return value; +} +vec4 LinearTosRGB( in vec4 value ) { + return sRGBTransferOETF( value ); +}`,TS=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,wS=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,AS=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,RS=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,CS=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,PS=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,LS=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,bS=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,DS=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,IS=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,NS=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,US=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,OS=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,FS=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + #if defined ( LEGACY_LIGHTS ) + if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { + return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); + } + return 1.0; + #else + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; + #endif +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,kS=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,zS=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,BS=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,HS=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,VS=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,GS=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,WS=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,XS=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,jS=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,YS=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,qS=`#if defined( USE_LOGDEPTHBUF ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,$S=`#if defined( USE_LOGDEPTHBUF ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,KS=`#ifdef USE_LOGDEPTHBUF + varying float vFragDepth; + varying float vIsPerspective; +#endif`,ZS=`#ifdef USE_LOGDEPTHBUF + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,QS=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); + + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,JS=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,eM=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,tM=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,nM=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,iM=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,rM=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[MORPHTARGETS_COUNT]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,oM=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,sM=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } + #else + objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; + objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; + objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; + objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; + #endif +#endif`,aM=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + #endif + #ifdef MORPHTARGETS_TEXTURE + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } + #else + #ifndef USE_MORPHNORMALS + uniform float morphTargetInfluences[ 8 ]; + #else + uniform float morphTargetInfluences[ 4 ]; + #endif + #endif +#endif`,lM=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } + #else + transformed += morphTarget0 * morphTargetInfluences[ 0 ]; + transformed += morphTarget1 * morphTargetInfluences[ 1 ]; + transformed += morphTarget2 * morphTargetInfluences[ 2 ]; + transformed += morphTarget3 * morphTargetInfluences[ 3 ]; + #ifndef USE_MORPHNORMALS + transformed += morphTarget4 * morphTargetInfluences[ 4 ]; + transformed += morphTarget5 * morphTargetInfluences[ 5 ]; + transformed += morphTarget6 * morphTargetInfluences[ 6 ]; + transformed += morphTarget7 * morphTargetInfluences[ 7 ]; + #endif + #endif +#endif`,uM=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,cM=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,fM=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,dM=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,hM=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,pM=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,mM=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,gM=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,_M=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,vM=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,xM=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,yM=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; +const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); +const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); +const float ShiftRight8 = 1. / 256.; +vec4 packDepthToRGBA( const in float v ) { + vec4 r = vec4( fract( v * PackFactors ), v ); + r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors ); +} +vec2 packDepthToRG( in highp float v ) { + return packDepthToRGBA( v ).yx; +} +float unpackRGToDepth( const in highp vec2 v ) { + return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); +} +vec4 pack2HalfToRGBA( vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,SM=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,MM=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,EM=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,TM=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,wM=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,AM=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,RM=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return shadow; + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return shadow; + } +#endif`,CM=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,PM=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,LM=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,bM=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,DM=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,IM=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,NM=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,UM=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,OM=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,FM=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,kM=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 OptimizedCineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,zM=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,BM=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + + #else + + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,HM=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,VM=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,GM=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,WM=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`;const XM=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,jM=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,YM=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,qM=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,$M=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,KM=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,ZM=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,QM=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #endif +}`,JM=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,eE=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,tE=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,nE=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,iE=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,rE=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,oE=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,sE=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,aE=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,lE=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,uE=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,cE=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,fE=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,dE=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,hE=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,pE=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,mE=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,gE=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,_E=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,vE=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,xE=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,yE=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,SE=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,ME=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,EE=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,TE=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,De={alphahash_fragment:jy,alphahash_pars_fragment:Yy,alphamap_fragment:qy,alphamap_pars_fragment:$y,alphatest_fragment:Ky,alphatest_pars_fragment:Zy,aomap_fragment:Qy,aomap_pars_fragment:Jy,batching_pars_vertex:eS,batching_vertex:tS,begin_vertex:nS,beginnormal_vertex:iS,bsdfs:rS,iridescence_fragment:oS,bumpmap_pars_fragment:sS,clipping_planes_fragment:aS,clipping_planes_pars_fragment:lS,clipping_planes_pars_vertex:uS,clipping_planes_vertex:cS,color_fragment:fS,color_pars_fragment:dS,color_pars_vertex:hS,color_vertex:pS,common:mS,cube_uv_reflection_fragment:gS,defaultnormal_vertex:_S,displacementmap_pars_vertex:vS,displacementmap_vertex:xS,emissivemap_fragment:yS,emissivemap_pars_fragment:SS,colorspace_fragment:MS,colorspace_pars_fragment:ES,envmap_fragment:TS,envmap_common_pars_fragment:wS,envmap_pars_fragment:AS,envmap_pars_vertex:RS,envmap_physical_pars_fragment:kS,envmap_vertex:CS,fog_vertex:PS,fog_pars_vertex:LS,fog_fragment:bS,fog_pars_fragment:DS,gradientmap_pars_fragment:IS,lightmap_pars_fragment:NS,lights_lambert_fragment:US,lights_lambert_pars_fragment:OS,lights_pars_begin:FS,lights_toon_fragment:zS,lights_toon_pars_fragment:BS,lights_phong_fragment:HS,lights_phong_pars_fragment:VS,lights_physical_fragment:GS,lights_physical_pars_fragment:WS,lights_fragment_begin:XS,lights_fragment_maps:jS,lights_fragment_end:YS,logdepthbuf_fragment:qS,logdepthbuf_pars_fragment:$S,logdepthbuf_pars_vertex:KS,logdepthbuf_vertex:ZS,map_fragment:QS,map_pars_fragment:JS,map_particle_fragment:eM,map_particle_pars_fragment:tM,metalnessmap_fragment:nM,metalnessmap_pars_fragment:iM,morphinstance_vertex:rM,morphcolor_vertex:oM,morphnormal_vertex:sM,morphtarget_pars_vertex:aM,morphtarget_vertex:lM,normal_fragment_begin:uM,normal_fragment_maps:cM,normal_pars_fragment:fM,normal_pars_vertex:dM,normal_vertex:hM,normalmap_pars_fragment:pM,clearcoat_normal_fragment_begin:mM,clearcoat_normal_fragment_maps:gM,clearcoat_pars_fragment:_M,iridescence_pars_fragment:vM,opaque_fragment:xM,packing:yM,premultiplied_alpha_fragment:SM,project_vertex:MM,dithering_fragment:EM,dithering_pars_fragment:TM,roughnessmap_fragment:wM,roughnessmap_pars_fragment:AM,shadowmap_pars_fragment:RM,shadowmap_pars_vertex:CM,shadowmap_vertex:PM,shadowmask_pars_fragment:LM,skinbase_vertex:bM,skinning_pars_vertex:DM,skinning_vertex:IM,skinnormal_vertex:NM,specularmap_fragment:UM,specularmap_pars_fragment:OM,tonemapping_fragment:FM,tonemapping_pars_fragment:kM,transmission_fragment:zM,transmission_pars_fragment:BM,uv_pars_fragment:HM,uv_pars_vertex:VM,uv_vertex:GM,worldpos_vertex:WM,background_vert:XM,background_frag:jM,backgroundCube_vert:YM,backgroundCube_frag:qM,cube_vert:$M,cube_frag:KM,depth_vert:ZM,depth_frag:QM,distanceRGBA_vert:JM,distanceRGBA_frag:eE,equirect_vert:tE,equirect_frag:nE,linedashed_vert:iE,linedashed_frag:rE,meshbasic_vert:oE,meshbasic_frag:sE,meshlambert_vert:aE,meshlambert_frag:lE,meshmatcap_vert:uE,meshmatcap_frag:cE,meshnormal_vert:fE,meshnormal_frag:dE,meshphong_vert:hE,meshphong_frag:pE,meshphysical_vert:mE,meshphysical_frag:gE,meshtoon_vert:_E,meshtoon_frag:vE,points_vert:xE,points_frag:yE,shadow_vert:SE,shadow_frag:ME,sprite_vert:EE,sprite_frag:TE},ae={common:{diffuse:{value:new Je(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ie},alphaMap:{value:null},alphaMapTransform:{value:new Ie},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ie}},envmap:{envMap:{value:null},envMapRotation:{value:new Ie},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ie}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ie}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ie},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ie},normalScale:{value:new Ee(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ie},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ie}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ie}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ie}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Je(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Je(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ie},alphaTest:{value:0},uvTransform:{value:new Ie}},sprite:{diffuse:{value:new Je(16777215)},opacity:{value:1},center:{value:new Ee(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ie},alphaMap:{value:null},alphaMapTransform:{value:new Ie},alphaTest:{value:0}}},kn={basic:{uniforms:Vt([ae.common,ae.specularmap,ae.envmap,ae.aomap,ae.lightmap,ae.fog]),vertexShader:De.meshbasic_vert,fragmentShader:De.meshbasic_frag},lambert:{uniforms:Vt([ae.common,ae.specularmap,ae.envmap,ae.aomap,ae.lightmap,ae.emissivemap,ae.bumpmap,ae.normalmap,ae.displacementmap,ae.fog,ae.lights,{emissive:{value:new Je(0)}}]),vertexShader:De.meshlambert_vert,fragmentShader:De.meshlambert_frag},phong:{uniforms:Vt([ae.common,ae.specularmap,ae.envmap,ae.aomap,ae.lightmap,ae.emissivemap,ae.bumpmap,ae.normalmap,ae.displacementmap,ae.fog,ae.lights,{emissive:{value:new Je(0)},specular:{value:new Je(1118481)},shininess:{value:30}}]),vertexShader:De.meshphong_vert,fragmentShader:De.meshphong_frag},standard:{uniforms:Vt([ae.common,ae.envmap,ae.aomap,ae.lightmap,ae.emissivemap,ae.bumpmap,ae.normalmap,ae.displacementmap,ae.roughnessmap,ae.metalnessmap,ae.fog,ae.lights,{emissive:{value:new Je(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:De.meshphysical_vert,fragmentShader:De.meshphysical_frag},toon:{uniforms:Vt([ae.common,ae.aomap,ae.lightmap,ae.emissivemap,ae.bumpmap,ae.normalmap,ae.displacementmap,ae.gradientmap,ae.fog,ae.lights,{emissive:{value:new Je(0)}}]),vertexShader:De.meshtoon_vert,fragmentShader:De.meshtoon_frag},matcap:{uniforms:Vt([ae.common,ae.bumpmap,ae.normalmap,ae.displacementmap,ae.fog,{matcap:{value:null}}]),vertexShader:De.meshmatcap_vert,fragmentShader:De.meshmatcap_frag},points:{uniforms:Vt([ae.points,ae.fog]),vertexShader:De.points_vert,fragmentShader:De.points_frag},dashed:{uniforms:Vt([ae.common,ae.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:De.linedashed_vert,fragmentShader:De.linedashed_frag},depth:{uniforms:Vt([ae.common,ae.displacementmap]),vertexShader:De.depth_vert,fragmentShader:De.depth_frag},normal:{uniforms:Vt([ae.common,ae.bumpmap,ae.normalmap,ae.displacementmap,{opacity:{value:1}}]),vertexShader:De.meshnormal_vert,fragmentShader:De.meshnormal_frag},sprite:{uniforms:Vt([ae.sprite,ae.fog]),vertexShader:De.sprite_vert,fragmentShader:De.sprite_frag},background:{uniforms:{uvTransform:{value:new Ie},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:De.background_vert,fragmentShader:De.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ie}},vertexShader:De.backgroundCube_vert,fragmentShader:De.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:De.cube_vert,fragmentShader:De.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:De.equirect_vert,fragmentShader:De.equirect_frag},distanceRGBA:{uniforms:Vt([ae.common,ae.displacementmap,{referencePosition:{value:new N},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:De.distanceRGBA_vert,fragmentShader:De.distanceRGBA_frag},shadow:{uniforms:Vt([ae.lights,ae.fog,{color:{value:new Je(0)},opacity:{value:1}}]),vertexShader:De.shadow_vert,fragmentShader:De.shadow_frag}};kn.physical={uniforms:Vt([kn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ie},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ie},clearcoatNormalScale:{value:new Ee(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ie},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ie},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ie},sheen:{value:0},sheenColor:{value:new Je(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ie},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ie},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ie},transmissionSamplerSize:{value:new Ee},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ie},attenuationDistance:{value:0},attenuationColor:{value:new Je(0)},specularColor:{value:new Je(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ie},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ie},anisotropyVector:{value:new Ee},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ie}}]),vertexShader:De.meshphysical_vert,fragmentShader:De.meshphysical_frag};const Ma={r:0,b:0,g:0},ir=new ci,wE=new xt;function AE(t,e,n,i,r,o,s){const a=new Je(0);let l=o===!0?0:1,u,f,h=null,d=0,m=null;function v(g){let _=g.isScene===!0?g.background:null;return _&&_.isTexture&&(_=(g.backgroundBlurriness>0?n:e).get(_)),_}function y(g){let _=!1;const E=v(g);E===null?c(a,l):E&&E.isColor&&(c(E,1),_=!0);const P=t.xr.getEnvironmentBlendMode();P==="additive"?i.buffers.color.setClear(0,0,0,1,s):P==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,s),(t.autoClear||_)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil)}function p(g,_){const E=v(_);E&&(E.isCubeTexture||E.mapping===Ll)?(f===void 0&&(f=new Ln(new Er(1,1,1),new fi({name:"BackgroundCubeMaterial",uniforms:Ro(kn.backgroundCube.uniforms),vertexShader:kn.backgroundCube.vertexShader,fragmentShader:kn.backgroundCube.fragmentShader,side:Jt,depthTest:!1,depthWrite:!1,fog:!1})),f.geometry.deleteAttribute("normal"),f.geometry.deleteAttribute("uv"),f.onBeforeRender=function(P,R,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(f.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(f)),ir.copy(_.backgroundRotation),ir.x*=-1,ir.y*=-1,ir.z*=-1,E.isCubeTexture&&E.isRenderTargetTexture===!1&&(ir.y*=-1,ir.z*=-1),f.material.uniforms.envMap.value=E,f.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,f.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,f.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,f.material.uniforms.backgroundRotation.value.setFromMatrix4(wE.makeRotationFromEuler(ir)),f.material.toneMapped=Qe.getTransfer(E.colorSpace)!==it,(h!==E||d!==E.version||m!==t.toneMapping)&&(f.material.needsUpdate=!0,h=E,d=E.version,m=t.toneMapping),f.layers.enableAll(),g.unshift(f,f.geometry,f.material,0,0,null)):E&&E.isTexture&&(u===void 0&&(u=new Ln(new Nl(2,2),new fi({name:"BackgroundMaterial",uniforms:Ro(kn.background.uniforms),vertexShader:kn.background.vertexShader,fragmentShader:kn.background.fragmentShader,side:Xi,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(u)),u.material.uniforms.t2D.value=E,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=Qe.getTransfer(E.colorSpace)!==it,E.matrixAutoUpdate===!0&&E.updateMatrix(),u.material.uniforms.uvTransform.value.copy(E.matrix),(h!==E||d!==E.version||m!==t.toneMapping)&&(u.material.needsUpdate=!0,h=E,d=E.version,m=t.toneMapping),u.layers.enableAll(),g.unshift(u,u.geometry,u.material,0,0,null))}function c(g,_){g.getRGB(Ma,u_(t)),i.buffers.color.setClear(Ma.r,Ma.g,Ma.b,_,s)}return{getClearColor:function(){return a},setClearColor:function(g,_=1){a.set(g),l=_,c(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(g){l=g,c(a,l)},render:y,addToRenderList:p}}function RE(t,e){const n=t.getParameter(t.MAX_VERTEX_ATTRIBS),i={},r=d(null);let o=r,s=!1;function a(S,O,j,D,q){let Y=!1;const J=h(D,j,O);o!==J&&(o=J,u(o.object)),Y=m(S,D,j,q),Y&&v(S,D,j,q),q!==null&&e.update(q,t.ELEMENT_ARRAY_BUFFER),(Y||s)&&(s=!1,E(S,O,j,D),q!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e.get(q).buffer))}function l(){return t.createVertexArray()}function u(S){return t.bindVertexArray(S)}function f(S){return t.deleteVertexArray(S)}function h(S,O,j){const D=j.wireframe===!0;let q=i[S.id];q===void 0&&(q={},i[S.id]=q);let Y=q[O.id];Y===void 0&&(Y={},q[O.id]=Y);let J=Y[D];return J===void 0&&(J=d(l()),Y[D]=J),J}function d(S){const O=[],j=[],D=[];for(let q=0;q=0){const X=q[L];let se=Y[L];if(se===void 0&&(L==="instanceMatrix"&&S.instanceMatrix&&(se=S.instanceMatrix),L==="instanceColor"&&S.instanceColor&&(se=S.instanceColor)),X===void 0||X.attribute!==se||se&&X.data!==se.data)return!0;J++}return o.attributesNum!==J||o.index!==D}function v(S,O,j,D){const q={},Y=O.attributes;let J=0;const te=j.getAttributes();for(const L in te)if(te[L].location>=0){let X=Y[L];X===void 0&&(L==="instanceMatrix"&&S.instanceMatrix&&(X=S.instanceMatrix),L==="instanceColor"&&S.instanceColor&&(X=S.instanceColor));const se={};se.attribute=X,X&&X.data&&(se.data=X.data),q[L]=se,J++}o.attributes=q,o.attributesNum=J,o.index=D}function y(){const S=o.newAttributes;for(let O=0,j=S.length;O=0){let W=q[te];if(W===void 0&&(te==="instanceMatrix"&&S.instanceMatrix&&(W=S.instanceMatrix),te==="instanceColor"&&S.instanceColor&&(W=S.instanceColor)),W!==void 0){const X=W.normalized,se=W.itemSize,me=e.get(W);if(me===void 0)continue;const Ge=me.buffer,G=me.type,ne=me.bytesPerElement,fe=G===t.INT||G===t.UNSIGNED_INT||W.gpuType===qg;if(W.isInterleavedBufferAttribute){const oe=W.data,ke=oe.stride,Ne=W.offset;if(oe.isInstancedInterleavedBuffer){for(let F=0;F0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";R="mediump"}return R==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let u=n.precision!==void 0?n.precision:"highp";const f=l(u);f!==u&&(console.warn("THREE.WebGLRenderer:",u,"not supported, using",f,"instead."),u=f);const h=n.logarithmicDepthBuffer===!0,d=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),m=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),v=t.getParameter(t.MAX_TEXTURE_SIZE),y=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),p=t.getParameter(t.MAX_VERTEX_ATTRIBS),c=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),g=t.getParameter(t.MAX_VARYING_VECTORS),_=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),E=m>0,P=t.getParameter(t.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:o,getMaxPrecision:l,textureFormatReadable:s,textureTypeReadable:a,precision:u,logarithmicDepthBuffer:h,maxTextures:d,maxVertexTextures:m,maxTextureSize:v,maxCubemapSize:y,maxAttributes:p,maxVertexUniforms:c,maxVaryings:g,maxFragmentUniforms:_,vertexTextures:E,maxSamples:P}}function LE(t){const e=this;let n=null,i=0,r=!1,o=!1;const s=new Ai,a=new Ie,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,d){const m=h.length!==0||d||i!==0||r;return r=d,i=h.length,m},this.beginShadows=function(){o=!0,f(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(h,d){n=f(h,d,0)},this.setState=function(h,d,m){const v=h.clippingPlanes,y=h.clipIntersection,p=h.clipShadows,c=t.get(h);if(!r||v===null||v.length===0||o&&!p)o?f(null):u();else{const g=o?0:i,_=g*4;let E=c.clippingState||null;l.value=E,E=f(v,d,_,m);for(let P=0;P!==_;++P)E[P]=n[P];c.clippingState=E,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=g}};function u(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function f(h,d,m,v){const y=h!==null?h.length:0;let p=null;if(y!==0){if(p=l.value,v!==!0||p===null){const c=m+y*4,g=d.matrixWorldInverse;a.getNormalMatrix(g),(p===null||p.length0){const u=new Vy(l.height);return u.fromEquirectangularTexture(t,s),e.set(s,u),s.addEventListener("dispose",r),n(u.texture,s.mapping)}else return null}}return s}function r(s){const a=s.target;a.removeEventListener("dispose",r);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function o(){e=new WeakMap}return{get:i,dispose:o}}class DE extends c_{constructor(e=-1,n=1,i=1,r=-1,o=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=i,this.bottom=r,this.near=o,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,i,r,o,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let o=i-e,s=i+e,a=r+n,l=r-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,f=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o+=u*this.view.offsetX,s=o+u*this.view.width,a-=f*this.view.offsetY,l=a-f*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const so=4,rp=[.125,.215,.35,.446,.526,.582],ur=20,Uu=new DE,op=new Je;let Ou=null,Fu=0,ku=0,zu=!1;const ar=(1+Math.sqrt(5))/2,jr=1/ar,sp=[new N(-ar,jr,0),new N(ar,jr,0),new N(-jr,0,ar),new N(jr,0,ar),new N(0,ar,-jr),new N(0,ar,jr),new N(-1,1,-1),new N(1,1,-1),new N(-1,1,1),new N(1,1,1)];class ap{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,i=.1,r=100){Ou=this._renderer.getRenderTarget(),Fu=this._renderer.getActiveCubeFace(),ku=this._renderer.getActiveMipmapLevel(),zu=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,i,r,o),n>0&&this._blur(o,0,0,n),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=cp(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=up(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?_:0,_,_),f.setRenderTarget(r),y&&f.render(v,a),f.render(e,a)}v.geometry.dispose(),v.material.dispose(),f.toneMapping=d,f.autoClear=h,e.background=p}_textureToCubeUV(e,n){const i=this._renderer,r=e.mapping===To||e.mapping===wo;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=cp()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=up());const o=r?this._cubemapMaterial:this._equirectMaterial,s=new Ln(this._lodPlanes[0],o),a=o.uniforms;a.envMap.value=e;const l=this._cubeSize;Ea(n,0,0,3*l,2*l),i.setRenderTarget(n),i.render(s,Uu)}_applyPMREM(e){const n=this._renderer,i=n.autoClear;n.autoClear=!1;const r=this._lodPlanes.length;for(let o=1;our&&console.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${ur}`);const c=[];let g=0;for(let A=0;A_-so?r-_+so:0),R=4*(this._cubeSize-E);Ea(n,P,R,3*E,2*E),l.setRenderTarget(n),l.render(h,Uu)}}function IE(t){const e=[],n=[],i=[];let r=t;const o=t-so+1+rp.length;for(let s=0;st-so?l=rp[s-t+so-1]:s===0&&(l=0),i.push(l);const u=1/(a-2),f=-u,h=1+u,d=[f,f,h,f,h,h,f,f,h,h,f,h],m=6,v=6,y=3,p=2,c=1,g=new Float32Array(y*v*m),_=new Float32Array(p*v*m),E=new Float32Array(c*v*m);for(let R=0;R2?0:-1,w=[A,b,0,A+2/3,b,0,A+2/3,b+1,0,A,b,0,A+2/3,b+1,0,A,b+1,0];g.set(w,y*v*R),_.set(d,p*v*R);const S=[R,R,R,R,R,R];E.set(S,c*v*R)}const P=new hi;P.setAttribute("position",new In(g,y)),P.setAttribute("uv",new In(_,p)),P.setAttribute("faceIndex",new In(E,c)),e.push(P),r>so&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}function lp(t,e,n){const i=new Mr(t,e,n);return i.texture.mapping=Ll,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Ea(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function NE(t,e,n){const i=new Float32Array(ur),r=new N(0,1,0);return new fi({name:"SphericalGaussianBlur",defines:{n:ur,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Gf(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:Hi,depthTest:!1,depthWrite:!1})}function up(){return new fi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Gf(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:Hi,depthTest:!1,depthWrite:!1})}function cp(){return new fi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Gf(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:Hi,depthTest:!1,depthWrite:!1})}function Gf(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function UE(t){let e=new WeakMap,n=null;function i(a){if(a&&a.isTexture){const l=a.mapping,u=l===kc||l===zc,f=l===To||l===wo;if(u||f){let h=e.get(a);const d=h!==void 0?h.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==d)return n===null&&(n=new ap(t)),h=u?n.fromEquirectangular(a,h):n.fromCubemap(a,h),h.texture.pmremVersion=a.pmremVersion,e.set(a,h),h.texture;if(h!==void 0)return h.texture;{const m=a.image;return u&&m&&m.height>0||f&&m&&r(m)?(n===null&&(n=new ap(t)),h=u?n.fromEquirectangular(a):n.fromCubemap(a),h.texture.pmremVersion=a.pmremVersion,e.set(a,h),a.addEventListener("dispose",o),h.texture):null}}}return a}function r(a){let l=0;const u=6;for(let f=0;fe.maxTextureSize&&(R=Math.ceil(P/e.maxTextureSize),P=e.maxTextureSize);const A=new Float32Array(P*R*4*h),b=new i_(A,P,R,h);b.type=Di,b.needsUpdate=!0;const w=E*4;for(let O=0;O0)return t;const r=e*n;let o=fp[r];if(o===void 0&&(o=new Float32Array(r),fp[r]=o),e!==0){i.toArray(o,0);for(let s=1,a=0;s!==e;++s)a+=n,t[s].toArray(o,a)}return o}function Mt(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n":" "} ${a}: ${n[s]}`)}return i.join(` +`)}function U1(t){const e=Qe.getPrimaries(Qe.workingColorSpace),n=Qe.getPrimaries(t);let i;switch(e===n?i="":e===fl&&n===cl?i="LinearDisplayP3ToLinearSRGB":e===cl&&n===fl&&(i="LinearSRGBToLinearDisplayP3"),t){case Zi:case Dl:return[i,"LinearTransferOETF"];case Fn:case zf:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[i,"LinearTransferOETF"]}}function vp(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),r=t.getShaderInfoLog(e).trim();if(i&&r==="")return"";const o=/ERROR: 0:(\d+)/.exec(r);if(o){const s=parseInt(o[1]);return n.toUpperCase()+` + +`+r+` + +`+N1(t.getShaderSource(e),s)}else return r}function O1(t,e){const n=U1(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function F1(t,e){let n;switch(e){case Rx:n="Linear";break;case Cx:n="Reinhard";break;case Px:n="OptimizedCineon";break;case Lx:n="ACESFilmic";break;case Dx:n="AgX";break;case Ix:n="Neutral";break;case bx:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function k1(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",t.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Qo).join(` +`)}function z1(t){const e=[];for(const n in t){const i=t[n];i!==!1&&e.push("#define "+n+" "+i)}return e.join(` +`)}function B1(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let r=0;r/gm;function Vc(t){return t.replace(H1,G1)}const V1=new Map;function G1(t,e){let n=De[e];if(n===void 0){const i=V1.get(e);if(i!==void 0)n=De[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return Vc(n)}const W1=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Sp(t){return t.replace(W1,X1)}function X1(t,e,n,i){let r="";for(let o=parseInt(e);o0&&(p+=` +`),c=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v].filter(Qo).join(` +`),c.length>0&&(c+=` +`)):(p=[Mp(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(Qo).join(` +`),c=[Mp(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+f:"",n.envMap?"#define "+h:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Vi?"#define TONE_MAPPING":"",n.toneMapping!==Vi?De.tonemapping_pars_fragment:"",n.toneMapping!==Vi?F1("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",De.colorspace_pars_fragment,O1("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` +`].filter(Qo).join(` +`)),s=Vc(s),s=xp(s,n),s=yp(s,n),a=Vc(a),a=xp(a,n),a=yp(a,n),s=Sp(s),a=Sp(a),n.isRawShaderMaterial!==!0&&(g=`#version 300 es +`,p=[m,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+p,c=["#define varying in",n.glslVersion===Fh?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Fh?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+c);const _=g+p+s,E=g+c+a,P=_p(r,r.VERTEX_SHADER,_),R=_p(r,r.FRAGMENT_SHADER,E);r.attachShader(y,P),r.attachShader(y,R),n.index0AttributeName!==void 0?r.bindAttribLocation(y,0,n.index0AttributeName):n.morphTargets===!0&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y);function A(O){if(t.debug.checkShaderErrors){const j=r.getProgramInfoLog(y).trim(),D=r.getShaderInfoLog(P).trim(),q=r.getShaderInfoLog(R).trim();let Y=!0,J=!0;if(r.getProgramParameter(y,r.LINK_STATUS)===!1)if(Y=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(r,y,P,R);else{const te=vp(r,P,"vertex"),L=vp(r,R,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(y,r.VALIDATE_STATUS)+` + +Material Name: `+O.name+` +Material Type: `+O.type+` + +Program Info Log: `+j+` +`+te+` +`+L)}else j!==""?console.warn("THREE.WebGLProgram: Program Info Log:",j):(D===""||q==="")&&(J=!1);J&&(O.diagnostics={runnable:Y,programLog:j,vertexShader:{log:D,prefix:p},fragmentShader:{log:q,prefix:c}})}r.deleteShader(P),r.deleteShader(R),b=new Fa(r,y),w=B1(r,y)}let b;this.getUniforms=function(){return b===void 0&&A(this),b};let w;this.getAttributes=function(){return w===void 0&&A(this),w};let S=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return S===!1&&(S=r.getProgramParameter(y,D1)),S},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(y),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=I1++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=P,this.fragmentShader=R,this}let Q1=0;class J1{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,i=e.fragmentShader,r=this._getShaderStage(n),o=this._getShaderStage(i),s=this._getShaderCacheForMaterial(e);return s.has(r)===!1&&(s.add(r),r.usedTimes++),s.has(o)===!1&&(s.add(o),o.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const i of n)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let i=n.get(e);return i===void 0&&(i=new Set,n.set(e,i)),i}_getShaderStage(e){const n=this.shaderCache;let i=n.get(e);return i===void 0&&(i=new eT(e),n.set(e,i)),i}}class eT{constructor(e){this.id=Q1++,this.code=e,this.usedTimes=0}}function tT(t,e,n,i,r,o,s){const a=new o_,l=new J1,u=new Set,f=[],h=r.logarithmicDepthBuffer,d=r.vertexTextures;let m=r.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(w){return u.add(w),w===0?"uv":`uv${w}`}function p(w,S,O,j,D){const q=j.fog,Y=D.geometry,J=w.isMeshStandardMaterial?j.environment:null,te=(w.isMeshStandardMaterial?n:e).get(w.envMap||J),L=te&&te.mapping===Ll?te.image.height:null,W=v[w.type];w.precision!==null&&(m=r.getMaxPrecision(w.precision),m!==w.precision&&console.warn("THREE.WebGLProgram.getParameters:",w.precision,"not supported, using",m,"instead."));const X=Y.morphAttributes.position||Y.morphAttributes.normal||Y.morphAttributes.color,se=X!==void 0?X.length:0;let me=0;Y.morphAttributes.position!==void 0&&(me=1),Y.morphAttributes.normal!==void 0&&(me=2),Y.morphAttributes.color!==void 0&&(me=3);let Ge,G,ne,fe;if(W){const Xe=kn[W];Ge=Xe.vertexShader,G=Xe.fragmentShader}else Ge=w.vertexShader,G=w.fragmentShader,l.update(w),ne=l.getVertexShaderID(w),fe=l.getFragmentShaderID(w);const oe=t.getRenderTarget(),ke=D.isInstancedMesh===!0,Ne=D.isBatchedMesh===!0,F=!!w.map,$e=!!w.matcap,xe=!!te,Ke=!!w.aoMap,Se=!!w.lightMap,ze=!!w.bumpMap,Re=!!w.normalMap,He=!!w.displacementMap,ot=!!w.emissiveMap,C=!!w.metalnessMap,M=!!w.roughnessMap,V=w.anisotropy>0,$=w.clearcoat>0,Z=w.dispersion>0,Q=w.iridescence>0,ve=w.sheen>0,ue=w.transmission>0,le=V&&!!w.anisotropyMap,Te=$&&!!w.clearcoatMap,re=$&&!!w.clearcoatNormalMap,_e=$&&!!w.clearcoatRoughnessMap,Ve=Q&&!!w.iridescenceMap,ye=Q&&!!w.iridescenceThicknessMap,he=ve&&!!w.sheenColorMap,Ce=ve&&!!w.sheenRoughnessMap,Ue=!!w.specularMap,Ze=!!w.specularColorMap,Le=!!w.specularIntensityMap,x=ue&&!!w.transmissionMap,I=ue&&!!w.thicknessMap,k=!!w.gradientMap,K=!!w.alphaMap,ie=w.alphaTest>0,Pe=!!w.alphaHash,Oe=!!w.extensions;let lt=Vi;w.toneMapped&&(oe===null||oe.isXRRenderTarget===!0)&&(lt=t.toneMapping);const Tt={shaderID:W,shaderType:w.type,shaderName:w.name,vertexShader:Ge,fragmentShader:G,defines:w.defines,customVertexShaderID:ne,customFragmentShaderID:fe,isRawShaderMaterial:w.isRawShaderMaterial===!0,glslVersion:w.glslVersion,precision:m,batching:Ne,instancing:ke,instancingColor:ke&&D.instanceColor!==null,instancingMorph:ke&&D.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:oe===null?t.outputColorSpace:oe.isXRRenderTarget===!0?oe.texture.colorSpace:Zi,alphaToCoverage:!!w.alphaToCoverage,map:F,matcap:$e,envMap:xe,envMapMode:xe&&te.mapping,envMapCubeUVHeight:L,aoMap:Ke,lightMap:Se,bumpMap:ze,normalMap:Re,displacementMap:d&&He,emissiveMap:ot,normalMapObjectSpace:Re&&w.normalMapType===qx,normalMapTangentSpace:Re&&w.normalMapType===Yx,metalnessMap:C,roughnessMap:M,anisotropy:V,anisotropyMap:le,clearcoat:$,clearcoatMap:Te,clearcoatNormalMap:re,clearcoatRoughnessMap:_e,dispersion:Z,iridescence:Q,iridescenceMap:Ve,iridescenceThicknessMap:ye,sheen:ve,sheenColorMap:he,sheenRoughnessMap:Ce,specularMap:Ue,specularColorMap:Ze,specularIntensityMap:Le,transmission:ue,transmissionMap:x,thicknessMap:I,gradientMap:k,opaque:w.transparent===!1&&w.blending===po&&w.alphaToCoverage===!1,alphaMap:K,alphaTest:ie,alphaHash:Pe,combine:w.combine,mapUv:F&&y(w.map.channel),aoMapUv:Ke&&y(w.aoMap.channel),lightMapUv:Se&&y(w.lightMap.channel),bumpMapUv:ze&&y(w.bumpMap.channel),normalMapUv:Re&&y(w.normalMap.channel),displacementMapUv:He&&y(w.displacementMap.channel),emissiveMapUv:ot&&y(w.emissiveMap.channel),metalnessMapUv:C&&y(w.metalnessMap.channel),roughnessMapUv:M&&y(w.roughnessMap.channel),anisotropyMapUv:le&&y(w.anisotropyMap.channel),clearcoatMapUv:Te&&y(w.clearcoatMap.channel),clearcoatNormalMapUv:re&&y(w.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:_e&&y(w.clearcoatRoughnessMap.channel),iridescenceMapUv:Ve&&y(w.iridescenceMap.channel),iridescenceThicknessMapUv:ye&&y(w.iridescenceThicknessMap.channel),sheenColorMapUv:he&&y(w.sheenColorMap.channel),sheenRoughnessMapUv:Ce&&y(w.sheenRoughnessMap.channel),specularMapUv:Ue&&y(w.specularMap.channel),specularColorMapUv:Ze&&y(w.specularColorMap.channel),specularIntensityMapUv:Le&&y(w.specularIntensityMap.channel),transmissionMapUv:x&&y(w.transmissionMap.channel),thicknessMapUv:I&&y(w.thicknessMap.channel),alphaMapUv:K&&y(w.alphaMap.channel),vertexTangents:!!Y.attributes.tangent&&(Re||V),vertexColors:w.vertexColors,vertexAlphas:w.vertexColors===!0&&!!Y.attributes.color&&Y.attributes.color.itemSize===4,pointsUvs:D.isPoints===!0&&!!Y.attributes.uv&&(F||K),fog:!!q,useFog:w.fog===!0,fogExp2:!!q&&q.isFogExp2,flatShading:w.flatShading===!0,sizeAttenuation:w.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:D.isSkinnedMesh===!0,morphTargets:Y.morphAttributes.position!==void 0,morphNormals:Y.morphAttributes.normal!==void 0,morphColors:Y.morphAttributes.color!==void 0,morphTargetsCount:se,morphTextureStride:me,numDirLights:S.directional.length,numPointLights:S.point.length,numSpotLights:S.spot.length,numSpotLightMaps:S.spotLightMap.length,numRectAreaLights:S.rectArea.length,numHemiLights:S.hemi.length,numDirLightShadows:S.directionalShadowMap.length,numPointLightShadows:S.pointShadowMap.length,numSpotLightShadows:S.spotShadowMap.length,numSpotLightShadowsWithMaps:S.numSpotLightShadowsWithMaps,numLightProbes:S.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:w.dithering,shadowMapEnabled:t.shadowMap.enabled&&O.length>0,shadowMapType:t.shadowMap.type,toneMapping:lt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:F&&w.map.isVideoTexture===!0&&Qe.getTransfer(w.map.colorSpace)===it,premultipliedAlpha:w.premultipliedAlpha,doubleSided:w.side===ti,flipSided:w.side===Jt,useDepthPacking:w.depthPacking>=0,depthPacking:w.depthPacking||0,index0AttributeName:w.index0AttributeName,extensionClipCullDistance:Oe&&w.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:Oe&&w.extensions.multiDraw===!0&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:w.customProgramCacheKey()};return Tt.vertexUv1s=u.has(1),Tt.vertexUv2s=u.has(2),Tt.vertexUv3s=u.has(3),u.clear(),Tt}function c(w){const S=[];if(w.shaderID?S.push(w.shaderID):(S.push(w.customVertexShaderID),S.push(w.customFragmentShaderID)),w.defines!==void 0)for(const O in w.defines)S.push(O),S.push(w.defines[O]);return w.isRawShaderMaterial===!1&&(g(S,w),_(S,w),S.push(t.outputColorSpace)),S.push(w.customProgramCacheKey),S.join()}function g(w,S){w.push(S.precision),w.push(S.outputColorSpace),w.push(S.envMapMode),w.push(S.envMapCubeUVHeight),w.push(S.mapUv),w.push(S.alphaMapUv),w.push(S.lightMapUv),w.push(S.aoMapUv),w.push(S.bumpMapUv),w.push(S.normalMapUv),w.push(S.displacementMapUv),w.push(S.emissiveMapUv),w.push(S.metalnessMapUv),w.push(S.roughnessMapUv),w.push(S.anisotropyMapUv),w.push(S.clearcoatMapUv),w.push(S.clearcoatNormalMapUv),w.push(S.clearcoatRoughnessMapUv),w.push(S.iridescenceMapUv),w.push(S.iridescenceThicknessMapUv),w.push(S.sheenColorMapUv),w.push(S.sheenRoughnessMapUv),w.push(S.specularMapUv),w.push(S.specularColorMapUv),w.push(S.specularIntensityMapUv),w.push(S.transmissionMapUv),w.push(S.thicknessMapUv),w.push(S.combine),w.push(S.fogExp2),w.push(S.sizeAttenuation),w.push(S.morphTargetsCount),w.push(S.morphAttributeCount),w.push(S.numDirLights),w.push(S.numPointLights),w.push(S.numSpotLights),w.push(S.numSpotLightMaps),w.push(S.numHemiLights),w.push(S.numRectAreaLights),w.push(S.numDirLightShadows),w.push(S.numPointLightShadows),w.push(S.numSpotLightShadows),w.push(S.numSpotLightShadowsWithMaps),w.push(S.numLightProbes),w.push(S.shadowMapType),w.push(S.toneMapping),w.push(S.numClippingPlanes),w.push(S.numClipIntersection),w.push(S.depthPacking)}function _(w,S){a.disableAll(),S.supportsVertexTextures&&a.enable(0),S.instancing&&a.enable(1),S.instancingColor&&a.enable(2),S.instancingMorph&&a.enable(3),S.matcap&&a.enable(4),S.envMap&&a.enable(5),S.normalMapObjectSpace&&a.enable(6),S.normalMapTangentSpace&&a.enable(7),S.clearcoat&&a.enable(8),S.iridescence&&a.enable(9),S.alphaTest&&a.enable(10),S.vertexColors&&a.enable(11),S.vertexAlphas&&a.enable(12),S.vertexUv1s&&a.enable(13),S.vertexUv2s&&a.enable(14),S.vertexUv3s&&a.enable(15),S.vertexTangents&&a.enable(16),S.anisotropy&&a.enable(17),S.alphaHash&&a.enable(18),S.batching&&a.enable(19),S.dispersion&&a.enable(20),w.push(a.mask),a.disableAll(),S.fog&&a.enable(0),S.useFog&&a.enable(1),S.flatShading&&a.enable(2),S.logarithmicDepthBuffer&&a.enable(3),S.skinning&&a.enable(4),S.morphTargets&&a.enable(5),S.morphNormals&&a.enable(6),S.morphColors&&a.enable(7),S.premultipliedAlpha&&a.enable(8),S.shadowMapEnabled&&a.enable(9),S.useLegacyLights&&a.enable(10),S.doubleSided&&a.enable(11),S.flipSided&&a.enable(12),S.useDepthPacking&&a.enable(13),S.dithering&&a.enable(14),S.transmission&&a.enable(15),S.sheen&&a.enable(16),S.opaque&&a.enable(17),S.pointsUvs&&a.enable(18),S.decodeVideoTexture&&a.enable(19),S.alphaToCoverage&&a.enable(20),w.push(a.mask)}function E(w){const S=v[w.type];let O;if(S){const j=kn[S];O=ky.clone(j.uniforms)}else O=w.uniforms;return O}function P(w,S){let O;for(let j=0,D=f.length;j0?i.push(c):m.transparent===!0?r.push(c):n.push(c)}function l(h,d,m,v,y,p){const c=s(h,d,m,v,y,p);m.transmission>0?i.unshift(c):m.transparent===!0?r.unshift(c):n.unshift(c)}function u(h,d){n.length>1&&n.sort(h||iT),i.length>1&&i.sort(d||Ep),r.length>1&&r.sort(d||Ep)}function f(){for(let h=e,d=t.length;h=o.length?(s=new Tp,o.push(s)):s=o[r],s}function n(){t=new WeakMap}return{get:e,dispose:n}}function oT(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new N,color:new Je};break;case"SpotLight":n={position:new N,direction:new N,color:new Je,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new N,color:new Je,distance:0,decay:0};break;case"HemisphereLight":n={direction:new N,skyColor:new Je,groundColor:new Je};break;case"RectAreaLight":n={color:new Je,position:new N,halfWidth:new N,halfHeight:new N};break}return t[e.id]=n,n}}}function sT(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ee};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ee};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ee,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let aT=0;function lT(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function uT(t){const e=new oT,n=sT(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)i.probe.push(new N);const r=new N,o=new xt,s=new xt;function a(u,f){let h=0,d=0,m=0;for(let O=0;O<9;O++)i.probe[O].set(0,0,0);let v=0,y=0,p=0,c=0,g=0,_=0,E=0,P=0,R=0,A=0,b=0;u.sort(lT);const w=f===!0?Math.PI:1;for(let O=0,j=u.length;O0&&(t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=ae.LTC_FLOAT_1,i.rectAreaLTC2=ae.LTC_FLOAT_2):(i.rectAreaLTC1=ae.LTC_HALF_1,i.rectAreaLTC2=ae.LTC_HALF_2)),i.ambient[0]=h,i.ambient[1]=d,i.ambient[2]=m;const S=i.hash;(S.directionalLength!==v||S.pointLength!==y||S.spotLength!==p||S.rectAreaLength!==c||S.hemiLength!==g||S.numDirectionalShadows!==_||S.numPointShadows!==E||S.numSpotShadows!==P||S.numSpotMaps!==R||S.numLightProbes!==b)&&(i.directional.length=v,i.spot.length=p,i.rectArea.length=c,i.point.length=y,i.hemi.length=g,i.directionalShadow.length=_,i.directionalShadowMap.length=_,i.pointShadow.length=E,i.pointShadowMap.length=E,i.spotShadow.length=P,i.spotShadowMap.length=P,i.directionalShadowMatrix.length=_,i.pointShadowMatrix.length=E,i.spotLightMatrix.length=P+R-A,i.spotLightMap.length=R,i.numSpotLightShadowsWithMaps=A,i.numLightProbes=b,S.directionalLength=v,S.pointLength=y,S.spotLength=p,S.rectAreaLength=c,S.hemiLength=g,S.numDirectionalShadows=_,S.numPointShadows=E,S.numSpotShadows=P,S.numSpotMaps=R,S.numLightProbes=b,i.version=aT++)}function l(u,f){let h=0,d=0,m=0,v=0,y=0;const p=f.matrixWorldInverse;for(let c=0,g=u.length;c=s.length?(a=new wp(t),s.push(a)):a=s[o],a}function i(){e=new WeakMap}return{get:n,dispose:i}}class fT extends Il{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Xx,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class dT extends Il{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const hT=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,pT=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function mT(t,e,n){let i=new d_;const r=new Ee,o=new Ee,s=new Pt,a=new fT({depthPacking:jx}),l=new dT,u={},f=n.maxTextureSize,h={[Xi]:Jt,[Jt]:Xi,[ti]:ti},d=new fi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Ee},radius:{value:4}},vertexShader:hT,fragmentShader:pT}),m=d.clone();m.defines.HORIZONTAL_PASS=1;const v=new hi;v.setAttribute("position",new In(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Ln(v,d),p=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Wg;let c=this.type;this.render=function(R,A,b){if(p.enabled===!1||p.autoUpdate===!1&&p.needsUpdate===!1||R.length===0)return;const w=t.getRenderTarget(),S=t.getActiveCubeFace(),O=t.getActiveMipmapLevel(),j=t.state;j.setBlending(Hi),j.buffers.color.setClear(1,1,1,1),j.buffers.depth.setTest(!0),j.setScissorTest(!1);const D=c!==Qn&&this.type===Qn,q=c===Qn&&this.type!==Qn;for(let Y=0,J=R.length;Yf||r.y>f)&&(r.x>f&&(o.x=Math.floor(f/W.x),r.x=o.x*W.x,L.mapSize.x=o.x),r.y>f&&(o.y=Math.floor(f/W.y),r.y=o.y*W.y,L.mapSize.y=o.y)),L.map===null||D===!0||q===!0){const se=this.type!==Qn?{minFilter:vn,magFilter:vn}:{};L.map!==null&&L.map.dispose(),L.map=new Mr(r.x,r.y,se),L.map.texture.name=te.name+".shadowMap",L.camera.updateProjectionMatrix()}t.setRenderTarget(L.map),t.clear();const X=L.getViewportCount();for(let se=0;se0||A.map&&A.alphaTest>0){const j=S.uuid,D=A.uuid;let q=u[j];q===void 0&&(q={},u[j]=q);let Y=q[D];Y===void 0&&(Y=S.clone(),q[D]=Y,A.addEventListener("dispose",P)),S=Y}if(S.visible=A.visible,S.wireframe=A.wireframe,w===Qn?S.side=A.shadowSide!==null?A.shadowSide:A.side:S.side=A.shadowSide!==null?A.shadowSide:h[A.side],S.alphaMap=A.alphaMap,S.alphaTest=A.alphaTest,S.map=A.map,S.clipShadows=A.clipShadows,S.clippingPlanes=A.clippingPlanes,S.clipIntersection=A.clipIntersection,S.displacementMap=A.displacementMap,S.displacementScale=A.displacementScale,S.displacementBias=A.displacementBias,S.wireframeLinewidth=A.wireframeLinewidth,S.linewidth=A.linewidth,b.isPointLight===!0&&S.isMeshDistanceMaterial===!0){const j=t.properties.get(S);j.light=b}return S}function E(R,A,b,w,S){if(R.visible===!1)return;if(R.layers.test(A.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&S===Qn)&&(!R.frustumCulled||i.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(b.matrixWorldInverse,R.matrixWorld);const D=e.update(R),q=R.material;if(Array.isArray(q)){const Y=D.groups;for(let J=0,te=Y.length;J=1):te.indexOf("OpenGL ES")!==-1&&(J=parseFloat(/^OpenGL ES (\d)/.exec(te)[1]),Y=J>=2);let L=null,W={};const X=t.getParameter(t.SCISSOR_BOX),se=t.getParameter(t.VIEWPORT),me=new Pt().fromArray(X),Ge=new Pt().fromArray(se);function G(x,I,k,K){const ie=new Uint8Array(4),Pe=t.createTexture();t.bindTexture(x,Pe),t.texParameteri(x,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(x,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Oe=0;Oe"u"?!1:/OculusBrowser/g.test(navigator.userAgent),u=new Ee,f=new WeakMap;let h;const d=new WeakMap;let m=!1;try{m=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(C,M){return m?new OffscreenCanvas(C,M):Ls("canvas")}function y(C,M,V){let $=1;const Z=ot(C);if((Z.width>V||Z.height>V)&&($=V/Math.max(Z.width,Z.height)),$<1)if(typeof HTMLImageElement<"u"&&C instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&C instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&C instanceof ImageBitmap||typeof VideoFrame<"u"&&C instanceof VideoFrame){const Q=Math.floor($*Z.width),ve=Math.floor($*Z.height);h===void 0&&(h=v(Q,ve));const ue=M?v(Q,ve):h;return ue.width=Q,ue.height=ve,ue.getContext("2d").drawImage(C,0,0,Q,ve),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+Z.width+"x"+Z.height+") to ("+Q+"x"+ve+")."),ue}else return"data"in C&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+Z.width+"x"+Z.height+")."),C;return C}function p(C){return C.generateMipmaps&&C.minFilter!==vn&&C.minFilter!==Pn}function c(C){t.generateMipmap(C)}function g(C,M,V,$,Z=!1){if(C!==null){if(t[C]!==void 0)return t[C];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+C+"'")}let Q=M;if(M===t.RED&&(V===t.FLOAT&&(Q=t.R32F),V===t.HALF_FLOAT&&(Q=t.R16F),V===t.UNSIGNED_BYTE&&(Q=t.R8)),M===t.RED_INTEGER&&(V===t.UNSIGNED_BYTE&&(Q=t.R8UI),V===t.UNSIGNED_SHORT&&(Q=t.R16UI),V===t.UNSIGNED_INT&&(Q=t.R32UI),V===t.BYTE&&(Q=t.R8I),V===t.SHORT&&(Q=t.R16I),V===t.INT&&(Q=t.R32I)),M===t.RG&&(V===t.FLOAT&&(Q=t.RG32F),V===t.HALF_FLOAT&&(Q=t.RG16F),V===t.UNSIGNED_BYTE&&(Q=t.RG8)),M===t.RG_INTEGER&&(V===t.UNSIGNED_BYTE&&(Q=t.RG8UI),V===t.UNSIGNED_SHORT&&(Q=t.RG16UI),V===t.UNSIGNED_INT&&(Q=t.RG32UI),V===t.BYTE&&(Q=t.RG8I),V===t.SHORT&&(Q=t.RG16I),V===t.INT&&(Q=t.RG32I)),M===t.RGB&&V===t.UNSIGNED_INT_5_9_9_9_REV&&(Q=t.RGB9_E5),M===t.RGBA){const ve=Z?ul:Qe.getTransfer($);V===t.FLOAT&&(Q=t.RGBA32F),V===t.HALF_FLOAT&&(Q=t.RGBA16F),V===t.UNSIGNED_BYTE&&(Q=ve===it?t.SRGB8_ALPHA8:t.RGBA8),V===t.UNSIGNED_SHORT_4_4_4_4&&(Q=t.RGBA4),V===t.UNSIGNED_SHORT_5_5_5_1&&(Q=t.RGB5_A1)}return(Q===t.R16F||Q===t.R32F||Q===t.RG16F||Q===t.RG32F||Q===t.RGBA16F||Q===t.RGBA32F)&&e.get("EXT_color_buffer_float"),Q}function _(C,M){return p(C)===!0||C.isFramebufferTexture&&C.minFilter!==vn&&C.minFilter!==Pn?Math.log2(Math.max(M.width,M.height))+1:C.mipmaps!==void 0&&C.mipmaps.length>0?C.mipmaps.length:C.isCompressedTexture&&Array.isArray(C.image)?M.mipmaps.length:1}function E(C){const M=C.target;M.removeEventListener("dispose",E),R(M),M.isVideoTexture&&f.delete(M)}function P(C){const M=C.target;M.removeEventListener("dispose",P),b(M)}function R(C){const M=i.get(C);if(M.__webglInit===void 0)return;const V=C.source,$=d.get(V);if($){const Z=$[M.__cacheKey];Z.usedTimes--,Z.usedTimes===0&&A(C),Object.keys($).length===0&&d.delete(V)}i.remove(C)}function A(C){const M=i.get(C);t.deleteTexture(M.__webglTexture);const V=C.source,$=d.get(V);delete $[M.__cacheKey],s.memory.textures--}function b(C){const M=i.get(C);if(C.depthTexture&&C.depthTexture.dispose(),C.isWebGLCubeRenderTarget)for(let $=0;$<6;$++){if(Array.isArray(M.__webglFramebuffer[$]))for(let Z=0;Z=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+C+" texture units while this GPU supports only "+r.maxTextures),w+=1,C}function j(C){const M=[];return M.push(C.wrapS),M.push(C.wrapT),M.push(C.wrapR||0),M.push(C.magFilter),M.push(C.minFilter),M.push(C.anisotropy),M.push(C.internalFormat),M.push(C.format),M.push(C.type),M.push(C.generateMipmaps),M.push(C.premultiplyAlpha),M.push(C.flipY),M.push(C.unpackAlignment),M.push(C.colorSpace),M.join()}function D(C,M){const V=i.get(C);if(C.isVideoTexture&&Re(C),C.isRenderTargetTexture===!1&&C.version>0&&V.__version!==C.version){const $=C.image;if($===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if($.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{me(V,C,M);return}}n.bindTexture(t.TEXTURE_2D,V.__webglTexture,t.TEXTURE0+M)}function q(C,M){const V=i.get(C);if(C.version>0&&V.__version!==C.version){me(V,C,M);return}n.bindTexture(t.TEXTURE_2D_ARRAY,V.__webglTexture,t.TEXTURE0+M)}function Y(C,M){const V=i.get(C);if(C.version>0&&V.__version!==C.version){me(V,C,M);return}n.bindTexture(t.TEXTURE_3D,V.__webglTexture,t.TEXTURE0+M)}function J(C,M){const V=i.get(C);if(C.version>0&&V.__version!==C.version){Ge(V,C,M);return}n.bindTexture(t.TEXTURE_CUBE_MAP,V.__webglTexture,t.TEXTURE0+M)}const te={[Bc]:t.REPEAT,[hr]:t.CLAMP_TO_EDGE,[Hc]:t.MIRRORED_REPEAT},L={[vn]:t.NEAREST,[Nx]:t.NEAREST_MIPMAP_NEAREST,[na]:t.NEAREST_MIPMAP_LINEAR,[Pn]:t.LINEAR,[fu]:t.LINEAR_MIPMAP_NEAREST,[pr]:t.LINEAR_MIPMAP_LINEAR},W={[$x]:t.NEVER,[ty]:t.ALWAYS,[Kx]:t.LESS,[e_]:t.LEQUAL,[Zx]:t.EQUAL,[ey]:t.GEQUAL,[Qx]:t.GREATER,[Jx]:t.NOTEQUAL};function X(C,M){if(M.type===Di&&e.has("OES_texture_float_linear")===!1&&(M.magFilter===Pn||M.magFilter===fu||M.magFilter===na||M.magFilter===pr||M.minFilter===Pn||M.minFilter===fu||M.minFilter===na||M.minFilter===pr)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),t.texParameteri(C,t.TEXTURE_WRAP_S,te[M.wrapS]),t.texParameteri(C,t.TEXTURE_WRAP_T,te[M.wrapT]),(C===t.TEXTURE_3D||C===t.TEXTURE_2D_ARRAY)&&t.texParameteri(C,t.TEXTURE_WRAP_R,te[M.wrapR]),t.texParameteri(C,t.TEXTURE_MAG_FILTER,L[M.magFilter]),t.texParameteri(C,t.TEXTURE_MIN_FILTER,L[M.minFilter]),M.compareFunction&&(t.texParameteri(C,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(C,t.TEXTURE_COMPARE_FUNC,W[M.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(M.magFilter===vn||M.minFilter!==na&&M.minFilter!==pr||M.type===Di&&e.has("OES_texture_float_linear")===!1)return;if(M.anisotropy>1||i.get(M).__currentAnisotropy){const V=e.get("EXT_texture_filter_anisotropic");t.texParameterf(C,V.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(M.anisotropy,r.getMaxAnisotropy())),i.get(M).__currentAnisotropy=M.anisotropy}}}function se(C,M){let V=!1;C.__webglInit===void 0&&(C.__webglInit=!0,M.addEventListener("dispose",E));const $=M.source;let Z=d.get($);Z===void 0&&(Z={},d.set($,Z));const Q=j(M);if(Q!==C.__cacheKey){Z[Q]===void 0&&(Z[Q]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,V=!0),Z[Q].usedTimes++;const ve=Z[C.__cacheKey];ve!==void 0&&(Z[C.__cacheKey].usedTimes--,ve.usedTimes===0&&A(M)),C.__cacheKey=Q,C.__webglTexture=Z[Q].texture}return V}function me(C,M,V){let $=t.TEXTURE_2D;(M.isDataArrayTexture||M.isCompressedArrayTexture)&&($=t.TEXTURE_2D_ARRAY),M.isData3DTexture&&($=t.TEXTURE_3D);const Z=se(C,M),Q=M.source;n.bindTexture($,C.__webglTexture,t.TEXTURE0+V);const ve=i.get(Q);if(Q.version!==ve.__version||Z===!0){n.activeTexture(t.TEXTURE0+V);const ue=Qe.getPrimaries(Qe.workingColorSpace),le=M.colorSpace===Pi?null:Qe.getPrimaries(M.colorSpace),Te=M.colorSpace===Pi||ue===le?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,M.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,M.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,M.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Te);let re=y(M.image,!1,r.maxTextureSize);re=He(M,re);const _e=o.convert(M.format,M.colorSpace),Ve=o.convert(M.type);let ye=g(M.internalFormat,_e,Ve,M.colorSpace,M.isVideoTexture);X($,M);let he;const Ce=M.mipmaps,Ue=M.isVideoTexture!==!0,Ze=ve.__version===void 0||Z===!0,Le=Q.dataReady,x=_(M,re);if(M.isDepthTexture)ye=t.DEPTH_COMPONENT16,M.type===Di?ye=t.DEPTH_COMPONENT32F:M.type===Ao?ye=t.DEPTH_COMPONENT24:M.type===Os&&(ye=t.DEPTH24_STENCIL8),Ze&&(Ue?n.texStorage2D(t.TEXTURE_2D,1,ye,re.width,re.height):n.texImage2D(t.TEXTURE_2D,0,ye,re.width,re.height,0,_e,Ve,null));else if(M.isDataTexture)if(Ce.length>0){Ue&&Ze&&n.texStorage2D(t.TEXTURE_2D,x,ye,Ce[0].width,Ce[0].height);for(let I=0,k=Ce.length;I>=1,k>>=1}}else if(Ce.length>0){if(Ue&&Ze){const I=ot(Ce[0]);n.texStorage2D(t.TEXTURE_2D,x,ye,I.width,I.height)}for(let I=0,k=Ce.length;I0&&x++;const k=ot(_e[0]);n.texStorage2D(t.TEXTURE_CUBE_MAP,x,Ce,k.width,k.height)}for(let k=0;k<6;k++)if(re){Ue?Le&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+k,0,0,0,_e[k].width,_e[k].height,ye,he,_e[k].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+k,0,Ce,_e[k].width,_e[k].height,0,ye,he,_e[k].data);for(let K=0;K>Q),_e=Math.max(1,M.height>>Q);Z===t.TEXTURE_3D||Z===t.TEXTURE_2D_ARRAY?n.texImage3D(Z,Q,le,re,_e,M.depth,0,ve,ue,null):n.texImage2D(Z,Q,le,re,_e,0,ve,ue,null)}n.bindFramebuffer(t.FRAMEBUFFER,C),ze(M)?a.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,$,Z,i.get(V).__webglTexture,0,Se(M)):(Z===t.TEXTURE_2D||Z>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&Z<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,$,Z,i.get(V).__webglTexture,Q),n.bindFramebuffer(t.FRAMEBUFFER,null)}function ne(C,M,V){if(t.bindRenderbuffer(t.RENDERBUFFER,C),M.depthBuffer&&!M.stencilBuffer){let $=t.DEPTH_COMPONENT24;if(V||ze(M)){const Z=M.depthTexture;Z&&Z.isDepthTexture&&(Z.type===Di?$=t.DEPTH_COMPONENT32F:Z.type===Ao&&($=t.DEPTH_COMPONENT24));const Q=Se(M);ze(M)?a.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Q,$,M.width,M.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,Q,$,M.width,M.height)}else t.renderbufferStorage(t.RENDERBUFFER,$,M.width,M.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,C)}else if(M.depthBuffer&&M.stencilBuffer){const $=Se(M);V&&ze(M)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,$,t.DEPTH24_STENCIL8,M.width,M.height):ze(M)?a.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,$,t.DEPTH24_STENCIL8,M.width,M.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,M.width,M.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,C)}else{const $=M.textures;for(let Z=0;Z<$.length;Z++){const Q=$[Z],ve=o.convert(Q.format,Q.colorSpace),ue=o.convert(Q.type),le=g(Q.internalFormat,ve,ue,Q.colorSpace),Te=Se(M);V&&ze(M)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,Te,le,M.width,M.height):ze(M)?a.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Te,le,M.width,M.height):t.renderbufferStorage(t.RENDERBUFFER,le,M.width,M.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function fe(C,M){if(M&&M.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,C),!(M.depthTexture&&M.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(M.depthTexture).__webglTexture||M.depthTexture.image.width!==M.width||M.depthTexture.image.height!==M.height)&&(M.depthTexture.image.width=M.width,M.depthTexture.image.height=M.height,M.depthTexture.needsUpdate=!0),D(M.depthTexture,0);const $=i.get(M.depthTexture).__webglTexture,Z=Se(M);if(M.depthTexture.format===mo)ze(M)?a.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,$,0,Z):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,$,0);else if(M.depthTexture.format===Cs)ze(M)?a.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,$,0,Z):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,$,0);else throw new Error("Unknown depthTexture format")}function oe(C){const M=i.get(C),V=C.isWebGLCubeRenderTarget===!0;if(C.depthTexture&&!M.__autoAllocateDepthBuffer){if(V)throw new Error("target.depthTexture not supported in Cube render targets");fe(M.__webglFramebuffer,C)}else if(V){M.__webglDepthbuffer=[];for(let $=0;$<6;$++)n.bindFramebuffer(t.FRAMEBUFFER,M.__webglFramebuffer[$]),M.__webglDepthbuffer[$]=t.createRenderbuffer(),ne(M.__webglDepthbuffer[$],C,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,M.__webglFramebuffer),M.__webglDepthbuffer=t.createRenderbuffer(),ne(M.__webglDepthbuffer,C,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function ke(C,M,V){const $=i.get(C);M!==void 0&&G($.__webglFramebuffer,C,C.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),V!==void 0&&oe(C)}function Ne(C){const M=C.texture,V=i.get(C),$=i.get(M);C.addEventListener("dispose",P);const Z=C.textures,Q=C.isWebGLCubeRenderTarget===!0,ve=Z.length>1;if(ve||($.__webglTexture===void 0&&($.__webglTexture=t.createTexture()),$.__version=M.version,s.memory.textures++),Q){V.__webglFramebuffer=[];for(let ue=0;ue<6;ue++)if(M.mipmaps&&M.mipmaps.length>0){V.__webglFramebuffer[ue]=[];for(let le=0;le0){V.__webglFramebuffer=[];for(let ue=0;ue0&&ze(C)===!1){V.__webglMultisampledFramebuffer=t.createFramebuffer(),V.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,V.__webglMultisampledFramebuffer);for(let ue=0;ue0)for(let le=0;le0)for(let le=0;le0){if(ze(C)===!1){const M=C.textures,V=C.width,$=C.height;let Z=t.COLOR_BUFFER_BIT;const Q=C.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,ve=i.get(C),ue=M.length>1;if(ue)for(let le=0;le0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&M.__useRenderToTexture!==!1}function Re(C){const M=s.render.frame;f.get(C)!==M&&(f.set(C,M),C.update())}function He(C,M){const V=C.colorSpace,$=C.format,Z=C.type;return C.isCompressedTexture===!0||C.isVideoTexture===!0||V!==Zi&&V!==Pi&&(Qe.getTransfer(V)===it?($!==Hn||Z!==ji)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",V)),M}function ot(C){return typeof HTMLImageElement<"u"&&C instanceof HTMLImageElement?(u.width=C.naturalWidth||C.width,u.height=C.naturalHeight||C.height):typeof VideoFrame<"u"&&C instanceof VideoFrame?(u.width=C.displayWidth,u.height=C.displayHeight):(u.width=C.width,u.height=C.height),u}this.allocateTextureUnit=O,this.resetTextureUnits=S,this.setTexture2D=D,this.setTexture2DArray=q,this.setTexture3D=Y,this.setTextureCube=J,this.rebindTextures=ke,this.setupRenderTarget=Ne,this.updateRenderTargetMipmap=F,this.updateMultisampleRenderTarget=Ke,this.setupDepthRenderbuffer=oe,this.setupFrameBufferTexture=G,this.useMultisampledRTT=ze}function vT(t,e){function n(i,r=Pi){let o;const s=Qe.getTransfer(r);if(i===ji)return t.UNSIGNED_BYTE;if(i===$g)return t.UNSIGNED_SHORT_4_4_4_4;if(i===Kg)return t.UNSIGNED_SHORT_5_5_5_1;if(i===Fx)return t.UNSIGNED_INT_5_9_9_9_REV;if(i===Ux)return t.BYTE;if(i===Ox)return t.SHORT;if(i===Yg)return t.UNSIGNED_SHORT;if(i===qg)return t.INT;if(i===Ao)return t.UNSIGNED_INT;if(i===Di)return t.FLOAT;if(i===bl)return t.HALF_FLOAT;if(i===kx)return t.ALPHA;if(i===zx)return t.RGB;if(i===Hn)return t.RGBA;if(i===Bx)return t.LUMINANCE;if(i===Hx)return t.LUMINANCE_ALPHA;if(i===mo)return t.DEPTH_COMPONENT;if(i===Cs)return t.DEPTH_STENCIL;if(i===Vx)return t.RED;if(i===Zg)return t.RED_INTEGER;if(i===Gx)return t.RG;if(i===Qg)return t.RG_INTEGER;if(i===Jg)return t.RGBA_INTEGER;if(i===du||i===hu||i===pu||i===mu)if(s===it)if(o=e.get("WEBGL_compressed_texture_s3tc_srgb"),o!==null){if(i===du)return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===hu)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===pu)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===mu)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(o=e.get("WEBGL_compressed_texture_s3tc"),o!==null){if(i===du)return o.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===hu)return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===pu)return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===mu)return o.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===uh||i===ch||i===fh||i===dh)if(o=e.get("WEBGL_compressed_texture_pvrtc"),o!==null){if(i===uh)return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===ch)return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===fh)return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===dh)return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===hh||i===ph||i===mh)if(o=e.get("WEBGL_compressed_texture_etc"),o!==null){if(i===hh||i===ph)return s===it?o.COMPRESSED_SRGB8_ETC2:o.COMPRESSED_RGB8_ETC2;if(i===mh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:o.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===gh||i===_h||i===vh||i===xh||i===yh||i===Sh||i===Mh||i===Eh||i===Th||i===wh||i===Ah||i===Rh||i===Ch||i===Ph)if(o=e.get("WEBGL_compressed_texture_astc"),o!==null){if(i===gh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:o.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===_h)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:o.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===vh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:o.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===xh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:o.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===yh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:o.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===Sh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:o.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===Mh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:o.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===Eh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:o.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===Th)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:o.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===wh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:o.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===Ah)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:o.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===Rh)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:o.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===Ch)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:o.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===Ph)return s===it?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:o.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===gu||i===Lh||i===bh)if(o=e.get("EXT_texture_compression_bptc"),o!==null){if(i===gu)return s===it?o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:o.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===Lh)return o.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===bh)return o.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===Wx||i===Dh||i===Ih||i===Nh)if(o=e.get("EXT_texture_compression_rgtc"),o!==null){if(i===gu)return o.COMPRESSED_RED_RGTC1_EXT;if(i===Dh)return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===Ih)return o.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===Nh)return o.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===Os?t.UNSIGNED_INT_24_8:t[i]!==void 0?t[i]:null}return{convert:n}}class xT extends gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Jo extends an{constructor(){super(),this.isGroup=!0,this.type="Group"}}const yT={type:"move"};class Hu{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Jo,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Jo,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new N,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new N),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Jo,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new N,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new N),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const i of e.hand.values())this._getHandJoint(n,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,i){let r=null,o=null,s=null;const a=this._targetRay,l=this._grip,u=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(u&&e.hand){s=!0;for(const y of e.hand.values()){const p=n.getJointPose(y,i),c=this._getHandJoint(u,y);p!==null&&(c.matrix.fromArray(p.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,c.jointRadius=p.radius),c.visible=p!==null}const f=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],d=f.position.distanceTo(h.position),m=.02,v=.005;u.inputState.pinching&&d>m+v?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&d<=m-v&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(o=n.getPose(e.gripSpace,i),o!==null&&(l.matrix.fromArray(o.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,o.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(o.linearVelocity)):l.hasLinearVelocity=!1,o.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(o.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(r=n.getPose(e.targetRaySpace,i),r===null&&o!==null&&(r=o),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(yT)))}return a!==null&&(a.visible=r!==null),l!==null&&(l.visible=o!==null),u!==null&&(u.visible=s!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const i=new Jo;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[n.jointName]=i,e.add(i)}return e.joints[n.jointName]}}const ST=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,MT=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`;class ET{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,n,i){if(this.texture===null){const r=new Xt,o=e.properties.get(r);o.__webglTexture=n.texture,(n.depthNear!=i.depthNear||n.depthFar!=i.depthFar)&&(this.depthNear=n.depthNear,this.depthFar=n.depthFar),this.texture=r}}render(e,n){if(this.texture!==null){if(this.mesh===null){const i=n.cameras[0].viewport,r=new fi({vertexShader:ST,fragmentShader:MT,uniforms:{depthColor:{value:this.texture},depthWidth:{value:i.z},depthHeight:{value:i.w}}});this.mesh=new Ln(new Nl(20,20),r)}e.render(this.mesh,n)}}reset(){this.texture=null,this.mesh=null}}class TT extends Ar{constructor(e,n){super();const i=this;let r=null,o=1,s=null,a="local-floor",l=1,u=null,f=null,h=null,d=null,m=null,v=null;const y=new ET,p=n.getContextAttributes();let c=null,g=null;const _=[],E=[],P=new Ee;let R=null;const A=new gn;A.layers.enable(1),A.viewport=new Pt;const b=new gn;b.layers.enable(2),b.viewport=new Pt;const w=[A,b],S=new xT;S.layers.enable(1),S.layers.enable(2);let O=null,j=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(G){let ne=_[G];return ne===void 0&&(ne=new Hu,_[G]=ne),ne.getTargetRaySpace()},this.getControllerGrip=function(G){let ne=_[G];return ne===void 0&&(ne=new Hu,_[G]=ne),ne.getGripSpace()},this.getHand=function(G){let ne=_[G];return ne===void 0&&(ne=new Hu,_[G]=ne),ne.getHandSpace()};function D(G){const ne=E.indexOf(G.inputSource);if(ne===-1)return;const fe=_[ne];fe!==void 0&&(fe.update(G.inputSource,G.frame,u||s),fe.dispatchEvent({type:G.type,data:G.inputSource}))}function q(){r.removeEventListener("select",D),r.removeEventListener("selectstart",D),r.removeEventListener("selectend",D),r.removeEventListener("squeeze",D),r.removeEventListener("squeezestart",D),r.removeEventListener("squeezeend",D),r.removeEventListener("end",q),r.removeEventListener("inputsourceschange",Y);for(let G=0;G<_.length;G++){const ne=E[G];ne!==null&&(E[G]=null,_[G].disconnect(ne))}O=null,j=null,y.reset(),e.setRenderTarget(c),m=null,d=null,h=null,r=null,g=null,Ge.stop(),i.isPresenting=!1,e.setPixelRatio(R),e.setSize(P.width,P.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(G){o=G,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(G){a=G,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||s},this.setReferenceSpace=function(G){u=G},this.getBaseLayer=function(){return d!==null?d:m},this.getBinding=function(){return h},this.getFrame=function(){return v},this.getSession=function(){return r},this.setSession=async function(G){if(r=G,r!==null){if(c=e.getRenderTarget(),r.addEventListener("select",D),r.addEventListener("selectstart",D),r.addEventListener("selectend",D),r.addEventListener("squeeze",D),r.addEventListener("squeezestart",D),r.addEventListener("squeezeend",D),r.addEventListener("end",q),r.addEventListener("inputsourceschange",Y),p.xrCompatible!==!0&&await n.makeXRCompatible(),R=e.getPixelRatio(),e.getSize(P),r.renderState.layers===void 0){const ne={antialias:p.antialias,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:o};m=new XRWebGLLayer(r,n,ne),r.updateRenderState({baseLayer:m}),e.setPixelRatio(1),e.setSize(m.framebufferWidth,m.framebufferHeight,!1),g=new Mr(m.framebufferWidth,m.framebufferHeight,{format:Hn,type:ji,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}else{let ne=null,fe=null,oe=null;p.depth&&(oe=p.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,ne=p.stencil?Cs:mo,fe=p.stencil?Os:Ao);const ke={colorFormat:n.RGBA8,depthFormat:oe,scaleFactor:o};h=new XRWebGLBinding(r,n),d=h.createProjectionLayer(ke),r.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),g=new Mr(d.textureWidth,d.textureHeight,{format:Hn,type:ji,depthTexture:new p_(d.textureWidth,d.textureHeight,fe,void 0,void 0,void 0,void 0,void 0,void 0,ne),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0,resolveDepthBuffer:d.ignoreDepthValues===!1})}g.isXRRenderTarget=!0,this.setFoveation(l),u=null,s=await r.requestReferenceSpace(a),Ge.setContext(r),Ge.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode};function Y(G){for(let ne=0;ne=0&&(E[oe]=null,_[oe].disconnect(fe))}for(let ne=0;ne=E.length){E.push(fe),oe=Ne;break}else if(E[Ne]===null){E[Ne]=fe,oe=Ne;break}if(oe===-1)break}const ke=_[oe];ke&&ke.connect(fe)}}const J=new N,te=new N;function L(G,ne,fe){J.setFromMatrixPosition(ne.matrixWorld),te.setFromMatrixPosition(fe.matrixWorld);const oe=J.distanceTo(te),ke=ne.projectionMatrix.elements,Ne=fe.projectionMatrix.elements,F=ke[14]/(ke[10]-1),$e=ke[14]/(ke[10]+1),xe=(ke[9]+1)/ke[5],Ke=(ke[9]-1)/ke[5],Se=(ke[8]-1)/ke[0],ze=(Ne[8]+1)/Ne[0],Re=F*Se,He=F*ze,ot=oe/(-Se+ze),C=ot*-Se;ne.matrixWorld.decompose(G.position,G.quaternion,G.scale),G.translateX(C),G.translateZ(ot),G.matrixWorld.compose(G.position,G.quaternion,G.scale),G.matrixWorldInverse.copy(G.matrixWorld).invert();const M=F+ot,V=$e+ot,$=Re-C,Z=He+(oe-C),Q=xe*$e/V*M,ve=Ke*$e/V*M;G.projectionMatrix.makePerspective($,Z,Q,ve,M,V),G.projectionMatrixInverse.copy(G.projectionMatrix).invert()}function W(G,ne){ne===null?G.matrixWorld.copy(G.matrix):G.matrixWorld.multiplyMatrices(ne.matrixWorld,G.matrix),G.matrixWorldInverse.copy(G.matrixWorld).invert()}this.updateCamera=function(G){if(r===null)return;y.texture!==null&&(G.near=y.depthNear,G.far=y.depthFar),S.near=b.near=A.near=G.near,S.far=b.far=A.far=G.far,(O!==S.near||j!==S.far)&&(r.updateRenderState({depthNear:S.near,depthFar:S.far}),O=S.near,j=S.far,A.near=O,A.far=j,b.near=O,b.far=j,A.updateProjectionMatrix(),b.updateProjectionMatrix(),G.updateProjectionMatrix());const ne=G.parent,fe=S.cameras;W(S,ne);for(let oe=0;oe0&&(p.alphaTest.value=c.alphaTest);const g=e.get(c),_=g.envMap,E=g.envMapRotation;if(_&&(p.envMap.value=_,rr.copy(E),rr.x*=-1,rr.y*=-1,rr.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(rr.y*=-1,rr.z*=-1),p.envMapRotation.value.setFromMatrix4(wT.makeRotationFromEuler(rr)),p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=c.reflectivity,p.ior.value=c.ior,p.refractionRatio.value=c.refractionRatio),c.lightMap){p.lightMap.value=c.lightMap;const P=t._useLegacyLights===!0?Math.PI:1;p.lightMapIntensity.value=c.lightMapIntensity*P,n(c.lightMap,p.lightMapTransform)}c.aoMap&&(p.aoMap.value=c.aoMap,p.aoMapIntensity.value=c.aoMapIntensity,n(c.aoMap,p.aoMapTransform))}function s(p,c){p.diffuse.value.copy(c.color),p.opacity.value=c.opacity,c.map&&(p.map.value=c.map,n(c.map,p.mapTransform))}function a(p,c){p.dashSize.value=c.dashSize,p.totalSize.value=c.dashSize+c.gapSize,p.scale.value=c.scale}function l(p,c,g,_){p.diffuse.value.copy(c.color),p.opacity.value=c.opacity,p.size.value=c.size*g,p.scale.value=_*.5,c.map&&(p.map.value=c.map,n(c.map,p.uvTransform)),c.alphaMap&&(p.alphaMap.value=c.alphaMap,n(c.alphaMap,p.alphaMapTransform)),c.alphaTest>0&&(p.alphaTest.value=c.alphaTest)}function u(p,c){p.diffuse.value.copy(c.color),p.opacity.value=c.opacity,p.rotation.value=c.rotation,c.map&&(p.map.value=c.map,n(c.map,p.mapTransform)),c.alphaMap&&(p.alphaMap.value=c.alphaMap,n(c.alphaMap,p.alphaMapTransform)),c.alphaTest>0&&(p.alphaTest.value=c.alphaTest)}function f(p,c){p.specular.value.copy(c.specular),p.shininess.value=Math.max(c.shininess,1e-4)}function h(p,c){c.gradientMap&&(p.gradientMap.value=c.gradientMap)}function d(p,c){p.metalness.value=c.metalness,c.metalnessMap&&(p.metalnessMap.value=c.metalnessMap,n(c.metalnessMap,p.metalnessMapTransform)),p.roughness.value=c.roughness,c.roughnessMap&&(p.roughnessMap.value=c.roughnessMap,n(c.roughnessMap,p.roughnessMapTransform)),c.envMap&&(p.envMapIntensity.value=c.envMapIntensity)}function m(p,c,g){p.ior.value=c.ior,c.sheen>0&&(p.sheenColor.value.copy(c.sheenColor).multiplyScalar(c.sheen),p.sheenRoughness.value=c.sheenRoughness,c.sheenColorMap&&(p.sheenColorMap.value=c.sheenColorMap,n(c.sheenColorMap,p.sheenColorMapTransform)),c.sheenRoughnessMap&&(p.sheenRoughnessMap.value=c.sheenRoughnessMap,n(c.sheenRoughnessMap,p.sheenRoughnessMapTransform))),c.clearcoat>0&&(p.clearcoat.value=c.clearcoat,p.clearcoatRoughness.value=c.clearcoatRoughness,c.clearcoatMap&&(p.clearcoatMap.value=c.clearcoatMap,n(c.clearcoatMap,p.clearcoatMapTransform)),c.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=c.clearcoatRoughnessMap,n(c.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),c.clearcoatNormalMap&&(p.clearcoatNormalMap.value=c.clearcoatNormalMap,n(c.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(c.clearcoatNormalScale),c.side===Jt&&p.clearcoatNormalScale.value.negate())),c.dispersion>0&&(p.dispersion.value=c.dispersion),c.iridescence>0&&(p.iridescence.value=c.iridescence,p.iridescenceIOR.value=c.iridescenceIOR,p.iridescenceThicknessMinimum.value=c.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=c.iridescenceThicknessRange[1],c.iridescenceMap&&(p.iridescenceMap.value=c.iridescenceMap,n(c.iridescenceMap,p.iridescenceMapTransform)),c.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=c.iridescenceThicknessMap,n(c.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),c.transmission>0&&(p.transmission.value=c.transmission,p.transmissionSamplerMap.value=g.texture,p.transmissionSamplerSize.value.set(g.width,g.height),c.transmissionMap&&(p.transmissionMap.value=c.transmissionMap,n(c.transmissionMap,p.transmissionMapTransform)),p.thickness.value=c.thickness,c.thicknessMap&&(p.thicknessMap.value=c.thicknessMap,n(c.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=c.attenuationDistance,p.attenuationColor.value.copy(c.attenuationColor)),c.anisotropy>0&&(p.anisotropyVector.value.set(c.anisotropy*Math.cos(c.anisotropyRotation),c.anisotropy*Math.sin(c.anisotropyRotation)),c.anisotropyMap&&(p.anisotropyMap.value=c.anisotropyMap,n(c.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=c.specularIntensity,p.specularColor.value.copy(c.specularColor),c.specularColorMap&&(p.specularColorMap.value=c.specularColorMap,n(c.specularColorMap,p.specularColorMapTransform)),c.specularIntensityMap&&(p.specularIntensityMap.value=c.specularIntensityMap,n(c.specularIntensityMap,p.specularIntensityMapTransform))}function v(p,c){c.matcap&&(p.matcap.value=c.matcap)}function y(p,c){const g=e.get(c).light;p.referencePosition.value.setFromMatrixPosition(g.matrixWorld),p.nearDistance.value=g.shadow.camera.near,p.farDistance.value=g.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:r}}function RT(t,e,n,i){let r={},o={},s=[];const a=t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS);function l(g,_){const E=_.program;i.uniformBlockBinding(g,E)}function u(g,_){let E=r[g.id];E===void 0&&(v(g),E=f(g),r[g.id]=E,g.addEventListener("dispose",p));const P=_.program;i.updateUBOMapping(g,P);const R=e.render.frame;o[g.id]!==R&&(d(g),o[g.id]=R)}function f(g){const _=h();g.__bindingPointIndex=_;const E=t.createBuffer(),P=g.__size,R=g.usage;return t.bindBuffer(t.UNIFORM_BUFFER,E),t.bufferData(t.UNIFORM_BUFFER,P,R),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,_,E),E}function h(){for(let g=0;g0&&(E+=P-R),g.__size=E,g.__cache={},this}function y(g){const _={boundary:0,storage:0};return typeof g=="number"||typeof g=="boolean"?(_.boundary=4,_.storage=4):g.isVector2?(_.boundary=8,_.storage=8):g.isVector3||g.isColor?(_.boundary=16,_.storage=12):g.isVector4?(_.boundary=16,_.storage=16):g.isMatrix3?(_.boundary=48,_.storage=48):g.isMatrix4?(_.boundary=64,_.storage=64):g.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",g),_}function p(g){const _=g.target;_.removeEventListener("dispose",p);const E=s.indexOf(_.__bindingPointIndex);s.splice(E,1),t.deleteBuffer(r[_.id]),delete r[_.id],delete o[_.id]}function c(){for(const g in r)t.deleteBuffer(r[g]);s=[],r={},o={}}return{bind:l,update:u,dispose:c}}class CT{constructor(e={}){const{canvas:n=xy(),context:i=null,depth:r=!0,stencil:o=!1,alpha:s=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:f="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let d;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=i.getContextAttributes().alpha}else d=s;const m=new Uint32Array(4),v=new Int32Array(4);let y=null,p=null;const c=[],g=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Fn,this._useLegacyLights=!1,this.toneMapping=Vi,this.toneMappingExposure=1;const _=this;let E=!1,P=0,R=0,A=null,b=-1,w=null;const S=new Pt,O=new Pt;let j=null;const D=new Je(0);let q=0,Y=n.width,J=n.height,te=1,L=null,W=null;const X=new Pt(0,0,Y,J),se=new Pt(0,0,Y,J);let me=!1;const Ge=new d_;let G=!1,ne=!1;const fe=new xt,oe=new N,ke={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ne(){return A===null?te:1}let F=i;function $e(T,U){return n.getContext(T,U)}try{const T={alpha:!0,depth:r,stencil:o,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:f,failIfMajorPerformanceCaveat:h};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${kf}`),n.addEventListener("webglcontextlost",x,!1),n.addEventListener("webglcontextrestored",I,!1),n.addEventListener("webglcontextcreationerror",k,!1),F===null){const U="webgl2";if(F=$e(U,T),F===null)throw $e(U)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(T){throw console.error("THREE.WebGLRenderer: "+T.message),T}let xe,Ke,Se,ze,Re,He,ot,C,M,V,$,Z,Q,ve,ue,le,Te,re,_e,Ve,ye,he,Ce,Ue;function Ze(){xe=new OE(F),xe.init(),he=new vT(F,xe),Ke=new PE(F,xe,e,he),Se=new gT(F),ze=new zE(F),Re=new nT,He=new _T(F,xe,Se,Re,Ke,he,ze),ot=new bE(_),C=new UE(_),M=new Xy(F),Ce=new RE(F,M),V=new FE(F,M,ze,Ce),$=new HE(F,V,M,ze),_e=new BE(F,Ke,He),le=new LE(Re),Z=new tT(_,ot,C,xe,Ke,Ce,le),Q=new AT(_,Re),ve=new rT,ue=new cT(xe),re=new AE(_,ot,C,Se,$,d,l),Te=new mT(_,$,Ke),Ue=new RT(F,ze,Ke,Se),Ve=new CE(F,xe,ze),ye=new kE(F,xe,ze),ze.programs=Z.programs,_.capabilities=Ke,_.extensions=xe,_.properties=Re,_.renderLists=ve,_.shadowMap=Te,_.state=Se,_.info=ze}Ze();const Le=new TT(_,F);this.xr=Le,this.getContext=function(){return F},this.getContextAttributes=function(){return F.getContextAttributes()},this.forceContextLoss=function(){const T=xe.get("WEBGL_lose_context");T&&T.loseContext()},this.forceContextRestore=function(){const T=xe.get("WEBGL_lose_context");T&&T.restoreContext()},this.getPixelRatio=function(){return te},this.setPixelRatio=function(T){T!==void 0&&(te=T,this.setSize(Y,J,!1))},this.getSize=function(T){return T.set(Y,J)},this.setSize=function(T,U,H=!0){if(Le.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}Y=T,J=U,n.width=Math.floor(T*te),n.height=Math.floor(U*te),H===!0&&(n.style.width=T+"px",n.style.height=U+"px"),this.setViewport(0,0,T,U)},this.getDrawingBufferSize=function(T){return T.set(Y*te,J*te).floor()},this.setDrawingBufferSize=function(T,U,H){Y=T,J=U,te=H,n.width=Math.floor(T*H),n.height=Math.floor(U*H),this.setViewport(0,0,T,U)},this.getCurrentViewport=function(T){return T.copy(S)},this.getViewport=function(T){return T.copy(X)},this.setViewport=function(T,U,H,z){T.isVector4?X.set(T.x,T.y,T.z,T.w):X.set(T,U,H,z),Se.viewport(S.copy(X).multiplyScalar(te).round())},this.getScissor=function(T){return T.copy(se)},this.setScissor=function(T,U,H,z){T.isVector4?se.set(T.x,T.y,T.z,T.w):se.set(T,U,H,z),Se.scissor(O.copy(se).multiplyScalar(te).round())},this.getScissorTest=function(){return me},this.setScissorTest=function(T){Se.setScissorTest(me=T)},this.setOpaqueSort=function(T){L=T},this.setTransparentSort=function(T){W=T},this.getClearColor=function(T){return T.copy(re.getClearColor())},this.setClearColor=function(){re.setClearColor.apply(re,arguments)},this.getClearAlpha=function(){return re.getClearAlpha()},this.setClearAlpha=function(){re.setClearAlpha.apply(re,arguments)},this.clear=function(T=!0,U=!0,H=!0){let z=0;if(T){let B=!1;if(A!==null){const ce=A.texture.format;B=ce===Jg||ce===Qg||ce===Zg}if(B){const ce=A.texture.type,pe=ce===ji||ce===Ao||ce===Yg||ce===Os||ce===$g||ce===Kg,ge=re.getClearColor(),Me=re.getClearAlpha(),we=ge.r,be=ge.g,Fe=ge.b;pe?(m[0]=we,m[1]=be,m[2]=Fe,m[3]=Me,F.clearBufferuiv(F.COLOR,0,m)):(v[0]=we,v[1]=be,v[2]=Fe,v[3]=Me,F.clearBufferiv(F.COLOR,0,v))}else z|=F.COLOR_BUFFER_BIT}U&&(z|=F.DEPTH_BUFFER_BIT),H&&(z|=F.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),F.clear(z)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",x,!1),n.removeEventListener("webglcontextrestored",I,!1),n.removeEventListener("webglcontextcreationerror",k,!1),ve.dispose(),ue.dispose(),Re.dispose(),ot.dispose(),C.dispose(),$.dispose(),Ce.dispose(),Ue.dispose(),Z.dispose(),Le.dispose(),Le.removeEventListener("sessionstart",Xe),Le.removeEventListener("sessionend",mt),tt.stop()};function x(T){T.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),E=!0}function I(){console.log("THREE.WebGLRenderer: Context Restored."),E=!1;const T=ze.autoReset,U=Te.enabled,H=Te.autoUpdate,z=Te.needsUpdate,B=Te.type;Ze(),ze.autoReset=T,Te.enabled=U,Te.autoUpdate=H,Te.needsUpdate=z,Te.type=B}function k(T){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",T.statusMessage)}function K(T){const U=T.target;U.removeEventListener("dispose",K),ie(U)}function ie(T){Pe(T),Re.remove(T)}function Pe(T){const U=Re.get(T).programs;U!==void 0&&(U.forEach(function(H){Z.releaseProgram(H)}),T.isShaderMaterial&&Z.releaseShaderCache(T))}this.renderBufferDirect=function(T,U,H,z,B,ce){U===null&&(U=ke);const pe=B.isMesh&&B.matrixWorld.determinant()<0,ge=y_(T,U,H,z,B);Se.setMaterial(z,pe);let Me=H.index,we=1;if(z.wireframe===!0){if(Me=V.getWireframeAttribute(H),Me===void 0)return;we=2}const be=H.drawRange,Fe=H.attributes.position;let gt=be.start*we,Dt=(be.start+be.count)*we;ce!==null&&(gt=Math.max(gt,ce.start*we),Dt=Math.min(Dt,(ce.start+ce.count)*we)),Me!==null?(gt=Math.max(gt,0),Dt=Math.min(Dt,Me.count)):Fe!=null&&(gt=Math.max(gt,0),Dt=Math.min(Dt,Fe.count));const en=Dt-gt;if(en<0||en===1/0)return;Ce.setup(B,z,ge,H,Me);let jn,je=Ve;if(Me!==null&&(jn=M.get(Me),je=ye,je.setIndex(jn)),B.isMesh)z.wireframe===!0?(Se.setLineWidth(z.wireframeLinewidth*Ne()),je.setMode(F.LINES)):je.setMode(F.TRIANGLES);else if(B.isLine){let Ae=z.linewidth;Ae===void 0&&(Ae=1),Se.setLineWidth(Ae*Ne()),B.isLineSegments?je.setMode(F.LINES):B.isLineLoop?je.setMode(F.LINE_LOOP):je.setMode(F.LINE_STRIP)}else B.isPoints?je.setMode(F.POINTS):B.isSprite&&je.setMode(F.TRIANGLES);if(B.isBatchedMesh)B._multiDrawInstances!==null?je.renderMultiDrawInstances(B._multiDrawStarts,B._multiDrawCounts,B._multiDrawCount,B._multiDrawInstances):je.renderMultiDraw(B._multiDrawStarts,B._multiDrawCounts,B._multiDrawCount);else if(B.isInstancedMesh)je.renderInstances(gt,en,B.count);else if(H.isInstancedBufferGeometry){const Ae=H._maxInstanceCount!==void 0?H._maxInstanceCount:1/0,No=Math.min(H.instanceCount,Ae);je.renderInstances(gt,en,No)}else je.render(gt,en)};function Oe(T,U,H){T.transparent===!0&&T.side===ti&&T.forceSinglePass===!1?(T.side=Jt,T.needsUpdate=!0,ks(T,U,H),T.side=Xi,T.needsUpdate=!0,ks(T,U,H),T.side=ti):ks(T,U,H)}this.compile=function(T,U,H=null){H===null&&(H=T),p=ue.get(H),p.init(U),g.push(p),H.traverseVisible(function(B){B.isLight&&B.layers.test(U.layers)&&(p.pushLight(B),B.castShadow&&p.pushShadow(B))}),T!==H&&T.traverseVisible(function(B){B.isLight&&B.layers.test(U.layers)&&(p.pushLight(B),B.castShadow&&p.pushShadow(B))}),p.setupLights(_._useLegacyLights);const z=new Set;return T.traverse(function(B){const ce=B.material;if(ce)if(Array.isArray(ce))for(let pe=0;pe{function ce(){if(z.forEach(function(pe){Re.get(pe).currentProgram.isReady()&&z.delete(pe)}),z.size===0){B(T);return}setTimeout(ce,10)}xe.get("KHR_parallel_shader_compile")!==null?ce():setTimeout(ce,10)})};let lt=null;function Tt(T){lt&<(T)}function Xe(){tt.stop()}function mt(){tt.start()}const tt=new h_;tt.setAnimationLoop(Tt),typeof self<"u"&&tt.setContext(self),this.setAnimationLoop=function(T){lt=T,Le.setAnimationLoop(T),T===null?tt.stop():tt.start()},Le.addEventListener("sessionstart",Xe),Le.addEventListener("sessionend",mt),this.render=function(T,U){if(U!==void 0&&U.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(E===!0)return;T.matrixWorldAutoUpdate===!0&&T.updateMatrixWorld(),U.parent===null&&U.matrixWorldAutoUpdate===!0&&U.updateMatrixWorld(),Le.enabled===!0&&Le.isPresenting===!0&&(Le.cameraAutoUpdate===!0&&Le.updateCamera(U),U=Le.getCamera()),T.isScene===!0&&T.onBeforeRender(_,T,U,A),p=ue.get(T,g.length),p.init(U),g.push(p),fe.multiplyMatrices(U.projectionMatrix,U.matrixWorldInverse),Ge.setFromProjectionMatrix(fe),ne=this.localClippingEnabled,G=le.init(this.clippingPlanes,ne),y=ve.get(T,c.length),y.init(),c.push(y),pi(T,U,0,_.sortObjects),y.finish(),_.sortObjects===!0&&y.sort(L,W);const H=Le.enabled===!1||Le.isPresenting===!1||Le.hasDepthSensing()===!1;H&&re.addToRenderList(y,T),this.info.render.frame++,G===!0&&le.beginShadows();const z=p.state.shadowsArray;Te.render(z,T,U),G===!0&&le.endShadows(),this.info.autoReset===!0&&this.info.reset();const B=y.opaque,ce=y.transmissive;if(p.setupLights(_._useLegacyLights),U.isArrayCamera){const pe=U.cameras;if(ce.length>0)for(let ge=0,Me=pe.length;ge0&&mi(B,ce,T,U),H&&re.render(T),fn(y,T,U);A!==null&&(He.updateMultisampleRenderTarget(A),He.updateRenderTargetMipmap(A)),T.isScene===!0&&T.onAfterRender(_,T,U),Ce.resetDefaultState(),b=-1,w=null,g.pop(),g.length>0?(p=g[g.length-1],G===!0&&le.setGlobalState(_.clippingPlanes,p.state.camera)):p=null,c.pop(),c.length>0?y=c[c.length-1]:y=null};function pi(T,U,H,z){if(T.visible===!1)return;if(T.layers.test(U.layers)){if(T.isGroup)H=T.renderOrder;else if(T.isLOD)T.autoUpdate===!0&&T.update(U);else if(T.isLight)p.pushLight(T),T.castShadow&&p.pushShadow(T);else if(T.isSprite){if(!T.frustumCulled||Ge.intersectsSprite(T)){z&&oe.setFromMatrixPosition(T.matrixWorld).applyMatrix4(fe);const pe=$.update(T),ge=T.material;ge.visible&&y.push(T,pe,ge,H,oe.z,null)}}else if((T.isMesh||T.isLine||T.isPoints)&&(!T.frustumCulled||Ge.intersectsObject(T))){const pe=$.update(T),ge=T.material;if(z&&(T.boundingSphere!==void 0?(T.boundingSphere===null&&T.computeBoundingSphere(),oe.copy(T.boundingSphere.center)):(pe.boundingSphere===null&&pe.computeBoundingSphere(),oe.copy(pe.boundingSphere.center)),oe.applyMatrix4(T.matrixWorld).applyMatrix4(fe)),Array.isArray(ge)){const Me=pe.groups;for(let we=0,be=Me.length;we0&&Xn(B,U,H),ce.length>0&&Xn(ce,U,H),pe.length>0&&Xn(pe,U,H),Se.buffers.depth.setTest(!0),Se.buffers.depth.setMask(!0),Se.buffers.color.setMask(!0),Se.setPolygonOffset(!1)}function mi(T,U,H,z){if((H.isScene===!0?H.overrideMaterial:null)!==null)return;p.state.transmissionRenderTarget[z.id]===void 0&&(p.state.transmissionRenderTarget[z.id]=new Mr(1,1,{generateMipmaps:!0,type:xe.has("EXT_color_buffer_half_float")||xe.has("EXT_color_buffer_float")?bl:ji,minFilter:pr,samples:4,stencilBuffer:o,resolveDepthBuffer:!1,resolveStencilBuffer:!1}));const ce=p.state.transmissionRenderTarget[z.id],pe=z.viewport||S;ce.setSize(pe.z,pe.w);const ge=_.getRenderTarget();_.setRenderTarget(ce),_.getClearColor(D),q=_.getClearAlpha(),q<1&&_.setClearColor(16777215,.5),_.clear();const Me=_.toneMapping;_.toneMapping=Vi;const we=z.viewport;if(z.viewport!==void 0&&(z.viewport=void 0),p.setupLightsView(z),G===!0&&le.setGlobalState(_.clippingPlanes,z),Xn(T,H,z),He.updateMultisampleRenderTarget(ce),He.updateRenderTargetMipmap(ce),xe.has("WEBGL_multisampled_render_to_texture")===!1){let be=!1;for(let Fe=0,gt=U.length;Fe0),Fe=!!H.morphAttributes.position,gt=!!H.morphAttributes.normal,Dt=!!H.morphAttributes.color;let en=Vi;z.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(en=_.toneMapping);const jn=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,je=jn!==void 0?jn.length:0,Ae=Re.get(z),No=p.state.lights;if(G===!0&&(ne===!0||T!==w)){const dn=T===w&&z.id===b;le.setState(z,T,dn)}let st=!1;z.version===Ae.__version?(Ae.needsLights&&Ae.lightsStateVersion!==No.state.version||Ae.outputColorSpace!==ge||B.isBatchedMesh&&Ae.batching===!1||!B.isBatchedMesh&&Ae.batching===!0||B.isInstancedMesh&&Ae.instancing===!1||!B.isInstancedMesh&&Ae.instancing===!0||B.isSkinnedMesh&&Ae.skinning===!1||!B.isSkinnedMesh&&Ae.skinning===!0||B.isInstancedMesh&&Ae.instancingColor===!0&&B.instanceColor===null||B.isInstancedMesh&&Ae.instancingColor===!1&&B.instanceColor!==null||B.isInstancedMesh&&Ae.instancingMorph===!0&&B.morphTexture===null||B.isInstancedMesh&&Ae.instancingMorph===!1&&B.morphTexture!==null||Ae.envMap!==Me||z.fog===!0&&Ae.fog!==ce||Ae.numClippingPlanes!==void 0&&(Ae.numClippingPlanes!==le.numPlanes||Ae.numIntersection!==le.numIntersection)||Ae.vertexAlphas!==we||Ae.vertexTangents!==be||Ae.morphTargets!==Fe||Ae.morphNormals!==gt||Ae.morphColors!==Dt||Ae.toneMapping!==en||Ae.morphTargetsCount!==je)&&(st=!0):(st=!0,Ae.__version=z.version);let Qi=Ae.currentProgram;st===!0&&(Qi=ks(z,U,B));let qf=!1,Uo=!1,Ol=!1;const It=Qi.getUniforms(),gi=Ae.uniforms;if(Se.useProgram(Qi.program)&&(qf=!0,Uo=!0,Ol=!0),z.id!==b&&(b=z.id,Uo=!0),qf||w!==T){It.setValue(F,"projectionMatrix",T.projectionMatrix),It.setValue(F,"viewMatrix",T.matrixWorldInverse);const dn=It.map.cameraPosition;dn!==void 0&&dn.setValue(F,oe.setFromMatrixPosition(T.matrixWorld)),Ke.logarithmicDepthBuffer&&It.setValue(F,"logDepthBufFC",2/(Math.log(T.far+1)/Math.LN2)),(z.isMeshPhongMaterial||z.isMeshToonMaterial||z.isMeshLambertMaterial||z.isMeshBasicMaterial||z.isMeshStandardMaterial||z.isShaderMaterial)&&It.setValue(F,"isOrthographic",T.isOrthographicCamera===!0),w!==T&&(w=T,Uo=!0,Ol=!0)}if(B.isSkinnedMesh){It.setOptional(F,B,"bindMatrix"),It.setOptional(F,B,"bindMatrixInverse");const dn=B.skeleton;dn&&(dn.boneTexture===null&&dn.computeBoneTexture(),It.setValue(F,"boneTexture",dn.boneTexture,He))}B.isBatchedMesh&&(It.setOptional(F,B,"batchingTexture"),It.setValue(F,"batchingTexture",B._matricesTexture,He));const Fl=H.morphAttributes;if((Fl.position!==void 0||Fl.normal!==void 0||Fl.color!==void 0)&&_e.update(B,H,Qi),(Uo||Ae.receiveShadow!==B.receiveShadow)&&(Ae.receiveShadow=B.receiveShadow,It.setValue(F,"receiveShadow",B.receiveShadow)),z.isMeshGouraudMaterial&&z.envMap!==null&&(gi.envMap.value=Me,gi.flipEnvMap.value=Me.isCubeTexture&&Me.isRenderTargetTexture===!1?-1:1),z.isMeshStandardMaterial&&z.envMap===null&&U.environment!==null&&(gi.envMapIntensity.value=U.environmentIntensity),Uo&&(It.setValue(F,"toneMappingExposure",_.toneMappingExposure),Ae.needsLights&&S_(gi,Ol),ce&&z.fog===!0&&Q.refreshFogUniforms(gi,ce),Q.refreshMaterialUniforms(gi,z,te,J,p.state.transmissionRenderTarget[T.id]),Fa.upload(F,jf(Ae),gi,He)),z.isShaderMaterial&&z.uniformsNeedUpdate===!0&&(Fa.upload(F,jf(Ae),gi,He),z.uniformsNeedUpdate=!1),z.isSpriteMaterial&&It.setValue(F,"center",B.center),It.setValue(F,"modelViewMatrix",B.modelViewMatrix),It.setValue(F,"normalMatrix",B.normalMatrix),It.setValue(F,"modelMatrix",B.matrixWorld),z.isShaderMaterial||z.isRawShaderMaterial){const dn=z.uniformsGroups;for(let kl=0,E_=dn.length;kl0&&He.useMultisampledRTT(T)===!1?B=Re.get(T).__webglMultisampledFramebuffer:Array.isArray(be)?B=be[H]:B=be,S.copy(T.viewport),O.copy(T.scissor),j=T.scissorTest}else S.copy(X).multiplyScalar(te).floor(),O.copy(se).multiplyScalar(te).floor(),j=me;if(Se.bindFramebuffer(F.FRAMEBUFFER,B)&&z&&Se.drawBuffers(T,B),Se.viewport(S),Se.scissor(O),Se.setScissorTest(j),ce){const Me=Re.get(T.texture);F.framebufferTexture2D(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_CUBE_MAP_POSITIVE_X+U,Me.__webglTexture,H)}else if(pe){const Me=Re.get(T.texture),we=U||0;F.framebufferTextureLayer(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0,Me.__webglTexture,H||0,we)}b=-1},this.readRenderTargetPixels=function(T,U,H,z,B,ce,pe){if(!(T&&T.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ge=Re.get(T).__webglFramebuffer;if(T.isWebGLCubeRenderTarget&&pe!==void 0&&(ge=ge[pe]),ge){Se.bindFramebuffer(F.FRAMEBUFFER,ge);try{const Me=T.texture,we=Me.format,be=Me.type;if(!Ke.textureFormatReadable(we)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Ke.textureTypeReadable(be)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}U>=0&&U<=T.width-z&&H>=0&&H<=T.height-B&&F.readPixels(U,H,z,B,he.convert(we),he.convert(be),ce)}finally{const Me=A!==null?Re.get(A).__webglFramebuffer:null;Se.bindFramebuffer(F.FRAMEBUFFER,Me)}}},this.copyFramebufferToTexture=function(T,U,H=0){const z=Math.pow(2,-H),B=Math.floor(U.image.width*z),ce=Math.floor(U.image.height*z);He.setTexture2D(U,0),F.copyTexSubImage2D(F.TEXTURE_2D,H,0,0,T.x,T.y,B,ce),Se.unbindTexture()},this.copyTextureToTexture=function(T,U,H,z=0){const B=U.image.width,ce=U.image.height,pe=he.convert(H.format),ge=he.convert(H.type);He.setTexture2D(H,0),F.pixelStorei(F.UNPACK_FLIP_Y_WEBGL,H.flipY),F.pixelStorei(F.UNPACK_PREMULTIPLY_ALPHA_WEBGL,H.premultiplyAlpha),F.pixelStorei(F.UNPACK_ALIGNMENT,H.unpackAlignment),U.isDataTexture?F.texSubImage2D(F.TEXTURE_2D,z,T.x,T.y,B,ce,pe,ge,U.image.data):U.isCompressedTexture?F.compressedTexSubImage2D(F.TEXTURE_2D,z,T.x,T.y,U.mipmaps[0].width,U.mipmaps[0].height,pe,U.mipmaps[0].data):F.texSubImage2D(F.TEXTURE_2D,z,T.x,T.y,pe,ge,U.image),z===0&&H.generateMipmaps&&F.generateMipmap(F.TEXTURE_2D),Se.unbindTexture()},this.copyTextureToTexture3D=function(T,U,H,z,B=0){const ce=T.max.x-T.min.x,pe=T.max.y-T.min.y,ge=T.max.z-T.min.z,Me=he.convert(z.format),we=he.convert(z.type);let be;if(z.isData3DTexture)He.setTexture3D(z,0),be=F.TEXTURE_3D;else if(z.isDataArrayTexture||z.isCompressedArrayTexture)He.setTexture2DArray(z,0),be=F.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}F.pixelStorei(F.UNPACK_FLIP_Y_WEBGL,z.flipY),F.pixelStorei(F.UNPACK_PREMULTIPLY_ALPHA_WEBGL,z.premultiplyAlpha),F.pixelStorei(F.UNPACK_ALIGNMENT,z.unpackAlignment);const Fe=F.getParameter(F.UNPACK_ROW_LENGTH),gt=F.getParameter(F.UNPACK_IMAGE_HEIGHT),Dt=F.getParameter(F.UNPACK_SKIP_PIXELS),en=F.getParameter(F.UNPACK_SKIP_ROWS),jn=F.getParameter(F.UNPACK_SKIP_IMAGES),je=H.isCompressedTexture?H.mipmaps[B]:H.image;F.pixelStorei(F.UNPACK_ROW_LENGTH,je.width),F.pixelStorei(F.UNPACK_IMAGE_HEIGHT,je.height),F.pixelStorei(F.UNPACK_SKIP_PIXELS,T.min.x),F.pixelStorei(F.UNPACK_SKIP_ROWS,T.min.y),F.pixelStorei(F.UNPACK_SKIP_IMAGES,T.min.z),H.isDataTexture||H.isData3DTexture?F.texSubImage3D(be,B,U.x,U.y,U.z,ce,pe,ge,Me,we,je.data):z.isCompressedArrayTexture?F.compressedTexSubImage3D(be,B,U.x,U.y,U.z,ce,pe,ge,Me,je.data):F.texSubImage3D(be,B,U.x,U.y,U.z,ce,pe,ge,Me,we,je),F.pixelStorei(F.UNPACK_ROW_LENGTH,Fe),F.pixelStorei(F.UNPACK_IMAGE_HEIGHT,gt),F.pixelStorei(F.UNPACK_SKIP_PIXELS,Dt),F.pixelStorei(F.UNPACK_SKIP_ROWS,en),F.pixelStorei(F.UNPACK_SKIP_IMAGES,jn),B===0&&z.generateMipmaps&&F.generateMipmap(be),Se.unbindTexture()},this.initTexture=function(T){T.isCubeTexture?He.setTextureCube(T,0):T.isData3DTexture?He.setTexture3D(T,0):T.isDataArrayTexture||T.isCompressedArrayTexture?He.setTexture2DArray(T,0):He.setTexture2D(T,0),Se.unbindTexture()},this.resetState=function(){P=0,R=0,A=null,Se.reset(),Ce.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return ri}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===zf?"display-p3":"srgb",n.unpackColorSpace=Qe.workingColorSpace===Dl?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class PT extends an{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ci,this.environmentIntensity=1,this.environmentRotation=new ci,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(n.object.environmentIntensity=this.environmentIntensity),n.object.environmentRotation=this.environmentRotation.toArray(),n}}class Wf extends hi{constructor(e=1,n=32,i=16,r=0,o=Math.PI*2,s=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:i,phiStart:r,phiLength:o,thetaStart:s,thetaLength:a},n=Math.max(3,Math.floor(n)),i=Math.max(2,Math.floor(i));const l=Math.min(s+a,Math.PI);let u=0;const f=[],h=new N,d=new N,m=[],v=[],y=[],p=[];for(let c=0;c<=i;c++){const g=[],_=c/i;let E=0;c===0&&s===0?E=.5/n:c===i&&l===Math.PI&&(E=-.5/n);for(let P=0;P<=n;P++){const R=P/n;h.x=-e*Math.cos(r+R*o)*Math.sin(s+_*a),h.y=e*Math.cos(s+_*a),h.z=e*Math.sin(r+R*o)*Math.sin(s+_*a),v.push(h.x,h.y,h.z),d.copy(h).normalize(),y.push(d.x,d.y,d.z),p.push(R+E,1-_),g.push(u++)}f.push(g)}for(let c=0;c0)&&m.push(_,E,R),(c!==i-1||lMath.PI&&(mt-=Oe),tt<-Math.PI?tt+=Oe:tt>Math.PI&&(tt-=Oe),mt<=tt?a.theta=Math.max(mt,Math.min(tt,a.theta)):a.theta=a.theta>(mt+tt)/2?Math.max(mt,a.theta):Math.min(tt,a.theta)),a.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,a.phi)),a.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(f,i.dampingFactor):i.target.add(f),i.target.sub(i.cursor),i.target.clampLength(i.minTargetRadius,i.maxTargetRadius),i.target.add(i.cursor);let pi=!1;if(i.zoomToCursor&&R||i.object.isOrthographicCamera)a.radius=X(a.radius);else{const fn=a.radius;a.radius=X(a.radius*u),pi=fn!=a.radius}if(x.setFromSpherical(a),x.applyQuaternion(k),Xe.copy(i.target).add(x),i.object.lookAt(i.target),i.enableDamping===!0?(l.theta*=1-i.dampingFactor,l.phi*=1-i.dampingFactor,f.multiplyScalar(1-i.dampingFactor)):(l.set(0,0,0),f.set(0,0,0)),i.zoomToCursor&&R){let fn=null;if(i.object.isPerspectiveCamera){const mi=x.length();fn=X(mi*u);const Xn=mi-fn;i.object.position.addScaledVector(E,Xn),i.object.updateMatrixWorld(),pi=!!Xn}else if(i.object.isOrthographicCamera){const mi=new N(P.x,P.y,0);mi.unproject(i.object);const Xn=i.object.zoom;i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/u)),i.object.updateProjectionMatrix(),pi=Xn!==i.object.zoom;const Io=new N(P.x,P.y,0);Io.unproject(i.object),i.object.position.sub(Io).add(mi),i.object.updateMatrixWorld(),fn=x.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;fn!==null&&(this.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(fn).add(i.object.position):(Ta.origin.copy(i.object.position),Ta.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(Ta.direction))s||8*(1-ie.dot(i.object.quaternion))>s||Pe.distanceToSquared(i.target)>s?(i.dispatchEvent(Cp),K.copy(i.object.position),ie.copy(i.object.quaternion),Pe.copy(i.target),!0):!1}}(),this.dispose=function(){i.domElement.removeEventListener("contextmenu",Ve),i.domElement.removeEventListener("pointerdown",C),i.domElement.removeEventListener("pointercancel",V),i.domElement.removeEventListener("wheel",Q),i.domElement.removeEventListener("pointermove",M),i.domElement.removeEventListener("pointerup",V),i.domElement.getRootNode().removeEventListener("keydown",ue,{capture:!0}),i._domElementKeyEvents!==null&&(i._domElementKeyEvents.removeEventListener("keydown",Te),i._domElementKeyEvents=null)};const i=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let o=r.NONE;const s=1e-6,a=new Rp,l=new Rp;let u=1;const f=new N,h=new Ee,d=new Ee,m=new Ee,v=new Ee,y=new Ee,p=new Ee,c=new Ee,g=new Ee,_=new Ee,E=new N,P=new Ee;let R=!1;const A=[],b={};let w=!1;function S(x){return x!==null?2*Math.PI/60*i.autoRotateSpeed*x:2*Math.PI/60/60*i.autoRotateSpeed}function O(x){const I=Math.abs(x*.01);return Math.pow(.95,i.zoomSpeed*I)}function j(x){l.theta-=x}function D(x){l.phi-=x}const q=function(){const x=new N;return function(k,K){x.setFromMatrixColumn(K,0),x.multiplyScalar(-k),f.add(x)}}(),Y=function(){const x=new N;return function(k,K){i.screenSpacePanning===!0?x.setFromMatrixColumn(K,1):(x.setFromMatrixColumn(K,0),x.crossVectors(i.object.up,x)),x.multiplyScalar(k),f.add(x)}}(),J=function(){const x=new N;return function(k,K){const ie=i.domElement;if(i.object.isPerspectiveCamera){const Pe=i.object.position;x.copy(Pe).sub(i.target);let Oe=x.length();Oe*=Math.tan(i.object.fov/2*Math.PI/180),q(2*k*Oe/ie.clientHeight,i.object.matrix),Y(2*K*Oe/ie.clientHeight,i.object.matrix)}else i.object.isOrthographicCamera?(q(k*(i.object.right-i.object.left)/i.object.zoom/ie.clientWidth,i.object.matrix),Y(K*(i.object.top-i.object.bottom)/i.object.zoom/ie.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}}();function te(x){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?u/=x:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function L(x){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?u*=x:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function W(x,I){if(!i.zoomToCursor)return;R=!0;const k=i.domElement.getBoundingClientRect(),K=x-k.left,ie=I-k.top,Pe=k.width,Oe=k.height;P.x=K/Pe*2-1,P.y=-(ie/Oe)*2+1,E.set(P.x,P.y,1).unproject(i.object).sub(i.object.position).normalize()}function X(x){return Math.max(i.minDistance,Math.min(i.maxDistance,x))}function se(x){h.set(x.clientX,x.clientY)}function me(x){W(x.clientX,x.clientX),c.set(x.clientX,x.clientY)}function Ge(x){v.set(x.clientX,x.clientY)}function G(x){d.set(x.clientX,x.clientY),m.subVectors(d,h).multiplyScalar(i.rotateSpeed);const I=i.domElement;j(2*Math.PI*m.x/I.clientHeight),D(2*Math.PI*m.y/I.clientHeight),h.copy(d),i.update()}function ne(x){g.set(x.clientX,x.clientY),_.subVectors(g,c),_.y>0?te(O(_.y)):_.y<0&&L(O(_.y)),c.copy(g),i.update()}function fe(x){y.set(x.clientX,x.clientY),p.subVectors(y,v).multiplyScalar(i.panSpeed),J(p.x,p.y),v.copy(y),i.update()}function oe(x){W(x.clientX,x.clientY),x.deltaY<0?L(O(x.deltaY)):x.deltaY>0&&te(O(x.deltaY)),i.update()}function ke(x){let I=!1;switch(x.code){case i.keys.UP:x.ctrlKey||x.metaKey||x.shiftKey?D(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):J(0,i.keyPanSpeed),I=!0;break;case i.keys.BOTTOM:x.ctrlKey||x.metaKey||x.shiftKey?D(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):J(0,-i.keyPanSpeed),I=!0;break;case i.keys.LEFT:x.ctrlKey||x.metaKey||x.shiftKey?j(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):J(i.keyPanSpeed,0),I=!0;break;case i.keys.RIGHT:x.ctrlKey||x.metaKey||x.shiftKey?j(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):J(-i.keyPanSpeed,0),I=!0;break}I&&(x.preventDefault(),i.update())}function Ne(x){if(A.length===1)h.set(x.pageX,x.pageY);else{const I=Ze(x),k=.5*(x.pageX+I.x),K=.5*(x.pageY+I.y);h.set(k,K)}}function F(x){if(A.length===1)v.set(x.pageX,x.pageY);else{const I=Ze(x),k=.5*(x.pageX+I.x),K=.5*(x.pageY+I.y);v.set(k,K)}}function $e(x){const I=Ze(x),k=x.pageX-I.x,K=x.pageY-I.y,ie=Math.sqrt(k*k+K*K);c.set(0,ie)}function xe(x){i.enableZoom&&$e(x),i.enablePan&&F(x)}function Ke(x){i.enableZoom&&$e(x),i.enableRotate&&Ne(x)}function Se(x){if(A.length==1)d.set(x.pageX,x.pageY);else{const k=Ze(x),K=.5*(x.pageX+k.x),ie=.5*(x.pageY+k.y);d.set(K,ie)}m.subVectors(d,h).multiplyScalar(i.rotateSpeed);const I=i.domElement;j(2*Math.PI*m.x/I.clientHeight),D(2*Math.PI*m.y/I.clientHeight),h.copy(d)}function ze(x){if(A.length===1)y.set(x.pageX,x.pageY);else{const I=Ze(x),k=.5*(x.pageX+I.x),K=.5*(x.pageY+I.y);y.set(k,K)}p.subVectors(y,v).multiplyScalar(i.panSpeed),J(p.x,p.y),v.copy(y)}function Re(x){const I=Ze(x),k=x.pageX-I.x,K=x.pageY-I.y,ie=Math.sqrt(k*k+K*K);g.set(0,ie),_.set(0,Math.pow(g.y/c.y,i.zoomSpeed)),te(_.y),c.copy(g);const Pe=(x.pageX+I.x)*.5,Oe=(x.pageY+I.y)*.5;W(Pe,Oe)}function He(x){i.enableZoom&&Re(x),i.enablePan&&ze(x)}function ot(x){i.enableZoom&&Re(x),i.enableRotate&&Se(x)}function C(x){i.enabled!==!1&&(A.length===0&&(i.domElement.setPointerCapture(x.pointerId),i.domElement.addEventListener("pointermove",M),i.domElement.addEventListener("pointerup",V)),!Ce(x)&&(ye(x),x.pointerType==="touch"?re(x):$(x)))}function M(x){i.enabled!==!1&&(x.pointerType==="touch"?_e(x):Z(x))}function V(x){switch(he(x),A.length){case 0:i.domElement.releasePointerCapture(x.pointerId),i.domElement.removeEventListener("pointermove",M),i.domElement.removeEventListener("pointerup",V),i.dispatchEvent(Pp),o=r.NONE;break;case 1:const I=A[0],k=b[I];re({pointerId:I,pageX:k.x,pageY:k.y});break}}function $(x){let I;switch(x.button){case 0:I=i.mouseButtons.LEFT;break;case 1:I=i.mouseButtons.MIDDLE;break;case 2:I=i.mouseButtons.RIGHT;break;default:I=-1}switch(I){case Cr.DOLLY:if(i.enableZoom===!1)return;me(x),o=r.DOLLY;break;case Cr.ROTATE:if(x.ctrlKey||x.metaKey||x.shiftKey){if(i.enablePan===!1)return;Ge(x),o=r.PAN}else{if(i.enableRotate===!1)return;se(x),o=r.ROTATE}break;case Cr.PAN:if(x.ctrlKey||x.metaKey||x.shiftKey){if(i.enableRotate===!1)return;se(x),o=r.ROTATE}else{if(i.enablePan===!1)return;Ge(x),o=r.PAN}break;default:o=r.NONE}o!==r.NONE&&i.dispatchEvent(Vu)}function Z(x){switch(o){case r.ROTATE:if(i.enableRotate===!1)return;G(x);break;case r.DOLLY:if(i.enableZoom===!1)return;ne(x);break;case r.PAN:if(i.enablePan===!1)return;fe(x);break}}function Q(x){i.enabled===!1||i.enableZoom===!1||o!==r.NONE||(x.preventDefault(),i.dispatchEvent(Vu),oe(ve(x)),i.dispatchEvent(Pp))}function ve(x){const I=x.deltaMode,k={clientX:x.clientX,clientY:x.clientY,deltaY:x.deltaY};switch(I){case 1:k.deltaY*=16;break;case 2:k.deltaY*=100;break}return x.ctrlKey&&!w&&(k.deltaY*=10),k}function ue(x){x.key==="Control"&&(w=!0,i.domElement.getRootNode().addEventListener("keyup",le,{passive:!0,capture:!0}))}function le(x){x.key==="Control"&&(w=!1,i.domElement.getRootNode().removeEventListener("keyup",le,{passive:!0,capture:!0}))}function Te(x){i.enabled===!1||i.enablePan===!1||ke(x)}function re(x){switch(Ue(x),A.length){case 1:switch(i.touches.ONE){case Pr.ROTATE:if(i.enableRotate===!1)return;Ne(x),o=r.TOUCH_ROTATE;break;case Pr.PAN:if(i.enablePan===!1)return;F(x),o=r.TOUCH_PAN;break;default:o=r.NONE}break;case 2:switch(i.touches.TWO){case Pr.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;xe(x),o=r.TOUCH_DOLLY_PAN;break;case Pr.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;Ke(x),o=r.TOUCH_DOLLY_ROTATE;break;default:o=r.NONE}break;default:o=r.NONE}o!==r.NONE&&i.dispatchEvent(Vu)}function _e(x){switch(Ue(x),o){case r.TOUCH_ROTATE:if(i.enableRotate===!1)return;Se(x),i.update();break;case r.TOUCH_PAN:if(i.enablePan===!1)return;ze(x),i.update();break;case r.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;He(x),i.update();break;case r.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;ot(x),i.update();break;default:o=r.NONE}}function Ve(x){i.enabled!==!1&&x.preventDefault()}function ye(x){A.push(x.pointerId)}function he(x){delete b[x.pointerId];for(let I=0;I` +varying vec4 world_position; + +void main() { + world_position = modelMatrix * vec4(position, 1.0); + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); +} +`,FT=(t,e,n)=>` +uniform vec3 signals[${t}]; +uniform float signalIntensities[${t}]; +uniform int signalCount; +uniform vec3 aabbs[${e*2}]; +uniform int aabbCount; +uniform vec3 planes[${n*2}]; +uniform int planeCount; +uniform sampler2D map; +uniform vec2 mapScale; +uniform vec2 mapOffset; +uniform bool isSignalIndex; + +varying vec4 world_position; + +vec3 hsv2rgb(vec3 c) { + vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); + vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); + return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); +} + +vec3 opacityToHSV(float opacity) { + float minHue = 0.7; + float maxHue = 0.0; + float hue = mix(minHue, maxHue, opacity); + return hsv2rgb(vec3(hue, 1.0, 1.0)); +} + +float decay(float distance, float intensity) { + return 1.0 / pow(distance / intensity + 1.0, 2.0); +} + +// adapted from intersectCube in https://github.com/evanw/webgl-path-tracing/blob/master/webgl-path-tracing.js +// compute the near and far intersections of the cube (stored in the x and y components) using the slab method +// no intersection means vec.x > vec.y (really tNear > tFar) +vec2 intersectAABB(vec3 rayOrigin, vec3 rayDir, vec3 boxMin, vec3 boxMax) { + vec3 tMin = (boxMin - rayOrigin) / rayDir; + vec3 tMax = (boxMax - rayOrigin) / rayDir; + vec3 t1 = min(tMin, tMax); + vec3 t2 = max(tMin, tMax); + float tNear = max(max(t1.x, t1.y), t1.z); + float tFar = min(min(t2.x, t2.y), t2.z); + return vec2(tNear, tFar); +} + +float PointInOrOn(vec3 P1, vec3 P2, vec3 A, vec3 B) { + vec3 CP1 = cross(B - A, P1 - A); + vec3 CP2 = cross(B - A, P2 - A); + return step(0.0, dot(CP1, CP2)); +} + +bool PointInTriangle(vec3 px, vec3 p0, vec3 p1, vec3 p2) { + return PointInOrOn(px, p0, p1, p2) * PointInOrOn(px, p1, p2, p0) * PointInOrOn(px, p2, p0, p1) < 1e-3; +} + +vec3 IntersectPlane(vec3 rayOrigin, vec3 rayDir, vec3 p0, vec3 p1, vec3 p2) { + vec3 D = rayDir; + vec3 N = cross(p1 - p0, p2 - p0); + vec3 X = rayOrigin + D * dot(p0 - rayOrigin, N) / dot(D, N); + return X; +} + +bool pointOnRay(vec3 point, vec3 rayOrigin, vec3 rayDir) { + vec3 intersectionDir = normalize(rayOrigin - point); + return dot(intersectionDir, rayDir) < (1.0 - 1e-3); +} + +bool intersect(vec3 origin, vec3 rayDir, vec3 p0, vec3 p1, vec3 p2, float maxDistance) { + vec3 x = IntersectPlane(origin, rayDir, p0, p1, p2); + bool noIntersections = PointInTriangle(x, p0, p1, p2) || !pointOnRay(x, origin, rayDir) || distance(x, origin) > maxDistance - 1e-3; + return !noIntersections; +} + +void main() { + float maxSignalIndex = 1.0; + float density = 1e-3; + for (int signalIndex = 0; signalIndex < signalCount; signalIndex++) { + float wallDistance = 0.0; + vec3 signalPosition = signals[signalIndex].xyz; + vec3 rayDir = normalize(world_position.xyz - signalPosition); + + float totalDistance = distance(world_position.xyz, signalPosition); + + for (int aabbIndex = 0; aabbIndex < aabbCount; aabbIndex++) { + vec2 nearFar = intersectAABB(signalPosition, rayDir, aabbs[2 * aabbIndex], aabbs[2 * aabbIndex + 1]); + bool noIntersections = nearFar.x > nearFar.y || nearFar.x < 0.0 || nearFar.x > totalDistance - 1e-3; + if (noIntersections) { + continue; + } + + wallDistance += nearFar.y - nearFar.x; + } + + for (int planeIndex = 0; planeIndex < planeCount; planeIndex++) { + vec3 min = planes[2 * planeIndex]; + vec3 max = planes[2 * planeIndex + 1]; + + vec3 p0 = min; + vec3 p1 = vec3(max.x, min.y, max.z); + vec3 p2 = max; + vec3 p3 = vec3(min.x, max.y, min.z); + + if (!intersect(signalPosition, rayDir, p0, p1, p2, totalDistance) && !intersect(signalPosition, rayDir, p3, p0, p2, totalDistance)) { + continue; + } + + wallDistance += 0.15; + } + + float wallDecay = wallDistance * 0.2; + float newDensity = decay(totalDistance - wallDistance, signalIntensities[signalIndex]) - wallDecay; + + if (newDensity > density) { + density = newDensity; + maxSignalIndex = float(signalIndex) / float(signalCount); + } + } + + vec4 visualizedDensity = vec4(opacityToHSV(isSignalIndex? maxSignalIndex:density), 1.0); + vec4 color = texture2D(map, (world_position.xz * mapScale) + mapOffset); + gl_FragColor = mix(color, visualizedDensity, 0.4); +} +`;class hl extends fi{static _getUniformLimitation(){return{MAX_SIGNAL_COUNT:15,MAX_AABB_COUNT:25,MAX_PLANE_COUNT:80}}constructor(){const{MAX_SIGNAL_COUNT:e,MAX_AABB_COUNT:n,MAX_PLANE_COUNT:i}=hl._getUniformLimitation();super({uniforms:{isSignalIndex:{value:!1},mapScale:{value:new Ee(1,1)},mapOffset:{value:new Ee(0,0)},map:{value:null},planeCount:{value:0},aabbCount:{value:0},signalCount:{value:0},signalIntensities:{value:Array(e).fill(10)},signals:{value:Array(e).fill(new N)},aabbs:{value:Array(n*2).fill(new N)},planes:{value:Array(i*2).fill(new N)}},vertexShader:OT(),fragmentShader:FT(e,n,i)})}setUniforms({isSignalIndex:e,planeCount:n,aabbCount:i,signalCount:r,signals:o,signalIntensities:s,aabbs:a,planes:l,map:u,mapScale:f,mapOffset:h}){const{MAX_SIGNAL_COUNT:d,MAX_AABB_COUNT:m,MAX_PLANE_COUNT:v}=hl._getUniformLimitation(),y=p=>p!==void 0;y(e)&&(this.uniforms.isSignalIndex.value=e),y(n)&&(this.uniforms.planeCount.value=n),y(i)&&(this.uniforms.aabbCount.value=i),y(r)&&(this.uniforms.signalCount.value=r),s&&(this.uniforms.signalIntensities.value=[...s,...Array(d-s.length).fill(0)]),o&&(this.uniforms.signals.value=[...o,...Array(d-o.length).fill(new N)]),a&&(this.uniforms.aabbs.value=[...a,...Array(m*2-a.length).fill(new N)]),l&&(this.uniforms.planes.value=[...l,...Array(v*2-l.length).fill(new N)]),u&&(this.uniforms.map.value=u),f&&(this.uniforms.mapScale.value=f),h&&(this.uniforms.mapOffset.value=h)}}class kT extends hi{constructor(){super(),this.aabbArray=[],this.PLANE_THICKNESS=.08,this.planeArray=[],this.floorVertices=[]}_updateGeometry(){const e=this.aabbArray.flatMap(([i,r])=>{const o=r[0]-i[0],s=r[1]-i[1],a=r[2]-i[2],l=new Er(o,s,a);l.translate((r[0]+i[0])/2,(r[1]+i[1])/2,(r[2]+i[2])/2);const u=[...l.attributes.position.array];return[...l.getIndex().array].flatMap(d=>[u[d*3],u[d*3+1],u[d*3+2]])}),n=this.planeArray.flatMap(([i,r])=>{const o=new xt().lookAt(new N(i[0],0,i[2]),new N(r[0],0,r[2]),new N(0,1,0)),s=new Yi().setFromRotationMatrix(o),a=new Ee(r[0]-i[0],r[2]-i[2]).length(),l=r[1]-i[1],u=new Er(this.PLANE_THICKNESS,l,a);u.applyQuaternion(s),u.translate((r[0]+i[0])/2,(r[1]+i[1])/2,(r[2]+i[2])/2);const f=[...u.attributes.position.array];return[...u.getIndex().array].flatMap(m=>[f[m*3],f[m*3+1],f[m*3+2]])});this.setAttribute("position",new In(new Float32Array([...this.floorVertices.flat(),...e,...n]),3))}setFloor(e,n){this.floorVertices=[[1,0,1],[-1,0,1],[1,0,-1],[1,0,-1],[-1,0,1],[-1,0,-1],[1,0,1],[1,0,-1],[-1,0,1],[1,0,-1],[-1,0,-1],[-1,0,1]].flatMap(([i,r,o])=>[i*e/2,r,o*n/2]),this._updateGeometry()}setAABB(e){e&&(this.aabbArray=e,this._updateGeometry())}setPlane(e){e&&(this.planeArray=e,this._updateGeometry())}}let zT=class{constructor(){this._scene=new PT,this.heatmapMaterial=new hl,this.roomGeometry=new kT,this.roomGeometry.setFloor(20,20);const e=new Ln(this.roomGeometry,this.heatmapMaterial);this._scene.add(e),this._signalGroup=new Jo,this._scene.add(this._signalGroup)}setSignal(e){e&&(this._signalGroup.clear(),e.forEach(n=>{const i=new Wf(.1,16,16),r=new Vf({color:0,wireframe:!0}),o=new Ln(i,r);o.position.fromArray(n),this._signalGroup.add(o)}),this.heatmapMaterial.setUniforms({signalCount:e.length,signals:e.map(n=>new N().fromArray(n))}))}setAABB(e){e&&(this.roomGeometry.setAABB(e),this.heatmapMaterial.setUniforms({aabbCount:e.length,aabbs:e.flatMap(([n,i])=>[new N().fromArray(n),new N().fromArray(i)])}))}setPlane(e){e&&(this.roomGeometry.setPlane(e),this.heatmapMaterial.setUniforms({planeCount:e.length*2,planes:e.flatMap(([n,i])=>[new N().fromArray(n),new N().fromArray(i)])}))}setIsSignalIndex(e){this.heatmapMaterial.setUniforms({isSignalIndex:e})}setSignalIntensities(e){this.heatmapMaterial.setUniforms({signalIntensities:e})}setTexture(e,n,i){const r=new IT().load(e);this.heatmapMaterial.setUniforms({map:r,mapScale:new Ee().fromArray(n),mapOffset:new Ee().fromArray(i)})}init(e){const n=new CT({canvas:e,alpha:!0}),i=new gn(75,window.innerWidth/window.innerHeight,.001,1e3),r=new UT(i,n.domElement);i.position.set(0,20,100),r.update(),i.position.z=5;let o=0;const s=()=>{o=requestAnimationFrame(s),r.update(),n.render(this._scene,i)},a=()=>{cancelAnimationFrame(o)},l=(u,f)=>{e.width=u,e.height=f,n.setSize(u,f),i.aspect=u/f,i.updateProjectionMatrix()};return s(),{resizeCanvas:l,dispose:a}}};const BT=({texture:t,textCoordScale:e,textCoordSoffset:n,isSignalIndex:i,signalIntensities:r,signals:o,aabbs:s,planes:a})=>{const[l]=ut.useState(new zT),u=ut.useRef(null),f=ut.useRef(null);return ut.useEffect(()=>{l.setTexture(t,e,n)},[t,e,n]),ut.useEffect(()=>{l.setIsSignalIndex(i)},[i]),ut.useEffect(()=>{l.setSignalIntensities(r)},[r]),ut.useEffect(()=>{l.setSignal(o)},[o]),ut.useEffect(()=>{l.setAABB(s)},[s]),ut.useEffect(()=>{l.setPlane(a)},[a]),ut.useEffect(()=>{const h=f.current,{resizeCanvas:d,dispose:m}=l.init(h),v=()=>{const y=u.current.clientWidth,p=u.current.clientHeight;d(y,p)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v),m()}},[]),Ye.jsx("div",{ref:u,style:{width:"100%",height:"100%",overflow:"hidden"},children:Ye.jsx("canvas",{ref:f})})},HT=[[[1.02,0,-10],[1.45,3,1.2]],[[-4.6,0,.73],[1.02,3,1.2]],[[-9.55,0,.73],[-7.1,3,1.2]],[[3.85,0,-10],[4.25,3,-4]],[[3.85,0,-.6],[4.25,3,.55]],[[4.25,0,.12],[8.34,3,.55]],[[-9.65,0,8.2],[-6.8,3,8.7]],[[-3.75,0,8.2],[2.5,3,8.7]],[[5.55,0,8.2],[8.34,3,8.7]],[[-9.65,0,-9.55],[1.02,3,-10]],[[4.25,0,-9.55],[8.34,3,-10]],[[-9.55,0,-10],[-10,3,8.7]],[[8.34,0,-10],[8.75,3,8.7]]],VT=[[[-5.1,0,2.2],[-3.1,.3,7.35]],[[-3.1,0,2.2],[-2.5,1,7.35]],[[1.45,.8,2.5],[4,1,5.2]],[[-2.1,1,-9.55],[-8.4,0,-3.5]],[[1.02,1,-9.55],[-.75,0,-2.9]]],GT=t=>{const n=-Math.PI/2+.1;return[[[-7.1+2.5*Math.cos(0*t+n*(1-t)),0,.73+2.5*Math.sin(0*t+n*(1-t))],[-7.1,3,.73]],[[4.05,0,-.6],[4.05,3,-.6+-1.7*t+0*(1-t)]],[[-6.8,0,8.5],[-3.75,3,8.5]],[[2.5,0,8.5],[5.55,3,8.5]]]},WT=()=>{const[t,e]=ut.useState(!1),[n,i]=ut.useState(!0),[r,o]=ut.useState(!0),[s,a]=ut.useState(.5),[l,u]=ut.useState([10,10]),[f]=ut.useState([[0,1.1,-4],[0,2,8.1]]),[h,d]=ut.useState([]),[m,v]=ut.useState([]);ut.useEffect(()=>{let p=[];n&&(p=[...p,...VT]),r&&(p=[...p,...HT]),d(p)},[n,r]),ut.useEffect(()=>{v(GT(s))},[s]);const y=p=>c=>{const g=parseFloat(c.target.value),_=[...l];_[p]=g,u(_)};return Ye.jsxs(Ye.Fragment,{children:[Ye.jsxs("div",{style:{position:"fixed",right:"0",display:"flex",flexDirection:"column",gap:"10px",padding:"10px"},children:[Ye.jsx("a",{href:"https://github.com/yushiang-demo/coverage-heatmap",children:Ye.jsx("img",{width:"40px",src:"/coverage-heatmap/github.svg"})}),Ye.jsx("a",{href:"/coverage-heatmap/doc/",children:Ye.jsx("img",{width:"40px",src:"/coverage-heatmap/doc.svg"})})]}),Ye.jsxs("div",{style:{position:"fixed"},children:[l.map((p,c)=>{const g=`signal${c}_intensity`;return Ye.jsxs(Hp.Fragment,{children:[Ye.jsx("label",{htmlFor:g,children:g}),Ye.jsx("input",{type:"range",id:g,min:.001,max:30,step:.1,onChange:y(c),value:p}),Ye.jsx("br",{})]},g)}),Ye.jsx("input",{type:"checkbox",id:"wall",onChange:p=>o(p.target.checked),checked:r}),Ye.jsx("label",{htmlFor:"wall",children:"has wall"}),Ye.jsx("br",{}),Ye.jsx("input",{type:"checkbox",id:"furniture",onChange:p=>i(p.target.checked),checked:n}),Ye.jsx("label",{htmlFor:"furniture",children:"has furniture"}),Ye.jsx("br",{}),Ye.jsx("input",{type:"checkbox",id:"signalIndex",onChange:p=>e(p.target.checked),checked:t}),Ye.jsx("label",{htmlFor:"signalIndex",children:"show signal index map"}),Ye.jsx("br",{}),Ye.jsx("label",{htmlFor:"door",children:"Door"}),Ye.jsx("input",{type:"range",id:"door",min:.001,max:1,step:.01,onChange:p=>a(p.target.value),value:s}),Ye.jsx("br",{})]}),Ye.jsx(BT,{texture:"/coverage-heatmap/floorplan.png",isSignalIndex:t,signalIntensities:l,signals:f,aabbs:h,planes:m})]})};Gu.createRoot(document.getElementById("root")).render(Ye.jsx(Hp.StrictMode,{children:Ye.jsx(WT,{})})); diff --git a/doc.svg b/doc.svg new file mode 100644 index 0000000..bef2559 --- /dev/null +++ b/doc.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/App.html b/doc/App.html new file mode 100644 index 0000000..0aa6f1c --- /dev/null +++ b/doc/App.html @@ -0,0 +1,11 @@ +Class: App
On this page

App

new App()

Methods

init(canvas) → {Object}

Initializes Three.js rendering on a given canvas element.

Parameters:
NameTypeDescription
canvasHTMLCanvasElement

The canvas element to bind Three.js rendering.

Returns:

An object containing two callbacks:

  • resizeCanvas: A callback to resize the renderer when the size of the canvas changes.
  • dispose: A callback to clear the rendering process if the canvas element is removed from the DOM.
Type: 
Object
Example
const canvasElement = document.getElementById('myCanvas');
+const {resizeCanvas, dispose} = app.init(canvasElement);

setAABB(data)

Sets the Axis-Aligned Bounding Box (AABB) data.

Parameters:
NameTypeDescription
dataArray.<Vector.Vector3Pair>

An array containing two elements, each representing a start and end vector, both three-dimensional.

Example
app.setAABB([
+  [[0, 0, 0], [1, 1, 1]]
+]);

setIsSignalIndex(data)

Sets whether to show the indexMap or not.

Parameters:
NameTypeDescription
databoolean

A boolean value indicating whether to show the indexMap.

Example
app.setIsSignalIndex(true);

setPlane(data)

Sets the plane data.

Parameters:
NameTypeDescription
dataArray.<Vector.Vector3Pair>

An array containing two elements, each representing a start and end vector, both three-dimensional.

Example
app.setPlane([
+  [[0, 0, 0], [1, 1, 1]]
+]);

setSignal(data)

Sets a signal at specific positions in a 3D dimension.

Parameters:
NameTypeDescription
dataArray.<Vector.Vector3>

An array containing vectors representing positions in 3D space where signals are set.

Example
app.setSignal([
+  [0, 0, 0],
+  [1, 1, 1]
+]);

setSignalIntensities(data)

Sets the intensity for each signal.

Parameters:
NameTypeDescription
dataArray.<number>

An array containing intensity values for each signal.

Example
app.setSignalIntensities([0.2, 0.5, 0.8]);

setTexture(url, scale, offset)

Sets the floorplan used as a texture.

Parameters:
NameTypeDescription
urlstring

The URL of the floorplan image.

scaleArray.<number>

The scale factors to apply to the sampling coordinates.

offsetArray.<number>

The offsets for positioning the sampling coordinates.

Example
app.setTexture("https://example.com/floorplan.jpg", [1, 1], [0, 0]);
\ No newline at end of file diff --git a/doc/HeatmapMaterial.html b/doc/HeatmapMaterial.html new file mode 100644 index 0000000..a6e87c9 --- /dev/null +++ b/doc/HeatmapMaterial.html @@ -0,0 +1,3 @@ +Class: HeatmapMaterial
On this page

HeatmapMaterial

Responsibles for rendering a heatmap visualization based on the intensity of signals within a three-dimensional environment. It provides a visually intuitive representation of signal strength, allowing users to identify areas of high and low signal intensity.

Constructor

new HeatmapMaterial()

Extends

Methods

setUniforms(options) → {void}

Sets uniforms for the application.

Parameters:
NameTypeDescription
optionsObject

An object containing various uniform parameters.

Properties
NameTypeDescription
isSignalIndexboolean

Indicates whether the uniform is for displaying the indexMap of coverage.

planeCountnumber

The count of planes.

aabbCountnumber

The count of axis-aligned bounding boxes.

signalCountnumber

The count of signals.

signalsArray.<THREE.Vector3>

An array containing signal data.

signalIntensitiesArray.<number>

An array containing signal intensities.

aabbsArray.<THREE.Vector3>

An array containing axis-aligned bounding box data.

planesArray.<THREE.Vector3>

An array containing plane data.

mapTHREE.Texture

An object representing a map.

mapScaleTHREE.Vector2

The scale factor to apply to the sampling coordinates.

mapOffsetTHREE.Vector2

The offset for positioning the sampling coordinates.

Returns:
Type: 
void
\ No newline at end of file diff --git a/doc/RoomBufferGeometry.html b/doc/RoomBufferGeometry.html new file mode 100644 index 0000000..980a210 --- /dev/null +++ b/doc/RoomBufferGeometry.html @@ -0,0 +1,7 @@ +Class: RoomBufferGeometry
On this page

RoomBufferGeometry

Represents a room with control over its features like walls, doors, furniture and signals.

Constructor

new RoomBufferGeometry()

Extends

Methods

setAABB(data)

Sets the Axis-Aligned Bounding Box (AABB) data.

Parameters:
NameTypeDescription
dataArray.<Vector.Vector3Pair>

An array containing two elements, each representing a start and end vector, both three-dimensional.

Example
roomBufferGeometry.setAABB([
+  [[0, 0, 0], [1, 1, 1]]
+]);

setFloor(width, length)

Sets the floor size.

Parameters:
NameTypeDescription
widthnumber

The width of the room.

lengthnumber

The length of the room.

Example
roomBufferGeometry.setFloor(20, 20);

setPlane(data)

Sets the plane data.

Parameters:
NameTypeDescription
dataArray.<Vector.Vector3Pair>

An array containing two elements, each representing a start and end vector, both three-dimensional.

Example
roomBufferGeometry.setPlane([
+  [[0, 0, 0], [1, 1, 1]]
+]);
\ No newline at end of file diff --git a/doc/THREE.html b/doc/THREE.html new file mode 100644 index 0000000..71cd77a --- /dev/null +++ b/doc/THREE.html @@ -0,0 +1,3 @@ +Namespace: THREE
On this page

THREE

A namespace defined for three.js. It is used to unify types and provide a standardized interface for working with Three.js objects.

Type Definitions

BufferGeometry

Material

ShaderMaterial

Texture

Vector3

\ No newline at end of file diff --git a/doc/Vector.html b/doc/Vector.html new file mode 100644 index 0000000..c2cc469 --- /dev/null +++ b/doc/Vector.html @@ -0,0 +1,3 @@ +Namespace: Vector
On this page

Vector

A namespace defined for fixed-size array.

Type Definitions

Vector2

Represents a three-dimensional coordinate [x, y, z].

Type:
  • Array.<number>

Vector3

Represents a three-dimensional coordinate [x, y, z].

Type:
  • Array.<number>

Vector3Pair

Represents a coordinate pair [[x1, y1, z1], [x2, y2, z2]].

Type:
  • Array.<Vector3>
\ No newline at end of file diff --git a/doc/data/search.json b/doc/data/search.json new file mode 100644 index 0000000..ed203e0 --- /dev/null +++ b/doc/data/search.json @@ -0,0 +1 @@ +{"list":[{"title":"App","link":"App"},{"title":"App#init","link":"init","description":"

Initializes Three.js rendering on a given canvas element.

"},{"title":"App#setAABB","link":"setAABB","description":"

Sets the Axis-Aligned Bounding Box (AABB) data.

"},{"title":"App#setIsSignalIndex","link":"setIsSignalIndex","description":"

Sets whether to show the indexMap or not.

"},{"title":"App#setPlane","link":"setPlane","description":"

Sets the plane data.

"},{"title":"App#setSignal","link":"setSignal","description":"

Sets a signal at specific positions in a 3D dimension.

"},{"title":"App#setSignalIntensities","link":"setSignalIntensities","description":"

Sets the intensity for each signal.

"},{"title":"App#setTexture","link":"setTexture","description":"

Sets the floorplan used as a texture.

"},{"title":"HeatmapMaterial","link":"HeatmapMaterial"},{"title":"HeatmapMaterial#setUniforms","link":"setUniforms","description":"

Sets uniforms for the application.

"},{"title":"RoomBufferGeometry","link":"RoomBufferGeometry"},{"title":"RoomBufferGeometry#setAABB","link":"setAABB","description":"

Sets the Axis-Aligned Bounding Box (AABB) data.

"},{"title":"RoomBufferGeometry#setFloor","link":"setFloor","description":"

Sets the floor size.

"},{"title":"RoomBufferGeometry#setPlane","link":"setPlane","description":"

Sets the plane data.

"},{"title":"THREE","link":"THREE","description":"

A namespace defined for three.js.\nIt is used to unify types and provide a standardized interface for working with Three.js objects.

"},{"title":"THREE.BufferGeometry","link":"BufferGeometry"},{"title":"THREE.Material","link":"Material"},{"title":"THREE.ShaderMaterial","link":"ShaderMaterial"},{"title":"THREE.Texture","link":"Texture"},{"title":"THREE.Vector3","link":"Vector3"},{"title":"Vector","link":"Vector","description":"

A namespace defined for fixed-size array.

"},{"title":"Vector.Vector2","link":"Vector2","description":"

Represents a three-dimensional coordinate [x, y, z].

"},{"title":"Vector.Vector3","link":"Vector3","description":"

Represents a three-dimensional coordinate [x, y, z].

"},{"title":"Vector.Vector3Pair","link":"Vector3Pair","description":"

Represents a coordinate pair [[x1, y1, z1], [x2, y2, z2]].

"}]} \ No newline at end of file diff --git a/doc/fonts/Inconsolata-Regular.ttf b/doc/fonts/Inconsolata-Regular.ttf new file mode 100644 index 0000000..457d262 Binary files /dev/null and b/doc/fonts/Inconsolata-Regular.ttf differ diff --git a/doc/fonts/OpenSans-Regular.ttf b/doc/fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..e21ff5f Binary files /dev/null and b/doc/fonts/OpenSans-Regular.ttf differ diff --git a/doc/fonts/WorkSans-Bold.ttf b/doc/fonts/WorkSans-Bold.ttf new file mode 100644 index 0000000..0caaf4d Binary files /dev/null and b/doc/fonts/WorkSans-Bold.ttf differ diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..21d3bfc --- /dev/null +++ b/doc/index.html @@ -0,0 +1,3 @@ +Home
On this page
\ No newline at end of file diff --git a/doc/scripts/core.js b/doc/scripts/core.js new file mode 100644 index 0000000..47ae5e7 --- /dev/null +++ b/doc/scripts/core.js @@ -0,0 +1,726 @@ +/* global document */ +var accordionLocalStorageKey = 'accordion-id'; +var themeLocalStorageKey = 'theme'; +var fontSizeLocalStorageKey = 'font-size'; +var html = document.querySelector('html'); + +var MAX_FONT_SIZE = 30; +var MIN_FONT_SIZE = 10; + +// eslint-disable-next-line no-undef +var localStorage = window.localStorage; + +function getTheme() { + var theme = localStorage.getItem(themeLocalStorageKey); + + if (theme) return theme; + + theme = document.body.getAttribute('data-theme'); + + switch (theme) { + case 'dark': + case 'light': + return theme; + case 'fallback-dark': + if ( + // eslint-disable-next-line no-undef + window.matchMedia('(prefers-color-scheme)').matches && + // eslint-disable-next-line no-undef + window.matchMedia('(prefers-color-scheme: light)').matches + ) { + return 'light'; + } + + return 'dark'; + + case 'fallback-light': + if ( + // eslint-disable-next-line no-undef + window.matchMedia('(prefers-color-scheme)').matches && + // eslint-disable-next-line no-undef + window.matchMedia('(prefers-color-scheme: dark)').matches + ) { + return 'dark'; + } + + return 'light'; + + default: + return 'dark'; + } +} + +function localUpdateTheme(theme) { + var body = document.body; + var svgUse = document.querySelectorAll('.theme-svg-use'); + var iconID = theme === 'dark' ? '#light-theme-icon' : '#dark-theme-icon'; + + body.setAttribute('data-theme', theme); + body.classList.remove('dark', 'light'); + body.classList.add(theme); + + svgUse.forEach(function (svg) { + svg.setAttribute('xlink:href', iconID); + }); +} + +function updateTheme(theme) { + localUpdateTheme(theme); + localStorage.setItem(themeLocalStorageKey, theme); +} + +function toggleTheme() { + var body = document.body; + var theme = body.getAttribute('data-theme'); + + var newTheme = theme === 'dark' ? 'light' : 'dark'; + + updateTheme(newTheme); +} + +(function () { + var theme = getTheme(); + + updateTheme(theme); +})(); + +/** + * Function to set accordion id to localStorage. + * @param {string} id Accordion id + */ +function setAccordionIdToLocalStorage(id) { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + ids[id] = id; + localStorage.setItem(accordionLocalStorageKey, JSON.stringify(ids)); +} + +/** + * Function to remove accordion id from localStorage. + * @param {string} id Accordion id + */ +function removeAccordionIdFromLocalStorage(id) { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + delete ids[id]; + localStorage.setItem(accordionLocalStorageKey, JSON.stringify(ids)); +} + +/** + * Function to get all accordion ids from localStorage. + * + * @returns {object} + */ +function getAccordionIdsFromLocalStorage() { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + return ids || {}; +} + +function toggleAccordion(element) { + var currentNode = element; + var isCollapsed = currentNode.getAttribute('data-isopen') === 'false'; + + if (isCollapsed) { + currentNode.setAttribute('data-isopen', 'true'); + setAccordionIdToLocalStorage(currentNode.id); + } else { + currentNode.setAttribute('data-isopen', 'false'); + removeAccordionIdFromLocalStorage(currentNode.id); + } +} + +function initAccordion() { + if ( + localStorage.getItem(accordionLocalStorageKey) === undefined || + localStorage.getItem(accordionLocalStorageKey) === null + ) { + localStorage.setItem(accordionLocalStorageKey, '{}'); + } + var allAccordion = document.querySelectorAll('.sidebar-section-title'); + var ids = getAccordionIdsFromLocalStorage(); + + allAccordion.forEach(function (item) { + item.addEventListener('click', function () { + toggleAccordion(item); + }); + if (item.id in ids) { + toggleAccordion(item); + } + }); +} + +function isSourcePage() { + return Boolean(document.querySelector('#source-page')); +} + +function bringElementIntoView(element, updateHistory = true) { + // If element is null then we are not going further + if (!element) { + return; + } + + /** + * tocbotInstance is defined in layout.tmpl + * It is defined when we are initializing tocbot. + * + */ + // eslint-disable-next-line no-undef + if (tocbotInstance) { + setTimeout( + // eslint-disable-next-line no-undef + () => tocbotInstance.updateTocListActiveElement(element), + 60 + ); + } + var navbar = document.querySelector('.navbar-container'); + var body = document.querySelector('.main-content'); + var elementTop = element.getBoundingClientRect().top; + + var offset = 16; + + if (navbar) { + offset += navbar.scrollHeight; + } + + if (body) { + body.scrollBy(0, elementTop - offset); + } + + if (updateHistory) { + // eslint-disable-next-line no-undef + history.pushState(null, null, '#' + element.id); + } +} + +// eslint-disable-next-line no-unused-vars +function bringLinkToView(event) { + event.preventDefault(); + event.stopPropagation(); + var id = event.currentTarget.getAttribute('href'); + + if (!id) { + return; + } + + var element = document.getElementById(id.slice(1)); + + if (element) { + bringElementIntoView(element); + } +} + +function bringIdToViewOnMount() { + if (isSourcePage()) { + return; + } + + // eslint-disable-next-line no-undef + var id = window.location.hash; + + if (id === '') { + return; + } + + var element = document.getElementById(id.slice(1)); + + if (!element) { + id = decodeURI(id); + element = document.getElementById(id.slice(1)); + } + + if (element) { + bringElementIntoView(element, false); + } +} + +function createAnchorElement(id) { + var anchor = document.createElement('a'); + + anchor.textContent = '#'; + anchor.href = '#' + id; + anchor.classList.add('link-anchor'); + anchor.onclick = bringLinkToView; + + return anchor; +} + +function addAnchor() { + var main = document.querySelector('.main-content').querySelector('section'); + + var h1 = main.querySelectorAll('h1'); + var h2 = main.querySelectorAll('h2'); + var h3 = main.querySelectorAll('h3'); + var h4 = main.querySelectorAll('h4'); + + var targets = [h1, h2, h3, h4]; + + targets.forEach(function (target) { + target.forEach(function (heading) { + var anchor = createAnchorElement(heading.id); + + heading.classList.add('has-anchor'); + heading.append(anchor); + }); + }); +} + +/** + * + * @param {string} value + */ +function copy(value) { + const el = document.createElement('textarea'); + + el.value = value; + document.body.appendChild(el); + el.select(); + document.execCommand('copy'); + document.body.removeChild(el); +} + +function showTooltip(id) { + var tooltip = document.getElementById(id); + + tooltip.classList.add('show-tooltip'); + setTimeout(function () { + tooltip.classList.remove('show-tooltip'); + }, 3000); +} + +/* eslint-disable-next-line */ +function copyFunction(id) { + // selecting the pre element + var code = document.getElementById(id); + + // selecting the ol.linenums + var element = code.querySelector('.linenums'); + + if (!element) { + // selecting the code block + element = code.querySelector('code'); + } + + // copy + copy(element.innerText.trim().replace(/(^\t)/gm, '')); + + // show tooltip + showTooltip('tooltip-' + id); +} + +function hideTocOnSourcePage() { + if (isSourcePage()) { + document.querySelector('.toc-container').style.display = 'none'; + } +} + +function getPreTopBar(id, lang = '') { + // tooltip + var tooltip = '
Copied!
'; + + // template of copy to clipboard icon container + var copyToClipboard = + ''; + + var langNameDiv = + '
' + + lang.toLocaleUpperCase() + + '
'; + + var topBar = + '
' + + langNameDiv + + copyToClipboard + + '
'; + + return topBar; +} + +function getPreDiv() { + var divElement = document.createElement('div'); + + divElement.classList.add('pre-div'); + + return divElement; +} + +function processAllPre() { + var targets = document.querySelectorAll('pre'); + var footer = document.querySelector('#PeOAagUepe'); + var navbar = document.querySelector('#VuAckcnZhf'); + + var navbarHeight = 0; + var footerHeight = 0; + + if (footer) { + footerHeight = footer.getBoundingClientRect().height; + } + + if (navbar) { + navbarHeight = navbar.getBoundingClientRect().height; + } + + // eslint-disable-next-line no-undef + var preMaxHeight = window.innerHeight - navbarHeight - footerHeight - 250; + + targets.forEach(function (pre, idx) { + var parent = pre.parentNode; + + if (parent && parent.getAttribute('data-skip-pre-process') === 'true') { + return; + } + + var div = getPreDiv(); + var id = 'ScDloZOMdL' + idx; + + var lang = pre.getAttribute('data-lang') || 'code'; + var topBar = getPreTopBar(id, lang); + + div.innerHTML = topBar; + + pre.style.maxHeight = preMaxHeight + 'px'; + pre.id = id; + pre.classList.add('prettyprint'); + pre.parentNode.insertBefore(div, pre); + div.appendChild(pre); + }); +} + +function highlightAndBringLineIntoView() { + // eslint-disable-next-line no-undef + var lineNumber = window.location.hash.replace('#line', ''); + + try { + var selector = '[data-line-number="' + lineNumber + '"'; + + var element = document.querySelector(selector); + + element.scrollIntoView(); + element.parentNode.classList.add('selected'); + } catch (error) { + console.error(error); + } +} + +function getFontSize() { + var currentFontSize = 16; + + try { + currentFontSize = Number.parseInt( + html.style.fontSize.split('px')[0], + 10 + ); + } catch (error) { + console.log(error); + } + + return currentFontSize; +} + +function localUpdateFontSize(fontSize) { + html.style.fontSize = fontSize + 'px'; + + var fontSizeText = document.querySelector( + '#b77a68a492f343baabea06fad81f651e' + ); + + if (fontSizeText) { + fontSizeText.innerHTML = fontSize; + } +} + +function updateFontSize(fontSize) { + localUpdateFontSize(fontSize); + localStorage.setItem(fontSizeLocalStorageKey, fontSize); +} + +(function () { + var fontSize = getFontSize(); + var fontSizeInLocalStorage = localStorage.getItem(fontSizeLocalStorageKey); + + if (fontSizeInLocalStorage) { + var n = Number.parseInt(fontSizeInLocalStorage, 10); + + if (n === fontSize) { + return; + } + updateFontSize(n); + } else { + updateFontSize(fontSize); + } +})(); + +// eslint-disable-next-line no-unused-vars +function incrementFont(event) { + var n = getFontSize(); + + if (n < MAX_FONT_SIZE) { + updateFontSize(n + 1); + } +} + +// eslint-disable-next-line no-unused-vars +function decrementFont(event) { + var n = getFontSize(); + + if (n > MIN_FONT_SIZE) { + updateFontSize(n - 1); + } +} + +function fontSizeTooltip() { + var fontSize = getFontSize(); + + return ` +
+ +
+ ${fontSize} +
+ + +
+ + `; +} + +function initTooltip() { + // add tooltip to navbar item + // eslint-disable-next-line no-undef + tippy('.theme-toggle', { + content: 'Toggle Theme', + delay: 500, + }); + + // eslint-disable-next-line no-undef + tippy('.search-button', { + content: 'Search', + delay: 500, + }); + + // eslint-disable-next-line no-undef + tippy('.font-size', { + content: 'Change font size', + delay: 500, + }); + + // eslint-disable-next-line no-undef + tippy('.codepen-button', { + content: 'Open code in CodePen', + placement: 'left', + }); + + // eslint-disable-next-line no-undef + tippy('.copy-code', { + content: 'Copy this code', + placement: 'left', + }); + + // eslint-disable-next-line no-undef + tippy('.font-size', { + content: fontSizeTooltip(), + trigger: 'click', + interactive: true, + allowHTML: true, + placement: 'left', + }); +} + +function fixTable() { + const tables = document.querySelectorAll('table'); + + for (const table of tables) { + if (table.classList.contains('hljs-ln')) { + // don't want to wrap code blocks. + return; + } + + var div = document.createElement('div'); + + div.classList.add('table-div'); + table.parentNode.insertBefore(div, table); + div.appendChild(table); + } +} + +function hideMobileMenu() { + var mobileMenuContainer = document.querySelector('#mobile-sidebar'); + var target = document.querySelector('#mobile-menu'); + var svgUse = target.querySelector('use'); + + if (mobileMenuContainer) { + mobileMenuContainer.classList.remove('show'); + } + if (target) { + target.setAttribute('data-isopen', 'false'); + } + if (svgUse) { + svgUse.setAttribute('xlink:href', '#menu-icon'); + } +} + +function showMobileMenu() { + var mobileMenuContainer = document.querySelector('#mobile-sidebar'); + var target = document.querySelector('#mobile-menu'); + var svgUse = target.querySelector('use'); + + if (mobileMenuContainer) { + mobileMenuContainer.classList.add('show'); + } + if (target) { + target.setAttribute('data-isopen', 'true'); + } + if (svgUse) { + svgUse.setAttribute('xlink:href', '#close-icon'); + } +} + +function onMobileMenuClick() { + var target = document.querySelector('#mobile-menu'); + var isOpen = target.getAttribute('data-isopen') === 'true'; + + if (isOpen) { + hideMobileMenu(); + } else { + showMobileMenu(); + } +} + +function initMobileMenu() { + var menu = document.querySelector('#mobile-menu'); + + if (menu) { + menu.addEventListener('click', onMobileMenuClick); + } +} + +function addHrefToSidebarTitle() { + var titles = document.querySelectorAll('.sidebar-title-anchor'); + + titles.forEach(function (title) { + // eslint-disable-next-line no-undef + title.setAttribute('href', baseURL); + }); +} + +function highlightActiveLinkInSidebar() { + const list = document.location.href.split('/'); + const targetURL = decodeURI(list[list.length - 1]); + let element = document.querySelector(`.sidebar a[href*='${targetURL}']`); + + if (!element) { + try { + element = document.querySelector( + `.sidebar a[href*='${targetURL.split('#')[0]}']` + ); + } catch (e) { + console.error(e); + + return; + } + } + + if (!element) return; + + element.parentElement.classList.add('active'); + element.scrollIntoView(); +} + +function onDomContentLoaded() { + var themeButton = document.querySelectorAll('.theme-toggle'); + + initMobileMenu(); + + if (themeButton) { + themeButton.forEach(function (button) { + button.addEventListener('click', toggleTheme); + }); + } + + // Highlighting code + + // eslint-disable-next-line no-undef + hljs.addPlugin({ + 'after:highlightElement': function (obj) { + // Replace 'code' with result.language when + // we are able to cross-check the correctness of + // result. + obj.el.parentNode.setAttribute('data-lang', 'code'); + }, + }); + // eslint-disable-next-line no-undef + hljs.highlightAll(); + // eslint-disable-next-line no-undef + hljs.initLineNumbersOnLoad({ + singleLine: true, + }); + + // Highlight complete + + initAccordion(); + addAnchor(); + processAllPre(); + hideTocOnSourcePage(); + setTimeout(function () { + bringIdToViewOnMount(); + if (isSourcePage()) { + highlightAndBringLineIntoView(); + } + }, 1000); + initTooltip(); + fixTable(); + addHrefToSidebarTitle(); + highlightActiveLinkInSidebar(); +} + +// eslint-disable-next-line no-undef +window.addEventListener('DOMContentLoaded', onDomContentLoaded); + +// eslint-disable-next-line no-undef +window.addEventListener('hashchange', (event) => { + const url = new URL(event.newURL); + + if (url.hash !== '') { + bringIdToViewOnMount(url.hash); + } +}); + +// eslint-disable-next-line no-undef +window.addEventListener('storage', (event) => { + if (event.newValue === 'undefined') return; + + initTooltip(); + + if (event.key === themeLocalStorageKey) localUpdateTheme(event.newValue); + if (event.key === fontSizeLocalStorageKey) + localUpdateFontSize(event.newValue); +}); diff --git a/doc/scripts/core.min.js b/doc/scripts/core.min.js new file mode 100644 index 0000000..9d2b941 --- /dev/null +++ b/doc/scripts/core.min.js @@ -0,0 +1,23 @@ +var accordionLocalStorageKey="accordion-id",themeLocalStorageKey="theme",fontSizeLocalStorageKey="font-size",html=document.querySelector("html"),MAX_FONT_SIZE=30,MIN_FONT_SIZE=10,localStorage=window.localStorage;function getTheme(){var e=localStorage.getItem(themeLocalStorageKey);if(e)return e;switch(e=document.body.getAttribute("data-theme")){case"dark":case"light":return e;case"fallback-dark":return window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark";case"fallback-light":return window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";default:return"dark"}}function localUpdateTheme(e){var t=document.body,o=document.querySelectorAll(".theme-svg-use"),n="dark"===e?"#light-theme-icon":"#dark-theme-icon";t.setAttribute("data-theme",e),t.classList.remove("dark","light"),t.classList.add(e),o.forEach(function(e){e.setAttribute("xlink:href",n)})}function updateTheme(e){localUpdateTheme(e),localStorage.setItem(themeLocalStorageKey,e)}function toggleTheme(){updateTheme("dark"===document.body.getAttribute("data-theme")?"light":"dark")}function setAccordionIdToLocalStorage(e){var t=JSON.parse(localStorage.getItem(accordionLocalStorageKey));t[e]=e,localStorage.setItem(accordionLocalStorageKey,JSON.stringify(t))}function removeAccordionIdFromLocalStorage(e){var t=JSON.parse(localStorage.getItem(accordionLocalStorageKey));delete t[e],localStorage.setItem(accordionLocalStorageKey,JSON.stringify(t))}function getAccordionIdsFromLocalStorage(){return JSON.parse(localStorage.getItem(accordionLocalStorageKey))||{}}function toggleAccordion(e){"false"===e.getAttribute("data-isopen")?(e.setAttribute("data-isopen","true"),setAccordionIdToLocalStorage(e.id)):(e.setAttribute("data-isopen","false"),removeAccordionIdFromLocalStorage(e.id))}function initAccordion(){void 0!==localStorage.getItem(accordionLocalStorageKey)&&null!==localStorage.getItem(accordionLocalStorageKey)||localStorage.setItem(accordionLocalStorageKey,"{}");var e=document.querySelectorAll(".sidebar-section-title"),t=getAccordionIdsFromLocalStorage();e.forEach(function(e){e.addEventListener("click",function(){toggleAccordion(e)}),e.id in t&&toggleAccordion(e)})}function isSourcePage(){return Boolean(document.querySelector("#source-page"))}function bringElementIntoView(e,t=!0){var o,n,i,c;e&&(tocbotInstance&&setTimeout(()=>tocbotInstance.updateTocListActiveElement(e),60),o=document.querySelector(".navbar-container"),n=document.querySelector(".main-content"),i=e.getBoundingClientRect().top,c=16,o&&(c+=o.scrollHeight),n&&n.scrollBy(0,i-c),t&&history.pushState(null,null,"#"+e.id))}function bringLinkToView(e){e.preventDefault(),e.stopPropagation();var e=e.currentTarget.getAttribute("href");!e||(e=document.getElementById(e.slice(1)))&&bringElementIntoView(e)}function bringIdToViewOnMount(){var e,t;isSourcePage()||""!==(e=window.location.hash)&&((t=document.getElementById(e.slice(1)))||(e=decodeURI(e),t=document.getElementById(e.slice(1))),t&&bringElementIntoView(t,!1))}function createAnchorElement(e){var t=document.createElement("a");return t.textContent="#",t.href="#"+e,t.classList.add("link-anchor"),t.onclick=bringLinkToView,t}function addAnchor(){var e=document.querySelector(".main-content").querySelector("section");[e.querySelectorAll("h1"),e.querySelectorAll("h2"),e.querySelectorAll("h3"),e.querySelectorAll("h4")].forEach(function(e){e.forEach(function(e){var t=createAnchorElement(e.id);e.classList.add("has-anchor"),e.append(t)})})}function copy(e){const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function showTooltip(e){var t=document.getElementById(e);t.classList.add("show-tooltip"),setTimeout(function(){t.classList.remove("show-tooltip")},3e3)}function copyFunction(e){var t=document.getElementById(e);copy((t.querySelector(".linenums")||t.querySelector("code")).innerText.trim().replace(/(^\t)/gm,"")),showTooltip("tooltip-"+e)}function hideTocOnSourcePage(){isSourcePage()&&(document.querySelector(".toc-container").style.display="none")}function getPreTopBar(e,t=""){e='";return'
'+('
'+t.toLocaleUpperCase()+"
")+e+"
"}function getPreDiv(){var e=document.createElement("div");return e.classList.add("pre-div"),e}function processAllPre(){var e=document.querySelectorAll("pre"),t=document.querySelector("#PeOAagUepe"),o=document.querySelector("#VuAckcnZhf"),n=0,i=0,c=(t&&(i=t.getBoundingClientRect().height),o&&(n=o.getBoundingClientRect().height),window.innerHeight-n-i-250);e.forEach(function(e,t){var o,n=e.parentNode;n&&"true"===n.getAttribute("data-skip-pre-process")||(n=getPreDiv(),o=getPreTopBar(t="ScDloZOMdL"+t,e.getAttribute("data-lang")||"code"),n.innerHTML=o,e.style.maxHeight=c+"px",e.id=t,e.classList.add("prettyprint"),e.parentNode.insertBefore(n,e),n.appendChild(e))})}function highlightAndBringLineIntoView(){var e=window.location.hash.replace("#line","");try{var t='[data-line-number="'+e+'"',o=document.querySelector(t);o.scrollIntoView(),o.parentNode.classList.add("selected")}catch(e){console.error(e)}}function getFontSize(){var e=16;try{e=Number.parseInt(html.style.fontSize.split("px")[0],10)}catch(e){console.log(e)}return e}function localUpdateFontSize(e){html.style.fontSize=e+"px";var t=document.querySelector("#b77a68a492f343baabea06fad81f651e");t&&(t.innerHTML=e)}function updateFontSize(e){localUpdateFontSize(e),localStorage.setItem(fontSizeLocalStorageKey,e)}function incrementFont(e){var t=getFontSize();t + +
+ ${e} +
+ + + + + `}function initTooltip(){tippy(".theme-toggle",{content:"Toggle Theme",delay:500}),tippy(".search-button",{content:"Search",delay:500}),tippy(".font-size",{content:"Change font size",delay:500}),tippy(".codepen-button",{content:"Open code in CodePen",placement:"left"}),tippy(".copy-code",{content:"Copy this code",placement:"left"}),tippy(".font-size",{content:fontSizeTooltip(),trigger:"click",interactive:!0,allowHTML:!0,placement:"left"})}function fixTable(){for(const t of document.querySelectorAll("table")){if(t.classList.contains("hljs-ln"))return;var e=document.createElement("div");e.classList.add("table-div"),t.parentNode.insertBefore(e,t),e.appendChild(t)}}function hideMobileMenu(){var e=document.querySelector("#mobile-sidebar"),t=document.querySelector("#mobile-menu"),o=t.querySelector("use");e&&e.classList.remove("show"),t&&t.setAttribute("data-isopen","false"),o&&o.setAttribute("xlink:href","#menu-icon")}function showMobileMenu(){var e=document.querySelector("#mobile-sidebar"),t=document.querySelector("#mobile-menu"),o=t.querySelector("use");e&&e.classList.add("show"),t&&t.setAttribute("data-isopen","true"),o&&o.setAttribute("xlink:href","#close-icon")}function onMobileMenuClick(){("true"===document.querySelector("#mobile-menu").getAttribute("data-isopen")?hideMobileMenu:showMobileMenu)()}function initMobileMenu(){var e=document.querySelector("#mobile-menu");e&&e.addEventListener("click",onMobileMenuClick)}function addHrefToSidebarTitle(){document.querySelectorAll(".sidebar-title-anchor").forEach(function(e){e.setAttribute("href",baseURL)})}function highlightActiveLinkInSidebar(){var e=document.location.href.split("/");const t=decodeURI(e[e.length-1]);let o=document.querySelector(`.sidebar a[href*='${t}']`);if(!o)try{o=document.querySelector(`.sidebar a[href*='${t.split("#")[0]}']`)}catch(e){return void console.error(e)}o&&(o.parentElement.classList.add("active"),o.scrollIntoView())}function onDomContentLoaded(){var e=document.querySelectorAll(".theme-toggle");initMobileMenu(),e&&e.forEach(function(e){e.addEventListener("click",toggleTheme)}),hljs.addPlugin({"after:highlightElement":function(e){e.el.parentNode.setAttribute("data-lang","code")}}),hljs.highlightAll(),hljs.initLineNumbersOnLoad({singleLine:!0}),initAccordion(),addAnchor(),processAllPre(),hideTocOnSourcePage(),setTimeout(function(){bringIdToViewOnMount(),isSourcePage()&&highlightAndBringLineIntoView()},1e3),initTooltip(),fixTable(),addHrefToSidebarTitle(),highlightActiveLinkInSidebar()}updateTheme(getTheme()),function(){var e=getFontSize(),t=localStorage.getItem(fontSizeLocalStorageKey);t?(t=Number.parseInt(t,10))!==e&&updateFontSize(t):updateFontSize(e)}(),window.addEventListener("DOMContentLoaded",onDomContentLoaded),window.addEventListener("hashchange",e=>{e=new URL(e.newURL);""!==e.hash&&bringIdToViewOnMount(e.hash)}),window.addEventListener("storage",e=>{"undefined"!==e.newValue&&(initTooltip(),e.key===themeLocalStorageKey&&localUpdateTheme(e.newValue),e.key===fontSizeLocalStorageKey&&localUpdateFontSize(e.newValue))}); \ No newline at end of file diff --git a/doc/scripts/resize.js b/doc/scripts/resize.js new file mode 100644 index 0000000..d8e3a9c --- /dev/null +++ b/doc/scripts/resize.js @@ -0,0 +1,90 @@ +/* global document */ +// This file is @deprecated + +var NAVBAR_OPTIONS = {}; + +(function() { + var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY'; + + var navbar = document.querySelector('#navbar'); + var footer = document.querySelector('#footer'); + var mainSection = document.querySelector('#main'); + var localStorageResizeObject = JSON.parse( + // eslint-disable-next-line no-undef + localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY) + ); + + /** + * Check whether we have any resize value in local storage or not. + * If we have resize value then resize the navbar. + **/ + if (localStorageResizeObject) { + navbar.style.width = localStorageResizeObject.width; + mainSection.style.marginLeft = localStorageResizeObject.width; + footer.style.marginLeft = localStorageResizeObject.width; + } + + var navbarSlider = document.querySelector('#navbar-resize'); + + function resizeNavbar(event) { + var pageX = event.pageX, + pageXPlusPx = event.pageX + 'px', + min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300, + max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600; + + /** + * Just to add some checks. If min is smaller than 10 then + * user may accidentally end up reducing the size of navbar + * less than 10. In that case user will not able to resize navbar + * because navbar slider will be hidden. + */ + if (min < 10) { + min = 10; + } + + /** + * Only resize if pageX in range between min and max + * allowed value. + */ + if (min < pageX && pageX < max) { + navbar.style.width = pageXPlusPx; + mainSection.style.marginLeft = pageXPlusPx; + footer.style.marginLeft = pageXPlusPx; + } + } + + function setupEventListeners() { + // eslint-disable-next-line no-undef + window.addEventListener('mousemove', resizeNavbar); + // eslint-disable-next-line no-undef + window.addEventListener('touchmove', resizeNavbar); + } + + function afterRemovingEventListeners() { + // eslint-disable-next-line no-undef + localStorage.setItem( + NAVBAR_RESIZE_LOCAL_STORAGE_KEY, + JSON.stringify({ + width: navbar.style.width + }) + ); + } + + function removeEventListeners() { + // eslint-disable-next-line no-undef + window.removeEventListener('mousemove', resizeNavbar); + // eslint-disable-next-line no-undef + window.removeEventListener('touchend', resizeNavbar); + afterRemovingEventListeners(); + } + + navbarSlider.addEventListener('mousedown', setupEventListeners); + navbarSlider.addEventListener('touchstart', setupEventListeners); + // eslint-disable-next-line no-undef + window.addEventListener('mouseup', removeEventListeners); +})(); + +// eslint-disable-next-line no-unused-vars +function setupResizeOptions(options) { + NAVBAR_OPTIONS = options; +} diff --git a/doc/scripts/search.js b/doc/scripts/search.js new file mode 100644 index 0000000..415e1cf --- /dev/null +++ b/doc/scripts/search.js @@ -0,0 +1,265 @@ +/* global document */ + +const searchId = 'LiBfqbJVcV'; +const searchHash = '#' + searchId; +const searchContainer = document.querySelector('#PkfLWpAbet'); +const searchWrapper = document.querySelector('#iCxFxjkHbP'); +const searchCloseButton = document.querySelector('#VjLlGakifb'); +const searchInput = document.querySelector('#vpcKVYIppa'); +const resultBox = document.querySelector('#fWwVHRuDuN'); + +function showResultText(text) { + resultBox.innerHTML = `${text}`; +} + +function hideSearch() { + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + // eslint-disable-next-line no-undef + history.go(-1); + } + + // eslint-disable-next-line no-undef + window.onhashchange = null; + + if (searchContainer) { + searchContainer.style.display = 'none'; + } +} + +function listenCloseKey(event) { + if (event.key === 'Escape') { + hideSearch(); + // eslint-disable-next-line no-undef + window.removeEventListener('keyup', listenCloseKey); + } +} + +function showSearch() { + try { + // Closing mobile menu before opening + // search box. + // It is defined in core.js + // eslint-disable-next-line no-undef + hideMobileMenu(); + } catch (error) { + console.error(error); + } + + // eslint-disable-next-line no-undef + window.onhashchange = hideSearch; + + // eslint-disable-next-line no-undef + if (window.location.hash !== searchHash) { + // eslint-disable-next-line no-undef + history.pushState(null, null, searchHash); + } + + if (searchContainer) { + searchContainer.style.display = 'flex'; + // eslint-disable-next-line no-undef + window.addEventListener('keyup', listenCloseKey); + } + + if (searchInput) { + searchInput.focus(); + } +} + +async function fetchAllData() { + // eslint-disable-next-line no-undef + const { hostname, protocol, port } = location; + + // eslint-disable-next-line no-undef + const base = protocol + '//' + hostname + (port !== '' ? ':' + port : '') + baseURL; + // eslint-disable-next-line no-undef + const url = new URL('data/search.json', base); + const result = await fetch(url); + const { list } = await result.json(); + + return list; +} + +// eslint-disable-next-line no-unused-vars +function onClickSearchItem(event) { + const target = event.currentTarget; + + if (target) { + const href = target.getAttribute('href') || ''; + let elementId = href.split('#')[1] || ''; + let element = document.getElementById(elementId); + + if (!element) { + elementId = decodeURI(elementId); + element = document.getElementById(elementId); + } + + if (element) { + setTimeout(function() { + // eslint-disable-next-line no-undef + bringElementIntoView(element); // defined in core.js + }, 100); + } + } +} + +function buildSearchResult(result) { + let output = ''; + const removeHTMLTagsRegExp = /(<([^>]+)>)/ig; + + for (const res of result) { + const { title = '', description = '' } = res.item; + + const _link = res.item.link.replace('.*/, ''); + const _title = title.replace(removeHTMLTagsRegExp, ""); + const _description = description.replace(removeHTMLTagsRegExp, ""); + + output += ` + +
${_title}
+
${_description || 'No description available.'}
+
+ `; + } + + return output; +} + +function getSearchResult(list, keys, searchKey) { + const defaultOptions = { + shouldSort: true, + threshold: 0.4, + location: 0, + distance: 100, + maxPatternLength: 32, + minMatchCharLength: 1, + keys: keys + }; + + const options = { ...defaultOptions }; + + // eslint-disable-next-line no-undef + const searchIndex = Fuse.createIndex(options.keys, list); + + // eslint-disable-next-line no-undef + const fuse = new Fuse(list, options, searchIndex); + + const result = fuse.search(searchKey); + + if (result.length > 20) { + return result.slice(0, 20); + } + + return result; +} + +function debounce(func, wait, immediate) { + let timeout; + + return function() { + const args = arguments; + + clearTimeout(timeout); + timeout = setTimeout(() => { + timeout = null; + if (!immediate) { + // eslint-disable-next-line consistent-this, no-invalid-this + func.apply(this, args); + } + }, wait); + + if (immediate && !timeout) { + // eslint-disable-next-line consistent-this, no-invalid-this + func.apply(this, args); + } + }; +} + +let searchData; + +async function search(event) { + const value = event.target.value; + const keys = ['title', 'description']; + + if (!resultBox) { + console.error('Search result container not found'); + + return; + } + + if (!value) { + showResultText('Type anything to view search result'); + + return; + } + + if (!searchData) { + showResultText('Loading...'); + + try { + // eslint-disable-next-line require-atomic-updates + searchData = await fetchAllData(); + } catch (e) { + console.log(e); + showResultText('Failed to load result.'); + + return; + } + } + + const result = getSearchResult(searchData, keys, value); + + if (!result.length) { + showResultText('No result found! Try some different combination.'); + + return; + } + + // eslint-disable-next-line require-atomic-updates + resultBox.innerHTML = buildSearchResult(result); +} + +function onDomContentLoaded() { + const searchButton = document.querySelectorAll('.search-button'); + const debouncedSearch = debounce(search, 300); + + if (searchCloseButton) { + searchCloseButton.addEventListener('click', hideSearch); + } + + if (searchButton) { + searchButton.forEach(function(item) { + item.addEventListener('click', showSearch); + }); + } + + if (searchContainer) { + searchContainer.addEventListener('click', hideSearch); + } + + if (searchWrapper) { + searchWrapper.addEventListener('click', function(event) { + event.stopPropagation(); + }); + } + + if (searchInput) { + searchInput.addEventListener('keyup', debouncedSearch); + } + + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + showSearch(); + } +} + +// eslint-disable-next-line no-undef +window.addEventListener('DOMContentLoaded', onDomContentLoaded); + +// eslint-disable-next-line no-undef +window.addEventListener('hashchange', function() { + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + showSearch(); + } +}); diff --git a/doc/scripts/search.min.js b/doc/scripts/search.min.js new file mode 100644 index 0000000..5358bce --- /dev/null +++ b/doc/scripts/search.min.js @@ -0,0 +1,6 @@ +const searchId="LiBfqbJVcV",searchHash="#"+searchId,searchContainer=document.querySelector("#PkfLWpAbet"),searchWrapper=document.querySelector("#iCxFxjkHbP"),searchCloseButton=document.querySelector("#VjLlGakifb"),searchInput=document.querySelector("#vpcKVYIppa"),resultBox=document.querySelector("#fWwVHRuDuN");function showResultText(e){resultBox.innerHTML=`${e}`}function hideSearch(){window.location.hash===searchHash&&history.go(-1),window.onhashchange=null,searchContainer&&(searchContainer.style.display="none")}function listenCloseKey(e){"Escape"===e.key&&(hideSearch(),window.removeEventListener("keyup",listenCloseKey))}function showSearch(){try{hideMobileMenu()}catch(e){console.error(e)}window.onhashchange=hideSearch,window.location.hash!==searchHash&&history.pushState(null,null,searchHash),searchContainer&&(searchContainer.style.display="flex",window.addEventListener("keyup",listenCloseKey)),searchInput&&searchInput.focus()}async function fetchAllData(){var{hostname:e,protocol:t,port:n}=location,t=t+"//"+e+(""!==n?":"+n:"")+baseURL,e=new URL("data/search.json",t);const a=await fetch(e);n=(await a.json()).list;return n}function onClickSearchItem(t){const n=t.currentTarget;if(n){const a=n.getAttribute("href")||"";t=a.split("#")[1]||"";let e=document.getElementById(t);e||(t=decodeURI(t),e=document.getElementById(t)),e&&setTimeout(function(){bringElementIntoView(e)},100)}}function buildSearchResult(e){let t="";var n=/(<([^>]+)>)/gi;for(const s of e){const{title:c="",description:i=""}=s.item;var a=s.item.link.replace('.*/,""),o=c.replace(n,""),r=i.replace(n,"");t+=` + +
${o}
+
${r||"No description available."}
+
+ `}return t}function getSearchResult(e,t,n){var t={...{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:t}},a=Fuse.createIndex(t.keys,e);const o=new Fuse(e,t,a),r=o.search(n);return 20{o=null,a||t.apply(this,e)},n),a&&!o&&t.apply(this,e)}}let searchData;async function search(e){e=e.target.value;if(resultBox)if(e){if(!searchData){showResultText("Loading...");try{searchData=await fetchAllData()}catch(e){return console.log(e),void showResultText("Failed to load result.")}}e=getSearchResult(searchData,["title","description"],e);e.length?resultBox.innerHTML=buildSearchResult(e):showResultText("No result found! Try some different combination.")}else showResultText("Type anything to view search result");else console.error("Search result container not found")}function onDomContentLoaded(){const e=document.querySelectorAll(".search-button");var t=debounce(search,300);searchCloseButton&&searchCloseButton.addEventListener("click",hideSearch),e&&e.forEach(function(e){e.addEventListener("click",showSearch)}),searchContainer&&searchContainer.addEventListener("click",hideSearch),searchWrapper&&searchWrapper.addEventListener("click",function(e){e.stopPropagation()}),searchInput&&searchInput.addEventListener("keyup",t),window.location.hash===searchHash&&showSearch()}window.addEventListener("DOMContentLoaded",onDomContentLoaded),window.addEventListener("hashchange",function(){window.location.hash===searchHash&&showSearch()}); \ No newline at end of file diff --git a/doc/scripts/third-party/Apache-License-2.0.txt b/doc/scripts/third-party/Apache-License-2.0.txt new file mode 100644 index 0000000..75b5248 --- /dev/null +++ b/doc/scripts/third-party/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/doc/scripts/third-party/fuse.js b/doc/scripts/third-party/fuse.js new file mode 100644 index 0000000..a55c5da --- /dev/null +++ b/doc/scripts/third-party/fuse.js @@ -0,0 +1,9 @@ +/** + * Fuse.js v6.4.6 - Lightweight fuzzy-search (http://fusejs.io) + * + * Copyright (c) 2021 Kiro Risk (http://kiro.me) + * All Rights Reserved. Apache Software License 2.0 + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ +var e,t;e=this,t=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(I).length;if(t.has(r))return t.get(r);var i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear:function(){t.clear()}}}var E=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,i=void 0===r?A.getFn:r;t(this,e),this.norm=C(3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();g(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?A.getFn:r,o=new E({getFn:i});return o.setKeys(e.map(_)),o.setSources(t),o.create(),o}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?A.distance:s,h=t.ignoreLocation,f=void 0===h?A.ignoreLocation:h,l=r/e.length;if(f)return l;var d=Math.abs(a-o);return u?l+d/u:d?1:l}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}function P(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?A.location:o,a=i.threshold,s=void 0===a?A.threshold:a,u=i.distance,h=void 0===u?A.distance:u,f=i.includeMatches,l=void 0===f?A.includeMatches:f,d=i.findAllMatches,v=void 0===d?A.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?A.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?A.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?A.ignoreLocation:k;if(t(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:l,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){r.chunks.push({pattern:e,alphabet:P(e),startIndex:t})},x=this.pattern.length;if(x>32){for(var L=0,S=x%32,w=x-S;L3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?A.location:i,c=r.distance,a=void 0===c?A.distance:c,s=r.threshold,u=void 0===s?A.threshold:s,h=r.findAllMatches,f=void 0===h?A.findAllMatches:h,l=r.minMatchCharLength,d=void 0===l?A.minMatchCharLength:l,v=r.includeMatches,g=void 0===v?A.includeMatches:v,y=r.ignoreLocation,p=void 0===y?A.ignoreLocation:y;if(t.length>32)throw new Error(L(32));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,S=b,w=d>1||g,_=w?Array(M):[];(m=e.indexOf(t,S))>-1;){var O=R(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(O,x),S=m+k,w)for(var j=0;j=K;J-=1){var T=J-1,U=n[e.charAt(T)];if(w&&(_[T]=+!!U),W[J]=(W[J+1]<<1|1)&U,P&&(W[J]|=(I[J+1]|I[J])<<1|1|I[J+1]),W[J]&$&&(C=R(t,{errors:P,currentLocation:T,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=C,(S=T)<=b)break;K=Math.max(1,2*b-S)}}var V=R(t,{errors:P+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p});if(V>x)break;I=W}var B={isMatch:S>=0,score:Math.max(.001,C)};if(w){var G=F(_,d);G.length?g&&(B.indices=G):B.isMatch=!1}return B}(e,n,i,{location:c+o,distance:a,threshold:s,findAllMatches:u,minMatchCharLength:h,includeMatches:r,ignoreLocation:f}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(l(d),l(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),D=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return z(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return z(e,this.singleRegex)}}]),e}();function z(e,t){var n=e.match(t);return n?n[1]:null}var K=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(D),q=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(D),W=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(D),J=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(D),T=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(D),U=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(D),V=function(e){a(i,e);var n=f(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?A.location:c,s=o.threshold,u=void 0===s?A.threshold:s,h=o.distance,f=void 0===h?A.distance:h,l=o.includeMatches,d=void 0===l?A.includeMatches:l,v=o.findAllMatches,g=void 0===v?A.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?A.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?A.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?A.ignoreLocation:M;return t(this,i),(r=n.call(this,e))._bitapSearch=new N(e,{location:a,threshold:u,distance:f,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),r}return r(i,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(D),B=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(D),G=[K,B,W,J,U,T,q,V],H=G.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},i=r.isCaseSensitive,o=void 0===i?A.isCaseSensitive:i,c=r.includeMatches,a=void 0===c?A.includeMatches:c,s=r.minMatchCharLength,u=void 0===s?A.minMatchCharLength:s,h=r.ignoreLocation,f=void 0===h?A.ignoreLocation:h,l=r.findAllMatches,d=void 0===l?A.findAllMatches:l,v=r.location,g=void 0===v?A.location:v,y=r.threshold,p=void 0===y?A.threshold:y,m=r.distance,k=void 0===m?A.distance:m;t(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:f,location:g,threshold:p,distance:k},this.pattern=o?n:n.toLowerCase(),this.query=X(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,a=0,s=t.length;a-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function le(e,t){t.score=e.score}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?A.includeMatches:r,o=n.includeScore,c=void 0===o?A.includeScore:o,a=[];return i&&a.push(fe),c&&a.push(le),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}var ve=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=c({},A,{},r),this.options.useExtendedSearch,this._keyStore=new w(this.options.keys),this.setCollection(n,i)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof E))throw new Error("Incorrect 'index' type");this._myIndex=t||$(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,c=i.includeScore,a=i.shouldSort,s=i.sortFn,u=i.ignoreFieldNorm,h=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return he(h,{ignoreFieldNorm:u}),a&&h.sort(s),y(r)&&r>-1&&(h=h.slice(0,r)),de(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(e){var t=te(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(k(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function e(n){var r=Object.keys(n),o=ae(n);if(!o&&r.length>1&&!ce(n))return e(ue(n));if(se(n)){var c=o?n[ie]:r[0],a=o?n[oe]:n[c];if(!g(a))throw new Error(x(c));var s={keyId:j(c),pattern:a};return i&&(s.searcher=te(a,t)),s}var u={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];v(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u};return ce(e)||(e=ue(e)),o(e)}(e,this.options),r=this._myIndex.records,i={},o=[];return r.forEach((function(e){var r=e.$,c=e.i;if(k(r)){var a=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}switch(n.operator){case ne:for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?A.getFn:n,i=e.keys,o=e.records,c=new E({getFn:r});return c.setKeys(i),c.setIndexRecords(o),c},ve.config=A,function(){ee.push.apply(ee,arguments)}(Z),ve},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Fuse=t(); \ No newline at end of file diff --git a/doc/scripts/third-party/hljs-line-num-original.js b/doc/scripts/third-party/hljs-line-num-original.js new file mode 100644 index 0000000..9b8e18f --- /dev/null +++ b/doc/scripts/third-party/hljs-line-num-original.js @@ -0,0 +1,369 @@ +// jshint multistr:true + +(function (w, d) { + 'use strict'; + + var TABLE_NAME = 'hljs-ln', + LINE_NAME = 'hljs-ln-line', + CODE_BLOCK_NAME = 'hljs-ln-code', + NUMBERS_BLOCK_NAME = 'hljs-ln-numbers', + NUMBER_LINE_NAME = 'hljs-ln-n', + DATA_ATTR_NAME = 'data-line-number', + BREAK_LINE_REGEXP = /\r\n|\r|\n/g; + + if (w.hljs) { + w.hljs.initLineNumbersOnLoad = initLineNumbersOnLoad; + w.hljs.lineNumbersBlock = lineNumbersBlock; + w.hljs.lineNumbersValue = lineNumbersValue; + + addStyles(); + } else { + w.console.error('highlight.js not detected!'); + } + + function isHljsLnCodeDescendant(domElt) { + var curElt = domElt; + while (curElt) { + if (curElt.className && curElt.className.indexOf('hljs-ln-code') !== -1) { + return true; + } + curElt = curElt.parentNode; + } + return false; + } + + function getHljsLnTable(hljsLnDomElt) { + var curElt = hljsLnDomElt; + while (curElt.nodeName !== 'TABLE') { + curElt = curElt.parentNode; + } + return curElt; + } + + // Function to workaround a copy issue with Microsoft Edge. + // Due to hljs-ln wrapping the lines of code inside a element, + // itself wrapped inside a
 element, window.getSelection().toString()
+    // does not contain any line breaks. So we need to get them back using the
+    // rendered code in the DOM as reference.
+    function edgeGetSelectedCodeLines(selection) {
+        // current selected text without line breaks
+        var selectionText = selection.toString();
+
+        // get the 
' + + '' + + '' + + '', + [ + LINE_NAME, + NUMBERS_BLOCK_NAME, + NUMBER_LINE_NAME, + DATA_ATTR_NAME, + CODE_BLOCK_NAME, + i + options.startFrom, + lines[i].length > 0 ? lines[i] : ' ' + ]); + } + + return format('
element wrapping the first line of selected code + var tdAnchor = selection.anchorNode; + while (tdAnchor.nodeName !== 'TD') { + tdAnchor = tdAnchor.parentNode; + } + + // get the element wrapping the last line of selected code + var tdFocus = selection.focusNode; + while (tdFocus.nodeName !== 'TD') { + tdFocus = tdFocus.parentNode; + } + + // extract line numbers + var firstLineNumber = parseInt(tdAnchor.dataset.lineNumber); + var lastLineNumber = parseInt(tdFocus.dataset.lineNumber); + + // multi-lines copied case + if (firstLineNumber != lastLineNumber) { + + var firstLineText = tdAnchor.textContent; + var lastLineText = tdFocus.textContent; + + // if the selection was made backward, swap values + if (firstLineNumber > lastLineNumber) { + var tmp = firstLineNumber; + firstLineNumber = lastLineNumber; + lastLineNumber = tmp; + tmp = firstLineText; + firstLineText = lastLineText; + lastLineText = tmp; + } + + // discard not copied characters in first line + while (selectionText.indexOf(firstLineText) !== 0) { + firstLineText = firstLineText.slice(1); + } + + // discard not copied characters in last line + while (selectionText.lastIndexOf(lastLineText) === -1) { + lastLineText = lastLineText.slice(0, -1); + } + + // reconstruct and return the real copied text + var selectedText = firstLineText; + var hljsLnTable = getHljsLnTable(tdAnchor); + for (var i = firstLineNumber + 1 ; i < lastLineNumber ; ++i) { + var codeLineSel = format('.{0}[{1}="{2}"]', [CODE_BLOCK_NAME, DATA_ATTR_NAME, i]); + var codeLineElt = hljsLnTable.querySelector(codeLineSel); + selectedText += '\n' + codeLineElt.textContent; + } + selectedText += '\n' + lastLineText; + return selectedText; + // single copied line case + } else { + return selectionText; + } + } + + // ensure consistent code copy/paste behavior across all browsers + // (see https://github.com/wcoder/highlightjs-line-numbers.js/issues/51) + document.addEventListener('copy', function(e) { + // get current selection + var selection = window.getSelection(); + // override behavior when one wants to copy line of codes + if (isHljsLnCodeDescendant(selection.anchorNode)) { + var selectionText; + // workaround an issue with Microsoft Edge as copied line breaks + // are removed otherwise from the selection string + if (window.navigator.userAgent.indexOf('Edge') !== -1) { + selectionText = edgeGetSelectedCodeLines(selection); + } else { + // other browsers can directly use the selection string + selectionText = selection.toString(); + } + e.clipboardData.setData( + 'text/plain', + selectionText + .replace(/(^\t)/gm, '') + ); + e.preventDefault(); + } + }); + + function addStyles () { + var css = d.createElement('style'); + css.type = 'text/css'; + css.innerHTML = format( + '.{0}{border-collapse:collapse}' + + '.{0} td{padding:0}' + + '.{1}:before{content:attr({2})}', + [ + TABLE_NAME, + NUMBER_LINE_NAME, + DATA_ATTR_NAME + ]); + d.getElementsByTagName('head')[0].appendChild(css); + } + + function initLineNumbersOnLoad (options) { + if (d.readyState === 'interactive' || d.readyState === 'complete') { + documentReady(options); + } else { + w.addEventListener('DOMContentLoaded', function () { + documentReady(options); + }); + } + } + + function documentReady (options) { + try { + var blocks = d.querySelectorAll('code.hljs,code.nohighlight'); + + for (var i in blocks) { + if (blocks.hasOwnProperty(i)) { + if (!isPluginDisabledForBlock(blocks[i])) { + lineNumbersBlock(blocks[i], options); + } + } + } + } catch (e) { + w.console.error('LineNumbers error: ', e); + } + } + + function isPluginDisabledForBlock(element) { + return element.classList.contains('nohljsln'); + } + + function lineNumbersBlock (element, options) { + if (typeof element !== 'object') return; + + async(function () { + element.innerHTML = lineNumbersInternal(element, options); + }); + } + + function lineNumbersValue (value, options) { + if (typeof value !== 'string') return; + + var element = document.createElement('code') + element.innerHTML = value + + return lineNumbersInternal(element, options); + } + + function lineNumbersInternal (element, options) { + + var internalOptions = mapOptions(element, options); + + duplicateMultilineNodes(element); + + return addLineNumbersBlockFor(element.innerHTML, internalOptions); + } + + function addLineNumbersBlockFor (inputHtml, options) { + var lines = getLines(inputHtml); + + // if last line contains only carriage return remove it + if (lines[lines.length-1].trim() === '') { + lines.pop(); + } + + if (lines.length > 1 || options.singleLine) { + var html = ''; + + for (var i = 0, l = lines.length; i < l; i++) { + html += format( + '
' + + '' + + '{6}' + + '
{1}
', [ TABLE_NAME, html ]); + } + + return inputHtml; + } + + /** + * @param {HTMLElement} element Code block. + * @param {Object} options External API options. + * @returns {Object} Internal API options. + */ + function mapOptions (element, options) { + options = options || {}; + return { + singleLine: getSingleLineOption(options), + startFrom: getStartFromOption(element, options) + }; + } + + function getSingleLineOption (options) { + var defaultValue = false; + if (!!options.singleLine) { + return options.singleLine; + } + return defaultValue; + } + + function getStartFromOption (element, options) { + var defaultValue = 1; + var startFrom = defaultValue; + + if (isFinite(options.startFrom)) { + startFrom = options.startFrom; + } + + // can be overridden because local option is priority + var value = getAttribute(element, 'data-ln-start-from'); + if (value !== null) { + startFrom = toNumber(value, defaultValue); + } + + return startFrom; + } + + /** + * Recursive method for fix multi-line elements implementation in highlight.js + * Doing deep passage on child nodes. + * @param {HTMLElement} element + */ + function duplicateMultilineNodes (element) { + var nodes = element.childNodes; + for (var node in nodes) { + if (nodes.hasOwnProperty(node)) { + var child = nodes[node]; + if (getLinesCount(child.textContent) > 0) { + if (child.childNodes.length > 0) { + duplicateMultilineNodes(child); + } else { + duplicateMultilineNode(child.parentNode); + } + } + } + } + } + + /** + * Method for fix multi-line elements implementation in highlight.js + * @param {HTMLElement} element + */ + function duplicateMultilineNode (element) { + var className = element.className; + + if ( ! /hljs-/.test(className)) return; + + var lines = getLines(element.innerHTML); + + for (var i = 0, result = ''; i < lines.length; i++) { + var lineText = lines[i].length > 0 ? lines[i] : ' '; + result += format('{1}\n', [ className, lineText ]); + } + + element.innerHTML = result.trim(); + } + + function getLines (text) { + if (text.length === 0) return []; + return text.split(BREAK_LINE_REGEXP); + } + + function getLinesCount (text) { + return (text.trim().match(BREAK_LINE_REGEXP) || []).length; + } + + /// + /// HELPERS + /// + + function async (func) { + w.setTimeout(func, 0); + } + + /** + * {@link https://wcoder.github.io/notes/string-format-for-string-formating-in-javascript} + * @param {string} format + * @param {array} args + */ + function format (format, args) { + return format.replace(/\{(\d+)\}/g, function(m, n){ + return args[n] !== undefined ? args[n] : m; + }); + } + + /** + * @param {HTMLElement} element Code block. + * @param {String} attrName Attribute name. + * @returns {String} Attribute value or empty. + */ + function getAttribute (element, attrName) { + return element.hasAttribute(attrName) ? element.getAttribute(attrName) : null; + } + + /** + * @param {String} str Source string. + * @param {Number} fallback Fallback value. + * @returns Parsed number or fallback value. + */ + function toNumber (str, fallback) { + if (!str) return fallback; + var number = Number(str); + return isFinite(number) ? number : fallback; + } + +}(window, document)); diff --git a/doc/scripts/third-party/hljs-line-num.js b/doc/scripts/third-party/hljs-line-num.js new file mode 100644 index 0000000..facdf6b --- /dev/null +++ b/doc/scripts/third-party/hljs-line-num.js @@ -0,0 +1 @@ +!function(r,o){"use strict";var e,l="hljs-ln",s="hljs-ln-line",f="hljs-ln-code",c="hljs-ln-numbers",u="hljs-ln-n",h="data-line-number",n=/\r\n|\r|\n/g;function t(e){for(var n=e.toString(),t=e.anchorNode;"TD"!==t.nodeName;)t=t.parentNode;for(var r=e.focusNode;"TD"!==r.nodeName;)r=r.parentNode;var e=parseInt(t.dataset.lineNumber),o=parseInt(r.dataset.lineNumber);if(e==o)return n;var a,i=t.textContent,l=r.textContent;for(o{6}',[s,c,u,h,f,a+t.startFrom,0{1}',[l,o])}return e}function m(e){var n=e.className;if(/hljs-/.test(n)){for(var t=g(e.innerHTML),r=0,o="";r{1}\n',[n,0/g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + } + + /** + * performs a shallow merge of multiple objects into one + * + * @template T + * @param {T} original + * @param {Record[]} objects + * @returns {T} a single new object + */ + function inherit$1(original, ...objects) { + /** @type Record */ + const result = Object.create(null); + + for (const key in original) { + result[key] = original[key]; + } + objects.forEach(function (obj) { + for (const key in obj) { + result[key] = obj[key]; + } + }); + return /** @type {T} */ (result); + } + + /** + * @typedef {object} Renderer + * @property {(text: string) => void} addText + * @property {(node: Node) => void} openNode + * @property {(node: Node) => void} closeNode + * @property {() => string} value + */ + + /** @typedef {{kind?: string, sublanguage?: boolean}} Node */ + /** @typedef {{walk: (r: Renderer) => void}} Tree */ + /** */ + + const SPAN_CLOSE = ''; + + /** + * Determines if a node needs to be wrapped in + * + * @param {Node} node */ + const emitsWrappingTags = (node) => { + return !!node.kind; + }; + + /** + * + * @param {string} name + * @param {{prefix:string}} options + */ + const expandScopeName = (name, { prefix }) => { + if (name.includes(".")) { + const pieces = name.split("."); + return [ + `${prefix}${pieces.shift()}`, + ...(pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`)) + ].join(" "); + } + return `${prefix}${name}`; + }; + + /** @type {Renderer} */ + class HTMLRenderer { + /** + * Creates a new HTMLRenderer + * + * @param {Tree} parseTree - the parse tree (must support `walk` API) + * @param {{classPrefix: string}} options + */ + constructor(parseTree, options) { + this.buffer = ""; + this.classPrefix = options.classPrefix; + parseTree.walk(this); + } + + /** + * Adds texts to the output stream + * + * @param {string} text */ + addText(text) { + this.buffer += escapeHTML(text); + } + + /** + * Adds a node open to the output stream (if needed) + * + * @param {Node} node */ + openNode(node) { + if (!emitsWrappingTags(node)) return; + + let scope = node.kind; + if (node.sublanguage) { + scope = `language-${scope}`; + } else { + scope = expandScopeName(scope, { prefix: this.classPrefix }); + } + this.span(scope); + } + + /** + * Adds a node close to the output stream (if needed) + * + * @param {Node} node */ + closeNode(node) { + if (!emitsWrappingTags(node)) return; + + this.buffer += SPAN_CLOSE; + } + + /** + * returns the accumulated buffer + */ + value() { + return this.buffer; + } + + // helpers + + /** + * Builds a span element + * + * @param {string} className */ + span(className) { + this.buffer += ``; + } + } + + /** @typedef {{kind?: string, sublanguage?: boolean, children: Node[]} | string} Node */ + /** @typedef {{kind?: string, sublanguage?: boolean, children: Node[]} } DataNode */ + /** @typedef {import('highlight.js').Emitter} Emitter */ + /** */ + + class TokenTree { + constructor() { + /** @type DataNode */ + this.rootNode = { children: [] }; + this.stack = [this.rootNode]; + } + + get top() { + return this.stack[this.stack.length - 1]; + } + + get root() { return this.rootNode; } + + /** @param {Node} node */ + add(node) { + this.top.children.push(node); + } + + /** @param {string} kind */ + openNode(kind) { + /** @type Node */ + const node = { kind, children: [] }; + this.add(node); + this.stack.push(node); + } + + closeNode() { + if (this.stack.length > 1) { + return this.stack.pop(); + } + // eslint-disable-next-line no-undefined + return undefined; + } + + closeAllNodes() { + while (this.closeNode()); + } + + toJSON() { + return JSON.stringify(this.rootNode, null, 4); + } + + /** + * @typedef { import("./html_renderer").Renderer } Renderer + * @param {Renderer} builder + */ + walk(builder) { + // this does not + return this.constructor._walk(builder, this.rootNode); + // this works + // return TokenTree._walk(builder, this.rootNode); + } + + /** + * @param {Renderer} builder + * @param {Node} node + */ + static _walk(builder, node) { + if (typeof node === "string") { + builder.addText(node); + } else if (node.children) { + builder.openNode(node); + node.children.forEach((child) => this._walk(builder, child)); + builder.closeNode(node); + } + return builder; + } + + /** + * @param {Node} node + */ + static _collapse(node) { + if (typeof node === "string") return; + if (!node.children) return; + + if (node.children.every(el => typeof el === "string")) { + // node.text = node.children.join(""); + // delete node.children; + node.children = [node.children.join("")]; + } else { + node.children.forEach((child) => { + TokenTree._collapse(child); + }); + } + } + } + + /** + Currently this is all private API, but this is the minimal API necessary + that an Emitter must implement to fully support the parser. + + Minimal interface: + + - addKeyword(text, kind) + - addText(text) + - addSublanguage(emitter, subLanguageName) + - finalize() + - openNode(kind) + - closeNode() + - closeAllNodes() + - toHTML() + + */ + + /** + * @implements {Emitter} + */ + class TokenTreeEmitter extends TokenTree { + /** + * @param {*} options + */ + constructor(options) { + super(); + this.options = options; + } + + /** + * @param {string} text + * @param {string} kind + */ + addKeyword(text, kind) { + if (text === "") { return; } + + this.openNode(kind); + this.addText(text); + this.closeNode(); + } + + /** + * @param {string} text + */ + addText(text) { + if (text === "") { return; } + + this.add(text); + } + + /** + * @param {Emitter & {root: DataNode}} emitter + * @param {string} name + */ + addSublanguage(emitter, name) { + /** @type DataNode */ + const node = emitter.root; + node.kind = name; + node.sublanguage = true; + this.add(node); + } + + toHTML() { + const renderer = new HTMLRenderer(this, this.options); + return renderer.value(); + } + + finalize() { + return true; + } + } + + /** + * @param {string} value + * @returns {RegExp} + * */ + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function source(re) { + if (!re) return null; + if (typeof re === "string") return re; + + return re.source; + } + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function lookahead(re) { + return concat('(?=', re, ')'); + } + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function optional(re) { + return concat('(?:', re, ')?'); + } + + /** + * @param {...(RegExp | string) } args + * @returns {string} + */ + function concat(...args) { + const joined = args.map((x) => source(x)).join(""); + return joined; + } + + function stripOptionsFromArgs(args) { + const opts = args[args.length - 1]; + + if (typeof opts === 'object' && opts.constructor === Object) { + args.splice(args.length - 1, 1); + return opts; + } else { + return {}; + } + } + + /** + * Any of the passed expresssions may match + * + * Creates a huge this | this | that | that match + * @param {(RegExp | string)[] } args + * @returns {string} + */ + function either(...args) { + const opts = stripOptionsFromArgs(args); + const joined = '(' + + (opts.capture ? "" : "?:") + + args.map((x) => source(x)).join("|") + ")"; + return joined; + } + + /** + * @param {RegExp} re + * @returns {number} + */ + function countMatchGroups(re) { + return (new RegExp(re.toString() + '|')).exec('').length - 1; + } + + /** + * Does lexeme start with a regular expression match at the beginning + * @param {RegExp} re + * @param {string} lexeme + */ + function startsWith(re, lexeme) { + const match = re && re.exec(lexeme); + return match && match.index === 0; + } + + // BACKREF_RE matches an open parenthesis or backreference. To avoid + // an incorrect parse, it additionally matches the following: + // - [...] elements, where the meaning of parentheses and escapes change + // - other escape sequences, so we do not misparse escape sequences as + // interesting elements + // - non-matching or lookahead parentheses, which do not capture. These + // follow the '(' with a '?'. + const BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; + + // **INTERNAL** Not intended for outside usage + // join logically computes regexps.join(separator), but fixes the + // backreferences so they continue to match. + // it also places each individual regular expression into it's own + // match group, keeping track of the sequencing of those match groups + // is currently an exercise for the caller. :-) + /** + * @param {(string | RegExp)[]} regexps + * @param {{joinWith: string}} opts + * @returns {string} + */ + function _rewriteBackreferences(regexps, { joinWith }) { + let numCaptures = 0; + + return regexps.map((regex) => { + numCaptures += 1; + const offset = numCaptures; + let re = source(regex); + let out = ''; + + while (re.length > 0) { + const match = BACKREF_RE.exec(re); + if (!match) { + out += re; + break; + } + out += re.substring(0, match.index); + re = re.substring(match.index + match[0].length); + if (match[0][0] === '\\' && match[1]) { + // Adjust the backreference. + out += '\\' + String(Number(match[1]) + offset); + } else { + out += match[0]; + if (match[0] === '(') { + numCaptures++; + } + } + } + return out; + }).map(re => `(${re})`).join(joinWith); + } + + /** @typedef {import('highlight.js').Mode} Mode */ + /** @typedef {import('highlight.js').ModeCallback} ModeCallback */ + + // Common regexps + const MATCH_NOTHING_RE = /\b\B/; + const IDENT_RE$1 = '[a-zA-Z]\\w*'; + const UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'; + const NUMBER_RE = '\\b\\d+(\\.\\d+)?'; + const C_NUMBER_RE = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float + const BINARY_NUMBER_RE = '\\b(0b[01]+)'; // 0b... + const RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~'; + + /** + * @param { Partial & {binary?: string | RegExp} } opts + */ + const SHEBANG = (opts = {}) => { + const beginShebang = /^#![ ]*\//; + if (opts.binary) { + opts.begin = concat( + beginShebang, + /.*\b/, + opts.binary, + /\b.*/); + } + return inherit$1({ + scope: 'meta', + begin: beginShebang, + end: /$/, + relevance: 0, + /** @type {ModeCallback} */ + "on:begin": (m, resp) => { + if (m.index !== 0) resp.ignoreMatch(); + } + }, opts); + }; + + // Common modes + const BACKSLASH_ESCAPE = { + begin: '\\\\[\\s\\S]', relevance: 0 + }; + const APOS_STRING_MODE = { + scope: 'string', + begin: '\'', + end: '\'', + illegal: '\\n', + contains: [BACKSLASH_ESCAPE] + }; + const QUOTE_STRING_MODE = { + scope: 'string', + begin: '"', + end: '"', + illegal: '\\n', + contains: [BACKSLASH_ESCAPE] + }; + const PHRASAL_WORDS_MODE = { + begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ + }; + /** + * Creates a comment mode + * + * @param {string | RegExp} begin + * @param {string | RegExp} end + * @param {Mode | {}} [modeOptions] + * @returns {Partial} + */ + const COMMENT = function (begin, end, modeOptions = {}) { + const mode = inherit$1( + { + scope: 'comment', + begin, + end, + contains: [] + }, + modeOptions + ); + mode.contains.push({ + scope: 'doctag', + // hack to avoid the space from being included. the space is necessary to + // match here to prevent the plain text rule below from gobbling up doctags + begin: '[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)', + end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, + excludeBegin: true, + relevance: 0 + }); + const ENGLISH_WORD = either( + // list of common 1 and 2 letter words in English + "I", + "a", + "is", + "so", + "us", + "to", + "at", + "if", + "in", + "it", + "on", + // note: this is not an exhaustive list of contractions, just popular ones + /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, // contractions - can't we'd they're let's, etc + /[A-Za-z]+[-][a-z]+/, // `no-way`, etc. + /[A-Za-z][a-z]{2,}/ // allow capitalized words at beginning of sentences + ); + // looking like plain text, more likely to be a comment + mode.contains.push( + { + // TODO: how to include ", (, ) without breaking grammars that use these for + // comment delimiters? + // begin: /[ ]+([()"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()":]?([.][ ]|[ ]|\))){3}/ + // --- + + // this tries to find sequences of 3 english words in a row (without any + // "programming" type syntax) this gives us a strong signal that we've + // TRULY found a comment - vs perhaps scanning with the wrong language. + // It's possible to find something that LOOKS like the start of the + // comment - but then if there is no readable text - good chance it is a + // false match and not a comment. + // + // for a visual example please see: + // https://github.com/highlightjs/highlight.js/issues/2827 + + begin: concat( + /[ ]+/, // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */ + '(', + ENGLISH_WORD, + /[.]?[:]?([.][ ]|[ ])/, + '){3}') // look for 3 words in a row + } + ); + return mode; + }; + const C_LINE_COMMENT_MODE = COMMENT('//', '$'); + const C_BLOCK_COMMENT_MODE = COMMENT('/\\*', '\\*/'); + const HASH_COMMENT_MODE = COMMENT('#', '$'); + const NUMBER_MODE = { + scope: 'number', + begin: NUMBER_RE, + relevance: 0 + }; + const C_NUMBER_MODE = { + scope: 'number', + begin: C_NUMBER_RE, + relevance: 0 + }; + const BINARY_NUMBER_MODE = { + scope: 'number', + begin: BINARY_NUMBER_RE, + relevance: 0 + }; + const REGEXP_MODE = { + // this outer rule makes sure we actually have a WHOLE regex and not simply + // an expression such as: + // + // 3 / something + // + // (which will then blow up when regex's `illegal` sees the newline) + begin: /(?=\/[^/\n]*\/)/, + contains: [{ + scope: 'regexp', + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [ + BACKSLASH_ESCAPE, + { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [BACKSLASH_ESCAPE] + } + ] + }] + }; + const TITLE_MODE = { + scope: 'title', + begin: IDENT_RE$1, + relevance: 0 + }; + const UNDERSCORE_TITLE_MODE = { + scope: 'title', + begin: UNDERSCORE_IDENT_RE, + relevance: 0 + }; + const METHOD_GUARD = { + // excludes method names from keyword processing + begin: '\\.\\s*' + UNDERSCORE_IDENT_RE, + relevance: 0 + }; + + /** + * Adds end same as begin mechanics to a mode + * + * Your mode must include at least a single () match group as that first match + * group is what is used for comparison + * @param {Partial} mode + */ + const END_SAME_AS_BEGIN = function (mode) { + return Object.assign(mode, + { + /** @type {ModeCallback} */ + 'on:begin': (m, resp) => { resp.data._beginMatch = m[1]; }, + /** @type {ModeCallback} */ + 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); } + }); + }; + + var MODES$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + MATCH_NOTHING_RE: MATCH_NOTHING_RE, + IDENT_RE: IDENT_RE$1, + UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE, + NUMBER_RE: NUMBER_RE, + C_NUMBER_RE: C_NUMBER_RE, + BINARY_NUMBER_RE: BINARY_NUMBER_RE, + RE_STARTERS_RE: RE_STARTERS_RE, + SHEBANG: SHEBANG, + BACKSLASH_ESCAPE: BACKSLASH_ESCAPE, + APOS_STRING_MODE: APOS_STRING_MODE, + QUOTE_STRING_MODE: QUOTE_STRING_MODE, + PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE, + COMMENT: COMMENT, + C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE, + C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE, + HASH_COMMENT_MODE: HASH_COMMENT_MODE, + NUMBER_MODE: NUMBER_MODE, + C_NUMBER_MODE: C_NUMBER_MODE, + BINARY_NUMBER_MODE: BINARY_NUMBER_MODE, + REGEXP_MODE: REGEXP_MODE, + TITLE_MODE: TITLE_MODE, + UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE, + METHOD_GUARD: METHOD_GUARD, + END_SAME_AS_BEGIN: END_SAME_AS_BEGIN + }); + + /** + @typedef {import('highlight.js').CallbackResponse} CallbackResponse + @typedef {import('highlight.js').CompilerExt} CompilerExt + */ + + // Grammar extensions / plugins + // See: https://github.com/highlightjs/highlight.js/issues/2833 + + // Grammar extensions allow "syntactic sugar" to be added to the grammar modes + // without requiring any underlying changes to the compiler internals. + + // `compileMatch` being the perfect small example of now allowing a grammar + // author to write `match` when they desire to match a single expression rather + // than being forced to use `begin`. The extension then just moves `match` into + // `begin` when it runs. Ie, no features have been added, but we've just made + // the experience of writing (and reading grammars) a little bit nicer. + + // ------ + + // TODO: We need negative look-behind support to do this properly + /** + * Skip a match if it has a preceding dot + * + * This is used for `beginKeywords` to prevent matching expressions such as + * `bob.keyword.do()`. The mode compiler automatically wires this up as a + * special _internal_ 'on:begin' callback for modes with `beginKeywords` + * @param {RegExpMatchArray} match + * @param {CallbackResponse} response + */ + function skipIfHasPrecedingDot(match, response) { + const before = match.input[match.index - 1]; + if (before === ".") { + response.ignoreMatch(); + } + } + + /** + * + * @type {CompilerExt} + */ + function scopeClassName(mode, _parent) { + // eslint-disable-next-line no-undefined + if (mode.className !== undefined) { + mode.scope = mode.className; + delete mode.className; + } + } + + /** + * `beginKeywords` syntactic sugar + * @type {CompilerExt} + */ + function beginKeywords(mode, parent) { + if (!parent) return; + if (!mode.beginKeywords) return; + + // for languages with keywords that include non-word characters checking for + // a word boundary is not sufficient, so instead we check for a word boundary + // or whitespace - this does no harm in any case since our keyword engine + // doesn't allow spaces in keywords anyways and we still check for the boundary + // first + mode.begin = '\\b(' + mode.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'; + mode.__beforeBegin = skipIfHasPrecedingDot; + mode.keywords = mode.keywords || mode.beginKeywords; + delete mode.beginKeywords; + + // prevents double relevance, the keywords themselves provide + // relevance, the mode doesn't need to double it + // eslint-disable-next-line no-undefined + if (mode.relevance === undefined) mode.relevance = 0; + } + + /** + * Allow `illegal` to contain an array of illegal values + * @type {CompilerExt} + */ + function compileIllegal(mode, _parent) { + if (!Array.isArray(mode.illegal)) return; + + mode.illegal = either(...mode.illegal); + } + + /** + * `match` to match a single expression for readability + * @type {CompilerExt} + */ + function compileMatch(mode, _parent) { + if (!mode.match) return; + if (mode.begin || mode.end) throw new Error("begin & end are not supported with match"); + + mode.begin = mode.match; + delete mode.match; + } + + /** + * provides the default 1 relevance to all modes + * @type {CompilerExt} + */ + function compileRelevance(mode, _parent) { + // eslint-disable-next-line no-undefined + if (mode.relevance === undefined) mode.relevance = 1; + } + + // allow beforeMatch to act as a "qualifier" for the match + // the full match begin must be [beforeMatch][begin] + const beforeMatchExt = (mode, parent) => { + if (!mode.beforeMatch) return; + // starts conflicts with endsParent which we need to make sure the child + // rule is not matched multiple times + if (mode.starts) throw new Error("beforeMatch cannot be used with starts"); + + const originalMode = Object.assign({}, mode); + Object.keys(mode).forEach((key) => { delete mode[key]; }); + + mode.keywords = originalMode.keywords; + mode.begin = concat(originalMode.beforeMatch, lookahead(originalMode.begin)); + mode.starts = { + relevance: 0, + contains: [ + Object.assign(originalMode, { endsParent: true }) + ] + }; + mode.relevance = 0; + + delete originalMode.beforeMatch; + }; + + // keywords that should have no default relevance value + const COMMON_KEYWORDS = [ + 'of', + 'and', + 'for', + 'in', + 'not', + 'or', + 'if', + 'then', + 'parent', // common variable name + 'list', // common variable name + 'value' // common variable name + ]; + + const DEFAULT_KEYWORD_SCOPE = "keyword"; + + /** + * Given raw keywords from a language definition, compile them. + * + * @param {string | Record | Array} rawKeywords + * @param {boolean} caseInsensitive + */ + function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) { + /** @type KeywordDict */ + const compiledKeywords = Object.create(null); + + // input can be a string of keywords, an array of keywords, or a object with + // named keys representing scopeName (which can then point to a string or array) + if (typeof rawKeywords === 'string') { + compileList(scopeName, rawKeywords.split(" ")); + } else if (Array.isArray(rawKeywords)) { + compileList(scopeName, rawKeywords); + } else { + Object.keys(rawKeywords).forEach(function (scopeName) { + // collapse all our objects back into the parent object + Object.assign( + compiledKeywords, + compileKeywords(rawKeywords[scopeName], caseInsensitive, scopeName) + ); + }); + } + return compiledKeywords; + + // --- + + /** + * Compiles an individual list of keywords + * + * Ex: "for if when while|5" + * + * @param {string} scopeName + * @param {Array} keywordList + */ + function compileList(scopeName, keywordList) { + if (caseInsensitive) { + keywordList = keywordList.map(x => x.toLowerCase()); + } + keywordList.forEach(function (keyword) { + const pair = keyword.split('|'); + compiledKeywords[pair[0]] = [scopeName, scoreForKeyword(pair[0], pair[1])]; + }); + } + } + + /** + * Returns the proper score for a given keyword + * + * Also takes into account comment keywords, which will be scored 0 UNLESS + * another score has been manually assigned. + * @param {string} keyword + * @param {string} [providedScore] + */ + function scoreForKeyword(keyword, providedScore) { + // manual scores always win over common keywords + // so you can force a score of 1 if you really insist + if (providedScore) { + return Number(providedScore); + } + + return commonKeyword(keyword) ? 0 : 1; + } + + /** + * Determines if a given keyword is common or not + * + * @param {string} keyword */ + function commonKeyword(keyword) { + return COMMON_KEYWORDS.includes(keyword.toLowerCase()); + } + + /* + + For the reasoning behind this please see: + https://github.com/highlightjs/highlight.js/issues/2880#issuecomment-747275419 + + */ + + /** + * @type {Record} + */ + const seenDeprecations = {}; + + /** + * @param {string} message + */ + const error = (message) => { + console.error(message); + }; + + /** + * @param {string} message + * @param {any} args + */ + const warn = (message, ...args) => { + console.log(`WARN: ${message}`, ...args); + }; + + /** + * @param {string} version + * @param {string} message + */ + const deprecated = (version, message) => { + if (seenDeprecations[`${version}/${message}`]) return; + + console.log(`Deprecated as of ${version}. ${message}`); + seenDeprecations[`${version}/${message}`] = true; + }; + + /* eslint-disable no-throw-literal */ + + /** + @typedef {import('highlight.js').CompiledMode} CompiledMode + */ + + const MultiClassError = new Error(); + + /** + * Renumbers labeled scope names to account for additional inner match + * groups that otherwise would break everything. + * + * Lets say we 3 match scopes: + * + * { 1 => ..., 2 => ..., 3 => ... } + * + * So what we need is a clean match like this: + * + * (a)(b)(c) => [ "a", "b", "c" ] + * + * But this falls apart with inner match groups: + * + * (a)(((b)))(c) => ["a", "b", "b", "b", "c" ] + * + * Our scopes are now "out of alignment" and we're repeating `b` 3 times. + * What needs to happen is the numbers are remapped: + * + * { 1 => ..., 2 => ..., 5 => ... } + * + * We also need to know that the ONLY groups that should be output + * are 1, 2, and 5. This function handles this behavior. + * + * @param {CompiledMode} mode + * @param {Array} regexes + * @param {{key: "beginScope"|"endScope"}} opts + */ + function remapScopeNames(mode, regexes, { key }) { + let offset = 0; + const scopeNames = mode[key]; + /** @type Record */ + const emit = {}; + /** @type Record */ + const positions = {}; + + for (let i = 1; i <= regexes.length; i++) { + positions[i + offset] = scopeNames[i]; + emit[i + offset] = true; + offset += countMatchGroups(regexes[i - 1]); + } + // we use _emit to keep track of which match groups are "top-level" to avoid double + // output from inside match groups + mode[key] = positions; + mode[key]._emit = emit; + mode[key]._multi = true; + } + + /** + * @param {CompiledMode} mode + */ + function beginMultiClass(mode) { + if (!Array.isArray(mode.begin)) return; + + if (mode.skip || mode.excludeBegin || mode.returnBegin) { + error("skip, excludeBegin, returnBegin not compatible with beginScope: {}"); + throw MultiClassError; + } + + if (typeof mode.beginScope !== "object" || mode.beginScope === null) { + error("beginScope must be object"); + throw MultiClassError; + } + + remapScopeNames(mode, mode.begin, { key: "beginScope" }); + mode.begin = _rewriteBackreferences(mode.begin, { joinWith: "" }); + } + + /** + * @param {CompiledMode} mode + */ + function endMultiClass(mode) { + if (!Array.isArray(mode.end)) return; + + if (mode.skip || mode.excludeEnd || mode.returnEnd) { + error("skip, excludeEnd, returnEnd not compatible with endScope: {}"); + throw MultiClassError; + } + + if (typeof mode.endScope !== "object" || mode.endScope === null) { + error("endScope must be object"); + throw MultiClassError; + } + + remapScopeNames(mode, mode.end, { key: "endScope" }); + mode.end = _rewriteBackreferences(mode.end, { joinWith: "" }); + } + + /** + * this exists only to allow `scope: {}` to be used beside `match:` + * Otherwise `beginScope` would necessary and that would look weird + + { + match: [ /def/, /\w+/ ] + scope: { 1: "keyword" , 2: "title" } + } + + * @param {CompiledMode} mode + */ + function scopeSugar(mode) { + if (mode.scope && typeof mode.scope === "object" && mode.scope !== null) { + mode.beginScope = mode.scope; + delete mode.scope; + } + } + + /** + * @param {CompiledMode} mode + */ + function MultiClass(mode) { + scopeSugar(mode); + + if (typeof mode.beginScope === "string") { + mode.beginScope = { _wrap: mode.beginScope }; + } + if (typeof mode.endScope === "string") { + mode.endScope = { _wrap: mode.endScope }; + } + + beginMultiClass(mode); + endMultiClass(mode); + } + + /** + @typedef {import('highlight.js').Mode} Mode + @typedef {import('highlight.js').CompiledMode} CompiledMode + @typedef {import('highlight.js').Language} Language + @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin + @typedef {import('highlight.js').CompiledLanguage} CompiledLanguage + */ + + // compilation + + /** + * Compiles a language definition result + * + * Given the raw result of a language definition (Language), compiles this so + * that it is ready for highlighting code. + * @param {Language} language + * @returns {CompiledLanguage} + */ + function compileLanguage(language) { + /** + * Builds a regex with the case sensitivity of the current language + * + * @param {RegExp | string} value + * @param {boolean} [global] + */ + function langRe(value, global) { + return new RegExp( + source(value), + 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '') + ); + } + + /** + Stores multiple regular expressions and allows you to quickly search for + them all in a string simultaneously - returning the first match. It does + this by creating a huge (a|b|c) regex - each individual item wrapped with () + and joined by `|` - using match groups to track position. When a match is + found checking which position in the array has content allows us to figure + out which of the original regexes / match groups triggered the match. + + The match object itself (the result of `Regex.exec`) is returned but also + enhanced by merging in any meta-data that was registered with the regex. + This is how we keep track of which mode matched, and what type of rule + (`illegal`, `begin`, end, etc). + */ + class MultiRegex { + constructor() { + this.matchIndexes = {}; + // @ts-ignore + this.regexes = []; + this.matchAt = 1; + this.position = 0; + } + + // @ts-ignore + addRule(re, opts) { + opts.position = this.position++; + // @ts-ignore + this.matchIndexes[this.matchAt] = opts; + this.regexes.push([opts, re]); + this.matchAt += countMatchGroups(re) + 1; + } + + compile() { + if (this.regexes.length === 0) { + // avoids the need to check length every time exec is called + // @ts-ignore + this.exec = () => null; + } + const terminators = this.regexes.map(el => el[1]); + this.matcherRe = langRe(_rewriteBackreferences(terminators, { joinWith: '|' }), true); + this.lastIndex = 0; + } + + /** @param {string} s */ + exec(s) { + this.matcherRe.lastIndex = this.lastIndex; + const match = this.matcherRe.exec(s); + if (!match) { return null; } + + // eslint-disable-next-line no-undefined + const i = match.findIndex((el, i) => i > 0 && el !== undefined); + // @ts-ignore + const matchData = this.matchIndexes[i]; + // trim off any earlier non-relevant match groups (ie, the other regex + // match groups that make up the multi-matcher) + match.splice(0, i); + + return Object.assign(match, matchData); + } + } + + /* + Created to solve the key deficiently with MultiRegex - there is no way to + test for multiple matches at a single location. Why would we need to do + that? In the future a more dynamic engine will allow certain matches to be + ignored. An example: if we matched say the 3rd regex in a large group but + decided to ignore it - we'd need to started testing again at the 4th + regex... but MultiRegex itself gives us no real way to do that. + + So what this class creates MultiRegexs on the fly for whatever search + position they are needed. + + NOTE: These additional MultiRegex objects are created dynamically. For most + grammars most of the time we will never actually need anything more than the + first MultiRegex - so this shouldn't have too much overhead. + + Say this is our search group, and we match regex3, but wish to ignore it. + + regex1 | regex2 | regex3 | regex4 | regex5 ' ie, startAt = 0 + + What we need is a new MultiRegex that only includes the remaining + possibilities: + + regex4 | regex5 ' ie, startAt = 3 + + This class wraps all that complexity up in a simple API... `startAt` decides + where in the array of expressions to start doing the matching. It + auto-increments, so if a match is found at position 2, then startAt will be + set to 3. If the end is reached startAt will return to 0. + + MOST of the time the parser will be setting startAt manually to 0. + */ + class ResumableMultiRegex { + constructor() { + // @ts-ignore + this.rules = []; + // @ts-ignore + this.multiRegexes = []; + this.count = 0; + + this.lastIndex = 0; + this.regexIndex = 0; + } + + // @ts-ignore + getMatcher(index) { + if (this.multiRegexes[index]) return this.multiRegexes[index]; + + const matcher = new MultiRegex(); + this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts)); + matcher.compile(); + this.multiRegexes[index] = matcher; + return matcher; + } + + resumingScanAtSamePosition() { + return this.regexIndex !== 0; + } + + considerAll() { + this.regexIndex = 0; + } + + // @ts-ignore + addRule(re, opts) { + this.rules.push([re, opts]); + if (opts.type === "begin") this.count++; + } + + /** @param {string} s */ + exec(s) { + const m = this.getMatcher(this.regexIndex); + m.lastIndex = this.lastIndex; + let result = m.exec(s); + + // The following is because we have no easy way to say "resume scanning at the + // existing position but also skip the current rule ONLY". What happens is + // all prior rules are also skipped which can result in matching the wrong + // thing. Example of matching "booger": + + // our matcher is [string, "booger", number] + // + // ....booger.... + + // if "booger" is ignored then we'd really need a regex to scan from the + // SAME position for only: [string, number] but ignoring "booger" (if it + // was the first match), a simple resume would scan ahead who knows how + // far looking only for "number", ignoring potential string matches (or + // future "booger" matches that might be valid.) + + // So what we do: We execute two matchers, one resuming at the same + // position, but the second full matcher starting at the position after: + + // /--- resume first regex match here (for [number]) + // |/---- full match here for [string, "booger", number] + // vv + // ....booger.... + + // Which ever results in a match first is then used. So this 3-4 step + // process essentially allows us to say "match at this position, excluding + // a prior rule that was ignored". + // + // 1. Match "booger" first, ignore. Also proves that [string] does non match. + // 2. Resume matching for [number] + // 3. Match at index + 1 for [string, "booger", number] + // 4. If #2 and #3 result in matches, which came first? + if (this.resumingScanAtSamePosition()) { + if (result && result.index === this.lastIndex); else { // use the second matcher result + const m2 = this.getMatcher(0); + m2.lastIndex = this.lastIndex + 1; + result = m2.exec(s); + } + } + + if (result) { + this.regexIndex += result.position + 1; + if (this.regexIndex === this.count) { + // wrap-around to considering all matches again + this.considerAll(); + } + } + + return result; + } + } + + /** + * Given a mode, builds a huge ResumableMultiRegex that can be used to walk + * the content and find matches. + * + * @param {CompiledMode} mode + * @returns {ResumableMultiRegex} + */ + function buildModeRegex(mode) { + const mm = new ResumableMultiRegex(); + + mode.contains.forEach(term => mm.addRule(term.begin, { rule: term, type: "begin" })); + + if (mode.terminatorEnd) { + mm.addRule(mode.terminatorEnd, { type: "end" }); + } + if (mode.illegal) { + mm.addRule(mode.illegal, { type: "illegal" }); + } + + return mm; + } + + /** skip vs abort vs ignore + * + * @skip - The mode is still entered and exited normally (and contains rules apply), + * but all content is held and added to the parent buffer rather than being + * output when the mode ends. Mostly used with `sublanguage` to build up + * a single large buffer than can be parsed by sublanguage. + * + * - The mode begin ands ends normally. + * - Content matched is added to the parent mode buffer. + * - The parser cursor is moved forward normally. + * + * @abort - A hack placeholder until we have ignore. Aborts the mode (as if it + * never matched) but DOES NOT continue to match subsequent `contains` + * modes. Abort is bad/suboptimal because it can result in modes + * farther down not getting applied because an earlier rule eats the + * content but then aborts. + * + * - The mode does not begin. + * - Content matched by `begin` is added to the mode buffer. + * - The parser cursor is moved forward accordingly. + * + * @ignore - Ignores the mode (as if it never matched) and continues to match any + * subsequent `contains` modes. Ignore isn't technically possible with + * the current parser implementation. + * + * - The mode does not begin. + * - Content matched by `begin` is ignored. + * - The parser cursor is not moved forward. + */ + + /** + * Compiles an individual mode + * + * This can raise an error if the mode contains certain detectable known logic + * issues. + * @param {Mode} mode + * @param {CompiledMode | null} [parent] + * @returns {CompiledMode | never} + */ + function compileMode(mode, parent) { + const cmode = /** @type CompiledMode */ (mode); + if (mode.isCompiled) return cmode; + + [ + scopeClassName, + // do this early so compiler extensions generally don't have to worry about + // the distinction between match/begin + compileMatch, + MultiClass, + beforeMatchExt + ].forEach(ext => ext(mode, parent)); + + language.compilerExtensions.forEach(ext => ext(mode, parent)); + + // __beforeBegin is considered private API, internal use only + mode.__beforeBegin = null; + + [ + beginKeywords, + // do this later so compiler extensions that come earlier have access to the + // raw array if they wanted to perhaps manipulate it, etc. + compileIllegal, + // default to 1 relevance if not specified + compileRelevance + ].forEach(ext => ext(mode, parent)); + + mode.isCompiled = true; + + let keywordPattern = null; + if (typeof mode.keywords === "object" && mode.keywords.$pattern) { + // we need a copy because keywords might be compiled multiple times + // so we can't go deleting $pattern from the original on the first + // pass + mode.keywords = Object.assign({}, mode.keywords); + keywordPattern = mode.keywords.$pattern; + delete mode.keywords.$pattern; + } + keywordPattern = keywordPattern || /\w+/; + + if (mode.keywords) { + mode.keywords = compileKeywords(mode.keywords, language.case_insensitive); + } + + cmode.keywordPatternRe = langRe(keywordPattern, true); + + if (parent) { + if (!mode.begin) mode.begin = /\B|\b/; + cmode.beginRe = langRe(mode.begin); + if (!mode.end && !mode.endsWithParent) mode.end = /\B|\b/; + if (mode.end) cmode.endRe = langRe(mode.end); + cmode.terminatorEnd = source(mode.end) || ''; + if (mode.endsWithParent && parent.terminatorEnd) { + cmode.terminatorEnd += (mode.end ? '|' : '') + parent.terminatorEnd; + } + } + if (mode.illegal) cmode.illegalRe = langRe(/** @type {RegExp | string} */(mode.illegal)); + if (!mode.contains) mode.contains = []; + + mode.contains = [].concat(...mode.contains.map(function (c) { + return expandOrCloneMode(c === 'self' ? mode : c); + })); + mode.contains.forEach(function (c) { compileMode(/** @type Mode */(c), cmode); }); + + if (mode.starts) { + compileMode(mode.starts, parent); + } + + cmode.matcher = buildModeRegex(cmode); + return cmode; + } + + if (!language.compilerExtensions) language.compilerExtensions = []; + + // self is not valid at the top-level + if (language.contains && language.contains.includes('self')) { + throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation."); + } + + // we need a null object, which inherit will guarantee + language.classNameAliases = inherit$1(language.classNameAliases || {}); + + return compileMode(/** @type Mode */(language)); + } + + /** + * Determines if a mode has a dependency on it's parent or not + * + * If a mode does have a parent dependency then often we need to clone it if + * it's used in multiple places so that each copy points to the correct parent, + * where-as modes without a parent can often safely be re-used at the bottom of + * a mode chain. + * + * @param {Mode | null} mode + * @returns {boolean} - is there a dependency on the parent? + * */ + function dependencyOnParent(mode) { + if (!mode) return false; + + return mode.endsWithParent || dependencyOnParent(mode.starts); + } + + /** + * Expands a mode or clones it if necessary + * + * This is necessary for modes with parental dependenceis (see notes on + * `dependencyOnParent`) and for nodes that have `variants` - which must then be + * exploded into their own individual modes at compile time. + * + * @param {Mode} mode + * @returns {Mode | Mode[]} + * */ + function expandOrCloneMode(mode) { + if (mode.variants && !mode.cachedVariants) { + mode.cachedVariants = mode.variants.map(function (variant) { + return inherit$1(mode, { variants: null }, variant); + }); + } + + // EXPAND + // if we have variants then essentially "replace" the mode with the variants + // this happens in compileMode, where this function is called from + if (mode.cachedVariants) { + return mode.cachedVariants; + } + + // CLONE + // if we have dependencies on parents then we need a unique + // instance of ourselves, so we can be reused with many + // different parents without issue + if (dependencyOnParent(mode)) { + return inherit$1(mode, { starts: mode.starts ? inherit$1(mode.starts) : null }); + } + + if (Object.isFrozen(mode)) { + return inherit$1(mode); + } + + // no special dependency issues, just return ourselves + return mode; + } + + var version = "11.0.0-beta1"; + + /* + Syntax highlighting with language autodetection. + https://highlightjs.org/ + */ + + /** + @typedef {import('highlight.js').Mode} Mode + @typedef {import('highlight.js').CompiledMode} CompiledMode + @typedef {import('highlight.js').Language} Language + @typedef {import('highlight.js').HLJSApi} HLJSApi + @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin + @typedef {import('highlight.js').PluginEvent} PluginEvent + @typedef {import('highlight.js').HLJSOptions} HLJSOptions + @typedef {import('highlight.js').LanguageFn} LanguageFn + @typedef {import('highlight.js').HighlightedHTMLElement} HighlightedHTMLElement + @typedef {import('highlight.js').BeforeHighlightContext} BeforeHighlightContext + @typedef {import('highlight.js/private').MatchType} MatchType + @typedef {import('highlight.js/private').KeywordData} KeywordData + @typedef {import('highlight.js/private').EnhancedMatch} EnhancedMatch + @typedef {import('highlight.js/private').AnnotatedError} AnnotatedError + @typedef {import('highlight.js').AutoHighlightResult} AutoHighlightResult + @typedef {import('highlight.js').HighlightOptions} HighlightOptions + @typedef {import('highlight.js').HighlightResult} HighlightResult + */ + + + const escape = escapeHTML; + const inherit = inherit$1; + const NO_MATCH = Symbol("nomatch"); + const MAX_KEYWORD_HITS = 7; + + /** + * @param {any} hljs - object that is extended (legacy) + * @returns {HLJSApi} + */ + const HLJS = function (hljs) { + // Global internal variables used within the highlight.js library. + /** @type {Record} */ + const languages = Object.create(null); + /** @type {Record} */ + const aliases = Object.create(null); + /** @type {HLJSPlugin[]} */ + const plugins = []; + + // safe/production mode - swallows more errors, tries to keep running + // even if a single syntax or parse hits a fatal error + let SAFE_MODE = true; + const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?"; + /** @type {Language} */ + const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: 'Plain text', contains: [] }; + + // Global options used when within external APIs. This is modified when + // calling the `hljs.configure` function. + /** @type HLJSOptions */ + let options = { + ignoreUnescapedHTML: false, + noHighlightRe: /^(no-?highlight)$/i, + languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, + classPrefix: 'hljs-', + cssSelector: 'pre code', + languages: null, + // beta configuration options, subject to change, welcome to discuss + // https://github.com/highlightjs/highlight.js/issues/1086 + __emitter: TokenTreeEmitter + }; + + /* Utility functions */ + + /** + * Tests a language name to see if highlighting should be skipped + * @param {string} languageName + */ + function shouldNotHighlight(languageName) { + return options.noHighlightRe.test(languageName); + } + + /** + * @param {HighlightedHTMLElement} block - the HTML element to determine language for + */ + function blockLanguage(block) { + let classes = block.className + ' '; + + classes += block.parentNode ? block.parentNode.className : ''; + + // language-* takes precedence over non-prefixed class names. + const match = options.languageDetectRe.exec(classes); + if (match) { + const language = getLanguage(match[1]); + if (!language) { + warn(LANGUAGE_NOT_FOUND.replace("{}", match[1])); + warn("Falling back to no-highlight mode for this block.", block); + } + return language ? match[1] : 'no-highlight'; + } + + return classes + .split(/\s+/) + .find((_class) => shouldNotHighlight(_class) || getLanguage(_class)); + } + + /** + * Core highlighting function. + * + * OLD API + * highlight(lang, code, ignoreIllegals, continuation) + * + * NEW API + * highlight(code, {lang, ignoreIllegals}) + * + * @param {string} codeOrLanguageName - the language to use for highlighting + * @param {string | HighlightOptions} optionsOrCode - the code to highlight + * @param {boolean} [ignoreIllegals] - whether to ignore illegal matches, default is to bail + * @param {CompiledMode} [continuation] - current continuation mode, if any + * + * @returns {HighlightResult} Result - an object that represents the result + * @property {string} language - the language name + * @property {number} relevance - the relevance score + * @property {string} value - the highlighted HTML code + * @property {string} code - the original raw code + * @property {CompiledMode} top - top of the current mode stack + * @property {boolean} illegal - indicates whether any illegal matches were found + */ + function highlight(codeOrLanguageName, optionsOrCode, ignoreIllegals, continuation) { + let code = ""; + let languageName = ""; + if (typeof optionsOrCode === "object") { + code = codeOrLanguageName; + ignoreIllegals = optionsOrCode.ignoreIllegals; + languageName = optionsOrCode.language; + // continuation not supported at all via the new API + // eslint-disable-next-line no-undefined + continuation = undefined; + } else { + // old API + deprecated("10.7.0", "highlight(lang, code, ...args) has been deprecated."); + deprecated("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"); + languageName = codeOrLanguageName; + code = optionsOrCode; + } + + // https://github.com/highlightjs/highlight.js/issues/3149 + // eslint-disable-next-line no-undefined + if (ignoreIllegals === undefined) { ignoreIllegals = true; } + + /** @type {BeforeHighlightContext} */ + const context = { + code, + language: languageName + }; + // the plugin can change the desired language or the code to be highlighted + // just be changing the object it was passed + fire("before:highlight", context); + + // a before plugin can usurp the result completely by providing it's own + // in which case we don't even need to call highlight + const result = context.result + ? context.result + : _highlight(context.language, context.code, ignoreIllegals, continuation); + + result.code = context.code; + // the plugin can change anything in result to suite it + fire("after:highlight", result); + + return result; + } + + /** + * private highlight that's used internally and does not fire callbacks + * + * @param {string} languageName - the language to use for highlighting + * @param {string} codeToHighlight - the code to highlight + * @param {boolean?} [ignoreIllegals] - whether to ignore illegal matches, default is to bail + * @param {CompiledMode?} [continuation] - current continuation mode, if any + * @returns {HighlightResult} - result of the highlight operation + */ + function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) { + const keywordHits = Object.create(null); + + /** + * Return keyword data if a match is a keyword + * @param {CompiledMode} mode - current mode + * @param {string} matchText - the textual match + * @returns {KeywordData | false} + */ + function keywordData(mode, matchText) { + return mode.keywords[matchText]; + } + + function processKeywords() { + if (!top.keywords) { + emitter.addText(modeBuffer); + return; + } + + let lastIndex = 0; + top.keywordPatternRe.lastIndex = 0; + let match = top.keywordPatternRe.exec(modeBuffer); + let buf = ""; + + while (match) { + buf += modeBuffer.substring(lastIndex, match.index); + const word = language.case_insensitive ? match[0].toLowerCase() : match[0]; + const data = keywordData(top, word); + if (data) { + const [kind, keywordRelevance] = data; + emitter.addText(buf); + buf = ""; + + keywordHits[word] = (keywordHits[word] || 0) + 1; + if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance; + if (kind.startsWith("_")) { + // _ implied for relevance only, do not highlight + // by applying a class name + buf += match[0]; + } else { + const cssClass = language.classNameAliases[kind] || kind; + emitter.addKeyword(match[0], cssClass); + } + } else { + buf += match[0]; + } + lastIndex = top.keywordPatternRe.lastIndex; + match = top.keywordPatternRe.exec(modeBuffer); + } + buf += modeBuffer.substr(lastIndex); + emitter.addText(buf); + } + + function processSubLanguage() { + if (modeBuffer === "") return; + /** @type HighlightResult */ + let result = null; + + if (typeof top.subLanguage === 'string') { + if (!languages[top.subLanguage]) { + emitter.addText(modeBuffer); + return; + } + result = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]); + continuations[top.subLanguage] = /** @type {CompiledMode} */ (result._top); + } else { + result = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null); + } + + // Counting embedded language score towards the host language may be disabled + // with zeroing the containing mode relevance. Use case in point is Markdown that + // allows XML everywhere and makes every XML snippet to have a much larger Markdown + // score. + if (top.relevance > 0) { + relevance += result.relevance; + } + emitter.addSublanguage(result._emitter, result.language); + } + + function processBuffer() { + if (top.subLanguage != null) { + processSubLanguage(); + } else { + processKeywords(); + } + modeBuffer = ''; + } + + /** + * @param {CompiledMode} mode + * @param {RegExpMatchArray} match + */ + function emitMultiClass(scope, match) { + let i = 1; + // eslint-disable-next-line no-undefined + while (match[i] !== undefined) { + if (!scope._emit[i]) { i++; continue; } + const klass = language.classNameAliases[scope[i]] || scope[i]; + const text = match[i]; + if (klass) { + emitter.addKeyword(text, klass); + } else { + modeBuffer = text; + processKeywords(); + modeBuffer = ""; + } + i++; + } + } + + /** + * @param {CompiledMode} mode - new mode to start + * @param {RegExpMatchArray} match + */ + function startNewMode(mode, match) { + if (mode.scope && typeof mode.scope === "string") { + emitter.openNode(language.classNameAliases[mode.scope] || mode.scope); + } + if (mode.beginScope) { + // beginScope just wraps the begin match itself in a scope + if (mode.beginScope._wrap) { + emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap); + modeBuffer = ""; + } else if (mode.beginScope._multi) { + // at this point modeBuffer should just be the match + emitMultiClass(mode.beginScope, match); + modeBuffer = ""; + } + } + + top = Object.create(mode, { parent: { value: top } }); + return top; + } + + /** + * @param {CompiledMode } mode - the mode to potentially end + * @param {RegExpMatchArray} match - the latest match + * @param {string} matchPlusRemainder - match plus remainder of content + * @returns {CompiledMode | void} - the next mode, or if void continue on in current mode + */ + function endOfMode(mode, match, matchPlusRemainder) { + let matched = startsWith(mode.endRe, matchPlusRemainder); + + if (matched) { + if (mode["on:end"]) { + const resp = new Response(mode); + mode["on:end"](match, resp); + if (resp.isMatchIgnored) matched = false; + } + + if (matched) { + while (mode.endsParent && mode.parent) { + mode = mode.parent; + } + return mode; + } + } + // even if on:end fires an `ignore` it's still possible + // that we might trigger the end node because of a parent mode + if (mode.endsWithParent) { + return endOfMode(mode.parent, match, matchPlusRemainder); + } + } + + /** + * Handle matching but then ignoring a sequence of text + * + * @param {string} lexeme - string containing full match text + */ + function doIgnore(lexeme) { + if (top.matcher.regexIndex === 0) { + // no more regexes to potentially match here, so we move the cursor forward one + // space + modeBuffer += lexeme[0]; + return 1; + } else { + // no need to move the cursor, we still have additional regexes to try and + // match at this very spot + resumeScanAtSamePosition = true; + return 0; + } + } + + /** + * Handle the start of a new potential mode match + * + * @param {EnhancedMatch} match - the current match + * @returns {number} how far to advance the parse cursor + */ + function doBeginMatch(match) { + const lexeme = match[0]; + const newMode = match.rule; + + const resp = new Response(newMode); + // first internal before callbacks, then the public ones + const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]]; + for (const cb of beforeCallbacks) { + if (!cb) continue; + cb(match, resp); + if (resp.isMatchIgnored) return doIgnore(lexeme); + } + + if (newMode.skip) { + modeBuffer += lexeme; + } else { + if (newMode.excludeBegin) { + modeBuffer += lexeme; + } + processBuffer(); + if (!newMode.returnBegin && !newMode.excludeBegin) { + modeBuffer = lexeme; + } + } + startNewMode(newMode, match); + return newMode.returnBegin ? 0 : lexeme.length; + } + + /** + * Handle the potential end of mode + * + * @param {RegExpMatchArray} match - the current match + */ + function doEndMatch(match) { + const lexeme = match[0]; + const matchPlusRemainder = codeToHighlight.substr(match.index); + + const endMode = endOfMode(top, match, matchPlusRemainder); + if (!endMode) { return NO_MATCH; } + + const origin = top; + if (top.endScope && top.endScope._wrap) { + processBuffer(); + emitter.addKeyword(lexeme, top.endScope._wrap); + } else if (top.endScope && top.endScope._multi) { + processBuffer(); + emitMultiClass(top.endScope, match); + } else if (origin.skip) { + modeBuffer += lexeme; + } else { + if (!(origin.returnEnd || origin.excludeEnd)) { + modeBuffer += lexeme; + } + processBuffer(); + if (origin.excludeEnd) { + modeBuffer = lexeme; + } + } + do { + if (top.scope && !top.isMultiClass) { + emitter.closeNode(); + } + if (!top.skip && !top.subLanguage) { + relevance += top.relevance; + } + top = top.parent; + } while (top !== endMode.parent); + if (endMode.starts) { + startNewMode(endMode.starts, match); + } + return origin.returnEnd ? 0 : lexeme.length; + } + + function processContinuations() { + const list = []; + for (let current = top; current !== language; current = current.parent) { + if (current.scope) { + list.unshift(current.scope); + } + } + list.forEach(item => emitter.openNode(item)); + } + + /** @type {{type?: MatchType, index?: number, rule?: Mode}}} */ + let lastMatch = {}; + + /** + * Process an individual match + * + * @param {string} textBeforeMatch - text preceding the match (since the last match) + * @param {EnhancedMatch} [match] - the match itself + */ + function processLexeme(textBeforeMatch, match) { + const lexeme = match && match[0]; + + // add non-matched text to the current mode buffer + modeBuffer += textBeforeMatch; + + if (lexeme == null) { + processBuffer(); + return 0; + } + + // we've found a 0 width match and we're stuck, so we need to advance + // this happens when we have badly behaved rules that have optional matchers to the degree that + // sometimes they can end up matching nothing at all + // Ref: https://github.com/highlightjs/highlight.js/issues/2140 + if (lastMatch.type === "begin" && match.type === "end" && lastMatch.index === match.index && lexeme === "") { + // spit the "skipped" character that our regex choked on back into the output sequence + modeBuffer += codeToHighlight.slice(match.index, match.index + 1); + if (!SAFE_MODE) { + /** @type {AnnotatedError} */ + const err = new Error(`0 width match regex (${languageName})`); + err.languageName = languageName; + err.badRule = lastMatch.rule; + throw err; + } + return 1; + } + lastMatch = match; + + if (match.type === "begin") { + return doBeginMatch(match); + } else if (match.type === "illegal" && !ignoreIllegals) { + // illegal match, we do not continue processing + /** @type {AnnotatedError} */ + const err = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.scope || '') + '"'); + err.mode = top; + throw err; + } else if (match.type === "end") { + const processed = doEndMatch(match); + if (processed !== NO_MATCH) { + return processed; + } + } + + // edge case for when illegal matches $ (end of line) which is technically + // a 0 width match but not a begin/end match so it's not caught by the + // first handler (when ignoreIllegals is true) + if (match.type === "illegal" && lexeme === "") { + // advance so we aren't stuck in an infinite loop + return 1; + } + + // infinite loops are BAD, this is a last ditch catch all. if we have a + // decent number of iterations yet our index (cursor position in our + // parsing) still 3x behind our index then something is very wrong + // so we bail + if (iterations > 100000 && iterations > match.index * 3) { + const err = new Error('potential infinite loop, way more iterations than matches'); + throw err; + } + + /* + Why might be find ourselves here? An potential end match that was + triggered but could not be completed. IE, `doEndMatch` returned NO_MATCH. + (this could be because a callback requests the match be ignored, etc) + + This causes no real harm other than stopping a few times too many. + */ + + modeBuffer += lexeme; + return lexeme.length; + } + + const language = getLanguage(languageName); + if (!language) { + error(LANGUAGE_NOT_FOUND.replace("{}", languageName)); + throw new Error('Unknown language: "' + languageName + '"'); + } + + const md = compileLanguage(language); + let result = ''; + /** @type {CompiledMode} */ + let top = continuation || md; + /** @type Record */ + const continuations = {}; // keep continuations for sub-languages + const emitter = new options.__emitter(options); + processContinuations(); + let modeBuffer = ''; + let relevance = 0; + let index = 0; + let iterations = 0; + let resumeScanAtSamePosition = false; + + try { + top.matcher.considerAll(); + + for (; ;) { + iterations++; + if (resumeScanAtSamePosition) { + // only regexes not matched previously will now be + // considered for a potential match + resumeScanAtSamePosition = false; + } else { + top.matcher.considerAll(); + } + top.matcher.lastIndex = index; + + const match = top.matcher.exec(codeToHighlight); + // console.log("match", match[0], match.rule && match.rule.begin) + + if (!match) break; + + const beforeMatch = codeToHighlight.substring(index, match.index); + const processedCount = processLexeme(beforeMatch, match); + index = match.index + processedCount; + } + processLexeme(codeToHighlight.substr(index)); + emitter.closeAllNodes(); + emitter.finalize(); + result = emitter.toHTML(); + + return { + language: languageName, + value: result, + relevance: relevance, + illegal: false, + _emitter: emitter, + _top: top + }; + } catch (err) { + if (err.message && err.message.includes('Illegal')) { + return { + language: languageName, + value: escape(codeToHighlight), + illegal: true, + relevance: 0, + _illegalBy: { + message: err.message, + index: index, + context: codeToHighlight.slice(index - 100, index + 100), + mode: err.mode, + resultSoFar: result + }, + _emitter: emitter + }; + } else if (SAFE_MODE) { + return { + language: languageName, + value: escape(codeToHighlight), + illegal: false, + relevance: 0, + errorRaised: err, + _emitter: emitter, + _top: top + }; + } else { + throw err; + } + } + } + + /** + * returns a valid highlight result, without actually doing any actual work, + * auto highlight starts with this and it's possible for small snippets that + * auto-detection may not find a better match + * @param {string} code + * @returns {HighlightResult} + */ + function justTextHighlightResult(code) { + const result = { + value: escape(code), + illegal: false, + relevance: 0, + _top: PLAINTEXT_LANGUAGE, + _emitter: new options.__emitter(options) + }; + result._emitter.addText(code); + return result; + } + + /** + Highlighting with language detection. Accepts a string with the code to + highlight. Returns an object with the following properties: + + - language (detected language) + - relevance (int) + - value (an HTML string with highlighting markup) + - secondBest (object with the same structure for second-best heuristically + detected language, may be absent) + + @param {string} code + @param {Array} [languageSubset] + @returns {AutoHighlightResult} + */ + function highlightAuto(code, languageSubset) { + languageSubset = languageSubset || options.languages || Object.keys(languages); + const plaintext = justTextHighlightResult(code); + + const results = languageSubset.filter(getLanguage).filter(autoDetection).map(name => + _highlight(name, code, false) + ); + results.unshift(plaintext); // plaintext is always an option + + const sorted = results.sort((a, b) => { + // sort base on relevance + if (a.relevance !== b.relevance) return b.relevance - a.relevance; + + // always award the tie to the base language + // ie if C++ and Arduino are tied, it's more likely to be C++ + if (a.language && b.language) { + if (getLanguage(a.language).supersetOf === b.language) { + return 1; + } else if (getLanguage(b.language).supersetOf === a.language) { + return -1; + } + } + + // otherwise say they are equal, which has the effect of sorting on + // relevance while preserving the original ordering - which is how ties + // have historically been settled, ie the language that comes first always + // wins in the case of a tie + return 0; + }); + + const [best, secondBest] = sorted; + + /** @type {AutoHighlightResult} */ + const result = best; + result.secondBest = secondBest; + + return result; + } + + /** + * Builds new class name for block given the language name + * + * @param {HTMLElement} element + * @param {string} [currentLang] + * @param {string} [resultLang] + */ + function updateClassName(element, currentLang, resultLang) { + const language = (currentLang && aliases[currentLang]) || resultLang; + + element.classList.add("hljs"); + element.classList.add(`language-${language}`); + } + + /** + * Applies highlighting to a DOM node containing code. + * + * @param {HighlightedHTMLElement} element - the HTML element to highlight + */ + function highlightElement(element) { + /** @type HTMLElement */ + let node = null; + const language = blockLanguage(element); + + if (shouldNotHighlight(language)) return; + + fire("before:highlightElement", + { el: element, language: language }); + + // we should be all text, no child nodes + if (!options.ignoreUnescapedHTML && element.children.length > 0) { + console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."); + console.warn("https://github.com/highlightjs/highlight.js/issues/2886"); + console.warn(element); + } + + node = element; + const text = node.textContent; + const result = language ? highlight(text, { language, ignoreIllegals: true }) : highlightAuto(text); + + fire("after:highlightElement", { el: element, result, text }); + + element.innerHTML = result.value; + updateClassName(element, language, result.language); + element.result = { + language: result.language, + // TODO: remove with version 11.0 + re: result.relevance, + relevance: result.relevance + }; + if (result.secondBest) { + element.secondBest = { + language: result.secondBest.language, + relevance: result.secondBest.relevance + }; + } + } + + /** + * Updates highlight.js global options with the passed options + * + * @param {Partial} userOptions + */ + function configure(userOptions) { + options = inherit(options, userOptions); + } + + // TODO: remove v12, deprecated + const initHighlighting = () => { + highlightAll(); + deprecated("10.6.0", "initHighlighting() deprecated. Use highlightAll() now."); + }; + + // TODO: remove v12, deprecated + function initHighlightingOnLoad() { + highlightAll(); + deprecated("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now."); + } + + let wantsHighlight = false; + + /** + * auto-highlights all pre>code elements on the page + */ + function highlightAll() { + // if we are called too early in the loading process + if (document.readyState === "loading") { + wantsHighlight = true; + return; + } + + const blocks = document.querySelectorAll(options.cssSelector); + blocks.forEach(highlightElement); + } + + function boot() { + // if a highlight was requested before DOM was loaded, do now + if (wantsHighlight) highlightAll(); + } + + // make sure we are in the browser environment + if (typeof window !== 'undefined' && window.addEventListener) { + window.addEventListener('DOMContentLoaded', boot, false); + } + + /** + * Register a language grammar module + * + * @param {string} languageName + * @param {LanguageFn} languageDefinition + */ + function registerLanguage(languageName, languageDefinition) { + let lang = null; + try { + lang = languageDefinition(hljs); + } catch (error$1) { + error("Language definition for '{}' could not be registered.".replace("{}", languageName)); + // hard or soft error + if (!SAFE_MODE) { throw error$1; } else { error(error$1); } + // languages that have serious errors are replaced with essentially a + // "plaintext" stand-in so that the code blocks will still get normal + // css classes applied to them - and one bad language won't break the + // entire highlighter + lang = PLAINTEXT_LANGUAGE; + } + // give it a temporary name if it doesn't have one in the meta-data + if (!lang.name) lang.name = languageName; + languages[languageName] = lang; + lang.rawDefinition = languageDefinition.bind(null, hljs); + + if (lang.aliases) { + registerAliases(lang.aliases, { languageName }); + } + } + + /** + * Remove a language grammar module + * + * @param {string} languageName + */ + function unregisterLanguage(languageName) { + delete languages[languageName]; + for (const alias of Object.keys(aliases)) { + if (aliases[alias] === languageName) { + delete aliases[alias]; + } + } + } + + /** + * @returns {string[]} List of language internal names + */ + function listLanguages() { + return Object.keys(languages); + } + + /** + * @param {string} name - name of the language to retrieve + * @returns {Language | undefined} + */ + function getLanguage(name) { + name = (name || '').toLowerCase(); + return languages[name] || languages[aliases[name]]; + } + + /** + * + * @param {string|string[]} aliasList - single alias or list of aliases + * @param {{languageName: string}} opts + */ + function registerAliases(aliasList, { languageName }) { + if (typeof aliasList === 'string') { + aliasList = [aliasList]; + } + aliasList.forEach(alias => { aliases[alias.toLowerCase()] = languageName; }); + } + + /** + * Determines if a given language has auto-detection enabled + * @param {string} name - name of the language + */ + function autoDetection(name) { + const lang = getLanguage(name); + return lang && !lang.disableAutodetect; + } + + /** + * Upgrades the old highlightBlock plugins to the new + * highlightElement API + * @param {HLJSPlugin} plugin + */ + function upgradePluginAPI(plugin) { + // TODO: remove with v12 + if (plugin["before:highlightBlock"] && !plugin["before:highlightElement"]) { + plugin["before:highlightElement"] = (data) => { + plugin["before:highlightBlock"]( + Object.assign({ block: data.el }, data) + ); + }; + } + if (plugin["after:highlightBlock"] && !plugin["after:highlightElement"]) { + plugin["after:highlightElement"] = (data) => { + plugin["after:highlightBlock"]( + Object.assign({ block: data.el }, data) + ); + }; + } + } + + /** + * @param {HLJSPlugin} plugin + */ + function addPlugin(plugin) { + upgradePluginAPI(plugin); + plugins.push(plugin); + } + + /** + * + * @param {PluginEvent} event + * @param {any} args + */ + function fire(event, args) { + const cb = event; + plugins.forEach(function (plugin) { + if (plugin[cb]) { + plugin[cb](args); + } + }); + } + + /** + * + * @param {HighlightedHTMLElement} el + */ + function deprecateHighlightBlock(el) { + deprecated("10.7.0", "highlightBlock will be removed entirely in v12.0"); + deprecated("10.7.0", "Please use highlightElement now."); + + return highlightElement(el); + } + + /* Interface definition */ + Object.assign(hljs, { + highlight, + highlightAuto, + highlightAll, + highlightElement, + // TODO: Remove with v12 API + highlightBlock: deprecateHighlightBlock, + configure, + initHighlighting, + initHighlightingOnLoad, + registerLanguage, + unregisterLanguage, + listLanguages, + getLanguage, + registerAliases, + autoDetection, + inherit, + addPlugin + }); + + hljs.debugMode = function () { SAFE_MODE = false; }; + hljs.safeMode = function () { SAFE_MODE = true; }; + hljs.versionString = version; + + for (const key in MODES$1) { + // @ts-ignore + if (typeof MODES$1[key] === "object") { + // @ts-ignore + deepFreeze$1(MODES$1[key]); + } + } + + // merge all the modes/regexes into our main object + Object.assign(hljs, MODES$1); + + return hljs; + }; + + // export an "instance" of the highlighter + var HighlightJS = HLJS({}); + + /* + Language: Bash + Author: vah + Contributrors: Benjamin Pannell + Website: https://www.gnu.org/software/bash/ + Category: common + */ + + /** @type LanguageFn */ + function bash(hljs) { + const VAR = {}; + const BRACED_VAR = { + begin: /\$\{/, + end: /\}/, + contains: [ + "self", + { + begin: /:-/, + contains: [VAR] + } // default values + ] + }; + Object.assign(VAR, { + className: 'variable', + variants: [ + { + begin: concat(/\$[\w\d#@][\w\d_]*/, + // negative look-ahead tries to avoid matching patterns that are not + // Perl at all like $ident$, @ident@, etc. + `(?![\\w\\d])(?![$])`) + }, + BRACED_VAR + ] + }); + + const SUBST = { + className: 'subst', + begin: /\$\(/, end: /\)/, + contains: [hljs.BACKSLASH_ESCAPE] + }; + const HERE_DOC = { + begin: /<<-?\s*(?=\w+)/, + starts: { + contains: [ + hljs.END_SAME_AS_BEGIN({ + begin: /(\w+)/, + end: /(\w+)/, + className: 'string' + }) + ] + } + }; + const QUOTE_STRING = { + className: 'string', + begin: /"/, end: /"/, + contains: [ + hljs.BACKSLASH_ESCAPE, + VAR, + SUBST + ] + }; + SUBST.contains.push(QUOTE_STRING); + const ESCAPED_QUOTE = { + className: '', + begin: /\\"/ + + }; + const APOS_STRING = { + className: 'string', + begin: /'/, end: /'/ + }; + const ARITHMETIC = { + begin: /\$\(\(/, + end: /\)\)/, + contains: [ + { begin: /\d+#[0-9a-f]+/, className: "number" }, + hljs.NUMBER_MODE, + VAR + ] + }; + const SH_LIKE_SHELLS = [ + "fish", + "bash", + "zsh", + "sh", + "csh", + "ksh", + "tcsh", + "dash", + "scsh", + ]; + const KNOWN_SHEBANG = hljs.SHEBANG({ + binary: `(${SH_LIKE_SHELLS.join("|")})`, + relevance: 10 + }); + const FUNCTION = { + className: 'function', + begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, + returnBegin: true, + contains: [hljs.inherit(hljs.TITLE_MODE, { begin: /\w[\w\d_]*/ })], + relevance: 0 + }; + + const KEYWORDS = [ + "if", + "then", + "else", + "elif", + "fi", + "for", + "while", + "in", + "do", + "done", + "case", + "esac", + "function" + ]; + + const LITERALS = [ + "true", + "false" + ]; + + return { + name: 'Bash', + aliases: ['sh'], + keywords: { + $pattern: /\b[a-z._-]+\b/, + keyword: KEYWORDS, + literal: LITERALS, + built_in: + // Shell built-ins + // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html + 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' + + 'trap umask unset ' + + // Bash built-ins + 'alias bind builtin caller command declare echo enable help let local logout mapfile printf ' + + 'read readarray source type typeset ulimit unalias ' + + // Shell modifiers + 'set shopt ' + + // Zsh built-ins + 'autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ' + + 'compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate ' + + 'fc fg float functions getcap getln history integer jobs kill limit log noglob popd print ' + + 'pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit ' + + 'unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof ' + + 'zpty zregexparse zsocket zstyle ztcp' + }, + contains: [ + KNOWN_SHEBANG, // to catch known shells and boost relevancy + hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang + FUNCTION, + ARITHMETIC, + hljs.HASH_COMMENT_MODE, + HERE_DOC, + QUOTE_STRING, + ESCAPED_QUOTE, + APOS_STRING, + VAR + ] + }; + } + + + const MODES = (hljs) => { + return { + IMPORTANT: { + scope: 'meta', + begin: '!important' + }, + HEXCOLOR: { + scope: 'number', + begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})' + }, + ATTRIBUTE_SELECTOR_MODE: { + scope: 'selector-attr', + begin: /\[/, + end: /\]/, + illegal: '$', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + CSS_NUMBER_MODE: { + scope: 'number', + begin: hljs.NUMBER_RE + '(' + + '%|em|ex|ch|rem' + + '|vw|vh|vmin|vmax' + + '|cm|mm|in|pt|pc|px' + + '|deg|grad|rad|turn' + + '|s|ms' + + '|Hz|kHz' + + '|dpi|dpcm|dppx' + + ')?', + relevance: 0 + } + }; + }; + + const TAGS = [ + 'a', + 'abbr', + 'address', + 'article', + 'aside', + 'audio', + 'b', + 'blockquote', + 'body', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'dd', + 'del', + 'details', + 'dfn', + 'div', + 'dl', + 'dt', + 'em', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'hgroup', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'legend', + 'li', + 'main', + 'mark', + 'menu', + 'nav', + 'object', + 'ol', + 'p', + 'q', + 'quote', + 'samp', + 'section', + 'span', + 'strong', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'tr', + 'ul', + 'var', + 'video' + ]; + + const MEDIA_FEATURES = [ + 'any-hover', + 'any-pointer', + 'aspect-ratio', + 'color', + 'color-gamut', + 'color-index', + 'device-aspect-ratio', + 'device-height', + 'device-width', + 'display-mode', + 'forced-colors', + 'grid', + 'height', + 'hover', + 'inverted-colors', + 'monochrome', + 'orientation', + 'overflow-block', + 'overflow-inline', + 'pointer', + 'prefers-color-scheme', + 'prefers-contrast', + 'prefers-reduced-motion', + 'prefers-reduced-transparency', + 'resolution', + 'scan', + 'scripting', + 'update', + 'width', + // TODO: find a better solution? + 'min-width', + 'max-width', + 'min-height', + 'max-height' + ]; + + // https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes + const PSEUDO_CLASSES = [ + 'active', + 'any-link', + 'blank', + 'checked', + 'current', + 'default', + 'defined', + 'dir', // dir() + 'disabled', + 'drop', + 'empty', + 'enabled', + 'first', + 'first-child', + 'first-of-type', + 'fullscreen', + 'future', + 'focus', + 'focus-visible', + 'focus-within', + 'has', // has() + 'host', // host or host() + 'host-context', // host-context() + 'hover', + 'indeterminate', + 'in-range', + 'invalid', + 'is', // is() + 'lang', // lang() + 'last-child', + 'last-of-type', + 'left', + 'link', + 'local-link', + 'not', // not() + 'nth-child', // nth-child() + 'nth-col', // nth-col() + 'nth-last-child', // nth-last-child() + 'nth-last-col', // nth-last-col() + 'nth-last-of-type', //nth-last-of-type() + 'nth-of-type', //nth-of-type() + 'only-child', + 'only-of-type', + 'optional', + 'out-of-range', + 'past', + 'placeholder-shown', + 'read-only', + 'read-write', + 'required', + 'right', + 'root', + 'scope', + 'target', + 'target-within', + 'user-invalid', + 'valid', + 'visited', + 'where' // where() + ]; + + // https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements + const PSEUDO_ELEMENTS = [ + 'after', + 'backdrop', + 'before', + 'cue', + 'cue-region', + 'first-letter', + 'first-line', + 'grammar-error', + 'marker', + 'part', + 'placeholder', + 'selection', + 'slotted', + 'spelling-error' + ]; + + const ATTRIBUTES = [ + 'align-content', + 'align-items', + 'align-self', + 'animation', + 'animation-delay', + 'animation-direction', + 'animation-duration', + 'animation-fill-mode', + 'animation-iteration-count', + 'animation-name', + 'animation-play-state', + 'animation-timing-function', + 'auto', + 'backface-visibility', + 'background', + 'background-attachment', + 'background-clip', + 'background-color', + 'background-image', + 'background-origin', + 'background-position', + 'background-repeat', + 'background-size', + 'border', + 'border-bottom', + 'border-bottom-color', + 'border-bottom-left-radius', + 'border-bottom-right-radius', + 'border-bottom-style', + 'border-bottom-width', + 'border-collapse', + 'border-color', + 'border-image', + 'border-image-outset', + 'border-image-repeat', + 'border-image-slice', + 'border-image-source', + 'border-image-width', + 'border-left', + 'border-left-color', + 'border-left-style', + 'border-left-width', + 'border-radius', + 'border-right', + 'border-right-color', + 'border-right-style', + 'border-right-width', + 'border-spacing', + 'border-style', + 'border-top', + 'border-top-color', + 'border-top-left-radius', + 'border-top-right-radius', + 'border-top-style', + 'border-top-width', + 'border-width', + 'bottom', + 'box-decoration-break', + 'box-shadow', + 'box-sizing', + 'break-after', + 'break-before', + 'break-inside', + 'caption-side', + 'clear', + 'clip', + 'clip-path', + 'color', + 'column-count', + 'column-fill', + 'column-gap', + 'column-rule', + 'column-rule-color', + 'column-rule-style', + 'column-rule-width', + 'column-span', + 'column-width', + 'columns', + 'content', + 'counter-increment', + 'counter-reset', + 'cursor', + 'direction', + 'display', + 'empty-cells', + 'filter', + 'flex', + 'flex-basis', + 'flex-direction', + 'flex-flow', + 'flex-grow', + 'flex-shrink', + 'flex-wrap', + 'float', + 'font', + 'font-display', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-size', + 'font-size-adjust', + 'font-smoothing', + 'font-stretch', + 'font-style', + 'font-variant', + 'font-variant-ligatures', + 'font-variation-settings', + 'font-weight', + 'height', + 'hyphens', + 'icon', + 'image-orientation', + 'image-rendering', + 'image-resolution', + 'ime-mode', + 'inherit', + 'initial', + 'justify-content', + 'left', + 'letter-spacing', + 'line-height', + 'list-style', + 'list-style-image', + 'list-style-position', + 'list-style-type', + 'margin', + 'margin-bottom', + 'margin-left', + 'margin-right', + 'margin-top', + 'marks', + 'mask', + 'max-height', + 'max-width', + 'min-height', + 'min-width', + 'nav-down', + 'nav-index', + 'nav-left', + 'nav-right', + 'nav-up', + 'none', + 'normal', + 'object-fit', + 'object-position', + 'opacity', + 'order', + 'orphans', + 'outline', + 'outline-color', + 'outline-offset', + 'outline-style', + 'outline-width', + 'overflow', + 'overflow-wrap', + 'overflow-x', + 'overflow-y', + 'padding', + 'padding-bottom', + 'padding-left', + 'padding-right', + 'padding-top', + 'page-break-after', + 'page-break-before', + 'page-break-inside', + 'perspective', + 'perspective-origin', + 'pointer-events', + 'position', + 'quotes', + 'resize', + 'right', + 'src', // @font-face + 'tab-size', + 'table-layout', + 'text-align', + 'text-align-last', + 'text-decoration', + 'text-decoration-color', + 'text-decoration-line', + 'text-decoration-style', + 'text-indent', + 'text-overflow', + 'text-rendering', + 'text-shadow', + 'text-transform', + 'text-underline-position', + 'top', + 'transform', + 'transform-origin', + 'transform-style', + 'transition', + 'transition-delay', + 'transition-duration', + 'transition-property', + 'transition-timing-function', + 'unicode-bidi', + 'vertical-align', + 'visibility', + 'white-space', + 'widows', + 'width', + 'word-break', + 'word-spacing', + 'word-wrap', + 'z-index' + // reverse makes sure longer attributes `font-weight` are matched fully + // instead of getting false positives on say `font` + ].reverse(); + + // some grammars use them all as a single group + const PSEUDO_SELECTORS = PSEUDO_CLASSES.concat(PSEUDO_ELEMENTS); + + + // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10 + var decimalDigits = '[0-9](_*[0-9])*'; + var frac = `\\.(${decimalDigits})`; + var hexDigits = '[0-9a-fA-F](_*[0-9a-fA-F])*'; + var NUMERIC = { + className: 'number', + variants: [ + // DecimalFloatingPointLiteral + // including ExponentPart + { + begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))` + + `[eE][+-]?(${decimalDigits})[fFdD]?\\b` + }, + // excluding ExponentPart + { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, + { begin: `(${frac})[fFdD]?\\b` }, + { begin: `\\b(${decimalDigits})[fFdD]\\b` }, + + // HexadecimalFloatingPointLiteral + { + begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))` + + `[pP][+-]?(${decimalDigits})[fFdD]?\\b` + }, + + // DecimalIntegerLiteral + { begin: '\\b(0|[1-9](_*[0-9])*)[lL]?\\b' }, + + // HexIntegerLiteral + { begin: `\\b0[xX](${hexDigits})[lL]?\\b` }, + + // OctalIntegerLiteral + { begin: '\\b0(_*[0-7])*[lL]?\\b' }, + + // BinaryIntegerLiteral + { begin: '\\b0[bB][01](_*[01])*[lL]?\\b' }, + ], + relevance: 0 + }; + + + /** + * Allows recursive regex expressions to a given depth + * + * ie: recurRegex("(abc~~~)", /~~~/g, 2) becomes: + * (abc(abc(abc))) + * + * @param {string} re + * @param {RegExp} substitution (should be a g mode regex) + * @param {number} depth + * @returns {string}`` + */ + function recurRegex(re, substitution, depth) { + if (depth === -1) return ""; + + return re.replace(substitution, _ => { + return recurRegex(re, substitution, depth - 1); + }); + } + + const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; + const KEYWORDS = [ + "as", // for exports + "in", + "of", + "if", + "for", + "while", + "finally", + "var", + "new", + "function", + "do", + "return", + "void", + "else", + "break", + "catch", + "instanceof", + "with", + "throw", + "case", + "default", + "try", + "switch", + "continue", + "typeof", + "delete", + "let", + "yield", + "const", + "class", + // JS handles these with a special rule + // "get", + // "set", + "debugger", + "async", + "await", + "static", + "import", + "from", + "export", + "extends" + ]; + const LITERALS = [ + "true", + "false", + "null", + "undefined", + "NaN", + "Infinity" + ]; + + const TYPES = [ + "Intl", + "DataView", + "Number", + "Math", + "Date", + "String", + "RegExp", + "Object", + "Function", + "Boolean", + "Error", + "Symbol", + "Set", + "Map", + "WeakSet", + "WeakMap", + "Proxy", + "Reflect", + "JSON", + "Promise", + "Float64Array", + "Int16Array", + "Int32Array", + "Int8Array", + "Uint16Array", + "Uint32Array", + "Float32Array", + "Array", + "Uint8Array", + "Uint8ClampedArray", + "ArrayBuffer", + "BigInt64Array", + "BigUint64Array", + "BigInt" + ]; + + const ERROR_TYPES = [ + "EvalError", + "InternalError", + "RangeError", + "ReferenceError", + "SyntaxError", + "TypeError", + "URIError" + ]; + + const BUILT_IN_GLOBALS = [ + "setInterval", + "setTimeout", + "clearInterval", + "clearTimeout", + + "require", + "exports", + + "eval", + "isFinite", + "isNaN", + "parseFloat", + "parseInt", + "decodeURI", + "decodeURIComponent", + "encodeURI", + "encodeURIComponent", + "escape", + "unescape" + ]; + + const BUILT_IN_VARIABLES = [ + "arguments", + "this", + "super", + "console", + "window", + "document", + "localStorage", + "module", + "global" // Node.js + ]; + + const BUILT_INS = [].concat( + BUILT_IN_GLOBALS, + TYPES, + ERROR_TYPES + ); + + /* + Language: JavaScript + Description: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. + Category: common, scripting, web + Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript + */ + + /** @type LanguageFn */ + function javascript(hljs) { + /** + * Takes a string like " { + const tag = "', + end: '' + }; + const XML_TAG = { + begin: /<[A-Za-z0-9\\._:-]+/, + end: /\/[A-Za-z0-9\\._:-]+>|\/>/, + /** + * @param {RegExpMatchArray} match + * @param {CallbackResponse} response + */ + isTrulyOpeningTag: (match, response) => { + const afterMatchIndex = match[0].length + match.index; + const nextChar = match.input[afterMatchIndex]; + // nested type? + // HTML should not include another raw `<` inside a tag + // But a type might: `>`, etc. + if (nextChar === "<") { + response.ignoreMatch(); + return; + } + // + // This is now either a tag or a type. + if (nextChar === ">") { + // if we cannot find a matching closing tag, then we + // will ignore it + if (!hasClosingTag(match, { after: afterMatchIndex })) { + response.ignoreMatch(); + } + } + } + }; + const KEYWORDS$1 = { + $pattern: IDENT_RE, + keyword: KEYWORDS, + literal: LITERALS, + built_in: BUILT_INS, + "variable.language": BUILT_IN_VARIABLES + }; + + // https://tc39.es/ecma262/#sec-literals-numeric-literals + const decimalDigits = '[0-9](_?[0-9])*'; + const frac = `\\.(${decimalDigits})`; + // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; + const NUMBER = { + className: 'number', + variants: [ + // DecimalLiteral + { + begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))` + + `[eE][+-]?(${decimalDigits})\\b` + }, + { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, + + // DecimalBigIntegerLiteral + { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, + + // NonDecimalIntegerLiteral + { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, + { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, + { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, + + // LegacyOctalIntegerLiteral (does not include underscore separators) + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + { begin: "\\b0[0-7]+n?\\b" }, + ], + relevance: 0 + }; + + const SUBST = { + className: 'subst', + begin: '\\$\\{', + end: '\\}', + keywords: KEYWORDS$1, + contains: [] // defined later + }; + const HTML_TEMPLATE = { + begin: 'html`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'xml' + } + }; + const CSS_TEMPLATE = { + begin: 'css`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'css' + } + }; + const TEMPLATE_STRING = { + className: 'string', + begin: '`', + end: '`', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ] + }; + const JSDOC_COMMENT = hljs.COMMENT( + /\/\*\*(?!\/)/, + '\\*/', + { + relevance: 0, + contains: [ + { + begin: '(?=@[A-Za-z]+)', + relevance: 0, + contains: [ + { + className: 'doctag', + begin: '@[A-Za-z]+' + }, + { + className: 'type', + begin: '\\{', + end: '\\}', + excludeEnd: true, + excludeBegin: true, + relevance: 0 + }, + { + className: 'variable', + begin: IDENT_RE$1 + '(?=\\s*(-)|$)', + endsParent: true, + relevance: 0 + }, + // eat spaces (not newlines) so we can find + // types or variables + { + begin: /(?=[^\n])\s/, + relevance: 0 + } + ] + } + ] + } + ); + const COMMENT = { + className: "comment", + variants: [ + JSDOC_COMMENT, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_LINE_COMMENT_MODE + ] + }; + const SUBST_INTERNALS = [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + TEMPLATE_STRING, + NUMBER, + hljs.REGEXP_MODE + ]; + SUBST.contains = SUBST_INTERNALS + .concat({ + // we need to pair up {} inside our subst to prevent + // it from ending too early by matching another } + begin: /\{/, + end: /\}/, + keywords: KEYWORDS$1, + contains: [ + "self" + ].concat(SUBST_INTERNALS) + }); + const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains); + const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ + // eat recursive parens in sub expressions + { + begin: /\(/, + end: /\)/, + keywords: KEYWORDS$1, + contains: ["self"].concat(SUBST_AND_COMMENTS) + } + ]); + const PARAMS = { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + }; + + // ES6 classes + const CLASS_OR_EXTENDS = { + variants: [ + { + match: [ + /class/, + /\s+/, + IDENT_RE$1 + ], + scope: { + 1: "keyword", + 3: "title.class" + } + }, + { + match: [ + /extends/, + /\s+/, + concat(IDENT_RE$1, "(", concat(/\./, IDENT_RE$1), ")*") + ], + scope: { + 1: "keyword", + 3: "title.class.inherited" + } + } + ] + }; + + const CLASS_REFERENCE = { + relevance: 0, + match: /\b[A-Z][a-z]+([A-Z][a-z]+)*/, + className: "title.class", + keywords: { + _: [ + // se we still get relevance credit for JS library classes + ...TYPES, + ...ERROR_TYPES + ] + } + }; + + const USE_STRICT = { + label: "use_strict", + className: 'meta', + relevance: 10, + begin: /^\s*['"]use (strict|asm)['"]/ + }; + + const FUNCTION_DEFINITION = { + variants: [ + { + match: [ + /function/, + /\s+/, + IDENT_RE$1, + /(?=\s*\()/ + ] + }, + // anonymous function + { + match: [ + /function/, + /\s*(?=\()/ + ] + } + ], + className: { + 1: "keyword", + 3: "title.function" + }, + label: "func.def", + contains: [PARAMS], + illegal: /%/ + }; + + const UPPER_CASE_CONSTANT = { + relevance: 0, + match: /\b[A-Z][A-Z_]+\b/, + className: "variable.constant" + }; + + function noneOf(list) { + return concat("(?!", list.join("|"), ")"); + } + + const FUNCTION_CALL = { + match: concat( + /\b/, + noneOf([ + ...BUILT_IN_GLOBALS, + "super" + ]), + IDENT_RE$1, lookahead(/\(/)), + className: "title.function", + relevance: 0 + }; + + const PROPERTY_ACCESS = { + begin: concat(/\./, lookahead( + concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/) + )), + end: IDENT_RE$1, + excludeBegin: true, + keywords: "prototype", + className: "property", + relevance: 0 + }; + + const GETTER_OR_SETTER = { + match: [ + /get|set/, + /\s+/, + IDENT_RE$1, + /(?=\()/ + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + { // eat to avoid empty params + begin: /\(\)/ + }, + PARAMS + ] + }; + + const FUNC_LEAD_IN_RE = '(\\(' + + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\s*=>'; + + const FUNCTION_VARIABLE = { + match: [ + /const|var|let/, /\s+/, + IDENT_RE$1, /\s*/, + /=\s*/, + lookahead(FUNC_LEAD_IN_RE) + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + PARAMS + ] + }; + + return { + name: 'Javascript', + aliases: ['js', 'jsx', 'mjs', 'cjs'], + keywords: KEYWORDS$1, + // this will be extended by TypeScript + exports: { PARAMS_CONTAINS }, + illegal: /#(?![$_A-z])/, + contains: [ + hljs.SHEBANG({ + label: "shebang", + binary: "node", + relevance: 5 + }), + USE_STRICT, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + TEMPLATE_STRING, + COMMENT, + NUMBER, + CLASS_REFERENCE, + { + className: 'attr', + begin: IDENT_RE$1 + lookahead(':'), + relevance: 0 + }, + FUNCTION_VARIABLE, + { // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + relevance: 0, + contains: [ + COMMENT, + hljs.REGEXP_MODE, + { + className: 'function', + // we have to count the parens to make sure we actually have the + // correct bounding ( ) before the =>. There could be any number of + // sub-expressions inside also surrounded by parens. + begin: FUNC_LEAD_IN_RE, + returnBegin: true, + end: '\\s*=>', + contains: [ + { + className: 'params', + variants: [ + { + begin: hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }, + { + className: null, + begin: /\(\s*\)/, + skip: true + }, + { + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + } + ] + } + ] + }, + { // could be a comma delimited list of params to a function call + begin: /,/, + relevance: 0 + }, + { + match: /\s+/, + relevance: 0 + }, + { // JSX + variants: [ + { begin: FRAGMENT.begin, end: FRAGMENT.end }, + { + begin: XML_TAG.begin, + // we carefully check the opening tag to see if it truly + // is a tag and not a false positive + 'on:begin': XML_TAG.isTrulyOpeningTag, + end: XML_TAG.end + } + ], + subLanguage: 'xml', + contains: [ + { + begin: XML_TAG.begin, + end: XML_TAG.end, + skip: true, + contains: ['self'] + } + ] + } + ], + }, + FUNCTION_DEFINITION, + { + // prevent this from getting swallowed up by function + // since they appear "function like" + beginKeywords: "while if switch catch for" + }, + { + // we have to count the parens to make sure we actually have the correct + // bounding ( ). There could be any number of sub-expressions inside + // also surrounded by parens. + begin: '\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE + + '\\(' + // first parens + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)\\s*\\{', // end parens + returnBegin: true, + label: "func.def", + contains: [ + PARAMS, + hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" }) + ] + }, + // catch ... so it won't trigger the property rule below + { + match: /\.\.\./, + relevance: 0 + }, + PROPERTY_ACCESS, + // hack: prevents detection of keywords in some circumstances + // .keyword() + // $keyword = x + { + match: '\\$' + IDENT_RE$1, + relevance: 0 + }, + { + match: [/\bconstructor(?=\s*\()/], + className: { 1: "title.function" }, + contains: [PARAMS] + }, + FUNCTION_CALL, + UPPER_CASE_CONSTANT, + CLASS_OR_EXTENDS, + GETTER_OR_SETTER, + { + match: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` + } + ] + }; + } + + /* + Language: JSON + Description: JSON (JavaScript Object Notation) is a lightweight data-interchange format. + Author: Ivan Sagalaev + Website: http://www.json.org + Category: common, protocols, web + */ + + function json(hljs) { + const ATTRIBUTE = { + className: 'attr', + begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, + relevance: 1.01 + }; + const PUNCTUATION = { + match: /[{}[\],:]/, + className: "punctuation", + relevance: 0 + }; + // normally we would rely on `keywords` for this but using a mode here allows us + // to use the very tight `illegal: \S` rule later to flag any other character + // as illegal indicating that despite looking like JSON we do not truly have + // JSON and thus improve false-positively greatly since JSON will try and claim + // all sorts of JSON looking stuff + const LITERALS = { + beginKeywords: [ + "true", + "false", + "null" + ].join(" ") + }; + + return { + name: 'JSON', + contains: [ + ATTRIBUTE, + PUNCTUATION, + hljs.QUOTE_STRING_MODE, + LITERALS, + hljs.C_NUMBER_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ], + illegal: '\\S' + }; + } + + + /** @type LanguageFn */ + function xml(hljs) { + // Element names can contain letters, digits, hyphens, underscores, and periods + const TAG_NAME_RE = concat(/[A-Z_]/, optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/); + const XML_IDENT_RE = /[A-Za-z0-9._:-]+/; + const XML_ENTITIES = { + className: 'symbol', + begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ + }; + const XML_META_KEYWORDS = { + begin: /\s/, + contains: [ + { + className: 'keyword', + begin: /#?[a-z_][a-z1-9_-]+/, + illegal: /\n/ + } + ] + }; + const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, { + begin: /\(/, + end: /\)/ + }); + const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'string' + }); + const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { + className: 'string' + }); + const TAG_INTERNALS = { + endsWithParent: true, + illegal: /`]+/ + } + ] + } + ] + } + ] + }; + return { + name: 'HTML, XML', + aliases: [ + 'html', + 'xhtml', + 'rss', + 'atom', + 'xjb', + 'xsd', + 'xsl', + 'plist', + 'wsf', + 'svg' + ], + case_insensitive: true, + contains: [ + { + className: 'meta', + begin: //, + relevance: 10, + contains: [ + XML_META_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE, + XML_META_PAR_KEYWORDS, + { + begin: /\[/, + end: /\]/, + contains: [ + { + className: 'meta', + begin: //, + contains: [ + XML_META_KEYWORDS, + XML_META_PAR_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE + ] + } + ] + } + ] + }, + hljs.COMMENT( + //, + { + relevance: 10 + } + ), + { + begin: //, + relevance: 10 + }, + XML_ENTITIES, + { + className: 'meta', + begin: /<\?xml/, + end: /\?>/, + relevance: 10 + }, + { + className: 'tag', + /* + The lookahead pattern (?=...) ensures that 'begin' only matches + ')/, + end: />/, + keywords: { + name: 'style' + }, + contains: [TAG_INTERNALS], + starts: { + end: /<\/style>/, + returnEnd: true, + subLanguage: [ + 'css', + 'xml' + ] + } + }, + { + className: 'tag', + // See the comment in the + + + +
+ + diff --git a/storybook/assets/Color-PRSJMWNM-B9rq6m7c.js b/storybook/assets/Color-PRSJMWNM-B9rq6m7c.js new file mode 100644 index 0000000..95679e1 --- /dev/null +++ b/storybook/assets/Color-PRSJMWNM-B9rq6m7c.js @@ -0,0 +1 @@ +import{n as $,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-CMAjytqJ.js";import{R as h,r as m,g as fe}from"./index-CDs2tPxN.js";import{_ as Ne,i as J,a as Ie}from"./_getPrototype-DtJm8IA_.js";import"./iframe-CNsWcalC.js";import"../sb-preview/runtime.js";import"./react-18-CqnZ7Kye.js";import"./index-DXimoRZY.js";import"./index-DrFu-skq.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,s.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=i.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(re(b),!function(k,O){return O&&!F(k)}(b,i.current)&&w)){if(F(b)){i.current=!0;var E=b.changedTouches||[];E.length&&(s.current=E[0].identifier)}w.focus(),a(ne(w,b,s.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[l,a]),d=c[0],f=c[1],g=c[2];return m.useEffect(function(){return g},[g]),h.createElement("div",N({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,s,l,l,i,r][c]),g:y(255*[i,r,r,s,l,l][c]),b:y(255*[l,l,i,r,r,s][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:y(60*(s<0?s+6:s)),s:y(a?l/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;ve(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,N({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:R(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,N({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,N({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const z=Ye,ke={};for(const e of Object.keys(z))ke[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,i=o**3,c=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{I[e]={},Object.defineProperty(I[e],"channels",{value:U[e].channels}),Object.defineProperty(I[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];I[e][r]=lt(o),I[e][r].raw=at(o)})});var st=I;const _=fe(st);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,T=o;return r=o=void 0,c=v,l=e.apply(T,C),l}function j(v){return c=v,s=setTimeout(b,t),d?x(v):l}function M(v){var C=v-i,T=v-c,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-i,T=v-c;return i===void 0||C>=t||C<0||f&&T>=a}function b(){var v=D();if(p(v))return w(v);s=setTimeout(b,M(v))}function w(v){return s=void 0,g&&r?x(v):(r=o=void 0,l)}function E(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function k(){return s===void 0?l:w(D())}function O(){var v=D(),C=p(v);if(r=arguments,o=this,i=v,C){if(s===void 0)return j(i);if(f)return clearTimeout(s),s=setTimeout(b,t),x(i)}return s===void 0&&(s=setTimeout(b,t)),l}return O.cancel=E,O.flush=k,O}var St=It,Rt=St,jt=J,Tt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Tt);return jt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),qt=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([l,s,i]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([l,s,i]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),c=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?S(s):s.title?{...S(s.color),keyword:s.title}:S(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>X(i[n])===X(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var E;let i=m.useCallback(Ht(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Zt(t,i),{presets:M,addPreset:p}=en(a,g,x),b=Jt[x],w=!!((E=s==null?void 0:s.table)!=null&&E.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:l,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Wt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:k.keyword||k.value})},h.createElement(ie,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},h.createElement(ie,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?h.createElement(Vt,{onClick:j}):null)},fn=tn;export{tn as ColorControl,fn as default}; diff --git a/storybook/assets/DocsRenderer-K4EAMTCU-CMAjytqJ.js b/storybook/assets/DocsRenderer-K4EAMTCU-CMAjytqJ.js new file mode 100644 index 0000000..9a99740 --- /dev/null +++ b/storybook/assets/DocsRenderer-K4EAMTCU-CMAjytqJ.js @@ -0,0 +1,517 @@ +const __vite__fileDeps=["./syntaxhighlighter-BP7B2CQK-DoA1HlSX.js","./iframe-CNsWcalC.js","./index-CDs2tPxN.js","./react-18-CqnZ7Kye.js","./index-DXimoRZY.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-B8aeGN0G.js","./WithTooltip-KJL26V4Q-dz-U5J6A.js","./Color-PRSJMWNM-B9rq6m7c.js","./index-CqcSDpoT.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as It}from"./iframe-CNsWcalC.js";import{r as o,$ as co,g as Qn,R as f}from"./index-CDs2tPxN.js";import{a as ea,$ as os,r as _u,u as ku}from"./react-18-CqnZ7Kye.js";import{O as ls,P as $u}from"./index-DXimoRZY.js";import{q as is,r as Ou,s as ss,t as Tu,i as ta,v as Mu,w as Lu,x as zu,c as cs,y as ds,z as Pu,A as us,B as Bu,C as Fu,D as Hu,E as Nu,F as ju,G as Du,H as fs,I as Uu,J as Vu,K as ps,_ as Wu,L as Gu,M as qu,N as Yo,d as hs,O as gs,P as ms,Q as Yu,R as Ku,U as Xu,e as Zu,S as si,j as Aa}from"./_getPrototype-DtJm8IA_.js";import{d as Ju}from"./index-DrFu-skq.js";var He=e=>`control-${e.replace(/\s+/g,"-")}`,ra=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Qu}=__STORYBOOK_MODULE_GLOBAL__,{logger:ef}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tf=Object.create,vs=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,bs=Object.getOwnPropertyNames,nf=Object.getPrototypeOf,af=Object.prototype.hasOwnProperty,Ko=(e,t)=>function(){return t||(0,e[bs(e)[0]])((t={exports:{}}).exports,t),t.exports},of=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bs(t))!af.call(e,a)&&a!==r&&vs(e,a,{get:()=>t[a],enumerable:!(n=rf(t,a))||n.enumerable});return e},ys=(e,t,r)=>(r=e!=null?tf(nf(e)):{},of(!e||!e.__esModule?vs(r,"default",{value:e,enumerable:!0}):r,e));function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,m=s+u,p=d+u;return n(h,m,p)}var ci={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function hf(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ci[t]?"#"+ci[t]:e}var gf=/^#[a-fA-F0-9]{6}$/,mf=/^#[a-fA-F0-9]{8}$/,vf=/^#[a-fA-F0-9]{3}$/,bf=/^#[a-fA-F0-9]{4}$/,ka=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,yf=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,wf=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,xf=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function na(e){if(typeof e!="string")throw new rt(3);var t=hf(e);if(t.match(gf))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(mf)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(vf))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(bf)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ka.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=yf.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=wf.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+Gr(c,s,d)+")",h=ka.exec(u);if(!h)throw new rt(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var m=xf.exec(t.substring(0,50));if(m){var p=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,g=parseInt(""+m[3],10)/100,y="rgb("+Gr(p,v,g)+")",x=ka.exec(y);if(!x)throw new rt(4,t,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new rt(5)}function Ef(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?jn(e,t,r):"rgba("+Gr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?jn(e.hue,e.saturation,e.lightness):"rgba("+Gr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new rt(2)}function ho(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return po("#"+Ft(e)+Ft(t)+Ft(r));if(typeof e=="object"&&t===void 0&&r===void 0)return po("#"+Ft(e.red)+Ft(e.green)+Ft(e.blue));throw new rt(6)}function qr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=na(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?ho(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ho(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new rt(7)}var Af=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},_f=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},kf=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},$f=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Es(e){if(typeof e!="object")throw new rt(8);if(_f(e))return qr(e);if(Af(e))return ho(e);if($f(e))return If(e);if(kf(e))return Rf(e);throw new rt(8)}function Cs(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Cs(e,t,n)}}function aa(e){return Cs(e,e.length,[])}function oa(e,t,r){return Math.max(e,Math.min(t,r))}function Of(e,t){if(t==="transparent")return t;var r=xs(t);return Es(At({},r,{lightness:oa(0,1,r.lightness-parseFloat(e))}))}var Tf=aa(Of),Mf=Tf;function Lf(e,t){if(t==="transparent")return t;var r=xs(t);return Es(At({},r,{lightness:oa(0,1,r.lightness+parseFloat(e))}))}var zf=aa(Lf),Pf=zf;function Bf(e,t){if(t==="transparent")return t;var r=na(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:oa(0,1,(n*100+parseFloat(e)*100)/100)});return qr(a)}var Ff=aa(Bf),Hf=Ff;function Nf(e,t){if(t==="transparent")return t;var r=na(t),n=typeof r.alpha=="number"?r.alpha:1,a=At({},r,{alpha:oa(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return qr(a)}var jf=aa(Nf),Df=jf,F={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ct={app:"#F6F9FC",bar:F.lightest,content:F.lightest,preview:F.lightest,gridCellSize:10,hoverable:Df(.9,F.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},nt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Uf={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ct.app,appContentBg:F.lightest,appPreviewBg:F.lightest,appBorderColor:F.border,appBorderRadius:4,fontBase:nt.fonts.base,fontCode:nt.fonts.mono,textColor:F.darkest,textInverseColor:F.lightest,textMutedColor:F.dark,barTextColor:F.mediumdark,barHoverColor:F.secondary,barSelectedColor:F.secondary,barBg:F.lightest,buttonBg:Ct.app,buttonBorder:F.medium,booleanBg:F.mediumlight,booleanSelectedBg:F.lightest,inputBg:F.lightest,inputBorder:F.border,inputTextColor:F.darkest,inputBorderRadius:4},Dn=Uf,Vf={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:F.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:nt.fonts.base,fontCode:nt.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:F.mediumdark,barHoverColor:F.secondary,barSelectedColor:F.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:F.lightest,inputBorderRadius:4},Wf=Vf,{window:Oa}=Qu,Gf=e=>({color:e}),qf=e=>typeof e!="string"?(ef.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,Yf=e=>!/(gradient|var|calc)/.test(e),Kf=(e,t)=>e==="darken"?qr(`${Mf(1,t)}`,.95):e==="lighten"?qr(`${Pf(1,t)}`,.95):t,Xf=e=>t=>{if(!qf(t)||!Yf(t))return t;try{return Kf(e,t)}catch{return t}},jr=Xf("lighten"),Ss=()=>!Oa||!Oa.matchMedia?"light":Oa.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",go={light:Dn,dark:Wf,normal:Dn};Ss();var Zf=function(t){return t()},Rs=co.useInsertionEffect?co.useInsertionEffect:!1,Xo=Rs||Zf,di=Rs||o.useLayoutEffect;function vn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Is={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,a,l){function i(d,u){if(!a[d]){if(!n[d]){var h=typeof vn=="function"&&vn;if(!u&&h)return h(d,!0);if(c)return c(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var p=a[d]={exports:{}};n[d][0].call(p.exports,function(v){var g=n[d][1][v];return i(g||v)},p,p.exports,r,n,a,l)}return a[d].exports}for(var c=typeof vn=="function"&&vn,s=0;s=0)return this.lastItem=this.list[c],this.list[c].val},l.prototype.set=function(i,c){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=c,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=c,this):(this.lastItem={key:i,val:c},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),c=this.indexOf(i),c>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(i){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],!0):!1)},l.prototype.forEach=function(i,c){var s;for(s=0;s0&&(E[x]={cacheItem:v,arg:arguments[x]},b?i(h,E):h.push(E),h.length>d&&c(h.shift())),p.wasMemoized=b,p.numArgs=x+1,y};return p.limit=d,p.wasMemoized=!1,p.cache=u,p.lru=h,p}};function i(d,u){var h=d.length,m=u.length,p,v,g;for(v=0;v=0&&(h=d[p],m=h.cacheItem.get(h.arg),!m||!m.size);p--)h.cacheItem.delete(h.arg)}function s(d,u){return d===u||d!==d&&u!==u}},{"map-or-similar":1}]},{},[3])(3)})})(Is);var Jf=Is.exports;const Zt=Qn(Jf),{logger:Qf}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ep=Ko({"../../node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===a||z===u||z===i||z===l||z===m||z===p||typeof z=="object"&&z!==null&&(z.$$typeof===g||z.$$typeof===v||z.$$typeof===c||z.$$typeof===s||z.$$typeof===h||z.$$typeof===x||z.$$typeof===E||z.$$typeof===b||z.$$typeof===y)}function C(z){if(typeof z=="object"&&z!==null){var Be=z.$$typeof;switch(Be){case r:var De=z.type;switch(De){case d:case u:case a:case i:case l:case m:return De;default:var Lt=De&&De.$$typeof;switch(Lt){case s:case h:case g:case v:case c:return Lt;default:return Be}}case n:return Be}}}var S=d,R=u,I=s,_=c,k=r,$=h,O=a,T=g,H=v,M=n,L=i,N=l,U=m,B=!1;function D(z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q(z)||C(z)===d}function Q(z){return C(z)===u}function oe(z){return C(z)===s}function J(z){return C(z)===c}function ee(z){return typeof z=="object"&&z!==null&&z.$$typeof===r}function P(z){return C(z)===h}function V(z){return C(z)===a}function q(z){return C(z)===g}function de(z){return C(z)===v}function be(z){return C(z)===n}function dt(z){return C(z)===i}function _e(z){return C(z)===l}function je(z){return C(z)===m}e.AsyncMode=S,e.ConcurrentMode=R,e.ContextConsumer=I,e.ContextProvider=_,e.Element=k,e.ForwardRef=$,e.Fragment=O,e.Lazy=T,e.Memo=H,e.Portal=M,e.Profiler=L,e.StrictMode=N,e.Suspense=U,e.isAsyncMode=D,e.isConcurrentMode=Q,e.isContextConsumer=oe,e.isContextProvider=J,e.isElement=ee,e.isForwardRef=P,e.isFragment=V,e.isLazy=q,e.isMemo=de,e.isPortal=be,e.isProfiler=dt,e.isStrictMode=_e,e.isSuspense=je,e.isValidElementType=w,e.typeOf=C})()}}),tp=Ko({"../../node_modules/react-is/index.js"(e,t){t.exports=ep()}}),As=Ko({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=tp(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[r.ForwardRef]=l,c[r.Memo]=i;function s(y){return r.isMemo(y)?i:c[y.$$typeof]||n}var d=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;function g(y,x,E){if(typeof x!="string"){if(v){var b=p(x);b&&b!==v&&g(y,b,E)}var w=u(x);h&&(w=w.concat(h(x)));for(var C=s(y),S=s(x),R=0;R0?pe(Rr,--Ce):0,hr--,ie===10&&(hr=1,ia--),ie}function Se(){return ie=Ce2||Kr(ie)>3?"":" "}function mp(e,t){for(;--t&&Se()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return on(e,On()+(t<6&<()==32&&Se()==32))}function vo(e){for(;Se();)switch(ie){case e:return Ce;case 34:case 39:e!==34&&e!==39&&vo(ie);break;case 40:e===41&&vo(e);break;case 92:Se();break}return Ce}function vp(e,t){for(;Se()&&e+ie!==57&&!(e+ie===84&<()===47););return"/*"+on(t,Ce-1)+"*"+la(e===47?e:Se())}function bp(e){for(;!Kr(lt());)Se();return on(e,Ce)}function yp(e){return Ms(Mn("",null,null,null,[""],e=Ts(e),0,[0],e))}function Mn(e,t,r,n,a,l,i,c,s){for(var d=0,u=0,h=i,m=0,p=0,v=0,g=1,y=1,x=1,E=0,b="",w=a,C=l,S=n,R=b;y;)switch(v=E,E=Se()){case 40:if(v!=108&&pe(R,h-1)==58){mo(R+=X(Tn(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:R+=Tn(E);break;case 9:case 10:case 13:case 32:R+=gp(v);break;case 92:R+=mp(On()-1,7);continue;case 47:switch(lt()){case 42:case 47:bn(wp(vp(Se(),On()),t,r),s);break;default:R+="/"}break;case 123*g:c[d++]=Xe(R)*x;case 125*g:case 59:case 0:switch(E){case 0:case 125:y=0;case 59+u:x==-1&&(R=X(R,/\f/g,"")),p>0&&Xe(R)-h&&bn(p>32?fi(R+";",n,r,h-1):fi(X(R," ","")+";",n,r,h-2),s);break;case 59:R+=";";default:if(bn(S=ui(R,t,r,d,u,a,c,b,w=[],C=[],h),l),E===123)if(u===0)Mn(R,t,S,S,w,l,h,c,C);else switch(m===99&&pe(R,3)===110?100:m){case 100:case 108:case 109:case 115:Mn(e,S,S,n&&bn(ui(e,S,S,0,0,a,c,b,a,w=[],h),C),a,C,h,c,n?w:C);break;default:Mn(R,S,S,S,[""],C,0,c,C)}}d=u=p=0,g=x=1,b=R="",h=i;break;case 58:h=1+Xe(R),p=v;default:if(g<1){if(E==123)--g;else if(E==125&&g++==0&&hp()==125)continue}switch(R+=la(E),E*g){case 38:x=u>0?1:(R+="\f",-1);break;case 44:c[d++]=(Xe(R)-1)*x,x=1;break;case 64:lt()===45&&(R+=Tn(Se())),m=lt(),u=h=Xe(b=R+=bp(On())),E++;break;case 45:v===45&&Xe(R)==2&&(g=0)}}return l}function ui(e,t,r,n,a,l,i,c,s,d,u){for(var h=a-1,m=a===0?l:[""],p=tl(m),v=0,g=0,y=0;v0?m[x]+" "+E:X(E,/&\f/g,m[x])))&&(s[y++]=b);return sa(e,t,r,a===0?Qo:c,s,d,u)}function wp(e,t,r){return sa(e,t,r,Jo,la(pp()),Yr(e,2,-2),0)}function fi(e,t,r,n){return sa(e,t,r,el,Yr(e,0,n),Yr(e,n+1,-1),n)}function fr(e,t){for(var r="",n=tl(e),a=0;a-1},$p=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var l=!!t.parent,i=l?t.parent.children:n,c=i.length-1;c>=0;c--){var s=i[c];if(s.line=0;r--)if(!Ls(t[r]))return!0;return!1},gi=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Tp=function(e,t,r){Ls(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),gi(e)):Op(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),gi(e)))};function zs(e,t){switch(dp(e,t)){case 5103:return K+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Un+e+ve+e+e;case 6828:case 4268:return K+e+ve+e+e;case 6165:return K+e+ve+"flex-"+e+e;case 5187:return K+e+X(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return K+e+ve+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return K+e+ve+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+ve+X(e,"shrink","negative")+e;case 5292:return K+e+ve+X(e,"basis","preferred-size")+e;case 6060:return K+"box-"+X(e,"-grow","")+K+e+ve+X(e,"grow","positive")+e;case 4554:return K+X(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,K+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Un+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mo(e,"stretch")?zs(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Xe(e)-3-(~mo(e,"!important")&&10))){case 107:return X(e,":",":"+K)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(pe(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return K+e+ve+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+ve+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+ve+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+ve+e+e}return e}var Mp=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case el:e.return=zs(e.value,e.length);break;case ks:return fr([Pr(e,{value:X(e.value,"@","@"+K)})],n);case Qo:if(e.length)return fp(e.props,function(a){switch(up(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fr([Pr(e,{props:[X(a,/:(read-\w+)/,":"+Un+"$1")]})],n);case"::placeholder":return fr([Pr(e,{props:[X(a,/:(plac\w+)/,":"+K+"input-$1")]}),Pr(e,{props:[X(a,/:(plac\w+)/,":"+Un+"$1")]}),Pr(e,{props:[X(a,/:(plac\w+)/,ve+"input-$1")]})],n)}return""})}},Lp=[Mp],zp=function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||Lp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},l,i=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),y=1;y=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Fp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mi=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Hp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Np=/[A-Z]|^ms/g,Ps=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nl=function(e){return e.charCodeAt(1)===45},bi=function(e){return e!=null&&typeof e!="boolean"},Ta=_s(function(e){return nl(e)?e:e.replace(Np,"-$&").toLowerCase()}),Vn=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Ps,function(r,n,a){return Ze={name:n,styles:a,next:Ze},n})}return Fp[e]!==1&&!nl(e)&&typeof t=="number"&&t!==0?t+"px":t};yi=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,wi=["normal","none","initial","inherit","unset"],xi=Vn,Ei=/^-ms-/,Ci=/-(.)/g,Ma={},Vn=function(e,t){if(e==="content"&&(typeof t!="string"||wi.indexOf(t)===-1&&!yi.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=xi(e,t);return r!==""&&!nl(e)&&e.indexOf("-")!==-1&&Ma[e]===void 0&&(Ma[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ei,"ms-").replace(Ci,function(n,a){return a.toUpperCase()})+"?")),r};var yi,wi,xi,Ei,Ci,Ma,Bs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xr(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Bs);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ze={name:r.name,styles:r.styles,next:Ze},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ze={name:n.name,styles:n.styles,next:Ze},n=n.next;var a=r.styles+";";return r.map!==void 0&&(a+=r.map),a}return jp(e,t,r)}case"function":{if(e!==void 0){var l=Ze,i=r(e);return Ze=l,Xr(e,t,i)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":var c=[],s=r.replace(Ps,function(u,h,m){var p="animation"+c.length;return c.push("const "+p+" = keyframes`"+m.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+s+"`"]).join(` +`)+` + +You should wrap it with \`css\` like this: + +`+("css`"+s+"`"));break}if(t==null)return r;var d=t[r];return d!==void 0?d:r}function jp(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a ({})}!");return r}if(t==null||typeof t!="object"||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return At({},e,t)},Vp=pi(function(e){return pi(function(t){return Up(e,t)})}),Ns=function(e){var t=o.useContext(_t);return e.theme!==t&&(t=Vp(t)(e.theme)),o.createElement(_t.Provider,{value:t},e.children)},Ri="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ii="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Wp=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ca(t,r,n),Xo(function(){return da(t,r,n)}),null},Gp=ua(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Ri],l=[n],i="";typeof e.className=="string"?i=rl(t.registered,l,e.className):e.className!=null&&(i=e.className+" ");var c=gr(l,void 0,o.useContext(_t));if(c.name.indexOf("-")===-1){var s=e[Ii];s&&(c=gr([c,"label:"+s+";"]))}i+=t.key+"-"+c.name;var d={};for(var u in e)Dp.call(e,u)&&u!=="css"&&u!==Ri&&u!==Ii&&(d[u]=e[u]);return d.ref=r,d.className=i,o.createElement(o.Fragment,null,o.createElement(Wp,{cache:t,serialized:c,isStringTag:typeof a=="string"}),o.createElement(a,d))});Gp.displayName="EmotionCssPropInternal";ys(As());var qp={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Ai=!1,Yp=ua(function(e,t){!Ai&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ai=!0);var r=e.styles,n=gr([r],void 0,o.useContext(_t)),a=o.useRef();return di(function(){var l=t.key+"-global",i=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,s=document.querySelector('style[data-emotion="'+l+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(c=!0,s.setAttribute("data-emotion",l),i.hydrate([s])),a.current=[i,c],function(){i.flush()}},[t]),di(function(){var l=a.current,i=l[0],c=l[1];if(c){l[1]=!1;return}if(n.next!==void 0&&da(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});Yp.displayName="EmotionGlobal";function ol(){for(var e=arguments.length,t=new Array(e),r=0;r component."),i="";for(var c in l)l[c]&&c&&(i&&(i+=" "),i+=c)}break}default:i=l}i&&(a&&(a+=" "),a+=i)}}return a};function Xp(e,t,r){var n=[],a=rl(e,n,r);return n.length<2?r:a+t(n)}var Zp=function(e){var t=e.cache,r=e.serializedArr;return Xo(function(){for(var n=0;n96?Qp:e5},$i=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},Oi=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,t5=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ca(t,r,n),Xo(function(){return da(t,r,n)}),null},r5=function e(t,r){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component. +You may have forgotten to import it.`);var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,l,i;r!==void 0&&(l=r.label,i=r.target);var c=$i(t,r,n),s=c||ki(a),d=!s("as");return function(){var u=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&h.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{u[0][0]===void 0&&console.error(Oi),h.push(u[0][0]);for(var m=u.length,p=1;p({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));Zt(1)(({color:e,background:t,typography:r})=>{let n=a5({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`}}});var o5={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},l5=gt` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,js=gt` + 0%, 100% { opacity: 1; } + 50% { opacity: .4; } +`,i5=gt` + 0% { transform: translateY(1px); } + 25% { transform: translateY(0px); } + 50% { transform: translateY(-3px); } + 100% { transform: translateY(1px); } +`,s5=gt` + 0%, 100% { transform:translate3d(0,0,0); } + 12.5%, 62.5% { transform:translate3d(-4px,0,0); } + 37.5%, 87.5% { transform: translate3d(4px,0,0); } +`,c5=ol` + animation: ${js} 1.5s ease-in-out infinite; + color: transparent; + cursor: progress; +`,d5=ol` + transition: all 150ms ease-out; + transform: translate3d(0, 0, 0); + + &:hover { + transform: translate3d(0, -2px, 0); + } + + &:active { + transform: translate3d(0, 0, 0); + } +`,u5={rotate360:l5,glow:js,float:i5,jiggle:s5,inlineGlow:c5,hoverable:d5},f5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},p5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},h5=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:Gf(n)}),{}),g5=({colors:e,mono:t})=>{let r=h5(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},m5={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},v5={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},b5=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:F.tertiary,ancillary:F.ancillary,orange:F.orange,gold:F.gold,green:F.green,seafoam:F.seafoam,purple:F.purple,ultraviolet:F.ultraviolet,lightest:F.lightest,lighter:F.lighter,light:F.light,mediumlight:F.mediumlight,medium:F.medium,mediumdark:F.mediumdark,dark:F.dark,darker:F.darker,darkest:F.darkest,border:F.border,positive:F.positive,negative:F.negative,warning:F.warning,critical:F.critical,defaultText:e.textColor||F.darkest,inverseText:e.textInverseColor||F.lightest,positiveText:F.positiveText,negativeText:F.negativeText,warningText:F.warningText}),bo=(e=go[Ss()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:a,appContentBg:l,appPreviewBg:i,appBorderColor:c,appBorderRadius:s,fontBase:d,fontCode:u,textColor:h,textInverseColor:m,barTextColor:p,barHoverColor:v,barSelectedColor:g,barBg:y,buttonBg:x,buttonBorder:E,booleanBg:b,booleanSelectedBg:w,inputBg:C,inputBorder:S,inputTextColor:R,inputBorderRadius:I,brandTitle:_,brandUrl:k,brandImage:$,brandTarget:O,gridCellSize:T,...H}=e;return{...H,base:t,color:b5(e),background:{app:a,bar:y,content:l,preview:i,gridCellSize:T||Ct.gridCellSize,hoverable:Ct.hoverable,positive:Ct.positive,negative:Ct.negative,warning:Ct.warning,critical:Ct.critical},typography:{fonts:{base:d,mono:u},weight:nt.weight,size:nt.size},animation:u5,easing:o5,input:{background:C,border:S,borderRadius:I,color:R},button:{background:x||C,border:E||S},boolean:{background:b||S,selectedBackground:w||C},layoutMargin:10,appBorderColor:c,appBorderRadius:s,barTextColor:p,barHoverColor:v||n,barSelectedColor:g||n,barBg:y,brand:{title:_,url:k,image:$||(_?null:void 0),target:O},code:g5({colors:t==="light"?m5:v5,mono:u}),addonActionsTheme:{...t==="light"?p5:f5,BASE_FONT_FAMILY:u,BASE_FONT_SIZE:nt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:h,ARROW_COLOR:Hf(.2,c),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:u,TREENODE_FONT_SIZE:nt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},y5=e=>Object.keys(e).length===0,Ba=e=>e!=null&&typeof e=="object",w5=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),x5=()=>Object.create(null),Ds=(e,t)=>e===t||!Ba(e)||!Ba(t)?{}:Object.keys(e).reduce((r,n)=>{if(w5(t,n)){let a=Ds(e[n],t[n]);return Ba(a)&&y5(a)||(r[n]=a),r}return r[n]=void 0,r},x5()),E5=Ds;function C5(e){for(var t=[],r=1;r{if(!e)return bo(Dn);let t=E5(Dn,e);return Object.keys(t).length&&Qf.warn(C5` + Your theme is missing properties, you should update your theme! + + theme-data missing: + `,t),bo(e)},yo="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var R5=Object.create,il=Object.defineProperty,I5=Object.getOwnPropertyDescriptor,Us=Object.getOwnPropertyNames,A5=Object.getPrototypeOf,_5=Object.prototype.hasOwnProperty,j=(e,t)=>function(){return t||(0,e[Us(e)[0]])((t={exports:{}}).exports,t),t.exports},k5=(e,t)=>{for(var r in t)il(e,r,{get:t[r],enumerable:!0})},$5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Us(t))!_5.call(e,a)&&a!==r&&il(e,a,{get:()=>t[a],enumerable:!(n=I5(t,a))||n.enumerable});return e},Ie=(e,t,r)=>(r=e!=null?R5(A5(e)):{},$5(!e||!e.__esModule?il(r,"default",{value:e,enumerable:!0}):r,e)),O5=j({"../../node_modules/refractor/lang/markdown.js"(e,t){t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(a){var l=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(v){return v=v.replace(//g,function(){return l}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+v+")")}var c=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return c}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+d+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+d+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(c),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(c),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(v){["url","bold","italic","strike","code-snippet"].forEach(function(g){v!==g&&(a.languages.markdown[v].inside.content.inside[g]=a.languages.markdown[g])})}),a.hooks.add("after-tokenize",function(v){if(v.language!=="markdown"&&v.language!=="md")return;function g(y){if(!(!y||typeof y=="string"))for(var x=0,E=y.length;x",quot:'"'},m=String.fromCodePoint||String.fromCharCode;function p(v){var g=v.replace(u,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(y,x){if(x=x.toLowerCase(),x[0]==="#"){var E;return x[1]==="x"?E=parseInt(x.slice(2),16):E=Number(x.slice(1)),m(E)}else{var b=h[x];return b||y}}),g}a.languages.md=a.languages.markdown})(n)}}}),T5=j({"../../node_modules/refractor/lang/yaml.js"(e,t){t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(a){var l=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,c="(?:"+i.source+"(?:[ ]+"+l.source+")?|"+l.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(h,m){m=(m||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return c}).replace(/<>/g,function(){return h});return RegExp(p,m)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return c})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return c}).replace(/<>/g,function(){return"(?:"+s+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(d),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:l,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(n)}}}),Vs=j({"../../node_modules/refractor/lang/typescript.js"(e,t){t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var l=a.languages.extend("typescript",{});delete l["class-name"],a.languages.typescript["class-name"].inside=l,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:l}}}}),a.languages.ts=a.languages.typescript})(n)}}}),Ws=j({"../../node_modules/refractor/lang/jsx.js"(e,t){t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(a){var l=a.util.clone(a.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,c=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function d(m,p){return m=m.replace(//g,function(){return i}).replace(//g,function(){return c}).replace(//g,function(){return s}),RegExp(m,p)}s=d(s).source,a.languages.jsx=a.languages.extend("markup",l),a.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=l.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:d(//.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var u=function(m){return m?typeof m=="string"?m:typeof m.content=="string"?m.content:m.content.map(u).join(""):""},h=function(m){for(var p=[],v=0;v0&&p[p.length-1].tagName===u(g.content[0].content[1])&&p.pop():g.content[g.content.length-1].content==="/>"||p.push({tagName:u(g.content[0].content[1]),openedBraces:0}):p.length>0&&g.type==="punctuation"&&g.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?p[p.length-1].openedBraces--:y=!0),(y||typeof g=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var x=u(g);v0&&(typeof m[v-1]=="string"||m[v-1].type==="plain-text")&&(x=u(m[v-1])+x,m.splice(v-1,1),v--),m[v]=new a.Token("plain-text",x,null,x)}g.content&&typeof g.content!="string"&&h(g.content)}};a.hooks.add("after-tokenize",function(m){m.language!=="jsx"&&m.language!=="tsx"||h(m.tokens)})})(n)}}}),M5=j({"../../node_modules/refractor/lang/tsx.js"(e,t){var r=Ws(),n=Vs();t.exports=a,a.displayName="tsx",a.aliases=[];function a(l){l.register(r),l.register(n),function(i){var c=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",c),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0}(l)}}}),L5=j({"../../node_modules/refractor/lang/clike.js"(e,t){t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}}}),z5=j({"../../node_modules/refractor/lang/javascript.js"(e,t){t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}}}),Gs=j({"../../node_modules/refractor/lang/css.js"(e,t){t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(a){var l=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+l.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+l.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+l.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:l,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var i=a.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}}}),qs=j({"../../node_modules/refractor/lang/markup.js"(e,t){t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(a,l){var i={};i["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},i.cdata=/^$/i;var c={"included-cdata":{pattern://i,inside:i}};c["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var s={};s[a]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:c},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,l){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[l,"language-"+l],inside:n.languages[l]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}}}),P5=j({"../../node_modules/xtend/immutable.js"(e,t){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var a={},l=0;l4&&y.slice(0,4)===l&&i.test(g)&&(g.charAt(4)==="-"?x=u(g):g=h(g),E=n),new E(x,g))}function u(v){var g=v.slice(5).replace(c,p);return l+g.charAt(0).toUpperCase()+g.slice(1)}function h(v){var g=v.slice(4);return c.test(g)?v:(g=g.replace(s,m),g.charAt(0)!=="-"&&(g="-"+g),l+g)}function m(v){return"-"+v.toLowerCase()}function p(v){return v.charAt(1).toUpperCase()}}}),G5=j({"../../node_modules/hast-util-parse-selector/index.js"(e,t){t.exports=n;var r=/[#.]/g;function n(a,l){for(var i=a||"",c=l||"div",s={},d=0,u,h,m;d",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),Q5=j({"../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e,t){t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}}),Js=j({"../../node_modules/refractor/node_modules/is-decimal/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}}}),eh=j({"../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}}}),th=j({"../../node_modules/refractor/node_modules/is-alphabetical/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}}}),rh=j({"../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e,t){var r=th(),n=Js();t.exports=a;function a(l){return r(l)||n(l)}}}),nh=j({"../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e,t){var r,n=59;t.exports=a;function a(l){var i="&"+l+";",c;return r=r||document.createElement("i"),r.innerHTML=i,c=r.textContent,c.charCodeAt(c.length-1)===n&&l!=="semi"||c===i?!1:c}}}),ah=j({"../../node_modules/refractor/node_modules/parse-entities/index.js"(e,t){var r=J5(),n=Q5(),a=Js(),l=eh(),i=rh(),c=nh();t.exports=Q;var s={}.hasOwnProperty,d=String.fromCharCode,u=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},m=9,p=10,v=12,g=32,y=38,x=59,E=60,b=61,w=35,C=88,S=120,R=65533,I="named",_="hexadecimal",k="decimal",$={};$[_]=16,$[k]=10;var O={};O[I]=i,O[k]=a,O[_]=l;var T=1,H=2,M=3,L=4,N=5,U=6,B=7,D={};D[T]="Named character references must be terminated by a semicolon",D[H]="Numeric character references must be terminated by a semicolon",D[M]="Named character references cannot be empty",D[L]="Numeric character references cannot be empty",D[N]="Named character references must be known",D[U]="Numeric character references cannot be disallowed",D[B]="Numeric character references cannot be outside the permissible Unicode range";function Q(P,V){var q={},de,be;V||(V={});for(be in h)de=V[be],q[be]=de??h[be];return(q.position.indent||q.position.start)&&(q.indent=q.position.indent||[],q.position=q.position.start),oe(P,q)}function oe(P,V){var q=V.additional,de=V.nonTerminated,be=V.text,dt=V.reference,_e=V.warning,je=V.textContext,z=V.referenceContext,Be=V.warningContext,De=V.position,Lt=V.indent||[],tr=P.length,Ue=0,hn=-1,ye=De.column||1,zt=De.line||1,Ve="",rr=[],We,nr,Ge,he,Fe,ue,le,qe,gn,Ra,Pt,Mr,Bt,ut,ai,Lr,mn,Ye,fe;for(typeof q=="string"&&(q=q.charCodeAt(0)),Lr=zr(),qe=_e?Au:u,Ue--,tr++;++Ue65535&&(ue-=65536,Ra+=d(ue>>>10|55296),ue=56320|ue&1023),ue=Ra+d(ue))):ut!==I&&qe(L,Ye)),ue?(oi(),Lr=zr(),Ue=fe-1,ye+=fe-Bt+1,rr.push(ue),mn=zr(),mn.offset++,dt&&dt.call(z,ue,{start:Lr,end:mn},P.slice(Bt-1,fe)),Lr=mn):(he=P.slice(Bt-1,fe),Ve+=he,ye+=he.length,Ue=fe-1)}else Fe===10&&(zt++,hn++,ye=0),Fe===Fe?(Ve+=d(Fe),ye++):oi();return rr.join("");function zr(){return{line:zt,column:ye,offset:Ue+(De.offset||0)}}function Au(li,ii){var Ia=zr();Ia.column+=ii,Ia.offset+=ii,_e.call(Be,D[li],Ia,li)}function oi(){Ve&&(rr.push(Ve),be&&be.call(je,Ve,{start:Lr,end:zr()}),Ve="")}}function J(P){return P>=55296&&P<=57343||P>1114111}function ee(P){return P>=1&&P<=8||P===11||P>=13&&P<=31||P>=127&&P<=159||P>=64976&&P<=65007||(P&65535)===65535||(P&65535)===65534}}}),oh=j({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,t){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(a){var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,c={},s={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function b(w){return w instanceof d?new d(w.type,b(w.content),w.alias):Array.isArray(w)?w.map(b):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(S){var b=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(b){var w=document.getElementsByTagName("script");for(var C in w)if(w[C].src==b)return w[C]}return null}},isActive:function(b,w,C){for(var S="no-"+w;b;){var R=b.classList;if(R.contains(w))return!0;if(R.contains(S))return!1;b=b.parentElement}return!!C}},languages:{plain:c,plaintext:c,text:c,txt:c,extend:function(b,w){var C=s.util.clone(s.languages[b]);for(var S in w)C[S]=w[S];return C},insertBefore:function(b,w,C,S){S=S||s.languages;var R=S[b],I={};for(var _ in R)if(R.hasOwnProperty(_)){if(_==w)for(var k in C)C.hasOwnProperty(k)&&(I[k]=C[k]);C.hasOwnProperty(_)||(I[_]=R[_])}var $=S[b];return S[b]=I,s.languages.DFS(s.languages,function(O,T){T===$&&O!=b&&(this[O]=I)}),I},DFS:function b(w,C,S,R){R=R||{};var I=s.util.objId;for(var _ in w)if(w.hasOwnProperty(_)){C.call(w,_,w[_],S||_);var k=w[_],$=s.util.type(k);$==="Object"&&!R[I(k)]?(R[I(k)]=!0,b(k,C,null,R)):$==="Array"&&!R[I(k)]&&(R[I(k)]=!0,b(k,C,_,R))}}},plugins:{},highlightAll:function(b,w){s.highlightAllUnder(document,b,w)},highlightAllUnder:function(b,w,C){var S={callback:C,container:b,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),s.hooks.run("before-all-elements-highlight",S);for(var R=0,I;I=S.elements[R++];)s.highlightElement(I,w===!0,S.callback)},highlightElement:function(b,w,C){var S=s.util.getLanguage(b),R=s.languages[S];s.util.setLanguage(b,S);var I=b.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,S);var _=b.textContent,k={element:b,language:S,grammar:R,code:_};function $(T){k.highlightedCode=T,s.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,s.hooks.run("after-highlight",k),s.hooks.run("complete",k),C&&C.call(k.element)}if(s.hooks.run("before-sanity-check",k),I=k.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!k.code){s.hooks.run("complete",k),C&&C.call(k.element);return}if(s.hooks.run("before-highlight",k),!k.grammar){$(s.util.encode(k.code));return}if(w&&a.Worker){var O=new Worker(s.filename);O.onmessage=function(T){$(T.data)},O.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else $(s.highlight(k.code,k.grammar,k.language))},highlight:function(b,w,C){var S={code:b,grammar:w,language:C};if(s.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=s.tokenize(S.code,S.grammar),s.hooks.run("after-tokenize",S),d.stringify(s.util.encode(S.tokens),S.language)},tokenize:function(b,w){var C=w.rest;if(C){for(var S in C)w[S]=C[S];delete w.rest}var R=new m;return p(R,R.head,b),h(b,R,w,R.head,0),g(R)},hooks:{all:{},add:function(b,w){var C=s.hooks.all;C[b]=C[b]||[],C[b].push(w)},run:function(b,w){var C=s.hooks.all[b];if(!(!C||!C.length))for(var S=0,R;R=C[S++];)R(w)}},Token:d};a.Prism=s;function d(b,w,C,S){this.type=b,this.content=w,this.alias=C,this.length=(S||"").length|0}d.stringify=function b(w,C){if(typeof w=="string")return w;if(Array.isArray(w)){var S="";return w.forEach(function($){S+=b($,C)}),S}var R={type:w.type,content:b(w.content,C),tag:"span",classes:["token",w.type],attributes:{},language:C},I=w.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(R.classes,I):R.classes.push(I)),s.hooks.run("wrap",R);var _="";for(var k in R.attributes)_+=" "+k+'="'+(R.attributes[k]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+_+">"+R.content+""};function u(b,w,C,S){b.lastIndex=w;var R=b.exec(C);if(R&&S&&R[1]){var I=R[1].length;R.index+=I,R[0]=R[0].slice(I)}return R}function h(b,w,C,S,R,I){for(var _ in C)if(!(!C.hasOwnProperty(_)||!C[_])){var k=C[_];k=Array.isArray(k)?k:[k];for(var $=0;$=I.reach);D+=B.value.length,B=B.next){var Q=B.value;if(w.length>b.length)return;if(!(Q instanceof d)){var oe=1,J;if(M){if(J=u(U,D,b,H),!J||J.index>=b.length)break;var q=J.index,ee=J.index+J[0].length,P=D;for(P+=B.value.length;q>=P;)B=B.next,P+=B.value.length;if(P-=B.value.length,D=P,B.value instanceof d)continue;for(var V=B;V!==w.tail&&(PI.reach&&(I.reach=_e);var je=B.prev;be&&(je=p(w,je,be),D+=be.length),v(w,je,oe);var z=new d(_,T?s.tokenize(de,T):de,L,de);if(B=p(w,je,z),dt&&p(w,B,dt),oe>1){var Be={cause:_+","+$,reach:_e};h(b,w,C,B.prev,D,Be),I&&Be.reach>I.reach&&(I.reach=Be.reach)}}}}}}function m(){var b={value:null,prev:null,next:null},w={value:null,prev:b,next:null};b.next=w,this.head=b,this.tail=w,this.length=0}function p(b,w,C){var S=w.next,R={value:C,prev:w,next:S};return w.next=R,S.prev=R,b.length++,R}function v(b,w,C){for(var S=w.next,R=0;R>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+l),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+l),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:c},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:c},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:c.entity}}],environment:{pattern:RegExp("\\$?"+l),alias:"constant"},variable:c.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=a.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=c.variable[1].inside,u=0;u/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}a.languages.insertBefore("javascript","keyword",{imports:{pattern:l(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:l(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:l(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],c=0;c0)){var g=d(/^\{$/,/^\}$/);if(g===-1)continue;for(var y=i;y=0&&u(x,"variable-input")}}}}})}}});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(r=>uh(r,t))}function Ir(...e){return o.useCallback(Qs(...e),e)}const sn=o.forwardRef((e,t)=>{const{children:r,...n}=e,a=o.Children.toArray(r),l=a.find(ph);if(l){const i=l.props.children,c=a.map(s=>s===l?o.Children.count(i)>1?o.Children.only(null):o.isValidElement(i)?i.props.children:null:s);return o.createElement(wo,Z({},n,{ref:t}),o.isValidElement(i)?o.cloneElement(i,void 0,c):null)}return o.createElement(wo,Z({},n,{ref:t}),r)});sn.displayName="Slot";const wo=o.forwardRef((e,t)=>{const{children:r,...n}=e;return o.isValidElement(r)?o.cloneElement(r,{...hh(n,r.props),ref:t?Qs(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});wo.displayName="SlotClone";const fh=({children:e})=>o.createElement(o.Fragment,null,e);function ph(e){return o.isValidElement(e)&&e.type===fh}function hh(e,t){const r={...t};for(const n in t){const a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...c)=>{l(...c),a(...c)}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}const{logger:gh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:mh}=__STORYBOOK_MODULE_GLOBAL__;var vh=Ie(Ws()),bh=vh.default,yh=Ie(ih()),wh=yh.default,xh=Ie(Gs()),Eh=xh.default,Ch=Ie(sh()),Sh=Ch.default,Rh=Ie(ch()),Ih=Rh.default,Ah=Ie(dh()),_h=Ah.default,kh=Ie(qs()),$h=kh.default,Oh=Ie(O5()),Th=Oh.default,Mh=Ie(T5()),Lh=Mh.default,zh=Ie(M5()),Ph=zh.default,Bh=Ie(Vs()),Fh=Bh.default;function Hh(e,t){if(e==null)return{};var r=ll(e,t),n,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Fa={};function Yh(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Fa[t]||(Fa[t]=qh(e)),Fa[t]}function Kh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(l){return l!=="token"}),a=Yh(n);return a.reduce(function(l,i){return dr(dr({},l),r[i])},t)}function Mi(e){return e.join(" ")}function Xh(e,t){var r=0;return function(n){return r+=1,n.map(function(a,l){return dl({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(l)})})}}function dl(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,l=e.useInlineStyles,i=e.key,c=t.properties,s=t.type,d=t.tagName,u=t.value;if(s==="text")return u;if(d){var h=Xh(r,l),m;if(!l)m=dr(dr({},c),{},{className:Mi(c.className)});else{var p=Object.keys(r).reduce(function(x,E){return E.split(".").forEach(function(b){x.includes(b)||x.push(b)}),x},[]),v=c.className&&c.className.includes("token")?["token"]:[],g=c.className&&v.concat(c.className.filter(function(x){return!p.includes(x)}));m=dr(dr({},c),{},{className:Mi(g)||void 0,style:Kh(c.className,Object.assign({},c.style,a),r)})}var y=h(t.children);return f.createElement(d,Y({key:i},m),y)}}var Zh=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},Jh=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Ln({children:C,lineNumber:S,lineNumberStyle:c,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:R,showLineNumbers:n,wrapLongLines:s})}function g(C,S){if(n&&S&&a){var R=rc(c,S,i);C.unshift(tc(S,R))}return C}function y(C,S){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?v(C,S,R):g(C,S)}for(var x=function(){var C=u[p],S=C.children[0].value,R=eg(S);if(R){var I=S.split(` +`);I.forEach(function(_,k){var $=n&&h.length+l,O={type:"text",value:"".concat(_,` +`)};if(k===0){var T=u.slice(m+1,p).concat(Ln({children:[O],className:C.properties.className})),H=y(T,$);h.push(H)}else if(k===I.length-1){var M=u[p+1]&&u[p+1].children&&u[p+1].children[0],L={type:"text",value:"".concat(_)};if(M){var N=Ln({children:[L],className:C.properties.className});u.splice(p+1,0,N)}else{var U=[L],B=y(U,$,C.properties.className);h.push(B)}}else{var D=[O],Q=y(D,$,C.properties.className);h.push(Q)}}),m=p}p++};p({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),oc=A.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});oc.displayName="ActionButton";var hl=({actionItems:e,...t})=>f.createElement(sg,{...t},e.map(({title:r,className:n,onClick:a,disabled:l},i)=>f.createElement(oc,{key:i,className:n,onClick:a,disabled:l},r))),cg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],cn=cg.reduce((e,t)=>{let r=o.forwardRef((n,a)=>{let{asChild:l,...i}=n,c=l?sn:t;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(c,Y({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dg(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ug(...e){return t=>e.forEach(r=>dg(r,t))}function Jt(...e){return o.useCallback(ug(...e),e)}var Eo=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{};function fg(e,t){return o.useReducer((r,n)=>t[r][n]??r,e)}var dn=e=>{let{present:t,children:r}=e,n=pg(t),a=typeof r=="function"?r({present:n.isPresent}):o.Children.only(r),l=Jt(n.ref,a.ref);return typeof r=="function"||n.isPresent?o.cloneElement(a,{ref:l}):null};dn.displayName="Presence";function pg(e){let[t,r]=o.useState(),n=o.useRef({}),a=o.useRef(e),l=o.useRef("none"),i=e?"mounted":"unmounted",[c,s]=fg(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{let d=yn(n.current);l.current=c==="mounted"?d:"none"},[c]),Eo(()=>{let d=n.current,u=a.current;if(u!==e){let h=l.current,m=yn(d);e?s("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?s("UNMOUNT"):s(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Eo(()=>{if(t){let d=h=>{let m=yn(n.current).includes(h.animationName);h.target===t&&m&&ea.flushSync(()=>s("ANIMATION_END"))},u=h=>{h.target===t&&(l.current=yn(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function yn(e){return(e==null?void 0:e.animationName)||"none"}function hg(e,t=[]){let r=[];function n(l,i){let c=o.createContext(i),s=r.length;r=[...r,i];function d(h){let{scope:m,children:p,...v}=h,g=(m==null?void 0:m[e][s])||c,y=o.useMemo(()=>v,Object.values(v));return o.createElement(g.Provider,{value:y},p)}function u(h,m){let p=(m==null?void 0:m[e][s])||c,v=o.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${l}\``)}return d.displayName=l+"Provider",[d,u]}let a=()=>{let l=r.map(i=>o.createContext(i));return function(i){let c=(i==null?void 0:i[e])||l;return o.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return a.scopeName=e,[n,gg(a,...t)]}function gg(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let l=n.reduce((i,{useScope:c,scopeName:s})=>{let d=c(a)[`__scope${s}`];return{...i,...d}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Dt(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}var mg=o.createContext(void 0);function vg(e){let t=o.useContext(mg);return e||t||"ltr"}function bg(e,[t,r]){return Math.min(r,Math.max(t,e))}function Wt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function yg(e,t){return o.useReducer((r,n)=>t[r][n]??r,e)}var lc="ScrollArea",[ic,J$]=hg(lc),[wg,ze]=ic(lc),xg=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:l=600,...i}=e,[c,s]=o.useState(null),[d,u]=o.useState(null),[h,m]=o.useState(null),[p,v]=o.useState(null),[g,y]=o.useState(null),[x,E]=o.useState(0),[b,w]=o.useState(0),[C,S]=o.useState(!1),[R,I]=o.useState(!1),_=Jt(t,$=>s($)),k=vg(a);return o.createElement(wg,{scope:r,type:n,dir:k,scrollHideDelay:l,scrollArea:c,viewport:d,onViewportChange:u,content:h,onContentChange:m,scrollbarX:p,onScrollbarXChange:v,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:R,onScrollbarYEnabledChange:I,onCornerWidthChange:E,onCornerHeightChange:w},o.createElement(cn.div,Y({dir:k},i,{ref:_,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),Eg="ScrollAreaViewport",Cg=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,...a}=e,l=ze(Eg,r),i=o.useRef(null),c=Jt(t,i,l.onViewportChange);return o.createElement(o.Fragment,null,o.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),o.createElement(cn.div,Y({"data-radix-scroll-area-viewport":""},a,{ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style}}),o.createElement("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),mt="ScrollAreaScrollbar",Sg=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(mt,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=a,c=e.orientation==="horizontal";return o.useEffect(()=>(c?l(!0):i(!0),()=>{c?l(!1):i(!1)}),[c,l,i]),a.type==="hover"?o.createElement(Rg,Y({},n,{ref:t,forceMount:r})):a.type==="scroll"?o.createElement(Ig,Y({},n,{ref:t,forceMount:r})):a.type==="auto"?o.createElement(sc,Y({},n,{ref:t,forceMount:r})):a.type==="always"?o.createElement(gl,Y({},n,{ref:t})):null}),Rg=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(mt,e.__scopeScrollArea),[l,i]=o.useState(!1);return o.useEffect(()=>{let c=a.scrollArea,s=0;if(c){let d=()=>{window.clearTimeout(s),i(!0)},u=()=>{s=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",u),()=>{window.clearTimeout(s),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),o.createElement(dn,{present:r||l},o.createElement(sc,Y({"data-state":l?"visible":"hidden"},n,{ref:t})))}),Ig=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(mt,e.__scopeScrollArea),l=e.orientation==="horizontal",i=pa(()=>s("SCROLL_END"),100),[c,s]=yg("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return o.useEffect(()=>{if(c==="idle"){let d=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,a.scrollHideDelay,s]),o.useEffect(()=>{let d=a.viewport,u=l?"scrollLeft":"scrollTop";if(d){let h=d[u],m=()=>{let p=d[u];h!==p&&(s("SCROLL"),i()),h=p};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[a.viewport,l,s,i]),o.createElement(dn,{present:r||c!=="hidden"},o.createElement(gl,Y({"data-state":c==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:Wt(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Wt(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),sc=o.forwardRef((e,t)=>{let r=ze(mt,e.__scopeScrollArea),{forceMount:n,...a}=e,[l,i]=o.useState(!1),c=e.orientation==="horizontal",s=pa(()=>{if(r.viewport){let d=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,a=ze(mt,e.__scopeScrollArea),l=o.useRef(null),i=o.useRef(0),[c,s]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=fc(c.viewport,c.content),u={...n,sizes:c,onSizesChange:s,hasThumb:d>0&&d<1,onThumbChange:m=>l.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function h(m,p){return Lg(m,i.current,c,p)}return r==="horizontal"?o.createElement(Ag,Y({},u,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let m=a.viewport.scrollLeft,p=zi(m,c,a.dir);l.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:m=>{a.viewport&&(a.viewport.scrollLeft=m)},onDragScroll:m=>{a.viewport&&(a.viewport.scrollLeft=h(m,a.dir))}})):r==="vertical"?o.createElement(_g,Y({},u,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let m=a.viewport.scrollTop,p=zi(m,c);l.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:m=>{a.viewport&&(a.viewport.scrollTop=m)},onDragScroll:m=>{a.viewport&&(a.viewport.scrollTop=h(m))}})):null}),Ag=o.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=ze(mt,e.__scopeScrollArea),[i,c]=o.useState(),s=o.useRef(null),d=Jt(t,s,l.onScrollbarXChange);return o.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),o.createElement(dc,Y({"data-orientation":"horizontal"},a,{ref:d,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":fa(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,h)=>{if(l.viewport){let m=l.viewport.scrollLeft+u.deltaX;e.onWheelScroll(m),hc(m,h)&&u.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Wn(i.paddingLeft),paddingEnd:Wn(i.paddingRight)}})}}))}),_g=o.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=ze(mt,e.__scopeScrollArea),[i,c]=o.useState(),s=o.useRef(null),d=Jt(t,s,l.onScrollbarYChange);return o.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),o.createElement(dc,Y({"data-orientation":"vertical"},a,{ref:d,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":fa(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,h)=>{if(l.viewport){let m=l.viewport.scrollTop+u.deltaY;e.onWheelScroll(m),hc(m,h)&&u.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Wn(i.paddingTop),paddingEnd:Wn(i.paddingBottom)}})}}))}),[kg,cc]=ic(mt),dc=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:c,onThumbPositionChange:s,onDragScroll:d,onWheelScroll:u,onResize:h,...m}=e,p=ze(mt,r),[v,g]=o.useState(null),y=Jt(t,_=>g(_)),x=o.useRef(null),E=o.useRef(""),b=p.viewport,w=n.content-n.viewport,C=Dt(u),S=Dt(s),R=pa(h,10);function I(_){if(x.current){let k=_.clientX-x.current.left,$=_.clientY-x.current.top;d({x:k,y:$})}}return o.useEffect(()=>{let _=k=>{let $=k.target;v!=null&&v.contains($)&&C(k,w)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[b,v,w,C]),o.useEffect(S,[n,S]),mr(v,R),mr(p.content,R),o.createElement(kg,{scope:r,scrollbar:v,hasThumb:a,onThumbChange:Dt(l),onThumbPointerUp:Dt(i),onThumbPositionChange:S,onThumbPointerDown:Dt(c)},o.createElement(cn.div,Y({},m,{ref:y,style:{position:"absolute",...m.style},onPointerDown:Wt(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),x.current=v.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),I(_))}),onPointerMove:Wt(e.onPointerMove,I),onPointerUp:Wt(e.onPointerUp,_=>{let k=_.target;k.hasPointerCapture(_.pointerId)&&k.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=E.current,p.viewport&&(p.viewport.style.scrollBehavior=""),x.current=null})})))}),Co="ScrollAreaThumb",$g=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=cc(Co,e.__scopeScrollArea);return o.createElement(dn,{present:r||a.hasThumb},o.createElement(Og,Y({ref:t},n)))}),Og=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,l=ze(Co,r),i=cc(Co,r),{onThumbPositionChange:c}=i,s=Jt(t,h=>i.onThumbChange(h)),d=o.useRef(),u=pa(()=>{d.current&&(d.current(),d.current=void 0)},100);return o.useEffect(()=>{let h=l.viewport;if(h){let m=()=>{if(u(),!d.current){let p=zg(h,c);d.current=p,c()}};return c(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[l.viewport,u,c]),o.createElement(cn.div,Y({"data-state":i.hasThumb?"visible":"hidden"},a,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Wt(e.onPointerDownCapture,h=>{let m=h.target.getBoundingClientRect(),p=h.clientX-m.left,v=h.clientY-m.top;i.onThumbPointerDown({x:p,y:v})}),onPointerUp:Wt(e.onPointerUp,i.onThumbPointerUp)}))}),uc="ScrollAreaCorner",Tg=o.forwardRef((e,t)=>{let r=ze(uc,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?o.createElement(Mg,Y({},e,{ref:t})):null}),Mg=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=ze(uc,r),[l,i]=o.useState(0),[c,s]=o.useState(0),d=!!(l&&c);return mr(a.scrollbarX,()=>{var u;let h=((u=a.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;a.onCornerHeightChange(h),s(h)}),mr(a.scrollbarY,()=>{var u;let h=((u=a.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;a.onCornerWidthChange(h),i(h)}),d?o.createElement(cn.div,Y({},n,{ref:t,style:{width:l,height:c,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Wn(e){return e?parseInt(e,10):0}function fc(e,t){let r=e/t;return isNaN(r)?0:r}function fa(e){let t=fc(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Lg(e,t,r,n="ltr"){let a=fa(r),l=a/2,i=t||l,c=a-i,s=r.scrollbar.paddingStart+i,d=r.scrollbar.size-r.scrollbar.paddingEnd-c,u=r.content-r.viewport,h=n==="ltr"?[0,u]:[u*-1,0];return pc([s,d],h)(e)}function zi(e,t,r="ltr"){let n=fa(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-a,i=t.content-t.viewport,c=l-n,s=r==="ltr"?[0,i]:[i*-1,0],d=bg(e,s);return pc([0,i],[0,c])(d)}function pc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function hc(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){let l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,c=r.top!==l.top;(i||c)&&t(),r=l,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function pa(e,t){let r=Dt(e),n=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),o.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function mr(e,t){let r=Dt(t);Eo(()=>{let n=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}var Pg=xg,Bg=Cg,Fg=Sg,Hg=$g,Ng=Tg,jg=A(Pg)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),Dg=A(Bg)({width:"100%",height:"100%"}),Pi=A(Fg)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Bi=A(Hg)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),ha=o.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,className:l},i)=>f.createElement(jg,{scrollbarsize:a,offset:n,className:l},f.createElement(Dg,{ref:i},e),t&&f.createElement(Pi,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},f.createElement(Bi,null)),r&&f.createElement(Pi,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},f.createElement(Bi,null)),t&&r&&f.createElement(Ng,null)));ha.displayName="ScrollArea";var{navigator:wn,document:Br,window:Ug}=mh,Vg={jsextra:Sh,jsx:bh,json:Ih,yml:Lh,md:Th,bash:wh,css:Eh,html:$h,tsx:Ph,typescript:Fh,graphql:_h};Object.entries(Vg).forEach(([e,t])=>{pl.registerLanguage(e,t)});var Wg=Zt(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),Gg=gc();function gc(){return wn!=null&&wn.clipboard?e=>wn.clipboard.writeText(e):async e=>{let t=Br.createElement("TEXTAREA"),r=Br.activeElement;t.value=e,Br.body.appendChild(t),t.select(),Br.execCommand("copy"),Br.body.removeChild(t),r.focus()}}var qg=A.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),Yg=({children:e,className:t})=>f.createElement(ha,{horizontal:!0,vertical:!0,className:t},e),Kg=A(Yg)({position:"relative"},({theme:e})=>Wg(e)),Xg=A.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),Zg=A.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),mc=e=>{let t=[...e.children],r=t[0],n=r.children[0].value,a={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=a,{...e,children:t}},Jg=({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,a)=>dl({node:mc(n),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`})),Qg=(e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(a=>mc(a)),...n}):Jg:e,ml=({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:a=!1,format:l=!0,formatter:i=null,className:c=null,showLineNumbers:s=!1,...d})=>{if(typeof e!="string"||!e.trim())return null;let[u,h]=o.useState("");o.useEffect(()=>{i?i(l,e).then(h):h(e.trim())},[e,l,i]);let[m,p]=o.useState(!1),v=o.useCallback(y=>{y.preventDefault(),Gg(u).then(()=>{p(!0),Ug.setTimeout(()=>p(!1),1500)}).catch(gh.error)},[u]),g=Qg(d.renderer,s);return f.createElement(qg,{bordered:n,padded:a,showLineNumbers:s,className:c},f.createElement(Kg,null,f.createElement(pl,{padded:a||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:Xg,CodeTag:Zg,lineNumberContainerStyle:{},...d,renderer:g},u)),r?f.createElement(hl,{actionItems:[{title:m?"Copied":"Copy",onClick:v}]}):null)};ml.registerLanguage=(...e)=>pl.registerLanguage(...e);var Q$=ml;const{global:em}=__STORYBOOK_MODULE_GLOBAL__;var tm=j({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",n=typeof Map=="function",a=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(c,s){if(c===s)return!0;if(c&&s&&typeof c=="object"&&typeof s=="object"){if(c.constructor!==s.constructor)return!1;var d,u,h;if(Array.isArray(c)){if(d=c.length,d!=s.length)return!1;for(u=d;u--!==0;)if(!i(c[u],s[u]))return!1;return!0}var m;if(n&&c instanceof Map&&s instanceof Map){if(c.size!==s.size)return!1;for(m=c.entries();!(u=m.next()).done;)if(!s.has(u.value[0]))return!1;for(m=c.entries();!(u=m.next()).done;)if(!i(u.value[1],s.get(u.value[0])))return!1;return!0}if(a&&c instanceof Set&&s instanceof Set){if(c.size!==s.size)return!1;for(m=c.entries();!(u=m.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(s)){if(d=c.length,d!=s.length)return!1;for(u=d;u--!==0;)if(c[u]!==s[u])return!1;return!0}if(c.constructor===RegExp)return c.source===s.source&&c.flags===s.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof s.valueOf=="function")return c.valueOf()===s.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof s.toString=="function")return c.toString()===s.toString();if(h=Object.keys(c),d=h.length,d!==Object.keys(s).length)return!1;for(u=d;u--!==0;)if(!Object.prototype.hasOwnProperty.call(s,h[u]))return!1;if(r&&c instanceof Element)return!1;for(u=d;u--!==0;)if(!((h[u]==="_owner"||h[u]==="__v"||h[u]==="__o")&&c.$$typeof)&&!i(c[h[u]],s[h[u]]))return!1;return!0}return c!==c&&s!==s}t.exports=function(c,s){try{return i(c,s)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}}}}),Fi=function(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t},{})},Hi=typeof window<"u"&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,xe="top",Me="bottom",Le="right",Ee="left",vl="auto",un=[xe,Me,Le,Ee],vr="start",Jr="end",rm="clippingParents",vc="viewport",Fr="popper",nm="reference",Ni=un.reduce(function(e,t){return e.concat([t+"-"+vr,t+"-"+Jr])},[]),bc=[].concat(un,[vl]).reduce(function(e,t){return e.concat([t,t+"-"+vr,t+"-"+Jr])},[]),am="beforeRead",om="read",lm="afterRead",im="beforeMain",sm="main",cm="afterMain",dm="beforeWrite",um="write",fm="afterWrite",pm=[am,om,lm,im,sm,cm,dm,um,fm];function st(e){return e?(e.nodeName||"").toLowerCase():null}function Re(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kt(e){var t=Re(e).Element;return e instanceof t||e instanceof Element}function Te(e){var t=Re(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bl(e){if(typeof ShadowRoot>"u")return!1;var t=Re(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hm(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},l=t.elements[r];!Te(l)||!st(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(i){var c=a[i];c===!1?l.removeAttribute(i):l.setAttribute(i,c===!0?"":c)}))})}function gm(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],l=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=i.reduce(function(s,d){return s[d]="",s},{});!Te(a)||!st(a)||(Object.assign(a.style,c),Object.keys(l).forEach(function(s){a.removeAttribute(s)}))})}}var mm={name:"applyStyles",enabled:!0,phase:"write",fn:hm,effect:gm,requires:["computeStyles"]};function it(e){return e.split("-")[0]}var Gt=Math.max,Gn=Math.min,br=Math.round;function So(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yc(){return!/^((?!chrome|android).)*safari/i.test(So())}function yr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,l=1;t&&Te(e)&&(a=e.offsetWidth>0&&br(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&br(n.height)/e.offsetHeight||1);var i=Kt(e)?Re(e):window,c=i.visualViewport,s=!yc()&&r,d=(n.left+(s&&c?c.offsetLeft:0))/a,u=(n.top+(s&&c?c.offsetTop:0))/l,h=n.width/a,m=n.height/l;return{width:h,height:m,top:u,right:d+h,bottom:u+m,left:d,x:d,y:u}}function yl(e){var t=yr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function wc(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&bl(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ht(e){return Re(e).getComputedStyle(e)}function vm(e){return["table","td","th"].indexOf(st(e))>=0}function kt(e){return((Kt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return st(e)==="html"?e:e.assignedSlot||e.parentNode||(bl(e)?e.host:null)||kt(e)}function ji(e){return!Te(e)||ht(e).position==="fixed"?null:e.offsetParent}function bm(e){var t=/firefox/i.test(So()),r=/Trident/i.test(So());if(r&&Te(e)){var n=ht(e);if(n.position==="fixed")return null}var a=ga(e);for(bl(a)&&(a=a.host);Te(a)&&["html","body"].indexOf(st(a))<0;){var l=ht(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function fn(e){for(var t=Re(e),r=ji(e);r&&vm(r)&&ht(r).position==="static";)r=ji(r);return r&&(st(r)==="html"||st(r)==="body"&&ht(r).position==="static")?t:r||bm(e)||t}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,r){return Gt(e,Gn(t,r))}function ym(e,t,r){var n=Dr(e,t,r);return n>r?r:n}function xc(){return{top:0,right:0,bottom:0,left:0}}function Ec(e){return Object.assign({},xc(),e)}function Cc(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var wm=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ec(typeof e!="number"?e:Cc(e,un))};function xm(e){var t,r=e.state,n=e.name,a=e.options,l=r.elements.arrow,i=r.modifiersData.popperOffsets,c=it(r.placement),s=wl(c),d=[Ee,Le].indexOf(c)>=0,u=d?"height":"width";if(!(!l||!i)){var h=wm(a.padding,r),m=yl(l),p=s==="y"?xe:Ee,v=s==="y"?Me:Le,g=r.rects.reference[u]+r.rects.reference[s]-i[s]-r.rects.popper[u],y=i[s]-r.rects.reference[s],x=fn(l),E=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-y/2,w=h[p],C=E-m[u]-h[v],S=E/2-m[u]/2+b,R=Dr(w,S,C),I=s;r.modifiersData[n]=(t={},t[I]=R,t.centerOffset=R-S,t)}}function Em(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||wc(t.elements.popper,a)&&(t.elements.arrow=a))}var Cm={name:"arrow",enabled:!0,phase:"main",fn:xm,effect:Em,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wr(e){return e.split("-")[1]}var Sm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rm(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:br(r*a)/a||0,y:br(n*a)/a||0}}function Di(e){var t,r=e.popper,n=e.popperRect,a=e.placement,l=e.variation,i=e.offsets,c=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,m=i.x,p=m===void 0?0:m,v=i.y,g=v===void 0?0:v,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var x=i.hasOwnProperty("x"),E=i.hasOwnProperty("y"),b=Ee,w=xe,C=window;if(d){var S=fn(r),R="clientHeight",I="clientWidth";if(S===Re(r)&&(S=kt(r),ht(S).position!=="static"&&c==="absolute"&&(R="scrollHeight",I="scrollWidth")),S=S,a===xe||(a===Ee||a===Le)&&l===Jr){w=Me;var _=h&&S===C&&C.visualViewport?C.visualViewport.height:S[R];g-=_-n.height,g*=s?1:-1}if(a===Ee||(a===xe||a===Me)&&l===Jr){b=Le;var k=h&&S===C&&C.visualViewport?C.visualViewport.width:S[I];p-=k-n.width,p*=s?1:-1}}var $=Object.assign({position:c},d&&Sm),O=u===!0?Rm({x:p,y:g},Re(r)):{x:p,y:g};if(p=O.x,g=O.y,s){var T;return Object.assign({},$,(T={},T[w]=E?"0":"",T[b]=x?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T))}return Object.assign({},$,(t={},t[w]=E?g+"px":"",t[b]=x?p+"px":"",t.transform="",t))}function Im(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,l=r.adaptive,i=l===void 0?!0:l,c=r.roundOffsets,s=c===void 0?!0:c,d={placement:it(t.placement),variation:wr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Di(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Di(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Am={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Im,data:{}},xn={passive:!0};function _m(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,l=a===void 0?!0:a,i=n.resize,c=i===void 0?!0:i,s=Re(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&d.forEach(function(u){u.addEventListener("scroll",r.update,xn)}),c&&s.addEventListener("resize",r.update,xn),function(){l&&d.forEach(function(u){u.removeEventListener("scroll",r.update,xn)}),c&&s.removeEventListener("resize",r.update,xn)}}var km={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_m,data:{}},$m={left:"right",right:"left",bottom:"top",top:"bottom"};function zn(e){return e.replace(/left|right|bottom|top/g,function(t){return $m[t]})}var Om={start:"end",end:"start"};function Ui(e){return e.replace(/start|end/g,function(t){return Om[t]})}function xl(e){var t=Re(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function El(e){return yr(kt(e)).left+xl(e).scrollLeft}function Tm(e,t){var r=Re(e),n=kt(e),a=r.visualViewport,l=n.clientWidth,i=n.clientHeight,c=0,s=0;if(a){l=a.width,i=a.height;var d=yc();(d||!d&&t==="fixed")&&(c=a.offsetLeft,s=a.offsetTop)}return{width:l,height:i,x:c+El(e),y:s}}function Mm(e){var t,r=kt(e),n=xl(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=Gt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Gt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-n.scrollLeft+El(e),s=-n.scrollTop;return ht(a||r).direction==="rtl"&&(c+=Gt(r.clientWidth,a?a.clientWidth:0)-l),{width:l,height:i,x:c,y:s}}function Cl(e){var t=ht(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Sc(e){return["html","body","#document"].indexOf(st(e))>=0?e.ownerDocument.body:Te(e)&&Cl(e)?e:Sc(ga(e))}function Ur(e,t){var r;t===void 0&&(t=[]);var n=Sc(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),l=Re(n),i=a?[l].concat(l.visualViewport||[],Cl(n)?n:[]):n,c=t.concat(i);return a?c:c.concat(Ur(ga(i)))}function Ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lm(e,t){var r=yr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Vi(e,t,r){return t===vc?Ro(Tm(e,r)):Kt(t)?Lm(t,r):Ro(Mm(kt(e)))}function zm(e){var t=Ur(ga(e)),r=["absolute","fixed"].indexOf(ht(e).position)>=0,n=r&&Te(e)?fn(e):e;return Kt(n)?t.filter(function(a){return Kt(a)&&wc(a,n)&&st(a)!=="body"}):[]}function Pm(e,t,r,n){var a=t==="clippingParents"?zm(e):[].concat(t),l=[].concat(a,[r]),i=l[0],c=l.reduce(function(s,d){var u=Vi(e,d,n);return s.top=Gt(u.top,s.top),s.right=Gn(u.right,s.right),s.bottom=Gn(u.bottom,s.bottom),s.left=Gt(u.left,s.left),s},Vi(e,i,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Rc(e){var t=e.reference,r=e.element,n=e.placement,a=n?it(n):null,l=n?wr(n):null,i=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,s;switch(a){case xe:s={x:i,y:t.y-r.height};break;case Me:s={x:i,y:t.y+t.height};break;case Le:s={x:t.x+t.width,y:c};break;case Ee:s={x:t.x-r.width,y:c};break;default:s={x:t.x,y:t.y}}var d=a?wl(a):null;if(d!=null){var u=d==="y"?"height":"width";switch(l){case vr:s[d]=s[d]-(t[u]/2-r[u]/2);break;case Jr:s[d]=s[d]+(t[u]/2-r[u]/2);break}}return s}function Qr(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,l=r.strategy,i=l===void 0?e.strategy:l,c=r.boundary,s=c===void 0?rm:c,d=r.rootBoundary,u=d===void 0?vc:d,h=r.elementContext,m=h===void 0?Fr:h,p=r.altBoundary,v=p===void 0?!1:p,g=r.padding,y=g===void 0?0:g,x=Ec(typeof y!="number"?y:Cc(y,un)),E=m===Fr?nm:Fr,b=e.rects.popper,w=e.elements[v?E:m],C=Pm(Kt(w)?w:w.contextElement||kt(e.elements.popper),s,u,i),S=yr(e.elements.reference),R=Rc({reference:S,element:b,strategy:"absolute",placement:a}),I=Ro(Object.assign({},b,R)),_=m===Fr?I:S,k={top:C.top-_.top+x.top,bottom:_.bottom-C.bottom+x.bottom,left:C.left-_.left+x.left,right:_.right-C.right+x.right},$=e.modifiersData.offset;if(m===Fr&&$){var O=$[a];Object.keys(k).forEach(function(T){var H=[Le,Me].indexOf(T)>=0?1:-1,M=[xe,Me].indexOf(T)>=0?"y":"x";k[T]+=O[M]*H})}return k}function Bm(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,l=r.rootBoundary,i=r.padding,c=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?bc:s,u=wr(n),h=u?c?Ni:Ni.filter(function(v){return wr(v)===u}):un,m=h.filter(function(v){return d.indexOf(v)>=0});m.length===0&&(m=h);var p=m.reduce(function(v,g){return v[g]=Qr(e,{placement:g,boundary:a,rootBoundary:l,padding:i})[it(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function Fm(e){if(it(e)===vl)return[];var t=zn(e);return[Ui(e),t,Ui(t)]}function Hm(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,l=a===void 0?!0:a,i=r.altAxis,c=i===void 0?!0:i,s=r.fallbackPlacements,d=r.padding,u=r.boundary,h=r.rootBoundary,m=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,g=r.allowedAutoPlacements,y=t.options.placement,x=it(y),E=x===y,b=s||(E||!v?[zn(y)]:Fm(y)),w=[y].concat(b).reduce(function(ee,P){return ee.concat(it(P)===vl?Bm(t,{placement:P,boundary:u,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:g}):P)},[]),C=t.rects.reference,S=t.rects.popper,R=new Map,I=!0,_=w[0],k=0;k=0,M=H?"width":"height",L=Qr(t,{placement:$,boundary:u,rootBoundary:h,altBoundary:m,padding:d}),N=H?T?Le:Ee:T?Me:xe;C[M]>S[M]&&(N=zn(N));var U=zn(N),B=[];if(l&&B.push(L[O]<=0),c&&B.push(L[N]<=0,L[U]<=0),B.every(function(ee){return ee})){_=$,I=!1;break}R.set($,B)}if(I)for(var D=v?3:1,Q=function(ee){var P=w.find(function(V){var q=R.get(V);if(q)return q.slice(0,ee).every(function(de){return de})});if(P)return _=P,"break"},oe=D;oe>0;oe--){var J=Q(oe);if(J==="break")break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}}var Nm={name:"flip",enabled:!0,phase:"main",fn:Hm,requiresIfExists:["offset"],data:{_skip:!1}};function Wi(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Gi(e){return[xe,Le,Me,Ee].some(function(t){return e[t]>=0})}function jm(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,i=Qr(t,{elementContext:"reference"}),c=Qr(t,{altBoundary:!0}),s=Wi(i,n),d=Wi(c,a,l),u=Gi(s),h=Gi(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}var Dm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jm};function Um(e,t,r){var n=it(e),a=[Ee,xe].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=l[0],c=l[1];return i=i||0,c=(c||0)*a,[Ee,Le].indexOf(n)>=0?{x:c,y:i}:{x:i,y:c}}function Vm(e){var t=e.state,r=e.options,n=e.name,a=r.offset,l=a===void 0?[0,0]:a,i=bc.reduce(function(u,h){return u[h]=Um(h,t.rects,l),u},{}),c=i[t.placement],s=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=i}var Wm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vm};function Gm(e){var t=e.state,r=e.name;t.modifiersData[r]=Rc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var qm={name:"popperOffsets",enabled:!0,phase:"read",fn:Gm,data:{}};function Ym(e){return e==="x"?"y":"x"}function Km(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,l=a===void 0?!0:a,i=r.altAxis,c=i===void 0?!1:i,s=r.boundary,d=r.rootBoundary,u=r.altBoundary,h=r.padding,m=r.tether,p=m===void 0?!0:m,v=r.tetherOffset,g=v===void 0?0:v,y=Qr(t,{boundary:s,rootBoundary:d,padding:h,altBoundary:u}),x=it(t.placement),E=wr(t.placement),b=!E,w=wl(x),C=Ym(w),S=t.modifiersData.popperOffsets,R=t.rects.reference,I=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,k=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(l){var T,H=w==="y"?xe:Ee,M=w==="y"?Me:Le,L=w==="y"?"height":"width",N=S[w],U=N+y[H],B=N-y[M],D=p?-I[L]/2:0,Q=E===vr?R[L]:I[L],oe=E===vr?-I[L]:-R[L],J=t.elements.arrow,ee=p&&J?yl(J):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xc(),V=P[H],q=P[M],de=Dr(0,R[L],ee[L]),be=b?R[L]/2-D-de-V-k.mainAxis:Q-de-V-k.mainAxis,dt=b?-R[L]/2+D+de+q+k.mainAxis:oe+de+q+k.mainAxis,_e=t.elements.arrow&&fn(t.elements.arrow),je=_e?w==="y"?_e.clientTop||0:_e.clientLeft||0:0,z=(T=$==null?void 0:$[w])!=null?T:0,Be=N+be-z-je,De=N+dt-z,Lt=Dr(p?Gn(U,Be):U,N,p?Gt(B,De):B);S[w]=Lt,O[w]=Lt-N}if(c){var tr,Ue=w==="x"?xe:Ee,hn=w==="x"?Me:Le,ye=S[C],zt=C==="y"?"height":"width",Ve=ye+y[Ue],rr=ye-y[hn],We=[xe,Ee].indexOf(x)!==-1,nr=(tr=$==null?void 0:$[C])!=null?tr:0,Ge=We?Ve:ye-R[zt]-I[zt]-nr+k.altAxis,he=We?ye+R[zt]+I[zt]-nr-k.altAxis:rr,Fe=p&&We?ym(Ge,ye,he):Dr(p?Ge:Ve,ye,p?he:rr);S[C]=Fe,O[C]=Fe-ye}t.modifiersData[n]=O}}var Xm={name:"preventOverflow",enabled:!0,phase:"main",fn:Km,requiresIfExists:["offset"]};function Zm(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jm(e){return e===Re(e)||!Te(e)?xl(e):Zm(e)}function Qm(e){var t=e.getBoundingClientRect(),r=br(t.width)/e.offsetWidth||1,n=br(t.height)/e.offsetHeight||1;return r!==1||n!==1}function e2(e,t,r){r===void 0&&(r=!1);var n=Te(t),a=Te(t)&&Qm(t),l=kt(t),i=yr(e,a,r),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((st(t)!=="body"||Cl(l))&&(c=Jm(t)),Te(t)?(s=yr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=El(l))),{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function t2(e){var t=new Map,r=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function a(l){r.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(c){if(!r.has(c)){var s=t.get(c);s&&a(s)}}),n.push(l)}return e.forEach(function(l){r.has(l.name)||a(l)}),n}function r2(e){var t=t2(e);return pm.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function n2(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function a2(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qi={placement:"bottom",modifiers:[],strategy:"absolute"};function Yi(){for(var e=arguments.length,t=new Array(e),r=0;rt.split("-")[0]===e?r:n),bt=8,g2=A.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${ke("top",r,`${bt*-1}px`,"auto")}`,top:`${ke("bottom",r,`${bt*-1}px`,"auto")}`,right:`${ke("left",r,`${bt*-1}px`,"auto")}`,left:`${ke("right",r,`${bt*-1}px`,"auto")}`,borderBottomWidth:`${ke("top",r,"0",bt)}px`,borderTopWidth:`${ke("bottom",r,"0",bt)}px`,borderRightWidth:`${ke("left",r,"0",bt)}px`,borderLeftWidth:`${ke("right",r,"0",bt)}px`,borderTopColor:ke("top",r,e.color[t]||t||e.base==="light"?jr(e.background.app):e.background.app,"transparent"),borderBottomColor:ke("bottom",r,e.color[t]||t||e.base==="light"?jr(e.background.app):e.background.app,"transparent"),borderLeftColor:ke("left",r,e.color[t]||t||e.base==="light"?jr(e.background.app):e.background.app,"transparent"),borderRightColor:ke("right",r,e.color[t]||t||e.base==="light"?jr(e.background.app):e.background.app,"transparent")})),m2=A.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647}),({theme:e,color:t,hasChrome:r})=>r?{background:e.color[t]||t||e.base==="light"?jr(e.background.app):e.background.app,filter:` + drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) + drop-shadow(0 1px 3px rgba(0,0,0,0.1)) + `,borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{}),_c=f.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:a,color:l,withArrows:i,...c},s)=>f.createElement(m2,{"data-testid":"tooltip",hasChrome:t,ref:s,...c,color:l},t&&i&&f.createElement(g2,{placement:e,...n,color:l}),r));_c.displayName="Tooltip";var{document:Pn}=em,v2=A.div` + display: inline-block; + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,b2=A.g` + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,y2=({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:a=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:l=!0,defaultVisible:i=!1,withArrows:c,offset:s,tooltip:d,children:u,closeOnTriggerHidden:h,mutationObserverOptions:m,delayHide:p,visible:v,interactive:g,delayShow:y,strategy:x,followCursor:E,onVisibleChange:b,...w})=>{let C=e?b2:v2,{getArrowProps:S,getTooltipProps:R,setTooltipRef:I,setTriggerRef:_,visible:k,state:$}=h2({trigger:t,placement:n,defaultVisible:i,delayHide:p,interactive:g,closeOnOutsideClick:r,closeOnTriggerHidden:h,onVisibleChange:b,delayShow:y,followCursor:E,mutationObserverOptions:m,visible:v,offset:s},{modifiers:a,strategy:x}),O=f.createElement(_c,{placement:$==null?void 0:$.placement,ref:I,hasChrome:l,arrowProps:S(),withArrows:c,...R()},typeof d=="function"?d({onHide:()=>b(!1)}):d);return f.createElement(f.Fragment,null,f.createElement(C,{trigger:t,ref:_,...w},u),k&&os.createPortal(O,Pn.body))},w2=({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=o.useState(e),l=o.useCallback(i=>{t&&t(i)===!1||a(i)},[t]);return o.useEffect(()=>{let i=()=>l(!1);Pn.addEventListener("keydown",i,!1);let c=Array.from(Pn.getElementsByTagName("iframe")),s=[];return c.forEach(d=>{let u=()=>{try{d.contentWindow.document&&(d.contentWindow.document.addEventListener("click",i),s.push(()=>{try{d.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}};u(),d.addEventListener("load",u),s.push(()=>{d.removeEventListener("load",u)})}),()=>{Pn.removeEventListener("keydown",i),s.forEach(d=>{d()})}}),f.createElement(y2,{...r,visible:n,onVisibleChange:l})},x2=[{name:"Images",icons:["PhotoIcon","ComponentIcon","GridIcon","OutlineIcon","PhotoDragIcon","GridAltIcon","SearchIcon","ZoomIcon","ZoomOutIcon","ZoomResetIcon","EyeIcon","EyeCloseIcon","LightningIcon","LightningOffIcon","ContrastIcon","SwitchAltIcon","MirrorIcon","GrowIcon","PaintBrushIcon","RulerIcon","StopIcon","CameraIcon","VideoIcon","SpeakerIcon","PlayIcon","PlayBackIcon","PlayNextIcon","RewindIcon","FastForwardIcon","StopAltIcon","SideBySideIcon","StackedIcon","SunIcon","MoonIcon"]},{name:"Documents",icons:["BookIcon","DocumentIcon","CopyIcon","CategoryIcon","FolderIcon","PrintIcon","GraphLineIcon","CalendarIcon","GraphBarIcon","AlignLeftIcon","AlignRightIcon","FilterIcon","DocChartIcon","DocListIcon","DragIcon","MenuIcon"]},{name:"Editing",icons:["MarkupIcon","BoldIcon","ItalicIcon","PaperClipIcon","ListOrderedIcon","ListUnorderedIcon","ParagraphIcon","MarkdownIcon"]},{name:"Git",icons:["RepoIcon","CommitIcon","BranchIcon","PullRequestIcon","MergeIcon"]},{name:"OS",icons:["AppleIcon","LinuxIcon","UbuntuIcon","WindowsIcon","ChromeIcon"]},{name:"Logos",icons:["StorybookIcon","AzureDevOpsIcon","BitbucketIcon","ChromaticIcon","ComponentDrivenIcon","DiscordIcon","FacebookIcon","FigmaIcon","GDriveIcon","GithubIcon","GitlabIcon","GoogleIcon","GraphqlIcon","MediumIcon","ReduxIcon","TwitterIcon","YoutubeIcon","VSCodeIcon","LinkedinIcon","XIcon"]},{name:"Devices",icons:["BrowserIcon","TabletIcon","MobileIcon","WatchIcon","SidebarIcon","SidebarAltIcon","SidebarAltToggleIcon","SidebarToggleIcon","BottomBarIcon","BottomBarToggleIcon","CPUIcon","DatabaseIcon","MemoryIcon","StructureIcon","BoxIcon","PowerIcon"]},{name:"CRUD",icons:["EditIcon","CogIcon","NutIcon","WrenchIcon","EllipsisIcon","WandIcon","CheckIcon","FormIcon","BatchDenyIcon","BatchAcceptIcon","ControlsIcon","PlusIcon","CloseAltIcon","CrossIcon","TrashIcon","PinAltIcon","UnpinIcon","AddIcon","SubtractIcon","CloseIcon","DeleteIcon","PassedIcon","ChangedIcon","FailedIcon","ClearIcon","CommentIcon","CommentAddIcon","RequestChangeIcon","CommentsIcon","ChatIcon","LockIcon","UnlockIcon","KeyIcon","OutboxIcon","CreditIcon","ButtonIcon","TypeIcon","PointerDefaultIcon","PointerHandIcon","CommandIcon"]},{name:"Communicate",icons:["InfoIcon","QuestionIcon","SupportIcon","AlertIcon","AlertAltIcon","EmailIcon","PhoneIcon","LinkIcon","LinkBrokenIcon","BellIcon","RSSIcon","ShareAltIcon","ShareIcon","JumpToIcon","CircleHollowIcon","CircleIcon","BookmarkHollowIcon","BookmarkIcon","DiamondIcon","HeartHollowIcon","HeartIcon","StarHollowIcon","StarIcon","CertificateIcon","VerifiedIcon","ThumbsUpIcon","ShieldIcon","BasketIcon","BeakerIcon","HourglassIcon","FlagIcon","CloudHollowIcon","CloudIcon","StickerIcon"]},{name:"Wayfinding",icons:["ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronSmallUpIcon","ChevronSmallDownIcon","ChevronSmallLeftIcon","ChevronSmallRightIcon","ArrowUpIcon","ArrowDownIcon","ArrowLeftIcon","ArrowRightIcon","ArrowTopLeftIcon","ArrowTopRightIcon","ArrowBottomLeftIcon","ArrowBottomRightIcon","ArrowSolidUpIcon","ArrowSolidDownIcon","ArrowSolidLeftIcon","ArrowSolidRightIcon","ExpandAltIcon","CollapseIcon","ExpandIcon","UnfoldIcon","TransferIcon","RedirectIcon","UndoIcon","ReplyIcon","SyncIcon","UploadIcon","DownloadIcon","BackIcon","ProceedIcon","RefreshIcon","GlobeIcon","CompassIcon","LocationIcon","PinIcon","TimeIcon","DashboardIcon","TimerIcon","HomeIcon","AdminIcon","DirectionIcon"]},{name:"People",icons:["UserIcon","UserAltIcon","UserAddIcon","UsersIcon","ProfileIcon","FaceHappyIcon","FaceNeutralIcon","FaceSadIcon","AccessibilityIcon","AccessibilityAltIcon"]}],E2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:e}))),C2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",fill:e}))),S2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",fill:e}))),R2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",fill:e}))),I2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",fill:e}),o.createElement("path",{d:"M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",fill:e}))),A2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",fill:e}))),_2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),kc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),$c=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),Oc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),Tc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),Mc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),o.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),k2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",fill:e}))),Lc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),$2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:e}))),O2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",fill:e}))),T2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",fill:e}))),M2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",fill:e}),o.createElement("path",{d:"M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",fill:e}))),L2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",fill:e}))),z2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",fill:e}))),P2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),B2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",fill:e}))),zc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:e}))),F2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",fill:e}),o.createElement("path",{d:"M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",fill:e}),o.createElement("path",{d:"M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",fill:e}))),H2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),N2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",fill:e}))),j2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",fill:e}))),D2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",fill:e}))),U2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",fill:e}))),V2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:e}))),W2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",fill:e}))),G2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",fill:e}))),q2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3492)",fill:e},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"}),o.createElement("path",{d:"M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3492"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Y2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3493)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.335.047l-.15-.015a7.499 7.499 0 106.14 10.577c.103-.229-.156-.447-.386-.346a5.393 5.393 0 01-.771.27A5.356 5.356 0 019.153.691C9.37.568 9.352.23 9.106.175a7.545 7.545 0 00-.77-.128zM6.977 1.092a6.427 6.427 0 005.336 10.671A6.427 6.427 0 116.977 1.092z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3493"},o.createElement("path",{fill:"#fff",transform:"scale(1.07124)",d:"M0 0h14.001v14.002H0z"}))))),K2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",fill:e}))),qn=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),X2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),Z2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",fill:e}))),J2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",fill:e}))),Q2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",fill:e}))),e4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",fill:e}))),t4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",fill:e}))),r4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",fill:e}))),n4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",fill:e}))),a4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",fill:e}))),o4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}))),l4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",fill:e}))),i4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",fill:e}))),s4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",fill:e}))),c4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",fill:e}))),d4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),u4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",fill:e}))),f4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z",fill:e}))),p4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",fill:e}))),h4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",fill:e}))),g4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",fill:e}))),m4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:e}))),v4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",fill:e}))),b4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",fill:e}))),y4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",fill:e}))),w4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),x4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),E4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),C4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",fill:e}))),S4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",fill:e}))),R4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3497)",fill:e},o.createElement("path",{d:"M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3497"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),I4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",fill:e}))),A4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3496)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3496"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),_4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e}))),k4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3503)"},o.createElement("path",{d:"M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3503"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),$4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",fill:e}))),O4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",fill:e}))),T4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",fill:e}))),M4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",fill:e}))),L4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",fill:e}))),z4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",fill:e}))),P4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",fill:e}))),B4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",fill:e}))),F4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",fill:e}))),H4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",fill:e}))),N4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",fill:e}))),j4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",fill:e}))),D4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",fill:e}))),U4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",fill:e}))),V4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",fill:e}))),W4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",fill:e}))),G4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",fill:e}))),q4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z",fill:e}))),Y4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),K4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",fill:e}))),X4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",fill:e}))),Z4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}))),J4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",fill:e}))),Q4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",fill:e}))),ev=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",fill:e}))),tv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",fill:e}))),rv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",fill:e}))),nv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",fill:e}))),av=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",fill:e}))),ov=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",fill:e}))),lv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",fill:e}))),iv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",fill:e}))),sv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",fill:e}))),cv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z",fill:e}),o.createElement("path",{d:"M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",fill:e}))),dv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),uv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:e}))),fv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",fill:e}))),pv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),hv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:e}))),gv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:e}))),mv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),vv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",fill:e}),o.createElement("path",{d:"M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",fill:e}))),bv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),yv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),wv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",fill:e}))),xv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6h-6a.5.5 0 000 1h6v6a.5.5 0 001 0v-6h6a.5.5 0 000-1h-6v-6z",fill:e}))),Ev=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",fill:e}))),Pc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),Cv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",fill:e}))),Sv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3502)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3502"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Rv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3501)",fill:e},o.createElement("path",{d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3501"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Bc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Fc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Iv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Av=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",fill:e}))),_v=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),kv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}))),$v=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),Ov=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",fill:e}))),Tv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",fill:e}))),Mv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),Lv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),zv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",fill:e}))),Pv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",fill:e}))),Bv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:e}))),Fv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3614)",fill:e},o.createElement("path",{d:"M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3614"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Hv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11 4a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",fill:e}))),Nv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",fill:e}),o.createElement("path",{d:"M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",fill:e}))),jv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",fill:e}))),Dv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",fill:e}),o.createElement("path",{d:"M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",fill:e}))),Uv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{d:"M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",fill:e}))),Vv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",fill:e}))),Wv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",fill:e}))),Gv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",fill:e}))),qv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Yv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Kv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:e}))),Xv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),Zv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",fill:e}))),Jv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",fill:e}))),Qv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",fill:e}))),Hc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),o.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),e3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",fill:e}))),t3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",fill:e}))),r3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{d:"M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",fill:e}))),n3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),o.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),a3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",fill:e}),o.createElement("path",{d:"M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",fill:e}))),o3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",fill:e}),o.createElement("path",{d:"M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",fill:e}))),l3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",fill:e}))),i3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M14 7A7 7 0 110 7a7 7 0 0114 0z",fill:e}))),s3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",fill:e}))),c3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",fill:e}))),d3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1449_588)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1449_588"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),u3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",fill:e}))),f3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",fill:e}))),p3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",fill:e}))),h3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",fill:e}))),g3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",fill:e}))),m3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),v3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),b3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",fill:e}))),y3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",fill:e}),o.createElement("path",{d:"M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",fill:e}),o.createElement("path",{d:"M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",fill:e}))),w3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 4V2h1.5v4.134l.067.116L8.827 8H5.173l1.01-1.75.067-.116V6zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",fill:e}))),x3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",fill:e}))),E3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",fill:e}))),C3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",fill:e}))),S3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",fill:e}))),R3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",fill:e}))),I3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",fill:e}))),Nc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),A3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:e}))),Sl=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),jc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),Rl=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),_3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),k3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),$3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",fill:e}))),O3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",fill:e}))),T3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",fill:e}))),M3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",fill:e}))),L3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.904 8.768V2.404a.5.5 0 01.5-.5h6.364a.5.5 0 110 1H3.61l8.339 8.339a.5.5 0 01-.707.707l-8.34-8.34v5.158a.5.5 0 01-1 0z",fill:e}))),z3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.096 8.768V2.404a.5.5 0 00-.5-.5H5.232a.5.5 0 100 1h5.157L2.05 11.243a.5.5 0 10.707.707l8.34-8.34v5.158a.5.5 0 101 0z",fill:e}))),P3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.904 5.232v6.364a.5.5 0 00.5.5h6.364a.5.5 0 000-1H3.61l8.339-8.339a.5.5 0 00-.707-.707l-8.34 8.34V5.231a.5.5 0 00-1 0z",fill:e}))),B3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.096 5.232v6.364a.5.5 0 01-.5.5H5.232a.5.5 0 010-1h5.157L2.05 2.757a.5.5 0 01.707-.707l8.34 8.34V5.231a.5.5 0 111 0z",fill:e}))),F3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",fill:e}))),H3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",fill:e}))),N3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",fill:e}))),j3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",fill:e}))),D3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:e}))),U3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:e}))),V3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",fill:e}))),W3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",fill:e}),o.createElement("path",{d:"M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",fill:e}),o.createElement("path",{d:"M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",fill:e}))),G3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:e}))),q3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",fill:e}))),Dc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),Y3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",fill:e}))),K3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),X3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Z3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",fill:e}))),J3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",fill:e}))),Q3=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",fill:e}))),e7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),t7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",fill:e}))),r7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),n7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:e}))),a7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",fill:e}))),o7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),l7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",fill:e}))),i7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:e}))),s7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",fill:e}))),c7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",fill:e}),o.createElement("path",{d:"M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",fill:e}))),d7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3594)"},o.createElement("path",{d:"M11.451.537l.01 12.922h0L7.61 8.946a1.077 1.077 0 00-.73-.374L.964 8.087 11.45.537h0z",stroke:e,strokeWidth:1.077})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3594"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),u7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:e}))),f7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",fill:e}))),p7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",fill:e}))),h7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",fill:e}),o.createElement("path",{d:"M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",fill:e}))),g7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",fill:e}))),m7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),v7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),b7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),y7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e}),o.createElement("path",{d:"M7 4.5a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),w7=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e})));const x7=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityAltIcon:w7,AccessibilityIcon:y7,AddIcon:Bc,AdminIcon:c7,AlertAltIcon:Zv,AlertIcon:Xv,AlignLeftIcon:n4,AlignRightIcon:a4,AppleIcon:C4,ArrowBottomLeftIcon:P3,ArrowBottomRightIcon:B3,ArrowDownIcon:O3,ArrowLeftIcon:T3,ArrowRightIcon:M3,ArrowSolidDownIcon:H3,ArrowSolidLeftIcon:N3,ArrowSolidRightIcon:j3,ArrowSolidUpIcon:F3,ArrowTopLeftIcon:L3,ArrowTopRightIcon:z3,ArrowUpIcon:$3,AzureDevOpsIcon:k4,BackIcon:J3,BasketIcon:y3,BatchAcceptIcon:yv,BatchDenyIcon:bv,BeakerIcon:w3,BellIcon:t3,BitbucketIcon:$4,BoldIcon:u4,BookIcon:K2,BookmarkHollowIcon:s3,BookmarkIcon:c3,BottomBarIcon:rv,BottomBarToggleIcon:nv,BoxIcon:sv,BranchIcon:w4,BrowserIcon:Y4,ButtonIcon:Dv,CPUIcon:av,CalendarIcon:t4,CameraIcon:B2,CategoryIcon:Z2,CertificateIcon:g3,ChangedIcon:kv,ChatIcon:Pv,CheckIcon:mv,ChevronDownIcon:Nc,ChevronLeftIcon:A3,ChevronRightIcon:Sl,ChevronSmallDownIcon:Rl,ChevronSmallLeftIcon:_3,ChevronSmallRightIcon:k3,ChevronSmallUpIcon:jc,ChevronUpIcon:I3,ChromaticIcon:O4,ChromeIcon:A4,CircleHollowIcon:l3,CircleIcon:i3,ClearIcon:Ov,CloseAltIcon:Ev,CloseIcon:Iv,CloudHollowIcon:C3,CloudIcon:S3,CogIcon:uv,CollapseIcon:U3,CommandIcon:Gv,CommentAddIcon:Mv,CommentIcon:Tv,CommentsIcon:zv,CommitIcon:y4,CompassIcon:r7,ComponentDrivenIcon:T4,ComponentIcon:C2,ContrastIcon:$2,ControlsIcon:wv,CopyIcon:X2,CreditIcon:jv,CrossIcon:Pc,DashboardIcon:l7,DatabaseIcon:ov,DeleteIcon:Av,DiamondIcon:d3,DirectionIcon:d7,DiscordIcon:M4,DocChartIcon:l4,DocListIcon:i4,DocumentIcon:qn,DownloadIcon:Z3,DragIcon:s4,EditIcon:dv,EllipsisIcon:hv,EmailIcon:Jv,ExpandAltIcon:D3,ExpandIcon:V3,EyeCloseIcon:Mc,EyeIcon:Tc,FaceHappyIcon:m7,FaceNeutralIcon:v7,FaceSadIcon:b7,FacebookIcon:L4,FailedIcon:$v,FastForwardIcon:U2,FigmaIcon:z4,FilterIcon:o4,FlagIcon:E3,FolderIcon:J2,FormIcon:vv,GDriveIcon:P4,GithubIcon:B4,GitlabIcon:F4,GlobeIcon:t7,GoogleIcon:H4,GraphBarIcon:r4,GraphLineIcon:e4,GraphqlIcon:N4,GridAltIcon:A2,GridIcon:S2,GrowIcon:M2,HeartHollowIcon:u3,HeartIcon:f3,HomeIcon:s7,HourglassIcon:x3,InfoIcon:qv,ItalicIcon:f4,JumpToIcon:o3,KeyIcon:Hv,LightningIcon:k2,LightningOffIcon:Lc,LinkBrokenIcon:e3,LinkIcon:Hc,LinkedinIcon:G4,LinuxIcon:S4,ListOrderedIcon:h4,ListUnorderedIcon:g4,LocationIcon:n7,LockIcon:Bv,MarkdownIcon:v4,MarkupIcon:d4,MediumIcon:j4,MemoryIcon:lv,MenuIcon:c4,MergeIcon:E4,MirrorIcon:T2,MobileIcon:X4,MoonIcon:Y2,NutIcon:fv,OutboxIcon:Nv,OutlineIcon:R2,PaintBrushIcon:L2,PaperClipIcon:p4,ParagraphIcon:m4,PassedIcon:_v,PhoneIcon:Qv,PhotoDragIcon:I2,PhotoIcon:E2,PinAltIcon:Sv,PinIcon:a7,PlayBackIcon:N2,PlayIcon:H2,PlayNextIcon:j2,PlusIcon:xv,PointerDefaultIcon:Vv,PointerHandIcon:Wv,PowerIcon:cv,PrintIcon:Q2,ProceedIcon:Q3,ProfileIcon:g7,PullRequestIcon:x4,QuestionIcon:Yv,RSSIcon:r3,RedirectIcon:q3,ReduxIcon:D4,RefreshIcon:e7,ReplyIcon:Y3,RepoIcon:b4,RequestChangeIcon:Lv,RewindIcon:D2,RulerIcon:z2,SearchIcon:_2,ShareAltIcon:n3,ShareIcon:a3,ShieldIcon:b3,SideBySideIcon:W2,SidebarAltIcon:Q4,SidebarAltToggleIcon:ev,SidebarIcon:J4,SidebarToggleIcon:tv,SpeakerIcon:F2,StackedIcon:G2,StarHollowIcon:p3,StarIcon:h3,StickerIcon:R3,StopAltIcon:V2,StopIcon:P2,StorybookIcon:_4,StructureIcon:iv,SubtractIcon:Fc,SunIcon:q2,SupportIcon:Kv,SwitchAltIcon:O2,SyncIcon:K3,TabletIcon:K4,ThumbsUpIcon:v3,TimeIcon:o7,TimerIcon:i7,TransferIcon:G3,TrashIcon:Cv,TwitterIcon:U4,TypeIcon:Uv,UbuntuIcon:R4,UndoIcon:Dc,UnfoldIcon:W3,UnlockIcon:Fv,UnpinIcon:Rv,UploadIcon:X3,UserAddIcon:p7,UserAltIcon:f7,UserIcon:u7,UsersIcon:h7,VSCodeIcon:W4,VerifiedIcon:m3,VideoIcon:zc,WandIcon:gv,WatchIcon:Z4,WindowsIcon:I4,WrenchIcon:pv,XIcon:q4,YoutubeIcon:V4,ZoomIcon:kc,ZoomOutIcon:$c,ZoomResetIcon:Oc,iconList:x2},Symbol.toStringTag,{value:"Module"}));function St(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function E7(e,t){const r=o.createContext(t);function n(l){const{children:i,...c}=l,s=o.useMemo(()=>c,Object.values(c));return o.createElement(r.Provider,{value:s},i)}function a(l){const i=o.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,a]}function C7(e,t=[]){let r=[];function n(l,i){const c=o.createContext(i),s=r.length;r=[...r,i];function d(h){const{scope:m,children:p,...v}=h,g=(m==null?void 0:m[e][s])||c,y=o.useMemo(()=>v,Object.values(v));return o.createElement(g.Provider,{value:y},p)}function u(h,m){const p=(m==null?void 0:m[e][s])||c,v=o.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${l}\``)}return d.displayName=l+"Provider",[d,u]}const a=()=>{const l=r.map(i=>o.createContext(i));return function(c){const s=(c==null?void 0:c[e])||l;return o.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return a.scopeName=e,[n,S7(a,...t)]}function S7(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const i=n.reduce((c,{useScope:s,scopeName:d})=>{const h=s(l)[`__scope${d}`];return{...c,...h}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}const Io=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{},R7=co.useId||(()=>{});let I7=0;function Ha(e){const[t,r]=o.useState(R7());return Io(()=>{e||r(n=>n??String(I7++))},[e]),e||(t?`radix-${t}`:"")}function Xt(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function A7({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=_7({defaultProp:t,onChange:r}),l=e!==void 0,i=l?e:n,c=Xt(r),s=o.useCallback(d=>{if(l){const h=typeof d=="function"?d(e):d;h!==e&&c(h)}else a(d)},[l,e,a,c]);return[i,s]}function _7({defaultProp:e,onChange:t}){const r=o.useState(e),[n]=r,a=o.useRef(n),l=Xt(t);return o.useEffect(()=>{a.current!==n&&(l(n),a.current=n)},[n,a,l]),r}const k7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$t=k7.reduce((e,t)=>{const r=o.forwardRef((n,a)=>{const{asChild:l,...i}=n,c=l?sn:t;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(c,Z({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $7(e,t){e&&ea.flushSync(()=>e.dispatchEvent(t))}function O7(e,t=globalThis==null?void 0:globalThis.document){const r=Xt(e);o.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Ao="dismissableLayer.update",T7="dismissableLayer.pointerDownOutside",M7="dismissableLayer.focusOutside";let Zi;const L7=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z7=o.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...d}=e,u=o.useContext(L7),[h,m]=o.useState(null),p=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=o.useState({}),g=Ir(t,I=>m(I)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=y.indexOf(x),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=E,S=P7(I=>{const _=I.target,k=[...u.branches].some($=>$.contains(_));!C||k||(l==null||l(I),c==null||c(I),I.defaultPrevented||s==null||s())},p),R=B7(I=>{const _=I.target;[...u.branches].some($=>$.contains(_))||(i==null||i(I),c==null||c(I),I.defaultPrevented||s==null||s())},p);return O7(I=>{b===u.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&s&&(I.preventDefault(),s()))},p),o.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Ji(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zi)}},[h,p,n,u]),o.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Ji())},[h,u]),o.useEffect(()=>{const I=()=>v({});return document.addEventListener(Ao,I),()=>document.removeEventListener(Ao,I)},[]),o.createElement($t.div,Z({},d,{ref:g,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:St(e.onFocusCapture,R.onFocusCapture),onBlurCapture:St(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:St(e.onPointerDownCapture,S.onPointerDownCapture)}))});function P7(e,t=globalThis==null?void 0:globalThis.document){const r=Xt(e),n=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{const l=c=>{if(c.target&&!n.current){let d=function(){Uc(T7,r,s,{discrete:!0})};const s={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function B7(e,t=globalThis==null?void 0:globalThis.document){const r=Xt(e),n=o.useRef(!1);return o.useEffect(()=>{const a=l=>{l.target&&!n.current&&Uc(M7,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ji(){const e=new CustomEvent(Ao);document.dispatchEvent(e)}function Uc(e,t,r,{discrete:n}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?$7(a,l):a.dispatchEvent(l)}const Na="focusScope.autoFocusOnMount",ja="focusScope.autoFocusOnUnmount",Qi={bubbles:!1,cancelable:!0},F7=o.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...i}=e,[c,s]=o.useState(null),d=Xt(a),u=Xt(l),h=o.useRef(null),m=Ir(t,g=>s(g)),p=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let g=function(b){if(p.paused||!c)return;const w=b.target;c.contains(w)?h.current=w:xt(h.current,{select:!0})},y=function(b){if(p.paused||!c)return;const w=b.relatedTarget;w!==null&&(c.contains(w)||xt(h.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&xt(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const E=new MutationObserver(x);return c&&E.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),E.disconnect()}}},[n,c,p.paused]),o.useEffect(()=>{if(c){t0.add(p);const g=document.activeElement;if(!c.contains(g)){const x=new CustomEvent(Na,Qi);c.addEventListener(Na,d),c.dispatchEvent(x),x.defaultPrevented||(H7(V7(Vc(c)),{select:!0}),document.activeElement===g&&xt(c))}return()=>{c.removeEventListener(Na,d),setTimeout(()=>{const x=new CustomEvent(ja,Qi);c.addEventListener(ja,u),c.dispatchEvent(x),x.defaultPrevented||xt(g??document.body,{select:!0}),c.removeEventListener(ja,u),t0.remove(p)},0)}}},[c,d,u,p]);const v=o.useCallback(g=>{if(!r&&!n||p.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(y&&x){const E=g.currentTarget,[b,w]=N7(E);b&&w?!g.shiftKey&&x===w?(g.preventDefault(),r&&xt(b,{select:!0})):g.shiftKey&&x===b&&(g.preventDefault(),r&&xt(w,{select:!0})):x===E&&g.preventDefault()}},[r,n,p.paused]);return o.createElement($t.div,Z({tabIndex:-1},i,{ref:m,onKeyDown:v}))});function H7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xt(n,{select:t}),document.activeElement!==r)return}function N7(e){const t=Vc(e),r=e0(t,e),n=e0(t.reverse(),e);return[r,n]}function Vc(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function e0(e,t){for(const r of e)if(!j7(r,{upTo:t}))return r}function j7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D7(e){return e instanceof HTMLInputElement&&"select"in e}function xt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&D7(e)&&t&&e.select()}}const t0=U7();function U7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=r0(e,t),e.unshift(t)},remove(t){var r;e=r0(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function r0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function V7(e){return e.filter(t=>t.tagName!=="A")}const W7=o.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return n?os.createPortal(o.createElement($t.div,Z({},a,{ref:t})),n):null});function G7(e,t){return o.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const ma=e=>{const{present:t,children:r}=e,n=q7(t),a=typeof r=="function"?r({present:n.isPresent}):o.Children.only(r),l=Ir(n.ref,a.ref);return typeof r=="function"||n.isPresent?o.cloneElement(a,{ref:l}):null};ma.displayName="Presence";function q7(e){const[t,r]=o.useState(),n=o.useRef({}),a=o.useRef(e),l=o.useRef("none"),i=e?"mounted":"unmounted",[c,s]=G7(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const d=En(n.current);l.current=c==="mounted"?d:"none"},[c]),Io(()=>{const d=n.current,u=a.current;if(u!==e){const m=l.current,p=En(d);e?s("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?s("UNMOUNT"):s(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Io(()=>{if(t){const d=h=>{const p=En(n.current).includes(h.animationName);h.target===t&&p&&ea.flushSync(()=>s("ANIMATION_END"))},u=h=>{h.target===t&&(l.current=En(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function En(e){return(e==null?void 0:e.animationName)||"none"}let Da=0;function Y7(){o.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:n0()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:n0()),Da++,()=>{Da===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Da--}},[])}function n0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var tt=function(){return tt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n"u")return ub;var t=fb(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},hb=Yc(),pr="data-scroll-locked",gb=function(e,t,r,n){var a=e.left,l=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),` + .`.concat(X7,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(c,"px ").concat(n,`; + } + body[`).concat(pr,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(a,`px; + padding-top: `).concat(l,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(c,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(Bn,` { + right: `).concat(c,"px ").concat(n,`; + } + + .`).concat(Fn,` { + margin-right: `).concat(c,"px ").concat(n,`; + } + + .`).concat(Bn," .").concat(Bn,` { + right: 0 `).concat(n,`; + } + + .`).concat(Fn," .").concat(Fn,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(pr,`] { + `).concat(Z7,": ").concat(c,`px; + } +`)},o0=function(){var e=parseInt(document.body.getAttribute(pr)||"0",10);return isFinite(e)?e:0},mb=function(){o.useEffect(function(){return document.body.setAttribute(pr,(o0()+1).toString()),function(){var e=o0()-1;e<=0?document.body.removeAttribute(pr):document.body.setAttribute(pr,e.toString())}},[])},vb=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;mb();var l=o.useMemo(function(){return pb(a)},[a]);return o.createElement(hb,{styles:gb(l,!t,a,r?"":"!important")})},_o=!1;if(typeof window<"u")try{var Cn=Object.defineProperty({},"passive",{get:function(){return _o=!0,!0}});window.addEventListener("test",Cn,Cn),window.removeEventListener("test",Cn,Cn)}catch{_o=!1}var ar=_o?{passive:!1}:!1,bb=function(e){return e.tagName==="TEXTAREA"},Kc=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bb(e)&&r[t]==="visible")},yb=function(e){return Kc(e,"overflowY")},wb=function(e){return Kc(e,"overflowX")},l0=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Xc(e,r);if(n){var a=Zc(e,r),l=a[1],i=a[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},xb=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Eb=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xc=function(e,t){return e==="v"?yb(t):wb(t)},Zc=function(e,t){return e==="v"?xb(t):Eb(t)},Cb=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sb=function(e,t,r,n,a){var l=Cb(e,window.getComputedStyle(t).direction),i=l*n,c=r.target,s=t.contains(c),d=!1,u=i>0,h=0,m=0;do{var p=Zc(e,c),v=p[0],g=p[1],y=p[2],x=g-y-l*v;(v||x)&&Xc(e,c)&&(h+=x,m+=v),c=c.parentNode}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return(u&&(h===0||!a)||!u&&(m===0||!a))&&(d=!0),d},Sn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},i0=function(e){return[e.deltaX,e.deltaY]},s0=function(e){return e&&"current"in e?e.current:e},Rb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ib=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Ab=0,or=[];function _b(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),a=o.useState(Ab++)[0],l=o.useState(function(){return Yc()})[0],i=o.useRef(e);o.useEffect(function(){i.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=K7([e.lockRef.current],(e.shards||[]).map(s0),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(g,y){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var x=Sn(g),E=r.current,b="deltaX"in g?g.deltaX:E[0]-x[0],w="deltaY"in g?g.deltaY:E[1]-x[1],C,S=g.target,R=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in g&&R==="h"&&S.type==="range")return!1;var I=l0(R,S);if(!I)return!0;if(I?C=R:(C=R==="v"?"h":"v",I=l0(R,S)),!I)return!1;if(!n.current&&"changedTouches"in g&&(b||w)&&(n.current=C),!C)return!0;var _=n.current||C;return Sb(_,y,g,_==="h"?b:w,!0)},[]),s=o.useCallback(function(g){var y=g;if(!(!or.length||or[or.length-1]!==l)){var x="deltaY"in y?i0(y):Sn(y),E=t.current.filter(function(C){return C.name===y.type&&C.target===y.target&&Rb(C.delta,x)})[0];if(E&&E.should){y.cancelable&&y.preventDefault();return}if(!E){var b=(i.current.shards||[]).map(s0).filter(Boolean).filter(function(C){return C.contains(y.target)}),w=b.length>0?c(y,b[0]):!i.current.noIsolation;w&&y.cancelable&&y.preventDefault()}}},[]),d=o.useCallback(function(g,y,x,E){var b={name:g,delta:y,target:x,should:E};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),u=o.useCallback(function(g){r.current=Sn(g),n.current=void 0},[]),h=o.useCallback(function(g){d(g.type,i0(g),g.target,c(g,e.lockRef.current))},[]),m=o.useCallback(function(g){d(g.type,Sn(g),g.target,c(g,e.lockRef.current))},[]);o.useEffect(function(){return or.push(l),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",s,ar),document.addEventListener("touchmove",s,ar),document.addEventListener("touchstart",u,ar),function(){or=or.filter(function(g){return g!==l}),document.removeEventListener("wheel",s,ar),document.removeEventListener("touchmove",s,ar),document.removeEventListener("touchstart",u,ar)}},[]);var p=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(l,{styles:Ib(a)}):null,p?o.createElement(vb,{gapMode:"margin"}):null)}const kb=ab(qc,_b);var Jc=o.forwardRef(function(e,t){return o.createElement(va,tt({},e,{ref:t,sideCar:kb}))});Jc.classNames=va.classNames;var $b=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lr=new WeakMap,Rn=new WeakMap,In={},Ga=0,Qc=function(e){return e&&(e.host||Qc(e.parentNode))},Ob=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Qc(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Tb=function(e,t,r,n){var a=Ob(t,Array.isArray(e)?e:[e]);In[r]||(In[r]=new WeakMap);var l=In[r],i=[],c=new Set,s=new Set(a),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};a.forEach(d);var u=function(h){!h||s.has(h)||Array.prototype.forEach.call(h.children,function(m){if(c.has(m))u(m);else try{var p=m.getAttribute(n),v=p!==null&&p!=="false",g=(lr.get(m)||0)+1,y=(l.get(m)||0)+1;lr.set(m,g),l.set(m,y),i.push(m),g===1&&v&&Rn.set(m,!0),y===1&&m.setAttribute(r,"true"),v||m.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return u(t),c.clear(),Ga++,function(){i.forEach(function(h){var m=lr.get(h)-1,p=l.get(h)-1;lr.set(h,m),l.set(h,p),m||(Rn.has(h)||h.removeAttribute(n),Rn.delete(h)),p||h.removeAttribute(r)}),Ga--,Ga||(lr=new WeakMap,lr=new WeakMap,Rn=new WeakMap,In={})}},Mb=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=$b(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),Tb(n,a,r,"aria-hidden")):function(){return null}};const e1="Dialog",[t1,Lb]=C7(e1),[zb,Ne]=t1(e1),r1=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:l,modal:i=!0}=e,c=o.useRef(null),s=o.useRef(null),[d=!1,u]=A7({prop:n,defaultProp:a,onChange:l});return o.createElement(zb,{scope:t,triggerRef:c,contentRef:s,contentId:Ha(),titleId:Ha(),descriptionId:Ha(),open:d,onOpenChange:u,onOpenToggle:o.useCallback(()=>u(h=>!h),[u]),modal:i},r)},Pb="DialogTrigger",n1=o.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ne(Pb,r),l=Ir(t,a.triggerRef);return o.createElement($t.button,Z({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Il(a.open)},n,{ref:l,onClick:St(e.onClick,a.onOpenToggle)}))}),a1="DialogPortal",[Bb,o1]=t1(a1,{forceMount:void 0}),l1=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,l=Ne(a1,t);return o.createElement(Bb,{scope:t,forceMount:r},o.Children.map(n,i=>o.createElement(ma,{present:r||l.open},o.createElement(W7,{asChild:!0,container:a},i))))},ko="DialogOverlay",i1=o.forwardRef((e,t)=>{const r=o1(ko,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,l=Ne(ko,e.__scopeDialog);return l.modal?o.createElement(ma,{present:n||l.open},o.createElement(Fb,Z({},a,{ref:t}))):null}),Fb=o.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ne(ko,r);return o.createElement(Jc,{as:sn,allowPinchZoom:!0,shards:[a.contentRef]},o.createElement($t.div,Z({"data-state":Il(a.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),xr="DialogContent",s1=o.forwardRef((e,t)=>{const r=o1(xr,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,l=Ne(xr,e.__scopeDialog);return o.createElement(ma,{present:n||l.open},l.modal?o.createElement(Hb,Z({},a,{ref:t})):o.createElement(Nb,Z({},a,{ref:t})))}),Hb=o.forwardRef((e,t)=>{const r=Ne(xr,e.__scopeDialog),n=o.useRef(null),a=Ir(t,r.contentRef,n);return o.useEffect(()=>{const l=n.current;if(l)return Mb(l)},[]),o.createElement(c1,Z({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:St(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:St(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&l.preventDefault()}),onFocusOutside:St(e.onFocusOutside,l=>l.preventDefault())}))}),Nb=o.forwardRef((e,t)=>{const r=Ne(xr,e.__scopeDialog),n=o.useRef(!1),a=o.useRef(!1);return o.createElement(c1,Z({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,l),!l.defaultPrevented){var c;n.current||(c=r.triggerRef.current)===null||c===void 0||c.focus(),l.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:l=>{var i,c;(i=e.onInteractOutside)===null||i===void 0||i.call(e,l),l.defaultPrevented||(n.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=l.target;((c=r.triggerRef.current)===null||c===void 0?void 0:c.contains(s))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}}))}),c1=o.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:l,...i}=e,c=Ne(xr,r),s=o.useRef(null),d=Ir(t,s);return Y7(),o.createElement(o.Fragment,null,o.createElement(F7,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:l},o.createElement(z7,Z({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Il(c.open)},i,{ref:d,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),d1="DialogTitle",u1=o.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ne(d1,r);return o.createElement($t.h2,Z({id:a.titleId},n,{ref:t}))}),jb="DialogDescription",f1=o.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ne(jb,r);return o.createElement($t.p,Z({id:a.descriptionId},n,{ref:t}))}),Db="DialogClose",p1=o.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ne(Db,r);return o.createElement($t.button,Z({type:"button"},n,{ref:t,onClick:St(e.onClick,()=>a.onOpenChange(!1))}))});function Il(e){return e?"open":"closed"}const Ub="DialogTitleWarning",[Vb,eO]=E7(Ub,{contentName:xr,titleName:d1,docsSlug:"dialog"}),h1=r1,Wb=n1,g1=l1,m1=i1,v1=s1,b1=u1,y1=f1,w1=p1,Gb=Object.freeze(Object.defineProperty({__proto__:null,Close:w1,Content:v1,Description:y1,Dialog:r1,DialogClose:p1,DialogContent:s1,DialogDescription:f1,DialogOverlay:i1,DialogPortal:l1,DialogTitle:u1,DialogTrigger:n1,Overlay:m1,Portal:g1,Root:h1,Title:b1,Trigger:Wb,WarningProvider:Vb,createDialogScope:Lb},Symbol.toStringTag,{value:"Module"})),{deprecate:x1,logger:qb}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:Yb}=__STORYBOOK_MODULE_GLOBAL__;var ne=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e};function Kb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},en(e,t)}function Xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,en(e,t)}function $o(e){return $o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$o(e)}function Zb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function E1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E1=function(){return!!e})()}function Jb(e,t,r){if(E1())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&en(a,r.prototype),a}function Oo(e){var t=typeof Map=="function"?new Map:void 0;return Oo=function(r){if(r===null||!Zb(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Jb(r,arguments,$o(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),en(n,r)},Oo(e)}var Qb={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function ey(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,m=s+u,p=d+u;return n(h,m,p)}var c0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ry(e){if(typeof e!="string")return e;var t=e.toLowerCase();return c0[t]?"#"+c0[t]:e}var ny=/^#[a-fA-F0-9]{6}$/,ay=/^#[a-fA-F0-9]{8}$/,oy=/^#[a-fA-F0-9]{3}$/,ly=/^#[a-fA-F0-9]{4}$/,Ya=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,iy=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,sy=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,cy=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Al(e){if(typeof e!="string")throw new at(3);var t=ry(e);if(t.match(ny))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ay)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(oy))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ly)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Ya.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=iy.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=sy.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+tn(c,s,d)+")",h=Ya.exec(u);if(!h)throw new at(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var m=cy.exec(t.substring(0,50));if(m){var p=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,g=parseInt(""+m[3],10)/100,y="rgb("+tn(p,v,g)+")",x=Ya.exec(y);if(!x)throw new at(4,t,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new at(5)}function dy(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?Yn(e,t,r):"rgba("+tn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Yn(e.hue,e.saturation,e.lightness):"rgba("+tn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new at(2)}function Mo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return To("#"+Ht(e)+Ht(t)+Ht(r));if(typeof e=="object"&&t===void 0&&r===void 0)return To("#"+Ht(e.red)+Ht(e.green)+Ht(e.blue));throw new at(6)}function Kn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Al(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Mo(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Mo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new at(7)}var gy=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},my=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},vy=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},by=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function S1(e){if(typeof e!="object")throw new at(8);if(my(e))return Kn(e);if(gy(e))return Mo(e);if(by(e))return hy(e);if(vy(e))return py(e);throw new at(8)}function R1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):R1(e,t,n)}}function _l(e){return R1(e,e.length,[])}function kl(e,t,r){return Math.max(e,Math.min(t,r))}function yy(e,t){if(t==="transparent")return t;var r=C1(t);return S1(Y({},r,{lightness:kl(0,1,r.lightness-parseFloat(e))}))}var wy=_l(yy),ur=wy;function xy(e,t){if(t==="transparent")return t;var r=C1(t);return S1(Y({},r,{lightness:kl(0,1,r.lightness+parseFloat(e))}))}var Ey=_l(xy),d0=Ey;function Cy(e,t){if(t==="transparent")return t;var r=Al(t),n=typeof r.alpha=="number"?r.alpha:1,a=Y({},r,{alpha:kl(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Kn(a)}var Sy=_l(Cy),$e=Sy,Ar=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),vt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?$e(.1,e.color.defaultText):$e(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),ae=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Qt={margin:"16px 0"},Ry=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return f.createElement("a",{href:r,target:n,...t})},I1=A(Ry)(ae,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),A1=A.blockquote(ae,Qt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Iy=e=>typeof e=="string",Ay=/[\n\r]/g,_y=A.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),vt),ky=A(ml)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),$l=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(Iy).some(l=>l.match(Ay))?f.createElement(ky,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):f.createElement(_y,{...r,className:e},a)},_1=A.div(ae),k1=A.dl(ae,Qt,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),$1=A.h1(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Ol=A.h2(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Tl=A.h3(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),O1=A.h4(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),T1=A.h5(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),M1=A.h6(ae,Ar,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),L1=A.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),z1=A.img({maxWidth:"100%"}),P1=A.li(ae,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":vt({theme:e})})),$y={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},B1=A.ol(ae,Qt,$y,{listStyle:"decimal"}),F1=A.p(ae,Qt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":vt({theme:e})})),H1=A.pre(ae,Qt,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),N1=A.span(ae,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),j1=A.table(ae,Qt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),D1=A.title(vt),Oy={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},U1=A.ul(ae,Qt,Oy,{listStyle:"disc"}),Ml=A.div(ae),V1={h1:e=>f.createElement($1,{...ne(e,"h1")}),h2:e=>f.createElement(Ol,{...ne(e,"h2")}),h3:e=>f.createElement(Tl,{...ne(e,"h3")}),h4:e=>f.createElement(O1,{...ne(e,"h4")}),h5:e=>f.createElement(T1,{...ne(e,"h5")}),h6:e=>f.createElement(M1,{...ne(e,"h6")}),pre:e=>f.createElement(H1,{...ne(e,"pre")}),a:e=>f.createElement(I1,{...ne(e,"a")}),hr:e=>f.createElement(L1,{...ne(e,"hr")}),dl:e=>f.createElement(k1,{...ne(e,"dl")}),blockquote:e=>f.createElement(A1,{...ne(e,"blockquote")}),table:e=>f.createElement(j1,{...ne(e,"table")}),img:e=>f.createElement(z1,{...ne(e,"img")}),div:e=>f.createElement(_1,{...ne(e,"div")}),span:e=>f.createElement(N1,{...ne(e,"span")}),li:e=>f.createElement(P1,{...ne(e,"li")}),ul:e=>f.createElement(U1,{...ne(e,"ul")}),ol:e=>f.createElement(B1,{...ne(e,"ol")}),p:e=>f.createElement(F1,{...ne(e,"p")}),code:e=>f.createElement($l,{...ne(e,"code")}),tt:e=>f.createElement(D1,{...ne(e,"tt")}),resetwrapper:e=>f.createElement(Ml,{...ne(e,"resetwrapper")})},Ty=A.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${$e(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${$e(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${$e(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${$e(.9,e.color.positiveText)}`:"none"};default:return{}}}),My=({...e})=>f.createElement(Ty,{...e}),Ly=0,zy=e=>e.button===Ly&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,Py=(e,t)=>{zy(e)&&(e.preventDefault(),t(e))},By=A.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),Fy=A.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:ur(.07,e.color.secondary),"svg path:not([fill])":{fill:ur(.07,e.color.secondary)}},"&:active":{color:ur(.1,e.color.secondary),"svg path:not([fill])":{fill:ur(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),qt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>f.createElement(Fy,{...c,onClick:r&&e?s=>Py(s,r):r,className:l},f.createElement(By,{withArrow:n,containsIcon:a},t,n&&f.createElement(Sl,null))),Hy=A.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Yt=[],Er=null,Ny=o.lazy(async()=>{let{SyntaxHighlighter:e}=await It(()=>import("./syntaxhighlighter-BP7B2CQK-DoA1HlSX.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return Yt.length>0&&(Yt.forEach(t=>{e.registerLanguage(...t)}),Yt=[]),Er===null&&(Er=e),{default:t=>f.createElement(e,{...t})}}),jy=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([It(()=>import("./syntaxhighlighter-BP7B2CQK-DoA1HlSX.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),It(()=>import("./formatter-2WMMO6ZP-B8aeGN0G.js"),__vite__mapDeps([7,1,2,3,4,5,6]),import.meta.url)]);return Yt.length>0&&(Yt.forEach(r=>{e.registerLanguage(...r)}),Yt=[]),Er===null&&(Er=e),{default:r=>f.createElement(e,{...r,formatter:t})}}),ba=e=>f.createElement(o.Suspense,{fallback:f.createElement("div",null)},e.format!==!1?f.createElement(jy,{...e}):f.createElement(Ny,{...e}));ba.registerLanguage=(...e)=>{if(Er!==null){Er.registerLanguage(...e);return}Yt.push(e)};var W1={};k5(W1,{Actions:()=>Ky,CloseButton:()=>K1,Col:()=>Z1,Container:()=>Y1,Content:()=>Wy,Description:()=>Yy,Error:()=>Xy,ErrorWrapper:()=>J1,Header:()=>Gy,Overlay:()=>q1,Row:()=>X1,Title:()=>qy});var Ot=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let u="button";s.isLink&&(u="a"),e&&(u=sn);let h=n,m=r,[p,v]=o.useState(!1),g=y=>{c&&c(y),t!=="none"&&v(!0)};if(o.useEffect(()=>{let y=setTimeout(()=>{p&&v(!1)},1e3);return()=>clearTimeout(y)},[p]),s.primary&&(h="solid",m="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(h="outline",m="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let y=f.Children.toArray(s.children).filter(x=>typeof x=="string"&&x!=="");x1(`Use of deprecated props in the button ${y.length>0?`"${y.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return f.createElement(Dy,{as:u,ref:d,variant:h,size:m,padding:a,disabled:l,active:i,animating:p,animation:t,onClick:g,...s})});Ot.displayName="Button";var Dy=A("button",{shouldForwardProp:e=>Zo(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?$e(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:$e(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:$e(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Kn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?$e(.86,e.color.secondary):e.base==="light"?ur(.02,s):d0(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?ur(.02,s):d0(.03,s)})()},"&:focus":{boxShadow:`${Kn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Rt=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>f.createElement(Ot,{padding:e,variant:t,ref:n,...r}));Rt.displayName="IconButton";var G1=gt({from:{opacity:0},to:{opacity:1}}),Uy=gt({from:{maxHeight:0},to:{}}),Vy=gt({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),q1=A.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${G1} 200ms`}),Y1=A.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${Vy} 200ms`,"&:focus-visible":{outline:"none"}})),K1=e=>f.createElement(w1,{asChild:!0},f.createElement(Rt,{...e},f.createElement(Pc,null))),Wy=A.div({display:"flex",flexDirection:"column",margin:16,gap:16}),X1=A.div({display:"flex",justifyContent:"space-between",gap:16}),Z1=A.div({display:"flex",flexDirection:"column",gap:4}),Gy=e=>f.createElement(X1,null,f.createElement(Z1,{...e}),f.createElement(K1,null)),qy=A(b1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Yy=A(y1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Ky=A.div({display:"flex",flexDirection:"row-reverse",gap:8}),J1=A.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${Uy} 300ms, ${G1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Xy=({children:e,...t})=>f.createElement(J1,{...t},f.createElement("div",null,e));function Zy({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=s=>s.preventDefault(),className:l,container:i,...c}){return f.createElement(h1,{...c},f.createElement(g1,{container:i},f.createElement(m1,{asChild:!0},f.createElement(q1,null)),f.createElement(v1,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},f.createElement(Y1,{className:l,width:t,height:r},e))))}var Jy=Object.assign(Zy,W1,{Dialog:Gb}),Qy=e=>typeof e=="number"?e:Number(e),e6=A.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${yo}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${yo}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),t6=({col:e,row:t,outer:r,children:n,...a})=>{let l=Qy(typeof r=="number"||!r?r:e||t);return f.createElement(e6,{col:e,row:t,outer:l,...a},n)},r6=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),n6=A.div(),a6=A.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),o6=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return f.createElement(a6,{...t},f.createElement(r6,null,r),n&&f.createElement(n6,null,n))};function l6(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function u0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function Q1(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),u=l6(o.useCallback(function(h){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(m){var p=m[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=u0(p,v,"inlineSize"),y=u0(p,v,"blockSize"),x=g?n(g):void 0,E=y?n(y):void 0;if(d.current.width!==x||d.current.height!==E){var b={width:x,height:E};d.current.width=x,d.current.height=E,r.current?r.current(b):s.current||c(b)}})}),a.current.instance.observe(h,{box:e.box}),function(){a.current&&a.current.instance.unobserve(h)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:u,width:i.width,height:i.height}},[u,i.width,i.height])}var i6=A.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function s6({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),Q1({ref:r,onResize:l}),f.createElement(i6,{scale:e,elementHeight:n},f.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var c6=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return f.createElement(f.Fragment,null,e)}},ed={Element:s6,IFrame:c6},{document:d6}=Yb,u6=A.strong(({theme:e})=>({color:e.color.orange})),f6=A.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),f0=A.em(({theme:e})=>({color:e.textMutedColor})),p6=/(Error): (.*)\n/,h6=/at (?:(.*) )?\(?(.+)\)?/,g6=/([^@]+)?(?:\/<)?@(.+)?/,m6=/([^@]+)?@(.+)?/,td=({error:e})=>{if(!e)return f.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return f.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} + +${t}`);let r=t.match(p6);if(!r)return f.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(h6)||c.match(g6)||c.match(m6);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(d6.location.origin,"")}:null}).filter(Boolean);return f.createElement(o.Fragment,null,f.createElement("span",null,n),": ",f.createElement(u6,null,a),f.createElement("br",null),i.map((c,s)=>c.name?f.createElement(o.Fragment,{key:s}," ","at ",f.createElement(f6,null,c.name)," (",f.createElement(f0,null,c.location),")",f.createElement("br",null)):f.createElement(o.Fragment,{key:s}," ","at ",f.createElement(f0,null,c.location),f.createElement("br",null))))},v6=A.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),b6=A.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),y6=({label:e,children:t,...r})=>f.createElement(v6,{...r},e?f.createElement(b6,null,f.createElement("span",null,e)):null,t),w6=o.useLayoutEffect,x6=w6,E6=function(e){var t=o.useRef(e);return x6(function(){t.current=e}),t},p0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},C6=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&p0(r.current,null),r.current=t,t&&p0(t,n)},[t])},S6=C6,h0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},R6=function(e){Object.keys(h0).forEach(function(t){e.style.setProperty(t,h0[t],"important")})},g0=R6,we=null,m0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function I6(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),we||(we=document.createElement("textarea"),we.setAttribute("tabindex","-1"),we.setAttribute("aria-hidden","true"),g0(we)),we.parentNode===null&&document.body.appendChild(we);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(m){var p=m;we.style[p]=i[p]}),g0(we),we.value=t;var s=m0(we,e);we.value=t,s=m0(we,e),we.value="x";var d=we.scrollHeight-a,u=d*r;c==="border-box"&&(u=u+a+l),s=Math.max(u,s);var h=d*n;return c==="border-box"&&(h=h+a+l),s=Math.min(h,s),[s,d]}var v0=function(){},A6=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},_6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],k6=!!document.documentElement.currentStyle,$6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=A6(_6,t),n=r.boxSizing;if(n==="")return null;k6&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},O6=$6;function rd(e,t,r){var n=E6(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var T6=function(e){rd(window,"resize",e)},M6=function(e){rd(document.fonts,"loadingdone",e)},L6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],z6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?v0:l,c=e.onHeightChange,s=c===void 0?v0:c,d=ll(e,L6),u=d.value!==void 0,h=o.useRef(null),m=S6(h,t),p=o.useRef(0),v=o.useRef(),g=function(){var x=h.current,E=r&&v.current?v.current:O6(x);if(E){v.current=E;var b=I6(E,x.value||x.placeholder||"x",a,n),w=b[0],C=b[1];p.current!==w&&(p.current=w,x.style.setProperty("height",w+"px","important"),s(w,{rowHeight:C}))}},y=function(x){u||g(),i(x)};return o.useLayoutEffect(g),T6(g),M6(g),o.createElement("textarea",Y({},d,{onChange:y,ref:m}))},P6=o.forwardRef(z6),B6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Ll=({theme:e})=>({...B6,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),zl=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},nd=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Pl=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},F6=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return f.createElement("input",{...n,ref:a})}))(Ll,zl,nd,Pl,{minHeight:32}),{displayName:"Input"}),H6=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return f.createElement("select",{...n,ref:a})}))(Ll,zl,Pl,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),N6=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return f.createElement(P6,{...n,ref:a})}))(Ll,zl,nd,Pl,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),_r=Object.assign(A.form({boxSizing:"border-box",width:"100%"}),{Field:y6,Input:F6,Select:H6,Textarea:N6,Button:Ot}),j6=o.lazy(()=>It(()=>import("./WithTooltip-KJL26V4Q-dz-U5J6A.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltip}))),D6=e=>f.createElement(o.Suspense,{fallback:f.createElement("div",null)},f.createElement(j6,{...e})),U6=o.lazy(()=>It(()=>import("./WithTooltip-KJL26V4Q-dz-U5J6A.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),ad=e=>f.createElement(o.Suspense,{fallback:f.createElement("div",null)},f.createElement(U6,{...e})),V6=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),W6=A.span(),G6=A.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),q6=A.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),Y6=A.div({padding:15,width:280,boxSizing:"border-box"}),K6=({title:e,desc:t,links:r})=>f.createElement(Y6,null,f.createElement(q6,null,e&&f.createElement(V6,null,e),t&&f.createElement(W6,null,t)),r&&f.createElement(G6,null,r.map(({title:n,...a})=>f.createElement(qt,{...a,key:n},n)))),X6=A.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),Z6=({note:e,...t})=>f.createElement(X6,{...t},e),J6=A(({active:e,loading:t,disabled:r,...n})=>f.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:$e(.7,t.color.defaultText)}:{}),Q6=A.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),ew=A.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),tw=A.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),rw=A.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),nw=A.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),aw=Zt(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),ow=({loading:e=!1,title:t=f.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:l=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:u=null,...h})=>{let m=aw(s,c,u),p={active:a,disabled:l};return f.createElement(nw,{...p,...h,...m},d&&f.createElement(rw,{...p},d),t||r?f.createElement(ew,{isIndented:!d&&i},t&&f.createElement(J6,{...p,loading:e},t),r&&f.createElement(tw,{...p},r)):null,n&&f.createElement(Q6,{...p},n))},od=ow,lw=A.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),iw=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(h=>{r(h,l)},[r]),u=!!r;return f.createElement(od,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...u?{onClick:d}:{}})},ld=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return f.createElement(lw,null,e.map(({isGatsby:n,...a})=>f.createElement(iw,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},sw=e=>typeof e.props.href=="string",cw=e=>typeof e.props.href!="string";function dw({children:e,...t},r){let n={props:t,ref:r};if(sw(n))return f.createElement("a",{ref:n.ref,...n.props},e);if(cw(n))return f.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var id=o.forwardRef(dw);id.displayName="ButtonOrLink";var pn=A(id,{shouldForwardProp:Zo})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});pn.displayName="TabButton";var uw=A.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),fw=A.div(()=>({marginTop:6,padding:7,height:28})),pw=()=>f.createElement(fw,null,f.createElement(uw,null)),Lo=A.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Lo.displayName="Side";var hw=({children:e,className:t,scrollable:r})=>r?f.createElement(ha,{vertical:!1,className:t},e):f.createElement("div",{className:t},e),Bl=A(hw)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});Bl.displayName="Bar";var gw=A.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),ya=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return f.createElement(Bl,{className:`sb-bar ${r}`,...n},f.createElement(gw,{bgColor:t},f.createElement(Lo,{scrollable:n.scrollable,left:!0},a),l?f.createElement(Lo,{right:!0},l):null))};ya.displayName="FlexBar";var sd=A.div(({active:e})=>e?{display:"block"}:{display:"none"}),mw=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>f.createElement(sd,{active:i,role:"tabpanel"},l)}}),vw=A.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),bw=A(pn)(({active:e,theme:t,preActive:r})=>` + color: ${r||e?t.barSelectedColor:t.barTextColor}; + .addon-collapsible-icon { + color: ${r||e?t.barSelectedColor:t.barTextColor}; + } + &:hover { + color: ${t.barHoverColor}; + .addon-collapsible-icon { + color: ${t.barHoverColor}; + } + } + `);function yw(e){let t=o.useRef(),r=o.useRef(),n=o.useRef(new Map),{width:a=1}=Q1({ref:t}),[l,i]=o.useState(e),[c,s]=o.useState([]),d=o.useRef(e),u=o.useCallback(({menuName:m,actions:p})=>{let v=c.some(({active:x})=>x),[g,y]=o.useState(!1);return f.createElement(f.Fragment,null,f.createElement(w2,{interactive:!0,visible:g,onVisibleChange:y,placement:"bottom",delayHide:100,tooltip:f.createElement(ld,{links:c.map(({title:x,id:E,color:b,active:w})=>({id:E,title:x,color:b,active:w,onClick:C=>{C.preventDefault(),p.onSelect(E)}}))})},f.createElement(bw,{ref:r,active:v,preActive:g,style:{visibility:c.length?"visible":"hidden"},"aria-hidden":!c.length,className:"tabbutton",type:"button",role:"tab"},m,f.createElement(vw,{className:"addon-collapsible-icon",isActive:v||g}))),c.map(({title:x,id:E,color:b},w)=>{let C=`index-${w}`;return f.createElement(pn,{id:`tabbutton-${ls(E)??C}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:S=>{n.current.set(E,S)},className:"tabbutton",type:"button",key:E,textColor:b,role:"tab"},x)}))},[c]),h=o.useCallback(()=>{if(!t.current||!r.current)return;let{x:m,width:p}=t.current.getBoundingClientRect(),{width:v}=r.current.getBoundingClientRect(),g=c.length?m+p-v:m+p,y=[],x=0,E=e.filter(b=>{let{id:w}=b,C=n.current.get(w),{width:S=0}=(C==null?void 0:C.getBoundingClientRect())||{},R=m+x+S>g;return(!R||!C)&&y.push(b),x+=S,R});(y.length!==l.length||d.current!==e)&&(i(y),s(E),d.current=e)},[c.length,e,l]);return o.useLayoutEffect(h,[h,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:c,AddonTab:u}}var ww=A.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),xw=A.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Ew=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),Cw=A.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Fl=({title:e,description:t,footer:r})=>f.createElement(ww,null,f.createElement(xw,null,f.createElement(Ew,null,e),t&&f.createElement(Cw,null,t)),r),Sw="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Rw=A.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),Hl=A.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});Hl.displayName="TabBar";var Iw=A.div({display:"block",position:"relative"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Sw}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Aw=({active:e,render:t,children:r})=>f.createElement(sd,{active:e},t?t():r),Nl=o.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:l=null,backgroundColor:i,id:c=null,menuName:s="Tabs",emptyState:d,showToolsWhenEmpty:u})=>{let h=o.useMemo(()=>mw(e).map((x,E)=>({...x,active:t?x.id===t:E===0})),[e,t]),{visibleList:m,tabBarRef:p,tabRefs:v,AddonTab:g}=yw(h),y=d??f.createElement(Fl,{title:"Nothing found"});return!u&&h.length===0?y:f.createElement(Rw,{absolute:n,bordered:a,id:c},f.createElement(ya,{scrollable:!1,border:!0,backgroundColor:i},f.createElement(Hl,{style:{whiteSpace:"normal"},ref:p,role:"tablist"},m.map(({title:x,id:E,active:b,color:w},C)=>{let S=`index-${C}`;return f.createElement(pn,{id:`tabbutton-${ls(E)??S}`,ref:R=>{v.current.set(E,R)},className:`tabbutton ${b?"tabbutton-active":""}`,type:"button",key:E,active:b,textColor:w,onClick:R=>{R.preventDefault(),r.onSelect(E)},role:"tab"},typeof x=="function"?f.createElement("title",null):x)}),f.createElement(g,{menuName:s,actions:r})),l),f.createElement(Iw,{id:"panel-tab-content",bordered:a,absolute:n},h.length?h.map(({id:x,active:E,render:b})=>f.createElement(b,{key:x,active:E},null)):y))});Nl.displayName="Tabs";var jl=class extends o.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:a}=this.props,{selected:l}=this.state;return f.createElement(Nl,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:a,actions:this.handlers},r)}};jl.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Dl=A.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});Dl.displayName="Separator";var _w=e=>e.reduce((t,r,n)=>r?f.createElement(o.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?f.createElement(Dl,{key:`s-${n}`}):null,r.render()||r):t,null),kw=e=>{let t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current},$w=(e,t)=>{let r=kw(t);return e?t:r},Ow=({active:e,children:t})=>f.createElement("div",{hidden:!e},$w(e,t)),Tw=x7,Mw=A.svg` + display: inline-block; + shape-rendering: inherit; + vertical-align: middle; + fill: currentColor; + path { + fill: currentColor; + } +`,Lw=({icon:e,useSymbol:t,__suppressDeprecationWarning:r=!1,...n})=>{r||x1(`Use of the deprecated Icons ${`(${e})`||""} component detected. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`);let a=Xn[e]||null;if(!a)return qb.warn(`Use of an unknown prop ${`(${e})`||""} in the Icons component. The Icons component is deprecated. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`),null;let l=Tw[a];return f.createElement(l,{...n})},zw=o.memo(function({icons:e=Object.keys(Xn)}){return f.createElement(Mw,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>f.createElement("symbol",{id:`icon--${t}`,key:t},Xn[t])))}),Xn={user:"UserIcon",useralt:"UserAltIcon",useradd:"UserAddIcon",users:"UsersIcon",profile:"ProfileIcon",facehappy:"FaceHappyIcon",faceneutral:"FaceNeutralIcon",facesad:"FaceSadIcon",accessibility:"AccessibilityIcon",accessibilityalt:"AccessibilityAltIcon",arrowup:"ChevronUpIcon",arrowdown:"ChevronDownIcon",arrowleft:"ChevronLeftIcon",arrowright:"ChevronRightIcon",arrowupalt:"ArrowUpIcon",arrowdownalt:"ArrowDownIcon",arrowleftalt:"ArrowLeftIcon",arrowrightalt:"ArrowRightIcon",expandalt:"ExpandAltIcon",collapse:"CollapseIcon",expand:"ExpandIcon",unfold:"UnfoldIcon",transfer:"TransferIcon",redirect:"RedirectIcon",undo:"UndoIcon",reply:"ReplyIcon",sync:"SyncIcon",upload:"UploadIcon",download:"DownloadIcon",back:"BackIcon",proceed:"ProceedIcon",refresh:"RefreshIcon",globe:"GlobeIcon",compass:"CompassIcon",location:"LocationIcon",pin:"PinIcon",time:"TimeIcon",dashboard:"DashboardIcon",timer:"TimerIcon",home:"HomeIcon",admin:"AdminIcon",info:"InfoIcon",question:"QuestionIcon",support:"SupportIcon",alert:"AlertIcon",email:"EmailIcon",phone:"PhoneIcon",link:"LinkIcon",unlink:"LinkBrokenIcon",bell:"BellIcon",rss:"RSSIcon",sharealt:"ShareAltIcon",share:"ShareIcon",circle:"CircleIcon",circlehollow:"CircleHollowIcon",bookmarkhollow:"BookmarkHollowIcon",bookmark:"BookmarkIcon",hearthollow:"HeartHollowIcon",heart:"HeartIcon",starhollow:"StarHollowIcon",star:"StarIcon",certificate:"CertificateIcon",verified:"VerifiedIcon",thumbsup:"ThumbsUpIcon",shield:"ShieldIcon",basket:"BasketIcon",beaker:"BeakerIcon",hourglass:"HourglassIcon",flag:"FlagIcon",cloudhollow:"CloudHollowIcon",edit:"EditIcon",cog:"CogIcon",nut:"NutIcon",wrench:"WrenchIcon",ellipsis:"EllipsisIcon",check:"CheckIcon",form:"FormIcon",batchdeny:"BatchDenyIcon",batchaccept:"BatchAcceptIcon",controls:"ControlsIcon",plus:"PlusIcon",closeAlt:"CloseAltIcon",cross:"CrossIcon",trash:"TrashIcon",pinalt:"PinAltIcon",unpin:"UnpinIcon",add:"AddIcon",subtract:"SubtractIcon",close:"CloseIcon",delete:"DeleteIcon",passed:"PassedIcon",changed:"ChangedIcon",failed:"FailedIcon",clear:"ClearIcon",comment:"CommentIcon",commentadd:"CommentAddIcon",requestchange:"RequestChangeIcon",comments:"CommentsIcon",lock:"LockIcon",unlock:"UnlockIcon",key:"KeyIcon",outbox:"OutboxIcon",credit:"CreditIcon",button:"ButtonIcon",type:"TypeIcon",pointerdefault:"PointerDefaultIcon",pointerhand:"PointerHandIcon",browser:"BrowserIcon",tablet:"TabletIcon",mobile:"MobileIcon",watch:"WatchIcon",sidebar:"SidebarIcon",sidebaralt:"SidebarAltIcon",sidebaralttoggle:"SidebarAltToggleIcon",sidebartoggle:"SidebarToggleIcon",bottombar:"BottomBarIcon",bottombartoggle:"BottomBarToggleIcon",cpu:"CPUIcon",database:"DatabaseIcon",memory:"MemoryIcon",structure:"StructureIcon",box:"BoxIcon",power:"PowerIcon",photo:"PhotoIcon",component:"ComponentIcon",grid:"GridIcon",outline:"OutlineIcon",photodrag:"PhotoDragIcon",search:"SearchIcon",zoom:"ZoomIcon",zoomout:"ZoomOutIcon",zoomreset:"ZoomResetIcon",eye:"EyeIcon",eyeclose:"EyeCloseIcon",lightning:"LightningIcon",lightningoff:"LightningOffIcon",contrast:"ContrastIcon",switchalt:"SwitchAltIcon",mirror:"MirrorIcon",grow:"GrowIcon",paintbrush:"PaintBrushIcon",ruler:"RulerIcon",stop:"StopIcon",camera:"CameraIcon",video:"VideoIcon",speaker:"SpeakerIcon",play:"PlayIcon",playback:"PlayBackIcon",playnext:"PlayNextIcon",rewind:"RewindIcon",fastforward:"FastForwardIcon",stopalt:"StopAltIcon",sidebyside:"SideBySideIcon",stacked:"StackedIcon",sun:"SunIcon",moon:"MoonIcon",book:"BookIcon",document:"DocumentIcon",copy:"CopyIcon",category:"CategoryIcon",folder:"FolderIcon",print:"PrintIcon",graphline:"GraphLineIcon",calendar:"CalendarIcon",graphbar:"GraphBarIcon",menu:"MenuIcon",menualt:"MenuIcon",filter:"FilterIcon",docchart:"DocChartIcon",doclist:"DocListIcon",markup:"MarkupIcon",bold:"BoldIcon",paperclip:"PaperClipIcon",listordered:"ListOrderedIcon",listunordered:"ListUnorderedIcon",paragraph:"ParagraphIcon",markdown:"MarkdownIcon",repository:"RepoIcon",commit:"CommitIcon",branch:"BranchIcon",pullrequest:"PullRequestIcon",merge:"MergeIcon",apple:"AppleIcon",linux:"LinuxIcon",ubuntu:"UbuntuIcon",windows:"WindowsIcon",storybook:"StorybookIcon",azuredevops:"AzureDevOpsIcon",bitbucket:"BitbucketIcon",chrome:"ChromeIcon",chromatic:"ChromaticIcon",componentdriven:"ComponentDrivenIcon",discord:"DiscordIcon",facebook:"FacebookIcon",figma:"FigmaIcon",gdrive:"GDriveIcon",github:"GithubIcon",gitlab:"GitlabIcon",google:"GoogleIcon",graphql:"GraphqlIcon",medium:"MediumIcon",redux:"ReduxIcon",twitter:"TwitterIcon",youtube:"YoutubeIcon",vscode:"VSCodeIcon"},Pw=({alt:e,...t})=>f.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?f.createElement("title",null,e):null,f.createElement("defs",null,f.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),f.createElement("mask",{id:"b",fill:"#fff"},f.createElement("use",{xlinkHref:"#a"})),f.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),f.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),Bw=e=>f.createElement("svg",{viewBox:"0 0 64 64",...e},f.createElement("title",null,"Storybook icon"),f.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),f.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),f.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Fw=gt` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Hw=A.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${Fw} 0.7s linear infinite`,mixBlendMode:"difference"})),b0=A.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),Nw=A.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:$e(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),jw=A.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),y0=A.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.barTextColor})),Dw=A(Lc)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),Uw=gt` + from { content: "..." } + 33% { content: "." } + 66% { content: ".." } + to { content: "..." } +`,Vw=A.span({"&::after":{content:"'...'",animation:`${Uw} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),cd=({progress:e,error:t,size:r,...n})=>{if(t)return f.createElement(b0,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},f.createElement(Dw,null),f.createElement(y0,null,t.message));if(e){let{value:a,modules:l}=e,{message:i}=e;return l&&(i+=` ${l.complete} / ${l.total} modules`),f.createElement(b0,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},f.createElement(Nw,null,f.createElement(jw,{style:{width:`${a*100}%`}})),f.createElement(y0,null,i,a<1&&f.createElement(Vw,{key:i})))}return f.createElement(Hw,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})};function Ww(e){let t={},r=e.split("&");for(let n=0;n{let[n,a]=e.split("?"),l=a?{...Ww(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(l).map(i=>`${i[0]}=${i[1]}`).join("&")}`},Gw=A.pre` + line-height: 18px; + padding: 11px 1rem; + white-space: pre-wrap; + background: rgba(0, 0, 0, 0.05); + color: ${F.darkest}; + border-radius: 3px; + margin: 1rem 0; + width: 100%; + display: block; + overflow: hidden; + font-family: ${nt.fonts.mono}; + font-size: ${nt.size.s2-1}px; +`,qw=({code:e,...t})=>f.createElement(Gw,{id:"clipboard-code",...t},e),ud=V1,fd={};Object.keys(V1).forEach(e=>{fd[e]=o.forwardRef((t,r)=>o.createElement(e,{...t,ref:r}))});const Yw=Object.freeze(Object.defineProperty({__proto__:null,A:I1,ActionBar:hl,AddonPanel:Ow,Badge:My,Bar:Bl,Blockquote:A1,Button:Ot,ClipboardCode:qw,Code:$l,DL:k1,Div:_1,DocumentWrapper:Hy,EmptyTabContent:Fl,ErrorFormatter:td,FlexBar:ya,Form:_r,H1:$1,H2:Ol,H3:Tl,H4:O1,H5:T1,H6:M1,HR:L1,IconButton:Rt,IconButtonSkeleton:pw,Icons:Lw,Img:z1,LI:P1,Link:qt,ListItem:od,Loader:cd,Modal:Jy,OL:B1,P:F1,Placeholder:o6,Pre:H1,ResetWrapper:Ml,ScrollArea:ha,Separator:Dl,Spaced:t6,Span:N1,StorybookIcon:Bw,StorybookLogo:Pw,Symbols:zw,SyntaxHighlighter:ba,TT:D1,TabBar:Hl,TabButton:pn,TabWrapper:Aw,Table:j1,Tabs:Nl,TabsState:jl,TooltipLinkList:ld,TooltipMessage:K6,TooltipNote:Z6,UL:U1,WithTooltip:D6,WithTooltipPure:ad,Zoom:ed,codeCommon:vt,components:ud,createCopyToClipboardFunction:gc,getStoryHref:dd,icons:Xn,interleaveSeparators:_w,nameSpaceClassNames:ne,resetComponents:fd,withReset:ae},Symbol.toStringTag,{value:"Module"}));function Kw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},rn(e,t)}function Xw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rn(e,t)}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zo(e)}function Zw(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pd=function(){return!!e})()}function Jw(e,t,r){if(pd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&rn(a,r.prototype),a}function Po(e){var t=typeof Map=="function"?new Map:void 0;return Po=function(n){if(n===null||!Zw(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Jw(n,arguments,zo(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),rn(a,n)},Po(e)}var ot=function(e){Xw(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,Kw(n)}return t}(Po(Error));function Xa(e){return Math.round(e*255)}function Qw(e,t,r){return Xa(e)+","+Xa(t)+","+Xa(r)}function nn(e,t,r,n){if(n===void 0&&(n=Qw),t===0)return n(r,r,r);var a=(e%360+360)%360/60,l=(1-Math.abs(2*r-1))*t,i=l*(1-Math.abs(a%2-1)),c=0,s=0,d=0;a>=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,m=s+u,p=d+u;return n(h,m,p)}var w0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function e8(e){if(typeof e!="string")return e;var t=e.toLowerCase();return w0[t]?"#"+w0[t]:e}var t8=/^#[a-fA-F0-9]{6}$/,r8=/^#[a-fA-F0-9]{8}$/,n8=/^#[a-fA-F0-9]{3}$/,a8=/^#[a-fA-F0-9]{4}$/,Za=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,o8=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,l8=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,i8=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Cr(e){if(typeof e!="string")throw new ot(3);var t=e8(e);if(t.match(t8))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(r8)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(n8))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(a8)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Za.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=o8.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=l8.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+nn(c,s,d)+")",h=Za.exec(u);if(!h)throw new ot(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var m=i8.exec(t.substring(0,50));if(m){var p=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,g=parseInt(""+m[3],10)/100,y="rgb("+nn(p,v,g)+")",x=Za.exec(y);if(!x)throw new ot(4,t,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new ot(5)}function s8(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?Zn(e,t,r):"rgba("+nn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zn(e.hue,e.saturation,e.lightness):"rgba("+nn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ot(2)}function Fo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Bo("#"+Nt(e)+Nt(t)+Nt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Bo("#"+Nt(e.red)+Nt(e.green)+Nt(e.blue));throw new ot(6)}function Qe(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Cr(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Fo(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Fo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ot(7)}var p8=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},h8=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},g8=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},m8=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function Mt(e){if(typeof e!="object")throw new ot(8);if(h8(e))return Qe(e);if(p8(e))return Fo(e);if(m8(e))return f8(e);if(g8(e))return u8(e);throw new ot(8)}function hd(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):hd(e,t,a)}}function Ae(e){return hd(e,e.length,[])}function v8(e,t){if(t==="transparent")return t;var r=Tt(t);return Mt(Z({},r,{hue:r.hue+parseFloat(e)}))}Ae(v8);function kr(e,t,r){return Math.max(e,Math.min(t,r))}function b8(e,t){if(t==="transparent")return t;var r=Tt(t);return Mt(Z({},r,{lightness:kr(0,1,r.lightness-parseFloat(e))}))}var y8=Ae(b8),Ke=y8;function w8(e,t){if(t==="transparent")return t;var r=Tt(t);return Mt(Z({},r,{saturation:kr(0,1,r.saturation-parseFloat(e))}))}Ae(w8);function x8(e,t){if(t==="transparent")return t;var r=Tt(t);return Mt(Z({},r,{lightness:kr(0,1,r.lightness+parseFloat(e))}))}var E8=Ae(x8),jt=E8;function C8(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Cr(t),a=Z({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=Cr(r),i=Z({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),c=a.alpha-i.alpha,s=parseFloat(e)*2-1,d=s*c===-1?s:s+c,u=1+s*c,h=(d/u+1)/2,m=1-h,p={red:Math.floor(a.red*h+i.red*m),green:Math.floor(a.green*h+i.green*m),blue:Math.floor(a.blue*h+i.blue*m),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Qe(p)}var S8=Ae(C8),gd=S8;function R8(e,t){if(t==="transparent")return t;var r=Cr(t),n=typeof r.alpha=="number"?r.alpha:1,a=Z({},r,{alpha:kr(0,1,(n*100+parseFloat(e)*100)/100)});return Qe(a)}var I8=Ae(R8),An=I8;function A8(e,t){if(t==="transparent")return t;var r=Tt(t);return Mt(Z({},r,{saturation:kr(0,1,r.saturation+parseFloat(e))}))}Ae(A8);function _8(e,t){return t==="transparent"?t:Mt(Z({},Tt(t),{hue:parseFloat(e)}))}Ae(_8);function k8(e,t){return t==="transparent"?t:Mt(Z({},Tt(t),{lightness:parseFloat(e)}))}Ae(k8);function $8(e,t){return t==="transparent"?t:Mt(Z({},Tt(t),{saturation:parseFloat(e)}))}Ae($8);function O8(e,t){return t==="transparent"?t:gd(parseFloat(e),"rgb(0, 0, 0)",t)}Ae(O8);function T8(e,t){return t==="transparent"?t:gd(parseFloat(e),"rgb(255, 255, 255)",t)}Ae(T8);function M8(e,t){if(t==="transparent")return t;var r=Cr(t),n=typeof r.alpha=="number"?r.alpha:1,a=Z({},r,{alpha:kr(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Qe(a)}var L8=Ae(M8),re=L8,z8=is,P8=Ou,B8=Object.prototype,F8=B8.hasOwnProperty;function H8(e,t,r){var n=e[t];(!(F8.call(e,t)&&P8(n,r))||r===void 0&&!(t in e))&&z8(e,t,r)}var Ul=H8,N8=Ul,j8=ss,D8=Tu,x0=ta,U8=Mu;function V8(e,t,r,n){if(!x0(e))return e;t=j8(t,e);for(var a=-1,l=t.length,i=l-1,c=e;c!=null&&++a(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),C0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},_9=["style","script"],k9=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,$9=/mailto:/i,O9=/\n{2,}$/,bd=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,T9=/^ *> ?/gm,M9=/^ {2,}\n/,L9=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yd=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,wd=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,z9=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,P9=/^(?:\n *)*\n/,B9=/\r\n?/g,F9=/^\[\^([^\]]+)](:.*)\n/,H9=/^\[\^([^\]]+)]/,N9=/\f/g,j9=/^\s*?\[(x|\s)\]/,xd=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ed=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Cd=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Ho=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,D9=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sd=/^)/,U9=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,No=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,V9=/^\{.*\}$/,W9=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,G9=/^<([^ >]+@[^ >]+)>/,q9=/^<([^ >]+:\/[^ >]+)>/,Y9=/-([a-z])?/gi,Rd=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,K9=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,X9=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z9=/^\[([^\]]*)\] ?\[([^\]]*)\]/,J9=/(\[|\])/g,Q9=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ex=/\t/g,tx=/^ *\| */,rx=/(^ *\||\| *$)/g,nx=/ *$/,ax=/^ *:-+: *$/,ox=/^ *:-+ *$/,lx=/^ *-+: *$/,ix=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,sx=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,cx=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,dx=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ux=/^\\([^0-9A-Za-z\s])/,fx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,px=/^\n+/,hx=/^([ \t]*)/,gx=/\\([^\\])/g,S0=/ *\n+$/,mx=/(?:^|\n)( *)$/,Wl="(?:\\d+\\.)",Gl="(?:[*+-])";function Id(e){return"( *)("+(e===1?Wl:Gl)+") +"}const Ad=Id(1),_d=Id(2);function kd(e){return new RegExp("^"+(e===1?Ad:_d))}const vx=kd(1),bx=kd(2);function $d(e){return new RegExp("^"+(e===1?Ad:_d)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Wl:Gl)+" )[^\\n]*)*(\\n|$)","gm")}const Od=$d(1),Td=$d(2);function Md(e){const t=e===1?Wl:Gl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ld=Md(1),zd=Md(2);function R0(e,t){const r=t===1,n=r?Ld:zd,a=r?Od:Td,l=r?vx:bx;return{t(i,c,s){const d=mx.exec(s);return d&&(c.o||!c._&&!c.u)?n.exec(i=d[1]+i):null},i:W.HIGH,l(i,c,s){const d=r?+i[2]:void 0,u=i[0].replace(O9,` +`).match(a);let h=!1;return{p:u.map(function(m,p){const v=l.exec(m)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),y=m.replace(g,"").replace(l,""),x=p===u.length-1,E=y.indexOf(` + +`)!==-1||x&&h;h=E;const b=s._,w=s.o;let C;s.o=!0,E?(s._=!1,C=y.replace(S0,` + +`)):(s._=!0,C=y.replace(S0,""));const S=c(C,s);return s._=b,s.o=w,S}),m:r,g:d}},h:(i,c,s)=>e(i.m?"ol":"ul",{key:s.k,start:i.g},i.p.map(function(d,u){return e("li",{key:u},c(d,s))}))}}const yx=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,wx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Pd=[bd,yd,wd,xd,Cd,Ed,Sd,Rd,Od,Ld,Td,zd],xx=[...Pd,/^[^\n]+(?: \n|\n{2,})/,Ho,No];function Ex(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Cx(e){return lx.test(e)?"right":ax.test(e)?"center":ox.test(e)?"left":null}function I0(e,t,r){const n=r.$;r.$=!0;const a=t(e.trim(),r);r.$=n;let l=[[]];return a.forEach(function(i,c){i.type==="tableSeparator"?c!==0&&c!==a.length-1&&l.push([]):(i.type!=="text"||a[c+1]!=null&&a[c+1].type!=="tableSeparator"||(i.v=i.v.replace(nx,"")),l[l.length-1].push(i))}),l}function Sx(e,t,r){r._=!0;const n=I0(e[1],t,r),a=e[2].replace(rx,"").split("|").map(Cx),l=function(i,c,s){return i.trim().split(` +`).map(function(d){return I0(d,c,s)})}(e[3],t,r);return r._=!1,{S:a,A:l,L:n,type:"table"}}function A0(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function yt(e){return function(t,r){return r._?e.exec(t):null}}function wt(e){return function(t,r){return r._||r.u?e.exec(t):null}}function ft(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Hr(e){return function(t){return e.exec(t)}}function Rx(e,t,r){if(t._||t.u||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(l=>!Pd.some(i=>i.test(l))&&(n+=l+` +`,l.trim()));const a=n.trimEnd();return a==""?null:[n,a]}function ir(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function _0(e){return e.replace(gx,"$1")}function Hn(e,t,r){const n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const l=e(t,r);return r._=n,r.u=a,l}function Ix(e,t,r){const n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const l=e(t,r);return r._=n,r.u=a,l}function Ax(e,t,r){return r._=!1,e(t,r)}const Qa=(e,t,r)=>({v:Hn(t,e[1],r)});function eo(){return{}}function to(){return null}function _x(...e){return e.filter(Boolean).join(" ")}function ro(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var W;function kx(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Ex,t.namedCodesToUnicode=t.namedCodesToUnicode?Ut({},C0,t.namedCodesToUnicode):C0;const r=t.createElement||o.createElement;function n(p,v,...g){const y=ro(t.overrides,`${p}.props`,{});return r(function(x,E){const b=ro(E,x);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:ro(E,`${x}.component`,x):x}(p,t.overrides),Ut({},v,y,{className:_x(v==null?void 0:v.className,y.className)||void 0}),...g)}function a(p){let v=!1;t.forceInline?v=!0:t.forceBlock||(v=Q9.test(p)===!1);const g=u(d(v?p:`${p.trimEnd().replace(px,"")} + +`,{_:v}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const y=t.wrapper||(v?"span":"div");let x;if(g.length>1||t.forceWrapper)x=g;else{if(g.length===1)return x=g[0],typeof x=="string"?n("span",{key:"outer"},x):x;x=null}return o.createElement(y,{key:"outer"},x)}function l(p){const v=p.match(k9);return v?v.reduce(function(g,y,x){const E=y.indexOf("=");if(E!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(U9)===null&&(R=R.replace(Y9,function(I,_){return _.toUpperCase()})),R}(y.slice(0,E)).trim(),w=function(R){const I=R[0];return(I==='"'||I==="'")&&R.length>=2&&R[R.length-1]===I?R.slice(1,-1):R}(y.slice(E+1).trim()),C=E0[b]||b,S=g[C]=function(R,I){return R==="style"?I.split(/;\s?/).reduce(function(_,k){const $=k.slice(0,k.indexOf(":"));return _[$.replace(/(-[a-z])/g,O=>O[1].toUpperCase())]=k.slice($.length+1).trim(),_},{}):R==="href"?ir(I):(I.match(V9)&&(I=I.slice(1,I.length-1)),I==="true"||I!=="false"&&I)}(b,w);typeof S=="string"&&(Ho.test(S)||No.test(S))&&(g[C]=o.cloneElement(a(S.trim()),{key:x}))}else y!=="style"&&(g[E0[y]||y]=!0);return g},{}):null}const i=[],c={},s={blockQuote:{t:ft(bd),i:W.HIGH,l:(p,v,g)=>({v:v(p[0].replace(T9,""),g)}),h:(p,v,g)=>n("blockquote",{key:g.k},v(p.v,g))},breakLine:{t:Hr(M9),i:W.HIGH,l:eo,h:(p,v,g)=>n("br",{key:g.k})},breakThematic:{t:ft(L9),i:W.HIGH,l:eo,h:(p,v,g)=>n("hr",{key:g.k})},codeBlock:{t:ft(wd),i:W.MAX,l:p=>({v:p[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(p,v,g)=>n("pre",{key:g.k},n("code",Ut({},p.O,{className:p.M?`lang-${p.M}`:""}),p.v))},codeFenced:{t:ft(yd),i:W.MAX,l:p=>({O:l(p[3]||""),v:p[4],M:p[2]||void 0,type:"codeBlock"})},codeInline:{t:wt(z9),i:W.LOW,l:p=>({v:p[2]}),h:(p,v,g)=>n("code",{key:g.k},p.v)},footnote:{t:ft(F9),i:W.MAX,l:p=>(i.push({I:p[2],j:p[1]}),{}),h:to},footnoteReference:{t:yt(H9),i:W.HIGH,l:p=>({v:p[1],B:`#${t.slugify(p[1])}`}),h:(p,v,g)=>n("a",{key:g.k,href:ir(p.B)},n("sup",{key:g.k},p.v))},gfmTask:{t:yt(j9),i:W.HIGH,l:p=>({R:p[1].toLowerCase()==="x"}),h:(p,v,g)=>n("input",{checked:p.R,key:g.k,readOnly:!0,type:"checkbox"})},heading:{t:ft(t.enforceAtxHeadings?Ed:xd),i:W.HIGH,l:(p,v,g)=>({v:Hn(v,p[2],g),T:t.slugify(p[2]),C:p[1].length}),h:(p,v,g)=>n(`h${p.C}`,{id:p.T,key:g.k},v(p.v,g))},headingSetext:{t:ft(Cd),i:W.MAX,l:(p,v,g)=>({v:Hn(v,p[1],g),C:p[2]==="="?1:2,type:"heading"})},htmlComment:{t:Hr(Sd),i:W.HIGH,l:()=>({}),h:to},image:{t:wt(wx),i:W.HIGH,l:p=>({D:p[1],B:_0(p[2]),F:p[3]}),h:(p,v,g)=>n("img",{key:g.k,alt:p.D||void 0,title:p.F||void 0,src:ir(p.B)})},link:{t:yt(yx),i:W.LOW,l:(p,v,g)=>({v:Ix(v,p[1],g),B:_0(p[2]),F:p[3]}),h:(p,v,g)=>n("a",{key:g.k,href:ir(p.B),title:p.F},v(p.v,g))},linkAngleBraceStyleDetector:{t:yt(q9),i:W.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],type:"link"})},linkBareUrlDetector:{t:(p,v)=>v.N?null:yt(W9)(p,v),i:W.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],F:void 0,type:"link"})},linkMailtoDetector:{t:yt(G9),i:W.MAX,l(p){let v=p[1],g=p[1];return $9.test(g)||(g="mailto:"+g),{v:[{v:v.replace("mailto:",""),type:"text"}],B:g,type:"link"}}},orderedList:R0(n,1),unorderedList:R0(n,2),newlineCoalescer:{t:ft(P9),i:W.LOW,l:eo,h:()=>` +`},paragraph:{t:Rx,i:W.LOW,l:Qa,h:(p,v,g)=>n("p",{key:g.k},v(p.v,g))},ref:{t:yt(K9),i:W.MAX,l:p=>(c[p[1]]={B:p[2],F:p[4]},{}),h:to},refImage:{t:wt(X9),i:W.MAX,l:p=>({D:p[1]||void 0,P:p[2]}),h:(p,v,g)=>n("img",{key:g.k,alt:p.D,src:ir(c[p.P].B),title:c[p.P].F})},refLink:{t:yt(Z9),i:W.MAX,l:(p,v,g)=>({v:v(p[1],g),Z:v(p[0].replace(J9,"\\$1"),g),P:p[2]}),h:(p,v,g)=>c[p.P]?n("a",{key:g.k,href:ir(c[p.P].B),title:c[p.P].F},v(p.v,g)):n("span",{key:g.k},v(p.Z,g))},table:{t:ft(Rd),i:W.HIGH,l:Sx,h:(p,v,g)=>n("table",{key:g.k},n("thead",null,n("tr",null,p.L.map(function(y,x){return n("th",{key:x,style:A0(p,x)},v(y,g))}))),n("tbody",null,p.A.map(function(y,x){return n("tr",{key:x},y.map(function(E,b){return n("td",{key:b,style:A0(p,b)},v(E,g))}))})))},tableSeparator:{t:function(p,v){return v.$?(v._=!0,tx.exec(p)):null},i:W.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Hr(fx),i:W.MIN,l:p=>({v:p[0].replace(D9,(v,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:v)}),h:p=>p.v},textBolded:{t:wt(ix),i:W.MED,l:(p,v,g)=>({v:v(p[2],g)}),h:(p,v,g)=>n("strong",{key:g.k},v(p.v,g))},textEmphasized:{t:wt(sx),i:W.LOW,l:(p,v,g)=>({v:v(p[2],g)}),h:(p,v,g)=>n("em",{key:g.k},v(p.v,g))},textEscaped:{t:wt(ux),i:W.HIGH,l:p=>({v:p[1],type:"text"})},textMarked:{t:wt(cx),i:W.LOW,l:Qa,h:(p,v,g)=>n("mark",{key:g.k},v(p.v,g))},textStrikethroughed:{t:wt(dx),i:W.LOW,l:Qa,h:(p,v,g)=>n("del",{key:g.k},v(p.v,g))}};t.disableParsingRawHTML!==!0&&(s.htmlBlock={t:Hr(Ho),i:W.HIGH,l(p,v,g){const[,y]=p[3].match(hx),x=new RegExp(`^${y}`,"gm"),E=p[3].replace(x,""),b=(w=E,xx.some(I=>I.test(w))?Ax:Hn);var w;const C=p[1].toLowerCase(),S=_9.indexOf(C)!==-1;g.N=g.N||C==="a";const R=S?p[3]:b(v,E,g);return g.N=!1,{O:l(p[2]),v:R,G:S,H:S?C:p[1]}},h:(p,v,g)=>n(p.H,Ut({key:g.k},p.O),p.G?p.v:v(p.v,g))},s.htmlSelfClosing={t:Hr(No),i:W.HIGH,l:p=>({O:l(p[2]||""),H:p[1]}),h:(p,v,g)=>n(p.H,Ut({},p.O,{key:g.k}))});const d=function(p){let v=Object.keys(p);function g(y,x){let E=[],b="";for(;y;){let w=0;for(;w{let{children:t,options:r}=e,n=function(a,l){if(a==null)return{};var i,c,s={},d=Object.keys(a);for(c=0;c=0||(s[i]=a[i]);return s}(e,A9);return o.cloneElement(kx(t,r),n)};function $x(e,t,r,n){for(var a=e.length,l=r+(n?1:-1);n?l--:++l-1}var Ux=Dx;function Vx(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=oE){var d=t?null:nE(e);if(d)return aE(d);i=!1,a=rE,s=new Qx}else s=t?[]:c;e:for(;++nfunction(){return t||(0,e[Dd(e)[0]])((t={exports:{}}).exports,t),t.exports},tR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dd(t))!eR.call(e,a)&&a!==r&&jd(e,a,{get:()=>t[a],enumerable:!(n=JS(t,a))||n.enumerable});return e},Yl=(e,t,r)=>(r=e!=null?ZS(QS(e)):{},tR(!e||!e.__esModule?jd(r,"default",{value:e,enumerable:!0}):r,e)),rR=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],nR=["detail"];function aR(e){const t=rR.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&nR.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var Ud=Pe({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var i=42;n[a]=i;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,a);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),Vd=Pe({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Ud();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),oR=Pe({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,l="[object Function]";t.exports=function(c){var s=this;if(typeof s!="function"||a.call(s)!==l)throw new TypeError(r+s);for(var d=n.call(arguments,1),u,h=function(){if(this instanceof u){var y=s.apply(this,d.concat(n.call(arguments)));return Object(y)===y?y:this}else return s.apply(c,d.concat(n.call(arguments)))},m=Math.max(0,s.length-d.length),p=[],v=0;v"u"?r:h(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?h(h([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:h(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:h(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?h(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":p,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function O(T){var H;if(T==="%AsyncFunction%")H=i("async function () {}");else if(T==="%GeneratorFunction%")H=i("function* () {}");else if(T==="%AsyncGeneratorFunction%")H=i("async function* () {}");else if(T==="%AsyncGenerator%"){var M=O("%AsyncGeneratorFunction%");M&&(H=M.prototype)}else if(T==="%AsyncIteratorPrototype%"){var L=O("%AsyncGenerator%");L&&(H=h(L.prototype))}return v[T]=H,H},y={"%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"]},x=Kl(),E=lR(),b=x.call(Function.call,Array.prototype.concat),w=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,k=function(T){var H=S(T,0,1),M=S(T,-1);if(H==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&H!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var L=[];return C(T,I,function(N,U,B,D){L[L.length]=B?C(D,_,"$1"):U||N}),L},$=function(T,H){var M=T,L;if(E(y,M)&&(L=y[M],M="%"+L[0]+"%"),E(v,M)){var N=v[M];if(N===m&&(N=g(M)),typeof N>"u"&&!H)throw new l("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:L,name:M,value:N}}throw new n("intrinsic "+T+" does not exist!")};t.exports=function(T,H){if(typeof T!="string"||T.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof H!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,T)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=k(T),L=M.length>0?M[0]:"",N=$("%"+L+"%",H),U=N.name,B=N.value,D=!1,Q=N.alias;Q&&(L=Q[0],w(M,b([0,1],Q)));for(var oe=1,J=!0;oe=M.length){var q=c(B,ee);J=!!q,J&&"get"in q&&!("originalValue"in q.get)?B=q.get:B=B[ee]}else J=E(B,ee),B=B[ee];J&&!D&&(v[U]=B)}}return B}}}),iR=Pe({"node_modules/call-bind/index.js"(e,t){var r=Kl(),n=Wd(),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(l,a),c=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(m){var p=i(r,l,arguments);if(c&&s){var v=c(p,"length");v.configurable&&s(p,"length",{value:1+d(0,m.length-(arguments.length-1))})}return p};var u=function(){return i(r,a,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),sR=Pe({"node_modules/call-bind/callBound.js"(e,t){var r=Wd(),n=iR(),a=n(r("String.prototype.indexOf"));t.exports=function(i,c){var s=r(i,!!c);return typeof s=="function"&&a(i,".prototype.")>-1?n(s):s}}}),cR=Pe({"node_modules/has-tostringtag/shams.js"(e,t){var r=Ud();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),dR=Pe({"node_modules/is-regex/index.js"(e,t){var r=sR(),n=cR()(),a,l,i,c;n&&(a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),i={},s=function(){throw i},c={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=s));var s,d=r("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,h="[object RegExp]";t.exports=n?function(p){if(!p||typeof p!="object")return!1;var v=u(p,"lastIndex"),g=v&&a(v,"value");if(!g)return!1;try{l(p,c)}catch(y){return y===i}}:function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===h}}}),uR=Pe({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),fR=Pe({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Vd()();n?(a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:l.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,l,i}}),pR=Yl(dR()),hR=Yl(uR()),gR=Yl(fR());function mR(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var vR=typeof global=="object"&&global&&global.Object===Object&&global,bR=vR,yR=typeof self=="object"&&self&&self.Object===Object&&self,wR=bR||yR||Function("return this")(),Xl=wR,xR=Xl.Symbol,Sr=xR,Gd=Object.prototype,ER=Gd.hasOwnProperty,CR=Gd.toString,Nr=Sr?Sr.toStringTag:void 0;function SR(e){var t=ER.call(e,Nr),r=e[Nr];try{e[Nr]=void 0;var n=!0}catch{}var a=CR.call(e);return n&&(t?e[Nr]=r:delete e[Nr]),a}var RR=SR,IR=Object.prototype,AR=IR.toString;function _R(e){return AR.call(e)}var kR=_R,$R="[object Null]",OR="[object Undefined]",F0=Sr?Sr.toStringTag:void 0;function TR(e){return e==null?e===void 0?OR:$R:F0&&F0 in Object(e)?RR(e):kR(e)}var MR=TR,H0=Sr?Sr.prototype:void 0;H0&&H0.toString;function LR(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qd=LR,zR="[object AsyncFunction]",PR="[object Function]",BR="[object GeneratorFunction]",FR="[object Proxy]";function HR(e){if(!qd(e))return!1;var t=MR(e);return t==PR||t==BR||t==zR||t==FR}var NR=HR,jR=Xl["__core-js_shared__"],ao=jR,N0=function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DR(e){return!!N0&&N0 in e}var UR=DR,VR=Function.prototype,WR=VR.toString;function GR(e){if(e!=null){try{return WR.call(e)}catch{}try{return e+""}catch{}}return""}var qR=GR,YR=/[\\^$.*+?()[\]{}|]/g,KR=/^\[object .+?Constructor\]$/,XR=Function.prototype,ZR=Object.prototype,JR=XR.toString,QR=ZR.hasOwnProperty,eI=RegExp("^"+JR.call(QR).replace(YR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tI(e){if(!qd(e)||UR(e))return!1;var t=NR(e)?eI:KR;return t.test(qR(e))}var rI=tI;function nI(e,t){return e==null?void 0:e[t]}var aI=nI;function oI(e,t){var r=aI(e,t);return rI(r)?r:void 0}var Yd=oI;function lI(e,t){return e===t||e!==e&&t!==t}var iI=lI,sI=Yd(Object,"create"),an=sI;function cI(){this.__data__=an?an(null):{},this.size=0}var dI=cI;function uI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fI=uI,pI="__lodash_hash_undefined__",hI=Object.prototype,gI=hI.hasOwnProperty;function mI(e){var t=this.__data__;if(an){var r=t[e];return r===pI?void 0:r}return gI.call(t,e)?t[e]:void 0}var vI=mI,bI=Object.prototype,yI=bI.hasOwnProperty;function wI(e){var t=this.__data__;return an?t[e]!==void 0:yI.call(t,e)}var xI=wI,EI="__lodash_hash_undefined__";function CI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=an&&t===void 0?EI:t,this}var SI=CI;function $r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var zI=LI;function PI(e,t){var r=this.__data__,n=xa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var BI=PI;function Or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,l="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;isA(e).replace(/\n\s*/g,"").trim()),dA=function(t,r){const n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let l=n;return l=l.replace(t,"function"),l+a},uA=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Xd(e){if(!iA(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=aR(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var fA=function(t){let r,n,a,l;return function(c,s){try{if(c==="")return l=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;const d=n.get(this)||this;for(;a.length&&d!==a[0];)a.shift(),l.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return uA.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,pR.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,hR.default)(s)){if(!t.allowFunction)return;const{name:h}=s,m=s.toString();return m.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${h}|${(()=>{}).toString()}`:`_function_${h}|${cA(dA(c,m))}`}if((0,gR.default)(s)){if(!t.allowSymbol)return;const h=Symbol.keyFor(s);return h!==void 0?`_gsymbol_${h}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(l)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;const u=r.get(s);if(!u){const h=Array.isArray(s)?s:Xd(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(h,{"_constructor-name_":s.constructor.name})}catch{}return l.push(c),a.unshift(h),r.set(s,JSON.stringify(l)),s!==h&&n.set(s,h),h}return`_duplicate_${u}`}catch{return}}},pA={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},hA=(e,t={})=>{const r={...pA,...t};return JSON.stringify(Xd(e),fA(r),t.space)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + *//** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */function gA(e){var t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a,l=!0,i=" ";function c(E,b){var w=b.appendChild(d(E));if(E.children.length){var C=u(E.isCollapsed);E.children.forEach(function(S){c(S,C)}),w.appendChild(C)}}function s(E,b){var w=!1,C=u(w);if(b.forEach(function(S){c(S,C)}),a=E||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),b.length===0?a:a.appendChild(C)}function d(E){var b=document.createElement("li"),w=document.createElement("a");return e.listItemClass&&b.setAttribute("class",e.listItemClass),e.onClick&&(w.onclick=e.onClick),e.includeTitleTags&&w.setAttribute("title",E.textContent),e.includeHtml&&E.childNodes.length?t.call(E.childNodes,function(C){w.appendChild(C.cloneNode(!0))}):w.textContent=E.textContent,w.setAttribute("href",e.basePath+"#"+E.id),w.setAttribute("class",e.linkClass+i+"node-name--"+E.nodeName+i+e.extraLinkClasses),b.appendChild(w),b}function u(E){var b=e.orderedList?"ol":"ul",w=document.createElement(b),C=e.listClass+i+e.extraListClasses;return E&&(C=C+i+e.collapsibleClass,C=C+i+e.isCollapsedClass),w.setAttribute("class",C),w}function h(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var E;E=document.querySelector(e.scrollContainer).scrollTop}else E=document.documentElement.scrollTop||n.scrollTop;var b=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),E>e.fixedSidebarOffset?b.className.indexOf(e.positionFixedClass)===-1&&(b.className+=i+e.positionFixedClass):b.className=b.className.replace(i+e.positionFixedClass,"")}function m(E){var b=0;return E!==null&&(b=E.offsetTop,e.hasInnerContainers&&(b+=m(E.offsetParent))),b}function p(E,b){return E&&E.className!==b&&(E.className=b),E}function v(E){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var b;b=document.querySelector(e.scrollContainer).scrollTop}else b=document.documentElement.scrollTop||n.scrollTop;e.positionFixedSelector&&h();var w=E,C;if(l&&a!==null&&w.length>0){r.call(w,function(O,T){if(m(O)>b+e.headingsOffset+10){var H=T===0?T:T-1;return C=w[H],!0}else if(T===w.length-1)return C=w[w.length-1],!0});var S=a.querySelector("."+e.activeLinkClass),R=a.querySelector("."+e.linkClass+".node-name--"+C.nodeName+'[href="'+e.basePath+"#"+C.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(S===R)return;var I=a.querySelectorAll("."+e.linkClass);t.call(I,function(O){p(O,O.className.replace(i+e.activeLinkClass,""))});var _=a.querySelectorAll("."+e.listItemClass);t.call(_,function(O){p(O,O.className.replace(i+e.activeListItemClass,""))}),R&&R.className.indexOf(e.activeLinkClass)===-1&&(R.className+=i+e.activeLinkClass);var k=R&&R.parentNode;k&&k.className.indexOf(e.activeListItemClass)===-1&&(k.className+=i+e.activeListItemClass);var $=a.querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call($,function(O){O.className.indexOf(e.isCollapsedClass)===-1&&(O.className+=i+e.isCollapsedClass)}),R&&R.nextSibling&&R.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&p(R.nextSibling,R.nextSibling.className.replace(i+e.isCollapsedClass,"")),g(R&&R.parentNode.parentNode)}}function g(E){return E&&E.className.indexOf(e.collapsibleClass)!==-1&&E.className.indexOf(e.isCollapsedClass)!==-1?(p(E,E.className.replace(i+e.isCollapsedClass,"")),g(E.parentNode.parentNode)):E}function y(E){var b=E.target||E.srcElement;typeof b.className!="string"||b.className.indexOf(e.linkClass)===-1||(l=!1)}function x(){l=!0}return{enableTocAnimation:x,disableTocAnimation:y,render:s,updateToc:v}}const mA={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0};function vA(e){var t=[].reduce;function r(d){return d[d.length-1]}function n(d){return+d.nodeName.toUpperCase().replace("H","")}function a(d){try{return d instanceof window.HTMLElement||d instanceof window.parent.HTMLElement}catch{return d instanceof window.HTMLElement}}function l(d){if(!a(d))return d;if(e.ignoreHiddenElements&&(!d.offsetHeight||!d.offsetParent))return null;const u=d.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(d.innerText)):(d.innerText||d.textContent).trim());var h={id:d.id,children:[],nodeName:d.nodeName,headingLevel:n(d),textContent:u};return e.includeHtml&&(h.childNodes=d.childNodes),e.headingObjectCallback?e.headingObjectCallback(h,d):h}function i(d,u){for(var h=l(d),m=h.headingLevel,p=u,v=r(p),g=v?v.headingLevel:0,y=m-g;y>0&&(v=r(p),!(v&&m===v.headingLevel));)v&&v.children!==void 0&&(p=v.children),y--;return m>=e.collapseDepth&&(h.isCollapsed=!0),p.push(h),p}function c(d,u){var h=u;e.ignoreSelector&&(h=u.split(",").map(function(p){return p.trim()+":not("+e.ignoreSelector+")"}));try{return d.querySelectorAll(h)}catch{return console.warn("Headers not found with selector: "+h),null}}function s(d){return t.call(d,function(h,m){var p=l(m);return p&&i(p,h.nest),h},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:c}}function bA(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(d){!l(d.target)||d.target.className.indexOf("no-smooth-scroll")>-1||d.target.href.charAt(d.target.href.length-2)==="#"&&d.target.href.charAt(d.target.href.length-1)==="!"||d.target.className.indexOf(e.linkClass)===-1||yA(d.target.hash,{duration:t,offset:r,callback:function(){c(d.target.hash)}})}}function l(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function c(s){var d=document.getElementById(s.substring(1));d&&(/^(?:a|select|input|button|textarea)$/i.test(d.tagName)||(d.tabIndex=-1),d.focus())}}function yA(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||h},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),l=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(l):n.duration,c,s;requestAnimationFrame(function(m){c=m,d(m)});function d(m){s=m-c,window.scrollTo(0,n.easing(s,r,l,i)),st.clientHeight){var r=t.querySelector("."+e.activeListItemClass);if(r){var n=t.scrollTop,a=n+t.clientHeight,l=r.offsetTop,i=l+r.clientHeight;la-e.tocScrollOffset-D0&&(t.scrollTop+=i-a+e.tocScrollOffset+2*D0)}}}let G={},pt,oo,sr,et,Vr;function xA(e){G=CA(mA,e||{}),G.scrollSmooth&&(G.duration=G.scrollSmoothDuration,G.offset=G.scrollSmoothOffset,bA(G)),pt=gA(G),oo=vA(G),Zd();const t=SA(G);if(t===null)return;const r=Jd(G);if(r===null||(sr=oo.selectHeadings(t,G.headingSelector),sr===null))return;const a=oo.nestHeadingsArray(sr).nest;if(!G.skipRendering)pt.render(r,a);else return this;et=U0(function(i){pt.updateToc(sr),!G.disableTocScrollSync&&wA(G);const c=i&&i.target&&i.target.scrollingElement&&i.target.scrollingElement.scrollTop===0;(i&&(i.eventPhase===0||i.currentTarget===null)||c)&&(pt.updateToc(sr),G.scrollEndCallback&&G.scrollEndCallback(i))},G.throttleTimeout),et(),G.scrollContainer&&document.querySelector(G.scrollContainer)?(document.querySelector(G.scrollContainer).addEventListener("scroll",et,!1),document.querySelector(G.scrollContainer).addEventListener("resize",et,!1)):(document.addEventListener("scroll",et,!1),document.addEventListener("resize",et,!1));let l=null;Vr=U0(function(i){G.scrollSmooth&&pt.disableTocAnimation(i),pt.updateToc(sr),l&&clearTimeout(l),l=setTimeout(function(){pt.enableTocAnimation()},G.scrollSmoothDuration)},G.throttleTimeout),G.scrollContainer&&document.querySelector(G.scrollContainer)?document.querySelector(G.scrollContainer).addEventListener("click",Vr,!1):document.addEventListener("click",Vr,!1)}function Zd(){const e=Jd(G);e!==null&&(G.skipRendering||e&&(e.innerHTML=""),G.scrollContainer&&document.querySelector(G.scrollContainer)?(document.querySelector(G.scrollContainer).removeEventListener("scroll",et,!1),document.querySelector(G.scrollContainer).removeEventListener("resize",et,!1),pt&&document.querySelector(G.scrollContainer).removeEventListener("click",Vr,!1)):(document.removeEventListener("scroll",et,!1),document.removeEventListener("resize",et,!1),pt&&document.removeEventListener("click",Vr,!1)))}const EA=Object.prototype.hasOwnProperty;function CA(){const e={};for(let t=0;t({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:re(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Qd=e=>f.createElement($A,{...e,className:"docblock-emptyblock sb-unstyled"}),OA=A(ba)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),TA=A.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),_n=A.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${yo}`]:{margin:0}})),MA=()=>f.createElement(TA,null,f.createElement(_n,null),f.createElement(_n,{style:{width:"80%"}}),f.createElement(_n,{style:{width:"30%"}}),f.createElement(_n,{style:{width:"80%"}})),eu=({isLoading:e,error:t,language:r,code:n,dark:a,format:l=!1,...i})=>{let{typography:c}=Hs();if(e)return f.createElement(MA,null);if(t)return f.createElement(Qd,null,t);let s=f.createElement(OA,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return s;let d=a?go.dark:go.light;return f.createElement(Ns,{theme:bo({...d,fontCode:c.fonts.mono,fontBase:c.fonts.base})},s)},se=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Ql=600,LA=A.h1(ae,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Ql}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),zA=A.h2(ae,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Ql}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:re(.25,e.color.defaultText)})),PA=A.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?re(.1,e.color.defaultText):re(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[se("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[se("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[se("div")]:t,[se("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[se("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[se("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[se("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[se("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[se("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[se("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[se("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[se("img")]:{maxWidth:"100%"},[se("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[se("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[se("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[se("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[se("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[se("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[se("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),BA=A.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Ql}px)`]:{}})),FA=({children:e,toc:t})=>f.createElement(BA,{className:"sbdocs sbdocs-wrapper"},f.createElement(PA,{className:"sbdocs sbdocs-content"},e),t),Ca=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),HA=A(ya)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),NA=A.div({display:"flex",alignItems:"center",gap:4}),jA=A.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),DA=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...l})=>f.createElement(HA,{...l},f.createElement(NA,{key:"left"},e?[1,2,3].map(i=>f.createElement(jA,{key:i})):f.createElement(f.Fragment,null,f.createElement(Rt,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},f.createElement(kc,null)),f.createElement(Rt,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},f.createElement($c,null)),f.createElement(Rt,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},f.createElement(Oc,null))))),tu=o.createContext({scale:1}),{window:UA}=Oe,VA=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=UA.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return f.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:WA}=Oe,GA=WA||"iframe.html",jo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,qA=e=>{let t=o.useRef(),[r,n]=o.useState(!0),[a,l]=o.useState(),{story:i,height:c,autoplay:s,forceInitialArgs:d,renderStoryToElement:u}=e;return o.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=u(i,h,{showMain:()=>{},showError:({title:p,description:v})=>l(new Error(`${p} - ${v}`)),showException:p=>l(p)},{autoplay:s,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[s,u,i]),a?f.createElement("pre",null,f.createElement(td,{error:a})):f.createElement(f.Fragment,null,c?f.createElement("style",null,`#${jo(e)} { min-height: ${c}; transform: translateZ(0); overflow: auto }`):null,r&&f.createElement(ru,null),f.createElement("div",{ref:t,id:`${jo(e)}-inner`,"data-name":i.name}))},YA=({story:e,height:t="500px"})=>f.createElement("div",{style:{width:"100%",height:t}},f.createElement(tu.Consumer,null,({scale:r})=>f.createElement(VA,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:dd(GA,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),KA=e=>{let{inline:t}=e;return f.createElement("div",{id:jo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?f.createElement(qA,{...e}):f.createElement(YA,{...e}))},ru=()=>f.createElement(cd,null),XA=A.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),q0=A(eu)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ke(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ke(.05,e.background.content)}})),ZA=A.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Ca(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),JA=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:f.createElement(q0,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:f.createElement(q0,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function QA(e){if(o.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var e_=A(DA)({position:"absolute",top:0,left:0,right:0,height:40}),t_=A.div({overflow:"hidden",position:"relative"}),nu=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:c,className:s,layout:d="padded",...u})=>{let[h,m]=o.useState(i),{source:p,actionItem:v}=JA(a,h,m),[g,y]=o.useState(1),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[v]:[],[b,w]=o.useState(c?[...c]:[]),C=[...E,...b],{window:S}=Oe,R=o.useCallback(async _=>{let{createCopyToClipboardFunction:k}=await It(()=>Promise.resolve().then(()=>Yw),void 0,import.meta.url);k()},[]),I=_=>{let k=S.getSelection();k&&k.type==="Range"||(_.preventDefault(),b.filter($=>$.title==="Copied").length===0&&R(p.props.code).then(()=>{w([...b,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(b.filter($=>$.title!=="Copied")),1500)}))};return f.createElement(ZA,{withSource:a,withToolbar:l,...u,className:x.join(" ")},l&&f.createElement(e_,{isLoading:e,border:!0,zoom:_=>y(g*_),resetZoom:()=>y(1),storyId:QA(n),baseUrl:"./iframe.html"}),f.createElement(tu.Provider,{value:{scale:g}},f.createElement(t_,{className:"docs-story",onCopyCapture:a&&I},f.createElement(XA,{isColumn:t||!Array.isArray(n),columns:r,layout:d},f.createElement(ed.Element,{scale:g},Array.isArray(n)?n.map((_,k)=>f.createElement("div",{key:k},_)):f.createElement("div",null,n))),f.createElement(hl,{actionItems:C}))),a&&h&&p)};A(nu)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var r_=A.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:vt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),n_=({tags:e})=>{let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:f.createElement(f.Fragment,null,f.createElement(r_,null,f.createElement("tbody",null,n&&f.createElement("tr",{key:"deprecated"},f.createElement("td",{colSpan:2},f.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(l=>f.createElement("tr",{key:l.name},f.createElement("td",null,f.createElement("code",null,l.name)),f.createElement("td",null,l.description))),a&&f.createElement("tr",{key:"returns"},f.createElement("td",null,f.createElement("code",null,"Returns")),f.createElement("td",null,e.returns.description)))))},Do=8,Y0=A.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),a_=A.span(vt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),o_=A.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),l_=A.div(vt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),i_=A.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),s_=A(jc)({marginLeft:4}),c_=A(Rl)({marginLeft:4}),d_=()=>f.createElement("span",null,"-"),au=({text:e,simple:t})=>f.createElement(a_,{simple:t},e),u_=Zt(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),f_=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return uE(t)},K0=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Do)),r.map(n=>f.createElement(au,{key:n,text:n===""?'""':n}))},p_=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=o.useState(!1),[i,c]=o.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return f.createElement(au,{text:s});let d=f_(s),u=d.length;return u>Do?f.createElement(Y0,{isExpanded:i},K0(d,i),f.createElement(o_,{onClick:()=>c(!i)},i?"Show less...":`Show ${u-Do} more...`)):f.createElement(Y0,null,K0(d))}return f.createElement(ad,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{l(d)},tooltip:f.createElement(i_,{width:u_(n)},f.createElement(ba,{language:"jsx",format:!1},n))},f.createElement(l_,{className:"sbdocs-expandable"},f.createElement("span",null,s),a?f.createElement(s_,null):f.createElement(c_,null)))},lo=({value:e,initialExpandedArgs:t})=>e==null?f.createElement(d_,null):f.createElement(p_,{value:e,initialExpandedArgs:t}),h_=A.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:re(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${An(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${An(.05,e.appBorderColor)} 0 0 0 2px inset`,color:An(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${An(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),g_=e=>e==="true",m_=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:l})=>{var u;let i=o.useCallback(()=>r(!1),[r]),c=!!((u=l==null?void 0:l.table)!=null&&u.readonly);if(t===void 0)return f.createElement(Ot,{variant:"outline",size:"medium",id:ra(e),onClick:i,disabled:c},"Set boolean");let s=He(e),d=typeof t=="string"?g_(t):t;return f.createElement(h_,{"aria-disabled":c,htmlFor:s,"aria-label":e},f.createElement("input",{id:s,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:c,name:e,onBlur:n,onFocus:a}),f.createElement("span",{"aria-hidden":"true"},"False"),f.createElement("span",{"aria-hidden":"true"},"True"))},v_=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},b_=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},y_=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},w_=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},X0=A(_r.Input)(({readOnly:e})=>({opacity:e?.5:1})),x_=A.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),E_=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:l})=>{var v;let[i,c]=o.useState(!0),s=o.useRef(),d=o.useRef(),u=!!((v=l==null?void 0:l.table)!=null&&v.readonly);o.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=y_(t)),d&&d.current&&(d.current.value=w_(t)))},[t]);let h=g=>{let y=v_(g.target.value),x=new Date(t);x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let E=x.getTime();E&&r(E),c(!!E)},m=g=>{let y=b_(g.target.value),x=new Date(t);x.setHours(y.getHours()),x.setMinutes(y.getMinutes());let E=x.getTime();E&&r(E),c(!!E)},p=He(e);return f.createElement(x_,null,f.createElement(X0,{type:"date",max:"9999-12-31",ref:s,id:`${p}-date`,name:`${p}-date`,readOnly:u,onChange:h,onFocus:n,onBlur:a}),f.createElement(X0,{type:"time",id:`${p}-time`,name:`${p}-time`,ref:d,onChange:m,readOnly:u,onFocus:n,onBlur:a}),i?null:f.createElement("div",null,"invalid"))},C_=A.label({display:"flex"}),S_=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},R_=A(_r.Input)(({readOnly:e})=>({opacity:e?.5:1})),I_=({name:e,value:t,onChange:r,min:n,max:a,step:l,onBlur:i,onFocus:c,argType:s})=>{var b;let[d,u]=o.useState(typeof t=="number"?t:""),[h,m]=o.useState(!1),[p,v]=o.useState(null),g=!!((b=s==null?void 0:s.table)!=null&&b.readonly),y=o.useCallback(w=>{u(w.target.value);let C=parseFloat(w.target.value);Number.isNaN(C)?v(new Error(`'${w.target.value}' is not a number`)):(r(C),v(null))},[r,v]),x=o.useCallback(()=>{u("0"),r(0),m(!0)},[m]),E=o.useRef(null);return o.useEffect(()=>{h&&E.current&&E.current.select()},[h]),o.useEffect(()=>{d!==(typeof t=="number"?t:"")&&u(t)},[t]),t===void 0?f.createElement(Ot,{variant:"outline",size:"medium",id:ra(e),onClick:x,disabled:g},"Set number"):f.createElement(C_,null,f.createElement(R_,{ref:E,id:He(e),type:"number",onChange:y,size:"flex",placeholder:"Edit number...",value:d,valid:p?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:l,onFocus:c,onBlur:i}))},ou=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Uo=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],lu=(e,t)=>e&&t&&e.map(r=>t[r]),A_=A.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),__=A.span({"[aria-readonly=true] &":{opacity:.5}}),k_=A.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Z0=({name:e,options:t,value:r,onChange:n,isInline:a,argType:l})=>{var m;if(!t)return Jl.warn(`Checkbox with no options: ${e}`),f.createElement(f.Fragment,null,"-");let i=Uo(r,t),[c,s]=o.useState(i),d=!!((m=l==null?void 0:l.table)!=null&&m.readonly),u=p=>{let v=p.target.value,g=[...c];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(lu(g,t)),s(g)};o.useEffect(()=>{s(Uo(r,t))},[r]);let h=He(e);return f.createElement(A_,{"aria-readonly":d,isInline:a},Object.keys(t).map((p,v)=>{let g=`${h}-${v}`;return f.createElement(k_,{key:g,htmlFor:g},f.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:p,onChange:u,checked:c==null?void 0:c.includes(p)}),f.createElement(__,null,p))}))},$_=A.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),O_=A.span({"[aria-readonly=true] &":{opacity:.5}}),T_=A.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),J0=({name:e,options:t,value:r,onChange:n,isInline:a,argType:l})=>{var d;if(!t)return Jl.warn(`Radio with no options: ${e}`),f.createElement(f.Fragment,null,"-");let i=ou(r,t),c=He(e),s=!!((d=l==null?void 0:l.table)!=null&&d.readonly);return f.createElement($_,{"aria-readonly":s,isInline:a},Object.keys(t).map((u,h)=>{let m=`${c}-${h}`;return f.createElement(T_,{key:m,htmlFor:m},f.createElement("input",{type:"radio",id:m,name:m,disabled:s,value:u,onChange:p=>n(t[p.currentTarget.value]),checked:u===i}),f.createElement(O_,null,u))}))},M_={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},iu=A.select(M_,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),su=A.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Q0="Choose option...",L_=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let l=u=>{n(r[u.currentTarget.value])},i=ou(t,r)||Q0,c=He(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return f.createElement(su,null,f.createElement(Rl,null),f.createElement(iu,{disabled:s,id:c,value:i,onChange:l},f.createElement("option",{key:"no-selection",disabled:!0},Q0),Object.keys(r).map(u=>f.createElement("option",{key:u,value:u},u))))},z_=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let l=u=>{let h=Array.from(u.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(lu(h,r))},i=Uo(t,r),c=He(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return f.createElement(su,null,f.createElement(iu,{disabled:s,id:c,multiple:!0,value:i,onChange:l},Object.keys(r).map(u=>f.createElement("option",{key:u,value:u},u))))},es=e=>{let{name:t,options:r}=e;return r?e.isMulti?f.createElement(z_,{...e}):f.createElement(L_,{...e}):(Jl.warn(`Select with no options: ${t}`),f.createElement(f.Fragment,null,"-"))},P_=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,B_={check:Z0,"inline-check":Z0,radio:J0,"inline-radio":J0,select:es,"multi-select":es},cr=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?P_(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=B_[t];if(l)return f.createElement(l,{...a});throw new Error(`Unknown options type: ${t}`)},ei="value",F_="key",H_="Error",N_="Object",j_="Array",D_="String",U_="Number",V_="Boolean",W_="Date",G_="Null",q_="Undefined",Y_="Function",K_="Symbol",cu="ADD_DELTA_TYPE",du="REMOVE_DELTA_TYPE",uu="UPDATE_DELTA_TYPE";function Vt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function fu(e,t){let r=Vt(e),n=Vt(t);return(r==="Function"||n==="Function")&&n!==r}var ti=class extends o.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:l,inputRefValue:i}=this.state,c={};if(!t){if(!l.value)return;c.key=l.value}c.newValue=r(!1,n,a,c.key,i.value),e(c)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:l,deep:i}=this.props,c=o.cloneElement(r,{onClick:this.onSubmit}),s=o.cloneElement(n,{onClick:e}),d=a(ei,l,i),u=o.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(F_,l,i);h=o.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return f.createElement("span",{className:"rejt-add-value-node"},h,u,s,c)}};ti.defaultProps={onlyValue:!1,addButtonElement:f.createElement("button",null,"+"),cancelButtonElement:f.createElement("button",null,"c")};var pu=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:l}=this.state,i=n[e];t(e,a,l,i).then(()=>{let c={keyPath:a,deep:l,key:e,oldValue:i,type:du};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(c)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:l}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:s}=this.props;c(r[r.length-1],i),s({type:cu,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(l.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i,nextDeep:c}=this.state,s=l[e];a(e,i,c,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:d,onDeltaUpdate:u}=this.props;d(i[i.length-1],l),u({type:uu,keyPath:i,deep:c,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:l,getStyle:i,dataType:c,minusMenuElement:s}=this.props,{minus:d,collapsed:u}=i(e,t,r,n,c),h=l(e,t,r,n,c),m=o.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return f.createElement("span",{className:"rejt-collapsed"},f.createElement("span",{className:"rejt-collapsed-text",style:u,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:c,onDeltaUpdate:s,readOnly:d,getStyle:u,dataType:h,addButtonElement:m,cancelButtonElement:p,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:C,logger:S,onSubmitValueParser:R}=this.props,{minus:I,plus:_,delimiter:k,ul:$,addForm:O}=u(e,t,r,n,h),T=d(e,t,r,n,h),H=o.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),M=o.cloneElement(x,{onClick:c,className:"rejt-minus-menu",style:I});return f.createElement("span",{className:"rejt-not-collapsed"},f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:k},"["),!a&&H,f.createElement("ul",{className:"rejt-not-collapsed-list",style:$},t.map((L,N)=>f.createElement(Sa,{key:N,name:N.toString(),data:L,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(N),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:m,cancelButtonElement:p,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:C,logger:S,onSubmitValueParser:R}))),!T&&a&&f.createElement("div",{className:"rejt-add-form",style:O},f.createElement(ti,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:p,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:R})),f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:k},"]"),!T&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:l,getStyle:i}=this.props,c=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,l);return f.createElement("div",{className:"rejt-array-node"},f.createElement("span",{onClick:this.handleCollapseMode},f.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),c)}};pu.defaultProps={keyPath:[],deep:0,minusMenuElement:f.createElement("span",null," - "),plusMenuElement:f.createElement("span",null," + ")};var hu=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:c}=this.props,s=i(r,n,a,l,c);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:c}=this.state;if(!l)return;let s=n(!0,a,c,i,l.value);e({value:s,key:i}).then(()=>{fu(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:c,dataType:s,getStyle:d,editButtonElement:u,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:p,keyPath:v}=this.props,g=d(e,i,n,a,s),y=null,x=null,E=c(e,i,n,a,s);if(r&&!E){let b=m(ei,v,a,e,i,s),w=o.cloneElement(u,{onClick:this.handleEdit}),C=o.cloneElement(h,{onClick:this.handleCancelEdit}),S=o.cloneElement(b,{ref:this.refInput,defaultValue:i});y=f.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",C,w),x=null}else{y=f.createElement("span",{className:"rejt-value",style:g.value,onClick:E?null:this.handleEditMode},t);let b=o.cloneElement(p,{onClick:l,className:"rejt-minus-menu",style:g.minus});x=E?null:b}return f.createElement("li",{className:"rejt-function-value-node",style:g.li},f.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),y,x)}};hu.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:f.createElement("button",null,"e"),cancelButtonElement:f.createElement("button",null,"c"),minusMenuElement:f.createElement("span",null," - ")};var Sa=class extends o.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:l,handleUpdateValue:i,onUpdate:c,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:h,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:w,logger:C,onSubmitValueParser:S}=this.props,R=()=>!0,I=Vt(e);switch(I){case H_:return f.createElement(Vo,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:R,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:w,logger:C,onSubmitValueParser:S});case N_:return f.createElement(Vo,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:d,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:w,logger:C,onSubmitValueParser:S});case j_:return f.createElement(pu,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:d,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:b,beforeUpdateAction:w,logger:C,onSubmitValueParser:S});case D_:return f.createElement(Et,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case U_:return f.createElement(Et,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case V_:return f.createElement(Et,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case W_:return f.createElement(Et,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:R,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case G_:return f.createElement(Et,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case q_:return f.createElement(Et,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});case Y_:return f.createElement(hu,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,textareaElementGenerator:g,minusMenuElement:y,logger:C,onSubmitValueParser:S});case K_:return f.createElement(Et,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:R,dataType:I,getStyle:u,cancelButtonElement:m,editButtonElement:p,inputElementGenerator:v,minusMenuElement:y,logger:C,onSubmitValueParser:S});default:return null}}};Sa.defaultProps={keyPath:[],deep:0};var Vo=class extends o.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:l,logger:i}=this.props;l(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:s}=this.props;c(n[n.length-1],r),s({type:cu,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:l}=this.state,i=n[e];t(e,a,l,i).then(()=>{let c={keyPath:a,deep:l,key:e,oldValue:i,type:du};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(c)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i,nextDeep:c}=this.state,s=l[e];a(e,i,c,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:d,onDeltaUpdate:u}=this.props;d(i[i.length-1],l),u({type:uu,keyPath:i,deep:c,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:l,dataType:i,getStyle:c,minusMenuElement:s}=this.props,{minus:d,collapsed:u}=c(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=l(e,n,t,r,i),p=o.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return f.createElement("span",{className:"rejt-collapsed"},f.createElement("span",{className:"rejt-collapsed-text",style:u,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:c,onDeltaUpdate:s,readOnly:d,getStyle:u,dataType:h,addButtonElement:m,cancelButtonElement:p,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:C,logger:S,onSubmitValueParser:R}=this.props,{minus:I,plus:_,addForm:k,ul:$,delimiter:O}=u(e,t,r,n,h),T=Object.getOwnPropertyNames(t),H=d(e,t,r,n,h),M=o.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),L=o.cloneElement(x,{onClick:c,className:"rejt-minus-menu",style:I}),N=T.map(U=>f.createElement(Sa,{key:U,name:U,data:t[U],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(U),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:m,cancelButtonElement:p,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:C,logger:S,onSubmitValueParser:R}));return f.createElement("span",{className:"rejt-not-collapsed"},f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"{"),!H&&M,f.createElement("ul",{className:"rejt-not-collapsed-list",style:$},N),!H&&l&&f.createElement("div",{className:"rejt-add-form",style:k},f.createElement(ti,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:p,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:R})),f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"}"),!H&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:l,dataType:i}=this.props,c=t?this.renderCollapsed():this.renderNotCollapsed(),s=l(e,r,n,a,i);return f.createElement("div",{className:"rejt-object-node"},f.createElement("span",{onClick:this.handleCollapseMode},f.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),c)}};Vo.defaultProps={keyPath:[],deep:0,minusMenuElement:f.createElement("span",null," - "),plusMenuElement:f.createElement("span",null," + ")};var Et=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:c}=this.props,s=i(r,n,a,l,c);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:c}=this.state;if(!l)return;let s=n(!0,a,c,i,l.value);e({value:s,key:i}).then(()=>{fu(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:c,dataType:s,getStyle:d,editButtonElement:u,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:p,keyPath:v}=this.props,g=d(e,i,n,a,s),y=c(e,i,n,a,s),x=r&&!y,E=m(ei,v,a,e,i,s),b=o.cloneElement(u,{onClick:this.handleEdit}),w=o.cloneElement(h,{onClick:this.handleCancelEdit}),C=o.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=o.cloneElement(p,{onClick:l,className:"rejt-minus-menu",style:g.minus});return f.createElement("li",{className:"rejt-value-node",style:g.li},f.createElement("span",{className:"rejt-name",style:g.name},e," : "),x?f.createElement("span",{className:"rejt-edit-form",style:g.editForm},C," ",w,b):f.createElement("span",{className:"rejt-value",style:g.value,onClick:y?null:this.handleEditMode},String(t)),!y&&!x&&S)}};Et.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:f.createElement("button",null,"e"),cancelButtonElement:f.createElement("button",null,"c"),minusMenuElement:f.createElement("span",null," - ")};var X_={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Z_={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},J_={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function Q_(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var gu=class extends o.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:l,addButtonElement:i,cancelButtonElement:c,editButtonElement:s,inputElement:d,textareaElement:u,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:p,beforeAddAction:v,beforeUpdateAction:g,logger:y,onSubmitValueParser:x,fallback:E=null}=this.props,b=Vt(e),w=a;Vt(a)==="Boolean"&&(w=()=>a);let C=d;d&&Vt(d)!=="Function"&&(C=()=>d);let S=u;return u&&Vt(u)!=="Function"&&(S=()=>u),b==="Object"||b==="Array"?f.createElement("div",{className:"rejt-tree"},f.createElement(Sa,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:l,addButtonElement:i,cancelButtonElement:c,editButtonElement:s,inputElementGenerator:C,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:p,beforeAddAction:v,beforeUpdateAction:g,logger:y,onSubmitValueParser:x})):E}};gu.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return X_;case"Array":return Z_;default:return J_}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>Q_(a),inputElement:()=>f.createElement("input",null),textareaElement:()=>f.createElement("textarea",null),fallback:null};var{window:ek}=Oe,tk=A.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),io=A.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),rk=A(Bc)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),nk=A(Fc)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),ts=A.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),ak=A(Rt)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),ok=A(_r.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),lk={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},ik=e=>{e.currentTarget.dispatchEvent(new ek.KeyboardEvent("keydown",lk))},sk=e=>{e.currentTarget.select()},ck=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),rs=({name:e,value:t,onChange:r,argType:n})=>{var b;let a=Hs(),l=o.useMemo(()=>t&&XS(t),[t]),i=l!=null,[c,s]=o.useState(!i),[d,u]=o.useState(null),h=!!((b=n==null?void 0:n.table)!=null&&b.readonly),m=o.useCallback(w=>{try{w&&r(JSON.parse(w)),u(void 0)}catch(C){u(C)}},[r]),[p,v]=o.useState(!1),g=o.useCallback(()=>{r({}),v(!0)},[v]),y=o.useRef(null);if(o.useEffect(()=>{p&&y.current&&y.current.select()},[p]),!i)return f.createElement(Ot,{disabled:h,id:ra(e),onClick:g},"Set object");let x=f.createElement(ok,{ref:y,id:He(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>m(w.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return f.createElement(tk,{"aria-readonly":h},E&&f.createElement(ak,{onClick:w=>{w.preventDefault(),s(C=>!C)}},c?f.createElement(Mc,null):f.createElement(Tc,null),f.createElement("span",null,"RAW")),c?x:f.createElement(gu,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:l,rootName:e,onFullyUpdate:r,getStyle:ck(a),cancelButtonElement:f.createElement(io,{type:"button"},"Cancel"),editButtonElement:f.createElement(io,{type:"submit"},"Save"),addButtonElement:f.createElement(io,{type:"submit",primary:!0},"Save"),plusMenuElement:f.createElement(rk,null),minusMenuElement:f.createElement(nk,null),inputElement:(w,C,S,R)=>R?f.createElement(ts,{onFocus:sk,onBlur:ik}):f.createElement(ts,null),fallback:x}))},dk=A.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Qe(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Qe(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ke(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:a?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Qe(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Qe(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Qe(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ke(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ke(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${jt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Qe(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),mu=A.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),uk=A(mu)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),fk=A.div({display:"flex",alignItems:"center",width:"100%"});function pk(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var hk=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c,argType:s})=>{var p;let d=v=>{r(S_(v.target.value))},u=t!==void 0,h=o.useMemo(()=>pk(l),[l]),m=!!((p=s==null?void 0:s.table)!=null&&p.readonly);return f.createElement(fk,{"aria-readonly":m},f.createElement(mu,null,n),f.createElement(dk,{id:He(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),f.createElement(uk,{numberOFDecimalsPlaces:h,max:a},u?t.toFixed(h):"--"," / ",a))},gk=A.label({display:"flex"}),mk=A.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),vk=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let c=v=>{r(v.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[d,u]=o.useState(!1),h=o.useCallback(()=>{r(""),u(!0)},[u]);if(t===void 0)return f.createElement(Ot,{variant:"outline",size:"medium",disabled:s,id:ra(e),onClick:h},"Set string");let m=typeof t=="string";return f.createElement(gk,null,f.createElement(_r.Textarea,{id:He(e),maxLength:l,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),l&&f.createElement(mk,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},bk=A(_r.Input)({padding:10});function yk(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var wk=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let l=o.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function c(d){if(!d.target.files)return;let u=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(u),yk(n)}return o.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),f.createElement(bk,{ref:l,id:He(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},xk=o.lazy(()=>It(()=>import("./Color-PRSJMWNM-B9rq6m7c.js"),__vite__mapDeps([9,2,5,1,3,4,6]),import.meta.url)),Ek=e=>f.createElement(o.Suspense,{fallback:f.createElement("div",null)},f.createElement(xk,{...e})),Ck={array:rs,object:rs,boolean:m_,color:Ek,date:E_,number:I_,check:cr,"inline-check":cr,radio:cr,"inline-radio":cr,select:cr,"multi-select":cr,range:hk,text:vk,file:wk},ns=()=>f.createElement(f.Fragment,null,"-"),Sk=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let u=o.useCallback(y=>(d({value:y}),r({[a]:y}),y),[r,a]),h=o.useCallback(()=>c(!1),[]),m=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let y=(l==null?void 0:l.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&y?f.createElement(qt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):f.createElement(ns,null)}let p={name:a,argType:e,value:s.value,onChange:u,onBlur:h,onFocus:m},v=Ck[l.type]||ns;return f.createElement(v,{...p,...l,controlType:l.type})},Rk=A.span({fontWeight:"bold"}),Ik=A.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Ak=A.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...vt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),_k=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?re(.1,e.color.defaultText):re(.2,e.color.defaultText),marginTop:t?4:0})),kk=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?re(.1,e.color.defaultText):re(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),$k=A.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Ok=e=>e&&{summary:typeof e=="string"?e:e.name},kn=e=>{var g;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,u=n.table||{},h=u.type||Ok(n.type),m=u.defaultValue||n.defaultValue,p=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return f.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},f.createElement($k,{expandable:i},f.createElement(Rk,null,s),p?f.createElement(Ik,{title:"Required"},"*"):null),l?null:f.createElement("td",null,v&&f.createElement(Ak,null,f.createElement(Bd,null,d)),u.jsDocTags!=null?f.createElement(f.Fragment,null,f.createElement(kk,{hasDescription:v},f.createElement(lo,{value:h,initialExpandedArgs:c})),f.createElement(n_,{tags:u.jsDocTags})):f.createElement(_k,{hasDescription:v},f.createElement(lo,{value:h,initialExpandedArgs:c}))),l?null:f.createElement("td",null,f.createElement(lo,{value:m,initialExpandedArgs:c})),a?f.createElement("td",null,f.createElement(Sk,{...e,isHovered:t})):null)},Tk=A(Nc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?re(.25,e.color.defaultText):re(.3,e.color.defaultText),border:"none",display:"inline-block"})),Mk=A(Sl)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?re(.25,e.color.defaultText):re(.3,e.color.defaultText),border:"none",display:"inline-block"})),Lk=A.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),zk=A.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?re(.4,e.color.defaultText):re(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Pk=A.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Bk=A.td(()=>({position:"relative"})),Fk=A.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${jt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),as=A.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),so=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?Pk:zk,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",u=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return f.createElement(f.Fragment,null,f.createElement(Fk,{title:u},f.createElement(c,{colSpan:1},f.createElement(as,{onClick:h=>i(!l),tabIndex:0},u),f.createElement(Lk,null,l?f.createElement(Tk,null):f.createElement(Mk,null),t)),f.createElement(Bk,{colSpan:a-1},f.createElement(as,{onClick:h=>i(!l),tabIndex:-1,style:{outline:"none"}},u),l?null:d)),l?r:null)},$n=A.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ge=A.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ce=A.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),me=[2,4,2,2],Hk=()=>f.createElement(f.Fragment,null,f.createElement($n,null,f.createElement(ge,{numColumn:me[0]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[1]},f.createElement(ce,{width:"30%"})),f.createElement(ge,{numColumn:me[2]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[3]},f.createElement(ce,{width:"60%"}))),f.createElement($n,null,f.createElement(ge,{numColumn:me[0]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[1]},f.createElement(ce,{width:"80%"}),f.createElement(ce,{width:"30%"})),f.createElement(ge,{numColumn:me[2]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[3]},f.createElement(ce,{width:"60%"}))),f.createElement($n,null,f.createElement(ge,{numColumn:me[0]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[1]},f.createElement(ce,{width:"80%"}),f.createElement(ce,{width:"30%"})),f.createElement(ge,{numColumn:me[2]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[3]},f.createElement(ce,{width:"60%"}))),f.createElement($n,null,f.createElement(ge,{numColumn:me[0]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[1]},f.createElement(ce,{width:"80%"}),f.createElement(ce,{width:"30%"})),f.createElement(ge,{numColumn:me[2]},f.createElement(ce,{width:"60%"})),f.createElement(ge,{numColumn:me[3]},f.createElement(ce,{width:"60%"})))),Nk=A.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),jk=A.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Dk=A.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Uk=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:f.createElement(Nk,{inAddonPanel:e},f.createElement(Fl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:f.createElement(f.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:f.createElement(jk,null,e&&f.createElement(f.Fragment,null,f.createElement(qt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},f.createElement(zc,null)," Watch 5m video"),f.createElement(Dk,null),f.createElement(qt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},f.createElement(qn,null)," Read docs")),!e&&f.createElement(qt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},f.createElement(qn,null)," Learn how to set that up"))}))},Vk=A.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?re(.25,e.color.defaultText):re(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Wk=A(Rt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Gk=A.span({display:"flex",justifyContent:"space-between"}),qk={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Yk=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let u=d.subsections[s]||[];u.push({key:l,...i}),d.subsections[s]=u}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=qk[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Kk=(e,t,r)=>{try{return $u(e,t,r)}catch(n){return IA.warn(n.message),!1}},Wo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:E}=e;return f.createElement(Qd,null,E," ",f.createElement(qt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},f.createElement(qn,null)," Read the docs"))}if(c)return f.createElement(Hk,null);let{rows:s,args:d,globals:u}="rows"in e&&e,h=Yk(I9(s,E=>{var b;return!((b=E==null?void 0:E.table)!=null&&b.disable)&&Kk(E,d||{},u||{})}),i),m=h.ungrouped.length===0,p=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&p&&v)return f.createElement(Uk,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let y=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return f.createElement(Ml,null,f.createElement(Vk,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},f.createElement("thead",{className:"docblock-argstable-head"},f.createElement("tr",null,f.createElement("th",null,f.createElement("span",null,"Name")),n?null:f.createElement("th",null,f.createElement("span",null,"Description")),n?null:f.createElement("th",null,f.createElement("span",null,"Default")),t?f.createElement("th",null,f.createElement(Gk,null,"Control"," ",!c&&r&&f.createElement(Wk,{onClick:()=>r(),title:"Reset controls"},f.createElement(Dc,{"aria-hidden":!0})))):null)),f.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>f.createElement(kn,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(h.ungroupedSubsections).map(([E,b])=>f.createElement(so,{key:E,label:E,level:"subsection",colSpan:g},b.map(w=>f.createElement(kn,{key:w.key,row:w,arg:d&&d[w.key],expandable:y,...x})))),Object.entries(h.sections).map(([E,b])=>f.createElement(so,{key:E,label:E,level:"section",colSpan:g},b.ungrouped.map(w=>f.createElement(kn,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(b.subsections).map(([w,C])=>f.createElement(so,{key:w,label:w,level:"subsection",colSpan:g},C.map(S=>f.createElement(kn,{key:S.key,row:S,arg:d&&d[S.key],expandable:y,...x})))))))))},Xk=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?f.createElement(Wo,{...r[0][1],...t}):f.createElement(jl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return f.createElement(s,{key:c,id:c,title:l},({active:u})=>u?f.createElement(Wo,{key:`prop_table_${l}`,...i,...d}):null)}))};A.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?re(.4,e.color.defaultText):re(.6,e.color.defaultText)}));A.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});A.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});A.div(ae,({theme:e})=>({...Ca(e),margin:"25px 0 40px",padding:"30px 20px"}));A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));A.div(({theme:e})=>({color:e.base==="light"?re(.2,e.color.defaultText):re(.6,e.color.defaultText)}));A.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});A.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?re(.4,e.color.defaultText):re(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));A.div({display:"flex",flexDirection:"row"});A.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));A.div(({theme:e})=>({...Ca(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));A.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});A.div({flex:1,display:"flex",flexDirection:"row"});A.div({display:"flex",alignItems:"flex-start"});A.div({flex:"0 0 30%"});A.div({flex:1});A.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?re(.4,e.color.defaultText):re(.6,e.color.defaultText)}));A.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));A.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));A.div(({theme:e})=>({...Ca(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));A.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});A.div({display:"flex",flexFlow:"row wrap"});var Zk=e=>`anchor--${e}`,Jk=({storyId:e,children:t})=>f.createElement("div",{id:Zk(e),className:"sb-anchor"},t);Oe&&Oe.__DOCS_CONTEXT__===void 0&&(Oe.__DOCS_CONTEXT__=o.createContext(null),Oe.__DOCS_CONTEXT__.displayName="DocsContext");var ct=Oe?Oe.__DOCS_CONTEXT__:o.createContext(null),er=(e,t)=>o.useContext(ct).resolveOf(e,t),Qk=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),e$=e=>{if(e)return typeof e=="string"?e.includes("-")?Qk(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function t$(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function vu(e){return hA(e,{allowFunction:!1})}var bu=o.createContext({sources:{}}),yu="--unknown--",r$=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:u,format:h}=typeof l=="string"?{id:l,source:i,format:c}:l,m=d?vu(d):yu;n(p=>({...p,[s]:{...p[s],[m]:{code:u,format:h}}}))};return t.on(si,a),()=>t.off(si,a)},[]),f.createElement(bu.Provider,{value:{sources:r}},e)},n$=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[vu(t)])||(a==null?void 0:a[yu])||{code:""}},a$=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,l=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||l.type||Aa.AUTO;if(l.code!==void 0)return l.code;let c=i===Aa.DYNAMIC||i===Aa.AUTO&&e&&a?e:l.originalSource||"";return((d=n??l.transform)==null?void 0:d(c,t))||c},o$=(e,t,r)=>{var p,v,g,y;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let l=((v=(p=n==null?void 0:n.parameters)==null?void 0:p.docs)==null?void 0:v.source)||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let u=t.getStoryContext(n),h=e.__forceInitialArgs?u.initialArgs:u.unmappedArgs,m=n$(n.id,h,r);return c=m.format??((y=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:y.format)??!1,{code:a$({snippet:m.code,storyContext:{...u,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function l$(e,t){let r=i$([e],t);return r&&r[0]}function i$(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var s$=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},c$=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},d$=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(ct),r=s$(e,t),n=l$(r,t);if(!n)return f.createElement(ru,null);let a=c$(e,n,t);return a?f.createElement(KA,{...a}):null},u$=e=>{var m,p,v,g,y,x,E,b,w,C;let t=o.useContext(ct),r=o.useContext(bu),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=er(n||"story",["story"]),i=o$({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??((p=(m=l.parameters.docs)==null?void 0:m.canvas)==null?void 0:p.layout)??"padded",s=e.withToolbar??((g=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((x=(y=l.parameters.docs)==null?void 0:y.canvas)==null?void 0:x.additionalActions),u=e.sourceState??((b=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:b.sourceState)??"hidden",h=e.className??((C=(w=l.parameters.docs)==null?void 0:w.canvas)==null?void 0:C.className);return f.createElement(nu,{withSource:u==="none"?void 0:i,isExpanded:u==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},f.createElement(d$,{of:n||l.moduleExport,meta:e.meta,...e.story}))},f$=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(W0,l),()=>t.channel.off(W0,l)},[t.channel]),[n]},p$=(e,t)=>{let r=h$(e,t);if(!r)throw new Error("No result when story was defined");return r},h$=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(G0,s),()=>t.channel.off(G0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(AA,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(_A,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function g$(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var m$=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(ct),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??s.include,u=e.exclude??s.exclude,h=e.sort??s.sort,[m,p,v]=p$(n,r),[g]=f$(n,r),y=V0(l,d,u);if(!(c&&Object.keys(c).length>0))return Object.keys(y).length>0||Object.keys(m).length>0?f.createElement(Wo,{rows:y,sort:h,args:m,globals:g,updateArgs:p,resetArgs:v}):null;let x=e$(i),E=Object.fromEntries(Object.entries(c).map(([C,S])=>[C,{rows:V0(g$(S,a),d,u),sort:h}])),b={[x]:{rows:y,sort:h},...E};return f.createElement(Xk,{tabs:b,sort:h,args:m,globals:g,updateArgs:p,resetArgs:v})},{document:wu}=Oe,xu=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return f.createElement($l,null,t);let n=e&&e.split("-");return f.createElement(eu,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ri(e,t){e.channel.emit(kA,t)}var Go=ud.a,v$=({hash:e,children:t})=>{let r=o.useContext(ct);return f.createElement(Go,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);wu.getElementById(a)&&ri(r,e)}},t)},Eu=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(ct);return!t||r==="_blank"||/^https?:\/\//.test(t)?f.createElement(Go,{...e}):t.startsWith("#")?f.createElement(v$,{hash:t},n):f.createElement(Go,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ri(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)},Cu=["h1","h2","h3","h4","h5","h6"],b$=Cu.reduce((e,t)=>({...e,[t]:A(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),y$=A.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),w$=({as:e,id:t,children:r,...n})=>{let a=o.useContext(ct),l=b$[e],i=`#${t}`;return f.createElement(l,{id:t,...n},f.createElement(y$,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{wu.getElementById(t)&&ri(a,i)}},f.createElement(Hc,null)),r)},ni=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return f.createElement(w$,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return f.createElement(l,{...ne(c,t)})},Su=Cu.reduce((e,t)=>({...e,[t]:r=>f.createElement(ni,{as:t,...r})}),{}),x$=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Ju`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + This is often caused by not wrapping the child in a template string. + + This is invalid: + + # Some heading + A paragraph + + + Instead do: + + {\` + # Some heading + A paragraph + \`} + + `);return f.createElement(Bd,{...e,options:{forceBlock:!0,overrides:{code:xu,a:Eu,...Su,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},E$=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(E$||{}),C$=e=>{var t,r,n,a,l,i,c,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:u}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(l=d.docs)==null?void 0:l.extractComponentDescription)==null?void 0:i.call(l,u,{component:u,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:u}}=e;return((s=(c=u.docs)==null?void 0:c.extractComponentDescription)==null?void 0:s.call(c,d,{component:d,parameters:u}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},qo=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=er(t||"meta"),n=C$(r);return n?f.createElement(x$,null,n):null},S$=A.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),R$=A.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),I$=A.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),A$=({title:e})=>e===null?null:typeof e=="string"?f.createElement(I$,null,e):e,_$=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l})=>(o.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...l},c=setTimeout(()=>xA(i),100);return()=>{clearTimeout(c),Zd()}},[t]),f.createElement(f.Fragment,null,f.createElement(S$,null,t?null:f.createElement(R$,null,f.createElement(A$,{title:e||null}),f.createElement("div",{className:"toc-wrapper"}))))),{document:k$,window:$$}=Oe,O$=({context:e,theme:t,children:r})=>{var a,l,i,c,s;let n;try{n=(l=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:l.toc}catch{n=(s=(c=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:c.docs)==null?void 0:s.toc}return o.useEffect(()=>{let d;try{if(d=new URL($$.parent.location.toString()),d.hash){let u=k$.getElementById(d.hash.substring(1));u&&setTimeout(()=>{t$(u)},200)}}catch{}}),f.createElement(ct.Provider,{value:e},f.createElement(r$,{channel:e.channel},f.createElement(Ns,{theme:S5(t)},f.createElement(FA,{toc:n?f.createElement(_$,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},T$=/\s*\/\s*/,M$=e=>{let t=e.trim().split(T$);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},L$=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=er(r||"meta",["meta"]).preparedMeta}catch(l){if(t&&!l.message.includes("did you forget to use ?"))throw l}let a=t||M$(n==null?void 0:n.title);return a?f.createElement(LA,{className:"sbdocs-title sb-unstyled"},a):null},z$="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",P$=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=er(t||"meta",["meta"]).preparedMeta}catch(c){if(r&&!c.message.includes("did you forget to use ?"))throw c}let{componentSubtitle:a,docs:l}=(n==null?void 0:n.parameters)||{};a&&RA(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${z$}`);let i=r||(l==null?void 0:l.subtitle)||a;return i?f.createElement(zA,{className:"sbdocs-subtitle sb-unstyled"},i):null},B$=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return f.createElement(Tl,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return f.createElement(ni,{as:"h3",id:r},e)},Ru=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var c,s;let{story:l}=er(e||"story",["story"]),i=((s=(c=l.parameters.docs)==null?void 0:c.canvas)==null?void 0:s.withToolbar)??r;return f.createElement(Jk,{storyId:l.id},t&&f.createElement(f.Fragment,null,f.createElement(B$,null,l.name),f.createElement(qo,{of:e})),f.createElement(u$,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},F$=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=er(t||"meta",["meta"]),n=o.useContext(ct).componentStoriesFromCSFFile(r)[0];return n?f.createElement(Ru,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},H$=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return f.createElement(Ol,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return f.createElement(ni,{as:"h2",id:n,...r},e)},N$=A(H$)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),j$=({title:e="Stories",includePrimary:t=!0})=>{var c;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=o.useContext(ct),l=r(),{stories:{filter:i}={filter:void 0}}=((c=n.parameters)==null?void 0:c.docs)||{};return i&&(l=l.filter(s=>i(s,a(s)))),l.some(s=>{var d;return(d=s.tags)==null?void 0:d.includes("autodocs")})&&(l=l.filter(s=>{var d;return(d=s.tags)==null?void 0:d.includes("autodocs")})),t||(l=l.slice(1)),!l||l.length===0?null:f.createElement(f.Fragment,null,f.createElement(N$,null,e),l.map(s=>s&&f.createElement(Ru,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},D$=()=>{let e=er("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return f.createElement(f.Fragment,null,f.createElement(L$,null),f.createElement(P$,null),f.createElement(qo,{of:"meta"}),r?f.createElement(qo,{of:"story"}):null,f.createElement(F$,null),f.createElement(m$,null),r?null:f.createElement(j$,null))};function U$({context:e,docsParameter:t}){let r=t.container||O$,n=t.page||D$;return f.createElement(r,{context:e,theme:t.theme},f.createElement(n,null))}var Iu={code:xu,a:Eu,...Su},V$=class extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:f.createElement(f.Fragment,null,t)}},W$=class{constructor(){this.render=async(e,t,r)=>{let n={...Iu,...t==null?void 0:t.components},a=U$;return new Promise((l,i)=>{It(()=>import("./index-CqcSDpoT.js"),__vite__mapDeps([10,2]),import.meta.url).then(({MDXProvider:c})=>_u(f.createElement(V$,{showException:i,key:Math.random()},f.createElement(c,{components:n},f.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>l())})},this.unmount=e=>{ku(e)}}};const aO=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:W$,defaultComponents:Iu},Symbol.toStringTag,{value:"Module"}));export{aO as D,_r as F,d4 as M,ml as S,Z6 as T,w2 as W,Vg as a,y2 as b,gc as c,D6 as d,He as g,Zt as m,A as n,Q$ as s}; diff --git a/storybook/assets/Renderer.stories-BsB34jwK.js b/storybook/assets/Renderer.stories-BsB34jwK.js new file mode 100644 index 0000000..183d4e3 --- /dev/null +++ b/storybook/assets/Renderer.stories-BsB34jwK.js @@ -0,0 +1,4035 @@ +import{r as Ct}from"./index-CDs2tPxN.js";var ho={exports:{}},cr={};/** + * @license React + * react-jsx-runtime.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 Ko=Ct,Zo=Symbol.for("react.element"),$o=Symbol.for("react.fragment"),Jo=Object.prototype.hasOwnProperty,Qo=Ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,el={key:!0,ref:!0,__self:!0,__source:!0};function fo(i,e,t){var n,r={},s=null,o=null;t!==void 0&&(s=""+t),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)Jo.call(e,n)&&!el.hasOwnProperty(n)&&(r[n]=e[n]);if(i&&i.defaultProps)for(n in e=i.defaultProps,e)r[n]===void 0&&(r[n]=e[n]);return{$$typeof:Zo,type:i,key:s,ref:o,props:r,_owner:Qo.current}}cr.Fragment=$o;cr.jsx=fo;cr.jsxs=fo;ho.exports=cr;var _s=ho.exports;/** + * @license + * Copyright 2010-2024 Three.js Authors + * SPDX-License-Identifier: MIT + */const ss="164",Ln={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Dn={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},tl=0,vs=1,nl=2,po=1,il=2,Xt=3,dn=0,gt=1,Yt=2,un=0,Jn=1,xs=2,Ms=3,Ss=4,rl=5,Tn=100,sl=101,al=102,ol=103,ll=104,cl=200,ul=201,hl=202,dl=203,Jr=204,Qr=205,fl=206,pl=207,ml=208,gl=209,_l=210,vl=211,xl=212,Ml=213,Sl=214,El=0,yl=1,Tl=2,ir=3,Al=4,bl=5,wl=6,Rl=7,mo=0,Cl=1,Pl=2,hn=0,Ll=1,Dl=2,Il=3,Ul=4,Nl=5,Fl=6,Ol=7,go=300,ti=301,ni=302,es=303,ts=304,ur=306,ns=1e3,bn=1001,is=1002,At=1003,Bl=1004,bi=1005,Pt=1006,Mr=1007,wn=1008,fn=1009,zl=1010,Hl=1011,_o=1012,vo=1013,ii=1014,cn=1015,hr=1016,xo=1017,Mo=1018,Ei=1020,Gl=35902,Vl=1021,kl=1022,Ft=1023,Wl=1024,Xl=1025,Qn=1026,xi=1027,Yl=1028,So=1029,ql=1030,Eo=1031,yo=1033,Sr=33776,Er=33777,yr=33778,Tr=33779,Es=35840,ys=35841,Ts=35842,As=35843,bs=36196,ws=37492,Rs=37496,Cs=37808,Ps=37809,Ls=37810,Ds=37811,Is=37812,Us=37813,Ns=37814,Fs=37815,Os=37816,Bs=37817,zs=37818,Hs=37819,Gs=37820,Vs=37821,Ar=36492,ks=36494,Ws=36495,jl=36283,Xs=36284,Ys=36285,qs=36286,Kl=3200,Zl=3201,$l=0,Jl=1,ln="",It="srgb",mn="srgb-linear",as="display-p3",dr="display-p3-linear",rr="linear",Ke="srgb",sr="rec709",ar="p3",In=7680,js=519,Ql=512,ec=513,tc=514,To=515,nc=516,ic=517,rc=518,sc=519,Ks=35044,Zs="300 es",qt=2e3,or=2001;class Pn{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const n=this._listeners[e.type];if(n!==void 0){e.target=this;const r=n.slice(0);for(let s=0,o=r.length;s>8&255]+ut[i>>16&255]+ut[i>>24&255]+"-"+ut[e&255]+ut[e>>8&255]+"-"+ut[e>>16&15|64]+ut[e>>24&255]+"-"+ut[t&63|128]+ut[t>>8&255]+"-"+ut[t>>16&255]+ut[t>>24&255]+ut[n&255]+ut[n>>8&255]+ut[n>>16&255]+ut[n>>24&255]).toLowerCase()}function dt(i,e,t){return Math.max(e,Math.min(t,i))}function os(i,e){return(i%e+e)%e}function ac(i,e,t,n,r){return n+(i-e)*(r-n)/(t-e)}function oc(i,e,t){return i!==e?(t-i)/(e-i):0}function vi(i,e,t){return(1-t)*i+t*e}function lc(i,e,t,n){return vi(i,e,1-Math.exp(-t*n))}function cc(i,e=1){return e-Math.abs(os(i,e*2)-e)}function uc(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*(3-2*i))}function hc(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*i*(i*(i*6-15)+10))}function dc(i,e){return i+Math.floor(Math.random()*(e-i+1))}function fc(i,e){return i+Math.random()*(e-i)}function pc(i){return i*(.5-Math.random())}function mc(i){i!==void 0&&($s=i);let e=$s+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function gc(i){return i*_i}function _c(i){return i*Mi}function vc(i){return(i&i-1)===0&&i!==0}function xc(i){return Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function Mc(i){return Math.pow(2,Math.floor(Math.log(i)/Math.LN2))}function Sc(i,e,t,n,r){const s=Math.cos,o=Math.sin,a=s(t/2),l=o(t/2),c=s((e+n)/2),u=o((e+n)/2),f=s((e-n)/2),d=o((e-n)/2),m=s((n-e)/2),v=o((n-e)/2);switch(r){case"XYX":i.set(a*u,l*f,l*d,a*c);break;case"YZY":i.set(l*d,a*u,l*f,a*c);break;case"ZXZ":i.set(l*f,l*d,a*u,a*c);break;case"XZX":i.set(a*u,l*v,l*m,a*c);break;case"YXY":i.set(l*m,a*u,l*v,a*c);break;case"ZYZ":i.set(l*v,l*m,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function Zn(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return i/4294967295;case Uint16Array:return i/65535;case Uint8Array:return i/255;case Int32Array:return Math.max(i/2147483647,-1);case Int16Array:return Math.max(i/32767,-1);case Int8Array:return Math.max(i/127,-1);default:throw new Error("Invalid component type.")}}function ft(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return Math.round(i*4294967295);case Uint16Array:return Math.round(i*65535);case Uint8Array:return Math.round(i*255);case Int32Array:return Math.round(i*2147483647);case Int16Array:return Math.round(i*32767);case Int8Array:return Math.round(i*127);default:throw new Error("Invalid component type.")}}const Ec={DEG2RAD:_i,RAD2DEG:Mi,generateUUID:si,clamp:dt,euclideanModulo:os,mapLinear:ac,inverseLerp:oc,lerp:vi,damp:lc,pingpong:cc,smoothstep:uc,smootherstep:hc,randInt:dc,randFloat:fc,randFloatSpread:pc,seededRandom:mc,degToRad:gc,radToDeg:_c,isPowerOfTwo:vc,ceilPowerOfTwo:xc,floorPowerOfTwo:Mc,setQuaternionFromProperEuler:Sc,normalize:ft,denormalize:Zn};class Me{constructor(e=0,t=0){Me.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(dt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),s=this.x-e.x,o=this.y-e.y;return this.x=s*n-o*r+e.x,this.y=s*r+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Pe{constructor(e,t,n,r,s,o,a,l,c){Pe.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,s,o,a,l,c)}set(e,t,n,r,s,o,a,l,c){const u=this.elements;return u[0]=e,u[1]=r,u[2]=a,u[3]=t,u[4]=s,u[5]=l,u[6]=n,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,s=this.elements,o=n[0],a=n[3],l=n[6],c=n[1],u=n[4],f=n[7],d=n[2],m=n[5],v=n[8],M=r[0],p=r[3],h=r[6],A=r[1],E=r[4],b=r[7],N=r[2],w=r[5],R=r[8];return s[0]=o*M+a*A+l*N,s[3]=o*p+a*E+l*w,s[6]=o*h+a*b+l*R,s[1]=c*M+u*A+f*N,s[4]=c*p+u*E+f*w,s[7]=c*h+u*b+f*R,s[2]=d*M+m*A+v*N,s[5]=d*p+m*E+v*w,s[8]=d*h+m*b+v*R,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t*o*u-t*a*c-n*s*u+n*a*l+r*s*c-r*o*l}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],f=u*o-a*c,d=a*l-u*s,m=c*s-o*l,v=t*f+n*d+r*m;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);const M=1/v;return e[0]=f*M,e[1]=(r*c-u*n)*M,e[2]=(a*n-r*o)*M,e[3]=d*M,e[4]=(u*t-r*l)*M,e[5]=(r*s-a*t)*M,e[6]=m*M,e[7]=(n*l-c*t)*M,e[8]=(o*t-n*s)*M,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,s,o,a){const l=Math.cos(s),c=Math.sin(s);return this.set(n*l,n*c,-n*(l*o+c*a)+o+e,-r*c,r*l,-r*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(br.makeScale(e,t)),this}rotate(e){return this.premultiply(br.makeRotation(-e)),this}translate(e,t){return this.premultiply(br.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const br=new Pe;function Ao(i){for(let e=i.length-1;e>=0;--e)if(i[e]>=65535)return!0;return!1}function Si(i){return document.createElementNS("http://www.w3.org/1999/xhtml",i)}function yc(){const i=Si("canvas");return i.style.display="block",i}const Js={};function Tc(i){i in Js||(Js[i]=!0,console.warn(i))}const Qs=new Pe().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),ea=new Pe().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),wi={[mn]:{transfer:rr,primaries:sr,toReference:i=>i,fromReference:i=>i},[It]:{transfer:Ke,primaries:sr,toReference:i=>i.convertSRGBToLinear(),fromReference:i=>i.convertLinearToSRGB()},[dr]:{transfer:rr,primaries:ar,toReference:i=>i.applyMatrix3(ea),fromReference:i=>i.applyMatrix3(Qs)},[as]:{transfer:Ke,primaries:ar,toReference:i=>i.convertSRGBToLinear().applyMatrix3(ea),fromReference:i=>i.applyMatrix3(Qs).convertLinearToSRGB()}},Ac=new Set([mn,dr]),Ye={enabled:!0,_workingColorSpace:mn,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(i){if(!Ac.has(i))throw new Error(`Unsupported working color space, "${i}".`);this._workingColorSpace=i},convert:function(i,e,t){if(this.enabled===!1||e===t||!e||!t)return i;const n=wi[e].toReference,r=wi[t].fromReference;return r(n(i))},fromWorkingColorSpace:function(i,e){return this.convert(i,this._workingColorSpace,e)},toWorkingColorSpace:function(i,e){return this.convert(i,e,this._workingColorSpace)},getPrimaries:function(i){return wi[i].primaries},getTransfer:function(i){return i===ln?rr:wi[i].transfer}};function ei(i){return i<.04045?i*.0773993808:Math.pow(i*.9478672986+.0521327014,2.4)}function wr(i){return i<.0031308?i*12.92:1.055*Math.pow(i,.41666)-.055}let Un;class bc{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Un===void 0&&(Un=Si("canvas")),Un.width=e.width,Un.height=e.height;const n=Un.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=Un}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Si("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),s=r.data;for(let o=0;o0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==go)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ns:e.x=e.x-Math.floor(e.x);break;case bn:e.x=e.x<0?0:1;break;case is:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case ns:e.y=e.y-Math.floor(e.y);break;case bn:e.y=e.y<0?0:1;break;case is:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}mt.DEFAULT_IMAGE=null;mt.DEFAULT_MAPPING=go;mt.DEFAULT_ANISOTROPY=1;class ot{constructor(e=0,t=0,n=0,r=1){ot.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,s=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r+o[12]*s,this.y=o[1]*t+o[5]*n+o[9]*r+o[13]*s,this.z=o[2]*t+o[6]*n+o[10]*r+o[14]*s,this.w=o[3]*t+o[7]*n+o[11]*r+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,s;const l=e.elements,c=l[0],u=l[4],f=l[8],d=l[1],m=l[5],v=l[9],M=l[2],p=l[6],h=l[10];if(Math.abs(u-d)<.01&&Math.abs(f-M)<.01&&Math.abs(v-p)<.01){if(Math.abs(u+d)<.1&&Math.abs(f+M)<.1&&Math.abs(v+p)<.1&&Math.abs(c+m+h-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(c+1)/2,b=(m+1)/2,N=(h+1)/2,w=(u+d)/4,R=(f+M)/4,V=(v+p)/4;return E>b&&E>N?E<.01?(n=0,r=.707106781,s=.707106781):(n=Math.sqrt(E),r=w/n,s=R/n):b>N?b<.01?(n=.707106781,r=0,s=.707106781):(r=Math.sqrt(b),n=w/r,s=V/r):N<.01?(n=.707106781,r=.707106781,s=0):(s=Math.sqrt(N),n=R/s,r=V/s),this.set(n,r,s,t),this}let A=Math.sqrt((p-v)*(p-v)+(f-M)*(f-M)+(d-u)*(d-u));return Math.abs(A)<.001&&(A=1),this.x=(p-v)/A,this.y=(f-M)/A,this.z=(d-u)/A,this.w=Math.acos((c+m+h-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Cc extends Pn{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new ot(0,0,e,t),this.scissorTest=!1,this.viewport=new ot(0,0,e,t);const r={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Pt,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const s=new mt(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);s.flipY=!1,s.generateMipmaps=n.generateMipmaps,s.internalFormat=n.internalFormat,this.textures=[];const o=n.count;for(let a=0;a=0?1:-1,E=1-h*h;if(E>Number.EPSILON){const N=Math.sqrt(E),w=Math.atan2(N,h*A);p=Math.sin(p*w)/N,a=Math.sin(a*w)/N}const b=a*A;if(l=l*p+d*b,c=c*p+m*b,u=u*p+v*b,f=f*p+M*b,p===1-a){const N=1/Math.sqrt(l*l+c*c+u*u+f*f);l*=N,c*=N,u*=N,f*=N}}e[t]=l,e[t+1]=c,e[t+2]=u,e[t+3]=f}static multiplyQuaternionsFlat(e,t,n,r,s,o){const a=n[r],l=n[r+1],c=n[r+2],u=n[r+3],f=s[o],d=s[o+1],m=s[o+2],v=s[o+3];return e[t]=a*v+u*f+l*m-c*d,e[t+1]=l*v+u*d+c*f-a*m,e[t+2]=c*v+u*m+a*d-l*f,e[t+3]=u*v-a*f-l*d-c*m,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,r=e._y,s=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(n/2),u=a(r/2),f=a(s/2),d=l(n/2),m=l(r/2),v=l(s/2);switch(o){case"XYZ":this._x=d*u*f+c*m*v,this._y=c*m*f-d*u*v,this._z=c*u*v+d*m*f,this._w=c*u*f-d*m*v;break;case"YXZ":this._x=d*u*f+c*m*v,this._y=c*m*f-d*u*v,this._z=c*u*v-d*m*f,this._w=c*u*f+d*m*v;break;case"ZXY":this._x=d*u*f-c*m*v,this._y=c*m*f+d*u*v,this._z=c*u*v+d*m*f,this._w=c*u*f-d*m*v;break;case"ZYX":this._x=d*u*f-c*m*v,this._y=c*m*f+d*u*v,this._z=c*u*v-d*m*f,this._w=c*u*f+d*m*v;break;case"YZX":this._x=d*u*f+c*m*v,this._y=c*m*f+d*u*v,this._z=c*u*v-d*m*f,this._w=c*u*f-d*m*v;break;case"XZY":this._x=d*u*f-c*m*v,this._y=c*m*f-d*u*v,this._z=c*u*v+d*m*f,this._w=c*u*f+d*m*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],s=t[8],o=t[1],a=t[5],l=t[9],c=t[2],u=t[6],f=t[10],d=n+a+f;if(d>0){const m=.5/Math.sqrt(d+1);this._w=.25/m,this._x=(u-l)*m,this._y=(s-c)*m,this._z=(o-r)*m}else if(n>a&&n>f){const m=2*Math.sqrt(1+n-a-f);this._w=(u-l)/m,this._x=.25*m,this._y=(r+o)/m,this._z=(s+c)/m}else if(a>f){const m=2*Math.sqrt(1+a-n-f);this._w=(s-c)/m,this._x=(r+o)/m,this._y=.25*m,this._z=(l+u)/m}else{const m=2*Math.sqrt(1+f-n-a);this._w=(o-r)/m,this._x=(s+c)/m,this._y=(l+u)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(dt(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,s=e._z,o=e._w,a=t._x,l=t._y,c=t._z,u=t._w;return this._x=n*u+o*a+r*c-s*l,this._y=r*u+o*l+s*a-n*c,this._z=s*u+o*c+n*l-r*a,this._w=o*u-n*a-r*l-s*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const n=this._x,r=this._y,s=this._z,o=this._w;let a=o*e._w+n*e._x+r*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=r,this._z=s,this;const l=1-a*a;if(l<=Number.EPSILON){const m=1-t;return this._w=m*o+t*this._w,this._x=m*n+t*this._x,this._y=m*r+t*this._y,this._z=m*s+t*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),f=Math.sin((1-t)*u)/c,d=Math.sin(t*u)/c;return this._w=o*f+this._w*d,this._x=n*f+this._x*d,this._y=r*f+this._y*d,this._z=s*f+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),s=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),s*Math.sin(t),s*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class L{constructor(e=0,t=0,n=0){L.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(ta.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(ta.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,s=e.elements;return this.x=s[0]*t+s[3]*n+s[6]*r,this.y=s[1]*t+s[4]*n+s[7]*r,this.z=s[2]*t+s[5]*n+s[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,s=e.elements,o=1/(s[3]*t+s[7]*n+s[11]*r+s[15]);return this.x=(s[0]*t+s[4]*n+s[8]*r+s[12])*o,this.y=(s[1]*t+s[5]*n+s[9]*r+s[13])*o,this.z=(s[2]*t+s[6]*n+s[10]*r+s[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,s=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*r-a*n),u=2*(a*t-s*r),f=2*(s*n-o*t);return this.x=t+l*c+o*f-a*u,this.y=n+l*u+a*c-s*f,this.z=r+l*f+s*u-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,s=e.elements;return this.x=s[0]*t+s[4]*n+s[8]*r,this.y=s[1]*t+s[5]*n+s[9]*r,this.z=s[2]*t+s[6]*n+s[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,s=e.z,o=t.x,a=t.y,l=t.z;return this.x=r*l-s*a,this.y=s*o-n*l,this.z=n*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Cr.copy(this).projectOnVector(e),this.sub(Cr)}reflect(e){return this.sub(Cr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(dt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Cr=new L,ta=new pn;class yi{constructor(e=new L(1/0,1/0,1/0),t=new L(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,bt),bt.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(hi),Ci.subVectors(this.max,hi),Nn.subVectors(e.a,hi),Fn.subVectors(e.b,hi),On.subVectors(e.c,hi),en.subVectors(Fn,Nn),tn.subVectors(On,Fn),_n.subVectors(Nn,On);let t=[0,-en.z,en.y,0,-tn.z,tn.y,0,-_n.z,_n.y,en.z,0,-en.x,tn.z,0,-tn.x,_n.z,0,-_n.x,-en.y,en.x,0,-tn.y,tn.x,0,-_n.y,_n.x,0];return!Pr(t,Nn,Fn,On,Ci)||(t=[1,0,0,0,1,0,0,0,1],!Pr(t,Nn,Fn,On,Ci))?!1:(Pi.crossVectors(en,tn),t=[Pi.x,Pi.y,Pi.z],Pr(t,Nn,Fn,On,Ci))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,bt).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(bt).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Ht[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ht[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ht[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ht[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ht[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ht[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ht[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ht[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ht),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Ht=[new L,new L,new L,new L,new L,new L,new L,new L],bt=new L,Ri=new yi,Nn=new L,Fn=new L,On=new L,en=new L,tn=new L,_n=new L,hi=new L,Ci=new L,Pi=new L,vn=new L;function Pr(i,e,t,n,r){for(let s=0,o=i.length-3;s<=o;s+=3){vn.fromArray(i,s);const a=r.x*Math.abs(vn.x)+r.y*Math.abs(vn.y)+r.z*Math.abs(vn.z),l=e.dot(vn),c=t.dot(vn),u=n.dot(vn);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>a)return!1}return!0}const Lc=new yi,di=new L,Lr=new L;class ls{constructor(e=new L,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):Lc.setFromPoints(e).getCenter(n);let r=0;for(let s=0,o=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;di.subVectors(e,this.center);const t=di.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),r=(n-this.radius)*.5;this.center.addScaledVector(di,r/n),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Lr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(di.copy(e.center).add(Lr)),this.expandByPoint(di.copy(e.center).sub(Lr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Gt=new L,Dr=new L,Li=new L,nn=new L,Ir=new L,Di=new L,Ur=new L;class Ro{constructor(e=new L,t=new L(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Gt)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Gt.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Gt.copy(this.origin).addScaledVector(this.direction,t),Gt.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Dr.copy(e).add(t).multiplyScalar(.5),Li.copy(t).sub(e).normalize(),nn.copy(this.origin).sub(Dr);const s=e.distanceTo(t)*.5,o=-this.direction.dot(Li),a=nn.dot(this.direction),l=-nn.dot(Li),c=nn.lengthSq(),u=Math.abs(1-o*o);let f,d,m,v;if(u>0)if(f=o*l-a,d=o*a-l,v=s*u,f>=0)if(d>=-v)if(d<=v){const M=1/u;f*=M,d*=M,m=f*(f+o*d+2*a)+d*(o*f+d+2*l)+c}else d=s,f=Math.max(0,-(o*d+a)),m=-f*f+d*(d+2*l)+c;else d=-s,f=Math.max(0,-(o*d+a)),m=-f*f+d*(d+2*l)+c;else d<=-v?(f=Math.max(0,-(-o*s+a)),d=f>0?-s:Math.min(Math.max(-s,-l),s),m=-f*f+d*(d+2*l)+c):d<=v?(f=0,d=Math.min(Math.max(-s,-l),s),m=d*(d+2*l)+c):(f=Math.max(0,-(o*s+a)),d=f>0?s:Math.min(Math.max(-s,-l),s),m=-f*f+d*(d+2*l)+c);else d=o>0?-s:s,f=Math.max(0,-(o*d+a)),m=-f*f+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,f),r&&r.copy(Dr).addScaledVector(Li,d),m}intersectSphere(e,t){Gt.subVectors(e.center,this.origin);const n=Gt.dot(this.direction),r=Gt.dot(Gt)-n*n,s=e.radius*e.radius;if(r>s)return null;const o=Math.sqrt(s-r),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,s,o,a,l;const c=1/this.direction.x,u=1/this.direction.y,f=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),u>=0?(s=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(s=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||s>r||((s>n||isNaN(n))&&(n=s),(o=0?(a=(e.min.z-d.z)*f,l=(e.max.z-d.z)*f):(a=(e.max.z-d.z)*f,l=(e.min.z-d.z)*f),n>l||a>r)||((a>n||n!==n)&&(n=a),(l=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Gt)!==null}intersectTriangle(e,t,n,r,s){Ir.subVectors(t,e),Di.subVectors(n,e),Ur.crossVectors(Ir,Di);let o=this.direction.dot(Ur),a;if(o>0){if(r)return null;a=1}else if(o<0)a=-1,o=-o;else return null;nn.subVectors(this.origin,e);const l=a*this.direction.dot(Di.crossVectors(nn,Di));if(l<0)return null;const c=a*this.direction.dot(Ir.cross(nn));if(c<0||l+c>o)return null;const u=-a*nn.dot(Ur);return u<0?null:this.at(u/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class nt{constructor(e,t,n,r,s,o,a,l,c,u,f,d,m,v,M,p){nt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,s,o,a,l,c,u,f,d,m,v,M,p)}set(e,t,n,r,s,o,a,l,c,u,f,d,m,v,M,p){const h=this.elements;return h[0]=e,h[4]=t,h[8]=n,h[12]=r,h[1]=s,h[5]=o,h[9]=a,h[13]=l,h[2]=c,h[6]=u,h[10]=f,h[14]=d,h[3]=m,h[7]=v,h[11]=M,h[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new nt().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Bn.setFromMatrixColumn(e,0).length(),s=1/Bn.setFromMatrixColumn(e,1).length(),o=1/Bn.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*s,t[5]=n[5]*s,t[6]=n[6]*s,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,s=e.z,o=Math.cos(n),a=Math.sin(n),l=Math.cos(r),c=Math.sin(r),u=Math.cos(s),f=Math.sin(s);if(e.order==="XYZ"){const d=o*u,m=o*f,v=a*u,M=a*f;t[0]=l*u,t[4]=-l*f,t[8]=c,t[1]=m+v*c,t[5]=d-M*c,t[9]=-a*l,t[2]=M-d*c,t[6]=v+m*c,t[10]=o*l}else if(e.order==="YXZ"){const d=l*u,m=l*f,v=c*u,M=c*f;t[0]=d+M*a,t[4]=v*a-m,t[8]=o*c,t[1]=o*f,t[5]=o*u,t[9]=-a,t[2]=m*a-v,t[6]=M+d*a,t[10]=o*l}else if(e.order==="ZXY"){const d=l*u,m=l*f,v=c*u,M=c*f;t[0]=d-M*a,t[4]=-o*f,t[8]=v+m*a,t[1]=m+v*a,t[5]=o*u,t[9]=M-d*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const d=o*u,m=o*f,v=a*u,M=a*f;t[0]=l*u,t[4]=v*c-m,t[8]=d*c+M,t[1]=l*f,t[5]=M*c+d,t[9]=m*c-v,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const d=o*l,m=o*c,v=a*l,M=a*c;t[0]=l*u,t[4]=M-d*f,t[8]=v*f+m,t[1]=f,t[5]=o*u,t[9]=-a*u,t[2]=-c*u,t[6]=m*f+v,t[10]=d-M*f}else if(e.order==="XZY"){const d=o*l,m=o*c,v=a*l,M=a*c;t[0]=l*u,t[4]=-f,t[8]=c*u,t[1]=d*f+M,t[5]=o*u,t[9]=m*f-v,t[2]=v*f-m,t[6]=a*u,t[10]=M*f+d}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Dc,e,Ic)}lookAt(e,t,n){const r=this.elements;return vt.subVectors(e,t),vt.lengthSq()===0&&(vt.z=1),vt.normalize(),rn.crossVectors(n,vt),rn.lengthSq()===0&&(Math.abs(n.z)===1?vt.x+=1e-4:vt.z+=1e-4,vt.normalize(),rn.crossVectors(n,vt)),rn.normalize(),Ii.crossVectors(vt,rn),r[0]=rn.x,r[4]=Ii.x,r[8]=vt.x,r[1]=rn.y,r[5]=Ii.y,r[9]=vt.y,r[2]=rn.z,r[6]=Ii.z,r[10]=vt.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,s=this.elements,o=n[0],a=n[4],l=n[8],c=n[12],u=n[1],f=n[5],d=n[9],m=n[13],v=n[2],M=n[6],p=n[10],h=n[14],A=n[3],E=n[7],b=n[11],N=n[15],w=r[0],R=r[4],V=r[8],y=r[12],x=r[1],B=r[5],X=r[9],C=r[13],W=r[2],q=r[6],Z=r[10],ie=r[14],G=r[3],Q=r[7],J=r[11],de=r[15];return s[0]=o*w+a*x+l*W+c*G,s[4]=o*R+a*B+l*q+c*Q,s[8]=o*V+a*X+l*Z+c*J,s[12]=o*y+a*C+l*ie+c*de,s[1]=u*w+f*x+d*W+m*G,s[5]=u*R+f*B+d*q+m*Q,s[9]=u*V+f*X+d*Z+m*J,s[13]=u*y+f*C+d*ie+m*de,s[2]=v*w+M*x+p*W+h*G,s[6]=v*R+M*B+p*q+h*Q,s[10]=v*V+M*X+p*Z+h*J,s[14]=v*y+M*C+p*ie+h*de,s[3]=A*w+E*x+b*W+N*G,s[7]=A*R+E*B+b*q+N*Q,s[11]=A*V+E*X+b*Z+N*J,s[15]=A*y+E*C+b*ie+N*de,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],s=e[12],o=e[1],a=e[5],l=e[9],c=e[13],u=e[2],f=e[6],d=e[10],m=e[14],v=e[3],M=e[7],p=e[11],h=e[15];return v*(+s*l*f-r*c*f-s*a*d+n*c*d+r*a*m-n*l*m)+M*(+t*l*m-t*c*d+s*o*d-r*o*m+r*c*u-s*l*u)+p*(+t*c*f-t*a*m-s*o*f+n*o*m+s*a*u-n*c*u)+h*(-r*a*u-t*l*f+t*a*d+r*o*f-n*o*d+n*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],f=e[9],d=e[10],m=e[11],v=e[12],M=e[13],p=e[14],h=e[15],A=f*p*c-M*d*c+M*l*m-a*p*m-f*l*h+a*d*h,E=v*d*c-u*p*c-v*l*m+o*p*m+u*l*h-o*d*h,b=u*M*c-v*f*c+v*a*m-o*M*m-u*a*h+o*f*h,N=v*f*l-u*M*l-v*a*d+o*M*d+u*a*p-o*f*p,w=t*A+n*E+r*b+s*N;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const R=1/w;return e[0]=A*R,e[1]=(M*d*s-f*p*s-M*r*m+n*p*m+f*r*h-n*d*h)*R,e[2]=(a*p*s-M*l*s+M*r*c-n*p*c-a*r*h+n*l*h)*R,e[3]=(f*l*s-a*d*s-f*r*c+n*d*c+a*r*m-n*l*m)*R,e[4]=E*R,e[5]=(u*p*s-v*d*s+v*r*m-t*p*m-u*r*h+t*d*h)*R,e[6]=(v*l*s-o*p*s-v*r*c+t*p*c+o*r*h-t*l*h)*R,e[7]=(o*d*s-u*l*s+u*r*c-t*d*c-o*r*m+t*l*m)*R,e[8]=b*R,e[9]=(v*f*s-u*M*s-v*n*m+t*M*m+u*n*h-t*f*h)*R,e[10]=(o*M*s-v*a*s+v*n*c-t*M*c-o*n*h+t*a*h)*R,e[11]=(u*a*s-o*f*s-u*n*c+t*f*c+o*n*m-t*a*m)*R,e[12]=N*R,e[13]=(u*M*r-v*f*r+v*n*d-t*M*d-u*n*p+t*f*p)*R,e[14]=(v*a*r-o*M*r-v*n*l+t*M*l+o*n*p-t*a*p)*R,e[15]=(o*f*r-u*a*r+u*n*l-t*f*l-o*n*d+t*a*d)*R,this}scale(e){const t=this.elements,n=e.x,r=e.y,s=e.z;return t[0]*=n,t[4]*=r,t[8]*=s,t[1]*=n,t[5]*=r,t[9]*=s,t[2]*=n,t[6]*=r,t[10]*=s,t[3]*=n,t[7]*=r,t[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),s=1-n,o=e.x,a=e.y,l=e.z,c=s*o,u=s*a;return this.set(c*o+n,c*a-r*l,c*l+r*a,0,c*a+r*l,u*a+n,u*l-r*o,0,c*l-r*a,u*l+r*o,s*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,s,o){return this.set(1,n,s,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,s=t._x,o=t._y,a=t._z,l=t._w,c=s+s,u=o+o,f=a+a,d=s*c,m=s*u,v=s*f,M=o*u,p=o*f,h=a*f,A=l*c,E=l*u,b=l*f,N=n.x,w=n.y,R=n.z;return r[0]=(1-(M+h))*N,r[1]=(m+b)*N,r[2]=(v-E)*N,r[3]=0,r[4]=(m-b)*w,r[5]=(1-(d+h))*w,r[6]=(p+A)*w,r[7]=0,r[8]=(v+E)*R,r[9]=(p-A)*R,r[10]=(1-(d+M))*R,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let s=Bn.set(r[0],r[1],r[2]).length();const o=Bn.set(r[4],r[5],r[6]).length(),a=Bn.set(r[8],r[9],r[10]).length();this.determinant()<0&&(s=-s),e.x=r[12],e.y=r[13],e.z=r[14],wt.copy(this);const c=1/s,u=1/o,f=1/a;return wt.elements[0]*=c,wt.elements[1]*=c,wt.elements[2]*=c,wt.elements[4]*=u,wt.elements[5]*=u,wt.elements[6]*=u,wt.elements[8]*=f,wt.elements[9]*=f,wt.elements[10]*=f,t.setFromRotationMatrix(wt),n.x=s,n.y=o,n.z=a,this}makePerspective(e,t,n,r,s,o,a=qt){const l=this.elements,c=2*s/(t-e),u=2*s/(n-r),f=(t+e)/(t-e),d=(n+r)/(n-r);let m,v;if(a===qt)m=-(o+s)/(o-s),v=-2*o*s/(o-s);else if(a===or)m=-o/(o-s),v=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=u,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=v,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,r,s,o,a=qt){const l=this.elements,c=1/(t-e),u=1/(n-r),f=1/(o-s),d=(t+e)*c,m=(n+r)*u;let v,M;if(a===qt)v=(o+s)*f,M=-2*f;else if(a===or)v=s*f,M=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=M,l[14]=-v,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Bn=new L,wt=new nt,Dc=new L(0,0,0),Ic=new L(1,1,1),rn=new L,Ii=new L,vt=new L,na=new nt,ia=new pn;class jt{constructor(e=0,t=0,n=0,r=jt.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,s=r[0],o=r[4],a=r[8],l=r[1],c=r[5],u=r[9],f=r[2],d=r[6],m=r[10];switch(t){case"XYZ":this._y=Math.asin(dt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,m),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-dt(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(dt(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-f,m),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-dt(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(d,m),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(dt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-dt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-u,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return na.makeRotationFromQuaternion(e),this.setFromRotationMatrix(na,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return ia.setFromEuler(this),this.setFromQuaternion(ia,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}jt.DEFAULT_ORDER="XYZ";class Co{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function s(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),f.length>0&&(n.shapes=f),d.length>0&&(n.skeletons=d),m.length>0&&(n.animations=m),v.length>0&&(n.nodes=v)}return n.object=r,n;function o(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?r.multiplyScalar(1/Math.sqrt(s)):r.set(0,0,0)}static getBarycoord(e,t,n,r,s){Rt.subVectors(r,t),kt.subVectors(n,t),Fr.subVectors(e,t);const o=Rt.dot(Rt),a=Rt.dot(kt),l=Rt.dot(Fr),c=kt.dot(kt),u=kt.dot(Fr),f=o*c-a*a;if(f===0)return s.set(0,0,0),null;const d=1/f,m=(c*l-a*u)*d,v=(o*u-a*l)*d;return s.set(1-m-v,v,m)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Wt)===null?!1:Wt.x>=0&&Wt.y>=0&&Wt.x+Wt.y<=1}static getInterpolation(e,t,n,r,s,o,a,l){return this.getBarycoord(e,t,n,r,Wt)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(s,Wt.x),l.addScaledVector(o,Wt.y),l.addScaledVector(a,Wt.z),l)}static isFrontFacing(e,t,n,r){return Rt.subVectors(n,t),kt.subVectors(e,t),Rt.cross(kt).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Rt.subVectors(this.c,this.b),kt.subVectors(this.a,this.b),Rt.cross(kt).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Nt.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Nt.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,r,s){return Nt.getInterpolation(e,this.a,this.b,this.c,t,n,r,s)}containsPoint(e){return Nt.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Nt.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,s=this.c;let o,a;Gn.subVectors(r,n),Vn.subVectors(s,n),Or.subVectors(e,n);const l=Gn.dot(Or),c=Vn.dot(Or);if(l<=0&&c<=0)return t.copy(n);Br.subVectors(e,r);const u=Gn.dot(Br),f=Vn.dot(Br);if(u>=0&&f<=u)return t.copy(r);const d=l*f-u*c;if(d<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(n).addScaledVector(Gn,o);zr.subVectors(e,s);const m=Gn.dot(zr),v=Vn.dot(zr);if(v>=0&&m<=v)return t.copy(s);const M=m*c-l*v;if(M<=0&&c>=0&&v<=0)return a=c/(c-v),t.copy(n).addScaledVector(Vn,a);const p=u*v-m*f;if(p<=0&&f-u>=0&&m-v>=0)return ca.subVectors(s,r),a=(f-u)/(f-u+(m-v)),t.copy(r).addScaledVector(ca,a);const h=1/(p+M+d);return o=M*h,a=d*h,t.copy(n).addScaledVector(Gn,o).addScaledVector(Vn,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Po={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},sn={h:0,s:0,l:0},Ni={h:0,s:0,l:0};function Hr(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*6*(2/3-t):i}class qe{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=It){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ye.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=Ye.workingColorSpace){return this.r=e,this.g=t,this.b=n,Ye.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=Ye.workingColorSpace){if(e=os(e,1),t=dt(t,0,1),n=dt(n,0,1),t===0)this.r=this.g=this.b=n;else{const s=n<=.5?n*(1+t):n+t-n*t,o=2*n-s;this.r=Hr(o,s,e+1/3),this.g=Hr(o,s,e),this.b=Hr(o,s,e-1/3)}return Ye.toWorkingColorSpace(this,r),this}setStyle(e,t=It){function n(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=r[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=It){const n=Po[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ei(e.r),this.g=ei(e.g),this.b=ei(e.b),this}copyLinearToSRGB(e){return this.r=wr(e.r),this.g=wr(e.g),this.b=wr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=It){return Ye.fromWorkingColorSpace(ht.copy(this),e),Math.round(dt(ht.r*255,0,255))*65536+Math.round(dt(ht.g*255,0,255))*256+Math.round(dt(ht.b*255,0,255))}getHexString(e=It){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Ye.workingColorSpace){Ye.fromWorkingColorSpace(ht.copy(this),t);const n=ht.r,r=ht.g,s=ht.b,o=Math.max(n,r,s),a=Math.min(n,r,s);let l,c;const u=(a+o)/2;if(a===o)l=0,c=0;else{const f=o-a;switch(c=u<=.5?f/(o+a):f/(2-o-a),o){case n:l=(r-s)/f+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==Jn&&(n.blending=this.blending),this.side!==dn&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==Jr&&(n.blendSrc=this.blendSrc),this.blendDst!==Qr&&(n.blendDst=this.blendDst),this.blendEquation!==Tn&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==ir&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==js&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==In&&(n.stencilFail=this.stencilFail),this.stencilZFail!==In&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==In&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(s){const o=[];for(const a in s){const l=s[a];delete l.metadata,o.push(l)}return o}if(t){const s=r(e.textures),o=r(e.images);s.length>0&&(n.textures=s),o.length>0&&(n.images=o)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const r=t.length;n=new Array(r);for(let s=0;s!==r;++s)n[s]=t[s].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class cs extends fr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new qe(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new jt,this.combine=mo,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const tt=new L,Fi=new Me;class Dt{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=Ks,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=cn,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return Tc("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,s=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const c=n[l];e.data.attributes[l]=c.toJSON(e.data)}const r={};let s=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let f=0,d=c.length;f0&&(r[l]=u,s=!0)}s&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone(t));const r=e.attributes;for(const c in r){const u=r[c];this.setAttribute(c,u.clone(t))}const s=e.morphAttributes;for(const c in s){const u=[],f=s[c];for(let d=0,m=f.length;d0){const r=t[n[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=r.length;s(e.far-e.near)**2))&&(ua.copy(s).invert(),xn.copy(e.ray).applyMatrix4(ua),!(n.boundingBox!==null&&xn.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,xn)))}_computeIntersections(e,t,n){let r;const s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,c=s.attributes.uv,u=s.attributes.uv1,f=s.attributes.normal,d=s.groups,m=s.drawRange;if(a!==null)if(Array.isArray(o))for(let v=0,M=d.length;vt.far?null:{distance:c,point:ki.clone(),object:i}}function Wi(i,e,t,n,r,s,o,a,l,c){i.getVertexPosition(a,Wn),i.getVertexPosition(l,Xn),i.getVertexPosition(c,Yn);const u=Hc(i,e,t,n,Wn,Xn,Yn,Vi);if(u){r&&(zi.fromBufferAttribute(r,a),Hi.fromBufferAttribute(r,l),Gi.fromBufferAttribute(r,c),u.uv=Nt.getInterpolation(Vi,Wn,Xn,Yn,zi,Hi,Gi,new Me)),s&&(zi.fromBufferAttribute(s,a),Hi.fromBufferAttribute(s,l),Gi.fromBufferAttribute(s,c),u.uv1=Nt.getInterpolation(Vi,Wn,Xn,Yn,zi,Hi,Gi,new Me)),o&&(da.fromBufferAttribute(o,a),fa.fromBufferAttribute(o,l),pa.fromBufferAttribute(o,c),u.normal=Nt.getInterpolation(Vi,Wn,Xn,Yn,da,fa,pa,new L),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));const f={a,b:l,c,normal:new L,materialIndex:0};Nt.getNormal(Wn,Xn,Yn,f.normal),u.face=f}return u}class Cn extends Zt{constructor(e=1,t=1,n=1,r=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:s,depthSegments:o};const a=this;r=Math.floor(r),s=Math.floor(s),o=Math.floor(o);const l=[],c=[],u=[],f=[];let d=0,m=0;v("z","y","x",-1,-1,n,t,e,o,s,0),v("z","y","x",1,-1,n,t,-e,o,s,1),v("x","z","y",1,1,e,n,t,r,o,2),v("x","z","y",1,-1,e,n,-t,r,o,3),v("x","y","z",1,-1,e,t,n,r,s,4),v("x","y","z",-1,-1,e,t,-n,r,s,5),this.setIndex(l),this.setAttribute("position",new Ot(c,3)),this.setAttribute("normal",new Ot(u,3)),this.setAttribute("uv",new Ot(f,2));function v(M,p,h,A,E,b,N,w,R,V,y){const x=b/R,B=N/V,X=b/2,C=N/2,W=w/2,q=R+1,Z=V+1;let ie=0,G=0;const Q=new L;for(let J=0;J0?1:-1,u.push(Q.x,Q.y,Q.z),f.push(Ne/R),f.push(1-J/V),ie+=1}}for(let J=0;J0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const r in this.extensions)this.extensions[r]===!0&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Uo extends Mt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new nt,this.projectionMatrix=new nt,this.projectionMatrixInverse=new nt,this.coordinateSystem=qt}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const an=new L,ma=new Me,ga=new Me;class Tt extends Uo{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Mi*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(_i*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Mi*2*Math.atan(Math.tan(_i*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){an.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(an.x,an.y).multiplyScalar(-e/an.z),an.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(an.x,an.y).multiplyScalar(-e/an.z)}getViewSize(e,t){return this.getViewBounds(e,ma,ga),t.subVectors(ga,ma)}setViewOffset(e,t,n,r,s,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(_i*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,s=-.5*r;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;s+=o.offsetX*r/l,t-=o.offsetY*n/c,r*=o.width/l,n*=o.height/c}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const qn=-90,jn=1;class Xc extends Mt{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Tt(qn,jn,e,t);r.layers=this.layers,this.add(r);const s=new Tt(qn,jn,e,t);s.layers=this.layers,this.add(s);const o=new Tt(qn,jn,e,t);o.layers=this.layers,this.add(o);const a=new Tt(qn,jn,e,t);a.layers=this.layers,this.add(a);const l=new Tt(qn,jn,e,t);l.layers=this.layers,this.add(l);const c=new Tt(qn,jn,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,s,o,a,l]=t;for(const c of t)this.remove(c);if(e===qt)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===or)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,l,c,u]=this.children,f=e.getRenderTarget(),d=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),v=e.xr.enabled;e.xr.enabled=!1;const M=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,s),e.setRenderTarget(n,1,r),e.render(t,o),e.setRenderTarget(n,2,r),e.render(t,a),e.setRenderTarget(n,3,r),e.render(t,l),e.setRenderTarget(n,4,r),e.render(t,c),n.texture.generateMipmaps=M,e.setRenderTarget(n,5,r),e.render(t,u),e.setRenderTarget(f,d,m),e.xr.enabled=v,n.texture.needsPMREMUpdate=!0}}class No extends mt{constructor(e,t,n,r,s,o,a,l,c,u){e=e!==void 0?e:[],t=t!==void 0?t:ti,super(e,t,n,r,s,o,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Yc extends Rn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new No(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Pt}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},r=new Cn(5,5,5),s=new Kt({name:"CubemapFromEquirect",uniforms:ri(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:gt,blending:un});s.uniforms.tEquirect.value=t;const o=new Lt(r,s),a=t.minFilter;return t.minFilter===wn&&(t.minFilter=Pt),new Xc(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,r){const s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,r);e.setRenderTarget(s)}}const kr=new L,qc=new L,jc=new Pe;class on{constructor(e=new L(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=kr.subVectors(n,t).cross(qc.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(kr),r=this.normal.dot(n);if(r===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/r;return s<0||s>1?null:t.copy(e.start).addScaledVector(n,s)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||jc.getNormalMatrix(e),r=this.coplanarPoint(kr).applyMatrix4(e),s=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Mn=new ls,Xi=new L;class Fo{constructor(e=new on,t=new on,n=new on,r=new on,s=new on,o=new on){this.planes=[e,t,n,r,s,o]}set(e,t,n,r,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(s),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=qt){const n=this.planes,r=e.elements,s=r[0],o=r[1],a=r[2],l=r[3],c=r[4],u=r[5],f=r[6],d=r[7],m=r[8],v=r[9],M=r[10],p=r[11],h=r[12],A=r[13],E=r[14],b=r[15];if(n[0].setComponents(l-s,d-c,p-m,b-h).normalize(),n[1].setComponents(l+s,d+c,p+m,b+h).normalize(),n[2].setComponents(l+o,d+u,p+v,b+A).normalize(),n[3].setComponents(l-o,d-u,p-v,b-A).normalize(),n[4].setComponents(l-a,d-f,p-M,b-E).normalize(),t===qt)n[5].setComponents(l+a,d+f,p+M,b+E).normalize();else if(t===or)n[5].setComponents(a,f,M,E).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Mn.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Mn.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Mn)}intersectsSprite(e){return Mn.center.set(0,0,0),Mn.radius=.7071067811865476,Mn.applyMatrix4(e.matrixWorld),this.intersectsSphere(Mn)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(n)0?e.max.x:e.min.x,Xi.y=r.normal.y>0?e.max.y:e.min.y,Xi.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Xi)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Oo(){let i=null,e=!1,t=null,n=null;function r(s,o){t(s,o),n=i.requestAnimationFrame(r)}return{start:function(){e!==!0&&t!==null&&(n=i.requestAnimationFrame(r),e=!0)},stop:function(){i.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(s){t=s},setContext:function(s){i=s}}}function Kc(i){const e=new WeakMap;function t(a,l){const c=a.array,u=a.usage,f=c.byteLength,d=i.createBuffer();i.bindBuffer(l,d),i.bufferData(l,c,u),a.onUploadCallback();let m;if(c instanceof Float32Array)m=i.FLOAT;else if(c instanceof Uint16Array)a.isFloat16BufferAttribute?m=i.HALF_FLOAT:m=i.UNSIGNED_SHORT;else if(c instanceof Int16Array)m=i.SHORT;else if(c instanceof Uint32Array)m=i.UNSIGNED_INT;else if(c instanceof Int32Array)m=i.INT;else if(c instanceof Int8Array)m=i.BYTE;else if(c instanceof Uint8Array)m=i.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)m=i.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:d,type:m,bytesPerElement:c.BYTES_PER_ELEMENT,version:a.version,size:f}}function n(a,l,c){const u=l.array,f=l._updateRange,d=l.updateRanges;if(i.bindBuffer(c,a),f.count===-1&&d.length===0&&i.bufferSubData(c,0,u),d.length!==0){for(let m=0,v=d.length;m 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,du=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,fu=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,pu=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,mu=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,gu=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,_u=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + varying vec3 vColor; +#endif`,vu=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif`,xu=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +float luminance( const in vec3 rgb ) { + const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); + return dot( weights, rgb ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,Mu=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,Su=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,Eu=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,yu=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,Tu=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,Au=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,bu="gl_FragColor = linearToOutputTexel( gl_FragColor );",wu=` +const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( + vec3( 0.8224621, 0.177538, 0.0 ), + vec3( 0.0331941, 0.9668058, 0.0 ), + vec3( 0.0170827, 0.0723974, 0.9105199 ) +); +const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( + vec3( 1.2249401, - 0.2249404, 0.0 ), + vec3( - 0.0420569, 1.0420571, 0.0 ), + vec3( - 0.0196376, - 0.0786361, 1.0982735 ) +); +vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { + return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); +} +vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { + return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); +} +vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +} +vec4 LinearToLinear( in vec4 value ) { + return value; +} +vec4 LinearTosRGB( in vec4 value ) { + return sRGBTransferOETF( value ); +}`,Ru=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,Cu=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,Pu=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,Lu=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,Du=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,Iu=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,Uu=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,Nu=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,Fu=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,Ou=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,Bu=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,zu=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,Hu=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Gu=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + #if defined ( LEGACY_LIGHTS ) + if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { + return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); + } + return 1.0; + #else + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; + #endif +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,Vu=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,ku=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,Wu=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Xu=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,Yu=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,qu=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,ju=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,Ku=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,Zu=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,$u=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,Ju=`#if defined( USE_LOGDEPTHBUF ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,Qu=`#if defined( USE_LOGDEPTHBUF ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,eh=`#ifdef USE_LOGDEPTHBUF + varying float vFragDepth; + varying float vIsPerspective; +#endif`,th=`#ifdef USE_LOGDEPTHBUF + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,nh=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); + + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,ih=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,rh=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,sh=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,ah=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,oh=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,lh=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[MORPHTARGETS_COUNT]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,ch=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,uh=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } + #else + objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; + objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; + objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; + objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; + #endif +#endif`,hh=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + #endif + #ifdef MORPHTARGETS_TEXTURE + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } + #else + #ifndef USE_MORPHNORMALS + uniform float morphTargetInfluences[ 8 ]; + #else + uniform float morphTargetInfluences[ 4 ]; + #endif + #endif +#endif`,dh=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } + #else + transformed += morphTarget0 * morphTargetInfluences[ 0 ]; + transformed += morphTarget1 * morphTargetInfluences[ 1 ]; + transformed += morphTarget2 * morphTargetInfluences[ 2 ]; + transformed += morphTarget3 * morphTargetInfluences[ 3 ]; + #ifndef USE_MORPHNORMALS + transformed += morphTarget4 * morphTargetInfluences[ 4 ]; + transformed += morphTarget5 * morphTargetInfluences[ 5 ]; + transformed += morphTarget6 * morphTargetInfluences[ 6 ]; + transformed += morphTarget7 * morphTargetInfluences[ 7 ]; + #endif + #endif +#endif`,fh=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,ph=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,mh=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,gh=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,_h=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,vh=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,xh=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,Mh=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,Sh=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,Eh=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,yh=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Th=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; +const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); +const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); +const float ShiftRight8 = 1. / 256.; +vec4 packDepthToRGBA( const in float v ) { + vec4 r = vec4( fract( v * PackFactors ), v ); + r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors ); +} +vec2 packDepthToRG( in highp float v ) { + return packDepthToRGBA( v ).yx; +} +float unpackRGToDepth( const in highp vec2 v ) { + return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); +} +vec4 pack2HalfToRGBA( vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,Ah=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,bh=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,wh=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,Rh=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,Ch=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,Ph=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,Lh=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return shadow; + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return shadow; + } +#endif`,Dh=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,Ih=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,Uh=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,Nh=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,Fh=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,Oh=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,Bh=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,zh=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,Hh=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,Gh=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,Vh=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 OptimizedCineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,kh=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,Wh=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + + #else + + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,Xh=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,Yh=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,qh=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,jh=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`;const Kh=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,Zh=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,$h=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,Jh=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,Qh=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,ed=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,td=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,nd=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #endif +}`,id=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,rd=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,sd=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,ad=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,od=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,ld=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,cd=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,ud=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,hd=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,dd=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,fd=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,pd=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,md=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,gd=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,_d=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,vd=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,xd=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,Md=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,Sd=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,Ed=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,yd=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,Td=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,Ad=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,bd=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,wd=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,Rd=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,Ce={alphahash_fragment:Zc,alphahash_pars_fragment:$c,alphamap_fragment:Jc,alphamap_pars_fragment:Qc,alphatest_fragment:eu,alphatest_pars_fragment:tu,aomap_fragment:nu,aomap_pars_fragment:iu,batching_pars_vertex:ru,batching_vertex:su,begin_vertex:au,beginnormal_vertex:ou,bsdfs:lu,iridescence_fragment:cu,bumpmap_pars_fragment:uu,clipping_planes_fragment:hu,clipping_planes_pars_fragment:du,clipping_planes_pars_vertex:fu,clipping_planes_vertex:pu,color_fragment:mu,color_pars_fragment:gu,color_pars_vertex:_u,color_vertex:vu,common:xu,cube_uv_reflection_fragment:Mu,defaultnormal_vertex:Su,displacementmap_pars_vertex:Eu,displacementmap_vertex:yu,emissivemap_fragment:Tu,emissivemap_pars_fragment:Au,colorspace_fragment:bu,colorspace_pars_fragment:wu,envmap_fragment:Ru,envmap_common_pars_fragment:Cu,envmap_pars_fragment:Pu,envmap_pars_vertex:Lu,envmap_physical_pars_fragment:Vu,envmap_vertex:Du,fog_vertex:Iu,fog_pars_vertex:Uu,fog_fragment:Nu,fog_pars_fragment:Fu,gradientmap_pars_fragment:Ou,lightmap_pars_fragment:Bu,lights_lambert_fragment:zu,lights_lambert_pars_fragment:Hu,lights_pars_begin:Gu,lights_toon_fragment:ku,lights_toon_pars_fragment:Wu,lights_phong_fragment:Xu,lights_phong_pars_fragment:Yu,lights_physical_fragment:qu,lights_physical_pars_fragment:ju,lights_fragment_begin:Ku,lights_fragment_maps:Zu,lights_fragment_end:$u,logdepthbuf_fragment:Ju,logdepthbuf_pars_fragment:Qu,logdepthbuf_pars_vertex:eh,logdepthbuf_vertex:th,map_fragment:nh,map_pars_fragment:ih,map_particle_fragment:rh,map_particle_pars_fragment:sh,metalnessmap_fragment:ah,metalnessmap_pars_fragment:oh,morphinstance_vertex:lh,morphcolor_vertex:ch,morphnormal_vertex:uh,morphtarget_pars_vertex:hh,morphtarget_vertex:dh,normal_fragment_begin:fh,normal_fragment_maps:ph,normal_pars_fragment:mh,normal_pars_vertex:gh,normal_vertex:_h,normalmap_pars_fragment:vh,clearcoat_normal_fragment_begin:xh,clearcoat_normal_fragment_maps:Mh,clearcoat_pars_fragment:Sh,iridescence_pars_fragment:Eh,opaque_fragment:yh,packing:Th,premultiplied_alpha_fragment:Ah,project_vertex:bh,dithering_fragment:wh,dithering_pars_fragment:Rh,roughnessmap_fragment:Ch,roughnessmap_pars_fragment:Ph,shadowmap_pars_fragment:Lh,shadowmap_pars_vertex:Dh,shadowmap_vertex:Ih,shadowmask_pars_fragment:Uh,skinbase_vertex:Nh,skinning_pars_vertex:Fh,skinning_vertex:Oh,skinnormal_vertex:Bh,specularmap_fragment:zh,specularmap_pars_fragment:Hh,tonemapping_fragment:Gh,tonemapping_pars_fragment:Vh,transmission_fragment:kh,transmission_pars_fragment:Wh,uv_pars_fragment:Xh,uv_pars_vertex:Yh,uv_vertex:qh,worldpos_vertex:jh,background_vert:Kh,background_frag:Zh,backgroundCube_vert:$h,backgroundCube_frag:Jh,cube_vert:Qh,cube_frag:ed,depth_vert:td,depth_frag:nd,distanceRGBA_vert:id,distanceRGBA_frag:rd,equirect_vert:sd,equirect_frag:ad,linedashed_vert:od,linedashed_frag:ld,meshbasic_vert:cd,meshbasic_frag:ud,meshlambert_vert:hd,meshlambert_frag:dd,meshmatcap_vert:fd,meshmatcap_frag:pd,meshnormal_vert:md,meshnormal_frag:gd,meshphong_vert:_d,meshphong_frag:vd,meshphysical_vert:xd,meshphysical_frag:Md,meshtoon_vert:Sd,meshtoon_frag:Ed,points_vert:yd,points_frag:Td,shadow_vert:Ad,shadow_frag:bd,sprite_vert:wd,sprite_frag:Rd},se={common:{diffuse:{value:new qe(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Pe},alphaMap:{value:null},alphaMapTransform:{value:new Pe},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Pe}},envmap:{envMap:{value:null},envMapRotation:{value:new Pe},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Pe}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Pe}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Pe},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Pe},normalScale:{value:new Me(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Pe},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Pe}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Pe}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Pe}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new qe(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new qe(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Pe},alphaTest:{value:0},uvTransform:{value:new Pe}},sprite:{diffuse:{value:new qe(16777215)},opacity:{value:1},center:{value:new Me(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Pe},alphaMap:{value:null},alphaMapTransform:{value:new Pe},alphaTest:{value:0}}},Ut={basic:{uniforms:pt([se.common,se.specularmap,se.envmap,se.aomap,se.lightmap,se.fog]),vertexShader:Ce.meshbasic_vert,fragmentShader:Ce.meshbasic_frag},lambert:{uniforms:pt([se.common,se.specularmap,se.envmap,se.aomap,se.lightmap,se.emissivemap,se.bumpmap,se.normalmap,se.displacementmap,se.fog,se.lights,{emissive:{value:new qe(0)}}]),vertexShader:Ce.meshlambert_vert,fragmentShader:Ce.meshlambert_frag},phong:{uniforms:pt([se.common,se.specularmap,se.envmap,se.aomap,se.lightmap,se.emissivemap,se.bumpmap,se.normalmap,se.displacementmap,se.fog,se.lights,{emissive:{value:new qe(0)},specular:{value:new qe(1118481)},shininess:{value:30}}]),vertexShader:Ce.meshphong_vert,fragmentShader:Ce.meshphong_frag},standard:{uniforms:pt([se.common,se.envmap,se.aomap,se.lightmap,se.emissivemap,se.bumpmap,se.normalmap,se.displacementmap,se.roughnessmap,se.metalnessmap,se.fog,se.lights,{emissive:{value:new qe(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ce.meshphysical_vert,fragmentShader:Ce.meshphysical_frag},toon:{uniforms:pt([se.common,se.aomap,se.lightmap,se.emissivemap,se.bumpmap,se.normalmap,se.displacementmap,se.gradientmap,se.fog,se.lights,{emissive:{value:new qe(0)}}]),vertexShader:Ce.meshtoon_vert,fragmentShader:Ce.meshtoon_frag},matcap:{uniforms:pt([se.common,se.bumpmap,se.normalmap,se.displacementmap,se.fog,{matcap:{value:null}}]),vertexShader:Ce.meshmatcap_vert,fragmentShader:Ce.meshmatcap_frag},points:{uniforms:pt([se.points,se.fog]),vertexShader:Ce.points_vert,fragmentShader:Ce.points_frag},dashed:{uniforms:pt([se.common,se.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ce.linedashed_vert,fragmentShader:Ce.linedashed_frag},depth:{uniforms:pt([se.common,se.displacementmap]),vertexShader:Ce.depth_vert,fragmentShader:Ce.depth_frag},normal:{uniforms:pt([se.common,se.bumpmap,se.normalmap,se.displacementmap,{opacity:{value:1}}]),vertexShader:Ce.meshnormal_vert,fragmentShader:Ce.meshnormal_frag},sprite:{uniforms:pt([se.sprite,se.fog]),vertexShader:Ce.sprite_vert,fragmentShader:Ce.sprite_frag},background:{uniforms:{uvTransform:{value:new Pe},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Ce.background_vert,fragmentShader:Ce.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Pe}},vertexShader:Ce.backgroundCube_vert,fragmentShader:Ce.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ce.cube_vert,fragmentShader:Ce.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ce.equirect_vert,fragmentShader:Ce.equirect_frag},distanceRGBA:{uniforms:pt([se.common,se.displacementmap,{referencePosition:{value:new L},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ce.distanceRGBA_vert,fragmentShader:Ce.distanceRGBA_frag},shadow:{uniforms:pt([se.lights,se.fog,{color:{value:new qe(0)},opacity:{value:1}}]),vertexShader:Ce.shadow_vert,fragmentShader:Ce.shadow_frag}};Ut.physical={uniforms:pt([Ut.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Pe},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Pe},clearcoatNormalScale:{value:new Me(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Pe},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Pe},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Pe},sheen:{value:0},sheenColor:{value:new qe(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Pe},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Pe},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Pe},transmissionSamplerSize:{value:new Me},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Pe},attenuationDistance:{value:0},attenuationColor:{value:new qe(0)},specularColor:{value:new qe(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Pe},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Pe},anisotropyVector:{value:new Me},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Pe}}]),vertexShader:Ce.meshphysical_vert,fragmentShader:Ce.meshphysical_frag};const Yi={r:0,b:0,g:0},Sn=new jt,Cd=new nt;function Pd(i,e,t,n,r,s,o){const a=new qe(0);let l=s===!0?0:1,c,u,f=null,d=0,m=null;function v(A){let E=A.isScene===!0?A.background:null;return E&&E.isTexture&&(E=(A.backgroundBlurriness>0?t:e).get(E)),E}function M(A){let E=!1;const b=v(A);b===null?h(a,l):b&&b.isColor&&(h(b,1),E=!0);const N=i.xr.getEnvironmentBlendMode();N==="additive"?n.buffers.color.setClear(0,0,0,1,o):N==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,o),(i.autoClear||E)&&i.clear(i.autoClearColor,i.autoClearDepth,i.autoClearStencil)}function p(A,E){const b=v(E);b&&(b.isCubeTexture||b.mapping===ur)?(u===void 0&&(u=new Lt(new Cn(1,1,1),new Kt({name:"BackgroundCubeMaterial",uniforms:ri(Ut.backgroundCube.uniforms),vertexShader:Ut.backgroundCube.vertexShader,fragmentShader:Ut.backgroundCube.fragmentShader,side:gt,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(N,w,R){this.matrixWorld.copyPosition(R.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),Sn.copy(E.backgroundRotation),Sn.x*=-1,Sn.y*=-1,Sn.z*=-1,b.isCubeTexture&&b.isRenderTargetTexture===!1&&(Sn.y*=-1,Sn.z*=-1),u.material.uniforms.envMap.value=b,u.material.uniforms.flipEnvMap.value=b.isCubeTexture&&b.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=E.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(Cd.makeRotationFromEuler(Sn)),u.material.toneMapped=Ye.getTransfer(b.colorSpace)!==Ke,(f!==b||d!==b.version||m!==i.toneMapping)&&(u.material.needsUpdate=!0,f=b,d=b.version,m=i.toneMapping),u.layers.enableAll(),A.unshift(u,u.geometry,u.material,0,0,null)):b&&b.isTexture&&(c===void 0&&(c=new Lt(new pr(2,2),new Kt({name:"BackgroundMaterial",uniforms:ri(Ut.background.uniforms),vertexShader:Ut.background.vertexShader,fragmentShader:Ut.background.fragmentShader,side:dn,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=b,c.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,c.material.toneMapped=Ye.getTransfer(b.colorSpace)!==Ke,b.matrixAutoUpdate===!0&&b.updateMatrix(),c.material.uniforms.uvTransform.value.copy(b.matrix),(f!==b||d!==b.version||m!==i.toneMapping)&&(c.material.needsUpdate=!0,f=b,d=b.version,m=i.toneMapping),c.layers.enableAll(),A.unshift(c,c.geometry,c.material,0,0,null))}function h(A,E){A.getRGB(Yi,Io(i)),n.buffers.color.setClear(Yi.r,Yi.g,Yi.b,E,o)}return{getClearColor:function(){return a},setClearColor:function(A,E=1){a.set(A),l=E,h(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(A){l=A,h(a,l)},render:M,addToRenderList:p}}function Ld(i,e){const t=i.getParameter(i.MAX_VERTEX_ATTRIBS),n={},r=d(null);let s=r,o=!1;function a(x,B,X,C,W){let q=!1;const Z=f(C,X,B);s!==Z&&(s=Z,c(s.object)),q=m(x,C,X,W),q&&v(x,C,X,W),W!==null&&e.update(W,i.ELEMENT_ARRAY_BUFFER),(q||o)&&(o=!1,b(x,B,X,C),W!==null&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,e.get(W).buffer))}function l(){return i.createVertexArray()}function c(x){return i.bindVertexArray(x)}function u(x){return i.deleteVertexArray(x)}function f(x,B,X){const C=X.wireframe===!0;let W=n[x.id];W===void 0&&(W={},n[x.id]=W);let q=W[B.id];q===void 0&&(q={},W[B.id]=q);let Z=q[C];return Z===void 0&&(Z=d(l()),q[C]=Z),Z}function d(x){const B=[],X=[],C=[];for(let W=0;W=0){const J=W[G];let de=q[G];if(de===void 0&&(G==="instanceMatrix"&&x.instanceMatrix&&(de=x.instanceMatrix),G==="instanceColor"&&x.instanceColor&&(de=x.instanceColor)),J===void 0||J.attribute!==de||de&&J.data!==de.data)return!0;Z++}return s.attributesNum!==Z||s.index!==C}function v(x,B,X,C){const W={},q=B.attributes;let Z=0;const ie=X.getAttributes();for(const G in ie)if(ie[G].location>=0){let J=q[G];J===void 0&&(G==="instanceMatrix"&&x.instanceMatrix&&(J=x.instanceMatrix),G==="instanceColor"&&x.instanceColor&&(J=x.instanceColor));const de={};de.attribute=J,J&&J.data&&(de.data=J.data),W[G]=de,Z++}s.attributes=W,s.attributesNum=Z,s.index=C}function M(){const x=s.newAttributes;for(let B=0,X=x.length;B=0){let Q=W[ie];if(Q===void 0&&(ie==="instanceMatrix"&&x.instanceMatrix&&(Q=x.instanceMatrix),ie==="instanceColor"&&x.instanceColor&&(Q=x.instanceColor)),Q!==void 0){const J=Q.normalized,de=Q.itemSize,Ne=e.get(Q);if(Ne===void 0)continue;const Ve=Ne.buffer,k=Ne.type,ee=Ne.bytesPerElement,ue=k===i.INT||k===i.UNSIGNED_INT||Q.gpuType===vo;if(Q.isInterleavedBufferAttribute){const re=Q.data,Fe=re.stride,Le=Q.offset;if(re.isInstancedInterleavedBuffer){for(let I=0;I0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT).precision>0)return"highp";w="mediump"}return w==="mediump"&&i.getShaderPrecisionFormat(i.VERTEX_SHADER,i.MEDIUM_FLOAT).precision>0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp";const u=l(c);u!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const f=t.logarithmicDepthBuffer===!0,d=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),m=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),v=i.getParameter(i.MAX_TEXTURE_SIZE),M=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),p=i.getParameter(i.MAX_VERTEX_ATTRIBS),h=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),A=i.getParameter(i.MAX_VARYING_VECTORS),E=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),b=m>0,N=i.getParameter(i.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:s,getMaxPrecision:l,textureFormatReadable:o,textureTypeReadable:a,precision:c,logarithmicDepthBuffer:f,maxTextures:d,maxVertexTextures:m,maxTextureSize:v,maxCubemapSize:M,maxAttributes:p,maxVertexUniforms:h,maxVaryings:A,maxFragmentUniforms:E,vertexTextures:b,maxSamples:N}}function Ud(i){const e=this;let t=null,n=0,r=!1,s=!1;const o=new on,a=new Pe,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(f,d){const m=f.length!==0||d||n!==0||r;return r=d,n=f.length,m},this.beginShadows=function(){s=!0,u(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(f,d){t=u(f,d,0)},this.setState=function(f,d,m){const v=f.clippingPlanes,M=f.clipIntersection,p=f.clipShadows,h=i.get(f);if(!r||v===null||v.length===0||s&&!p)s?u(null):c();else{const A=s?0:n,E=A*4;let b=h.clippingState||null;l.value=b,b=u(v,d,E,m);for(let N=0;N!==E;++N)b[N]=t[N];h.clippingState=b,this.numIntersection=M?this.numPlanes:0,this.numPlanes+=A}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function u(f,d,m,v){const M=f!==null?f.length:0;let p=null;if(M!==0){if(p=l.value,v!==!0||p===null){const h=m+M*4,A=d.matrixWorldInverse;a.getNormalMatrix(A),(p===null||p.length0){const c=new Yc(l.height);return c.fromEquirectangularTexture(i,o),e.set(o,c),o.addEventListener("dispose",r),t(c.texture,o.mapping)}else return null}}return o}function r(o){const a=o.target;a.removeEventListener("dispose",r);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:n,dispose:s}}class Fd extends Uo{constructor(e=-1,t=1,n=1,r=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let s=n-e,o=n+e,a=r+t,l=r-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=c*this.view.offsetX,o=s+c*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const $n=4,_a=[.125,.215,.35,.446,.526,.582],An=20,Wr=new Fd,va=new qe;let Xr=null,Yr=0,qr=0,jr=!1;const yn=(1+Math.sqrt(5))/2,Kn=1/yn,xa=[new L(-yn,Kn,0),new L(yn,Kn,0),new L(-Kn,0,yn),new L(Kn,0,yn),new L(0,yn,-Kn),new L(0,yn,Kn),new L(-1,1,-1),new L(1,1,-1),new L(-1,1,1),new L(1,1,1)];class Ma{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){Xr=this._renderer.getRenderTarget(),Yr=this._renderer.getActiveCubeFace(),qr=this._renderer.getActiveMipmapLevel(),jr=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,r,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=ya(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Ea(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(r),M&&u.render(v,a),u.render(e,a)}v.geometry.dispose(),v.material.dispose(),u.toneMapping=d,u.autoClear=f,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===ti||e.mapping===ni;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=ya()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Ea());const s=r?this._cubemapMaterial:this._equirectMaterial,o=new Lt(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;qi(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(o,Wr)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const r=this._lodPlanes.length;for(let s=1;sAn&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${An}`);const h=[];let A=0;for(let R=0;RE-$n?r-E+$n:0),w=4*(this._cubeSize-b);qi(t,N,w,3*b,2*b),l.setRenderTarget(t),l.render(f,Wr)}}function Od(i){const e=[],t=[],n=[];let r=i;const s=i-$n+1+_a.length;for(let o=0;oi-$n?l=_a[o-i+$n-1]:o===0&&(l=0),n.push(l);const c=1/(a-2),u=-c,f=1+c,d=[u,u,f,u,f,f,u,u,f,f,u,f],m=6,v=6,M=3,p=2,h=1,A=new Float32Array(M*v*m),E=new Float32Array(p*v*m),b=new Float32Array(h*v*m);for(let w=0;w2?0:-1,y=[R,V,0,R+2/3,V,0,R+2/3,V+1,0,R,V,0,R+2/3,V+1,0,R,V+1,0];A.set(y,M*v*w),E.set(d,p*v*w);const x=[w,w,w,w,w,w];b.set(x,h*v*w)}const N=new Zt;N.setAttribute("position",new Dt(A,M)),N.setAttribute("uv",new Dt(E,p)),N.setAttribute("faceIndex",new Dt(b,h)),e.push(N),r>$n&&r--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function Sa(i,e,t){const n=new Rn(i,e,t);return n.texture.mapping=ur,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function qi(i,e,t,n,r){i.viewport.set(e,t,n,r),i.scissor.set(e,t,n,r)}function Bd(i,e,t){const n=new Float32Array(An),r=new L(0,1,0);return new Kt({name:"SphericalGaussianBlur",defines:{n:An,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${i}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:us(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:un,depthTest:!1,depthWrite:!1})}function Ea(){return new Kt({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:us(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:un,depthTest:!1,depthWrite:!1})}function ya(){return new Kt({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:us(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:un,depthTest:!1,depthWrite:!1})}function us(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function zd(i){let e=new WeakMap,t=null;function n(a){if(a&&a.isTexture){const l=a.mapping,c=l===es||l===ts,u=l===ti||l===ni;if(c||u){let f=e.get(a);const d=f!==void 0?f.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==d)return t===null&&(t=new Ma(i)),f=c?t.fromEquirectangular(a,f):t.fromCubemap(a,f),f.texture.pmremVersion=a.pmremVersion,e.set(a,f),f.texture;if(f!==void 0)return f.texture;{const m=a.image;return c&&m&&m.height>0||u&&m&&r(m)?(t===null&&(t=new Ma(i)),f=c?t.fromEquirectangular(a):t.fromCubemap(a),f.texture.pmremVersion=a.pmremVersion,e.set(a,f),a.addEventListener("dispose",s),f.texture):null}}}return a}function r(a){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(N=Math.ceil(b/e.maxTextureSize),b=e.maxTextureSize);const w=new Float32Array(b*N*4*f),R=new wo(w,b,N,f);R.type=cn,R.needsUpdate=!0;const V=E*4;for(let x=0;x0)return i;const r=e*t;let s=Ta[r];if(s===void 0&&(s=new Float32Array(r),Ta[r]=s),e!==0){n.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=t,i[o].toArray(s,a)}return s}function it(i,e){if(i.length!==e.length)return!1;for(let t=0,n=i.length;t":" "} ${a}: ${t[o]}`)}return n.join(` +`)}function Hf(i){const e=Ye.getPrimaries(Ye.workingColorSpace),t=Ye.getPrimaries(i);let n;switch(e===t?n="":e===ar&&t===sr?n="LinearDisplayP3ToLinearSRGB":e===sr&&t===ar&&(n="LinearSRGBToLinearDisplayP3"),i){case mn:case dr:return[n,"LinearTransferOETF"];case It:case as:return[n,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",i),[n,"LinearTransferOETF"]}}function La(i,e,t){const n=i.getShaderParameter(e,i.COMPILE_STATUS),r=i.getShaderInfoLog(e).trim();if(n&&r==="")return"";const s=/ERROR: 0:(\d+)/.exec(r);if(s){const o=parseInt(s[1]);return t.toUpperCase()+` + +`+r+` + +`+zf(i.getShaderSource(e),o)}else return r}function Gf(i,e){const t=Hf(e);return`vec4 ${i}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function Vf(i,e){let t;switch(e){case Ll:t="Linear";break;case Dl:t="Reinhard";break;case Il:t="OptimizedCineon";break;case Ul:t="ACESFilmic";break;case Fl:t="AgX";break;case Ol:t="Neutral";break;case Nl:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+i+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function kf(i){return[i.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",i.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(mi).join(` +`)}function Wf(i){const e=[];for(const t in i){const n=i[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` +`)}function Xf(i,e){const t={},n=i.getProgramParameter(e,i.ACTIVE_ATTRIBUTES);for(let r=0;r/gm;function rs(i){return i.replace(Yf,jf)}const qf=new Map;function jf(i,e){let t=Ce[e];if(t===void 0){const n=qf.get(e);if(n!==void 0)t=Ce[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return rs(t)}const Kf=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ua(i){return i.replace(Kf,Zf)}function Zf(i,e,t,n){let r="";for(let s=parseInt(e);s0&&(p+=` +`),h=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,v].filter(mi).join(` +`),h.length>0&&(h+=` +`)):(p=[Na(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,v,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(mi).join(` +`),h=[Na(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,v,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+u:"",t.envMap?"#define "+f:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==hn?"#define TONE_MAPPING":"",t.toneMapping!==hn?Ce.tonemapping_pars_fragment:"",t.toneMapping!==hn?Vf("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Ce.colorspace_pars_fragment,Gf("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(mi).join(` +`)),o=rs(o),o=Da(o,t),o=Ia(o,t),a=rs(a),a=Da(a,t),a=Ia(a,t),o=Ua(o),a=Ua(a),t.isRawShaderMaterial!==!0&&(A=`#version 300 es +`,p=[m,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+p,h=["#define varying in",t.glslVersion===Zs?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Zs?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+h);const E=A+p+o,b=A+h+a,N=Pa(r,r.VERTEX_SHADER,E),w=Pa(r,r.FRAGMENT_SHADER,b);r.attachShader(M,N),r.attachShader(M,w),t.index0AttributeName!==void 0?r.bindAttribLocation(M,0,t.index0AttributeName):t.morphTargets===!0&&r.bindAttribLocation(M,0,"position"),r.linkProgram(M);function R(B){if(i.debug.checkShaderErrors){const X=r.getProgramInfoLog(M).trim(),C=r.getShaderInfoLog(N).trim(),W=r.getShaderInfoLog(w).trim();let q=!0,Z=!0;if(r.getProgramParameter(M,r.LINK_STATUS)===!1)if(q=!1,typeof i.debug.onShaderError=="function")i.debug.onShaderError(r,M,N,w);else{const ie=La(r,N,"vertex"),G=La(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(M,r.VALIDATE_STATUS)+` + +Material Name: `+B.name+` +Material Type: `+B.type+` + +Program Info Log: `+X+` +`+ie+` +`+G)}else X!==""?console.warn("THREE.WebGLProgram: Program Info Log:",X):(C===""||W==="")&&(Z=!1);Z&&(B.diagnostics={runnable:q,programLog:X,vertexShader:{log:C,prefix:p},fragmentShader:{log:W,prefix:h}})}r.deleteShader(N),r.deleteShader(w),V=new nr(r,M),y=Xf(r,M)}let V;this.getUniforms=function(){return V===void 0&&R(this),V};let y;this.getAttributes=function(){return y===void 0&&R(this),y};let x=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return x===!1&&(x=r.getProgramParameter(M,Of)),x},this.destroy=function(){n.releaseStatesOfProgram(this),r.deleteProgram(M),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Bf++,this.cacheKey=e,this.usedTimes=1,this.program=M,this.vertexShader=N,this.fragmentShader=w,this}let ip=0;class rp{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),s=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return o.has(r)===!1&&(o.add(r),r.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new sp(e),t.set(e,n)),n}}class sp{constructor(e){this.id=ip++,this.code=e,this.usedTimes=0}}function ap(i,e,t,n,r,s,o){const a=new Co,l=new rp,c=new Set,u=[],f=r.logarithmicDepthBuffer,d=r.vertexTextures;let m=r.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function M(y){return c.add(y),y===0?"uv":`uv${y}`}function p(y,x,B,X,C){const W=X.fog,q=C.geometry,Z=y.isMeshStandardMaterial?X.environment:null,ie=(y.isMeshStandardMaterial?t:e).get(y.envMap||Z),G=ie&&ie.mapping===ur?ie.image.height:null,Q=v[y.type];y.precision!==null&&(m=r.getMaxPrecision(y.precision),m!==y.precision&&console.warn("THREE.WebGLProgram.getParameters:",y.precision,"not supported, using",m,"instead."));const J=q.morphAttributes.position||q.morphAttributes.normal||q.morphAttributes.color,de=J!==void 0?J.length:0;let Ne=0;q.morphAttributes.position!==void 0&&(Ne=1),q.morphAttributes.normal!==void 0&&(Ne=2),q.morphAttributes.color!==void 0&&(Ne=3);let Ve,k,ee,ue;if(Q){const He=Ut[Q];Ve=He.vertexShader,k=He.fragmentShader}else Ve=y.vertexShader,k=y.fragmentShader,l.update(y),ee=l.getVertexShaderID(y),ue=l.getFragmentShaderID(y);const re=i.getRenderTarget(),Fe=C.isInstancedMesh===!0,Le=C.isBatchedMesh===!0,I=!!y.map,ke=!!y.matcap,ge=!!ie,We=!!y.aoMap,ve=!!y.lightMap,Oe=!!y.bumpMap,Te=!!y.normalMap,Be=!!y.displacementMap,Ze=!!y.emissiveMap,T=!!y.metalnessMap,_=!!y.roughnessMap,H=y.anisotropy>0,Y=y.clearcoat>0,K=y.dispersion>0,$=y.iridescence>0,me=y.sheen>0,oe=y.transmission>0,ae=H&&!!y.anisotropyMap,Se=Y&&!!y.clearcoatMap,ne=Y&&!!y.clearcoatNormalMap,pe=Y&&!!y.clearcoatRoughnessMap,ze=$&&!!y.iridescenceMap,_e=$&&!!y.iridescenceThicknessMap,ce=me&&!!y.sheenColorMap,Ae=me&&!!y.sheenRoughnessMap,De=!!y.specularMap,Xe=!!y.specularColorMap,we=!!y.specularIntensityMap,g=oe&&!!y.transmissionMap,P=oe&&!!y.thicknessMap,U=!!y.gradientMap,j=!!y.alphaMap,te=y.alphaTest>0,be=!!y.alphaHash,Ie=!!y.extensions;let Je=hn;y.toneMapped&&(re===null||re.isXRRenderTarget===!0)&&(Je=i.toneMapping);const st={shaderID:Q,shaderType:y.type,shaderName:y.name,vertexShader:Ve,fragmentShader:k,defines:y.defines,customVertexShaderID:ee,customFragmentShaderID:ue,isRawShaderMaterial:y.isRawShaderMaterial===!0,glslVersion:y.glslVersion,precision:m,batching:Le,instancing:Fe,instancingColor:Fe&&C.instanceColor!==null,instancingMorph:Fe&&C.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:re===null?i.outputColorSpace:re.isXRRenderTarget===!0?re.texture.colorSpace:mn,alphaToCoverage:!!y.alphaToCoverage,map:I,matcap:ke,envMap:ge,envMapMode:ge&&ie.mapping,envMapCubeUVHeight:G,aoMap:We,lightMap:ve,bumpMap:Oe,normalMap:Te,displacementMap:d&&Be,emissiveMap:Ze,normalMapObjectSpace:Te&&y.normalMapType===Jl,normalMapTangentSpace:Te&&y.normalMapType===$l,metalnessMap:T,roughnessMap:_,anisotropy:H,anisotropyMap:ae,clearcoat:Y,clearcoatMap:Se,clearcoatNormalMap:ne,clearcoatRoughnessMap:pe,dispersion:K,iridescence:$,iridescenceMap:ze,iridescenceThicknessMap:_e,sheen:me,sheenColorMap:ce,sheenRoughnessMap:Ae,specularMap:De,specularColorMap:Xe,specularIntensityMap:we,transmission:oe,transmissionMap:g,thicknessMap:P,gradientMap:U,opaque:y.transparent===!1&&y.blending===Jn&&y.alphaToCoverage===!1,alphaMap:j,alphaTest:te,alphaHash:be,combine:y.combine,mapUv:I&&M(y.map.channel),aoMapUv:We&&M(y.aoMap.channel),lightMapUv:ve&&M(y.lightMap.channel),bumpMapUv:Oe&&M(y.bumpMap.channel),normalMapUv:Te&&M(y.normalMap.channel),displacementMapUv:Be&&M(y.displacementMap.channel),emissiveMapUv:Ze&&M(y.emissiveMap.channel),metalnessMapUv:T&&M(y.metalnessMap.channel),roughnessMapUv:_&&M(y.roughnessMap.channel),anisotropyMapUv:ae&&M(y.anisotropyMap.channel),clearcoatMapUv:Se&&M(y.clearcoatMap.channel),clearcoatNormalMapUv:ne&&M(y.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:pe&&M(y.clearcoatRoughnessMap.channel),iridescenceMapUv:ze&&M(y.iridescenceMap.channel),iridescenceThicknessMapUv:_e&&M(y.iridescenceThicknessMap.channel),sheenColorMapUv:ce&&M(y.sheenColorMap.channel),sheenRoughnessMapUv:Ae&&M(y.sheenRoughnessMap.channel),specularMapUv:De&&M(y.specularMap.channel),specularColorMapUv:Xe&&M(y.specularColorMap.channel),specularIntensityMapUv:we&&M(y.specularIntensityMap.channel),transmissionMapUv:g&&M(y.transmissionMap.channel),thicknessMapUv:P&&M(y.thicknessMap.channel),alphaMapUv:j&&M(y.alphaMap.channel),vertexTangents:!!q.attributes.tangent&&(Te||H),vertexColors:y.vertexColors,vertexAlphas:y.vertexColors===!0&&!!q.attributes.color&&q.attributes.color.itemSize===4,pointsUvs:C.isPoints===!0&&!!q.attributes.uv&&(I||j),fog:!!W,useFog:y.fog===!0,fogExp2:!!W&&W.isFogExp2,flatShading:y.flatShading===!0,sizeAttenuation:y.sizeAttenuation===!0,logarithmicDepthBuffer:f,skinning:C.isSkinnedMesh===!0,morphTargets:q.morphAttributes.position!==void 0,morphNormals:q.morphAttributes.normal!==void 0,morphColors:q.morphAttributes.color!==void 0,morphTargetsCount:de,morphTextureStride:Ne,numDirLights:x.directional.length,numPointLights:x.point.length,numSpotLights:x.spot.length,numSpotLightMaps:x.spotLightMap.length,numRectAreaLights:x.rectArea.length,numHemiLights:x.hemi.length,numDirLightShadows:x.directionalShadowMap.length,numPointLightShadows:x.pointShadowMap.length,numSpotLightShadows:x.spotShadowMap.length,numSpotLightShadowsWithMaps:x.numSpotLightShadowsWithMaps,numLightProbes:x.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:y.dithering,shadowMapEnabled:i.shadowMap.enabled&&B.length>0,shadowMapType:i.shadowMap.type,toneMapping:Je,useLegacyLights:i._useLegacyLights,decodeVideoTexture:I&&y.map.isVideoTexture===!0&&Ye.getTransfer(y.map.colorSpace)===Ke,premultipliedAlpha:y.premultipliedAlpha,doubleSided:y.side===Yt,flipSided:y.side===gt,useDepthPacking:y.depthPacking>=0,depthPacking:y.depthPacking||0,index0AttributeName:y.index0AttributeName,extensionClipCullDistance:Ie&&y.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:Ie&&y.extensions.multiDraw===!0&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:y.customProgramCacheKey()};return st.vertexUv1s=c.has(1),st.vertexUv2s=c.has(2),st.vertexUv3s=c.has(3),c.clear(),st}function h(y){const x=[];if(y.shaderID?x.push(y.shaderID):(x.push(y.customVertexShaderID),x.push(y.customFragmentShaderID)),y.defines!==void 0)for(const B in y.defines)x.push(B),x.push(y.defines[B]);return y.isRawShaderMaterial===!1&&(A(x,y),E(x,y),x.push(i.outputColorSpace)),x.push(y.customProgramCacheKey),x.join()}function A(y,x){y.push(x.precision),y.push(x.outputColorSpace),y.push(x.envMapMode),y.push(x.envMapCubeUVHeight),y.push(x.mapUv),y.push(x.alphaMapUv),y.push(x.lightMapUv),y.push(x.aoMapUv),y.push(x.bumpMapUv),y.push(x.normalMapUv),y.push(x.displacementMapUv),y.push(x.emissiveMapUv),y.push(x.metalnessMapUv),y.push(x.roughnessMapUv),y.push(x.anisotropyMapUv),y.push(x.clearcoatMapUv),y.push(x.clearcoatNormalMapUv),y.push(x.clearcoatRoughnessMapUv),y.push(x.iridescenceMapUv),y.push(x.iridescenceThicknessMapUv),y.push(x.sheenColorMapUv),y.push(x.sheenRoughnessMapUv),y.push(x.specularMapUv),y.push(x.specularColorMapUv),y.push(x.specularIntensityMapUv),y.push(x.transmissionMapUv),y.push(x.thicknessMapUv),y.push(x.combine),y.push(x.fogExp2),y.push(x.sizeAttenuation),y.push(x.morphTargetsCount),y.push(x.morphAttributeCount),y.push(x.numDirLights),y.push(x.numPointLights),y.push(x.numSpotLights),y.push(x.numSpotLightMaps),y.push(x.numHemiLights),y.push(x.numRectAreaLights),y.push(x.numDirLightShadows),y.push(x.numPointLightShadows),y.push(x.numSpotLightShadows),y.push(x.numSpotLightShadowsWithMaps),y.push(x.numLightProbes),y.push(x.shadowMapType),y.push(x.toneMapping),y.push(x.numClippingPlanes),y.push(x.numClipIntersection),y.push(x.depthPacking)}function E(y,x){a.disableAll(),x.supportsVertexTextures&&a.enable(0),x.instancing&&a.enable(1),x.instancingColor&&a.enable(2),x.instancingMorph&&a.enable(3),x.matcap&&a.enable(4),x.envMap&&a.enable(5),x.normalMapObjectSpace&&a.enable(6),x.normalMapTangentSpace&&a.enable(7),x.clearcoat&&a.enable(8),x.iridescence&&a.enable(9),x.alphaTest&&a.enable(10),x.vertexColors&&a.enable(11),x.vertexAlphas&&a.enable(12),x.vertexUv1s&&a.enable(13),x.vertexUv2s&&a.enable(14),x.vertexUv3s&&a.enable(15),x.vertexTangents&&a.enable(16),x.anisotropy&&a.enable(17),x.alphaHash&&a.enable(18),x.batching&&a.enable(19),x.dispersion&&a.enable(20),y.push(a.mask),a.disableAll(),x.fog&&a.enable(0),x.useFog&&a.enable(1),x.flatShading&&a.enable(2),x.logarithmicDepthBuffer&&a.enable(3),x.skinning&&a.enable(4),x.morphTargets&&a.enable(5),x.morphNormals&&a.enable(6),x.morphColors&&a.enable(7),x.premultipliedAlpha&&a.enable(8),x.shadowMapEnabled&&a.enable(9),x.useLegacyLights&&a.enable(10),x.doubleSided&&a.enable(11),x.flipSided&&a.enable(12),x.useDepthPacking&&a.enable(13),x.dithering&&a.enable(14),x.transmission&&a.enable(15),x.sheen&&a.enable(16),x.opaque&&a.enable(17),x.pointsUvs&&a.enable(18),x.decodeVideoTexture&&a.enable(19),x.alphaToCoverage&&a.enable(20),y.push(a.mask)}function b(y){const x=v[y.type];let B;if(x){const X=Ut[x];B=Vc.clone(X.uniforms)}else B=y.uniforms;return B}function N(y,x){let B;for(let X=0,C=u.length;X0?n.push(h):m.transparent===!0?r.push(h):t.push(h)}function l(f,d,m,v,M,p){const h=o(f,d,m,v,M,p);m.transmission>0?n.unshift(h):m.transparent===!0?r.unshift(h):t.unshift(h)}function c(f,d){t.length>1&&t.sort(f||lp),n.length>1&&n.sort(d||Fa),r.length>1&&r.sort(d||Fa)}function u(){for(let f=e,d=i.length;f=s.length?(o=new Oa,s.push(o)):o=s[r],o}function t(){i=new WeakMap}return{get:e,dispose:t}}function up(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new L,color:new qe};break;case"SpotLight":t={position:new L,direction:new L,color:new qe,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new L,color:new qe,distance:0,decay:0};break;case"HemisphereLight":t={direction:new L,skyColor:new qe,groundColor:new qe};break;case"RectAreaLight":t={color:new qe,position:new L,halfWidth:new L,halfHeight:new L};break}return i[e.id]=t,t}}}function hp(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Me};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Me};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Me,shadowCameraNear:1,shadowCameraFar:1e3};break}return i[e.id]=t,t}}}let dp=0;function fp(i,e){return(e.castShadow?2:0)-(i.castShadow?2:0)+(e.map?1:0)-(i.map?1:0)}function pp(i){const e=new up,t=hp(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new L);const r=new L,s=new nt,o=new nt;function a(c,u){let f=0,d=0,m=0;for(let B=0;B<9;B++)n.probe[B].set(0,0,0);let v=0,M=0,p=0,h=0,A=0,E=0,b=0,N=0,w=0,R=0,V=0;c.sort(fp);const y=u===!0?Math.PI:1;for(let B=0,X=c.length;B0&&(i.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=se.LTC_FLOAT_1,n.rectAreaLTC2=se.LTC_FLOAT_2):(n.rectAreaLTC1=se.LTC_HALF_1,n.rectAreaLTC2=se.LTC_HALF_2)),n.ambient[0]=f,n.ambient[1]=d,n.ambient[2]=m;const x=n.hash;(x.directionalLength!==v||x.pointLength!==M||x.spotLength!==p||x.rectAreaLength!==h||x.hemiLength!==A||x.numDirectionalShadows!==E||x.numPointShadows!==b||x.numSpotShadows!==N||x.numSpotMaps!==w||x.numLightProbes!==V)&&(n.directional.length=v,n.spot.length=p,n.rectArea.length=h,n.point.length=M,n.hemi.length=A,n.directionalShadow.length=E,n.directionalShadowMap.length=E,n.pointShadow.length=b,n.pointShadowMap.length=b,n.spotShadow.length=N,n.spotShadowMap.length=N,n.directionalShadowMatrix.length=E,n.pointShadowMatrix.length=b,n.spotLightMatrix.length=N+w-R,n.spotLightMap.length=w,n.numSpotLightShadowsWithMaps=R,n.numLightProbes=V,x.directionalLength=v,x.pointLength=M,x.spotLength=p,x.rectAreaLength=h,x.hemiLength=A,x.numDirectionalShadows=E,x.numPointShadows=b,x.numSpotShadows=N,x.numSpotMaps=w,x.numLightProbes=V,n.version=dp++)}function l(c,u){let f=0,d=0,m=0,v=0,M=0;const p=u.matrixWorldInverse;for(let h=0,A=c.length;h=o.length?(a=new Ba(i),o.push(a)):a=o[s],a}function n(){e=new WeakMap}return{get:t,dispose:n}}class gp extends fr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Kl,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class _p extends fr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const vp=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,xp=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function Mp(i,e,t){let n=new Fo;const r=new Me,s=new Me,o=new ot,a=new gp({depthPacking:Zl}),l=new _p,c={},u=t.maxTextureSize,f={[dn]:gt,[gt]:dn,[Yt]:Yt},d=new Kt({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Me},radius:{value:4}},vertexShader:vp,fragmentShader:xp}),m=d.clone();m.defines.HORIZONTAL_PASS=1;const v=new Zt;v.setAttribute("position",new Dt(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const M=new Lt(v,d),p=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=po;let h=this.type;this.render=function(w,R,V){if(p.enabled===!1||p.autoUpdate===!1&&p.needsUpdate===!1||w.length===0)return;const y=i.getRenderTarget(),x=i.getActiveCubeFace(),B=i.getActiveMipmapLevel(),X=i.state;X.setBlending(un),X.buffers.color.setClear(1,1,1,1),X.buffers.depth.setTest(!0),X.setScissorTest(!1);const C=h!==Xt&&this.type===Xt,W=h===Xt&&this.type!==Xt;for(let q=0,Z=w.length;qu||r.y>u)&&(r.x>u&&(s.x=Math.floor(u/Q.x),r.x=s.x*Q.x,G.mapSize.x=s.x),r.y>u&&(s.y=Math.floor(u/Q.y),r.y=s.y*Q.y,G.mapSize.y=s.y)),G.map===null||C===!0||W===!0){const de=this.type!==Xt?{minFilter:At,magFilter:At}:{};G.map!==null&&G.map.dispose(),G.map=new Rn(r.x,r.y,de),G.map.texture.name=ie.name+".shadowMap",G.camera.updateProjectionMatrix()}i.setRenderTarget(G.map),i.clear();const J=G.getViewportCount();for(let de=0;de0||R.map&&R.alphaTest>0){const X=x.uuid,C=R.uuid;let W=c[X];W===void 0&&(W={},c[X]=W);let q=W[C];q===void 0&&(q=x.clone(),W[C]=q,R.addEventListener("dispose",N)),x=q}if(x.visible=R.visible,x.wireframe=R.wireframe,y===Xt?x.side=R.shadowSide!==null?R.shadowSide:R.side:x.side=R.shadowSide!==null?R.shadowSide:f[R.side],x.alphaMap=R.alphaMap,x.alphaTest=R.alphaTest,x.map=R.map,x.clipShadows=R.clipShadows,x.clippingPlanes=R.clippingPlanes,x.clipIntersection=R.clipIntersection,x.displacementMap=R.displacementMap,x.displacementScale=R.displacementScale,x.displacementBias=R.displacementBias,x.wireframeLinewidth=R.wireframeLinewidth,x.linewidth=R.linewidth,V.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const X=i.properties.get(x);X.light=V}return x}function b(w,R,V,y,x){if(w.visible===!1)return;if(w.layers.test(R.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&x===Xt)&&(!w.frustumCulled||n.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(V.matrixWorldInverse,w.matrixWorld);const C=e.update(w),W=w.material;if(Array.isArray(W)){const q=C.groups;for(let Z=0,ie=q.length;Z=1):ie.indexOf("OpenGL ES")!==-1&&(Z=parseFloat(/^OpenGL ES (\d)/.exec(ie)[1]),q=Z>=2);let G=null,Q={};const J=i.getParameter(i.SCISSOR_BOX),de=i.getParameter(i.VIEWPORT),Ne=new ot().fromArray(J),Ve=new ot().fromArray(de);function k(g,P,U,j){const te=new Uint8Array(4),be=i.createTexture();i.bindTexture(g,be),i.texParameteri(g,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(g,i.TEXTURE_MAG_FILTER,i.NEAREST);for(let Ie=0;Ie"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new Me,u=new WeakMap;let f;const d=new WeakMap;let m=!1;try{m=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(T,_){return m?new OffscreenCanvas(T,_):Si("canvas")}function M(T,_,H){let Y=1;const K=Ze(T);if((K.width>H||K.height>H)&&(Y=H/Math.max(K.width,K.height)),Y<1)if(typeof HTMLImageElement<"u"&&T instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&T instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&T instanceof ImageBitmap||typeof VideoFrame<"u"&&T instanceof VideoFrame){const $=Math.floor(Y*K.width),me=Math.floor(Y*K.height);f===void 0&&(f=v($,me));const oe=_?v($,me):f;return oe.width=$,oe.height=me,oe.getContext("2d").drawImage(T,0,0,$,me),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+K.width+"x"+K.height+") to ("+$+"x"+me+")."),oe}else return"data"in T&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+K.width+"x"+K.height+")."),T;return T}function p(T){return T.generateMipmaps&&T.minFilter!==At&&T.minFilter!==Pt}function h(T){i.generateMipmap(T)}function A(T,_,H,Y,K=!1){if(T!==null){if(i[T]!==void 0)return i[T];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+T+"'")}let $=_;if(_===i.RED&&(H===i.FLOAT&&($=i.R32F),H===i.HALF_FLOAT&&($=i.R16F),H===i.UNSIGNED_BYTE&&($=i.R8)),_===i.RED_INTEGER&&(H===i.UNSIGNED_BYTE&&($=i.R8UI),H===i.UNSIGNED_SHORT&&($=i.R16UI),H===i.UNSIGNED_INT&&($=i.R32UI),H===i.BYTE&&($=i.R8I),H===i.SHORT&&($=i.R16I),H===i.INT&&($=i.R32I)),_===i.RG&&(H===i.FLOAT&&($=i.RG32F),H===i.HALF_FLOAT&&($=i.RG16F),H===i.UNSIGNED_BYTE&&($=i.RG8)),_===i.RG_INTEGER&&(H===i.UNSIGNED_BYTE&&($=i.RG8UI),H===i.UNSIGNED_SHORT&&($=i.RG16UI),H===i.UNSIGNED_INT&&($=i.RG32UI),H===i.BYTE&&($=i.RG8I),H===i.SHORT&&($=i.RG16I),H===i.INT&&($=i.RG32I)),_===i.RGB&&H===i.UNSIGNED_INT_5_9_9_9_REV&&($=i.RGB9_E5),_===i.RGBA){const me=K?rr:Ye.getTransfer(Y);H===i.FLOAT&&($=i.RGBA32F),H===i.HALF_FLOAT&&($=i.RGBA16F),H===i.UNSIGNED_BYTE&&($=me===Ke?i.SRGB8_ALPHA8:i.RGBA8),H===i.UNSIGNED_SHORT_4_4_4_4&&($=i.RGBA4),H===i.UNSIGNED_SHORT_5_5_5_1&&($=i.RGB5_A1)}return($===i.R16F||$===i.R32F||$===i.RG16F||$===i.RG32F||$===i.RGBA16F||$===i.RGBA32F)&&e.get("EXT_color_buffer_float"),$}function E(T,_){return p(T)===!0||T.isFramebufferTexture&&T.minFilter!==At&&T.minFilter!==Pt?Math.log2(Math.max(_.width,_.height))+1:T.mipmaps!==void 0&&T.mipmaps.length>0?T.mipmaps.length:T.isCompressedTexture&&Array.isArray(T.image)?_.mipmaps.length:1}function b(T){const _=T.target;_.removeEventListener("dispose",b),w(_),_.isVideoTexture&&u.delete(_)}function N(T){const _=T.target;_.removeEventListener("dispose",N),V(_)}function w(T){const _=n.get(T);if(_.__webglInit===void 0)return;const H=T.source,Y=d.get(H);if(Y){const K=Y[_.__cacheKey];K.usedTimes--,K.usedTimes===0&&R(T),Object.keys(Y).length===0&&d.delete(H)}n.remove(T)}function R(T){const _=n.get(T);i.deleteTexture(_.__webglTexture);const H=T.source,Y=d.get(H);delete Y[_.__cacheKey],o.memory.textures--}function V(T){const _=n.get(T);if(T.depthTexture&&T.depthTexture.dispose(),T.isWebGLCubeRenderTarget)for(let Y=0;Y<6;Y++){if(Array.isArray(_.__webglFramebuffer[Y]))for(let K=0;K<_.__webglFramebuffer[Y].length;K++)i.deleteFramebuffer(_.__webglFramebuffer[Y][K]);else i.deleteFramebuffer(_.__webglFramebuffer[Y]);_.__webglDepthbuffer&&i.deleteRenderbuffer(_.__webglDepthbuffer[Y])}else{if(Array.isArray(_.__webglFramebuffer))for(let Y=0;Y<_.__webglFramebuffer.length;Y++)i.deleteFramebuffer(_.__webglFramebuffer[Y]);else i.deleteFramebuffer(_.__webglFramebuffer);if(_.__webglDepthbuffer&&i.deleteRenderbuffer(_.__webglDepthbuffer),_.__webglMultisampledFramebuffer&&i.deleteFramebuffer(_.__webglMultisampledFramebuffer),_.__webglColorRenderbuffer)for(let Y=0;Y<_.__webglColorRenderbuffer.length;Y++)_.__webglColorRenderbuffer[Y]&&i.deleteRenderbuffer(_.__webglColorRenderbuffer[Y]);_.__webglDepthRenderbuffer&&i.deleteRenderbuffer(_.__webglDepthRenderbuffer)}const H=T.textures;for(let Y=0,K=H.length;Y=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+T+" texture units while this GPU supports only "+r.maxTextures),y+=1,T}function X(T){const _=[];return _.push(T.wrapS),_.push(T.wrapT),_.push(T.wrapR||0),_.push(T.magFilter),_.push(T.minFilter),_.push(T.anisotropy),_.push(T.internalFormat),_.push(T.format),_.push(T.type),_.push(T.generateMipmaps),_.push(T.premultiplyAlpha),_.push(T.flipY),_.push(T.unpackAlignment),_.push(T.colorSpace),_.join()}function C(T,_){const H=n.get(T);if(T.isVideoTexture&&Te(T),T.isRenderTargetTexture===!1&&T.version>0&&H.__version!==T.version){const Y=T.image;if(Y===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Y.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Ne(H,T,_);return}}t.bindTexture(i.TEXTURE_2D,H.__webglTexture,i.TEXTURE0+_)}function W(T,_){const H=n.get(T);if(T.version>0&&H.__version!==T.version){Ne(H,T,_);return}t.bindTexture(i.TEXTURE_2D_ARRAY,H.__webglTexture,i.TEXTURE0+_)}function q(T,_){const H=n.get(T);if(T.version>0&&H.__version!==T.version){Ne(H,T,_);return}t.bindTexture(i.TEXTURE_3D,H.__webglTexture,i.TEXTURE0+_)}function Z(T,_){const H=n.get(T);if(T.version>0&&H.__version!==T.version){Ve(H,T,_);return}t.bindTexture(i.TEXTURE_CUBE_MAP,H.__webglTexture,i.TEXTURE0+_)}const ie={[ns]:i.REPEAT,[bn]:i.CLAMP_TO_EDGE,[is]:i.MIRRORED_REPEAT},G={[At]:i.NEAREST,[Bl]:i.NEAREST_MIPMAP_NEAREST,[bi]:i.NEAREST_MIPMAP_LINEAR,[Pt]:i.LINEAR,[Mr]:i.LINEAR_MIPMAP_NEAREST,[wn]:i.LINEAR_MIPMAP_LINEAR},Q={[Ql]:i.NEVER,[sc]:i.ALWAYS,[ec]:i.LESS,[To]:i.LEQUAL,[tc]:i.EQUAL,[rc]:i.GEQUAL,[nc]:i.GREATER,[ic]:i.NOTEQUAL};function J(T,_){if(_.type===cn&&e.has("OES_texture_float_linear")===!1&&(_.magFilter===Pt||_.magFilter===Mr||_.magFilter===bi||_.magFilter===wn||_.minFilter===Pt||_.minFilter===Mr||_.minFilter===bi||_.minFilter===wn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),i.texParameteri(T,i.TEXTURE_WRAP_S,ie[_.wrapS]),i.texParameteri(T,i.TEXTURE_WRAP_T,ie[_.wrapT]),(T===i.TEXTURE_3D||T===i.TEXTURE_2D_ARRAY)&&i.texParameteri(T,i.TEXTURE_WRAP_R,ie[_.wrapR]),i.texParameteri(T,i.TEXTURE_MAG_FILTER,G[_.magFilter]),i.texParameteri(T,i.TEXTURE_MIN_FILTER,G[_.minFilter]),_.compareFunction&&(i.texParameteri(T,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE),i.texParameteri(T,i.TEXTURE_COMPARE_FUNC,Q[_.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(_.magFilter===At||_.minFilter!==bi&&_.minFilter!==wn||_.type===cn&&e.has("OES_texture_float_linear")===!1)return;if(_.anisotropy>1||n.get(_).__currentAnisotropy){const H=e.get("EXT_texture_filter_anisotropic");i.texParameterf(T,H.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(_.anisotropy,r.getMaxAnisotropy())),n.get(_).__currentAnisotropy=_.anisotropy}}}function de(T,_){let H=!1;T.__webglInit===void 0&&(T.__webglInit=!0,_.addEventListener("dispose",b));const Y=_.source;let K=d.get(Y);K===void 0&&(K={},d.set(Y,K));const $=X(_);if($!==T.__cacheKey){K[$]===void 0&&(K[$]={texture:i.createTexture(),usedTimes:0},o.memory.textures++,H=!0),K[$].usedTimes++;const me=K[T.__cacheKey];me!==void 0&&(K[T.__cacheKey].usedTimes--,me.usedTimes===0&&R(_)),T.__cacheKey=$,T.__webglTexture=K[$].texture}return H}function Ne(T,_,H){let Y=i.TEXTURE_2D;(_.isDataArrayTexture||_.isCompressedArrayTexture)&&(Y=i.TEXTURE_2D_ARRAY),_.isData3DTexture&&(Y=i.TEXTURE_3D);const K=de(T,_),$=_.source;t.bindTexture(Y,T.__webglTexture,i.TEXTURE0+H);const me=n.get($);if($.version!==me.__version||K===!0){t.activeTexture(i.TEXTURE0+H);const oe=Ye.getPrimaries(Ye.workingColorSpace),ae=_.colorSpace===ln?null:Ye.getPrimaries(_.colorSpace),Se=_.colorSpace===ln||oe===ae?i.NONE:i.BROWSER_DEFAULT_WEBGL;i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,_.flipY),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,_.premultiplyAlpha),i.pixelStorei(i.UNPACK_ALIGNMENT,_.unpackAlignment),i.pixelStorei(i.UNPACK_COLORSPACE_CONVERSION_WEBGL,Se);let ne=M(_.image,!1,r.maxTextureSize);ne=Be(_,ne);const pe=s.convert(_.format,_.colorSpace),ze=s.convert(_.type);let _e=A(_.internalFormat,pe,ze,_.colorSpace,_.isVideoTexture);J(Y,_);let ce;const Ae=_.mipmaps,De=_.isVideoTexture!==!0,Xe=me.__version===void 0||K===!0,we=$.dataReady,g=E(_,ne);if(_.isDepthTexture)_e=i.DEPTH_COMPONENT16,_.type===cn?_e=i.DEPTH_COMPONENT32F:_.type===ii?_e=i.DEPTH_COMPONENT24:_.type===Ei&&(_e=i.DEPTH24_STENCIL8),Xe&&(De?t.texStorage2D(i.TEXTURE_2D,1,_e,ne.width,ne.height):t.texImage2D(i.TEXTURE_2D,0,_e,ne.width,ne.height,0,pe,ze,null));else if(_.isDataTexture)if(Ae.length>0){De&&Xe&&t.texStorage2D(i.TEXTURE_2D,g,_e,Ae[0].width,Ae[0].height);for(let P=0,U=Ae.length;P>=1,U>>=1}}else if(Ae.length>0){if(De&&Xe){const P=Ze(Ae[0]);t.texStorage2D(i.TEXTURE_2D,g,_e,P.width,P.height)}for(let P=0,U=Ae.length;P0&&g++;const U=Ze(pe[0]);t.texStorage2D(i.TEXTURE_CUBE_MAP,g,Ae,U.width,U.height)}for(let U=0;U<6;U++)if(ne){De?we&&t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+U,0,0,0,pe[U].width,pe[U].height,_e,ce,pe[U].data):t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+U,0,Ae,pe[U].width,pe[U].height,0,_e,ce,pe[U].data);for(let j=0;j>$),pe=Math.max(1,_.height>>$);K===i.TEXTURE_3D||K===i.TEXTURE_2D_ARRAY?t.texImage3D(K,$,ae,ne,pe,_.depth,0,me,oe,null):t.texImage2D(K,$,ae,ne,pe,0,me,oe,null)}t.bindFramebuffer(i.FRAMEBUFFER,T),Oe(_)?a.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER,Y,K,n.get(H).__webglTexture,0,ve(_)):(K===i.TEXTURE_2D||K>=i.TEXTURE_CUBE_MAP_POSITIVE_X&&K<=i.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&i.framebufferTexture2D(i.FRAMEBUFFER,Y,K,n.get(H).__webglTexture,$),t.bindFramebuffer(i.FRAMEBUFFER,null)}function ee(T,_,H){if(i.bindRenderbuffer(i.RENDERBUFFER,T),_.depthBuffer&&!_.stencilBuffer){let Y=i.DEPTH_COMPONENT24;if(H||Oe(_)){const K=_.depthTexture;K&&K.isDepthTexture&&(K.type===cn?Y=i.DEPTH_COMPONENT32F:K.type===ii&&(Y=i.DEPTH_COMPONENT24));const $=ve(_);Oe(_)?a.renderbufferStorageMultisampleEXT(i.RENDERBUFFER,$,Y,_.width,_.height):i.renderbufferStorageMultisample(i.RENDERBUFFER,$,Y,_.width,_.height)}else i.renderbufferStorage(i.RENDERBUFFER,Y,_.width,_.height);i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.RENDERBUFFER,T)}else if(_.depthBuffer&&_.stencilBuffer){const Y=ve(_);H&&Oe(_)===!1?i.renderbufferStorageMultisample(i.RENDERBUFFER,Y,i.DEPTH24_STENCIL8,_.width,_.height):Oe(_)?a.renderbufferStorageMultisampleEXT(i.RENDERBUFFER,Y,i.DEPTH24_STENCIL8,_.width,_.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,_.width,_.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,T)}else{const Y=_.textures;for(let K=0;K1;if(me||(Y.__webglTexture===void 0&&(Y.__webglTexture=i.createTexture()),Y.__version=_.version,o.memory.textures++),$){H.__webglFramebuffer=[];for(let oe=0;oe<6;oe++)if(_.mipmaps&&_.mipmaps.length>0){H.__webglFramebuffer[oe]=[];for(let ae=0;ae<_.mipmaps.length;ae++)H.__webglFramebuffer[oe][ae]=i.createFramebuffer()}else H.__webglFramebuffer[oe]=i.createFramebuffer()}else{if(_.mipmaps&&_.mipmaps.length>0){H.__webglFramebuffer=[];for(let oe=0;oe<_.mipmaps.length;oe++)H.__webglFramebuffer[oe]=i.createFramebuffer()}else H.__webglFramebuffer=i.createFramebuffer();if(me)for(let oe=0,ae=K.length;oe0&&Oe(T)===!1){H.__webglMultisampledFramebuffer=i.createFramebuffer(),H.__webglColorRenderbuffer=[],t.bindFramebuffer(i.FRAMEBUFFER,H.__webglMultisampledFramebuffer);for(let oe=0;oe0)for(let ae=0;ae<_.mipmaps.length;ae++)k(H.__webglFramebuffer[oe][ae],T,_,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+oe,ae);else k(H.__webglFramebuffer[oe],T,_,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+oe,0);p(_)&&h(i.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(me){for(let oe=0,ae=K.length;oe0)for(let ae=0;ae<_.mipmaps.length;ae++)k(H.__webglFramebuffer[ae],T,_,i.COLOR_ATTACHMENT0,oe,ae);else k(H.__webglFramebuffer,T,_,i.COLOR_ATTACHMENT0,oe,0);p(_)&&h(oe),t.unbindTexture()}T.depthBuffer&&re(T)}function I(T){const _=T.textures;for(let H=0,Y=_.length;H0){if(Oe(T)===!1){const _=T.textures,H=T.width,Y=T.height;let K=i.COLOR_BUFFER_BIT;const $=T.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,me=n.get(T),oe=_.length>1;if(oe)for(let ae=0;ae<_.length;ae++)t.bindFramebuffer(i.FRAMEBUFFER,me.__webglMultisampledFramebuffer),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+ae,i.RENDERBUFFER,null),t.bindFramebuffer(i.FRAMEBUFFER,me.__webglFramebuffer),i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0+ae,i.TEXTURE_2D,null,0);t.bindFramebuffer(i.READ_FRAMEBUFFER,me.__webglMultisampledFramebuffer),t.bindFramebuffer(i.DRAW_FRAMEBUFFER,me.__webglFramebuffer);for(let ae=0;ae<_.length;ae++){if(T.resolveDepthBuffer&&(T.depthBuffer&&(K|=i.DEPTH_BUFFER_BIT),T.stencilBuffer&&T.resolveStencilBuffer&&(K|=i.STENCIL_BUFFER_BIT)),oe){i.framebufferRenderbuffer(i.READ_FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,me.__webglColorRenderbuffer[ae]);const Se=n.get(_[ae]).__webglTexture;i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,Se,0)}i.blitFramebuffer(0,0,H,Y,0,0,H,Y,K,i.NEAREST),l===!0&&(ke.length=0,ge.length=0,ke.push(i.COLOR_ATTACHMENT0+ae),T.depthBuffer&&T.resolveDepthBuffer===!1&&(ke.push($),ge.push($),i.invalidateFramebuffer(i.DRAW_FRAMEBUFFER,ge)),i.invalidateFramebuffer(i.READ_FRAMEBUFFER,ke))}if(t.bindFramebuffer(i.READ_FRAMEBUFFER,null),t.bindFramebuffer(i.DRAW_FRAMEBUFFER,null),oe)for(let ae=0;ae<_.length;ae++){t.bindFramebuffer(i.FRAMEBUFFER,me.__webglMultisampledFramebuffer),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+ae,i.RENDERBUFFER,me.__webglColorRenderbuffer[ae]);const Se=n.get(_[ae]).__webglTexture;t.bindFramebuffer(i.FRAMEBUFFER,me.__webglFramebuffer),i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0+ae,i.TEXTURE_2D,Se,0)}t.bindFramebuffer(i.DRAW_FRAMEBUFFER,me.__webglMultisampledFramebuffer)}else if(T.depthBuffer&&T.resolveDepthBuffer===!1&&l){const _=T.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT;i.invalidateFramebuffer(i.DRAW_FRAMEBUFFER,[_])}}}function ve(T){return Math.min(r.maxSamples,T.samples)}function Oe(T){const _=n.get(T);return T.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&_.__useRenderToTexture!==!1}function Te(T){const _=o.render.frame;u.get(T)!==_&&(u.set(T,_),T.update())}function Be(T,_){const H=T.colorSpace,Y=T.format,K=T.type;return T.isCompressedTexture===!0||T.isVideoTexture===!0||H!==mn&&H!==ln&&(Ye.getTransfer(H)===Ke?(Y!==Ft||K!==fn)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",H)),_}function Ze(T){return typeof HTMLImageElement<"u"&&T instanceof HTMLImageElement?(c.width=T.naturalWidth||T.width,c.height=T.naturalHeight||T.height):typeof VideoFrame<"u"&&T instanceof VideoFrame?(c.width=T.displayWidth,c.height=T.displayHeight):(c.width=T.width,c.height=T.height),c}this.allocateTextureUnit=B,this.resetTextureUnits=x,this.setTexture2D=C,this.setTexture2DArray=W,this.setTexture3D=q,this.setTextureCube=Z,this.rebindTextures=Fe,this.setupRenderTarget=Le,this.updateRenderTargetMipmap=I,this.updateMultisampleRenderTarget=We,this.setupDepthRenderbuffer=re,this.setupFrameBufferTexture=k,this.useMultisampledRTT=Oe}function yp(i,e){function t(n,r=ln){let s;const o=Ye.getTransfer(r);if(n===fn)return i.UNSIGNED_BYTE;if(n===xo)return i.UNSIGNED_SHORT_4_4_4_4;if(n===Mo)return i.UNSIGNED_SHORT_5_5_5_1;if(n===Gl)return i.UNSIGNED_INT_5_9_9_9_REV;if(n===zl)return i.BYTE;if(n===Hl)return i.SHORT;if(n===_o)return i.UNSIGNED_SHORT;if(n===vo)return i.INT;if(n===ii)return i.UNSIGNED_INT;if(n===cn)return i.FLOAT;if(n===hr)return i.HALF_FLOAT;if(n===Vl)return i.ALPHA;if(n===kl)return i.RGB;if(n===Ft)return i.RGBA;if(n===Wl)return i.LUMINANCE;if(n===Xl)return i.LUMINANCE_ALPHA;if(n===Qn)return i.DEPTH_COMPONENT;if(n===xi)return i.DEPTH_STENCIL;if(n===Yl)return i.RED;if(n===So)return i.RED_INTEGER;if(n===ql)return i.RG;if(n===Eo)return i.RG_INTEGER;if(n===yo)return i.RGBA_INTEGER;if(n===Sr||n===Er||n===yr||n===Tr)if(o===Ke)if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),s!==null){if(n===Sr)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Er)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===yr)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Tr)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null){if(n===Sr)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Er)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===yr)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Tr)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Es||n===ys||n===Ts||n===As)if(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null){if(n===Es)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===ys)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Ts)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===As)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===bs||n===ws||n===Rs)if(s=e.get("WEBGL_compressed_texture_etc"),s!==null){if(n===bs||n===ws)return o===Ke?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(n===Rs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===Cs||n===Ps||n===Ls||n===Ds||n===Is||n===Us||n===Ns||n===Fs||n===Os||n===Bs||n===zs||n===Hs||n===Gs||n===Vs)if(s=e.get("WEBGL_compressed_texture_astc"),s!==null){if(n===Cs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Ps)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ls)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Ds)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Is)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Us)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ns)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Fs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Os)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Bs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===zs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===Hs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===Gs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Vs)return o===Ke?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===Ar||n===ks||n===Ws)if(s=e.get("EXT_texture_compression_bptc"),s!==null){if(n===Ar)return o===Ke?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===ks)return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===Ws)return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===jl||n===Xs||n===Ys||n===qs)if(s=e.get("EXT_texture_compression_rgtc"),s!==null){if(n===Ar)return s.COMPRESSED_RED_RGTC1_EXT;if(n===Xs)return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===Ys)return s.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===qs)return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===Ei?i.UNSIGNED_INT_24_8:i[n]!==void 0?i[n]:null}return{convert:t}}class Tp extends Tt{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class gi extends Mt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Ap={type:"move"};class Zr{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new gi,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new gi,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new L,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new L),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new gi,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new L,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new L),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let r=null,s=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const M of e.hand.values()){const p=t.getJointPose(M,n),h=this._getHandJoint(c,M);p!==null&&(h.matrix.fromArray(p.transform.matrix),h.matrix.decompose(h.position,h.rotation,h.scale),h.matrixWorldNeedsUpdate=!0,h.jointRadius=p.radius),h.visible=p!==null}const u=c.joints["index-finger-tip"],f=c.joints["thumb-tip"],d=u.position.distanceTo(f.position),m=.02,v=.005;c.inputState.pinching&&d>m+v?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=m-v&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,n),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&s!==null&&(r=s),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Ap)))}return a!==null&&(a.visible=r!==null),l!==null&&(l.visible=s!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new gi;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}const bp=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,wp=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`;class Rp{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const r=new mt,s=e.properties.get(r);s.__webglTexture=t.texture,(t.depthNear!=n.depthNear||t.depthFar!=n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}render(e,t){if(this.texture!==null){if(this.mesh===null){const n=t.cameras[0].viewport,r=new Kt({vertexShader:bp,fragmentShader:wp,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new Lt(new pr(20,20),r)}e.render(this.mesh,t)}}reset(){this.texture=null,this.mesh=null}}class Cp extends Pn{constructor(e,t){super();const n=this;let r=null,s=1,o=null,a="local-floor",l=1,c=null,u=null,f=null,d=null,m=null,v=null;const M=new Rp,p=t.getContextAttributes();let h=null,A=null;const E=[],b=[],N=new Me;let w=null;const R=new Tt;R.layers.enable(1),R.viewport=new ot;const V=new Tt;V.layers.enable(2),V.viewport=new ot;const y=[R,V],x=new Tp;x.layers.enable(1),x.layers.enable(2);let B=null,X=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(k){let ee=E[k];return ee===void 0&&(ee=new Zr,E[k]=ee),ee.getTargetRaySpace()},this.getControllerGrip=function(k){let ee=E[k];return ee===void 0&&(ee=new Zr,E[k]=ee),ee.getGripSpace()},this.getHand=function(k){let ee=E[k];return ee===void 0&&(ee=new Zr,E[k]=ee),ee.getHandSpace()};function C(k){const ee=b.indexOf(k.inputSource);if(ee===-1)return;const ue=E[ee];ue!==void 0&&(ue.update(k.inputSource,k.frame,c||o),ue.dispatchEvent({type:k.type,data:k.inputSource}))}function W(){r.removeEventListener("select",C),r.removeEventListener("selectstart",C),r.removeEventListener("selectend",C),r.removeEventListener("squeeze",C),r.removeEventListener("squeezestart",C),r.removeEventListener("squeezeend",C),r.removeEventListener("end",W),r.removeEventListener("inputsourceschange",q);for(let k=0;k=0&&(b[re]=null,E[re].disconnect(ue))}for(let ee=0;ee=b.length){b.push(ue),re=Le;break}else if(b[Le]===null){b[Le]=ue,re=Le;break}if(re===-1)break}const Fe=E[re];Fe&&Fe.connect(ue)}}const Z=new L,ie=new L;function G(k,ee,ue){Z.setFromMatrixPosition(ee.matrixWorld),ie.setFromMatrixPosition(ue.matrixWorld);const re=Z.distanceTo(ie),Fe=ee.projectionMatrix.elements,Le=ue.projectionMatrix.elements,I=Fe[14]/(Fe[10]-1),ke=Fe[14]/(Fe[10]+1),ge=(Fe[9]+1)/Fe[5],We=(Fe[9]-1)/Fe[5],ve=(Fe[8]-1)/Fe[0],Oe=(Le[8]+1)/Le[0],Te=I*ve,Be=I*Oe,Ze=re/(-ve+Oe),T=Ze*-ve;ee.matrixWorld.decompose(k.position,k.quaternion,k.scale),k.translateX(T),k.translateZ(Ze),k.matrixWorld.compose(k.position,k.quaternion,k.scale),k.matrixWorldInverse.copy(k.matrixWorld).invert();const _=I+Ze,H=ke+Ze,Y=Te-T,K=Be+(re-T),$=ge*ke/H*_,me=We*ke/H*_;k.projectionMatrix.makePerspective(Y,K,$,me,_,H),k.projectionMatrixInverse.copy(k.projectionMatrix).invert()}function Q(k,ee){ee===null?k.matrixWorld.copy(k.matrix):k.matrixWorld.multiplyMatrices(ee.matrixWorld,k.matrix),k.matrixWorldInverse.copy(k.matrixWorld).invert()}this.updateCamera=function(k){if(r===null)return;M.texture!==null&&(k.near=M.depthNear,k.far=M.depthFar),x.near=V.near=R.near=k.near,x.far=V.far=R.far=k.far,(B!==x.near||X!==x.far)&&(r.updateRenderState({depthNear:x.near,depthFar:x.far}),B=x.near,X=x.far,R.near=B,R.far=X,V.near=B,V.far=X,R.updateProjectionMatrix(),V.updateProjectionMatrix(),k.updateProjectionMatrix());const ee=k.parent,ue=x.cameras;Q(x,ee);for(let re=0;re0&&(p.alphaTest.value=h.alphaTest);const A=e.get(h),E=A.envMap,b=A.envMapRotation;if(E&&(p.envMap.value=E,En.copy(b),En.x*=-1,En.y*=-1,En.z*=-1,E.isCubeTexture&&E.isRenderTargetTexture===!1&&(En.y*=-1,En.z*=-1),p.envMapRotation.value.setFromMatrix4(Pp.makeRotationFromEuler(En)),p.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=h.reflectivity,p.ior.value=h.ior,p.refractionRatio.value=h.refractionRatio),h.lightMap){p.lightMap.value=h.lightMap;const N=i._useLegacyLights===!0?Math.PI:1;p.lightMapIntensity.value=h.lightMapIntensity*N,t(h.lightMap,p.lightMapTransform)}h.aoMap&&(p.aoMap.value=h.aoMap,p.aoMapIntensity.value=h.aoMapIntensity,t(h.aoMap,p.aoMapTransform))}function o(p,h){p.diffuse.value.copy(h.color),p.opacity.value=h.opacity,h.map&&(p.map.value=h.map,t(h.map,p.mapTransform))}function a(p,h){p.dashSize.value=h.dashSize,p.totalSize.value=h.dashSize+h.gapSize,p.scale.value=h.scale}function l(p,h,A,E){p.diffuse.value.copy(h.color),p.opacity.value=h.opacity,p.size.value=h.size*A,p.scale.value=E*.5,h.map&&(p.map.value=h.map,t(h.map,p.uvTransform)),h.alphaMap&&(p.alphaMap.value=h.alphaMap,t(h.alphaMap,p.alphaMapTransform)),h.alphaTest>0&&(p.alphaTest.value=h.alphaTest)}function c(p,h){p.diffuse.value.copy(h.color),p.opacity.value=h.opacity,p.rotation.value=h.rotation,h.map&&(p.map.value=h.map,t(h.map,p.mapTransform)),h.alphaMap&&(p.alphaMap.value=h.alphaMap,t(h.alphaMap,p.alphaMapTransform)),h.alphaTest>0&&(p.alphaTest.value=h.alphaTest)}function u(p,h){p.specular.value.copy(h.specular),p.shininess.value=Math.max(h.shininess,1e-4)}function f(p,h){h.gradientMap&&(p.gradientMap.value=h.gradientMap)}function d(p,h){p.metalness.value=h.metalness,h.metalnessMap&&(p.metalnessMap.value=h.metalnessMap,t(h.metalnessMap,p.metalnessMapTransform)),p.roughness.value=h.roughness,h.roughnessMap&&(p.roughnessMap.value=h.roughnessMap,t(h.roughnessMap,p.roughnessMapTransform)),h.envMap&&(p.envMapIntensity.value=h.envMapIntensity)}function m(p,h,A){p.ior.value=h.ior,h.sheen>0&&(p.sheenColor.value.copy(h.sheenColor).multiplyScalar(h.sheen),p.sheenRoughness.value=h.sheenRoughness,h.sheenColorMap&&(p.sheenColorMap.value=h.sheenColorMap,t(h.sheenColorMap,p.sheenColorMapTransform)),h.sheenRoughnessMap&&(p.sheenRoughnessMap.value=h.sheenRoughnessMap,t(h.sheenRoughnessMap,p.sheenRoughnessMapTransform))),h.clearcoat>0&&(p.clearcoat.value=h.clearcoat,p.clearcoatRoughness.value=h.clearcoatRoughness,h.clearcoatMap&&(p.clearcoatMap.value=h.clearcoatMap,t(h.clearcoatMap,p.clearcoatMapTransform)),h.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=h.clearcoatRoughnessMap,t(h.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),h.clearcoatNormalMap&&(p.clearcoatNormalMap.value=h.clearcoatNormalMap,t(h.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(h.clearcoatNormalScale),h.side===gt&&p.clearcoatNormalScale.value.negate())),h.dispersion>0&&(p.dispersion.value=h.dispersion),h.iridescence>0&&(p.iridescence.value=h.iridescence,p.iridescenceIOR.value=h.iridescenceIOR,p.iridescenceThicknessMinimum.value=h.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=h.iridescenceThicknessRange[1],h.iridescenceMap&&(p.iridescenceMap.value=h.iridescenceMap,t(h.iridescenceMap,p.iridescenceMapTransform)),h.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=h.iridescenceThicknessMap,t(h.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),h.transmission>0&&(p.transmission.value=h.transmission,p.transmissionSamplerMap.value=A.texture,p.transmissionSamplerSize.value.set(A.width,A.height),h.transmissionMap&&(p.transmissionMap.value=h.transmissionMap,t(h.transmissionMap,p.transmissionMapTransform)),p.thickness.value=h.thickness,h.thicknessMap&&(p.thicknessMap.value=h.thicknessMap,t(h.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=h.attenuationDistance,p.attenuationColor.value.copy(h.attenuationColor)),h.anisotropy>0&&(p.anisotropyVector.value.set(h.anisotropy*Math.cos(h.anisotropyRotation),h.anisotropy*Math.sin(h.anisotropyRotation)),h.anisotropyMap&&(p.anisotropyMap.value=h.anisotropyMap,t(h.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=h.specularIntensity,p.specularColor.value.copy(h.specularColor),h.specularColorMap&&(p.specularColorMap.value=h.specularColorMap,t(h.specularColorMap,p.specularColorMapTransform)),h.specularIntensityMap&&(p.specularIntensityMap.value=h.specularIntensityMap,t(h.specularIntensityMap,p.specularIntensityMapTransform))}function v(p,h){h.matcap&&(p.matcap.value=h.matcap)}function M(p,h){const A=e.get(h).light;p.referencePosition.value.setFromMatrixPosition(A.matrixWorld),p.nearDistance.value=A.shadow.camera.near,p.farDistance.value=A.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function Dp(i,e,t,n){let r={},s={},o=[];const a=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function l(A,E){const b=E.program;n.uniformBlockBinding(A,b)}function c(A,E){let b=r[A.id];b===void 0&&(v(A),b=u(A),r[A.id]=b,A.addEventListener("dispose",p));const N=E.program;n.updateUBOMapping(A,N);const w=e.render.frame;s[A.id]!==w&&(d(A),s[A.id]=w)}function u(A){const E=f();A.__bindingPointIndex=E;const b=i.createBuffer(),N=A.__size,w=A.usage;return i.bindBuffer(i.UNIFORM_BUFFER,b),i.bufferData(i.UNIFORM_BUFFER,N,w),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,E,b),b}function f(){for(let A=0;A0&&(b+=N-w),A.__size=b,A.__cache={},this}function M(A){const E={boundary:0,storage:0};return typeof A=="number"||typeof A=="boolean"?(E.boundary=4,E.storage=4):A.isVector2?(E.boundary=8,E.storage=8):A.isVector3||A.isColor?(E.boundary=16,E.storage=12):A.isVector4?(E.boundary=16,E.storage=16):A.isMatrix3?(E.boundary=48,E.storage=48):A.isMatrix4?(E.boundary=64,E.storage=64):A.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",A),E}function p(A){const E=A.target;E.removeEventListener("dispose",p);const b=o.indexOf(E.__bindingPointIndex);o.splice(b,1),i.deleteBuffer(r[E.id]),delete r[E.id],delete s[E.id]}function h(){for(const A in r)i.deleteBuffer(r[A]);o=[],r={},s={}}return{bind:l,update:c,dispose:h}}class Ip{constructor(e={}){const{canvas:t=yc(),context:n=null,depth:r=!0,stencil:s=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:f=!1}=e;this.isWebGLRenderer=!0;let d;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=o;const m=new Uint32Array(4),v=new Int32Array(4);let M=null,p=null;const h=[],A=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=It,this._useLegacyLights=!1,this.toneMapping=hn,this.toneMappingExposure=1;const E=this;let b=!1,N=0,w=0,R=null,V=-1,y=null;const x=new ot,B=new ot;let X=null;const C=new qe(0);let W=0,q=t.width,Z=t.height,ie=1,G=null,Q=null;const J=new ot(0,0,q,Z),de=new ot(0,0,q,Z);let Ne=!1;const Ve=new Fo;let k=!1,ee=!1;const ue=new nt,re=new L,Fe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Le(){return R===null?ie:1}let I=n;function ke(S,D){return t.getContext(S,D)}try{const S={alpha:!0,depth:r,stencil:s,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:f};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${ss}`),t.addEventListener("webglcontextlost",g,!1),t.addEventListener("webglcontextrestored",P,!1),t.addEventListener("webglcontextcreationerror",U,!1),I===null){const D="webgl2";if(I=ke(D,S),I===null)throw ke(D)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(S){throw console.error("THREE.WebGLRenderer: "+S.message),S}let ge,We,ve,Oe,Te,Be,Ze,T,_,H,Y,K,$,me,oe,ae,Se,ne,pe,ze,_e,ce,Ae,De;function Xe(){ge=new Hd(I),ge.init(),ce=new yp(I,ge),We=new Id(I,ge,e,ce),ve=new Sp(I),Oe=new kd(I),Te=new op,Be=new Ep(I,ge,ve,Te,We,ce,Oe),Ze=new Nd(E),T=new zd(E),_=new Kc(I),Ae=new Ld(I,_),H=new Gd(I,_,Oe,Ae),Y=new Xd(I,H,_,Oe),pe=new Wd(I,We,Be),ae=new Ud(Te),K=new ap(E,Ze,T,ge,We,Ae,ae),$=new Lp(E,Te),me=new cp,oe=new mp(ge),ne=new Pd(E,Ze,T,ve,Y,d,l),Se=new Mp(E,Y,We),De=new Dp(I,Oe,We,ve),ze=new Dd(I,ge,Oe),_e=new Vd(I,ge,Oe),Oe.programs=K.programs,E.capabilities=We,E.extensions=ge,E.properties=Te,E.renderLists=me,E.shadowMap=Se,E.state=ve,E.info=Oe}Xe();const we=new Cp(E,I);this.xr=we,this.getContext=function(){return I},this.getContextAttributes=function(){return I.getContextAttributes()},this.forceContextLoss=function(){const S=ge.get("WEBGL_lose_context");S&&S.loseContext()},this.forceContextRestore=function(){const S=ge.get("WEBGL_lose_context");S&&S.restoreContext()},this.getPixelRatio=function(){return ie},this.setPixelRatio=function(S){S!==void 0&&(ie=S,this.setSize(q,Z,!1))},this.getSize=function(S){return S.set(q,Z)},this.setSize=function(S,D,z=!0){if(we.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}q=S,Z=D,t.width=Math.floor(S*ie),t.height=Math.floor(D*ie),z===!0&&(t.style.width=S+"px",t.style.height=D+"px"),this.setViewport(0,0,S,D)},this.getDrawingBufferSize=function(S){return S.set(q*ie,Z*ie).floor()},this.setDrawingBufferSize=function(S,D,z){q=S,Z=D,ie=z,t.width=Math.floor(S*z),t.height=Math.floor(D*z),this.setViewport(0,0,S,D)},this.getCurrentViewport=function(S){return S.copy(x)},this.getViewport=function(S){return S.copy(J)},this.setViewport=function(S,D,z,F){S.isVector4?J.set(S.x,S.y,S.z,S.w):J.set(S,D,z,F),ve.viewport(x.copy(J).multiplyScalar(ie).round())},this.getScissor=function(S){return S.copy(de)},this.setScissor=function(S,D,z,F){S.isVector4?de.set(S.x,S.y,S.z,S.w):de.set(S,D,z,F),ve.scissor(B.copy(de).multiplyScalar(ie).round())},this.getScissorTest=function(){return Ne},this.setScissorTest=function(S){ve.setScissorTest(Ne=S)},this.setOpaqueSort=function(S){G=S},this.setTransparentSort=function(S){Q=S},this.getClearColor=function(S){return S.copy(ne.getClearColor())},this.setClearColor=function(){ne.setClearColor.apply(ne,arguments)},this.getClearAlpha=function(){return ne.getClearAlpha()},this.setClearAlpha=function(){ne.setClearAlpha.apply(ne,arguments)},this.clear=function(S=!0,D=!0,z=!0){let F=0;if(S){let O=!1;if(R!==null){const le=R.texture.format;O=le===yo||le===Eo||le===So}if(O){const le=R.texture.type,he=le===fn||le===ii||le===_o||le===Ei||le===xo||le===Mo,fe=ne.getClearColor(),xe=ne.getClearAlpha(),Ee=fe.r,Re=fe.g,Ue=fe.b;he?(m[0]=Ee,m[1]=Re,m[2]=Ue,m[3]=xe,I.clearBufferuiv(I.COLOR,0,m)):(v[0]=Ee,v[1]=Re,v[2]=Ue,v[3]=xe,I.clearBufferiv(I.COLOR,0,v))}else F|=I.COLOR_BUFFER_BIT}D&&(F|=I.DEPTH_BUFFER_BIT),z&&(F|=I.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),I.clear(F)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",g,!1),t.removeEventListener("webglcontextrestored",P,!1),t.removeEventListener("webglcontextcreationerror",U,!1),me.dispose(),oe.dispose(),Te.dispose(),Ze.dispose(),T.dispose(),Y.dispose(),Ae.dispose(),De.dispose(),K.dispose(),we.dispose(),we.removeEventListener("sessionstart",He),we.removeEventListener("sessionend",Qe),je.stop()};function g(S){S.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),b=!0}function P(){console.log("THREE.WebGLRenderer: Context Restored."),b=!1;const S=Oe.autoReset,D=Se.enabled,z=Se.autoUpdate,F=Se.needsUpdate,O=Se.type;Xe(),Oe.autoReset=S,Se.enabled=D,Se.autoUpdate=z,Se.needsUpdate=F,Se.type=O}function U(S){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",S.statusMessage)}function j(S){const D=S.target;D.removeEventListener("dispose",j),te(D)}function te(S){be(S),Te.remove(S)}function be(S){const D=Te.get(S).programs;D!==void 0&&(D.forEach(function(z){K.releaseProgram(z)}),S.isShaderMaterial&&K.releaseShaderCache(S))}this.renderBufferDirect=function(S,D,z,F,O,le){D===null&&(D=Fe);const he=O.isMesh&&O.matrixWorld.determinant()<0,fe=Xo(S,D,z,F,O);ve.setMaterial(F,he);let xe=z.index,Ee=1;if(F.wireframe===!0){if(xe=H.getWireframeAttribute(z),xe===void 0)return;Ee=2}const Re=z.drawRange,Ue=z.attributes.position;let et=Re.start*Ee,lt=(Re.start+Re.count)*Ee;le!==null&&(et=Math.max(et,le.start*Ee),lt=Math.min(lt,(le.start+le.count)*Ee)),xe!==null?(et=Math.max(et,0),lt=Math.min(lt,xe.count)):Ue!=null&&(et=Math.max(et,0),lt=Math.min(lt,Ue.count));const _t=lt-et;if(_t<0||_t===1/0)return;Ae.setup(O,F,fe,z,xe);let zt,Ge=ze;if(xe!==null&&(zt=_.get(xe),Ge=_e,Ge.setIndex(zt)),O.isMesh)F.wireframe===!0?(ve.setLineWidth(F.wireframeLinewidth*Le()),Ge.setMode(I.LINES)):Ge.setMode(I.TRIANGLES);else if(O.isLine){let ye=F.linewidth;ye===void 0&&(ye=1),ve.setLineWidth(ye*Le()),O.isLineSegments?Ge.setMode(I.LINES):O.isLineLoop?Ge.setMode(I.LINE_LOOP):Ge.setMode(I.LINE_STRIP)}else O.isPoints?Ge.setMode(I.POINTS):O.isSprite&&Ge.setMode(I.TRIANGLES);if(O.isBatchedMesh)O._multiDrawInstances!==null?Ge.renderMultiDrawInstances(O._multiDrawStarts,O._multiDrawCounts,O._multiDrawCount,O._multiDrawInstances):Ge.renderMultiDraw(O._multiDrawStarts,O._multiDrawCounts,O._multiDrawCount);else if(O.isInstancedMesh)Ge.renderInstances(et,_t,O.count);else if(z.isInstancedBufferGeometry){const ye=z._maxInstanceCount!==void 0?z._maxInstanceCount:1/0,ci=Math.min(z.instanceCount,ye);Ge.renderInstances(et,_t,ci)}else Ge.render(et,_t)};function Ie(S,D,z){S.transparent===!0&&S.side===Yt&&S.forceSinglePass===!1?(S.side=gt,S.needsUpdate=!0,Ai(S,D,z),S.side=dn,S.needsUpdate=!0,Ai(S,D,z),S.side=Yt):Ai(S,D,z)}this.compile=function(S,D,z=null){z===null&&(z=S),p=oe.get(z),p.init(D),A.push(p),z.traverseVisible(function(O){O.isLight&&O.layers.test(D.layers)&&(p.pushLight(O),O.castShadow&&p.pushShadow(O))}),S!==z&&S.traverseVisible(function(O){O.isLight&&O.layers.test(D.layers)&&(p.pushLight(O),O.castShadow&&p.pushShadow(O))}),p.setupLights(E._useLegacyLights);const F=new Set;return S.traverse(function(O){const le=O.material;if(le)if(Array.isArray(le))for(let he=0;he{function le(){if(F.forEach(function(he){Te.get(he).currentProgram.isReady()&&F.delete(he)}),F.size===0){O(S);return}setTimeout(le,10)}ge.get("KHR_parallel_shader_compile")!==null?le():setTimeout(le,10)})};let Je=null;function st(S){Je&&Je(S)}function He(){je.stop()}function Qe(){je.start()}const je=new Oo;je.setAnimationLoop(st),typeof self<"u"&&je.setContext(self),this.setAnimationLoop=function(S){Je=S,we.setAnimationLoop(S),S===null?je.stop():je.start()},we.addEventListener("sessionstart",He),we.addEventListener("sessionend",Qe),this.render=function(S,D){if(D!==void 0&&D.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(b===!0)return;S.matrixWorldAutoUpdate===!0&&S.updateMatrixWorld(),D.parent===null&&D.matrixWorldAutoUpdate===!0&&D.updateMatrixWorld(),we.enabled===!0&&we.isPresenting===!0&&(we.cameraAutoUpdate===!0&&we.updateCamera(D),D=we.getCamera()),S.isScene===!0&&S.onBeforeRender(E,S,D,R),p=oe.get(S,A.length),p.init(D),A.push(p),ue.multiplyMatrices(D.projectionMatrix,D.matrixWorldInverse),Ve.setFromProjectionMatrix(ue),ee=this.localClippingEnabled,k=ae.init(this.clippingPlanes,ee),M=me.get(S,h.length),M.init(),h.push(M),$t(S,D,0,E.sortObjects),M.finish(),E.sortObjects===!0&&M.sort(G,Q);const z=we.enabled===!1||we.isPresenting===!1||we.hasDepthSensing()===!1;z&&ne.addToRenderList(M,S),this.info.render.frame++,k===!0&&ae.beginShadows();const F=p.state.shadowsArray;Se.render(F,S,D),k===!0&&ae.endShadows(),this.info.autoReset===!0&&this.info.reset();const O=M.opaque,le=M.transmissive;if(p.setupLights(E._useLegacyLights),D.isArrayCamera){const he=D.cameras;if(le.length>0)for(let fe=0,xe=he.length;fe0&&Jt(O,le,S,D),z&&ne.render(S),St(M,S,D);R!==null&&(Be.updateMultisampleRenderTarget(R),Be.updateRenderTargetMipmap(R)),S.isScene===!0&&S.onAfterRender(E,S,D),Ae.resetDefaultState(),V=-1,y=null,A.pop(),A.length>0?(p=A[A.length-1],k===!0&&ae.setGlobalState(E.clippingPlanes,p.state.camera)):p=null,h.pop(),h.length>0?M=h[h.length-1]:M=null};function $t(S,D,z,F){if(S.visible===!1)return;if(S.layers.test(D.layers)){if(S.isGroup)z=S.renderOrder;else if(S.isLOD)S.autoUpdate===!0&&S.update(D);else if(S.isLight)p.pushLight(S),S.castShadow&&p.pushShadow(S);else if(S.isSprite){if(!S.frustumCulled||Ve.intersectsSprite(S)){F&&re.setFromMatrixPosition(S.matrixWorld).applyMatrix4(ue);const he=Y.update(S),fe=S.material;fe.visible&&M.push(S,he,fe,z,re.z,null)}}else if((S.isMesh||S.isLine||S.isPoints)&&(!S.frustumCulled||Ve.intersectsObject(S))){const he=Y.update(S),fe=S.material;if(F&&(S.boundingSphere!==void 0?(S.boundingSphere===null&&S.computeBoundingSphere(),re.copy(S.boundingSphere.center)):(he.boundingSphere===null&&he.computeBoundingSphere(),re.copy(he.boundingSphere.center)),re.applyMatrix4(S.matrixWorld).applyMatrix4(ue)),Array.isArray(fe)){const xe=he.groups;for(let Ee=0,Re=xe.length;Ee0&&Bt(O,D,z),le.length>0&&Bt(le,D,z),he.length>0&&Bt(he,D,z),ve.buffers.depth.setTest(!0),ve.buffers.depth.setMask(!0),ve.buffers.color.setMask(!0),ve.setPolygonOffset(!1)}function Jt(S,D,z,F){if((z.isScene===!0?z.overrideMaterial:null)!==null)return;p.state.transmissionRenderTarget[F.id]===void 0&&(p.state.transmissionRenderTarget[F.id]=new Rn(1,1,{generateMipmaps:!0,type:ge.has("EXT_color_buffer_half_float")||ge.has("EXT_color_buffer_float")?hr:fn,minFilter:wn,samples:4,stencilBuffer:s,resolveDepthBuffer:!1,resolveStencilBuffer:!1}));const le=p.state.transmissionRenderTarget[F.id],he=F.viewport||x;le.setSize(he.z,he.w);const fe=E.getRenderTarget();E.setRenderTarget(le),E.getClearColor(C),W=E.getClearAlpha(),W<1&&E.setClearColor(16777215,.5),E.clear();const xe=E.toneMapping;E.toneMapping=hn;const Ee=F.viewport;if(F.viewport!==void 0&&(F.viewport=void 0),p.setupLightsView(F),k===!0&&ae.setGlobalState(E.clippingPlanes,F),Bt(S,z,F),Be.updateMultisampleRenderTarget(le),Be.updateRenderTargetMipmap(le),ge.has("WEBGL_multisampled_render_to_texture")===!1){let Re=!1;for(let Ue=0,et=D.length;Ue0),Ue=!!z.morphAttributes.position,et=!!z.morphAttributes.normal,lt=!!z.morphAttributes.color;let _t=hn;F.toneMapped&&(R===null||R.isXRRenderTarget===!0)&&(_t=E.toneMapping);const zt=z.morphAttributes.position||z.morphAttributes.normal||z.morphAttributes.color,Ge=zt!==void 0?zt.length:0,ye=Te.get(F),ci=p.state.lights;if(k===!0&&(ee===!0||S!==y)){const Et=S===y&&F.id===V;ae.setState(F,S,Et)}let $e=!1;F.version===ye.__version?(ye.needsLights&&ye.lightsStateVersion!==ci.state.version||ye.outputColorSpace!==fe||O.isBatchedMesh&&ye.batching===!1||!O.isBatchedMesh&&ye.batching===!0||O.isInstancedMesh&&ye.instancing===!1||!O.isInstancedMesh&&ye.instancing===!0||O.isSkinnedMesh&&ye.skinning===!1||!O.isSkinnedMesh&&ye.skinning===!0||O.isInstancedMesh&&ye.instancingColor===!0&&O.instanceColor===null||O.isInstancedMesh&&ye.instancingColor===!1&&O.instanceColor!==null||O.isInstancedMesh&&ye.instancingMorph===!0&&O.morphTexture===null||O.isInstancedMesh&&ye.instancingMorph===!1&&O.morphTexture!==null||ye.envMap!==xe||F.fog===!0&&ye.fog!==le||ye.numClippingPlanes!==void 0&&(ye.numClippingPlanes!==ae.numPlanes||ye.numIntersection!==ae.numIntersection)||ye.vertexAlphas!==Ee||ye.vertexTangents!==Re||ye.morphTargets!==Ue||ye.morphNormals!==et||ye.morphColors!==lt||ye.toneMapping!==_t||ye.morphTargetsCount!==Ge)&&($e=!0):($e=!0,ye.__version=F.version);let gn=ye.currentProgram;$e===!0&&(gn=Ai(F,D,O));let ms=!1,ui=!1,_r=!1;const ct=gn.getUniforms(),Qt=ye.uniforms;if(ve.useProgram(gn.program)&&(ms=!0,ui=!0,_r=!0),F.id!==V&&(V=F.id,ui=!0),ms||y!==S){ct.setValue(I,"projectionMatrix",S.projectionMatrix),ct.setValue(I,"viewMatrix",S.matrixWorldInverse);const Et=ct.map.cameraPosition;Et!==void 0&&Et.setValue(I,re.setFromMatrixPosition(S.matrixWorld)),We.logarithmicDepthBuffer&&ct.setValue(I,"logDepthBufFC",2/(Math.log(S.far+1)/Math.LN2)),(F.isMeshPhongMaterial||F.isMeshToonMaterial||F.isMeshLambertMaterial||F.isMeshBasicMaterial||F.isMeshStandardMaterial||F.isShaderMaterial)&&ct.setValue(I,"isOrthographic",S.isOrthographicCamera===!0),y!==S&&(y=S,ui=!0,_r=!0)}if(O.isSkinnedMesh){ct.setOptional(I,O,"bindMatrix"),ct.setOptional(I,O,"bindMatrixInverse");const Et=O.skeleton;Et&&(Et.boneTexture===null&&Et.computeBoneTexture(),ct.setValue(I,"boneTexture",Et.boneTexture,Be))}O.isBatchedMesh&&(ct.setOptional(I,O,"batchingTexture"),ct.setValue(I,"batchingTexture",O._matricesTexture,Be));const vr=z.morphAttributes;if((vr.position!==void 0||vr.normal!==void 0||vr.color!==void 0)&&pe.update(O,z,gn),(ui||ye.receiveShadow!==O.receiveShadow)&&(ye.receiveShadow=O.receiveShadow,ct.setValue(I,"receiveShadow",O.receiveShadow)),F.isMeshGouraudMaterial&&F.envMap!==null&&(Qt.envMap.value=xe,Qt.flipEnvMap.value=xe.isCubeTexture&&xe.isRenderTargetTexture===!1?-1:1),F.isMeshStandardMaterial&&F.envMap===null&&D.environment!==null&&(Qt.envMapIntensity.value=D.environmentIntensity),ui&&(ct.setValue(I,"toneMappingExposure",E.toneMappingExposure),ye.needsLights&&Yo(Qt,_r),le&&F.fog===!0&&$.refreshFogUniforms(Qt,le),$.refreshMaterialUniforms(Qt,F,ie,Z,p.state.transmissionRenderTarget[S.id]),nr.upload(I,fs(ye),Qt,Be)),F.isShaderMaterial&&F.uniformsNeedUpdate===!0&&(nr.upload(I,fs(ye),Qt,Be),F.uniformsNeedUpdate=!1),F.isSpriteMaterial&&ct.setValue(I,"center",O.center),ct.setValue(I,"modelViewMatrix",O.modelViewMatrix),ct.setValue(I,"normalMatrix",O.normalMatrix),ct.setValue(I,"modelMatrix",O.matrixWorld),F.isShaderMaterial||F.isRawShaderMaterial){const Et=F.uniformsGroups;for(let xr=0,jo=Et.length;xr0&&Be.useMultisampledRTT(S)===!1?O=Te.get(S).__webglMultisampledFramebuffer:Array.isArray(Re)?O=Re[z]:O=Re,x.copy(S.viewport),B.copy(S.scissor),X=S.scissorTest}else x.copy(J).multiplyScalar(ie).floor(),B.copy(de).multiplyScalar(ie).floor(),X=Ne;if(ve.bindFramebuffer(I.FRAMEBUFFER,O)&&F&&ve.drawBuffers(S,O),ve.viewport(x),ve.scissor(B),ve.setScissorTest(X),le){const xe=Te.get(S.texture);I.framebufferTexture2D(I.FRAMEBUFFER,I.COLOR_ATTACHMENT0,I.TEXTURE_CUBE_MAP_POSITIVE_X+D,xe.__webglTexture,z)}else if(he){const xe=Te.get(S.texture),Ee=D||0;I.framebufferTextureLayer(I.FRAMEBUFFER,I.COLOR_ATTACHMENT0,xe.__webglTexture,z||0,Ee)}V=-1},this.readRenderTargetPixels=function(S,D,z,F,O,le,he){if(!(S&&S.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let fe=Te.get(S).__webglFramebuffer;if(S.isWebGLCubeRenderTarget&&he!==void 0&&(fe=fe[he]),fe){ve.bindFramebuffer(I.FRAMEBUFFER,fe);try{const xe=S.texture,Ee=xe.format,Re=xe.type;if(!We.textureFormatReadable(Ee)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!We.textureTypeReadable(Re)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}D>=0&&D<=S.width-F&&z>=0&&z<=S.height-O&&I.readPixels(D,z,F,O,ce.convert(Ee),ce.convert(Re),le)}finally{const xe=R!==null?Te.get(R).__webglFramebuffer:null;ve.bindFramebuffer(I.FRAMEBUFFER,xe)}}},this.copyFramebufferToTexture=function(S,D,z=0){const F=Math.pow(2,-z),O=Math.floor(D.image.width*F),le=Math.floor(D.image.height*F);Be.setTexture2D(D,0),I.copyTexSubImage2D(I.TEXTURE_2D,z,0,0,S.x,S.y,O,le),ve.unbindTexture()},this.copyTextureToTexture=function(S,D,z,F=0){const O=D.image.width,le=D.image.height,he=ce.convert(z.format),fe=ce.convert(z.type);Be.setTexture2D(z,0),I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL,z.flipY),I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL,z.premultiplyAlpha),I.pixelStorei(I.UNPACK_ALIGNMENT,z.unpackAlignment),D.isDataTexture?I.texSubImage2D(I.TEXTURE_2D,F,S.x,S.y,O,le,he,fe,D.image.data):D.isCompressedTexture?I.compressedTexSubImage2D(I.TEXTURE_2D,F,S.x,S.y,D.mipmaps[0].width,D.mipmaps[0].height,he,D.mipmaps[0].data):I.texSubImage2D(I.TEXTURE_2D,F,S.x,S.y,he,fe,D.image),F===0&&z.generateMipmaps&&I.generateMipmap(I.TEXTURE_2D),ve.unbindTexture()},this.copyTextureToTexture3D=function(S,D,z,F,O=0){const le=S.max.x-S.min.x,he=S.max.y-S.min.y,fe=S.max.z-S.min.z,xe=ce.convert(F.format),Ee=ce.convert(F.type);let Re;if(F.isData3DTexture)Be.setTexture3D(F,0),Re=I.TEXTURE_3D;else if(F.isDataArrayTexture||F.isCompressedArrayTexture)Be.setTexture2DArray(F,0),Re=I.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL,F.flipY),I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL,F.premultiplyAlpha),I.pixelStorei(I.UNPACK_ALIGNMENT,F.unpackAlignment);const Ue=I.getParameter(I.UNPACK_ROW_LENGTH),et=I.getParameter(I.UNPACK_IMAGE_HEIGHT),lt=I.getParameter(I.UNPACK_SKIP_PIXELS),_t=I.getParameter(I.UNPACK_SKIP_ROWS),zt=I.getParameter(I.UNPACK_SKIP_IMAGES),Ge=z.isCompressedTexture?z.mipmaps[O]:z.image;I.pixelStorei(I.UNPACK_ROW_LENGTH,Ge.width),I.pixelStorei(I.UNPACK_IMAGE_HEIGHT,Ge.height),I.pixelStorei(I.UNPACK_SKIP_PIXELS,S.min.x),I.pixelStorei(I.UNPACK_SKIP_ROWS,S.min.y),I.pixelStorei(I.UNPACK_SKIP_IMAGES,S.min.z),z.isDataTexture||z.isData3DTexture?I.texSubImage3D(Re,O,D.x,D.y,D.z,le,he,fe,xe,Ee,Ge.data):F.isCompressedArrayTexture?I.compressedTexSubImage3D(Re,O,D.x,D.y,D.z,le,he,fe,xe,Ge.data):I.texSubImage3D(Re,O,D.x,D.y,D.z,le,he,fe,xe,Ee,Ge),I.pixelStorei(I.UNPACK_ROW_LENGTH,Ue),I.pixelStorei(I.UNPACK_IMAGE_HEIGHT,et),I.pixelStorei(I.UNPACK_SKIP_PIXELS,lt),I.pixelStorei(I.UNPACK_SKIP_ROWS,_t),I.pixelStorei(I.UNPACK_SKIP_IMAGES,zt),O===0&&F.generateMipmaps&&I.generateMipmap(Re),ve.unbindTexture()},this.initTexture=function(S){S.isCubeTexture?Be.setTextureCube(S,0):S.isData3DTexture?Be.setTexture3D(S,0):S.isDataArrayTexture||S.isCompressedArrayTexture?Be.setTexture2DArray(S,0):Be.setTexture2D(S,0),ve.unbindTexture()},this.resetState=function(){N=0,w=0,R=null,ve.reset(),Ae.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return qt}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===as?"display-p3":"srgb",t.unpackColorSpace=Ye.workingColorSpace===dr?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class Up extends Mt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new jt,this.environmentIntensity=1,this.environmentRotation=new jt,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class hs extends Zt{constructor(e=1,t=32,n=16,r=0,s=Math.PI*2,o=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:s,thetaStart:o,thetaLength:a},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const l=Math.min(o+a,Math.PI);let c=0;const u=[],f=new L,d=new L,m=[],v=[],M=[],p=[];for(let h=0;h<=n;h++){const A=[],E=h/n;let b=0;h===0&&o===0?b=.5/t:h===n&&l===Math.PI&&(b=-.5/t);for(let N=0;N<=t;N++){const w=N/t;f.x=-e*Math.cos(r+w*s)*Math.sin(o+E*a),f.y=e*Math.cos(o+E*a),f.z=e*Math.sin(r+w*s)*Math.sin(o+E*a),v.push(f.x,f.y,f.z),d.copy(f).normalize(),M.push(d.x,d.y,d.z),p.push(w+b,1-E),A.push(c++)}u.push(A)}for(let h=0;h0)&&m.push(E,b,w),(h!==n-1||lMath.PI&&(Qe-=Ie),je<-Math.PI?je+=Ie:je>Math.PI&&(je-=Ie),Qe<=je?a.theta=Math.max(Qe,Math.min(je,a.theta)):a.theta=a.theta>(Qe+je)/2?Math.max(Qe,a.theta):Math.min(je,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),n.enableDamping===!0?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor);let $t=!1;if(n.zoomToCursor&&w||n.object.isOrthographicCamera)a.radius=J(a.radius);else{const St=a.radius;a.radius=J(a.radius*c),$t=St!=a.radius}if(g.setFromSpherical(a),g.applyQuaternion(U),He.copy(n.target).add(g),n.object.lookAt(n.target),n.enableDamping===!0?(l.theta*=1-n.dampingFactor,l.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(l.set(0,0,0),u.set(0,0,0)),n.zoomToCursor&&w){let St=null;if(n.object.isPerspectiveCamera){const Jt=g.length();St=J(Jt*c);const Bt=Jt-St;n.object.position.addScaledVector(b,Bt),n.object.updateMatrixWorld(),$t=!!Bt}else if(n.object.isOrthographicCamera){const Jt=new L(N.x,N.y,0);Jt.unproject(n.object);const Bt=n.object.zoom;n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix(),$t=Bt!==n.object.zoom;const li=new L(N.x,N.y,0);li.unproject(n.object),n.object.position.sub(li).add(Jt),n.object.updateMatrixWorld(),St=g.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;St!==null&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(St).add(n.object.position):(ji.origin.copy(n.object.position),ji.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(ji.direction))o||8*(1-te.dot(n.object.quaternion))>o||be.distanceToSquared(n.target)>o?(n.dispatchEvent(Ga),j.copy(n.object.position),te.copy(n.object.quaternion),be.copy(n.target),!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ze),n.domElement.removeEventListener("pointerdown",T),n.domElement.removeEventListener("pointercancel",H),n.domElement.removeEventListener("wheel",$),n.domElement.removeEventListener("pointermove",_),n.domElement.removeEventListener("pointerup",H),n.domElement.getRootNode().removeEventListener("keydown",oe,{capture:!0}),n._domElementKeyEvents!==null&&(n._domElementKeyEvents.removeEventListener("keydown",Se),n._domElementKeyEvents=null)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let s=r.NONE;const o=1e-6,a=new Ha,l=new Ha;let c=1;const u=new L,f=new Me,d=new Me,m=new Me,v=new Me,M=new Me,p=new Me,h=new Me,A=new Me,E=new Me,b=new L,N=new Me;let w=!1;const R=[],V={};let y=!1;function x(g){return g!==null?2*Math.PI/60*n.autoRotateSpeed*g:2*Math.PI/60/60*n.autoRotateSpeed}function B(g){const P=Math.abs(g*.01);return Math.pow(.95,n.zoomSpeed*P)}function X(g){l.theta-=g}function C(g){l.phi-=g}const W=function(){const g=new L;return function(U,j){g.setFromMatrixColumn(j,0),g.multiplyScalar(-U),u.add(g)}}(),q=function(){const g=new L;return function(U,j){n.screenSpacePanning===!0?g.setFromMatrixColumn(j,1):(g.setFromMatrixColumn(j,0),g.crossVectors(n.object.up,g)),g.multiplyScalar(U),u.add(g)}}(),Z=function(){const g=new L;return function(U,j){const te=n.domElement;if(n.object.isPerspectiveCamera){const be=n.object.position;g.copy(be).sub(n.target);let Ie=g.length();Ie*=Math.tan(n.object.fov/2*Math.PI/180),W(2*U*Ie/te.clientHeight,n.object.matrix),q(2*j*Ie/te.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(W(U*(n.object.right-n.object.left)/n.object.zoom/te.clientWidth,n.object.matrix),q(j*(n.object.top-n.object.bottom)/n.object.zoom/te.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function ie(g){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c/=g:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function G(g){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c*=g:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function Q(g,P){if(!n.zoomToCursor)return;w=!0;const U=n.domElement.getBoundingClientRect(),j=g-U.left,te=P-U.top,be=U.width,Ie=U.height;N.x=j/be*2-1,N.y=-(te/Ie)*2+1,b.set(N.x,N.y,1).unproject(n.object).sub(n.object.position).normalize()}function J(g){return Math.max(n.minDistance,Math.min(n.maxDistance,g))}function de(g){f.set(g.clientX,g.clientY)}function Ne(g){Q(g.clientX,g.clientX),h.set(g.clientX,g.clientY)}function Ve(g){v.set(g.clientX,g.clientY)}function k(g){d.set(g.clientX,g.clientY),m.subVectors(d,f).multiplyScalar(n.rotateSpeed);const P=n.domElement;X(2*Math.PI*m.x/P.clientHeight),C(2*Math.PI*m.y/P.clientHeight),f.copy(d),n.update()}function ee(g){A.set(g.clientX,g.clientY),E.subVectors(A,h),E.y>0?ie(B(E.y)):E.y<0&&G(B(E.y)),h.copy(A),n.update()}function ue(g){M.set(g.clientX,g.clientY),p.subVectors(M,v).multiplyScalar(n.panSpeed),Z(p.x,p.y),v.copy(M),n.update()}function re(g){Q(g.clientX,g.clientY),g.deltaY<0?G(B(g.deltaY)):g.deltaY>0&&ie(B(g.deltaY)),n.update()}function Fe(g){let P=!1;switch(g.code){case n.keys.UP:g.ctrlKey||g.metaKey||g.shiftKey?C(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(0,n.keyPanSpeed),P=!0;break;case n.keys.BOTTOM:g.ctrlKey||g.metaKey||g.shiftKey?C(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(0,-n.keyPanSpeed),P=!0;break;case n.keys.LEFT:g.ctrlKey||g.metaKey||g.shiftKey?X(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(n.keyPanSpeed,0),P=!0;break;case n.keys.RIGHT:g.ctrlKey||g.metaKey||g.shiftKey?X(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(-n.keyPanSpeed,0),P=!0;break}P&&(g.preventDefault(),n.update())}function Le(g){if(R.length===1)f.set(g.pageX,g.pageY);else{const P=Xe(g),U=.5*(g.pageX+P.x),j=.5*(g.pageY+P.y);f.set(U,j)}}function I(g){if(R.length===1)v.set(g.pageX,g.pageY);else{const P=Xe(g),U=.5*(g.pageX+P.x),j=.5*(g.pageY+P.y);v.set(U,j)}}function ke(g){const P=Xe(g),U=g.pageX-P.x,j=g.pageY-P.y,te=Math.sqrt(U*U+j*j);h.set(0,te)}function ge(g){n.enableZoom&&ke(g),n.enablePan&&I(g)}function We(g){n.enableZoom&&ke(g),n.enableRotate&&Le(g)}function ve(g){if(R.length==1)d.set(g.pageX,g.pageY);else{const U=Xe(g),j=.5*(g.pageX+U.x),te=.5*(g.pageY+U.y);d.set(j,te)}m.subVectors(d,f).multiplyScalar(n.rotateSpeed);const P=n.domElement;X(2*Math.PI*m.x/P.clientHeight),C(2*Math.PI*m.y/P.clientHeight),f.copy(d)}function Oe(g){if(R.length===1)M.set(g.pageX,g.pageY);else{const P=Xe(g),U=.5*(g.pageX+P.x),j=.5*(g.pageY+P.y);M.set(U,j)}p.subVectors(M,v).multiplyScalar(n.panSpeed),Z(p.x,p.y),v.copy(M)}function Te(g){const P=Xe(g),U=g.pageX-P.x,j=g.pageY-P.y,te=Math.sqrt(U*U+j*j);A.set(0,te),E.set(0,Math.pow(A.y/h.y,n.zoomSpeed)),ie(E.y),h.copy(A);const be=(g.pageX+P.x)*.5,Ie=(g.pageY+P.y)*.5;Q(be,Ie)}function Be(g){n.enableZoom&&Te(g),n.enablePan&&Oe(g)}function Ze(g){n.enableZoom&&Te(g),n.enableRotate&&ve(g)}function T(g){n.enabled!==!1&&(R.length===0&&(n.domElement.setPointerCapture(g.pointerId),n.domElement.addEventListener("pointermove",_),n.domElement.addEventListener("pointerup",H)),!Ae(g)&&(_e(g),g.pointerType==="touch"?ne(g):Y(g)))}function _(g){n.enabled!==!1&&(g.pointerType==="touch"?pe(g):K(g))}function H(g){switch(ce(g),R.length){case 0:n.domElement.releasePointerCapture(g.pointerId),n.domElement.removeEventListener("pointermove",_),n.domElement.removeEventListener("pointerup",H),n.dispatchEvent(Va),s=r.NONE;break;case 1:const P=R[0],U=V[P];ne({pointerId:P,pageX:U.x,pageY:U.y});break}}function Y(g){let P;switch(g.button){case 0:P=n.mouseButtons.LEFT;break;case 1:P=n.mouseButtons.MIDDLE;break;case 2:P=n.mouseButtons.RIGHT;break;default:P=-1}switch(P){case Ln.DOLLY:if(n.enableZoom===!1)return;Ne(g),s=r.DOLLY;break;case Ln.ROTATE:if(g.ctrlKey||g.metaKey||g.shiftKey){if(n.enablePan===!1)return;Ve(g),s=r.PAN}else{if(n.enableRotate===!1)return;de(g),s=r.ROTATE}break;case Ln.PAN:if(g.ctrlKey||g.metaKey||g.shiftKey){if(n.enableRotate===!1)return;de(g),s=r.ROTATE}else{if(n.enablePan===!1)return;Ve(g),s=r.PAN}break;default:s=r.NONE}s!==r.NONE&&n.dispatchEvent($r)}function K(g){switch(s){case r.ROTATE:if(n.enableRotate===!1)return;k(g);break;case r.DOLLY:if(n.enableZoom===!1)return;ee(g);break;case r.PAN:if(n.enablePan===!1)return;ue(g);break}}function $(g){n.enabled===!1||n.enableZoom===!1||s!==r.NONE||(g.preventDefault(),n.dispatchEvent($r),re(me(g)),n.dispatchEvent(Va))}function me(g){const P=g.deltaMode,U={clientX:g.clientX,clientY:g.clientY,deltaY:g.deltaY};switch(P){case 1:U.deltaY*=16;break;case 2:U.deltaY*=100;break}return g.ctrlKey&&!y&&(U.deltaY*=10),U}function oe(g){g.key==="Control"&&(y=!0,n.domElement.getRootNode().addEventListener("keyup",ae,{passive:!0,capture:!0}))}function ae(g){g.key==="Control"&&(y=!1,n.domElement.getRootNode().removeEventListener("keyup",ae,{passive:!0,capture:!0}))}function Se(g){n.enabled===!1||n.enablePan===!1||Fe(g)}function ne(g){switch(De(g),R.length){case 1:switch(n.touches.ONE){case Dn.ROTATE:if(n.enableRotate===!1)return;Le(g),s=r.TOUCH_ROTATE;break;case Dn.PAN:if(n.enablePan===!1)return;I(g),s=r.TOUCH_PAN;break;default:s=r.NONE}break;case 2:switch(n.touches.TWO){case Dn.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;ge(g),s=r.TOUCH_DOLLY_PAN;break;case Dn.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;We(g),s=r.TOUCH_DOLLY_ROTATE;break;default:s=r.NONE}break;default:s=r.NONE}s!==r.NONE&&n.dispatchEvent($r)}function pe(g){switch(De(g),s){case r.TOUCH_ROTATE:if(n.enableRotate===!1)return;ve(g),n.update();break;case r.TOUCH_PAN:if(n.enablePan===!1)return;Oe(g),n.update();break;case r.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;Be(g),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;Ze(g),n.update();break;default:s=r.NONE}}function ze(g){n.enabled!==!1&&g.preventDefault()}function _e(g){R.push(g.pointerId)}function ce(g){delete V[g.pointerId];for(let P=0;P` +varying vec4 world_position; + +void main() { + world_position = modelMatrix * vec4(position, 1.0); + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); +} +`,Vp=(i,e,t)=>` +uniform vec3 signals[${i}]; +uniform float signalIntensities[${i}]; +uniform int signalCount; +uniform vec3 aabbs[${e*2}]; +uniform int aabbCount; +uniform vec3 planes[${t*2}]; +uniform int planeCount; +uniform sampler2D map; +uniform vec2 mapScale; +uniform vec2 mapOffset; +uniform bool isSignalIndex; + +varying vec4 world_position; + +vec3 hsv2rgb(vec3 c) { + vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); + vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); + return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); +} + +vec3 opacityToHSV(float opacity) { + float minHue = 0.7; + float maxHue = 0.0; + float hue = mix(minHue, maxHue, opacity); + return hsv2rgb(vec3(hue, 1.0, 1.0)); +} + +float decay(float distance, float intensity) { + return 1.0 / pow(distance / intensity + 1.0, 2.0); +} + +// adapted from intersectCube in https://github.com/evanw/webgl-path-tracing/blob/master/webgl-path-tracing.js +// compute the near and far intersections of the cube (stored in the x and y components) using the slab method +// no intersection means vec.x > vec.y (really tNear > tFar) +vec2 intersectAABB(vec3 rayOrigin, vec3 rayDir, vec3 boxMin, vec3 boxMax) { + vec3 tMin = (boxMin - rayOrigin) / rayDir; + vec3 tMax = (boxMax - rayOrigin) / rayDir; + vec3 t1 = min(tMin, tMax); + vec3 t2 = max(tMin, tMax); + float tNear = max(max(t1.x, t1.y), t1.z); + float tFar = min(min(t2.x, t2.y), t2.z); + return vec2(tNear, tFar); +} + +float PointInOrOn(vec3 P1, vec3 P2, vec3 A, vec3 B) { + vec3 CP1 = cross(B - A, P1 - A); + vec3 CP2 = cross(B - A, P2 - A); + return step(0.0, dot(CP1, CP2)); +} + +bool PointInTriangle(vec3 px, vec3 p0, vec3 p1, vec3 p2) { + return PointInOrOn(px, p0, p1, p2) * PointInOrOn(px, p1, p2, p0) * PointInOrOn(px, p2, p0, p1) < 1e-3; +} + +vec3 IntersectPlane(vec3 rayOrigin, vec3 rayDir, vec3 p0, vec3 p1, vec3 p2) { + vec3 D = rayDir; + vec3 N = cross(p1 - p0, p2 - p0); + vec3 X = rayOrigin + D * dot(p0 - rayOrigin, N) / dot(D, N); + return X; +} + +bool pointOnRay(vec3 point, vec3 rayOrigin, vec3 rayDir) { + vec3 intersectionDir = normalize(rayOrigin - point); + return dot(intersectionDir, rayDir) < (1.0 - 1e-3); +} + +bool intersect(vec3 origin, vec3 rayDir, vec3 p0, vec3 p1, vec3 p2, float maxDistance) { + vec3 x = IntersectPlane(origin, rayDir, p0, p1, p2); + bool noIntersections = PointInTriangle(x, p0, p1, p2) || !pointOnRay(x, origin, rayDir) || distance(x, origin) > maxDistance - 1e-3; + return !noIntersections; +} + +void main() { + float maxSignalIndex = 1.0; + float density = 1e-3; + for (int signalIndex = 0; signalIndex < signalCount; signalIndex++) { + float wallDistance = 0.0; + vec3 signalPosition = signals[signalIndex].xyz; + vec3 rayDir = normalize(world_position.xyz - signalPosition); + + float totalDistance = distance(world_position.xyz, signalPosition); + + for (int aabbIndex = 0; aabbIndex < aabbCount; aabbIndex++) { + vec2 nearFar = intersectAABB(signalPosition, rayDir, aabbs[2 * aabbIndex], aabbs[2 * aabbIndex + 1]); + bool noIntersections = nearFar.x > nearFar.y || nearFar.x < 0.0 || nearFar.x > totalDistance - 1e-3; + if (noIntersections) { + continue; + } + + wallDistance += nearFar.y - nearFar.x; + } + + for (int planeIndex = 0; planeIndex < planeCount; planeIndex++) { + vec3 min = planes[2 * planeIndex]; + vec3 max = planes[2 * planeIndex + 1]; + + vec3 p0 = min; + vec3 p1 = vec3(max.x, min.y, max.z); + vec3 p2 = max; + vec3 p3 = vec3(min.x, max.y, min.z); + + if (!intersect(signalPosition, rayDir, p0, p1, p2, totalDistance) && !intersect(signalPosition, rayDir, p3, p0, p2, totalDistance)) { + continue; + } + + wallDistance += 0.15; + } + + float wallDecay = wallDistance * 0.2; + float newDensity = decay(totalDistance - wallDistance, signalIntensities[signalIndex]) - wallDecay; + + if (newDensity > density) { + density = newDensity; + maxSignalIndex = float(signalIndex) / float(signalCount); + } + } + + vec4 visualizedDensity = vec4(opacityToHSV(isSignalIndex? maxSignalIndex:density), 1.0); + vec4 color = texture2D(map, (world_position.xz * mapScale) + mapOffset); + gl_FragColor = mix(color, visualizedDensity, 0.4); +} +`;class lr extends Kt{static _getUniformLimitation(){return{MAX_SIGNAL_COUNT:15,MAX_AABB_COUNT:25,MAX_PLANE_COUNT:80}}constructor(){const{MAX_SIGNAL_COUNT:e,MAX_AABB_COUNT:t,MAX_PLANE_COUNT:n}=lr._getUniformLimitation();super({uniforms:{isSignalIndex:{value:!1},mapScale:{value:new Me(1,1)},mapOffset:{value:new Me(0,0)},map:{value:null},planeCount:{value:0},aabbCount:{value:0},signalCount:{value:0},signalIntensities:{value:Array(e).fill(10)},signals:{value:Array(e).fill(new L)},aabbs:{value:Array(t*2).fill(new L)},planes:{value:Array(n*2).fill(new L)}},vertexShader:Gp(),fragmentShader:Vp(e,t,n)})}setUniforms({isSignalIndex:e,planeCount:t,aabbCount:n,signalCount:r,signals:s,signalIntensities:o,aabbs:a,planes:l,map:c,mapScale:u,mapOffset:f}){const{MAX_SIGNAL_COUNT:d,MAX_AABB_COUNT:m,MAX_PLANE_COUNT:v}=lr._getUniformLimitation(),M=p=>p!==void 0;M(e)&&(this.uniforms.isSignalIndex.value=e),M(t)&&(this.uniforms.planeCount.value=t),M(n)&&(this.uniforms.aabbCount.value=n),M(r)&&(this.uniforms.signalCount.value=r),o&&(this.uniforms.signalIntensities.value=[...o,...Array(d-o.length).fill(0)]),s&&(this.uniforms.signals.value=[...s,...Array(d-s.length).fill(new L)]),a&&(this.uniforms.aabbs.value=[...a,...Array(m*2-a.length).fill(new L)]),l&&(this.uniforms.planes.value=[...l,...Array(v*2-l.length).fill(new L)]),c&&(this.uniforms.map.value=c),u&&(this.uniforms.mapScale.value=u),f&&(this.uniforms.mapOffset.value=f)}}class kp extends Zt{constructor(){super(),this.aabbArray=[],this.PLANE_THICKNESS=.08,this.planeArray=[],this.floorVertices=[]}_updateGeometry(){const e=this.aabbArray.flatMap(([n,r])=>{const s=r[0]-n[0],o=r[1]-n[1],a=r[2]-n[2],l=new Cn(s,o,a);l.translate((r[0]+n[0])/2,(r[1]+n[1])/2,(r[2]+n[2])/2);const c=[...l.attributes.position.array];return[...l.getIndex().array].flatMap(d=>[c[d*3],c[d*3+1],c[d*3+2]])}),t=this.planeArray.flatMap(([n,r])=>{const s=new nt().lookAt(new L(n[0],0,n[2]),new L(r[0],0,r[2]),new L(0,1,0)),o=new pn().setFromRotationMatrix(s),a=new Me(r[0]-n[0],r[2]-n[2]).length(),l=r[1]-n[1],c=new Cn(this.PLANE_THICKNESS,l,a);c.applyQuaternion(o),c.translate((r[0]+n[0])/2,(r[1]+n[1])/2,(r[2]+n[2])/2);const u=[...c.attributes.position.array];return[...c.getIndex().array].flatMap(m=>[u[m*3],u[m*3+1],u[m*3+2]])});this.setAttribute("position",new Dt(new Float32Array([...this.floorVertices.flat(),...e,...t]),3))}setFloor(e,t){this.floorVertices=[[1,0,1],[-1,0,1],[1,0,-1],[1,0,-1],[-1,0,1],[-1,0,-1],[1,0,1],[1,0,-1],[-1,0,1],[1,0,-1],[-1,0,-1],[-1,0,1]].flatMap(([n,r,s])=>[n*e/2,r,s*t/2]),this._updateGeometry()}setAABB(e){e&&(this.aabbArray=e,this._updateGeometry())}setPlane(e){e&&(this.planeArray=e,this._updateGeometry())}}class Wp{constructor(){this._scene=new Up,this.heatmapMaterial=new lr,this.roomGeometry=new kp,this.roomGeometry.setFloor(20,20);const e=new Lt(this.roomGeometry,this.heatmapMaterial);this._scene.add(e),this._signalGroup=new gi,this._scene.add(this._signalGroup)}setSignal(e){e&&(this._signalGroup.clear(),e.forEach(t=>{const n=new hs(.1,16,16),r=new cs({color:0,wireframe:!0}),s=new Lt(n,r);s.position.fromArray(t),this._signalGroup.add(s)}),this.heatmapMaterial.setUniforms({signalCount:e.length,signals:e.map(t=>new L().fromArray(t))}))}setAABB(e){e&&(this.roomGeometry.setAABB(e),this.heatmapMaterial.setUniforms({aabbCount:e.length,aabbs:e.flatMap(([t,n])=>[new L().fromArray(t),new L().fromArray(n)])}))}setPlane(e){e&&(this.roomGeometry.setPlane(e),this.heatmapMaterial.setUniforms({planeCount:e.length*2,planes:e.flatMap(([t,n])=>[new L().fromArray(t),new L().fromArray(n)])}))}setIsSignalIndex(e){this.heatmapMaterial.setUniforms({isSignalIndex:e})}setSignalIntensities(e){this.heatmapMaterial.setUniforms({signalIntensities:e})}setTexture(e,t,n){const r=new Bp().load(e);this.heatmapMaterial.setUniforms({map:r,mapScale:new Me().fromArray(t),mapOffset:new Me().fromArray(n)})}init(e){const t=new Ip({canvas:e,alpha:!0}),n=new Tt(75,window.innerWidth/window.innerHeight,.001,1e3),r=new Hp(n,t.domElement);n.position.set(0,20,100),r.update(),n.position.z=5;let s=0;const o=()=>{s=requestAnimationFrame(o),r.update(),t.render(this._scene,n)},a=()=>{cancelAnimationFrame(s)},l=(c,u)=>{e.width=c,e.height=u,t.setSize(c,u),n.aspect=c/u,n.updateProjectionMatrix()};return o(),{resizeCanvas:l,dispose:a}}}const Wo=({texture:i,textCoordScale:e,textCoordSoffset:t,isSignalIndex:n,signalIntensities:r,signals:s,aabbs:o,planes:a})=>{const[l]=Ct.useState(new Wp),c=Ct.useRef(null),u=Ct.useRef(null);return Ct.useEffect(()=>{l.setTexture(i,e,t)},[i,e,t]),Ct.useEffect(()=>{l.setIsSignalIndex(n)},[n]),Ct.useEffect(()=>{l.setSignalIntensities(r)},[r]),Ct.useEffect(()=>{l.setSignal(s)},[s]),Ct.useEffect(()=>{l.setAABB(o)},[o]),Ct.useEffect(()=>{l.setPlane(a)},[a]),Ct.useEffect(()=>{const f=u.current,{resizeCanvas:d,dispose:m}=l.init(f),v=()=>{const M=c.current.clientWidth,p=c.current.clientHeight;d(M,p)};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v),m()}},[]),_s.jsx("div",{ref:c,style:{width:"100%",height:"100%",overflow:"hidden"},children:_s.jsx("canvas",{ref:u})})},Xp=Wo;Wo.__docgenInfo={description:"",methods:[],displayName:"Renderer"};const oi=[[[1.02,0,-10],[1.45,3,1.2]],[[-4.6,0,.73],[1.02,3,1.2]],[[-9.55,0,.73],[-7.1,3,1.2]],[[3.85,0,-10],[4.25,3,-4]],[[3.85,0,-.6],[4.25,3,.55]],[[4.25,0,.12],[8.34,3,.55]],[[-9.65,0,8.2],[-6.8,3,8.7]],[[-3.75,0,8.2],[2.5,3,8.7]],[[5.55,0,8.2],[8.34,3,8.7]],[[-9.65,0,-9.55],[1.02,3,-10]],[[4.25,0,-9.55],[8.34,3,-10]],[[-9.55,0,-10],[-10,3,8.7]],[[8.34,0,-10],[8.75,3,8.7]]],Ti=[[[-5.1,0,2.2],[-3.1,.3,7.35]],[[-3.1,0,2.2],[-2.5,1,7.35]],[[1.45,.8,2.5],[4,1,5.2]],[[-8.4,0,-3.5],[-2.1,1,-9.55]],[[-.75,0,-2.9],[1.02,1,-9.55]]],gr=i=>{const t=-Math.PI/2+.1;return[[[-7.1,3,.73],[-7.1+2.5*Math.cos(0*i+t*(1-i)),0,.73+2.5*Math.sin(0*i+t*(1-i))]],[[4.05,0,-.6],[4.05,3,-.6+-1.7*i+0*(1-i)]],[[-6.8,0,8.5],[-3.75,3,8.5]],[[2.5,0,8.5],[5.55,3,8.5]]]},qp={title:"react-coverage-heatmap/Renderer",tags:["autodocs"],component:Xp,parameters:{layout:"fullscreen"}},Ki={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10],signals:[[0,.001,8.1]],aabbs:[...oi,...Ti],planes:gr(.8)}},Zi={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10],signals:[[0,2,8.1]],aabbs:[...oi,...Ti],planes:gr(.8)}},$i={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10,10],signals:[[0,1.1,-4],[0,2,8.1]],aabbs:[...oi,...Ti],planes:gr(.8)}},Ji={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!0,signalIntensities:[10,10],signals:[[0,1.1,-4],[0,2,8.1]],aabbs:[...oi,...Ti],planes:gr(.8)}},Qi={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10,10],signals:[[0,1.1,-4],[0,2,8.1]],aabbs:[...oi,...Ti]}},er={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10,10],signals:[[0,1.1,-4],[0,2,8.1]],aabbs:[...oi]}},tr={args:{texture:"./floorplan.png",textCoordScale:[1/20,1/20],textCoordSoffset:[.5,.5],isSignalIndex:!1,signalIntensities:[10,10],signals:[[0,1.1,-4],[0,2,8.1]]}};var Wa,Xa,Ya;Ki.parameters={...Ki.parameters,docs:{...(Wa=Ki.parameters)==null?void 0:Wa.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10], + signals: [[0, 1e-3, 8.1]], + aabbs: [...wallsAABBs, ...furnitureAABBs], + planes: getPlanes(0.8) + } +}`,...(Ya=(Xa=Ki.parameters)==null?void 0:Xa.docs)==null?void 0:Ya.source}}};var qa,ja,Ka;Zi.parameters={...Zi.parameters,docs:{...(qa=Zi.parameters)==null?void 0:qa.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10], + signals: [[0, 2.0, 8.1]], + aabbs: [...wallsAABBs, ...furnitureAABBs], + planes: getPlanes(0.8) + } +}`,...(Ka=(ja=Zi.parameters)==null?void 0:ja.docs)==null?void 0:Ka.source}}};var Za,$a,Ja;$i.parameters={...$i.parameters,docs:{...(Za=$i.parameters)==null?void 0:Za.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10, 10], + signals: [[0, 1.1, -4], [0, 2.0, 8.1]], + aabbs: [...wallsAABBs, ...furnitureAABBs], + planes: getPlanes(0.8) + } +}`,...(Ja=($a=$i.parameters)==null?void 0:$a.docs)==null?void 0:Ja.source}}};var Qa,eo,to;Ji.parameters={...Ji.parameters,docs:{...(Qa=Ji.parameters)==null?void 0:Qa.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: true, + signalIntensities: [10, 10], + signals: [[0, 1.1, -4], [0, 2.0, 8.1]], + aabbs: [...wallsAABBs, ...furnitureAABBs], + planes: getPlanes(0.8) + } +}`,...(to=(eo=Ji.parameters)==null?void 0:eo.docs)==null?void 0:to.source}}};var no,io,ro;Qi.parameters={...Qi.parameters,docs:{...(no=Qi.parameters)==null?void 0:no.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10, 10], + signals: [[0, 1.1, -4], [0, 2.0, 8.1]], + aabbs: [...wallsAABBs, ...furnitureAABBs] + } +}`,...(ro=(io=Qi.parameters)==null?void 0:io.docs)==null?void 0:ro.source}}};var so,ao,oo;er.parameters={...er.parameters,docs:{...(so=er.parameters)==null?void 0:so.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10, 10], + signals: [[0, 1.1, -4], [0, 2.0, 8.1]], + aabbs: [...wallsAABBs] + } +}`,...(oo=(ao=er.parameters)==null?void 0:ao.docs)==null?void 0:oo.source}}};var lo,co,uo;tr.parameters={...tr.parameters,docs:{...(lo=tr.parameters)==null?void 0:lo.docs,source:{originalSource:`{ + args: { + texture: "./floorplan.png", + textCoordScale: [1 / 20, 1 / 20], + textCoordSoffset: [0.5, 0.5], + isSignalIndex: false, + signalIntensities: [10, 10], + signals: [[0, 1.1, -4], [0, 2.0, 8.1]] + } +}`,...(uo=(co=tr.parameters)==null?void 0:co.docs)==null?void 0:uo.source}}};const jp=["ShowroomFloorAp","ShowroomCeilingAp","ShowroomTwoAps","ShowroomIndexMap","withoutDoor","withoutFurniture","withoutWall"];export{Zi as ShowroomCeilingAp,Ki as ShowroomFloorAp,Ji as ShowroomIndexMap,$i as ShowroomTwoAps,jp as __namedExportsOrder,qp as default,Qi as withoutDoor,er as withoutFurniture,tr as withoutWall}; diff --git a/storybook/assets/WithTooltip-KJL26V4Q-dz-U5J6A.js b/storybook/assets/WithTooltip-KJL26V4Q-dz-U5J6A.js new file mode 100644 index 0000000..41ff856 --- /dev/null +++ b/storybook/assets/WithTooltip-KJL26V4Q-dz-U5J6A.js @@ -0,0 +1 @@ +import{W as e,W as h,b as l}from"./DocsRenderer-K4EAMTCU-CMAjytqJ.js";import"./iframe-CNsWcalC.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{e as WithToolTipState,h as WithTooltip,l as WithTooltipPure}; diff --git a/storybook/assets/_getPrototype-DtJm8IA_.js b/storybook/assets/_getPrototype-DtJm8IA_.js new file mode 100644 index 0000000..3d8c59a --- /dev/null +++ b/storybook/assets/_getPrototype-DtJm8IA_.js @@ -0,0 +1,3 @@ +import{c as Bu,g as Uu}from"./index-CDs2tPxN.js";var or=typeof Bu=="object"&&Bu&&Bu.Object===Object&&Bu,be=or,Fr=be,Cr=typeof self=="object"&&self&&self.Object===Object&&self,lr=Fr||Cr||Function("return this")(),H=lr,cr=H,Er=cr.Symbol,gu=Er,Xu=gu,Se=Object.prototype,fr=Se.hasOwnProperty,pr=Se.toString,su=Xu?Xu.toStringTag:void 0;function Br(u){var e=fr.call(u,su),r=u[su];try{u[su]=void 0;var t=!0}catch{}var a=pr.call(u);return t&&(e?u[su]=r:delete u[su]),a}var hr=Br,dr=Object.prototype,vr=dr.toString;function yr(u){return vr.call(u)}var gr=yr,Zu=gu,mr=hr,_r=gr,xr="[object Null]",Tr="[object Undefined]",ue=Zu?Zu.toStringTag:void 0;function br(u){return u==null?u===void 0?Tr:xr:ue&&ue in Object(u)?mr(u):_r(u)}var lu=br;function Sr(u){var e=typeof u;return u!=null&&(e=="object"||e=="function")}var ju=Sr,$r=lu,wr=ju,Or="[object AsyncFunction]",Nr="[object Function]",Pr="[object GeneratorFunction]",Ir="[object Proxy]";function Rr(u){if(!wr(u))return!1;var e=$r(u);return e==Nr||e==Pr||e==Or||e==Ir}var Gu=Rr;const Ao=Uu(Gu);var Lr=H,Mr=Lr["__core-js_shared__"],kr=Mr,Ou=kr,ee=function(){var u=/[^.]+$/.exec(Ou&&Ou.keys&&Ou.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function Ur(u){return!!ee&&ee in u}var jr=Ur,Gr=Function.prototype,Kr=Gr.toString;function Hr(u){if(u!=null){try{return Kr.call(u)}catch{}try{return u+""}catch{}}return""}var $e=Hr,Wr=Gu,qr=jr,zr=ju,Vr=$e,Jr=/[\\^$.*+?()[\]{}|]/g,Qr=/^\[object .+?Constructor\]$/,Yr=Function.prototype,Xr=Object.prototype,Zr=Yr.toString,ut=Xr.hasOwnProperty,et=RegExp("^"+Zr.call(ut).replace(Jr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rt(u){if(!zr(u)||qr(u))return!1;var e=Wr(u)?et:Qr;return e.test(Vr(u))}var tt=rt;function at(u,e){return u==null?void 0:u[e]}var nt=at,it=tt,st=nt;function Dt(u,e){var r=st(u,e);return it(r)?r:void 0}var Y=Dt,At=Y,ot=function(){try{var u=At(Object,"defineProperty");return u({},"",{}),u}catch{}}(),Ft=ot,re=Ft;function Ct(u,e,r){e=="__proto__"&&re?re(u,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):u[e]=r}var lt=Ct;function ct(u){return function(e,r,t){for(var a=-1,i=Object(e),n=t(e),C=n.length;C--;){var E=n[u?C:++a];if(r(i[E],E,i)===!1)break}return e}}var Et=ct,ft=Et,pt=ft(),Bt=pt;function ht(u,e){for(var r=-1,t=Array(u);++r-1&&u%1==0&&u-1&&u%1==0&&u<=Lt}var Ku=Mt,kt=lu,Ut=Ku,jt=cu,Gt="[object Arguments]",Kt="[object Array]",Ht="[object Boolean]",Wt="[object Date]",qt="[object Error]",zt="[object Function]",Vt="[object Map]",Jt="[object Number]",Qt="[object Object]",Yt="[object RegExp]",Xt="[object Set]",Zt="[object String]",u0="[object WeakMap]",e0="[object ArrayBuffer]",r0="[object DataView]",t0="[object Float32Array]",a0="[object Float64Array]",n0="[object Int8Array]",i0="[object Int16Array]",s0="[object Int32Array]",D0="[object Uint8Array]",A0="[object Uint8ClampedArray]",o0="[object Uint16Array]",F0="[object Uint32Array]",S={};S[t0]=S[a0]=S[n0]=S[i0]=S[s0]=S[D0]=S[A0]=S[o0]=S[F0]=!0;S[Gt]=S[Kt]=S[e0]=S[Ht]=S[r0]=S[Wt]=S[qt]=S[zt]=S[Vt]=S[Jt]=S[Qt]=S[Yt]=S[Xt]=S[Zt]=S[u0]=!1;function C0(u){return jt(u)&&Ut(u.length)&&!!S[kt(u)]}var l0=C0;function c0(u){return function(e){return u(e)}}var E0=c0,vu={exports:{}};vu.exports;(function(u,e){var r=be,t=e&&!e.nodeType&&e,a=t&&!0&&u&&!u.nodeType&&u,i=a&&a.exports===t,n=i&&r.process,C=function(){try{var E=a&&a.require&&a.require("util").types;return E||n&&n.binding&&n.binding("util")}catch{}}();u.exports=C})(vu,vu.exports);var f0=vu.exports,p0=l0,B0=E0,ae=f0,ne=ae&&ae.isTypedArray,h0=ne?B0(ne):p0,Ie=h0,d0=dt,v0=Oe,y0=q,g0=Ne,m0=Pe,_0=Ie,x0=Object.prototype,T0=x0.hasOwnProperty;function b0(u,e){var r=y0(u),t=!r&&v0(u),a=!r&&!t&&g0(u),i=!r&&!t&&!a&&_0(u),n=r||t||a||i,C=n?d0(u.length,String):[],E=C.length;for(var f in u)(e||T0.call(u,f))&&!(n&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||m0(f,E)))&&C.push(f);return C}var S0=b0,$0=Object.prototype;function w0(u){var e=u&&u.constructor,r=typeof e=="function"&&e.prototype||$0;return u===r}var O0=w0;function N0(u,e){return function(r){return u(e(r))}}var Re=N0,P0=Re,I0=P0(Object.keys,Object),R0=I0,L0=O0,M0=R0,k0=Object.prototype,U0=k0.hasOwnProperty;function j0(u){if(!L0(u))return M0(u);var e=[];for(var r in Object(u))U0.call(u,r)&&r!="constructor"&&e.push(r);return e}var G0=j0,K0=Gu,H0=Ku;function W0(u){return u!=null&&H0(u.length)&&!K0(u)}var q0=W0,z0=S0,V0=G0,J0=q0;function Q0(u){return J0(u)?z0(u):V0(u)}var Hu=Q0,Y0=Bt,X0=Hu;function Z0(u,e){return u&&Y0(u,e,X0)}var ua=Z0;function ea(){this.__data__=[],this.size=0}var ra=ea;function ta(u,e){return u===e||u!==u&&e!==e}var Le=ta,aa=Le;function na(u,e){for(var r=u.length;r--;)if(aa(u[r][0],e))return r;return-1}var mu=na,ia=mu,sa=Array.prototype,Da=sa.splice;function Aa(u){var e=this.__data__,r=ia(e,u);if(r<0)return!1;var t=e.length-1;return r==t?e.pop():Da.call(e,r,1),--this.size,!0}var oa=Aa,Fa=mu;function Ca(u){var e=this.__data__,r=Fa(e,u);return r<0?void 0:e[r][1]}var la=Ca,ca=mu;function Ea(u){return ca(this.__data__,u)>-1}var fa=Ea,pa=mu;function Ba(u,e){var r=this.__data__,t=pa(r,u);return t<0?(++this.size,r.push([u,e])):r[t][1]=e,this}var ha=Ba,da=ra,va=oa,ya=la,ga=fa,ma=ha;function uu(u){var e=-1,r=u==null?0:u.length;for(this.clear();++eC))return!1;var f=i.get(u),T=i.get(e);if(f&&T)return f==e&&T==u;var x=-1,F=!0,m=r&Fi?new si:void 0;for(i.set(u,e),i.set(e,u);++x=48&&p<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function f(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&r.indexOf(p)>=0}function T(p){return p===10||p===13||p===8232||p===8233}function x(p){if(p<=65535)return String.fromCharCode(p);var I=String.fromCharCode(Math.floor((p-65536)/1024)+55296),L=String.fromCharCode((p-65536)%1024+56320);return I+L}for(t=new Array(128),i=0;i<128;++i)t[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function F(p){return p<128?t[p]:e.NonAsciiIdentifierStart.test(x(p))}function m(p){return p<128?a[p]:e.NonAsciiIdentifierPart.test(x(p))}function v(p){return p<128?t[p]:u.NonAsciiIdentifierStart.test(x(p))}function c(p){return p<128?a[p]:u.NonAsciiIdentifierPart.test(x(p))}Ye.exports={isDecimalDigit:n,isHexDigit:C,isOctalDigit:E,isWhiteSpace:f,isLineTerminator:T,isIdentifierStartES5:F,isIdentifierPartES5:m,isIdentifierStartES6:v,isIdentifierPartES6:c}})();var Xe=Ye.exports,Ze={exports:{}};(function(){var u=Xe;function e(F){switch(F){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(F,m){return!m&&F==="yield"?!1:t(F,m)}function t(F,m){if(m&&e(F))return!0;switch(F.length){case 2:return F==="if"||F==="in"||F==="do";case 3:return F==="var"||F==="for"||F==="new"||F==="try";case 4:return F==="this"||F==="else"||F==="case"||F==="void"||F==="with"||F==="enum";case 5:return F==="while"||F==="break"||F==="catch"||F==="throw"||F==="const"||F==="yield"||F==="class"||F==="super";case 6:return F==="return"||F==="typeof"||F==="delete"||F==="switch"||F==="export"||F==="import";case 7:return F==="default"||F==="finally"||F==="extends";case 8:return F==="function"||F==="continue"||F==="debugger";case 10:return F==="instanceof";default:return!1}}function a(F,m){return F==="null"||F==="true"||F==="false"||r(F,m)}function i(F,m){return F==="null"||F==="true"||F==="false"||t(F,m)}function n(F){return F==="eval"||F==="arguments"}function C(F){var m,v,c;if(F.length===0||(c=F.charCodeAt(0),!u.isIdentifierStartES5(c)))return!1;for(m=1,v=F.length;m=v||(p=F.charCodeAt(m),!(56320<=p&&p<=57343)))return!1;c=E(c,p)}if(!I(c))return!1;I=u.isIdentifierPartES6}return!0}function T(F,m){return C(F)&&!a(F,m)}function x(F,m){return f(F)&&!i(F,m)}Ze.exports={isKeywordES5:r,isKeywordES6:t,isReservedWordES5:a,isReservedWordES6:i,isRestrictedWord:n,isIdentifierNameES5:C,isIdentifierNameES6:f,isIdentifierES5:T,isIdentifierES6:x}})();var J1=Ze.exports;(function(){ou.ast=V1,ou.code=Xe,ou.keyword=J1})();var Du={},X={};const Q1="doctrine",Y1="JSDoc parser",X1="https://github.com/eslint/doctrine",Z1="lib/doctrine.js",uA="3.0.0",eA={node:">=6.0.0"},rA={lib:"./lib"},tA=["lib"],aA=[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],nA="eslint/doctrine",iA={coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},sA="Apache-2.0",DA={pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},AA={esutils:"^2.0.2"},oA={name:Q1,description:Y1,homepage:X1,main:Z1,version:uA,engines:eA,directories:rA,files:tA,maintainers:aA,repository:nA,devDependencies:iA,license:sA,scripts:DA,dependencies:AA};function FA(u,e){if(!u)throw new Error(e||"unknown assertion error")}var CA=FA;(function(){var u;u=oA.version,X.VERSION=u;function e(t){this.name="DoctrineError",this.message=t}e.prototype=function(){var t=function(){};return t.prototype=Error.prototype,new t}(),e.prototype.constructor=e,X.DoctrineError=e;function r(t){throw new e(t)}X.throwError=r,X.assert=CA})();(function(){var u,e,r,t,a,i,n,C,E,f,T,x;E=ou,f=X,u={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},e={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function F(s){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(s))===-1&&!E.code.isWhiteSpace(s)&&!E.code.isLineTerminator(s)}function m(s,D,d,o){this._previous=s,this._index=D,this._token=d,this._value=o}m.prototype.restore=function(){i=this._previous,a=this._index,n=this._token,C=this._value},m.save=function(){return new m(i,a,n,C)};function v(s,D){return x&&(s.range=[D[0]+T,D[1]+T]),s}function c(){var s=r.charAt(a);return a+=1,s}function p(s){var D,d,o,A=0;for(d=s==="u"?4:2,D=0;D=0&&a=t)return e.ILLEGAL;if(D=r.charCodeAt(a+1),D===60)break}C+=c()}return e.NAME}function M(){var s;for(i=a;a=t)return n=e.EOF,n;switch(s=r.charCodeAt(a),s){case 39:case 34:return n=I(),n;case 58:return c(),n=e.COLON,n;case 44:return c(),n=e.COMMA,n;case 40:return c(),n=e.LPAREN,n;case 41:return c(),n=e.RPAREN,n;case 91:return c(),n=e.LBRACK,n;case 93:return c(),n=e.RBRACK,n;case 123:return c(),n=e.LBRACE,n;case 125:return c(),n=e.RBRACE,n;case 46:if(a+1=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57}function f(l){return l==="param"||l==="argument"||l==="arg"}function T(l){return l==="return"||l==="returns"}function x(l){return l==="property"||l==="prop"}function F(l){return f(l)||x(l)||l==="alias"||l==="this"||l==="mixes"||l==="requires"}function m(l){return F(l)||l==="const"||l==="constant"}function v(l){return x(l)||f(l)}function c(l){return x(l)||f(l)}function p(l){return f(l)||T(l)||l==="define"||l==="enum"||l==="implements"||l==="this"||l==="type"||l==="typedef"||x(l)}function I(l){return p(l)||l==="throws"||l==="const"||l==="constant"||l==="namespace"||l==="member"||l==="var"||l==="module"||l==="constructor"||l==="class"||l==="extends"||l==="augments"||l==="public"||l==="private"||l==="protected"}var L="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",z="("+L+"*(?:\\*"+L+`?)?)(.+|[\r +\u2028\u2029])`;function M(l){return l.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(z,"g"),"$2").replace(/\s*$/,"")}function _(l,k){for(var B=l.replace(/^\/\*\*?/,""),j=0,G=new RegExp(z,"g"),g;g=G.exec(B);)if(j+=g[1].length,g.index+g[0].length>k+j)return k+j+l.length-B.length;return l.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(l){var k,B,j,G,g,nu,Eu,V,fu;function $(){var o=g.charCodeAt(B);return B+=1,a.code.isLineTerminator(o)&&!(o===13&&g.charCodeAt(B)===10)&&(j+=1),String.fromCharCode(o)}function $u(){var o="";for($();B=o)return null;if(g.charCodeAt(B)===91)if(A)N=!0,y=$();else return null;if(y+=K(o),h)for(g.charCodeAt(B)===58&&(y==="module"||y==="external"||y==="event")&&(y+=$(),y+=K(o)),g.charCodeAt(B)===91&&g.charCodeAt(B+1)===93&&(y+=$(),y+=$());g.charCodeAt(B)===46||g.charCodeAt(B)===47||g.charCodeAt(B)===35||g.charCodeAt(B)===45||g.charCodeAt(B)===126;)y+=$(),y+=K(o);if(N){if(J(o),g.charCodeAt(B)===61){y+=$(),J(o);for(var R,W=1;B=o||g.charCodeAt(B)!==93)return null;y+=$()}return y}function wu(){for(;B=G?!1:(r.assert(g.charCodeAt(B)===64),!0)}function w(o){return g===nu?o:_(nu,o)}function O(o,A){this._options=o,this._title=A.toLowerCase(),this._tag={title:A,description:null},this._options.lineNumbers&&(this._tag.lineNumber=j),this._first=B-A.length-1,this._last=0,this._extra={}}O.prototype.addError=function(A){var h=Array.prototype.slice.call(arguments,1),y=A.replace(/%(\d)/g,function(N,b){return r.assert(b1&&(this._tag.default=o.slice(1).join("=")),this._tag.name=o[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!F(this._title))return!0;if(f(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},O.prototype.parseDescription=function(){var A=n(g,B,this._last).trim();return A&&(/^-\s+/.test(A)&&(A=A.substring(2)),this._tag.description=A),!0},O.prototype.parseCaption=function(){var A=n(g,B,this._last).trim(),h="",y="",N=A.indexOf(h),b=A.indexOf(y);return N>=0&&b>=0?(this._tag.caption=A.substring(N+h.length,b).trim(),this._tag.description=A.substring(b+y.length).trim()):this._tag.description=A,!0},O.prototype.parseKind=function(){var A,h;return h={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},A=n(g,B,this._last).trim(),this._tag.kind=A,!(!i(h,A)&&!this.addError("Invalid kind name '%0'",A))},O.prototype.parseAccess=function(){var A;return A=n(g,B,this._last).trim(),this._tag.access=A,!(A!=="private"&&A!=="protected"&&A!=="public"&&!this.addError("Invalid access name '%0'",A))},O.prototype.parseThis=function(){var A=n(g,B,this._last).trim();if(A&&A.charAt(0)==="{"){var h=this.parseType();return h&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},O.prototype.parseVariation=function(){var A,h;return h=n(g,B,this._last).trim(),A=parseFloat(h,10),this._tag.variation=A,!(isNaN(A)&&!this.addError("Invalid variation '%0'",h))},O.prototype.ensureEnd=function(){var o=n(g,B,this._last).trim();return!(o&&!this.addError("Unknown content '%0'",o))},O.prototype.epilogue=function(){var A;return A=this._tag.description,!(c(this._title)&&!this._tag.type&&A&&A.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!V&&!this.addError("Missing or invalid tag name")))},k={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},O.prototype.parse=function(){var A,h,y,N;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=iu(this._title),this._options.range&&(this._tag.range=[this._first,g.slice(0,this._last).replace(/\s*$/,"").length].map(w)),i(k,this._title)?y=k[this._title]:y=["parseType","parseName","parseDescription","epilogue"],A=0,h=y.length;Au.replace(er,""),fA=u=>er.test(u),rr=u=>{let e=EA(u);return fA(u)||Number.isNaN(Number(e))?e:Number(e)},pA=u=>{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=Fu(r.value)}),{name:"object",value:e};default:throw new ur({type:u,language:"Typescript"})}},Fu=u=>{var a,i,n,C;let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(Fu)};case"signature":return{...t,...pA(u)};case"union":let E;return(a=u.elements)!=null&&a.every(f=>f.name==="literal")?E={...t,name:"enum",value:(i=u.elements)==null?void 0:i.map(f=>rr(f.value))}:E={...t,name:e,value:(n=u.elements)==null?void 0:n.map(Fu)},E;case"intersection":return{...t,name:e,value:(C=u.elements)==null?void 0:C.map(Fu)};default:return{...t,name:"other",value:e}}},BA=u=>u.name==="literal",hA=u=>u.value.replace(/['|"]/g,""),dA=u=>{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=Cu(r.value)}),{name:"object",value:e};default:throw new ur({type:u,language:"Flow"})}},Cu=u=>{var a,i,n,C;let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"literal":return{...t,name:"other",value:u.value};case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(Cu)};case"signature":return{...t,...dA(u)};case"union":return(a=u.elements)!=null&&a.every(BA)?{...t,name:"enum",value:(i=u.elements)==null?void 0:i.map(hA)}:{...t,name:e,value:(n=u.elements)==null?void 0:n.map(Cu)};case"intersection":return{...t,name:e,value:(C=u.elements)==null?void 0:C.map(Cu)};default:return{...t,name:"other",value:e}}},vA=/^\(.*\) => /,Au=u=>{let{name:e,raw:r,computed:t,value:a}=u,i={};switch(typeof r<"u"&&(i.raw=r),e){case"enum":{let C=t?a:a.map(E=>rr(E.value));return{...i,name:e,value:C}}case"string":case"number":case"symbol":return{...i,name:e};case"func":return{...i,name:"function"};case"bool":case"boolean":return{...i,name:"boolean"};case"arrayOf":case"array":return{...i,name:"array",value:a&&Au(a)};case"object":return{...i,name:e};case"objectOf":return{...i,name:e,value:Au(a)};case"shape":case"exact":let n=z1(a,C=>Au(C));return{...i,name:"object",value:n};case"union":return{...i,name:"union",value:a.map(C=>Au(C))};case"instanceOf":case"element":case"elementType":default:{if((e==null?void 0:e.indexOf("|"))>0)try{let f=e.split("|").map(T=>JSON.parse(T));return{...i,name:"enum",value:f}}catch{}let C=a?`${e}(${a})`:e,E=vA.test(e)?"function":"other";return{...i,name:E,value:C}}}},Qu=u=>{let{type:e,tsType:r,flowType:t}=u;try{if(e!=null)return Au(e);if(r!=null)return Fu(r);if(t!=null)return Cu(t)}catch(a){console.error(a)}return null},yA=(u=>(u.JAVASCRIPT="JavaScript",u.FLOW="Flow",u.TYPESCRIPT="TypeScript",u.UNKNOWN="Unknown",u))(yA||{}),gA=["null","undefined"];function Yu(u){return gA.some(e=>e===u)}var mA=u=>{if(!u)return"";if(typeof u=="string")return u;throw new Error(`Description: expected string, got: ${JSON.stringify(u)}`)};function tr(u){return!!u.__docgenInfo}function _A(u){return u!=null&&Object.keys(u).length>0}function xA(u,e){return tr(u)?u.__docgenInfo[e]:null}function TA(u){return tr(u)?mA(u.__docgenInfo.description):""}function bA(u){return u!=null&&u.includes("@")}function SA(u,e){let r;try{r=lA.parse(u??"",{tags:e,sloppy:!0})}catch(t){throw console.error(t),new Error("Cannot parse JSDoc tags.")}return r}var $A={tags:["param","arg","argument","returns","ignore","deprecated"]},wA=(u,e=$A)=>{if(!bA(u))return{includesJsDoc:!1,ignore:!1};let r=SA(u,e.tags),t=OA(r);return t.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description,extractedTags:t}};function OA(u){let e={params:null,deprecated:null,returns:null,ignore:!1};for(let r=0;re.includes("null")?e.replace("-null","").replace(".null",""):u.name,getTypeName:()=>u.type!=null?Z(u.type):null}:null}function PA(u){return u.title!=null?u.description:null}function IA(u){return u.type!=null?{type:u.type,description:u.description,getTypeName:()=>Z(u.type)}:null}function Z(u){return(u==null?void 0:u.type)==="NameExpression"?u.name:(u==null?void 0:u.type)==="RecordType"?`({${u.fields.map(e=>{if(e.type==="FieldType"&&e.value!=null){let r=Z(e.value);return`${e.key}: ${r}`}return e.key}).join(", ")}})`:(u==null?void 0:u.type)==="UnionType"?`(${u.elements.map(Z).join("|")})`:(u==null?void 0:u.type)==="ArrayType"?"[]":(u==null?void 0:u.type)==="TypeApplication"&&u.expression!=null&&u.expression.name==="Array"?`${Z(u.applications[0])}[]`:(u==null?void 0:u.type)==="NullableType"||(u==null?void 0:u.type)==="NonNullableType"||(u==null?void 0:u.type)==="OptionalType"?Z(u.expression):(u==null?void 0:u.type)==="AllLiteral"?"any":null}function ar(u){return u.length>90}function RA(u){return u.length>50}function P(u,e){return u===e?{summary:u}:{summary:u,detail:e}}function nr({name:u,value:e,elements:r,raw:t}){return e??(r!=null?r.map(nr).join(" | "):t??u)}function LA({name:u,raw:e,elements:r}){return r!=null?P(r.map(nr).join(" | ")):e!=null?P(e.replace(/^\|\s*/,"")):P(u)}function MA({type:u,raw:e}){return e!=null?P(e):P(u)}function kA({type:u,raw:e}){return e!=null?ar(e)?P(u,e):P(e):P(u)}function UA(u){let{type:e}=u;return e==="object"?kA(u):MA(u)}function jA({name:u,raw:e}){return e!=null?ar(e)?P(u,e):P(e):P(u)}function GA(u){if(u==null)return null;switch(u.name){case"union":return LA(u);case"signature":return UA(u);default:return jA(u)}}function KA(u,e){if(u!=null){let{value:r}=u;if(!Yu(r))return RA(r)?P(e==null?void 0:e.name,r):P(r)}return null}var HA=(u,e)=>{let{flowType:r,description:t,required:a,defaultValue:i}=e;return{name:u,type:GA(r),required:a,description:t,defaultValue:KA(i??null,r??null)}};function WA({tsType:u,required:e}){if(u==null)return null;let r=u.name;return e||(r=r.replace(" | undefined","")),P(["Array","Record","signature"].includes(u.name)?u.raw:r)}function qA({defaultValue:u}){if(u!=null){let{value:e}=u;if(!Yu(e))return P(e)}return null}var zA=(u,e)=>{let{description:r,required:t}=e;return{name:u,type:WA(e),required:t,description:r,defaultValue:qA(e)}};function VA(u){return u!=null?P(u.name):null}function JA(u){let{computed:e,func:r}=u;return typeof e>"u"&&typeof r>"u"}function QA(u){return u?u.name==="string"?!0:u.name==="enum"?Array.isArray(u.value)&&u.value.every(({value:e})=>typeof e=="string"&&e[0]==='"'&&e[e.length-1]==='"'):!1:!1}function YA(u,e){if(u!=null){let{value:r}=u;if(!Yu(r))return JA(u)&&QA(e)?P(JSON.stringify(r)):P(r)}return null}function ir(u,e,r){let{description:t,required:a,defaultValue:i}=r;return{name:u,type:VA(e),required:a,description:t,defaultValue:YA(i,e)}}function Su(u,e){var r;if(e!=null&&e.includesJsDoc){let{description:t,extractedTags:a}=e;t!=null&&(u.description=e.description);let i={...a,params:(r=a==null?void 0:a.params)==null?void 0:r.map(n=>({name:n.getPrettyName(),description:n.description}))};Object.values(i).filter(Boolean).length>0&&(u.jsDocTags=i)}return u}var XA=(u,e,r)=>{let t=ir(u,e.type,e);return t.sbType=Qu(e),Su(t,r)},ZA=(u,e,r)=>{let t=zA(u,e);return t.sbType=Qu(e),Su(t,r)},uo=(u,e,r)=>{let t=HA(u,e);return t.sbType=Qu(e),Su(t,r)},eo=(u,e,r)=>{let t=ir(u,{name:"unknown"},e);return Su(t,r)},sr=u=>{switch(u){case"JavaScript":return XA;case"TypeScript":return ZA;case"Flow":return uo;default:return eo}},Dr=u=>u.type!=null?"JavaScript":u.flowType!=null?"Flow":u.tsType!=null?"TypeScript":"Unknown",ro=u=>{let e=Dr(u[0]),r=sr(e);return u.map(t=>{var i;let a=t;return(i=t.type)!=null&&i.elements&&(a={...t,type:{...t.type,value:t.type.elements}}),Ar(a.name,a,e,r)})},to=u=>{let e=Object.keys(u),r=Dr(u[e[0]]),t=sr(r);return e.map(a=>{let i=u[a];return i!=null?Ar(a,i,r,t):null}).filter(Boolean)},oo=(u,e)=>{let r=xA(u,e);return _A(r)?Array.isArray(r)?ro(r):to(r):[]};function Ar(u,e,r,t){let a=wA(e.description);return a.includesJsDoc&&a.ignore?null:{propDef:t(u,e,a),jsDocTags:a.extractedTags,docgenInfo:e,typeSystem:r}}function Fo(u){return u!=null?TA(u):""}var Co=u=>{let{component:e,argTypes:r,parameters:{docs:t={}}}=u,{extractArgTypes:a}=t,i=a&&e?a(e):{};return i?cA(i,r):r},ao="storybook/docs",lo=`${ao}/snippet-rendered`,no=(u=>(u.AUTO="auto",u.CODE="code",u.DYNAMIC="dynamic",u))(no||{}),io=Re,so=io(Object.getPrototypeOf,Object),co=so;export{O0 as A,S0 as B,q0 as C,Hi as D,bD as E,j1 as F,ys as G,hi as H,ri as I,ii as J,Hu as K,Ei as L,gu as M,Ns as N,f0 as O,E0 as P,Me as Q,Ne as R,lo as S,yA as T,ns as U,H as _,zu as a,lu as b,co as c,cu as d,q as e,Fo as f,Co as g,P as h,ju as i,no as j,Ao as k,tr as l,oo as m,xA as n,RA as o,ar as p,lt as q,Le as r,ze as s,Pe as t,ou as u,bu as v,Ve as w,Ui as x,us as y,Vi as z}; diff --git a/storybook/assets/entry-preview-DRtwuanT.js b/storybook/assets/entry-preview-DRtwuanT.js new file mode 100644 index 0000000..0966313 --- /dev/null +++ b/storybook/assets/entry-preview-DRtwuanT.js @@ -0,0 +1 @@ +import{R as o,r as p}from"./index-CDs2tPxN.js";import{u as d,r as E}from"./react-18-CqnZ7Kye.js";var _=Object.defineProperty,f=(r,e)=>{for(var t in e)_(r,t,{get:e[t],enumerable:!0})};const{global:v}=__STORYBOOK_MODULE_GLOBAL__;var g={};f(g,{parameters:()=>M,render:()=>w,renderToCanvas:()=>D});var w=(r,e)=>{let{id:t,component:n}=e;if(!n)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return o.createElement(n,{...r})},{FRAMEWORK_OPTIONS:s}=v,b=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:r}=this.state,{showMain:e}=this.props;r||e()}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:e}},l=s!=null&&s.strictMode?p.StrictMode:p.Fragment;async function D({storyContext:r,unboundStoryFn:e,showMain:t,showException:n,forceRemount:h},a){var c,m;let i=o.createElement(b,{showMain:t,showException:n},o.createElement(e,{...r})),u=l?o.createElement(l,null,i):i;return h&&d(a),await E(u,a,(m=(c=r==null?void 0:r.parameters)==null?void 0:c.react)==null?void 0:m.rootOptions),()=>d(a)}var M={renderer:"react"};export{M as parameters,w as render,D as renderToCanvas}; diff --git a/storybook/assets/entry-preview-docs-eVh9VKdd.js b/storybook/assets/entry-preview-docs-eVh9VKdd.js new file mode 100644 index 0000000..d2dca30 --- /dev/null +++ b/storybook/assets/entry-preview-docs-eVh9VKdd.js @@ -0,0 +1,54 @@ +import{u as $n,b as Si,c as Jn,d as _i,e as Xn,f as Hn,g as Qn,S as Yn,h as te,j as Ur,k as Gr,l as Kn,m as Zn,T as Wr,n as zr,o as ft,p as es}from"./_getPrototype-DtJm8IA_.js";import{g as pt,c as lt,a as ts,R as at,r as We}from"./index-CDs2tPxN.js";import{d as rs}from"./index-DrFu-skq.js";var Ei={exports:{}},is="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ns=is,ss=ns;function Ci(){}function Ai(){}Ai.resetWarningCache=Ci;var as=function(){function e(i,s,a,u,f,p){if(p!==ss){var y=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 y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ai,resetWarningCache:Ci};return r.PropTypes=r,r};Ei.exports=as();var os=Ei.exports;const $r=pt(os),us=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var ls=us;const cs=pt(ls);var wi={},ki={};(function(e){(function t(r){var i,s,a,u,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,B,R;for(k=m.length,B=0;k;)_=k>>>1,R=B+_,x(m[R])?k=_:(B=R+1,k-=_+1);return B}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={},f={},p={},s={Break:u,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,B,R,G;function q(D,H){if(Array.isArray(H))for(k=0,B=H.length;k=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,B=this.__leavelist,k.push(new E(x,null,null,null)),B.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=B.pop(),D=this.__execute(_.leave,R),this.__state===u||D===u)return;continue}if(R.node){if(D=this.__execute(_.enter,R),this.__state===u||D===u)return;if(k.push(xe),B.push(R),this.__state===f||D===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!P(B,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(P(B,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe,Te;function Je(M){var Ve,xt,Fe,ee;if(M.ref.remove()){for(xt=M.ref.key,ee=M.ref.parent,Ve=k.length;Ve--;)if(Fe=k[Ve],Fe.ref&&Fe.ref.parent===ee){if(Fe.ref.key=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))D=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))D=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(D)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function V(m,x){var _;return _=g(x,function(B){return B.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function A(m,x,_){var k=[],B,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;GD.range[0]));)H.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.range[1])return s.Skip}}),q=0,O(m,{leave:function(D){for(var H;qD.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=A,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(ki);var it={},Kt={},Et={},Ct={},Jr;function hs(){if(Jr)return Ct;Jr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ct.encode=function(t){if(0<=t&&t>1;return p?-y:y}return Et.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},Et.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<=0;G--)B=k[G],B==="."?k.splice(G,1):B===".."?R++:R>0&&(B===""?(k.splice(G+1,R),R=0):(k.splice(G,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=u;function f(A,m){A===""&&(A="."),m===""&&(m=".");var x=s(m),_=s(A);if(_&&(A=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:u(A.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(A){return A.charAt(0)==="/"||r.test(A)};function p(A,m){A===""&&(A="."),A=A.replace(/\/$/,"");for(var x=0;m.indexOf(A+"/")!==0;){var _=A.lastIndexOf("/");if(_<0||(A=A.slice(0,_),A.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(A.length+1)}e.relative=p;var y=function(){var A=Object.create(null);return!("__proto__"in A)}();function g(A){return A}function b(A){return S(A)?"$"+A:A}e.toSetString=y?g:b;function E(A){return S(A)?A.slice(1):A}e.fromSetString=y?g:E;function S(A){if(!A)return!1;var m=A.length;if(m<9||A.charCodeAt(m-1)!==95||A.charCodeAt(m-2)!==95||A.charCodeAt(m-3)!==111||A.charCodeAt(m-4)!==116||A.charCodeAt(m-5)!==111||A.charCodeAt(m-6)!==114||A.charCodeAt(m-7)!==112||A.charCodeAt(m-8)!==95||A.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(A.charCodeAt(x)!==36)return!1;return!0}function C(A,m,x){var _=P(A.source,m.source);return _!==0||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0||x)||(_=A.generatedColumn-m.generatedColumn,_!==0)||(_=A.generatedLine-m.generatedLine,_!==0)?_:P(A.name,m.name)}e.compareByOriginalPositions=C;function v(A,m,x){var _=A.generatedLine-m.generatedLine;return _!==0||(_=A.generatedColumn-m.generatedColumn,_!==0||x)||(_=P(A.source,m.source),_!==0)||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0)?_:P(A.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function P(A,m){return A===m?0:A===null?1:m===null?-1:A>m?1:-1}function O(A,m){var x=A.generatedLine-m.generatedLine;return x!==0||(x=A.generatedColumn-m.generatedColumn,x!==0)||(x=P(A.source,m.source),x!==0)||(x=A.originalLine-m.originalLine,x!==0)||(x=A.originalColumn-m.originalColumn,x!==0)?x:P(A.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(A){return JSON.parse(A.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function V(A,m,x){if(m=m||"",A&&(A[A.length-1]!=="/"&&m[0]!=="/"&&(A+="/"),m=A+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return u(m)}e.computeSourceURL=V}(Zt)),Zt}var er={},Qr;function Pi(){if(Qr)return er;Qr=1;var e=dt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,u){for(var f=new i,p=0,y=a.length;p=0)return u}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&aa||u==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},tr.MappingList=r,tr}var Kr;function Ii(){if(Kr)return Kt;Kr=1;var e=Ti(),t=dt(),r=Pi().ArraySet,i=fs().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(u){var f=u.sourceRoot,p=new s({file:u.file,sourceRoot:f});return u.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),u.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=u.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(u){var f=t.getArg(u,"generated"),p=t.getArg(u,"original",null),y=t.getArg(u,"source",null),g=t.getArg(u,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(u,f){var p=u;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(u,f,p){var y=f;if(f==null){if(u.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=u.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=u.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var P=S.name;P!=null&&!E.has(P)&&E.add(P)},this),this._sources=b,this._names=E,u.sources.forEach(function(S){var C=u.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(u,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(u&&"line"in u&&"column"in u&&u.line>0&&u.column>=0&&!f&&!p&&!y)){if(u&&"line"in u&&"column"in u&&f&&"line"in f&&"column"in f&&u.line>0&&u.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:u,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var u=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,P,O=this._mappings.toArray(),L=0,V=O.length;L0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-u),u=C.generatedColumn,C.source!=null&&(P=this._sources.indexOf(C.source),S+=e.encode(P-b),b=P,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(u,f){return u.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(u.file=this._file),this._sourceRoot!=null&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},Kt.SourceMapGenerator=s,Kt}var nt={},rr={},Zr;function ps(){return Zr||(Zr=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,u,f){var p=Math.floor((i-r)/2)+r,y=u(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,u,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,s,a,u,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,u){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,u||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(rr)),rr}var ir={},ei;function ds(){if(ei)return ir;ei=1;function e(i,s,a){var u=i[s];i[s]=i[a],i[a]=u}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,u){if(a=0){var v=this._originalMappings[C];if(g.column===void 0)for(var P=v.originalLine;v&&v.originalLine===P;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},nt.SourceMapConsumer=a;function u(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),P=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(V){return v&&e.isAbsolute(v)&&e.isAbsolute(V)?e.relative(v,V):V}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(v,V,g)}),this.sourceRoot=v,this.sourcesContent=P,this._mappings=O,this._sourceMapURL=g,this.file=L}u.prototype=Object.create(a.prototype),u.prototype.consumer=a,u.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b1&&(k.source=P+R[1],P+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},u.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},u.prototype.computeColumnSpans=function(){for(var g=0;g=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},u.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=u;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var P=e.getArg(v,"offset"),O=e.getArg(P,"line"),L=e.getArg(P,"column");if(O=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y0){for(p=[],y=0;y=6.0"},ws=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],ks={type:"git",url:"http://github.com/estools/escodegen.git"},Ts={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},Ps={"source-map":"~0.6.1"},Is={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ns="BSD-2-Clause",Ls={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Os={name:vs,description:xs,homepage:bs,main:Ss,bin:_s,files:Es,version:Cs,engines:As,maintainers:ws,repository:ks,dependencies:Ts,optionalDependencies:Ps,devDependencies:Is,license:Ns,scripts:Ls};(function(e){(function(){var t,r,i,s,a,u,f,p,y,g,b,E,S,C,v,P,O,L,V,A,m,x,_,k,B,R;a=ki,u=$n,t=a.Syntax;function G(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var D=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=D|H,M=D|H|ne,Ve=D,xt=ne,Fe=D|ne,ee=D,Ae=D|Q,bt=0,Ln=D|ie,On=D|ue;function Or(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function je(n,l){var o="";for(l|=0;l>0;l>>>=1,n+=n)l&1&&(o+=n);return o}function Rn(n){return/[\r\n]/g.test(n)}function he(n){var l=n.length;return l&&u.code.isLineTerminator(n.charCodeAt(l-1))}function Rr(n,l){var o;for(o in l)l.hasOwnProperty(o)&&(n[o]=l[o]);return n}function St(n,l){var o,c;function d(w){return typeof w=="object"&&w instanceof Object&&!(w instanceof RegExp)}for(o in l)l.hasOwnProperty(o)&&(c=l[o],d(c)?d(n[o])?St(n[o],c):n[o]=St({},c):n[o]=c);return n}function Fn(n){var l,o,c,d,w;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return y?"null":g?"1e400":"1e+400";if(l=""+n,!g||l.length<3)return l;for(o=l.indexOf("."),!y&&l.charCodeAt(0)===48&&o===1&&(o=0,l=l.slice(1)),c=l,l=l.replace("e+","e"),d=0,(w=c.indexOf("e"))>0&&(d=+c.slice(w+1),c=c.slice(0,w)),o>=0&&(d-=c.length-o-1,c=+(c.slice(0,o)+c.slice(o+1))+""),w=0;c.charCodeAt(c.length+w-1)===48;)--w;return w!==0&&(d-=w,c=c.slice(0,w)),d!==0&&(c+="e"+d),(c.length1e12&&Math.floor(n)===n&&(c="0x"+n.toString(16)).length255?"\\u"+"0000".slice(o.length)+o:n===0&&!u.code.isDecimalDigit(l)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Dn(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Vn(n){var l,o,c,d;for(d=E==="double"?'"':"'",l=0,o=n.length;l126))){l+=Bn(d,n.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(I=!(E==="double"||E==="auto"&&T=0&&!u.code.isLineTerminator(n.charCodeAt(l));--l);return n.length-1-l}function Un(n,l){var o,c,d,w,T,I,F,J;for(o=n.split(/\r\n|[\r\n]/),I=Number.MAX_VALUE,c=1,d=o.length;cT&&(I=T)}for(typeof l<"u"?(F=f,o[1][I]==="*"&&(l+=" "),f=l):(I&1&&--I,F=f),c=1,d=o.length;c0){if(w=l,k){for(d=n.leadingComments[0],l=[],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(l.push(je(` +`,we)),l.push(pe(Pe(d)))):(l.push(He),l.push(Pe(d))),qe=ce,o=1,c=n.leadingComments.length;o0?(l.push(je(` +`,we)),l.push(pe(Pe(d)))):(l.push(He),l.push(Pe(d)));else for(T=!he(K(l).toString()),I=je(" ",qn(K([f,l,p]).toString())),o=0,c=n.trailingComments.length;o")),n.expression?(l.push(v),o=this.generateExpression(n.body,r.Assignment,M),o.toString().charAt(0)==="{"&&(o=["(",o,")"]),l.push(o)):l.push(this.maybeBlock(n.body,On)),l},oe.prototype.generateIterationForStatement=function(n,l,o){var c=["for"+(l.await?fe()+"await":"")+v+"("],d=this;return ae(function(){l.left.type===t.VariableDeclaration?ae(function(){c.push(l.left.kind+fe()),c.push(d.generateStatement(l.left.declarations[0],bt))}):c.push(d.generateExpression(l.left,r.Call,M)),c=U(c,n),c=[U(c,d.generateExpression(l.right,r.Assignment,M)),")"]}),c.push(this.maybeBlock(l.body,o)),c},oe.prototype.generatePropertyKey=function(n,l){var o=[];return l&&o.push("["),o.push(this.generateExpression(n,r.Assignment,M)),l&&o.push("]"),o},oe.prototype.generateAssignment=function(n,l,o,c,d){return r.Assignment2&&(c=_.substring(o[0]+1,o[1]-1),c[0]===` +`&&(d=["{"]),d.push(c)));var T,I,F,J;for(J=ee,l&ue&&(J|=ie),T=0,I=n.body.length;T0&&!n.body[T-1].trailingComments&&!n.body[T].leadingComments&&Xe(n.body[T-1].range[1],n.body[T].range[0],d)),T===I-1&&(J|=Q),n.body[T].leadingComments&&k?F=w.generateStatement(n.body[T],J):F=pe(w.generateStatement(n.body[T],J)),d.push(F),he(K(F).toString())||k&&T1?ae(F):F(),o.push(this.semicolon(l)),o},ThrowStatement:function(n,l){return[U("throw",this.generateExpression(n.argument,r.Sequence,M)),this.semicolon(l)]},TryStatement:function(n,l){var o,c,d,w;if(o=["try",this.maybeBlock(n.block,ee)],o=this.maybeBlockSuffix(n.block,o),n.handlers)for(c=0,d=n.handlers.length;c0?` +`:""],T=Ln,d=0;d0&&!n.body[d-1].trailingComments&&!n.body[d].leadingComments&&Xe(n.body[d-1].range[1],n.body[d].range[0],o)),c=pe(this.generateStatement(n.body[d],T)),o.push(c),d+10){for(c.push("("),w=0,T=d;w=2&&d.charCodeAt(0)===48)&&c.push(" ")),c.push(n.optional?"?.":"."),c.push(ge(n.property))),le(c,r.Member,l)},MetaProperty:function(n,l,o){var c;return c=[],c.push(typeof n.meta=="string"?n.meta:ge(n.meta)),c.push("."),c.push(typeof n.property=="string"?n.property:ge(n.property)),le(c,r.Member,l)},UnaryExpression:function(n,l,o){var c,d,w,T,I;return d=this.generateExpression(n.argument,r.Unary,M),v===""?c=U(n.operator,d):(c=[n.operator],n.operator.length>2?c=U(c,d):(T=K(c).toString(),I=T.charCodeAt(T.length-1),w=d.toString().charCodeAt(0),((I===43||I===45)&&I===w||u.code.isIdentifierPartES5(I)&&u.code.isIdentifierPartES5(w))&&c.push(fe()),c.push(d))),le(c,r.Unary,l)},YieldExpression:function(n,l,o){var c;return n.delegate?c="yield*":c="yield",n.argument&&(c=U(c,this.generateExpression(n.argument,r.Yield,M))),le(c,r.Yield,l)},AwaitExpression:function(n,l,o){var c=U(n.all?"await*":"await",this.generateExpression(n.argument,r.Await,M));return le(c,r.Await,l)},UpdateExpression:function(n,l,o){return n.prefix?le([n.operator,this.generateExpression(n.argument,r.Unary,M)],r.Unary,l):le([this.generateExpression(n.argument,r.Postfix,M),n.operator],r.Postfix,l)},FunctionExpression:function(n,l,o){var c=[rt(n,!0),"function"];return n.id?(c.push(_t(n)||fe()),c.push(ge(n.id))):c.push(_t(n)||v),c.push(this.generateFunctionBody(n)),c},ArrayPattern:function(n,l,o){return this.ArrayExpression(n,l,o,!0)},ArrayExpression:function(n,l,o,c){var d,w,T=this;return n.elements.length?(w=c?!1:n.elements.length>1,d=["[",w?C:""],ae(function(I){var F,J;for(F=0,J=n.elements.length;F1,ae(function(){w=T.generateExpression(n.properties[0],r.Sequence,M)}),!c&&!Rn(K(w).toString())?["{",v,w,v,"}"]:(ae(function(I){var F,J;if(d=["{",C,I,w],c)for(d.push(","+C),F=1,J=n.properties.length;F0||A.moz.comprehensionExpressionStartsWithAssignment?c=U(c,T):c.push(T)}),n.filter&&(c=U(c,"if"+v),T=this.generateExpression(n.filter,r.Sequence,M),c=U(c,["(",T,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(T=this.generateExpression(n.body,r.Assignment,M),c=U(c,T)),c.push(n.type===t.GeneratorExpression?")":"]"),c},ComprehensionBlock:function(n,l,o){var c;return n.left.type===t.VariableDeclaration?c=[n.left.kind,fe(),this.generateStatement(n.left.declarations[0],bt)]:c=this.generateExpression(n.left,r.Call,M),c=U(c,n.of?"of":"in"),c=U(c,this.generateExpression(n.right,r.Sequence,M)),["for"+v+"(",c,")"]},SpreadElement:function(n,l,o){return["...",this.generateExpression(n.argument,r.Assignment,M)]},TaggedTemplateExpression:function(n,l,o){var c=Je;o&H||(c=Ve);var d=[this.generateExpression(n.tag,r.Call,c),this.generateExpression(n.quasi,r.Primary,xt)];return le(d,r.TaggedTemplate,l)},TemplateElement:function(n,l,o){return n.value.raw},TemplateLiteral:function(n,l,o){var c,d,w;for(c=["`"],d=0,w=n.quasis.length;de)return!1;if(r+=t[i+1],r>=e)return!0}}function Le(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ms.test(String.fromCharCode(e)):t===!1?!1:ur(e,Li)}function Ge(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Bs.test(String.fromCharCode(e)):t===!1?!1:ur(e,Li)||ur(e,Ds)}var Y=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function be(e,t){return new Y(e,{beforeExpr:!0,binop:t})}var Se={beforeExpr:!0},ye={startsExpr:!0},Lt={};function X(e,t){return t===void 0&&(t={}),t.keyword=e,Lt[e]=new Y(e,t)}var h={num:new Y("num",ye),regexp:new Y("regexp",ye),string:new Y("string",ye),name:new Y("name",ye),eof:new Y("eof"),bracketL:new Y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Y("]"),braceL:new Y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Y("}"),parenL:new Y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Y(")"),comma:new Y(",",Se),semi:new Y(";",Se),colon:new Y(":",Se),dot:new Y("."),question:new Y("?",Se),questionDot:new Y("?."),arrow:new Y("=>",Se),template:new Y("template"),invalidTemplate:new Y("invalidTemplate"),ellipsis:new Y("...",Se),backQuote:new Y("`",ye),dollarBraceL:new Y("${",{beforeExpr:!0,startsExpr:!0}),eq:new Y("=",{beforeExpr:!0,isAssign:!0}),assign:new Y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:be("||",1),logicalAND:be("&&",2),bitwiseOR:be("|",3),bitwiseXOR:be("^",4),bitwiseAND:be("&",5),equality:be("==/!=/===/!==",6),relational:be("/<=/>=",7),bitShift:be("<>/>>>",8),plusMin:new Y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:be("%",10),star:be("*",10),slash:be("/",10),starstar:new Y("**",{beforeExpr:!0}),coalesce:be("??",1),_break:X("break"),_case:X("case",Se),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",Se),_do:X("do",{isLoop:!0,beforeExpr:!0}),_else:X("else",Se),_finally:X("finally"),_for:X("for",{isLoop:!0}),_function:X("function",ye),_if:X("if"),_return:X("return",Se),_switch:X("switch"),_throw:X("throw",Se),_try:X("try"),_var:X("var"),_const:X("const"),_while:X("while",{isLoop:!0}),_with:X("with"),_new:X("new",{beforeExpr:!0,startsExpr:!0}),_this:X("this",ye),_super:X("super",ye),_class:X("class",ye),_extends:X("extends",Se),_export:X("export"),_import:X("import",ye),_null:X("null",ye),_true:X("true",ye),_false:X("false",ye),_in:X("in",{beforeExpr:!0,binop:7}),_instanceof:X("instanceof",{beforeExpr:!0,binop:7}),_typeof:X("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:X("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:X("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ve=/\r\n?|\n|\u2028|\u2029/,Qe=new RegExp(ve.source,"g");function et(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var yr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oi=Object.prototype,Vs=Oi.hasOwnProperty,js=Oi.toString;function Ot(e,t){return Vs.call(e,t)}var ni=Array.isArray||function(e){return js.call(e)==="[object Array]"};function Ue(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var Ye=function(t,r){this.line=t,this.column=r};Ye.prototype.offset=function(t){return new Ye(this.line,this.column+t)};var mt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function vr(e,t){for(var r=1,i=0;;){Qe.lastIndex=i;var s=Qe.exec(e);if(s&&s.index=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),ni(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return ni(t.onComment)&&(t.onComment=Us(t,t.onComment)),t}function Us(e,t){return function(r,i,s,a,u,f){var p={type:r?"Block":"Line",value:i,start:s,end:a};e.locations&&(p.loc=new mt(this,u,f)),e.ranges&&(p.range=[s,a]),t.push(p)}}var ct=1,gt=2,xr=ct|gt,Ri=4,Fi=8,Mi=16,Bi=32,Di=64,Vi=128;function br(e,t){return gt|(e?Ri:0)|(t?Fi:0)}var si=0,Sr=1,Ne=2,ji=3,qi=4,Ui=5,re=function(t,r,i){this.options=t=qs(t),this.sourceFile=t.sourceFile,this.keywords=Ue(Rs[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";if(t.allowReserved!==!0){for(var a=t.ecmaVersion;!(s=sr[a]);a--);t.sourceType==="module"&&(s+=" await")}this.reservedWords=Ue(s);var u=(s?s+" ":"")+sr.strict;this.reservedWordsStrict=Ue(u),this.reservedWordsStrictBind=Ue(u+" "+sr.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(` +`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ve).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=h.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ct),this.regexpState=null},ze={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};re.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ze.inFunction.get=function(){return(this.currentVarScope().flags>)>0};ze.inGenerator.get=function(){return(this.currentVarScope().flags&Fi)>0};ze.inAsync.get=function(){return(this.currentVarScope().flags&Ri)>0};ze.allowSuper.get=function(){return(this.currentThisScope().flags&Di)>0};ze.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Vi)>0};ze.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};re.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags>)>0};re.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,s=0;s=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length,this.input[e]===";"&&e++}};me.eat=function(e){return this.type===e?(this.next(),!0):!1};me.isContextual=function(e){return this.type===h.name&&this.value===e&&!this.containsEsc};me.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};me.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};me.canInsertSemicolon=function(){return this.type===h.eof||this.type===h.braceR||ve.test(this.input.slice(this.lastTokEnd,this.start))};me.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};me.semicolon=function(){!this.eat(h.semi)&&!this.insertSemicolon()&&this.unexpected()};me.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};me.expect=function(e){this.eat(e)||this.unexpected()};me.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};function Rt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}me.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};me.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};me.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case h._class:return e&&this.unexpected(),this.parseClass(s,!0);case h._if:return this.parseIfStatement(s);case h._return:return this.parseReturnStatement(s);case h._switch:return this.parseSwitchStatement(s);case h._throw:return this.parseThrowStatement(s);case h._try:return this.parseTryStatement(s);case h._const:case h._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case h._while:return this.parseWhileStatement(s);case h._with:return this.parseWithStatement(s);case h.braceL:return this.parseBlock(!0,s);case h.semi:return this.parseEmptyStatement(s);case h._export:case h._import:if(this.options.ecmaVersion>10&&i===h._import){Ee.lastIndex=this.pos;var u=Ee.exec(this.input),f=this.pos+u[0].length,p=this.input.charCodeAt(f);if(p===40||p===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===h._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var y=this.value,g=this.parseExpression();return i===h.name&&g.type==="Identifier"&&this.eat(h.colon)?this.parseLabeledStatement(s,y,g,e):this.parseExpressionStatement(s,g)}};W.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(h.semi)||this.insertSemicolon()?e.label=null:this.type!==h.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(h.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};W.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(_r),this.enterScope(0),this.expect(h.parenL),this.type===h.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===h._var||this.type===h._const||r){var i=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var a=new Rt,u=this.parseExpression(!0,a);return this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(u,!1,a),this.checkLVal(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))};W.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ot|(r?0:lr),!1,t)};W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};W.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(h.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};W.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(h.braceL),this.labels.push(Ws),this.enterScope(0);for(var t,r=!1;this.type!==h.braceR;)if(this.type===h._case||this.type===h._default){var i=this.type===h._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(h.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};W.parseThrowStatement=function(e){return this.next(),ve.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var zs=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===h._catch){var t=this.startNode();if(this.next(),this.eat(h.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?Bi:0),this.checkLVal(t.param,r?qi:Ne),this.expect(h.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(h._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};W.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(_r),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};W.parseLabeledStatement=function(e,t,r,i){for(var s=0,a=this.labels;s=0;p--){var y=this.labels[p];if(y.statementStart===e.start)y.statementStart=this.start,y.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};W.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(h.braceL),e&&this.enterScope(0);this.type!==h.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};W.parseFor=function(e,t){return e.init=t,this.expect(h.semi),e.test=this.type===h.semi?null:this.parseExpression(),this.expect(h.semi),e.update=this.type===h.parenR?null:this.parseExpression(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};W.parseForIn=function(e,t){var r=this.type===h._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):t.type==="AssignmentPattern"&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};W.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(h.eq)?i.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():i.id.type!=="Identifier"&&!(t&&(this.type===h._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(h.comma))break}return e};W.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?Sr:Ne,!1)};var ot=1,lr=2,Gi=4;W.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===h.star&&t&lr&&this.unexpected(),e.generator=this.eat(h.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ot&&(e.id=t&Gi&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&lr)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Sr:Ne:ji));var s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(br(e.async,e.generator)),t&ot||(e.id=this.type===h.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(e,t&ot?"FunctionDeclaration":"FunctionExpression")};W.parseFunctionParams=function(e){this.expect(h.parenL),e.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};W.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),s=!1;for(i.body=[],this.expect(h.braceL);this.type!==h.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(i.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"&&(s&&this.raise(a.start,"Duplicate constructor in the same class"),s=!0))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};W.parseClassElement=function(e){var t=this;if(this.eat(h.semi))return null;var r=this.startNode(),i=function(p,y){y===void 0&&(y=!1);var g=t.start,b=t.startLoc;return t.eatContextual(p)?t.type!==h.parenL&&(!y||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(g,b),r.key.name=p,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=i("static");var s=this.eat(h.star),a=!1;s||(this.options.ecmaVersion>=8&&i("async",!0)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(h.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var u=r.key,f=!1;return!r.computed&&!r.static&&(u.type==="Identifier"&&u.name==="constructor"||u.type==="Literal"&&u.value==="constructor")?(r.kind!=="method"&&this.raise(u.start,"Constructor can't have get/set modifier"),s&&this.raise(u.start,"Constructor can't be a generator"),a&&this.raise(u.start,"Constructor can't be an async method"),r.kind="constructor",f=e):r.static&&u.type==="Identifier"&&u.name==="prototype"&&this.raise(u.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,s,a,f),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};W.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")};W.parseClassId=function(e,t){this.type===h.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,Ne,!1)):(t===!0&&this.unexpected(),e.id=null)};W.parseClassSuper=function(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts():null};W.parseExport=function(e,t){if(this.next(),this.eat(h.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(h._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===h._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,ot|Gi,!1,r)}else if(this.type===h._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,u=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,s=e.properties;i=8&&!a&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.parseFunction(this.startNodeAt(i,s),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[u],!1);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===h.name&&!a)return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(h.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[u],!0)}return u;case h.regexp:var f=this.value;return t=this.parseLiteral(f.value),t.regex={pattern:f.pattern,flags:f.flags},t;case h.num:case h.string:return this.parseLiteral(this.value);case h._null:case h._true:case h._false:return t=this.startNode(),t.value=this.type===h._null?null:this.type===h._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case h.parenL:var p=this.start,y=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),y;case h.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(h.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case h.braceL:return this.parseObj(!1,e);case h._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case h._class:return this.parseClass(this.startNode(),!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate();case h._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case h.parenL:return this.parseDynamicImport(e);case h.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(h.parenR)){var t=this.start;this.eat(h.comma)&&this.eat(h.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};z.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};z.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,u=this.startLoc,f=[],p=!0,y=!1,g=new Rt,b=this.yieldPos,E=this.awaitPos,S;for(this.yieldPos=0,this.awaitPos=0;this.type!==h.parenR;)if(p?p=!1:this.expect(h.comma),s&&this.afterTrailingComma(h.parenR,!0)){y=!0;break}else if(this.type===h.ellipsis){S=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var C=this.start,v=this.startLoc;if(this.expect(h.parenR),e&&!this.canInsertSemicolon()&&this.eat(h.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=b,this.awaitPos=E,this.parseParenArrowList(t,r,f);(!f.length||y)&&this.unexpected(this.lastTokStart),S&&this.unexpected(S),this.checkExpressionErrors(g,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=E||this.awaitPos,f.length>1?(i=this.startNodeAt(a,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",C,v)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var P=this.startNodeAt(t,r);return P.expression=i,this.finishNode(P,"ParenthesizedExpression")}else return i};z.parseParenItem=function(e){return e};z.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var $s=[];z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(h.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,s=this.startLoc,a=this.type===h._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,s,!0),a&&e.callee.type==="ImportExpression"&&this.raise(i,"Cannot use new with import()"),this.eat(h.parenL)?e.arguments=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1):e.arguments=$s,this.finishNode(e,"NewExpression")};z.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===h.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),r.tail=this.type===h.backQuote,this.finishNode(r,"TemplateElement")};z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===h.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(h.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(h.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};z.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===h.name||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===h.star)&&!ve.test(this.input.slice(this.lastTokEnd,this.start))};z.parseObj=function(e,t){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(h.braceR);){if(i)i=!1;else if(this.expect(h.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(h.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};z.parseProperty=function(e,t){var r=this.startNode(),i,s,a,u;if(this.options.ecmaVersion>=9&&this.eat(h.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===h.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===h.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,u=this.startLoc),e||(i=this.eat(h.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(h.star),this.parsePropertyName(r,t)):s=!1,this.parsePropertyValue(r,e,i,s,a,u,t,f),this.finishNode(r,"Property")};z.parsePropertyValue=function(e,t,r,i,s,a,u,f){if((r||i)&&this.type===h.colon&&this.unexpected(),this.eat(h.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===h.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==h.comma&&this.type!==h.braceR&&this.type!==h.eq){(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var p=e.kind==="get"?0:1;if(e.value.params.length!==p){var y=e.value.start;e.kind==="get"?this.raiseRecoverable(y,"getter should have no params"):this.raiseRecoverable(y,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,e.key):this.type===h.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()};z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(h.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(h.bracketR),e.key;e.computed=!1}return e.key=this.type===h.num||this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};z.parseMethod=function(e,t,r){var i=this.startNode(),s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(br(t,i.generator)|Di|(r?Vi:0)),this.expect(h.parenL),i.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(i,"FunctionExpression")};z.parseArrowExpression=function(e,t,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(br(r,!1)|Mi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};z.parseFunctionBody=function(e,t,r){var i=t&&this.type!==h.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||u)&&(a=this.strictDirective(this.end),a&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,Ui),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};z.isSimpleParamList=function(e){for(var t=0,r=e;t-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&ct&&delete this.undefinedExports[e]}else if(t===qi){var a=this.currentScope();a.lexical.push(e)}else if(t===ji){var u=this.currentScope();this.treatFunctionsAsVar?i=u.lexical.indexOf(e)>-1:i=u.lexical.indexOf(e)>-1||u.var.indexOf(e)>-1,u.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var p=this.scopeStack[f];if(p.lexical.indexOf(e)>-1&&!(p.flags&Bi&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags&ct&&delete this.undefinedExports[e],p.flags&xr)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};De.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};De.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};De.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr)return t}};De.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr&&!(t.flags&Mi))return t}};var Ft=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new mt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Mt=re.prototype;Mt.startNode=function(){return new Ft(this,this.start,this.startLoc)};Mt.startNodeAt=function(e,t){return new Ft(this,e,t)};function Wi(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}Mt.finishNode=function(e,t){return Wi.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Mt.finishNodeAt=function(e,t,r,i){return Wi.call(this,e,t,r,i)};var _e=function(t,r,i,s,a){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s,this.generator=!!a},se={b_stat:new _e("{",!1),b_expr:new _e("{",!0),b_tmpl:new _e("${",!1),p_stat:new _e("(",!1),p_expr:new _e("(",!0),q_tmpl:new _e("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new _e("function",!1),f_expr:new _e("function",!0),f_expr_gen:new _e("function",!0,!1,null,!0),f_gen:new _e("function",!1,!1,null,!0)},Bt=re.prototype;Bt.initialContext=function(){return[se.b_stat]};Bt.braceIsBlock=function(e){var t=this.curContext();return t===se.f_expr||t===se.f_stat?!0:e===h.colon&&(t===se.b_stat||t===se.b_expr)?!t.isExpr:e===h._return||e===h.name&&this.exprAllowed?ve.test(this.input.slice(this.lastTokEnd,this.start)):e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow?!0:e===h.braceL?t===se.b_stat:e===h._var||e===h._const||e===h.name?!1:!this.exprAllowed};Bt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Bt.updateContext=function(e){var t,r=this.type;r.keyword&&e===h.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};h.parenR.updateContext=h.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===se.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};h.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?se.b_stat:se.b_expr),this.exprAllowed=!0};h.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0};h.parenL.updateContext=function(e){var t=e===h._if||e===h._for||e===h._with||e===h._while;this.context.push(t?se.p_stat:se.p_expr),this.exprAllowed=!0};h.incDec.updateContext=function(){};h._function.updateContext=h._class.updateContext=function(e){e.beforeExpr&&e!==h.semi&&e!==h._else&&!(e===h._return&&ve.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===h.colon||e===h.braceL)&&this.curContext()===se.b_stat)?this.context.push(se.f_expr):this.context.push(se.f_stat),this.exprAllowed=!1};h.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1};h.star.updateContext=function(e){if(e===h._function){var t=this.context.length-1;this.context[t]===se.f_expr?this.context[t]=se.f_expr_gen:this.context[t]=se.f_gen}this.exprAllowed=!0};h.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==h.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var zi="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",$i=zi+" Extended_Pictographic",Xs=$i,Hs={9:zi,10:$i,11:Xs},ai="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ji="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Xi=Ji+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Qs=Xi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ys={9:Ji,10:Xi,11:Qs},Hi={};function Er(e){var t=Hi[e]={binary:Ue(Hs[e]+" "+ai),nonBinary:{General_Category:Ue(ai),Script:Ue(Ys[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Er(9);Er(10);Er(11);var j=re.prototype,Re=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Hi[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Re.prototype.reset=function(t,r,i){var s=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9};Re.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Re.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return-1;var a=i.charCodeAt(t);if(!(r||this.switchU)||a<=55295||a>=57344||t+1>=s)return a;var u=i.charCodeAt(t+1);return u>=56320&&u<=57343?(a<<10)+u-56613888:a};Re.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return s;var a=i.charCodeAt(t),u;return!(r||this.switchU)||a<=55295||a>=57344||t+1>=s||(u=i.charCodeAt(t+1))<56320||u>57343?t+1:t+2};Re.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Re.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Re.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Re.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};function Pt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}j.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i-1&&this.raise(e.start,"Duplicate regular expression flag")}};j.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};j.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};j.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};j.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};j.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};j.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Qi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Qi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}j.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!Qi(r);)e.advance();return e.pos!==t};j.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};j.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};j.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Pt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Pt(e.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Ks(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Ks(e){return Le(e,!0)||e===36||e===95}j.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Zs(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Zs(e){return Ge(e,!0)||e===36||e===95||e===8204||e===8205}j.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};j.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};j.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};j.regexp_eatZero=function(e){return e.current()===48&&!Dt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};j.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};j.regexp_eatControlLetter=function(e){var t=e.current();return Yi(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Yi(e){return e>=65&&e<=90||e>=97&&e<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(u>=56320&&u<=57343)return e.lastIntValue=(s-55296)*1024+(u-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ea(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function ea(e){return e>=0&&e<=1114111}j.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};j.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};j.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(ta(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function ta(e){return e===100||e===68||e===115||e===83||e===119||e===87}j.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1};j.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ot(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ki(t=e.current());)e.lastStringValue+=Pt(t),e.advance();return e.lastStringValue!==""};function Ki(e){return Yi(e)||e===95}j.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ra(t=e.current());)e.lastStringValue+=Pt(t),e.advance();return e.lastStringValue!==""};function ra(e){return Ki(e)||Dt(e)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};j.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};j.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||tn(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};j.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};j.regexp_eatClassControlLetter=function(e){var t=e.current();return Dt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};j.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Dt(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57}j.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Zi(r=e.current());)e.lastIntValue=16*e.lastIntValue+en(r),e.advance();return e.pos!==t};function Zi(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function en(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}j.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};j.regexp_eatOctalDigit=function(e){var t=e.current();return tn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function tn(e){return e>=48&&e<=55}j.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length)return this.finishToken(h.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};$.readToken=function(e){return Le(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};$.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};$.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Qe.lastIndex=t;for(var i;(i=Qe.exec(this.input))&&i.index8&&e<14||e>=5760&&yr.test(String.fromCharCode(e)))++this.pos;else break e}}};$.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};$.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(h.ellipsis)):(++this.pos,this.finishToken(h.dot))};$.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(h.assign,2):this.finishOp(h.slash,1)};$.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?h.star:h.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=h.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(h.assign,r+1):this.finishOp(i,r)};$.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(h.assign,3)}return this.finishOp(e===124?h.logicalOR:h.logicalAND,2)}return t===61?this.finishOp(h.assign,2):this.finishOp(e===124?h.bitwiseOR:h.bitwiseAND,1)};$.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)};$.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ve.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(h.incDec,2):t===61?this.finishOp(h.assign,2):this.finishOp(h.plusMin,1)};$.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(h.assign,r+1):this.finishOp(h.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(h.relational,r))};$.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(h.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(h.arrow)):this.finishOp(e===61?h.eq:h.prefix,1)};$.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(h.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(h.assign,3)}return this.finishOp(h.coalesce,2)}}return this.finishOp(h.question,1)};$.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.parenL);case 41:return++this.pos,this.finishToken(h.parenR);case 59:return++this.pos,this.finishToken(h.semi);case 44:return++this.pos,this.finishToken(h.comma);case 91:return++this.pos,this.finishToken(h.bracketL);case 93:return++this.pos,this.finishToken(h.bracketR);case 123:return++this.pos,this.finishToken(h.braceL);case 125:return++this.pos,this.finishToken(h.braceR);case 58:return++this.pos,this.finishToken(h.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(h.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(h.prefix,1)}this.raise(this.pos,"Unexpected character '"+Cr(e)+"'")};$.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};$.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(ve.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var a=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(a);var f=this.regexpState||(this.regexpState=new Re(this));f.reset(r,s,u),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var p=null;try{p=new RegExp(s,u)}catch{}return this.finishToken(h.regexp,{pattern:s,flags:u,value:p})};$.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,s=r&&this.input.charCodeAt(this.pos)===48,a=this.pos,u=0,f=0,p=0,y=t??1/0;p=97?b=g-97+10:g>=65?b=g-65+10:g>=48&&g<=57?b=g-48:b=1/0,b>=e)break;f=g,u=u*e+b}return i&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:u};function ia(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function rn(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}$.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=rn(this.input.slice(t,this.pos)),++this.pos):Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,r)};$.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var s=rn(this.input.slice(t,this.pos));return++this.pos,Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=ia(this.input.slice(t,this.pos),r);return this.finishToken(h.num,a)};$.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};function Cr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}$.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(et(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(h.string,t)};var nn={};$.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===nn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};$.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nn;this.raise(e,t)};$.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===h.template||this.type===h.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(h.dollarBraceL)):(++this.pos,this.finishToken(h.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(h.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(et(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};$.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);return s>255&&(i=i.slice(0,-1),s=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return et(t)?"":String.fromCharCode(t)}};$.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};$.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const oi=ts(oa);(function(e){const t=ua,r=/^[\da-fA-F]+$/,i=/^\d+$/,s=new WeakMap;function a(p){p=p.Parser.acorn||p;let y=s.get(p);if(!y){const g=p.tokTypes,b=p.TokContext,E=p.TokenType,S=new b("...",!0,!0),P={tc_oTag:S,tc_cTag:C,tc_expr:v},O={jsxName:new E("jsxName"),jsxText:new E("jsxText",{beforeExpr:!0}),jsxTagStart:new E("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new E("jsxTagEnd")};O.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(S),this.exprAllowed=!1},O.jsxTagEnd.updateContext=function(L){let V=this.context.pop();V===S&&L===g.slash||V===C?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},y={tokContexts:P,tokTypes:O},s.set(p,y)}return y}function u(p){if(!p)return p;if(p.type==="JSXIdentifier")return p.name;if(p.type==="JSXNamespacedName")return p.namespace.name+":"+p.name.name;if(p.type==="JSXMemberExpression")return u(p.object)+"."+u(p.property)}e.exports=function(p){return p=p||{},function(y){return f({allowNamespaces:p.allowNamespaces!==!1,allowNamespacedObjects:!!p.allowNamespacedObjects},y)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(oi).tokTypes},configurable:!0,enumerable:!0});function f(p,y){const g=y.acorn||oi,b=a(g),E=g.tokTypes,S=b.tokTypes,C=g.tokContexts,v=b.tokContexts.tc_oTag,P=b.tokContexts.tc_cTag,O=b.tokContexts.tc_expr,L=g.isNewLine,V=g.isIdentifierStart,A=g.isIdentifierChar;return class extends y{static get acornJsx(){return b}jsx_readToken(){let m="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(_):(m+=this.input.slice(x,this.pos),this.finishToken(S.jsxText,m));case 38:m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:L(_)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(m){let x=this.input.charCodeAt(this.pos),_;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=m?` +`:`\r +`):_=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(m){let x="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===m)break;k===38?(x+=this.input.slice(_,this.pos),x+=this.jsx_readEntity(),_=this.pos):L(k)?(x+=this.input.slice(_,this.pos),x+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return x+=this.input.slice(_,this.pos++),this.finishToken(E.string,x)}jsx_readEntity(){let m="",x=0,_,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let B=++this.pos;for(;this.pos")}let G=B.name?"Element":"Fragment";return _["opening"+G]=B,_["closing"+G]=R,_.children=k,this.type===E.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+G)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(m,x)}parseExprAtom(m){return this.type===S.jsxText?this.jsx_parseText():this.type===S.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let x=this.curContext();if(x===O)return this.jsx_readToken();if(x===v||x===P){if(V(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(S.jsxTagEnd);if((m===34||m===39)&&x==v)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(S.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==E.braceL){var x=this.curContext();x==v?this.context.push(C.b_expr):x==O?this.context.push(C.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===E.slash&&m===S.jsxTagStart)this.context.length-=2,this.context.push(P),this.exprAllowed=!1;else return super.updateContext(m)}}}})(an);var la=an.exports;const ca=pt(la);function on(e,t,r,i,s){r||(r=N),function a(u,f,p){var y=p||u.type,g=t[y];r[y](u,f,a),g&&g(u,f)}(e,i,s)}function ha(e,t,r,i,s){var a=[];r||(r=N),function u(f,p,y){var g=y||f.type,b=t[g],E=f!==a[a.length-1];E&&a.push(f),r[g](f,p,u),b&&b(f,p||a,a),E&&a.pop()}(e,i,s)}function Ar(e,t,r){r(e,t)}function $e(e,t,r){}var N={};N.Program=N.BlockStatement=function(e,t,r){for(var i=0,s=e.body;i + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function ui(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ia(e){var t,r;return ui(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(ui(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var ln={},It=lt&<.__assign||function(){return It=Object.assign||function(e){for(var t,r=1,i=arguments.length;re.length)&&(t=e.length);for(var r=0,i=new Array(t);r0?e.length-1:0),i=e[e.length-1];return i&&(t.type==="string"||t.type==="number")&&(i.type==="string"||i.type==="number")?r.push(fn(String(i.value)+String(t.value))):(i&&r.push(i),r.push(t)),r},io=function(t){return["key","ref"].includes(t)},no=function(e){return function(t){var r=t.includes("key"),i=t.includes("ref"),s=t.filter(function(u){return!io(u)}),a=li(e?s.sort():s);return i&&a.unshift("ref"),r&&a.unshift("key"),a}};function so(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var ao=function(t,r,i,s,a){var u=a.tabStop;return t.type==="string"?r.split(` +`).map(function(f,p){return p===0?f:"".concat(Ie(s,u)).concat(f)}).join(` +`):r},oo=function(t,r,i){return function(s){return ao(s,Qt(s,t,r,i),t,r,i)}},uo=function(t,r){return function(i){var s=Object.keys(t).includes(i);return!s||s&&t[i]!==r[i]}},mn=function(t,r,i,s,a){return a?Ie(i,s).length+r.length>a:t.length>1},lo=function(t,r,i,s,a,u,f){return(mn(t,r,a,u,f)||i)&&!s},gn=function(e,t,r,i){var s=e.type,a=e.displayName,u=a===void 0?"":a,f=e.childrens,p=e.props,y=p===void 0?{}:p,g=e.defaultProps,b=g===void 0?{}:g;if(s!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(s));var E=i.filterProps,S=i.maxInlineAttributesLineLength,C=i.showDefaultProps,v=i.sortProps,P=i.tabStop,O="<".concat(u),L=O,V=O,A=!1,m=[],x=so(y,E);Object.keys(y).filter(x).filter(uo(b,y)).forEach(function(B){return m.push(B)}),Object.keys(b).filter(x).filter(function(){return C}).filter(function(B){return!m.includes(B)}).forEach(function(B){return m.push(B)});var _=no(v)(m);if(_.forEach(function(B){var R=to(B,Object.keys(y).includes(B),y[B],Object.keys(b).includes(B),b[B],t,r,i),G=R.attributeFormattedInline,q=R.attributeFormattedMultiline,D=R.isMultilineAttribute;D&&(A=!0),L+=G,V+=q}),V+=` +`.concat(Ie(r,P)),lo(_,L,A,t,r,P,S)?O=V:O=L,f&&f.length>0){var k=r+1;O+=">",t||(O+=` +`,O+=Ie(k,P)),O+=f.reduce(ro,[]).map(oo(t,k,i)).join(t?"":` +`.concat(Ie(k,P))),t||(O+=` +`,O+=Ie(k-1,P)),O+="")}else mn(_,L,r,P,S)||(O+=" "),O+="/>";return O},co="",pi="React.Fragment",ho=function(t,r,i){var s={};return r&&(s={key:r}),{type:"ReactElement",displayName:t,props:s,defaultProps:{},childrens:i}},fo=function(t){var r=t.key;return!!r},po=function(t){var r=t.childrens;return r.length===0},mo=function(e,t,r,i){var s=e.type,a=e.key,u=e.childrens;if(s!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(s));var f=i.useFragmentShortSyntax,p;return f?po(e)||fo(e)?p=pi:p=co:p=pi,gn(ho(p,a,u),t,r,i)},go=["<",">","{","}"],yo=function(t){return go.some(function(r){return t.includes(r)})},vo=function(t){return yo(t)?"{`".concat(t,"`}"):t},xo=function(t){var r=t;return r.endsWith(" ")&&(r=r.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),r.startsWith(" ")&&(r=r.replace(/^(\s+)(.*)$/,"{'$1'}$2")),r},Qt=function(e,t,r,i){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(xo(vo(String(e.value)))):"";if(e.type==="ReactElement")return gn(e,t,r,i);if(e.type==="ReactFragment")return mo(e,t,r,i);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},bo=function(e,t){return Qt(e,!1,0,t)},ut=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.filterProps,s=i===void 0?[]:i,a=r.showDefaultProps,u=a===void 0?!0:a,f=r.showFunctions,p=f===void 0?!1:f,y=r.functionValue,g=r.tabStop,b=g===void 0?2:g,E=r.useBooleanShorthandSyntax,S=E===void 0?!0:E,C=r.useFragmentShortSyntax,v=C===void 0?!0:C,P=r.sortProps,O=P===void 0?!0:P,L=r.maxInlineAttributesLineLength,V=r.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var A={filterProps:s,showDefaultProps:u,showFunctions:p,functionValue:y,tabStop:b,useBooleanShorthandSyntax:S,useFragmentShortSyntax:v,sortProps:O,maxInlineAttributesLineLength:L,displayName:V};return bo(Tr(t,A),A)};const{defaultDecorateStory:So,addons:_o,useEffect:Eo}=__STORYBOOK_MODULE_PREVIEW_API__,{logger:At}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Co(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];if(r){let a=e.map(u=>{let f=u.getPrettyName(),p=u.getTypeName();return p!=null?`${f}: ${p}`:f});s.push(`(${a.join(", ")})`)}else s.push("()");return i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function Ao(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];return r?s.push("( ... )"):s.push("()"),i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function wo(e){return e.replace(/,/g,`,\r +`)}var fr="custom",yt="object",Pr="array",ko="class",Ke="func",tt="element";function Ir(e){return cs.includes(e.toLowerCase())}var yn={format:{indent:{style:" "},semicolons:!1}},To={...yn,format:{newline:""}},Po={...yn};function Me(e,t=!1){return wi.generate(e,t?To:Po)}function pr(e,t=!1){return t?Io(e):Me(e)}function Io(e){let t=Me(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function di(e,t=!1){return t?Lo(e):No(e)}function No(e){let t=Me(e);return t.endsWith(" }]")&&(t=rs(t)),t}function Lo(e){let t=Me(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var vn=e=>e.$$typeof===Symbol.for("react.memo"),Oo=e=>e.$$typeof===Symbol.for("react.forward_ref"),Nr={...N,JSXElement:()=>{}},Ro=re.extend(ca());function vt(e){return e!=null?e.name:null}function mi(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function xn(e){let t=[];return ha(e,{ObjectExpression(r,i){t.push(mi(i).length)},ArrayExpression(r,i){t.push(mi(i).length)}},Nr),Math.max(...t)}function Fo(e){return{inferredType:{type:"Identifier",identifier:vt(e)},ast:e}}function Mo(e){return{inferredType:{type:"Literal"},ast:e}}function Bo(e){let t;on(e.body,{JSXElement(s){t=s}},Nr);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},i=vt(e.id);return i!=null&&(r.identifier=i),{inferredType:r,ast:e}}function Do(e){let t;return on(e.body,{JSXElement(r){t=r}},Nr),{inferredType:{type:t!=null?"Element":"Class",identifier:vt(e.id)},ast:e}}function Vo(e){let t={type:"Element"},r=vt(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function jo(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return vt(t)==="shape"?bn(e.arguments[0]):null}function bn(e){return{inferredType:{type:"Object",depth:xn(e)},ast:e}}function qo(e){return{inferredType:{type:"Array",depth:xn(e)},ast:e}}function Uo(e){switch(e.type){case"Identifier":return Fo(e);case"Literal":return Mo(e);case"FunctionExpression":case"ArrowFunctionExpression":return Bo(e);case"ClassExpression":return Do(e);case"JSXElement":return Vo(e);case"CallExpression":return jo(e);case"ObjectExpression":return bn(e);case"ArrayExpression":return qo(e);default:return null}}function Go(e){let t=Ro.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let i=t.body[0];switch(i.type){case"ExpressionStatement":{let s=Uo(i.expression);s!=null&&(r=s);break}}}return r}function Be(e){try{return{...Go(e)}}catch{}return{inferredType:{type:"Unknown"}}}var Wo=150;function de({name:e,short:t,compact:r,full:i,inferredType:s}){return{name:e,short:t,compact:r,full:i??t,inferredType:s}}function Sn(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function gi(e){return e.split(/\r?\n/)}function Nt(e,t=!1){return Sn(pr(e,t))}function yi(e,t=!1){return Sn(Me(e,t))}function zo(e){switch(e){case"Object":return yt;case"Array":return Pr;case"Class":return ko;case"Function":return Ke;case"Element":return tt;default:return fr}}function _n(e,t){let{inferredType:r,ast:i}=Be(e),{type:s}=r,a,u,f;switch(s){case"Identifier":case"Literal":a=e,u=e;break;case"Object":{let{depth:p}=r;a=yt,u=p===1?Nt(i,!0):null,f=Nt(i);break}case"Element":{let{identifier:p}=r;a=p!=null&&!Ir(p)?p:tt,u=gi(e).length===1?e:null,f=e;break}case"Array":{let{depth:p}=r;a=Pr,u=p<=2?yi(i,!0):null,f=yi(i);break}default:a=zo(s),u=gi(e).length===1?e:null,f=e;break}return de({name:t,short:a,compact:u,full:f,inferredType:s})}function $o({raw:e}){return e!=null?_n(e,"custom"):de({name:"custom",short:fr,compact:fr})}function Jo(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?de({name:"func",short:Ao(t.params,t.returns),compact:null,full:Co(t.params,t.returns)}):de({name:"func",short:Ke,compact:Ke})}function Xo(e,t){let r=Object.keys(e.value).map(u=>`${u}: ${Ze(e.value[u],t).full}`).join(", "),{inferredType:i,ast:s}=Be(`{ ${r} }`),{depth:a}=i;return de({name:"shape",short:yt,compact:a===1&&s?Nt(s,!0):null,full:s?Nt(s):null})}function or(e){return`objectOf(${e})`}function Ho(e,t){let{short:r,compact:i,full:s}=Ze(e.value,t);return de({name:"objectOf",short:or(r),compact:i!=null?or(i):null,full:s&&or(s)})}function Qo(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((i,s)=>{let{short:a,compact:u,full:f}=Ze(s,t);return i.short.push(a),i.compact.push(u),i.full.push(f),i},{short:[],compact:[],full:[]});return de({name:"union",short:r.short.join(" | "),compact:r.compact.every(i=>i!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return de({name:"union",short:e.value,compact:null})}function Yo({value:e,computed:t}){return t?_n(e,"enumvalue"):de({name:"enumvalue",short:e,compact:e})}function Ko(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,i)=>{let{short:s,compact:a,full:u}=Yo(i);return r.short.push(s),r.compact.push(a),r.full.push(u),r},{short:[],compact:[],full:[]});return de({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return de({name:"enum",short:e.value,compact:e.value})}function dr(e){return`${e}[]`}function vi(e){return`[${e}]`}function xi(e,t,r){return de({name:"arrayOf",short:dr(e),compact:t!=null?vi(t):null,full:r&&vi(r)})}function Zo(e,t){let{name:r,short:i,compact:s,full:a,inferredType:u}=Ze(e.value,t);if(r==="custom"){if(u==="Object")return xi(i,s,a)}else if(r==="shape")return xi(i,s,a);return de({name:"arrayOf",short:dr(i),compact:dr(i)})}function Ze(e,t){try{switch(e.name){case"custom":return $o(e);case"func":return Jo(t);case"shape":return Xo(e,t);case"instanceOf":return de({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return Ho(e,t);case"union":return Qo(e,t);case"enum":return Ko(e);case"arrayOf":return Zo(e,t);default:return de({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return de({name:"unknown",short:"unknown",compact:"unknown"})}function eu(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:i,full:s}=Ze(t,e);return i!=null&&!es(i)?te(i):s?te(r,s):te(r)}case"func":{let{short:r,full:i}=Ze(t,e),s=r,a;return i&&i.length`}function An(e){let{type:t,identifier:r}=e;switch(t){case"Function":return Lr(r,e.hasParams);case"Element":return Yt(r);default:return r}}function tu({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return te(An(e),Me(t));let i=Me(t,!0);return ft(i)?te(Ke,Me(t)):te(i)}function ru(e,t){let{inferredType:r}=t,{identifier:i}=r;if(i!=null&&!Ir(i)){let s=An(r);return te(s,e)}return ft(e)?te(tt,e):te(e)}function wn(e){try{let t=Be(e);switch(t.inferredType.type){case"Object":return En(t);case"Function":return tu(t);case"Element":return ru(e,t);case"Array":return Cn(t);default:return null}}catch(t){console.error(t)}return null}function kn(e){return e.$$typeof!=null}function Tn(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var iu=e=>te(JSON.stringify(e));function nu(e){let{type:t}=e,{displayName:r}=t,i=ut(e,{});if(r!=null){let s=Yt(r);return te(s,i)}if(Pa(t)&&Ir(t)){let s=ut(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!ft(s))return te(s)}return te(tt,i)}var su=e=>{if(kn(e)&&e.type!=null)return nu(e);if(_a(e)){let t=Be(JSON.stringify(e));return En(t)}if(Array.isArray(e)){let t=Be(JSON.stringify(e));return Cn(t)}return te(yt)},au=(e,t)=>{let r=!1,i;if(Gr(e.render))r=!0;else if(e.prototype!=null&&Gr(e.prototype.render))r=!0;else{let a;try{i=Be(e.toString());let{hasParams:u,params:f}=i.inferredType;u?f.length===1&&f[0].type==="ObjectPattern"&&(a=e({})):a=e(),a!=null&&kn(a)&&(r=!0)}catch{}}let s=Tn(e,t.name);if(s!=null){if(r)return te(Yt(s));i!=null&&(i=Be(e.toString()));let{hasParams:a}=i.inferredType;return te(Lr(s,a))}return te(r?tt:Ke)},ou=e=>te(e.toString()),Pn={string:iu,object:su,function:au,default:ou};function uu(e={}){return{...Pn,...e}}function lu(e,t,r=Pn){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(i){console.error(i)}return null}function cu(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(i=>e.find(s=>s.name===i)).filter(Boolean):e}var hu=(e,{name:t,type:r})=>{let i=(r==null?void 0:r.summary)==="element"||(r==null?void 0:r.summary)==="elementType",s=Tn(e,t);if(s!=null){if(i)return te(Yt(s));let{hasParams:a}=Be(e.toString()).inferredType;return te(Lr(s,a))}return te(i?tt:Ke)},fu=uu({function:hu});function pu(e,t){let{propDef:r}=e,i=eu(e);i!=null&&(r.type=i);let{defaultValue:s}=e.docgenInfo;if(s!=null&&s.value!=null){let a=wn(s.value);a!=null&&(r.defaultValue=a)}else if(t!=null){let a=lu(t,r,fu);a!=null&&(r.defaultValue=a)}return r}function du(e,t){let r=t.defaultProps!=null?t.defaultProps:{},i=e.map(s=>pu(s,r[s.propDef.name]));return cu(i,t)}function mu(e,t){let{propDef:r}=e,{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let s=wn(i.value);s!=null&&(r.defaultValue=s)}return r}function gu(e){return e.map(t=>mu(t))}var bi=new Map;Object.keys($r).forEach(e=>{let t=$r[e];bi.set(t,e),bi.set(t.isRequired,e)});function yu(e,t){let r=e;!Kn(e)&&!e.propTypes&&vn(e)&&(r=e.type);let i=Zn(r,t);if(i.length===0)return[];switch(i[0].typeSystem){case Wr.JAVASCRIPT:return du(i,e);case Wr.TYPESCRIPT:return gu(i);default:return i.map(s=>s.propDef)}}var vu=e=>({rows:yu(e,"props")}),xu=e=>{if(e){let{rows:t}=vu(e);if(t)return t.reduce((r,i)=>{let{name:s,description:a,type:u,sbType:f,defaultValue:p,jsDocTags:y,required:g}=i;return r[s]={name:s,description:a,type:{required:g,...f},table:{type:u??void 0,jsDocTags:y,defaultValue:p??void 0}},r},{})}return null},bu=e=>e.charAt(0).toUpperCase()+e.slice(1),Su=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(bu).join("")).join(".");function mr(e){if(We.isValidElement(e)){let t=Object.keys(e.props).reduce((r,i)=>(r[i]=mr(e.props[i]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(mr):e}var _u=(e,t)=>{if(typeof e>"u")return At.warn("Too many skip or undefined component"),null;let r=e,i=r.type;for(let u=0;u<(t==null?void 0:t.skip);u+=1){if(typeof r>"u")return At.warn("Cannot skip undefined element"),null;if(at.Children.count(r)>1)return At.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(At.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=at.createElement(i,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let s;typeof(t==null?void 0:t.displayName)=="string"?s={showFunctions:!0,displayName:()=>t.displayName}:s={displayName:u=>{var f;return u.type.displayName?u.type.displayName:zr(u.type,"displayName")?zr(u.type,"displayName"):(f=u.type.render)!=null&&f.displayName?u.type.render.displayName:typeof u.type=="symbol"||u.type.$$typeof&&typeof u.type.$$typeof=="symbol"?Su(u.type):u.type.name&&u.type.name!=="_default"?u.type.name:typeof u.type=="function"?"No Display Name":Oo(u.type)?u.type.render.name:vn(u.type)?u.type.type.name:u.type}};let a={...s,filterProps:(u,f)=>u!==void 0,...t};return at.Children.map(e,u=>{let f=typeof u=="number"?u.toString():u,p=(typeof ut=="function"?ut:ut.default)(mr(f),a);if(p.indexOf(""")>-1){let y=p.match(/\S+=\\"([^"]*)\\"/g);y&&y.forEach(g=>{p=p.replace(g,g.replace(/"/g,"'"))})}return p}).join(` +`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},Eu={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},Cu=e=>{var i;let t=(i=e==null?void 0:e.parameters.docs)==null?void 0:i.source,r=e==null?void 0:e.parameters.__isArgsStory;return(t==null?void 0:t.type)===Ur.DYNAMIC?!1:!r||(t==null?void 0:t.code)||(t==null?void 0:t.type)===Ur.CODE},Au=e=>{var t,r;return((t=e.type)==null?void 0:t.displayName)==="MDXCreateElement"&&!!((r=e.props)!=null&&r.mdxType)},In=e=>{if(!Au(e))return e;let{mdxType:t,originalType:r,children:i,...s}=e.props,a=[];return i&&(a=(Array.isArray(i)?i:[i]).map(In)),We.createElement(r,s,...a)},Nn=(e,t)=>{var g,b;let r=_o.getChannel(),i=Cu(t),s="";Eo(()=>{if(!i){let{id:E,unmappedArgs:S}=t;r.emit(Yn,{id:E,source:s,args:S})}});let a=e();if(i)return a;let u={...Eu,...(t==null?void 0:t.parameters.jsx)||{}},f=(b=(g=t==null?void 0:t.parameters.docs)==null?void 0:g.source)!=null&&b.excludeDecorators?t.originalStoryFn(t.args,t):a,p=In(f),y=_u(p,u);return y&&(s=y),a},Pu=(e,t)=>{let r=t.findIndex(s=>s.originalFn===Nn),i=r===-1?t:[...t.splice(r,1),...t];return So(e,i)},Iu={docs:{story:{inline:!0},extractArgTypes:xu,extractComponentDescription:Hn}},Nu=[Nn],Lu=[Qn];export{Pu as applyDecorators,Lu as argTypesEnhancers,Nu as decorators,Iu as parameters}; diff --git a/storybook/assets/formatter-2WMMO6ZP-B8aeGN0G.js b/storybook/assets/formatter-2WMMO6ZP-B8aeGN0G.js new file mode 100644 index 0000000..6317b8d --- /dev/null +++ b/storybook/assets/formatter-2WMMO6ZP-B8aeGN0G.js @@ -0,0 +1,58 @@ +var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./DocsRenderer-K4EAMTCU-CMAjytqJ.js";import"./iframe-CNsWcalC.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ir(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=aa([...Du].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var oa=class extends Error{constructor(t){super(sa(t));_e(this,"name","InvalidDocError");this.doc=t}},fu=oa,la=()=>{},ca=la;function we(e){return{type:Bt,contents:e}}function mu(e,t){return{type:xt,contents:t,n:e}}function q(e,t={}){return ca(t.expandedStates),{type:Ye,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pa(e){return mu(Number.NEGATIVE_INFINITY,e)}function ha(e){return mu({type:"root"},e)}function gu(e){return{type:Tt,parts:e}}function bt(e,t="",r={}){return{type:Lt,breakContents:e,flatContents:t,groupId:r.groupId}}function da(e,t){return{type:Nt,contents:e,groupId:t.groupId,negate:t.negate}}var Ze={type:qt},Da={type:be,hard:!0},fa={type:be,hard:!0,literal:!0},L={type:be},I={type:be,soft:!0},A=[Da,Ze],ma=[fa,Ze];function et(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Pt=ga;function Or(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(Ir(i)){case xr:return t(i.map(n));case Tt:return t({...i,parts:i.parts.map(n)});case Lt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ye:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case xt:case Bt:case Nt:case Pr:case Nr:return t({...i,contents:n(i.contents)});case Br:case Tr:case Lr:case qr:case be:case qt:return t(i);default:throw new fu(i)}}}function Ca(e){switch(Ir(e)){case Tt:if(e.parts.every(t=>t===""))return"";break;case Ye:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ye&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case xt:case Bt:case Nt:case Nr:if(!e.contents)return"";break;case Lt:if(!e.flatContents&&!e.breakContents)return"";break;case xr:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Pt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Br:case Tr:case Lr:case qr:case be:case Pr:case qt:break;default:throw new fu(e)}return e}function Fa(e){return Or(e,t=>Ca(t))}function G(e,t=ma){return Or(e,r=>typeof r=="string"?et(t,r.split(` +`)):r)}var va=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_e(this,"name","UnexpectedNodeError");this.node=t}},ya=va,lt="'",cn='"';function Ea(e,t){let r=t===!0||t===lt?lt:cn,n=r===lt?cn:lt,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var ba=Ea;function wa(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Sa=class{constructor(e){ra(this,U,void 0),na(this,U,new Set(e))}getLeadingWhitespaceCount(e){let t=se(this,U),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return se(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return se(this,U).has(Pt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${wa([...se(this,U)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=se(this,U);return Array.prototype.every.call(e,r=>t.has(r))}};U=new WeakMap;var Aa=Sa,ka=[" ",` +`,"\f","\r"," "],_a=new Aa(ka),ce=_a;function Ba(e){return(e==null?void 0:e.type)==="front-matter"}var It=Ba,xa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]),Ta=new Set(["if","else if","for","switch","case"]);function Cu(e,t){var r;if(e.type==="text"||e.type==="comment"||It(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=t.parameters)!=null&&r.children)for(let n of t.parameters.children)Ta.has(e.name)?delete n.expression:n.expression=n.expression.trim()}Cu.ignoredProperties=xa;var La=Cu,Na=e=>String(e).split(/[/\\]/).pop();function pn(e,t){if(!t)return;let r=Na(t).toLowerCase();return e.find(n=>{var u,i;return((u=n.extensions)==null?void 0:u.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function qa(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function Pa(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=qa(r,t.language)??pn(r,t.physicalFile)??pn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ot=Pa,Ia="inline",Oa={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Ma="normal",Ra={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ha(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var Xe=Ha,ja=e=>O(!1,e,/^[\t\f\r ]*\n/g,""),Fu=e=>ja(ce.trimEnd(e)),$a=e=>{let t=e,r=ce.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=ce.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function vu(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||Pe(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Hr(e,t)&&!ee(e)&&e.type!=="interpolation")}function Mr(e){return e.type==="attribute"||!e.parent||!e.prev?!1:Wa(e.prev)}function Wa(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function H(e){return e.type==="text"||e.type==="comment"}function ee(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||Xe(e)&&(e.name==="script"||e.name==="style"))}function Va(e){return e.children&&!ee(e)}function Ua(e){return ee(e)||e.type==="interpolation"||yu(e)}function yu(e){return _u(e).startsWith("pre")}function za(e,t){var r,n;let u=i();if(u&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return u;function i(){return It(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Pe(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||Pe(e)&&e.parent||ee(e.parent)||Mt(e.parent,t)||!ts(e.parent.cssDisplay))||e.prev&&!us(e.prev.cssDisplay))}}function Ga(e,t){return It(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Pe(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||Pe(e)&&e.parent||ee(e.parent)||Mt(e.parent,t)||!rs(e.parent.cssDisplay))||e.next&&!ns(e.next.cssDisplay))}function Ka(e){return is(e.cssDisplay)&&!ee(e)}function ct(e){return It(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Xa(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&wu(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Su(e.lastChild))}function Eu(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function nr(e){return Au(e)||e.prev&&Ya(e.prev)||bu(e)}function Ya(e){return Au(e)||e.type==="element"&&e.fullName==="br"||bu(e)}function bu(e){return wu(e)&&Su(e)}function wu(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Au(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Rr(e){return e.lastChild?Rr(e.lastChild):e}function Xa(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function ku(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Qa(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:u,lang:i}=e.attrMap;return!i&&!u?"babel":Ot(t,{language:i})??ku(u)}function Za(e,t){if(!Hr(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:u}=r;return Ot(t,{language:u})??ku(n)}function es(e,t){if(e.name!=="style")return;let{lang:r}=e.attrMap;return r?Ot(t,{language:r}):"css"}function hn(e,t){return Qa(e,t)??es(e,t)??Za(e,t)}function tt(e){return e==="block"||e==="list-item"||e.startsWith("table")}function ts(e){return!tt(e)&&e!=="inline-block"}function rs(e){return!tt(e)&&e!=="inline-block"}function ns(e){return!tt(e)}function us(e){return!tt(e)}function is(e){return!tt(e)&&e!=="inline-block"}function Pe(e){return _u(e).startsWith("pre")}function as(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ss(e,t){var r;if(Me(e,t))return"block";if(((r=e.prev)==null?void 0:r.type)==="comment"){let u=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(u)return u[1]}let n=!1;if(e.type==="element"&&e.namespace==="svg")if(as(e,u=>u.fullName==="svg:foreignObject"))n=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return e.type==="element"&&(!e.namespace||n||Xe(e))&&Oa[e.name]||Ia}}function _u(e){return e.type==="element"&&(!e.namespace||Xe(e))&&Ra[e.name]||Ma}function os(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)){if(r.length===0)continue;let n=ce.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(t)).join(` +`)}function xu(e){return O(!1,O(!1,e,"'","'"),""",'"')}function de(e){return xu(e.value)}var ls=new Set(["template","style","script"]);function Mt(e,t){return Me(e,t)&&!ls.has(e.fullName)}function Me(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function Hr(e,t){return Me(e,t)&&(Mt(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function cs(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function ps(e,t){let r=e.parent;if(!Me(r,t))return!1;let n=r.fullName,u=e.fullName;return n==="script"&&u==="setup"||n==="style"&&u==="vars"}function Tu(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?G(t):G(Bu(Fu(t)),A):et(L,ce.split(t))}function Lu(e,t){return Me(e,t)&&e.name==="script"}function jr(e){return e>=9&&e<=32||e==160}function Nu(e){return 48<=e&&e<=57}function $r(e){return e>=97&&e<=122||e>=65&&e<=90}function hs(e){return e>=97&&e<=102||e>=65&&e<=70||Nu(e)}function qu(e){return e===10||e===13}function dn(e){return 48<=e&&e<=55}function Dn(e){return e===39||e===34||e===96}var ds=/-+([a-z0-9])/g;function Ds(e){return e.replace(ds,(...t)=>t[1].toUpperCase())}var fr=class Pu{constructor(t,r,n,u){this.file=t,this.offset=r,this.line=n,this.col=u}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,u=this.offset,i=this.line,a=this.col;for(;u>0&&t<0;)if(u--,t++,r.charCodeAt(u)==10){i--;let s=r.substring(0,u-1).lastIndexOf(` +`);a=s>0?u-s:u}else a--;for(;u0;){let s=r.charCodeAt(u);u++,t--,s==10?(i++,a=0):a++}return new Pu(this.file,u,i,a)}getContext(t,r){let n=this.file.content,u=this.offset;if(u!=null){u>n.length-1&&(u=n.length-1);let i=u,a=0,s=0;for(;a0&&(u--,a++,!(n[u]==` +`&&++s==r)););for(a=0,s=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},fs=[gs,Cs,vs,Es,bs,As,ws,Ss,ks,ys];function ms(e,t){for(let r of fs)r(e,t);return e}function gs(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function Cs(e){let t=r=>{var n,u;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((u=r.firstChild)==null?void 0:u.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let u=0;ut.type==="cdata",t=>``)}function ys(e){let t=r=>{var n,u;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!ce.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((u=r.next)==null?void 0:u.type)==="text"};e.walk(r=>{if(r.children)for(let n=0;n`+u.firstChild.value+``+a.value,i.sourceSpan=new b(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(u),n--,r.removeChild(a)}})}function Es(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(Va(n))for(let u of n.children){if(u.type!=="text")continue;let i=u.sourceSpan.start,a=null,s=u.value.split(r);for(let o=0;o0&&n.insertChildBefore(u,{type:"text",value:l,sourceSpan:new b(i,a)});continue}a=i.moveBy(l.length+4),n.insertChildBefore(u,{type:"interpolation",sourceSpan:new b(i,a),children:l.length===0?[]:[{type:"text",value:l,sourceSpan:new b(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(u)}})}function bs(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&ce.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=Ua(t),n=yu(t);if(!r)for(let u=0;u{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function Ss(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function As(e,t){e.walk(r=>{r.cssDisplay=ss(r,t)})}function ks(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Ka(r);return}for(let u of n)u.isLeadingSpaceSensitive=za(u,t),u.isTrailingSpaceSensitive=Ga(u,t);for(let u=0;u/.test(e)}function xs(e){return` + +`+e}function Rt(e){return e.sourceSpan.start.offset}function Ht(e){return e.sourceSpan.end.offset}async function Ts(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return ha([e.startDelimiter,A,n,n?A:"",e.endDelimiter])}}var Ls=Ts,Mu=new Proxy(()=>{},{get:()=>Mu}),Ru=Mu;function Ns(e){return Array.isArray(e)&&e.length>0}var Hu=Ns;function mr(e,t){return[e.isSelfClosing?"":qs(e,t),ft(e,t)]}function qs(e,t){return e.lastChild&&Qe(e.lastChild)?"":[Ps(e,t),Wr(e,t)]}function ft(e,t){return(e.next?ve(e.next):nt(e.parent))?"":[rt(e,t),Fe(e,t)]}function Ps(e,t){return nt(e)?rt(e.lastChild,t):""}function Fe(e,t){return Qe(e)?Wr(e.parent,t):jt(e)?Vr(e.next):""}function Wr(e,t){if(Ru(!e.isSelfClosing),ju(e,t))return"";switch(e.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ju(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Mr(e)||vu(e.parent,t))}function ve(e){return e.prev&&e.prev.type!=="docType"&&e.type!=="angularControlFlowBlock"&&!H(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function nt(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!H(Rr(e.lastChild))&&!Pe(e)}function Qe(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&H(Rr(e))}function jt(e){return e.next&&!H(e.next)&&H(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Is(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function $t(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Os(e,t,r){var n;let{node:u}=e;if(!Hu(u.attrs))return u.isSelfClosing?" ":"";let i=((n=u.prev)==null?void 0:n.type)==="comment"&&Is(u.prev.value),a=typeof i=="boolean"?()=>i:Array.isArray(i)?D=>i.includes(D.rawName):()=>!1,s=e.map(({node:D})=>a(D)?G(t.originalText.slice(Rt(D),Ht(D))):r(),"attrs"),o=u.type==="element"&&u.fullName==="script"&&u.attrs.length===1&&u.attrs[0].fullName==="src"&&u.children.length===0,l=t.singleAttributePerLine&&u.attrs.length>1&&!Me(u,t)?A:L,c=[we([o?" ":L,et(l,s)])];return u.firstChild&&$t(u.firstChild)||u.isSelfClosing&&nt(u.parent)||o?c.push(u.isSelfClosing?" ":""):c.push(t.bracketSameLine?u.isSelfClosing?" ":"":u.isSelfClosing?L:I),c}function Ms(e){return e.firstChild&&$t(e.firstChild)?"":Ur(e)}function gr(e,t,r){let{node:n}=e;return[mt(n,t),Os(e,t,r),n.isSelfClosing?"":Ms(n)]}function mt(e,t){return e.prev&&jt(e.prev)?"":[ye(e,t),Vr(e)]}function ye(e,t){return $t(e)?Ur(e.parent):ve(e)?rt(e.prev,t):""}function Vr(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${e.rawName}`;default:return`<${e.rawName}`}}function Ur(e){switch(Ru(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}var ur=new WeakMap;function Rs(e,t){let{root:r}=e;return ur.has(r)||ur.set(r,r.children.some(n=>Lu(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ur.get(r)}var zr=Rs;function Hs(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&$t(e.firstChild)&&(r-=Ur(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Qe(e.lastChild)?n+=Wr(e,t).length:nt(e)&&(n-=rt(e.lastChild,t).length),t.originalText.slice(r,n)}var $u=Hs;function fn(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var js=/^[ \t\n\r\u000c]+/,$s=/^[, \t\n\r\u000c]+/,Ws=/^[^ \t\n\r\u000c]+/,Vs=/[,]+$/,mn=/^\d+$/,Us=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function zs(e){let t=e.length,r,n,u,i,a,s=0,o;function l(h){let d,m=h.exec(e.substring(s));if(m)return[d]=m,s+=d.length,d}let c=[];for(;;){if(l($s),s>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}o=s,r=l(Ws),n=[],r.slice(-1)===","?(r=r.replace(Vs,""),p()):D()}function D(){for(l(js),u="",i="in descriptor";;){if(a=e.charAt(s),i==="in descriptor")if(fn(a))u&&(n.push(u),u="",i="after descriptor");else if(a===","){s+=1,u&&n.push(u),p();return}else if(a==="(")u+=a,i="in parens";else if(a===""){u&&n.push(u),p();return}else u+=a;else if(i==="in parens")if(a===")")u+=a,i="in descriptor";else if(a===""){n.push(u),p();return}else u+=a;else if(i==="after descriptor"&&!fn(a))if(a===""){p();return}else i="in descriptor",s-=1;s+=1}}function p(){let h=!1,d,m,g,F,f={},C,y,v,w,S;for(F=0;F{u=n(a,s)});let i=await t(e,r,t);return u?q(i):Wt(i)}function Ks(e){if(e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return()=>Ys(de(e.node))}var Wu={width:"w",height:"h",density:"x"},Js=Object.keys(Wu);function Ys(e){let t=Gs(e),r=Js.filter(c=>t.some(D=>Object.prototype.hasOwnProperty.call(D,c)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,u=Wu[n],i=t.map(c=>c.source.value),a=Math.max(...i.map(c=>c.length)),s=t.map(c=>c[n]?String(c[n].value):""),o=s.map(c=>{let D=c.indexOf(".");return D===-1?c.length:D}),l=Math.max(...o);return Wt(et([",",L],i.map((c,D)=>{let p=[c],h=s[D];if(h){let d=a-c.length+1,m=l-o[D],g=" ".repeat(d+m);p.push(bt(g," "),h+u)}return p})))}var Xs=Ks;function Qs(e,t){let{node:r}=e,n=de(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var Zs=Qs;function eo(e,t){let{node:r}=e,n=de(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async u=>Wt(await u(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function to(e,t,r,n){let u=de(r.node),{left:i,operator:a,right:s}=ro(u),o=zr(r,n);return[q(await X(`function _(${i}) {}`,e,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await X(s,e,{parser:o?"__ts_expression":"__js_expression"})]}function ro(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,u=e.match(t);if(!u)return;let i={};if(i.for=u[3].trim(),!i.for)return;let a=O(!1,u[1].trim(),n,""),s=a.match(r);s?(i.alias=a.replace(r,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((l,c)=>!l&&(c===0||o.slice(c+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:u[2],right:i.for}}function no(e,t,r){let{node:n}=r,u=de(n);return X(`type T<${u}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Re)}function uo(e,t,{parseWithTs:r}){return X(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function io(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=e.trim();return t.test(n)||r.test(n)}function ao(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return to;if(n==="generic"&&Lu(r.parent,t))return no;let u=de(r),i=zr(e,t);if(cs(r)||ps(r,t))return a=>uo(u,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>so(u,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>oo(u,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Vu(u,a,{parseWithTs:i})}function so(e,t,{parseWithTs:r}){return io(e)?Vu(e,t,{parseWithTs:r}):X(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Re)}function oo(e,t,{parseWithTs:r}){return X(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},Re)}function Vu(e,t,{parseWithTs:r}){return X(e,t,{parser:r?"__ts_expression":"__js_expression"},Re)}var lo=ao,Uu=/{{(.+?)}}/s;async function co(e,t){let r=[];for(let[n,u]of e.split(Uu).entries())if(n%2===0)r.push(G(u));else try{r.push(q(["{{",we([L,await X(u,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),L,"}}"]))}catch{r.push("{{",G(u),"}}")}return r}function Gr({parser:e}){return(t,r,n)=>X(de(n.node),t,{parser:e,trailingComma:"none"},Re)}var po=Gr({parser:"__ng_action"}),ho=Gr({parser:"__ng_binding"}),Do=Gr({parser:"__ng_directive"});function fo(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return po;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return ho;if(n.startsWith("*"))return Do;let u=de(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Wt(gu(Tu(r,u.trim())),!u.includes("@@"));if(Uu.test(u))return i=>co(u,i)}var mo=fo;function go(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||t.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Xs,eo,Zs,lo,mo]){let u=n(e,t);if(u)return Co(u)}}}function Co(e){return async(t,r,n,u)=>{let i=await e(t,r,n,u);if(i)return i=Or(i,a=>typeof a=="string"?O(!1,a,'"',"""):a),[n.node.rawName,'="',q(i),'"']}}var Fo=go;function vo(e,t,r,n){let{node:u}=r,i=n.originalText.slice(u.sourceSpan.start.offset,u.sourceSpan.end.offset);return/^\s*$/.test(i)?"":X(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1,trailingComma:"none"},Re)}var yo=vo,Eo=new Set(["if","else if","for","switch","case"]);function bo(e,t){let{node:r}=e;switch(r.type){case"element":if(ee(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Hr(r,t)){let n=hn(r,t);return n?async(u,i)=>{let a=$u(r,t),s=/^\s*$/.test(a),o="";return s||(o=await u(Fu(a),{parser:n,__embeddedInHtml:!0}),s=o===""),[ye(r,t),q(gr(e,t,i)),s?"":A,o,s?"":A,mr(r,t),Fe(r,t)]}:void 0}break;case"text":if(ee(r.parent)){let n=hn(r.parent,t);if(n)return async u=>{let i=n==="markdown"?Bu(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let s="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(s="module"),a.__babelSourceType=s}return[Ze,ye(r,t),await u(i,a,{stripTrailingHardline:!0}),Fe(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let u={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(u.parser="__ng_interpolation",u.trailingComma="none"):t.parser==="vue"?u.parser=zr(e,t)?"__vue_ts_expression":"__vue_expression":u.parser="__js_expression",[we([L,await n(r.value,u)]),r.parent.next&&ve(r.parent.next)?" ":L]};break;case"attribute":return Fo(e,t);case"front-matter":return n=>Ls(r,n);case"angularControlFlowBlockParameters":return Eo.has(e.parent.name)?yo:void 0}}var wo=bo;function je(e,t,r){let n=e.node;return Mr(n)?[ye(n,t),G(t.originalText.slice(Rt(n)+(n.prev&&jt(n.prev)?Vr(n).length:0),Ht(n)-(n.next&&ve(n.next)?rt(n,t).length:0))),Fe(n,t)]:r()}function pt(e,t){return H(e)&&H(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?nr(t)?A:L:"":nr(t)?A:I:jt(e)&&(Mr(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&ve(t)?"":!t.isLeadingSpaceSensitive||nr(t)||ve(t)&&e.lastChild&&Qe(e.lastChild)&&e.lastChild.lastChild&&Qe(e.lastChild.lastChild)?A:t.hasLeadingSpaces?L:I}function Kr(e,t,r){let{node:n}=e;if(Eu(n))return[Ze,...e.map(i=>{let a=i.node,s=a.prev?pt(a.prev,a):"";return[s?[s,ct(a.prev)?A:""]:"",je(i,t,r)]},"children")];let u=n.children.map(()=>Symbol(""));return e.map((i,a)=>{let s=i.node;if(H(s)){if(s.prev&&H(s.prev)){let d=pt(s.prev,s);if(d)return ct(s.prev)?[A,A,je(i,t,r)]:[d,je(i,t,r)]}return je(i,t,r)}let o=[],l=[],c=[],D=[],p=s.prev?pt(s.prev,s):"",h=s.next?pt(s,s.next):"";return p&&(ct(s.prev)?o.push(A,A):p===A?o.push(A):H(s.prev)?l.push(p):l.push(bt("",I,{groupId:u[a-1]}))),h&&(ct(s)?H(s.next)&&D.push(A,A):h===A?H(s.next)&&D.push(A):c.push(h)),[...o,q([...l,q([je(i,t,r),...c],{id:u[a]})]),...D]},"children")}function So(e,t,r){let{node:n}=e;if(vu(n,t))return[ye(n,t),q(gr(e,t,r)),G($u(n,t)),...mr(n,t),Fe(n,t)];let u=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=c=>q([q(gr(e,t,r),{id:i}),c,mr(n,t)]),s=c=>u?da(c,{groupId:i}):(ee(n)||Mt(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:we(c),o=()=>u?bt(I,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?L:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?pa(I):I,l=()=>(n.next?ve(n.next):nt(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":u?bt(I,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?L:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":I;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?L:""):a([Ja(n)?Ze:"",s([o(),Kr(e,t,r)]),l()])}var Ao=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ko(e,t,r){let{node:n}=e,u=[];_o(e)&&u.push("} "),u.push("@",n.name),n.parameters&&u.push(" (",q(r("parameters")),")"),u.push(" {");let i=zu(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,u.push(we([A,Kr(e,t,r)])),i&&u.push(A,"}")):i&&u.push("}"),q(u,{shouldBreak:!0})}function zu(e){var t,r;return!(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=Ao.get(e.name))!=null&&r.has(e.next.name))}function _o(e){let{previous:t}=e;return(t==null?void 0:t.type)==="angularControlFlowBlock"&&!zu(e.previous)}function Bo(e,t,r){return[we([I,et([";",L],e.map(r,"children"))]),I]}var $e=null;function Ge(e){if($e!==null&&typeof $e.property){let t=$e;return $e=Ge.prototype=null,t}return $e=Ge.prototype=e??Object.create(null),new Ge}var xo=10;for(let e=0;e<=xo;e++)Ge();function To(e){return Ge(e)}function Lo(e,t="type"){To(e);function r(n){let u=n[t],i=e[u];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:n});return i}return r}var No=Lo,qo={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[]},Po=qo,Io=No(Po),Oo=Io;function Mo(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return G(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[q(Kr(e,t,r)),A];case"element":case"ieConditionalComment":return So(e,t,r);case"angularControlFlowBlock":return ko(e,t,r);case"angularControlFlowBlockParameters":return Bo(e,t,r);case"angularControlFlowBlockParameter":return ce.trim(n.expression);case"ieConditionalStartComment":case"ieConditionalEndComment":return[mt(n),ft(n)];case"interpolation":return[mt(n,t),...e.map(r,"children"),ft(n,t)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),s=a?n.value.replace(i,""):n.value;return[G(s),a?A:""]}let u=Fa([ye(n,t),...Tu(n),Fe(n,t)]);return Array.isArray(u)?gu(u):u}case"docType":return[q([mt(n,t)," ",O(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),ft(n,t)];case"comment":return[ye(n,t),G(t.originalText.slice(Rt(n),Ht(n))),Fe(n,t)];case"attribute":{if(n.value===null)return n.rawName;let u=xu(n.value),i=ba(u,'"');return[n.rawName,"=",i,G(i==='"'?O(!1,u,'"',"""):O(!1,u,"'","'")),i]}case"cdata":default:throw new ya(n,"HTML")}}var Ro={preprocess:_s,print:Mo,insertPragma:xs,massageAstNode:La,embed:wo,getVisitorKeys:Oo},Ho=Ro,Gu={};pu(Gu,{angular:()=>jl,html:()=>Hl,lwc:()=>Wl,vue:()=>$l});var gn;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(gn||(gn={}));var Cn;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(Cn||(Cn={}));var Fn={name:"custom-elements"},vn={name:"no-errors-schema"},ge;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"})(ge||(ge={}));var yn;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(yn||(yn={}));var z;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"})(z||(z={}));function Vt(e){if(e[0]!=":")return[null,e];let t=e.indexOf(":",1);if(t===-1)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function En(e){return Vt(e)[1]==="ng-container"}function bn(e){return Vt(e)[1]==="ng-content"}function gt(e){return e===null?null:Vt(e)[0]}function St(e,t){return e?`:${e}:${t}`:t}var Ct;function wn(){return Ct||(Ct={},ht(ge.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ht(ge.STYLE,["*|style"]),ht(ge.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),ht(ge.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Ct}function ht(e,t){for(let r of t)Ct[r.toLowerCase()]=e}var jo=class{},$o="boolean",Wo="number",Vo="string",Uo="object",zo=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Ku=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Go=Array.from(Ku).reduce((e,[t,r])=>(e.set(t,r),e),new Map),Ko=class extends jo{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,zo.forEach(e=>{let t=new Map,r=new Set,[n,u]=e.split("|"),i=u.split(","),[a,s]=n.split("^");a.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),t),this._eventSchema.set(l.toLowerCase(),r)});let o=s&&this._schema.get(s.toLowerCase());if(o){for(let[l,c]of o)t.set(l,c);for(let l of this._eventSchema.get(s.toLowerCase()))r.add(l)}i.forEach(l=>{if(l.length>0)switch(l[0]){case"*":r.add(l.substring(1));break;case"!":t.set(l.substring(1),$o);break;case"#":t.set(l.substring(1),Wo);break;case"%":t.set(l.substring(1),Uo);break;default:t.set(l,Vo)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===vn.name))return!0;if(e.indexOf("-")>-1){if(En(e)||bn(e))return!1;if(r.some(n=>n.name===Fn.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===vn.name)||e.indexOf("-")>-1&&(En(e)||bn(e)||t.some(r=>r.name===Fn.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=wn()[e+"|"+t];return n||(n=wn()["*|"+t],n||ge.NONE)}getMappedPropName(e){return Ku.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>Go.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Ds(e)}normalizeAnimationStyleValue(e,t,r){let n="",u=r.toString().trim(),i=null;if(Jo(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(i=`Please provide a CSS unit value for ${t}:${r}`)}return{error:i,value:u+n}}};function Jo(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var E=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=z.PARSABLE_DATA,closedByParent:n=!1,isVoid:u=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:a=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(o=>this.closedByChildren[o]=!0),this.isVoid=u,this.closedByParent=n||u,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=a,this.canSelfClose=s??u}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Sn,We;function Cr(e){return We||(Sn=new E({canSelfClose:!0}),We=Object.assign(Object.create(null),{base:new E({isVoid:!0}),meta:new E({isVoid:!0}),area:new E({isVoid:!0}),embed:new E({isVoid:!0}),link:new E({isVoid:!0}),img:new E({isVoid:!0}),input:new E({isVoid:!0}),param:new E({isVoid:!0}),hr:new E({isVoid:!0}),br:new E({isVoid:!0}),source:new E({isVoid:!0}),track:new E({isVoid:!0}),wbr:new E({isVoid:!0}),p:new E({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new E({closedByChildren:["tbody","tfoot"]}),tbody:new E({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new E({closedByChildren:["tbody"],closedByParent:!0}),tr:new E({closedByChildren:["tr"],closedByParent:!0}),td:new E({closedByChildren:["td","th"],closedByParent:!0}),th:new E({closedByChildren:["td","th"],closedByParent:!0}),col:new E({isVoid:!0}),svg:new E({implicitNamespacePrefix:"svg"}),foreignObject:new E({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new E({implicitNamespacePrefix:"math"}),li:new E({closedByChildren:["li"],closedByParent:!0}),dt:new E({closedByChildren:["dt","dd"]}),dd:new E({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new E({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new E({closedByChildren:["optgroup"],closedByParent:!0}),option:new E({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new E({ignoreFirstLf:!0}),listing:new E({ignoreFirstLf:!0}),style:new E({contentType:z.RAW_TEXT}),script:new E({contentType:z.RAW_TEXT}),title:new E({contentType:{default:z.ESCAPABLE_RAW_TEXT,svg:z.PARSABLE_DATA}}),textarea:new E({contentType:z.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ko().allKnownElementNames().forEach(t=>{!We[t]&>(t)===null&&(We[t]=new E({canSelfClose:!1}))})),We[e]??Sn}var ut=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Yo=class extends ut{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text"}visit(e,t){return e.visitText(this,t)}},Xo=class extends ut{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}},Qo=class extends ut{constructor(e,t,r,n,u,i){super(n,i),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=u}visit(e,t){return e.visitExpansion(this,t)}},Zo=class{constructor(e,t,r,n,u){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=u}visit(e,t){return e.visitExpansionCase(this,t)}},el=class extends ut{constructor(e,t,r,n,u,i,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=u,this.valueTokens=i,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},oe=class extends ut{constructor(e,t,r,n,u,i=null,a=null,s){super(n,s),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=u,this.endSourceSpan=i,this.nameSpan=a,this.type="element"}visit(e,t){return e.visitElement(this,t)}},tl=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}},rl=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}},Be=class{constructor(e,t,r,n,u,i=null){this.name=e,this.parameters=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=u,this.endSourceSpan=i,this.type="block"}visit(e,t){return e.visitBlock(this,t)}},An=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}};function Ju(e,t,r=null){let n=[],u=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach(i=>{let a=u(i);a&&n.push(a)}),n}var nl=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitChildren(e,t){let r=[],n=this;function u(i){i&&r.push(Ju(n,i,e))}return t(u),Array.prototype.concat.apply([],r)}},At={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ul="";At.ngsp=ul;var il=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function al(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let r=t[0],n=t[1];il.forEach(u=>{if(u.test(r)||u.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var sl=class Yu{static fromArray(t){return t?(al("interpolation",t),new Yu(t[0],t[1])):Xu}constructor(t,r){this.start=t,this.end=r}},Xu=new sl("{{","}}"),ir=class extends Ou{constructor(e,t,r){super(r,e),this.tokenType=t}},ol=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function ll(e,t,r,n={}){let u=new hl(new Iu(e,t),r,n);return u.tokenize(),new ol(Cl(u.tokens),u.errors,u.nonNormalizedIcuExpressions)}var cl=/\r\n?/g;function xe(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function kn(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function pl(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var kt;(function(e){e.HEX="hexadecimal",e.DEC="decimal"})(kt||(kt={}));var ar=class{constructor(e){this.error=e}},hl=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Xu,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(u=>u.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Fl(e,n):new Qu(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0;try{this._cursor.init()}catch(u){this.handleError(u)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(cl,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(30),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>jr(r)?!e:xn(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(_),this._attemptCharCode(41))this._attemptCharCodeUntilFn(_);else{t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Tn);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Dn(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Tn)}}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ml(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new ir("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new ir("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new ir(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new ar(r)}handleError(e){if(e instanceof Jr&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ar)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return gl(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(xe(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==58&&!dl(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(t=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(_n,t===""?0:1);let n=this._cursor.getChars(r);return[t,n]}_consumeTagOpen(e){let t,r,n,u=[];try{if(!$r(this._cursor.peek()))throw this._createError(xe(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),r=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(_);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[a,s]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(_),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(_);let o=this._consumeAttributeValue();u.push({prefix:a,name:s,value:o})}else u.push({prefix:a,name:s});this._attemptCharCodeUntilFn(_)}this._consumeTagOpenEnd()}catch(a){if(a instanceof ar){n?n.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let i=this._getTagContentType(t,r,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(r,t),i===z.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):i===z.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}_consumeRawTextWithTagClose(e,t,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(_),!this._attemptStrCaseInsensitive(e?`${e}:${t}`:t))?!1:(this._attemptCharCodeUntilFn(_),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(xe(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(t)}else{let t=()=>_n(this._cursor.peek());e=this._consumeWithInterpolation(16,17,t,t)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(_),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(_),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(_)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(_),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let u=[];for(;!r();){let a=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(u.join(""))],a),u.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(u.join(""))]),u.length=0,this._consumeEntity(e),this._beginToken(e)):u.push(this._readChar())}this._inInterpolation=!1;let i=this._processCarriageReturns(u.join(""));return this._endToken([i]),i}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);let u=this._cursor.clone(),i=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let s=this._cursor.clone();if(this._isTagStart()){this._cursor=s,n.push(this._getProcessedChars(u,s)),this._endToken(n);return}if(i===null)if(this._attemptStr(this._interpolationConfig.end)){n.push(this._getProcessedChars(u,s)),n.push(this._interpolationConfig.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let o=this._cursor.peek();this._cursor.advance(),o===92?this._cursor.advance():o===i?i=null:!a&&i===null&&Dn(o)&&(i=o)}n.push(this._getProcessedChars(u,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),xn(e.peek()))return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let r=St(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=St(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function _(e){return!jr(e)||e===0}function _n(e){return jr(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function dl(e){return(e<97||12257)}function Dl(e){return e===59||e===0||!hs(e)}function fl(e){return e===59||e===0||!$r(e)}function ml(e){return e!==125}function gl(e,t){return Bn(e)===Bn(t)}function Bn(e){return e>=97&&e<=122?e-97+65:e}function xn(e){return $r(e)||Nu(e)||e===95}function Tn(e){return e!==59&&_(e)}function Cl(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let u=this.locationFromCursor(t),i=this.locationFromCursor(this),a=n!==t?this.locationFromCursor(n):u;return new b(u,i,a)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Jr('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):qu(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new fr(t.file,t.state.offset,t.state.line,t.state.column)}},Fl=class vr extends Qu{constructor(t,r){t instanceof vr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new vr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(dn(t())){let r="",n=0,u=this.clone();for(;dn(t())&&n<3;)u=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=u.internalState}else qu(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),u=parseInt(n,16);if(isNaN(u))throw t.state=t.internalState,new Jr("Invalid hexadecimal escape sequence",t);return u}},Jr=class{constructor(e,t){this.msg=e,this.cursor=t}},R=class Zu extends Ou{static create(t,r,n){return new Zu(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},vl=class{constructor(e,t){this.rootNodes=e,this.errors=t}},yl=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,u){let i=h=>(d,...m)=>h(d.toLowerCase(),...m),a=n?this.getTagDefinition:i(this.getTagDefinition),s=h=>a(h).getContentType(),o=n?u:i(u),l=ll(e,t,u?(h,d,m,g)=>{let F=o(h,d,m,g);return F!==void 0?F:s(h)}:s,r),c=r&&r.canSelfClose||!1,D=r&&r.allowHtmComponentClosingTags||!1,p=new El(l.tokens,a,c,D,n);return p.build(),new vl(p.rootNodes,l.errors.concat(p.errors))}},El=class ei{constructor(t,r,n,u,i){this.tokens=t,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=u,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==30;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._advance();for(let t of this._containerStack)t instanceof Be&&this.errors.push(R.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new b(t.sourceSpan.start,u.sourceSpan.end,t.sourceSpan.fullStart),s=new b(r.sourceSpan.start,u.sourceSpan.end,r.sourceSpan.fullStart);return new Zo(t.parts[0],i.rootNodes,a,t.sourceSpan,s)}_collectExpansionExpTokens(t){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Ln(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ln(n,20))n.pop();else return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===30)return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` +`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,u=t.parts[0];if(u.length>0&&u[0]===` +`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(u=u.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[u]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)t=this._advance(),r.push(t),t.type===8?u+=t.parts.join("").replace(/&([^;]+);/g,Nn):t.type===9?u+=t.parts[0]:u+=t.parts.join("");if(u.length>0){let i=t.sourceSpan;this._addToParent(new Yo(u,new b(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let t=this._getContainer();t instanceof oe&&this.getTagDefinition(t.name).isVoid&&this._containerStack.pop()}_consumeStartTag(t){let[r,n]=t.parts,u=[];for(;this._peek.type===14;)u.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let h=this.getTagDefinition(i);this.canSelfClose||h.canSelfClose||gt(i)!==null||h.isVoid||this.errors.push(R.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let s=this._peek.sourceSpan.fullStart,o=new b(t.sourceSpan.start,s,t.sourceSpan.fullStart),l=new b(t.sourceSpan.start,s,t.sourceSpan.fullStart),c=new b(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),D=new oe(i,u,[],o,l,void 0,c),p=this._getContainer();this._pushContainer(D,p instanceof oe&&this.getTagDefinition(p.name).isClosedByChild(D.name)),a?this._popContainer(i,oe,o):t.type===4&&(this._popContainer(i,oe,null),this.errors.push(R.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeEndTag(t){let r=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t.parts[0],t.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(R.create(r,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(r,oe,t.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(R.create(r,t.sourceSpan,n))}}_popContainer(t,r,n){let u=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(gt(a.name)?a.name===t:(t==null||a.name.toLowerCase()===t.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!u;(a instanceof Be||a instanceof oe&&!this.getTagDefinition(a.name).closedByParent)&&(u=!0)}return!1}_consumeAttr(t){let r=St(t.parts[0],t.parts[1]),n=t.sourceSpan.end,u;this._peek.type===15&&(u=this._advance());let i="",a=[],s,o;if(this._peek.type===16)for(s=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let c=this._advance();a.push(c),c.type===17?i+=c.parts.join("").replace(/&([^;]+);/g,Nn):c.type===9?i+=c.parts[0]:i+=c.parts.join(""),o=n=c.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let l=s&&o&&new b((u==null?void 0:u.sourceSpan.start)??s.start,o,(u==null?void 0:u.sourceSpan.fullStart)??s.fullStart);return new el(r,i,new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===28;){let s=this._advance();r.push(new An(s.parts[0],s.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,u=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Be(t.parts[0],r,[],u,i);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,Be,t.sourceSpan)||this.errors.push(R.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===28;){let s=this._advance();r.push(new An(s.parts[0],s.sourceSpan))}let n=this._peek.sourceSpan.fullStart,u=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Be(t.parts[0],r,[],u,i);this._pushContainer(a,!1),this._popContainer(null,Be,null),this.errors.push(R.create(t.parts[0],u,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let t=this._containerStack.length-1;t>-1;t--)if(this._containerStack[t]instanceof oe)return this._containerStack[t];return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r,n){if(t===""&&(t=this.getTagDefinition(r).implicitNamespacePrefix||"",t===""&&n!=null)){let u=Vt(n.name)[1];this.getTagDefinition(u).preventNamespaceInheritance||(t=gt(n.name))}return St(t,r)}};function Ln(e,t){return e.length>0&&e[e.length-1]===t}function Nn(e,t){return At[t]!==void 0?At[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var bl=class extends yl{constructor(){super(Cr)}parse(e,t,r,n=!1,u){return super.parse(e,t,r,n,u)}},sr=null,wl=()=>(sr||(sr=new bl),sr);function qn(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:u=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1}=t;return wl().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a},u,i)}var Sl=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Al(e){let t=e.match(Sl);if(!t)return{content:e};let{startDelimiter:r,language:n,value:u="",endDelimiter:i}=t.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:e};let[s]=t;return{frontMatter:{type:"front-matter",lang:a,value:u,startDelimiter:r,endDelimiter:i,raw:s.replace(/\n$/,"")},content:O(!1,s,/[^\n]/g," ")+e.slice(s.length)}}var kl=Al;function _l(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Bl=_l,xl=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),or=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),dt={attrs:!0,children:!0},Pn=new Set(["parent"]),Tl=class Ue{constructor(t={}){for(let r of new Set([...Pn,...Object.keys(t)]))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in dt&&(r=r.map(n=>this.createChild(n))),!Pn.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in dt){let u=this[n];if(u){let i=Ll(u,a=>a.map(t));r!==u&&(r||(r=new Ue({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in dt||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in dt){let n=this[r];if(n)for(let u=0;u[t.fullName,t.value]))}};function Ll(e,t){let r=e.map(t);return r.some((n,u)=>n!==e[u])?r:e}var Nl=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,t(i,s).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new b(s,o)}]]}})();return{type:"ieConditionalComment",complete:l,children:c,condition:O(!1,u.trim(),/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new b(e.sourceSpan.start,s),endSourceSpan:new b(o,e.sourceSpan.end)}}function Il(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:O(!1,n.trim(),/\s+/g," "),sourceSpan:e.sourceSpan}}function Ol(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function Ml(e){if(e.type==="block"){if(e.name=O(!1,e.name.toLowerCase(),/\s+/g," ").trim(),e.type="angularControlFlowBlock",!Hu(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new b(e.parameters[0].sourceSpan.start,Pt(!1,e.parameters,-1).sourceSpan.end)}}}function ti(e,t,r){let{name:n,canSelfClose:u=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:l}=t,{rootNodes:c,errors:D}=qn(e,{canSelfClose:u,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:o,getTagContentType:l?(...f)=>l(...f)?z.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0});if(n==="vue"){if(c.some(v=>v.type==="docType"&&v.value==="html"||v.type==="element"&&v.name.toLowerCase()==="html"))return ti(e,ni,r);let f,C=()=>f??(f=qn(e,{canSelfClose:u,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:o})),y=v=>C().rootNodes.find(({startSourceSpan:w})=>w&&w.start.offset===v.startSourceSpan.start.offset)??v;for(let[v,w]of c.entries()){let{endSourceSpan:S,startSourceSpan:x}=w;if(S===null)D=C().errors,c[v]=y(w);else if(Rl(w,r)){let K=C().errors.find(W=>W.span.start.offset>x.start.offset&&W.span.start.offset0&&In(D[0]);let p=f=>{let C=f.name.startsWith(":")?f.name.slice(1).split(":")[0]:null,y=f.nameSpan.toString(),v=C!==null&&y.startsWith(`${C}:`),w=v?y.slice(C.length+1):y;f.name=w,f.namespace=C,f.hasExplicitNamespace=v},h=f=>{switch(f.type){case"element":p(f);for(let C of f.attrs)p(C),C.valueSpan?(C.value=C.valueSpan.toString(),/["']/.test(C.value[0])&&(C.value=C.value.slice(1,-1))):C.value=null;break;case"comment":f.value=f.sourceSpan.toString().slice(4,-3);break;case"text":f.value=f.sourceSpan.toString();break}},d=(f,C)=>{let y=f.toLowerCase();return C(y)?y:f},m=f=>{if(f.type==="element"&&(i&&(!f.namespace||f.namespace===f.tagDefinition.implicitNamespacePrefix||Xe(f))&&(f.name=d(f.name,C=>xl.has(C))),a))for(let C of f.attrs)C.namespace||(C.name=d(C.name,y=>or.has(f.name)&&(or.get("*").has(y)||or.get(f.name).has(y))))},g=f=>{f.sourceSpan&&f.endSourceSpan&&(f.sourceSpan=new b(f.sourceSpan.start,f.endSourceSpan.end))},F=f=>{if(f.type==="element"){let C=Cr(o?f.name:f.name.toLowerCase());!f.namespace||f.namespace===C.implicitNamespacePrefix||Xe(f)?f.tagDefinition=C:f.tagDefinition=Cr("")}};return Ju(new class extends nl{visit(f){h(f),F(f),m(f),g(f)}},c),c}function Rl(e,t){var r;if(e.type!=="element"||e.name!=="template")return!1;let n=(r=e.attrs.find(u=>u.name==="lang"))==null?void 0:r.value;return!n||Ot(t,{language:n})==="html"}function In(e){let{msg:t,span:{start:r,end:n}}=e;throw Bl(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function ri(e,t,r={},n=!0){let{frontMatter:u,content:i}=n?kl(e):{frontMatter:null,content:e},a=new Iu(e,r.filepath),s=new fr(a,0,0,0),o=s.moveBy(e.length),l={type:"root",sourceSpan:new b(s,o),children:ti(i,t,r)};if(u){let p=new fr(a,0,0,0),h=p.moveBy(u.raw.length);u.sourceSpan=new b(p,h),l.children.unshift(u)}let c=new Tl(l),D=(p,h)=>{let{offset:d}=h,m=O(!1,e.slice(0,d),/[^\n\r]/g," "),g=ri(m+p,t,r,!1);g.sourceSpan=new b(h,Pt(!1,g.children,-1).sourceSpan.end);let F=g.children[0];return F.length===d?g.children.shift():(F.sourceSpan=new b(F.sourceSpan.start.moveBy(d),F.sourceSpan.end),F.value=F.value.slice(d)),g};return c.walk(p=>{if(p.type==="comment"){let h=ql(p,D);h&&p.parent.replaceChild(p,h)}Ml(p)}),c}function Ut(e){return{parse:(t,r)=>ri(t,e,r),hasPragma:Bs,astFormat:"html",locStart:Rt,locEnd:Ht}}var ni={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Hl=Ut(ni),jl=Ut({name:"angular"}),$l=Ut({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:u,value:i})=>u==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),Wl=Ut({name:"lwc",canSelfClose:!1}),Vl=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],On={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Mn="HTML",Ul={bracketSameLine:On.bracketSameLine,htmlWhitespaceSensitivity:{category:Mn,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:On.singleAttributePerLine,vueIndentScriptAndStyle:{category:Mn,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},zl=Ul,Gl={html:Ho},Kl=du,Jl=Object.create,zt=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Xl=Object.getOwnPropertyNames,Ql=Object.getPrototypeOf,Zl=Object.prototype.hasOwnProperty,ec=(e,t)=>()=>(e&&(t=e(e=0)),t),Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kt=(e,t)=>{for(var r in t)zt(e,r,{get:t[r],enumerable:!0})},ui=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Xl(t))!Zl.call(e,u)&&u!==r&&zt(e,u,{get:()=>t[u],enumerable:!(n=Yl(t,u))||n.enumerable});return e},it=(e,t,r)=>(r=e!=null?Jl(Ql(e)):{},ui(zt(r,"default",{value:e,enumerable:!0}),e)),tc=e=>ui(zt({},"__esModule",{value:!0}),e),rc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Rn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ve=(e,t,r)=>(rc(e,t,"access private method"),r),nc=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(u,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.callback;typeof a=="function"&&(s=a,a={}),this.options=a;var o=this;function l(f){return s?(setTimeout(function(){s(void 0,f)},0),!0):f}u=this.castInput(u),i=this.castInput(i),u=this.removeEmpty(this.tokenize(u)),i=this.removeEmpty(this.tokenize(i));var c=i.length,D=u.length,p=1,h=c+D;a.maxEditLength&&(h=Math.min(h,a.maxEditLength));var d=[{newPos:-1,components:[]}],m=this.extractCommon(d[0],i,u,0);if(d[0].newPos+1>=c&&m+1>=D)return l([{value:this.join(i),count:i.length}]);function g(){for(var f=-1*p;f<=p;f+=2){var C=void 0,y=d[f-1],v=d[f+1],w=(v?v.newPos:0)-f;y&&(d[f-1]=void 0);var S=y&&y.newPos+1=c&&w+1>=D)return l(r(o,C.components,i,u,o.useLongestToken));d[f]=C}p++}if(s)(function f(){setTimeout(function(){if(p>h)return s();g()||f()},0)})();else for(;p<=h;){var F=g();if(F)return F}},pushComponent:function(u,i,a){var s=u[u.length-1];s&&s.added===i&&s.removed===a?u[u.length-1]={count:s.count+1,added:i,removed:a}:u.push({count:1,added:i,removed:a})},extractCommon:function(u,i,a,s){for(var o=i.length,l=a.length,c=u.newPos,D=c-s,p=0;c+1F.length?C:F}),h.value=u.join(m)}else h.value=u.join(a.slice(D,D+h.count));D+=h.count,h.added||(p+=h.count)}}var g=i[c-1];return c>1&&typeof g.value=="string"&&(g.added||g.removed)&&u.equals("",g.value)&&(i[c-2].value+=g.value,i.pop()),i}function n(u){return{newPos:u.newPos,components:u.components.slice(0)}}}),uc=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=u,e.arrayDiff=void 0;var t=r(nc());function r(i){return i&&i.__esModule?i:{default:i}}var n=new t.default;e.arrayDiff=n,n.tokenize=function(i){return i.slice()},n.join=n.removeEmpty=function(i){return i};function u(i,a,s){return n.diff(i,a,s)}}),Jt=Gt((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r}),ii={};Kt(ii,{default:()=>si,shouldHighlight:()=>ai});var ai,si,ic=ec(()=>{ai=()=>!1,si=String}),ac=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=D,e.default=p;var t=(ic(),tc(ii)),r=u(Jt(),!0);function n(h){if(typeof WeakMap!="function")return null;var d=new WeakMap,m=new WeakMap;return(n=function(g){return g?m:d})(h)}function u(h,d){if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=n(d);if(m&&m.has(h))return m.get(h);var g={__proto__:null},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in h)if(f!=="default"&&Object.prototype.hasOwnProperty.call(h,f)){var C=F?Object.getOwnPropertyDescriptor(h,f):null;C&&(C.get||C.set)?Object.defineProperty(g,f,C):g[f]=h[f]}return g.default=h,m&&m.set(h,g),g}var i;function a(h){return h?(i!=null||(i=new r.default.constructor({enabled:!0,level:1})),i):r.default}var s=!1;function o(h){return{gutter:h.grey,marker:h.red.bold,message:h.red.bold}}var l=/\r\n|[\n\r\u2028\u2029]/;function c(h,d,m){let g=Object.assign({column:0,line:-1},h.start),F=Object.assign({},g,h.end),{linesAbove:f=2,linesBelow:C=3}=m||{},y=g.line,v=g.column,w=F.line,S=F.column,x=Math.max(y-(f+1),0),K=Math.min(d.length,w+C);y===-1&&(x=0),w===-1&&(K=d.length);let W=w-y,T={};if(W)for(let V=0;V<=W;V++){let J=V+y;if(!v)T[J]=!0;else if(V===0){let fe=d[J-1].length;T[J]=[v,fe-v+1]}else if(V===W)T[J]=[0,S];else{let fe=d[J-V].length;T[J]=[0,fe]}}else v===S?v?T[y]=[v,0]:T[y]=!0:T[y]=[v,S-v];return{start:x,end:K,markerLines:T}}function D(h,d,m={}){let g=(m.highlightCode||m.forceColor)&&(0,t.shouldHighlight)(m),F=a(m.forceColor),f=o(F),C=(T,V)=>g?T(V):V,y=h.split(l),{start:v,end:w,markerLines:S}=c(d,y,m),x=d.start&&typeof d.start.column=="number",K=String(w).length,W=(g?(0,t.default)(h,m):h).split(l,w).slice(v,w).map((T,V)=>{let J=v+1+V,fe=` ${` ${J}`.slice(-K)} |`,ot=S[J],Ji=!S[J+1];if(ot){let rr="";if(Array.isArray(ot)){let Yi=T.slice(0,Math.max(ot[0]-1,0)).replace(/[^\t]/g," "),Xi=ot[1]||1;rr=[` + `,C(f.gutter,fe.replace(/\d/g," "))," ",Yi,C(f.marker,"^").repeat(Xi)].join(""),Ji&&m.message&&(rr+=" "+C(f.message,m.message))}return[C(f.marker,">"),C(f.gutter,fe),T.length>0?` ${T}`:"",rr].join("")}else return` ${C(f.gutter,fe)}${T.length>0?` ${T}`:""}`}).join(` +`);return m.message&&!x&&(W=`${" ".repeat(K+1)}${m.message} +${W}`),g?F.reset(W):W}function p(h,d,m,g={}){if(!s){s=!0;let F="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let f=new Error(F);f.name="DeprecationWarning",console.warn(new Error(F))}}return m=Math.max(m,0),D(h,{start:{column:m,line:d}},g)}}),oi={};Kt(oi,{__debug:()=>rh,check:()=>eh,doc:()=>zi,format:()=>Ki,formatWithCursor:()=>Gi,getSupportInfo:()=>th,util:()=>Ui,version:()=>Z2});var sc=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Yt=sc,oc=it(uc()),Se="string",pe="array",Ae="cursor",te="indent",re="align",ne="trim",P="group",j="fill",M="if-break",ue="indent-if-break",ie="line-suffix",ae="line-suffix-boundary",B="line",Q="label",$="break-parent",li=new Set([Ae,te,re,ne,P,j,M,ue,ie,ae,B,Q,$]);function lc(e){if(typeof e=="string")return Se;if(Array.isArray(e))return pe;if(!e)return;let{type:t}=e;if(li.has(t))return t}var ke=lc,cc=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function pc(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(ke(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=cc([...li].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var hc=class extends Error{constructor(t){super(pc(t));_e(this,"name","InvalidDocError");this.doc=t}},Ie=hc,Hn={};function dc(e,t,r,n){let u=[e];for(;u.length>0;){let i=u.pop();if(i===Hn){r(u.pop());continue}r&&u.push(i,Hn);let a=ke(i);if(!a)throw new Ie(i);if((t==null?void 0:t(i))!==!1)switch(a){case pe:case j:{let s=a===pe?i:i.parts;for(let o=s.length,l=o-1;l>=0;--l)u.push(s[l]);break}case M:u.push(i.flatContents,i.breakContents);break;case P:if(n&&i.expandedStates)for(let s=i.expandedStates.length,o=s-1;o>=0;--o)u.push(i.expandedStates[o]);else u.push(i.contents);break;case re:case te:case ue:case Q:case ie:u.push(i.contents);break;case Se:case Ae:case ne:case ae:case B:case $:break;default:throw new Ie(i)}}}var Yr=dc,Dc=()=>{},fc=Dc;function _t(e){return{type:te,contents:e}}function Oe(e,t){return{type:re,contents:t,n:e}}function ci(e,t={}){return fc(t.expandedStates),{type:P,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function mc(e){return Oe(Number.NEGATIVE_INFINITY,e)}function gc(e){return Oe({type:"root"},e)}function Cc(e){return Oe(-1,e)}function Fc(e,t){return ci(e[0],{...t,expandedStates:e})}function pi(e){return{type:j,parts:e}}function vc(e,t="",r={}){return{type:M,breakContents:e,flatContents:t,groupId:r.groupId}}function yc(e,t){return{type:ue,contents:e,groupId:t.groupId,negate:t.negate}}function yr(e){return{type:ie,contents:e}}var Ec={type:ae},Xt={type:$},bc={type:ne},Xr={type:B,hard:!0},hi={type:B,hard:!0,literal:!0},di={type:B},wc={type:B,soft:!0},Ce=[Xr,Xt],Di=[hi,Xt],Er={type:Ae};function fi(e,t){let r=[];for(let n=0;n0){for(let u=0;u{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},k=Ac;function kc(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` +`?"crlf":"cr":"lf"}function Qr(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}function gi(e,t){let r;switch(t){case` +`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r +`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function _c(e){return Yt(!1,e,/\r\n?/g,` +`)}var Bc=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function xc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Tc(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Lc=e=>!(xc(e)||Tc(e)),Nc=/[^\x20-\x7F]/;function qc(e){if(!e)return 0;if(!Nc.test(e))return e.length;e=e.replace(Bc()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Lc(n)?1:2)}return t}var Zr=qc,Pc=e=>{if(Array.isArray(e))return e;if(e.type!==j)throw new Error(`Expect doc to be 'array' or '${j}'.`);return e.parts};function Qt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(ke(i)){case pe:return t(i.map(n));case j:return t({...i,parts:i.parts.map(n)});case M:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case P:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case re:case te:case ue:case Q:case ie:return t({...i,contents:n(i.contents)});case Se:case Ae:case ne:case ae:case B:case $:return t(i);default:throw new Ie(i)}}}function en(e,t,r){let n=r,u=!1;function i(a){if(u)return!1;let s=t(a);s!==void 0&&(u=!0,n=s)}return Yr(e,i),n}function Ic(e){if(e.type===P&&e.break||e.type===B&&e.hard||e.type===$)return!0}function Oc(e){return en(e,Ic,!1)}function jn(e){if(e.length>0){let t=k(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Mc(e){let t=new Set,r=[];function n(i){if(i.type===$&&jn(r),i.type===P){if(r.push(i),t.has(i))return!1;t.add(i)}}function u(i){i.type===P&&r.pop().break&&jn(r)}Yr(e,n,u,!0)}function Rc(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===M?e.flatContents:e}function Hc(e){return Qt(e,Rc)}function $n(e){for(e=[...e];e.length>=2&&k(!1,e,-2).type===B&&k(!1,e,-1).type===$;)e.length-=2;if(e.length>0){let t=Ke(k(!1,e,-1));e[e.length-1]=t}return e}function Ke(e){switch(ke(e)){case re:case te:case ue:case P:case ie:case Q:{let t=Ke(e.contents);return{...e,contents:t}}case M:return{...e,breakContents:Ke(e.breakContents),flatContents:Ke(e.flatContents)};case j:return{...e,parts:$n(e.parts)};case pe:return $n(e);case Se:return e.replace(/[\n\r]*$/,"");case Ae:case ne:case ae:case B:case $:break;default:throw new Ie(e)}return e}function Ci(e){return Ke($c(e))}function jc(e){switch(ke(e)){case j:if(e.parts.every(t=>t===""))return"";break;case P:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===P&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case re:case te:case ue:case ie:if(!e.contents)return"";break;case M:if(!e.flatContents&&!e.breakContents)return"";break;case pe:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof k(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Se:case Ae:case ne:case ae:case B:case Q:case $:break;default:throw new Ie(e)}return e}function $c(e){return Qt(e,t=>jc(t))}function Wc(e,t=Di){return Qt(e,r=>typeof r=="string"?fi(t,r.split(` +`)):r)}function Vc(e){if(e.type===B)return!0}function Uc(e){return en(e,Vc,!1)}function Fi(e,t){return e.type===Q?{...e,contents:t(e.contents)}:t(e)}var N=Symbol("MODE_BREAK"),Y=Symbol("MODE_FLAT"),Je=Symbol("cursor");function vi(){return{value:"",length:0,queue:[]}}function zc(e,t){return br(e,{type:"indent"},t)}function Gc(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||vi():t<0?br(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:br(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function br(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,a=0,s=0;for(let d of n)switch(d.type){case"indent":c(),r.useTabs?o(1):l(r.tabWidth);break;case"stringAlign":c(),u+=d.n,i+=d.n.length;break;case"numberAlign":a+=1,s+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:u,length:i,queue:n};function o(d){u+=" ".repeat(d),i+=r.tabWidth*d}function l(d){u+=" ".repeat(d),i+=d}function c(){r.useTabs?D():p()}function D(){a>0&&o(a),h()}function p(){s>0&&l(s),h()}function h(){a=0,s=0}}function wr(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===Je){r++;continue}for(let i=u.length-1;i>=0;i--){let a=u[i];if(a===" "||a===" ")t++;else{e[n]=u.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Je);return t}function Dt(e,t,r,n,u,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=[e],o=[];for(;r>=0;){if(s.length===0){if(a===0)return!0;s.push(t[--a]);continue}let{mode:l,doc:c}=s.pop();switch(ke(c)){case Se:o.push(c),r-=Zr(c);break;case pe:case j:{let D=Pc(c);for(let p=D.length-1;p>=0;p--)s.push({mode:l,doc:D[p]});break}case te:case re:case ue:case Q:s.push({mode:l,doc:c.contents});break;case ne:r+=wr(o);break;case P:{if(i&&c.break)return!1;let D=c.break?N:l,p=c.expandedStates&&D===N?k(!1,c.expandedStates,-1):c.contents;s.push({mode:D,doc:p});break}case M:{let D=(c.groupId?u[c.groupId]||Y:l)===N?c.breakContents:c.flatContents;D&&s.push({mode:l,doc:D});break}case B:if(l===N||c.hard)return!0;c.soft||(o.push(" "),r--);break;case ie:n=!0;break;case ae:if(n)return!1;break}}return!1}function Zt(e,t){let r={},n=t.printWidth,u=Qr(t.endOfLine),i=0,a=[{ind:vi(),mode:N,doc:e}],s=[],o=!1,l=[],c=0;for(Mc(e);a.length>0;){let{ind:p,mode:h,doc:d}=a.pop();switch(ke(d)){case Se:{let m=u!==` +`?Yt(!1,d,` +`,u):d;s.push(m),a.length>0&&(i+=Zr(m));break}case pe:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case Ae:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Je),c++;break;case te:a.push({ind:zc(p,t),mode:h,doc:d.contents});break;case re:a.push({ind:Gc(p,d.n,t),mode:h,doc:d.contents});break;case ne:i-=wr(s);break;case P:switch(h){case Y:if(!o){a.push({ind:p,mode:d.break?N:Y,doc:d.contents});break}case N:{o=!1;let m={ind:p,mode:Y,doc:d.contents},g=n-i,F=l.length>0;if(!d.break&&Dt(m,a,g,F,r))a.push(m);else if(d.expandedStates){let f=k(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:N,doc:f});break}else for(let C=1;C=d.expandedStates.length){a.push({ind:p,mode:N,doc:f});break}else{let y=d.expandedStates[C],v={ind:p,mode:Y,doc:y};if(Dt(v,a,g,F,r)){a.push(v);break}}}else a.push({ind:p,mode:N,doc:d.contents});break}}d.id&&(r[d.id]=k(!1,a,-1).mode);break;case j:{let m=n-i,{parts:g}=d;if(g.length===0)break;let[F,f]=g,C={ind:p,mode:Y,doc:F},y={ind:p,mode:N,doc:F},v=Dt(C,[],m,l.length>0,r,!0);if(g.length===1){v?a.push(C):a.push(y);break}let w={ind:p,mode:Y,doc:f},S={ind:p,mode:N,doc:f};if(g.length===2){v?a.push(w,C):a.push(S,y);break}g.splice(0,2);let x={ind:p,mode:h,doc:pi(g)},K=g[0];Dt({ind:p,mode:Y,doc:[F,f,K]},[],m,l.length>0,r,!0)?a.push(x,w,C):v?a.push(x,S,C):a.push(x,S,y);break}case M:case ue:{let m=d.groupId?r[d.groupId]:h;if(m===N){let g=d.type===M?d.breakContents:d.negate?d.contents:_t(d.contents);g&&a.push({ind:p,mode:h,doc:g})}if(m===Y){let g=d.type===M?d.flatContents:d.negate?_t(d.contents):d.contents;g&&a.push({ind:p,mode:h,doc:g})}break}case ie:l.push({ind:p,mode:h,doc:d.contents});break;case ae:l.length>0&&a.push({ind:p,mode:h,doc:Xr});break;case B:switch(h){case Y:if(d.hard)o=!0;else{d.soft||(s.push(" "),i+=1);break}case N:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(s.push(u,p.root.value),i=p.root.length):(s.push(u),i=0):(i-=wr(s),s.push(u+p.value),i=p.length);break}break;case Q:a.push({ind:p,mode:h,doc:d.contents});break;case $:break;default:throw new Ie(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let D=s.indexOf(Je);if(D!==-1){let p=s.indexOf(Je,D+1),h=s.slice(0,D).join(""),d=s.slice(D+1,p).join(""),m=s.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:s.join("")}}function Z(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Z(n));else{let u=Z(n);u!==""&&r.push(u)}return r}return e.type===M?{...e,breakContents:Z(e.breakContents),flatContents:Z(e.flatContents)}:e.type===P?{...e,contents:Z(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Z)}:e.type===j?{type:"fill",parts:e.parts.map(Z)}:e.contents?{...e,contents:Z(e.contents)}:e}function Kc(e){let t=Object.create(null),r=new Set;return n(Z(e));function n(i,a,s){var o,l;if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let c=i.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(i.type===B){let c=((o=s==null?void 0:s[a+1])==null?void 0:o.type)===$;return i.literal?c?"literalline":"literallineWithoutBreakParent":i.hard?c?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===$)return((l=s==null?void 0:s[a-1])==null?void 0:l.type)===B&&s[a-1].hard?void 0:"breakParent";if(i.type===ne)return"trim";if(i.type===te)return"indent("+n(i.contents)+")";if(i.type===re)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===M)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${u(i.groupId)} }`:"")+")";if(i.type===ue){let c=[];i.negate&&c.push("negate: true"),i.groupId&&c.push(`groupId: ${u(i.groupId)}`);let D=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${D})`}if(i.type===P){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${u(i.id)}`);let D=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(p=>n(p)).join(",")}]${D})`:`group(${n(i.contents)}${D})`}if(i.type===j)return`fill([${i.parts.map(c=>n(c)).join(", ")}])`;if(i.type===ie)return"lineSuffix("+n(i.contents)+")";if(i.type===ae)return"lineSuffixBoundary";if(i.type===Q)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}function u(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let s=0;;s++){let o=a+(s>0?` #${s}`:"");if(!r.has(o))return r.add(o),t[i]=`Symbol.for(${JSON.stringify(o)})`}}}function Jc(e,t,r=0){let n=0;for(let u=r;utypeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Ei({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of Qc(Object.assign({},...e.map(({options:i})=>i),Yc)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(i=>!i.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Xc(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(i=>{var a;return((a=i.defaultOptions)==null?void 0:a[u.name])!==void 0}).map(i=>[i.name,i.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Xc(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let i of u.parsers)if(!n.has(i)){n.add(i);let a=r.find(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,i)),s=u.name;a!=null&&a.name&&(s+=` (plugin: ${a.name})`),yield{value:i,description:s}}}}function Qc(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=k(!1,u.default,-1).value),t.push(u)}return t}var Zc=e=>String(e).split(/[/\\]/).pop();function Vn(e,t){if(!t)return;let r=Zc(t).toLowerCase();return e.find(n=>{var u,i;return((u=n.extensions)==null?void 0:u.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function ep(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function tp(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=ep(r,t.language)??Vn(r,t.physicalFile)??Vn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var rp=tp,Te={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Te.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Te.key(r)}: ${Te.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Te.value({[e]:t})},Un=it(Jt()),np=(e,t,{descriptor:r})=>{let n=[`${Un.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Un.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Le=it(Jt()),bi=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ft=Symbol.for("vnopts.VALUE_UNCHANGED"),zn=" ".repeat(2),up=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Gn(e,t,n,r.descriptor)),u&&i.push([Gn(e,t,u.title,r.descriptor)].concat(u.values.map(a=>wi(a,r.loggerPrintWidth))).join(` +`)),Si(i,r.loggerPrintWidth)};function Gn(e,t,r,n){return[`Invalid ${Le.default.red(n.key(e))} value.`,`Expected ${Le.default.blue(r)},`,`but received ${t===bi?Le.default.gray("nothing"):Le.default.red(n.value(t))}.`].join(" ")}function wi({text:e,list:t},r){let n=[];return e&&n.push(`- ${Le.default.blue(e)}`),t&&n.push([`- ${Le.default.blue(t.title)}:`].concat(t.values.map(u=>wi(u,r-zn.length).replace(/^|\n/g,`$&${zn}`))).join(` +`)),Si(n,r)}function Si(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,i]=e.map(a=>a.split(` +`,1)[0].length);return u>t&&u>i?n:r}var Kn=it(Jt()),lr=[],Jn=[];function ip(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let i=0;for(;is?l>s?s+1:l:l>o?o+1:l;return s}var Ai=(e,t,{descriptor:r,logger:n,schemas:u})=>{let i=[`Ignored unknown option ${Kn.default.yellow(r.pair({key:e,value:t}))}.`],a=Object.keys(u).sort().find(s=>ip(e,s)<3);a&&i.push(`Did you mean ${Kn.default.blue(r.key(a))}?`),n.warn(i.join(" "))},ap=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function sp(e,t){let r=new e(t),n=Object.create(r);for(let u of ap)u in t&&(n[u]=op(t[u],r,De.prototype[u].length));return n}var De=class{static create(e){return sp(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Ft}};function op(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var lp=class extends De{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},cp=class extends De{expected(){return"anything"}validate(){return!0}},pp=class extends De{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let u=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);u!==!0&&r.push(u.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let u=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);u!==!1&&r.push(...u.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let u=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...u.map(Yn))}return r}redirect(e,t){let r=[],n=[];for(let u of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(u,t),u);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(Yn))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Yn({from:e,to:t}){return{from:[e],to:t}}var hp=class extends De{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function dp(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function Dp(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function fp(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function mp(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function gp(e){return e===Math.floor(e)}function Cp(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Fp(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Xn(e){return e===void 0?{}:e}function ki(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return vp((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(ki)}}:{text:t}}function Qn(e,t){return e===!0?!0:e===!1?{value:t}:e}function Zn(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function eu(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Sr(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>eu(r,t)):[eu(e,t)]}function tu(e,t){let r=Sr(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function vp(e,t){if(!e)throw new Error(t)}var yp=class extends De{constructor(e){super(e),this._choices=Dp(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(({hidden:u})=>!u).map(u=>u.value).sort(Cp).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Ep=class extends De{expected(){return"a number"}validate(e,t){return typeof e=="number"}},bp=class extends Ep{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&gp(e)}},ru=class extends De{expected(){return"a string"}validate(e){return typeof e=="string"}},wp=Te,Sp=Ai,Ap=up,kp=np,_p=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:u=wp,unknown:i=Sp,invalid:a=Ap,deprecated:s=kp,missing:o=()=>!1,required:l=()=>!1,preprocess:c=p=>p,postprocess:D=()=>Ft}=t||{};this._utils={descriptor:u,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:dp(e,"name"),normalizeDefaultResult:Xn,normalizeExpectedResult:ki,normalizeDeprecatedResult:Zn,normalizeForwardResult:Sr,normalizeRedirectResult:tu,normalizeValidateResult:Qn},this._unknownHandler=i,this._invalidHandler=Fp(a),this._deprecatedHandler=s,this._identifyMissing=(p,h)=>!(p in h)||o(p,h),this._identifyRequired=l,this._preprocess=c,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=fp()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let u=r.shift(),i=this._applyNormalization(u,t);r.push(...i)}};n();for(let u of Object.keys(this._utils.schemas)){let i=this._utils.schemas[u];if(!(u in t)){let a=Xn(i.default(this._utils));"value"in a&&r.push({[u]:a.value})}}n();for(let u of Object.keys(this._utils.schemas)){if(!(u in t))continue;let i=this._utils.schemas[u],a=t[u],s=i.postprocess(a,this._utils);s!==Ft&&(this._applyValidation(s,u,i),t[u]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(e);for(let i of n){let a=this._utils.schemas[i],s=a.preprocess(e[i],this._utils);this._applyValidation(s,i,a);let o=({from:D,to:p})=>{r.push(typeof p=="string"?{[p]:D}:{[p.key]:p.value})},l=({value:D,redirectTo:p})=>{let h=Zn(a.deprecated(D,this._utils),s,!0);if(h!==!1)if(h===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,p,this._utils));else for(let{value:d}of h){let m={key:i,value:d};if(!this._hasDeprecationWarned(m)){let g=typeof p=="string"?{key:p,value:d}:p;this._utils.logger.warn(this._deprecatedHandler(m,g,this._utils))}}};Sr(a.forward(s,this._utils),s).forEach(o);let c=tu(a.redirect(s,this._utils),s);if(c.redirect.forEach(o),"remain"in c){let D=c.remain;t[i]=i in t?a.overlap(t[i],D,this._utils):D,l({value:D})}for(let{from:D,to:p}of c.redirect)l({value:D,redirectTo:p})}for(let i of u){let a=e[i];this._applyUnknownHandler(i,a,t,(s,o)=>{r.push({[s]:o})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,bi,this._utils)}_partitionOptionKeys(e){let[t,r]=mp(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Qn(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let u=this._unknownHandler(e,t,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let a=u[i];i in this._utils.schemas?n(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Ft){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let u of r){let i=t.override[u];this._applyValidation(i,u,this._utils.schemas[u]),e[u]=i}for(let u of n){let i=t.override[u];this._applyUnknownHandler(u,i,e,(a,s)=>{let o=this._utils.schemas[a];this._applyValidation(s,a,o),e[a]=s})}}}}},cr;function Bp(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:i,descriptor:a}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Te;let s=u?Array.isArray(u)?(p,h)=>u.includes(p)?{[p]:h}:void 0:(p,h)=>({[p]:h}):(p,h,d)=>{let{_:m,...g}=d.schemas;return Ai(p,h,{...d,schemas:g})},o=xp(t,{isCLI:n,FlagSchema:i}),l=new _p(o,{logger:r,unknown:s,descriptor:a}),c=r!==!1;c&&cr&&(l._hasDeprecationWarned=cr);let D=l.normalize(e);return c&&(cr=l._hasDeprecationWarned),D}function xp(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(cp.create({name:"_"}));for(let u of e)n.push(Tp(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(lp.create({name:u.alias,sourceName:u.name}));return n}function Tp(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,i={name:u},a,s={};switch(e.type){case"int":a=bp,t&&(i.preprocess=Number);break;case"string":a=ru;break;case"choice":a=yp,i.choices=e.choices.map(o=>o!=null&&o.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":a=hp;break;case"flag":a=n,i.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":a=ru;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(o,l,c)=>e.exception(o)||l.validate(o,c):i.validate=(o,l,c)=>o===void 0||l.validate(o,c),e.redirect&&(s.redirect=o=>o?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let o=i.preprocess||(l=>l);i.preprocess=(l,c,D)=>c.preprocess(o(Array.isArray(l)?k(!1,l,-1):l),D)}return e.array?pp.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...s,valueSchema:a.create(i)}):a.create({...i,...s})}var Lp=Bp;function _i(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let u=e[n];if(u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t))return u}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new yi(r)}function Np(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let u=e[n];if(u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t))return u}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new yi(r)}function Bi({plugins:e,parser:t}){let r=_i(e,t);return xi(r,t)}function xi(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function qp(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var nu={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Pp(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=rp(n,{physicalFile:n.filepath}),!n.parser)throw new Wn(`No parser could be inferred for file "${n.filepath}".`)}else throw new Wn("No parser and no file path given, couldn't infer a parser.");let u=Ei({plugins:e.plugins,showDeprecated:!0}).options,i={...nu,...Object.fromEntries(u.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},a=_i(n.plugins,n.parser),s=await xi(a,n.parser);n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;let o=(r=a.printers)!=null&&r[s.astFormat]?a:Np(n.plugins,s.astFormat),l=await qp(o,s.astFormat);n.printer=l;let c=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,p])=>p!==void 0)):{},D={...i,...c};for(let[p,h]of Object.entries(D))(n[p]===null||n[p]===void 0)&&(n[p]=h);return n.parser==="json"&&(n.trailingComma="none"),Lp(n,u,{passThrough:Object.keys(nu),...t})}var He=Pp,Ti=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Ip=e=>Object.keys(e).filter(t=>!Ti.has(t));function Op(e){return e?t=>e(t,Ti):Ip}var er=Op;function Mp(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let u=er(n),i=r.ignoredProperties??new Set;return a(e);function a(s,o){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(p=>a(p,o)).filter(Boolean);let l={},c=new Set(u(s));for(let p in s)!Object.prototype.hasOwnProperty.call(s,p)||i.has(p)||(c.has(p)?l[p]=a(s[p],s):l[p]=s[p]);let D=r(s,l,o);if(D!==null)return D??l}}var Rp=Mp,Hp=it(ac());async function jp(e,t){let r=await Bi(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(i){$p(i,e)}return{text:n,ast:u}}function $p(e,t){let{loc:r}=e;if(r){let n=(0,Hp.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var at=jp,vt,Ar,ze,yt,Wp=class{constructor(e){Rn(this,vt),Rn(this,ze),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return k(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:k(!1,this.stack,-2)}get node(){return k(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=k(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Ve(this,ze,yt).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?k(!1,e,-2):null}getValue(){return k(!1,this.stack,-1)}getNode(e=0){let t=Ve(this,vt,Ar).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,u=k(!1,r,-1);for(let i of t)u=u[i],r.push(i,u);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=Ve(this,vt,Ar).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,u=k(!1,r,-1);for(let i of t)u=u[i],r.push(i,u);try{for(let i=0;i{r[u]=e(n,u,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let u of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),u&&!u(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of Ve(this,ze,yt).call(this))if(e(t))return t}hasAncestor(e){for(let t of Ve(this,ze,yt).call(this))if(e(t))return!0;return!1}};vt=new WeakSet,Ar=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},ze=new WeakSet,yt=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var Vp=Wp,Li=new Proxy(()=>{},{get:()=>Li}),kr=Li;function st(e){return(t,r,n)=>{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a0}var Jp=Kp;function Yp(e){return e!==null&&typeof e=="object"}var Xp=Yp;function*Pi(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=i=>Xp(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)u(s)&&(yield s);else u(a)&&(yield a)}}function*Qp(e,t){let r=[e];for(let n=0;n20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function rn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Zp(e)}function Ne(e,t){t.leading=!0,t.trailing=!1,rn(e,t)}function Et(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),rn(e,t)}function qe(e,t){t.leading=!1,t.trailing=!0,rn(e,t)}var pr=new WeakMap;function nn(e,t){if(pr.has(e))return pr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:i,locEnd:a}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Pi(e,{getVisitorKeys:er(u)})]).flatMap(o=>n(o)?[o]:nn(o,t));return s.sort((o,l)=>i(o)-i(l)||a(o)-a(l)),pr.set(e,s),s}function Ii(e,t,r,n){let{locStart:u,locEnd:i}=r,a=u(t),s=i(t),o=nn(e,r),l,c,D=0,p=o.length;for(;D>1,d=o[h],m=u(d),g=i(d);if(m<=a&&s<=g)return Ii(d,t,r,d);if(g<=a){l=d,D=h+1;continue}if(s<=m){c=d,p=h;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:h}=n,d=dr(h,t,r);l&&dr(h,l,r)!==d&&(l=null),c&&dr(h,c,r)!==d&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var hr=()=>!1;function e2(e,t){let{comments:r}=e;if(delete e.comments,!Jp(r)||!t.printer.canAttachComment)return;let n=[],{locStart:u,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:s={}},originalText:o}=t,{ownLine:l=hr,endOfLine:c=hr,remaining:D=hr}=s,p=r.map((h,d)=>({...Ii(e,h,t),comment:h,text:o,options:t,ast:e,isLastComment:r.length-1===d}));for(let[h,d]of p.entries()){let{comment:m,precedingNode:g,enclosingNode:F,followingNode:f,text:C,options:y,ast:v,isLastComment:w}=d;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(u(m)-u(v)<=0){Ne(v,m);continue}if(i(m)-i(v)>=0){qe(v,m);continue}}let S;if(a?S=[d]:(m.enclosingNode=F,m.precedingNode=g,m.followingNode=f,S=[m,C,y,v,w]),t2(C,y,p,h))m.placement="ownLine",l(...S)||(f?Ne(f,m):g?qe(g,m):Et(F||v,m));else if(r2(C,y,p,h))m.placement="endOfLine",c(...S)||(g?qe(g,m):f?Ne(f,m):Et(F||v,m));else if(m.placement="remaining",!D(...S))if(g&&f){let x=n.length;x>0&&n[x-1].followingNode!==f&&uu(n,y),n.push(d)}else g?qe(g,m):f?Ne(f,m):Et(F||v,m)}if(uu(n,t),!a)for(let h of r)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}var Oi=e=>!/[\S\n\u2028\u2029]/.test(e);function t2(e,t,r,n){let{comment:u,precedingNode:i}=r[n],{locStart:a,locEnd:s}=t,o=a(u);if(i)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:D}=r[l];if(D!==i||!Oi(e.slice(s(c),o)))break;o=a(c)}return le(e,o,{backwards:!0})}function r2(e,t,r,n){let{comment:u,followingNode:i}=r[n],{locStart:a,locEnd:s}=t,o=s(u);if(i)for(let l=n+1;l0;--o){let{comment:l,precedingNode:c,followingNode:D}=e[o-1];kr.strictEqual(c,i),kr.strictEqual(D,a);let p=t.originalText.slice(t.locEnd(l),s);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,p,t))??/^[\s(]*$/.test(p))s=t.locStart(l);else break}for(let[l,{comment:c}]of e.entries())l1&&l.comments.sort((c,D)=>t.locStart(c)-t.locStart(D));e.length=0}function dr(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(s)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let s=e.node;if(n!=null&&n.has(s))return;let{leading:o,trailing:l}=s;o?u.push(u2(e,t)):l&&(a=i2(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function s2(e,t,r){let{leading:n,trailing:u}=a2(e,r);return!n&&!u?t:Fi(t,i=>[n,i,u])}function o2(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function l2(e,t,r,n,u){let{embeddedLanguageFormatting:i,printer:{embed:a,hasPrettierIgnore:s=()=>!1,getVisitorKeys:o}}=r;if(!a||i!=="auto")return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let l=er(a.getVisitorKeys??o),c=[];h();let D=e.stack;for(let{print:d,node:m,pathStack:g}of c)try{e.stack=g;let F=await d(p,t,e,r);F&&u.set(m,F)}catch(F){if(globalThis.PRETTIER_DEBUG)throw F}e.stack=D;function p(d,m){return c2(d,m,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||s(e))return;for(let g of l(d))Array.isArray(d[g])?e.each(h,g):e.call(h,g);let m=a(e,r);if(m){if(typeof m=="function"){c.push({print:m,node:d,pathStack:[...e.stack]});return}u.set(d,m)}}}async function c2(e,t,r,n){let u=await He({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await at(e,u),a=await n(i,u);return Ci(a)}function p2(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:i,[Symbol.for("printedComments")]:a}=t,{node:s}=e,o=u(s),l=i(s);for(let c of n)u(c)>=o&&i(c)<=l&&a.add(c);return r.slice(o,l)}var h2=p2;async function tr(e,t){({ast:e}=await Ri(e,t));let r=new Map,n=new Vp(e),u=new Map;await l2(n,a,t,tr,u);let i=await iu(n,t,a,void 0,u);return o2(t),i;function a(o,l){return o===void 0||o===n?s(l):Array.isArray(o)?n.call(()=>s(l),...o):n.call(()=>s(l),o)}function s(o){let l=n.node;if(l==null)return"";let c=l&&typeof l=="object"&&o===void 0;if(c&&r.has(l))return r.get(l);let D=iu(n,t,a,o,u);return c&&r.set(l,D),D}}function iu(e,t,r,n,u){var i;let{node:a}=e,{printer:s}=t,o;return(i=s.hasPrettierIgnore)!=null&&i.call(s,e)?o=h2(e,t):u.has(a)?o=u.get(a):o=s.print(e,t,r,n),a===t.cursorNode&&(o=Fi(o,l=>[Er,l,Er])),s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(o=s2(e,o,t)),o}async function Ri(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,e2(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var d2=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function D2(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>Hi.has(u.type)&&n.has(u))}function au(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function f2(e,t,{locStart:r,locEnd:n}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let a=r(e.node);for(let o of au(t.parentNodes))if(r(o)>=a)i=o;else break;let s=n(t.node);for(let o of au(e.parentNodes)){if(n(o)<=s)u=o;else break;if(u===i)break}return{startNode:u,endNode:i}}function _r(e,t,r,n,u=[],i){let{locStart:a,locEnd:s}=r,o=a(e),l=s(e);if(!(t>l||tn);let s=e.slice(n,u).search(/\S/),o=s===-1;if(!o)for(n+=s;u>n&&!/\S/.test(e[u-1]);--u);let l=_r(r,n,t,(h,d)=>su(t,h,d),[],"rangeStart"),c=o?l:_r(r,u,t,h=>su(t,h),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let D,p;if(d2(t)){let h=D2(l,c);D=h,p=h}else({startNode:D,endNode:p}=f2(l,c,t));return{rangeStart:Math.min(i(D),i(p)),rangeEnd:Math.max(a(D),a(p))}}function F2(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,i=er(t.printer.getVisitorKeys),a=o=>n(o)<=r&&u(o)>=r,s=e;for(let o of Qp(e,{getVisitorKeys:i,filter:a}))s=o;return s}var v2=F2,ji="\uFEFF",ou=Symbol("cursor");async function $i(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await at(e,t);t.cursorOffset>=0&&(t.cursorNode=v2(n,t));let i=await tr(n,t);r>0&&(i=mi([Ce,i],r,t.tabWidth));let a=Zt(i,t);if(r>0){let o=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(o)),a.formatted=o+Qr(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let o,l,c,D,p;if(t.cursorNode&&a.cursorNodeText?(o=t.locStart(t.cursorNode),l=u.slice(o,t.locEnd(t.cursorNode)),c=t.cursorOffset-o,D=a.cursorNodeStart,p=a.cursorNodeText):(o=0,l=u,c=t.cursorOffset,D=0,p=a.formatted),l===p)return{formatted:a.formatted,cursorOffset:D+c,comments:s};let h=l.split("");h.splice(c,0,ou);let d=p.split(""),m=(0,oc.diffArrays)(h,d),g=D;for(let F of m)if(F.removed){if(F.value.includes(ou))break}else g+=F.count;return{formatted:a.formatted,cursorOffset:g,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function y2(e,t){let{ast:r,text:n}=await at(e,t),{rangeStart:u,rangeEnd:i}=C2(n,t,r),a=n.slice(u,i),s=Math.min(u,n.lastIndexOf(` +`,u)+1),o=n.slice(s,u).match(/^\s*/)[0],l=tn(o,t.tabWidth),c=await $i(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},l),D=c.formatted.trimEnd(),{cursorOffset:p}=t;p>i?p+=D.length-a.length:c.cursorOffset>=0&&(p=c.cursorOffset+u);let h=n.slice(0,u)+D+n.slice(i);if(t.endOfLine!=="lf"){let d=Qr(t.endOfLine);p>=0&&d===`\r +`&&(p+=gi(h.slice(0,p),` +`)),h=Yt(!1,h,` +`,d)}return{formatted:h,cursorOffset:p,comments:c.comments}}function Dr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function lu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=Dr(e,r,-1),n=Dr(e,n,0),u=Dr(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function Wi(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i}=lu(e,t),a=e.charAt(0)===ji;if(a&&(e=e.slice(1),r--,n--,u--),i==="auto"&&(i=kc(e)),e.includes("\r")){let s=o=>gi(e.slice(0,Math.max(o,0)),`\r +`);r-=s(r),n-=s(n),u-=s(u),e=_c(e)}return{hasBOM:a,text:e,options:lu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i})}}async function cu(e,t){let r=await Bi(t);return!r.hasPragma||r.hasPragma(e)}async function Vi(e,t){let{hasBOM:r,text:n,options:u}=Wi(e,await He(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await cu(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return u.rangeStart>0||u.rangeEnd=0&&i.cursorOffset++),i}async function E2(e,t,r){let{text:n,options:u}=Wi(e,await He(t)),i=await at(n,u);return r&&(r.preprocessForPrint&&(i.ast=await Ri(i.ast,u)),r.massage&&(i.ast=Rp(i.ast,u))),i}async function b2(e,t){t=await He(t);let r=await tr(e,t);return Zt(r,t)}async function w2(e,t){let r=Kc(e),{formatted:n}=await Vi(r,{...t,parser:"__js_expression"});return n}async function S2(e,t){t=await He(t);let{ast:r}=await at(e,t);return tr(r,t)}async function A2(e,t){return Zt(e,await He(t))}var Ui={};Kt(Ui,{addDanglingComment:()=>Et,addLeadingComment:()=>Ne,addTrailingComment:()=>qe,getAlignmentSize:()=>tn,getIndentSize:()=>P2,getMaxContinuousCount:()=>N2,getNextNonSpaceNonCommentCharacter:()=>j2,getNextNonSpaceNonCommentCharacterIndex:()=>U2,getStringWidth:()=>Zr,hasNewline:()=>le,hasNewlineInRange:()=>O2,hasSpaces:()=>R2,isNextLineEmpty:()=>J2,isNextLineEmptyAfterIndex:()=>ln,isPreviousLineEmpty:()=>G2,makeString:()=>W2,skip:()=>st,skipEverythingButNewLine:()=>qi,skipInlineComment:()=>an,skipNewline:()=>Ee,skipSpaces:()=>he,skipToLineEnd:()=>Ni,skipTrailingComment:()=>sn,skipWhitespace:()=>Up});function k2(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var N2=L2;function q2(e,t){let r=e.lastIndexOf(` +`);return r===-1?0:tn(e.slice(r+1).match(/^[\t ]*/)[0],t)}var P2=q2;function I2(e,t,r){for(let n=t;na===n?a:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var W2=$2;function V2(e,t,r){return on(e,r(t))}function U2(e,t){return arguments.length===2||typeof t=="number"?on(e,t):V2(...arguments)}function z2(e,t,r){return un(e,r(t))}function G2(e,t){return arguments.length===2||typeof t=="number"?un(e,t):z2(...arguments)}function K2(e,t,r){return ln(e,r(t))}function J2(e,t){return arguments.length===2||typeof t=="number"?ln(e,t):K2(...arguments)}var zi={};Kt(zi,{builders:()=>Y2,printer:()=>X2,utils:()=>Q2});var Y2={join:fi,line:di,softline:wc,hardline:Ce,literalline:Di,group:ci,conditionalGroup:Fc,fill:pi,lineSuffix:yr,lineSuffixBoundary:Ec,cursor:Er,breakParent:Xt,ifBreak:vc,trim:bc,indent:_t,indentIfBreak:yc,align:Oe,addAlignmentToDoc:mi,markAsRoot:gc,dedentToRoot:mc,dedent:Cc,hardlineWithoutBreakParent:Xr,literallineWithoutBreakParent:hi,label:Sc,concat:e=>e},X2={printDocToString:Zt},Q2={willBreak:Oc,traverseDoc:Yr,findInDoc:en,mapDoc:Qt,removeLines:Hc,stripTrailingHardline:Ci,replaceEndOfLine:Wc,canBreak:Uc},Z2="3.1.1";function me(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var Gi=me(Vi);async function Ki(e,t){let{formatted:r}=await Gi(e,{...t,cursorOffset:-1});return r}async function eh(e,t){return await Ki(e,t)===e}var th=me(Ei,0),rh={parse:me(E2),formatAST:me(b2),formatDoc:me(w2),printToDoc:me(S2),printDocToString:me(A2)},nh=oi;function uh(e){for(var t=[],r=1;re===!1?t:e==="dedent"||e===!0?uh(t):(await nh.format(t,{parser:e,plugins:[Kl],htmlWhitespaceSensitivity:"ignore"})).trim());export{Dh as formatter}; diff --git a/storybook/assets/iframe-CNsWcalC.js b/storybook/assets/iframe-CNsWcalC.js new file mode 100644 index 0000000..103641d --- /dev/null +++ b/storybook/assets/iframe-CNsWcalC.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["./Renderer.stories-BsB34jwK.js","./index-CDs2tPxN.js","./entry-preview-DRtwuanT.js","./react-18-CqnZ7Kye.js","./entry-preview-docs-eVh9VKdd.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js","./preview-TCN6m6T-.js","./index-DXimoRZY.js","./preview-CwqMn10d.js","./preview-BAz7FMXc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const f="modulepreload",R=function(_,s){return new URL(_,s).href},E={},o=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const t=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),O=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.all(c.map(i=>{if(i=R(i,l),i in E)return;E[i]=!0;const u=i.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(!!l)for(let a=t.length-1;a>=0;a--){const m=t[a];if(m.href===i&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${p}`))return;const n=document.createElement("link");if(n.rel=u?"stylesheet":f,u||(n.as="script",n.crossOrigin=""),n.href=i,O&&n.setAttribute("nonce",O),document.head.appendChild(n),u)return new Promise((a,m)=>{n.addEventListener("load",a),n.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>s()).catch(t=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=t,window.dispatchEvent(r),!r.defaultPrevented)throw t})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,d=P({page:"preview"});T.setChannel(d);window.__STORYBOOK_ADDONS_CHANNEL__=d;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=d);const w={"./src/stories/Renderer.stories.js":async()=>o(()=>import("./Renderer.stories-BsB34jwK.js"),__vite__mapDeps([0,1]),import.meta.url)};async function L(_){return w[_]()}const{composeConfigs:v,PreviewWeb:h,ClientApi:I}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const _=await Promise.all([o(()=>import("./entry-preview-DRtwuanT.js"),__vite__mapDeps([2,1,3]),import.meta.url),o(()=>import("./entry-preview-docs-eVh9VKdd.js"),__vite__mapDeps([4,5,1,6]),import.meta.url),o(()=>import("./preview-TCN6m6T-.js"),__vite__mapDeps([7,8]),import.meta.url),o(()=>import("./preview-VkJbG7Ig.js"),[],import.meta.url),o(()=>import("./preview-UNaZQn6M.js"),[],import.meta.url),o(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([9,6]),import.meta.url),o(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),o(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),o(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([10,6]),import.meta.url),o(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),o(()=>import("./preview-BcrGd3F6.js"),[],import.meta.url),o(()=>import("./preview-CIRcjyVj.js"),[],import.meta.url)]);return v(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new h(L,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{o as _}; diff --git a/storybook/assets/index-CDs2tPxN.js b/storybook/assets/index-CDs2tPxN.js new file mode 100644 index 0000000..1deed48 --- /dev/null +++ b/storybook/assets/index-CDs2tPxN.js @@ -0,0 +1,9 @@ +function T(e,t){for(var r=0;rn[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),r}var O={exports:{}},o={};/** + * @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 y=Symbol.for("react.element"),V=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),w=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=w&&e[w]||e["@@iterator"],typeof e=="function"?e:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,k={};function p(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||R}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function C(){}C.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||R}var b=v.prototype=new C;b.constructor=v;$(b,p.prototype);b.isPureReactComponent=!0;var E=Array.isArray,P=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var n,u={},c=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(c=""+t.key),t)P.call(t,n)&&!x.hasOwnProperty(n)&&(u[n]=t[n]);var f=arguments.length-2;if(f===1)u.children=r;else if(1()=>(r||e((r={exports:{}}).exports,r),r.exports),d=(e,r,i,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of h(r))!x.call(e,a)&&a!==i&&g(e,a,{get:()=>r[a],enumerable:!(u=A(r,a))||u.enumerable});return e},S=(e,r,i)=>(i=e!=null?j(m(e)):{},d(!e||!e.__esModule?g(i,"default",{value:e,enumerable:!0}):i,e)),U=P(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var r=Object.prototype.toString,i=Object.getPrototypeOf,u=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,c){return function f(t,n,o){var y,p,l,s=r.call(t),w=r.call(n);if(t===n)return!0;if(t==null||n==null)return!1;if(o.indexOf(t)>-1&&o.indexOf(n)>-1)return!0;if(o.push(t,n),s!=w||(y=u(t),p=u(n),y.length!=p.length||y.some(function(O){return!f(t[O],n[O],o)})))return!1;switch(s.slice(8,-1)){case"Symbol":return t.valueOf()==n.valueOf();case"Date":case"Number":return+t==+n||+t!=+t&&+n!=+n;case"RegExp":case"Function":case"String":case"Boolean":return""+t==""+n;case"Set":case"Map":y=t.entries(),p=n.entries();do if(!f((l=y.next()).value,p.next().value,o))return!1;while(!l.done);return!0;case"ArrayBuffer":t=new Uint8Array(t),n=new Uint8Array(n);case"DataView":t=new Uint8Array(t.buffer),n=new Uint8Array(n.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(t.length!=n.length)return!1;for(l=0;le.map(r=>typeof r<"u").filter(Boolean).length,q=(e,r)=>{let{exists:i,eq:u,neq:a,truthy:c}=e;if(v([i,u,a,c])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:i,eq:u,neq:a})}`);if(typeof u<"u")return(0,b.isEqual)(r,u);if(typeof a<"u")return!(0,b.isEqual)(r,a);if(typeof i<"u"){let f=typeof r<"u";return i?f:!f}return typeof c>"u"||c?!!r:!r},E=(e,r,i)=>{if(!e.if)return!0;let{arg:u,global:a}=e.if;if(v([u,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:u,global:a})}`);let c=u?r[u]:i[a];return q(e.if,c)},I=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");export{I as O,E as P}; diff --git a/storybook/assets/index-DrFu-skq.js b/storybook/assets/index-DrFu-skq.js new file mode 100644 index 0000000..37c96b4 --- /dev/null +++ b/storybook/assets/index-DrFu-skq.js @@ -0,0 +1,6 @@ +function l(o){for(var f=[],i=1;i{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}},m="outline";function s(i){return $` + ${i} body { + outline: 1px solid #2980b9 !important; + } + + ${i} article { + outline: 1px solid #3498db !important; + } + + ${i} nav { + outline: 1px solid #0088c3 !important; + } + + ${i} aside { + outline: 1px solid #33a0ce !important; + } + + ${i} section { + outline: 1px solid #66b8da !important; + } + + ${i} header { + outline: 1px solid #99cfe7 !important; + } + + ${i} footer { + outline: 1px solid #cce7f3 !important; + } + + ${i} h1 { + outline: 1px solid #162544 !important; + } + + ${i} h2 { + outline: 1px solid #314e6e !important; + } + + ${i} h3 { + outline: 1px solid #3e5e85 !important; + } + + ${i} h4 { + outline: 1px solid #449baf !important; + } + + ${i} h5 { + outline: 1px solid #c7d1cb !important; + } + + ${i} h6 { + outline: 1px solid #4371d0 !important; + } + + ${i} main { + outline: 1px solid #2f4f90 !important; + } + + ${i} address { + outline: 1px solid #1a2c51 !important; + } + + ${i} div { + outline: 1px solid #036cdb !important; + } + + ${i} p { + outline: 1px solid #ac050b !important; + } + + ${i} hr { + outline: 1px solid #ff063f !important; + } + + ${i} pre { + outline: 1px solid #850440 !important; + } + + ${i} blockquote { + outline: 1px solid #f1b8e7 !important; + } + + ${i} ol { + outline: 1px solid #ff050c !important; + } + + ${i} ul { + outline: 1px solid #d90416 !important; + } + + ${i} li { + outline: 1px solid #d90416 !important; + } + + ${i} dl { + outline: 1px solid #fd3427 !important; + } + + ${i} dt { + outline: 1px solid #ff0043 !important; + } + + ${i} dd { + outline: 1px solid #e80174 !important; + } + + ${i} figure { + outline: 1px solid #ff00bb !important; + } + + ${i} figcaption { + outline: 1px solid #bf0032 !important; + } + + ${i} table { + outline: 1px solid #00cc99 !important; + } + + ${i} caption { + outline: 1px solid #37ffc4 !important; + } + + ${i} thead { + outline: 1px solid #98daca !important; + } + + ${i} tbody { + outline: 1px solid #64a7a0 !important; + } + + ${i} tfoot { + outline: 1px solid #22746b !important; + } + + ${i} tr { + outline: 1px solid #86c0b2 !important; + } + + ${i} th { + outline: 1px solid #a1e7d6 !important; + } + + ${i} td { + outline: 1px solid #3f5a54 !important; + } + + ${i} col { + outline: 1px solid #6c9a8f !important; + } + + ${i} colgroup { + outline: 1px solid #6c9a9d !important; + } + + ${i} button { + outline: 1px solid #da8301 !important; + } + + ${i} datalist { + outline: 1px solid #c06000 !important; + } + + ${i} fieldset { + outline: 1px solid #d95100 !important; + } + + ${i} form { + outline: 1px solid #d23600 !important; + } + + ${i} input { + outline: 1px solid #fca600 !important; + } + + ${i} keygen { + outline: 1px solid #b31e00 !important; + } + + ${i} label { + outline: 1px solid #ee8900 !important; + } + + ${i} legend { + outline: 1px solid #de6d00 !important; + } + + ${i} meter { + outline: 1px solid #e8630c !important; + } + + ${i} optgroup { + outline: 1px solid #b33600 !important; + } + + ${i} option { + outline: 1px solid #ff8a00 !important; + } + + ${i} output { + outline: 1px solid #ff9619 !important; + } + + ${i} progress { + outline: 1px solid #e57c00 !important; + } + + ${i} select { + outline: 1px solid #e26e0f !important; + } + + ${i} textarea { + outline: 1px solid #cc5400 !important; + } + + ${i} details { + outline: 1px solid #33848f !important; + } + + ${i} summary { + outline: 1px solid #60a1a6 !important; + } + + ${i} command { + outline: 1px solid #438da1 !important; + } + + ${i} menu { + outline: 1px solid #449da6 !important; + } + + ${i} del { + outline: 1px solid #bf0000 !important; + } + + ${i} ins { + outline: 1px solid #400000 !important; + } + + ${i} img { + outline: 1px solid #22746b !important; + } + + ${i} iframe { + outline: 1px solid #64a7a0 !important; + } + + ${i} embed { + outline: 1px solid #98daca !important; + } + + ${i} object { + outline: 1px solid #00cc99 !important; + } + + ${i} param { + outline: 1px solid #37ffc4 !important; + } + + ${i} video { + outline: 1px solid #6ee866 !important; + } + + ${i} audio { + outline: 1px solid #027353 !important; + } + + ${i} source { + outline: 1px solid #012426 !important; + } + + ${i} canvas { + outline: 1px solid #a2f570 !important; + } + + ${i} track { + outline: 1px solid #59a600 !important; + } + + ${i} map { + outline: 1px solid #7be500 !important; + } + + ${i} area { + outline: 1px solid #305900 !important; + } + + ${i} a { + outline: 1px solid #ff62ab !important; + } + + ${i} em { + outline: 1px solid #800b41 !important; + } + + ${i} strong { + outline: 1px solid #ff1583 !important; + } + + ${i} i { + outline: 1px solid #803156 !important; + } + + ${i} b { + outline: 1px solid #cc1169 !important; + } + + ${i} u { + outline: 1px solid #ff0430 !important; + } + + ${i} s { + outline: 1px solid #f805e3 !important; + } + + ${i} small { + outline: 1px solid #d107b2 !important; + } + + ${i} abbr { + outline: 1px solid #4a0263 !important; + } + + ${i} q { + outline: 1px solid #240018 !important; + } + + ${i} cite { + outline: 1px solid #64003c !important; + } + + ${i} dfn { + outline: 1px solid #b4005a !important; + } + + ${i} sub { + outline: 1px solid #dba0c8 !important; + } + + ${i} sup { + outline: 1px solid #cc0256 !important; + } + + ${i} time { + outline: 1px solid #d6606d !important; + } + + ${i} code { + outline: 1px solid #e04251 !important; + } + + ${i} kbd { + outline: 1px solid #5e001f !important; + } + + ${i} samp { + outline: 1px solid #9c0033 !important; + } + + ${i} var { + outline: 1px solid #d90047 !important; + } + + ${i} mark { + outline: 1px solid #ff0053 !important; + } + + ${i} bdi { + outline: 1px solid #bf3668 !important; + } + + ${i} bdo { + outline: 1px solid #6f1400 !important; + } + + ${i} ruby { + outline: 1px solid #ff7b93 !important; + } + + ${i} rt { + outline: 1px solid #ff2f54 !important; + } + + ${i} rp { + outline: 1px solid #803e49 !important; + } + + ${i} span { + outline: 1px solid #cc2643 !important; + } + + ${i} br { + outline: 1px solid #db687d !important; + } + + ${i} wbr { + outline: 1px solid #db175b !important; + }`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},g=[e],h={[m]:!1};export{g as decorators,h as globals}; diff --git a/storybook/assets/preview-BcrGd3F6.js b/storybook/assets/preview-BcrGd3F6.js new file mode 100644 index 0000000..73b1208 --- /dev/null +++ b/storybook/assets/preview-BcrGd3F6.js @@ -0,0 +1,27 @@ +var Jt=Object.defineProperty;var Xt=(e,r,t)=>r in e?Jt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var xe=(e,r,t)=>(Xt(e,typeof r!="symbol"?r+"":r,t),t);const{addons:Zt}=__STORYBOOK_MODULE_PREVIEW_API__,{once:Qt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:ot,STORY_RENDER_PHASE_CHANGED:er,SET_CURRENT_STORY:tr}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ce}=__STORYBOOK_MODULE_GLOBAL__;var rr=Object.create,Et=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,wt=Object.getOwnPropertyNames,ir=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,ar=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ue=(e,r)=>function(){return r||(0,e[wt(e)[0]])((r={exports:{}}).exports,r),r.exports},cr=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of wt(r))!or.call(e,m)&&m!==t&&Et(e,m,{get:()=>r[m],enumerable:!(l=nr(r,m))||l.enumerable});return e},de=(e,r,t)=>(t=e!=null?rr(ir(e)):{},cr(Et(t,"default",{value:e,enumerable:!0}),e)),ur=ue({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,r){var t=(h=0)=>o=>`\x1B[${38+h};5;${o}m`,l=(h=0)=>(o,a,g)=>`\x1B[${38+h};2;${o};${a};${g}m`;function m(){let h=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[a,g]of Object.entries(o)){for(let[i,y]of Object.entries(g))o[i]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},g[i]=o[i],h.set(y[0],y[1]);Object.defineProperty(o,a,{value:g,enumerable:!1})}return Object.defineProperty(o,"codes",{value:h,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi256=t(),o.color.ansi16m=l(),o.bgColor.ansi256=t(10),o.bgColor.ansi16m=l(10),Object.defineProperties(o,{rgbToAnsi256:{value:(a,g,i)=>a===g&&g===i?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(g/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:a=>{let g=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!g)return[0,0,0];let{colorString:i}=g.groups;i.length===3&&(i=i.split("").map(_=>_+_).join(""));let y=Number.parseInt(i,16);return[y>>16&255,y>>8&255,y&255]},enumerable:!1},hexToAnsi256:{value:a=>o.rgbToAnsi256(...o.hexToRgb(a)),enumerable:!1}}),o}Object.defineProperty(r,"exports",{enumerable:!0,get:m})}}),Be=ue({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=t,e.printIteratorValues=l,e.printListItems=m,e.printObjectProperties=h;var r=(o,a)=>{let g=Object.keys(o),i=a!==null?g.sort(a):g;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(y=>{Object.getOwnPropertyDescriptor(o,y).enumerable&&i.push(y)}),i};function t(o,a,g,i,y,_,p=": "){let b="",s=0,f=o.next();if(!f.done){b+=a.spacingOuter;let d=g+a.indent;for(;!f.done;){if(b+=d,s++===a.maxWidth){b+="…";break}let S=_(f.value[0],a,d,i,y),E=_(f.value[1],a,d,i,y);b+=S+p+E,f=o.next(),f.done?a.min||(b+=","):b+=`,${a.spacingInner}`}b+=a.spacingOuter+g}return b}function l(o,a,g,i,y,_){let p="",b=0,s=o.next();if(!s.done){p+=a.spacingOuter;let f=g+a.indent;for(;!s.done;){if(p+=f,b++===a.maxWidth){p+="…";break}p+=_(s.value,a,f,i,y),s=o.next(),s.done?a.min||(p+=","):p+=`,${a.spacingInner}`}p+=a.spacingOuter+g}return p}function m(o,a,g,i,y,_){let p="";if(o.length){p+=a.spacingOuter;let b=g+a.indent;for(let s=0;s{let f=i.toString();if(f==="ArrayContaining"||f==="ArrayNotContaining")return++p>y.maxDepth?`[${f}]`:`${f+m}[${(0,r.printListItems)(i.sample,y,_,p,b,s)}]`;if(f==="ObjectContaining"||f==="ObjectNotContaining")return++p>y.maxDepth?`[${f}]`:`${f+m}{${(0,r.printObjectProperties)(i.sample,y,_,p,b,s)}}`;if(f==="StringMatching"||f==="StringNotMatching"||f==="StringContaining"||f==="StringNotContaining")return f+m+s(i.sample,y,_,p,b);if(typeof i.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${i.constructor.name} does not implement toAsymmetricMatcher()`);return i.toAsymmetricMatcher()};e.serialize=h;var o=i=>i&&i.$$typeof===l;e.test=o;var a={serialize:h,test:o},g=a;e.default=g}}),sr=ue({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Be(),t=" ",l=["DOMStringMap","NamedNodeMap"],m=/^(HTML\w*Collection|NodeList)$/,h=_=>l.indexOf(_)!==-1||m.test(_),o=_=>_&&_.constructor&&!!_.constructor.name&&h(_.constructor.name);e.test=o;var a=_=>_.constructor.name==="NamedNodeMap",g=(_,p,b,s,f,d)=>{let S=_.constructor.name;return++s>p.maxDepth?`[${S}]`:(p.min?"":S+t)+(l.indexOf(S)!==-1?`{${(0,r.printObjectProperties)(a(_)?Array.from(_).reduce((E,A)=>(E[A.name]=A.value,E),{}):{..._},p,b,s,f,d)}}`:`[${(0,r.printListItems)(Array.from(_),p,b,s,f,d)}]`)};e.serialize=g;var i={serialize:g,test:o},y=i;e.default=y}}),mr=ue({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(t){return t.replace(//g,">")}}}),Ge=ue({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var r=t(mr());function t(i){return i&&i.__esModule?i:{default:i}}var l=(i,y,_,p,b,s,f)=>{let d=p+_.indent,S=_.colors;return i.map(E=>{let A=y[E],T=f(A,_,d,b,s);return typeof A!="string"&&(T.indexOf(` +`)!==-1&&(T=_.spacingOuter+d+T+_.spacingOuter+p),T=`{${T}}`),`${_.spacingInner+p+S.prop.open+E+S.prop.close}=${S.value.open}${T}${S.value.close}`}).join("")};e.printProps=l;var m=(i,y,_,p,b,s)=>i.map(f=>y.spacingOuter+_+(typeof f=="string"?h(f,y):s(f,y,_,p,b))).join("");e.printChildren=m;var h=(i,y)=>{let _=y.colors.content;return _.open+(0,r.default)(i)+_.close};e.printText=h;var o=(i,y)=>{let _=y.colors.comment;return`${_.open}${_.close}`};e.printComment=o;var a=(i,y,_,p,b)=>{let s=p.colors.tag;return`${s.open}<${i}${y&&s.close+y+p.spacingOuter+b+s.open}${_?`>${s.close}${_}${p.spacingOuter}${b}${s.open}${s.close}`};e.printElement=a;var g=(i,y)=>{let _=y.colors.tag;return`${_.open}<${i}${_.close} …${_.open} />${_.close}`};e.printElementAsLeaf=g}}),fr=ue({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Ge(),t=1,l=3,m=8,h=11,o=/^((HTML|SVG)\w*)?Element$/,a=d=>{try{return typeof d.hasAttribute=="function"&&d.hasAttribute("is")}catch{return!1}},g=d=>{let S=d.constructor.name,{nodeType:E,tagName:A}=d,T=typeof A=="string"&&A.includes("-")||a(d);return E===t&&(o.test(S)||T)||E===l&&S==="Text"||E===m&&S==="Comment"||E===h&&S==="DocumentFragment"},i=d=>{var S;return((S=d==null?void 0:d.constructor)==null?void 0:S.name)&&g(d)};e.test=i;function y(d){return d.nodeType===l}function _(d){return d.nodeType===m}function p(d){return d.nodeType===h}var b=(d,S,E,A,T,C)=>{if(y(d))return(0,r.printText)(d.data,S);if(_(d))return(0,r.printComment)(d.data,S);let N=p(d)?"DocumentFragment":d.tagName.toLowerCase();return++A>S.maxDepth?(0,r.printElementAsLeaf)(N,S):(0,r.printElement)(N,(0,r.printProps)(p(d)?[]:Array.from(d.attributes,I=>I.name).sort(),p(d)?{}:Array.from(d.attributes).reduce((I,O)=>(I[O.name]=O.value,I),{}),S,E+S.indent,A,T,C),(0,r.printChildren)(Array.prototype.slice.call(d.childNodes||d.children),S,E+S.indent,A,T,C),S,E)};e.serialize=b;var s={serialize:b,test:i},f=s;e.default=f}}),gr=ue({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Be(),t="@@__IMMUTABLE_ITERABLE__@@",l="@@__IMMUTABLE_LIST__@@",m="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",a="@@__IMMUTABLE_RECORD__@@",g="@@__IMMUTABLE_SEQ__@@",i="@@__IMMUTABLE_SET__@@",y="@@__IMMUTABLE_STACK__@@",_=O=>`Immutable.${O}`,p=O=>`[${O}]`,b=" ",s="…",f=(O,j,B,L,x,z,k)=>++L>j.maxDepth?p(_(k)):`${_(k)+b}{${(0,r.printIteratorEntries)(O.entries(),j,B,L,x,z)}}`;function d(O){let j=0;return{next(){if(j{let k=_(O._name||"Record");return++L>j.maxDepth?p(k):`${k+b}{${(0,r.printIteratorEntries)(d(O),j,B,L,x,z)}}`},E=(O,j,B,L,x,z)=>{let k=_("Seq");return++L>j.maxDepth?p(k):O[m]?`${k+b}{${O._iter||O._object?(0,r.printIteratorEntries)(O.entries(),j,B,L,x,z):s}}`:`${k+b}[${O._iter||O._array||O._collection||O._iterable?(0,r.printIteratorValues)(O.values(),j,B,L,x,z):s}]`},A=(O,j,B,L,x,z,k)=>++L>j.maxDepth?p(_(k)):`${_(k)+b}[${(0,r.printIteratorValues)(O.values(),j,B,L,x,z)}]`,T=(O,j,B,L,x,z)=>O[h]?f(O,j,B,L,x,z,O[o]?"OrderedMap":"Map"):O[l]?A(O,j,B,L,x,z,"List"):O[i]?A(O,j,B,L,x,z,O[o]?"OrderedSet":"Set"):O[y]?A(O,j,B,L,x,z,"Stack"):O[g]?E(O,j,B,L,x,z):S(O,j,B,L,x,z);e.serialize=T;var C=O=>O&&(O[t]===!0||O[a]===!0);e.test=C;var N={serialize:T,test:C},I=N;e.default=I}}),yr=ue({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),g=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),s=Symbol.for("react.offscreen"),f=!1,d=!1,S=!1,E=!1,A=!1,T;T=Symbol.for("react.module.reference");function C(P){return!!(typeof P=="string"||typeof P=="function"||P===l||P===h||A||P===m||P===y||P===_||E||P===s||f||d||S||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===p||P.$$typeof===o||P.$$typeof===a||P.$$typeof===i||P.$$typeof===T||P.getModuleId!==void 0))}function N(P){if(typeof P=="object"&&P!==null){var G=P.$$typeof;switch(G){case r:var J=P.type;switch(J){case l:case h:case m:case y:case _:return J;default:var fe=J&&J.$$typeof;switch(fe){case g:case a:case i:case b:case p:case o:return fe;default:return G}}case t:return G}}}var I=a,O=o,j=r,B=i,L=l,x=b,z=p,k=t,re=h,D=m,V=y,W=_,H=!1,Z=!1;function ie(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(P){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(P){return N(P)===a}function le(P){return N(P)===o}function oe(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function ee(P){return N(P)===i}function te(P){return N(P)===l}function se(P){return N(P)===b}function me(P){return N(P)===p}function c(P){return N(P)===t}function R(P){return N(P)===h}function F(P){return N(P)===m}function Y(P){return N(P)===y}function U(P){return N(P)===_}e.ContextConsumer=I,e.ContextProvider=O,e.Element=j,e.ForwardRef=B,e.Fragment=L,e.Lazy=x,e.Memo=z,e.Portal=k,e.Profiler=re,e.StrictMode=D,e.Suspense=V,e.SuspenseList=W,e.isAsyncMode=ie,e.isConcurrentMode=X,e.isContextConsumer=Q,e.isContextProvider=le,e.isElement=oe,e.isForwardRef=ee,e.isFragment=te,e.isLazy=se,e.isMemo=me,e.isPortal=c,e.isProfiler=R,e.isStrictMode=F,e.isSuspense=Y,e.isSuspenseList=U,e.isValidElementType=C,e.typeOf=N})()}}),pr=ue({"../../node_modules/pretty-format/node_modules/react-is/index.js"(e,r){r.exports=yr()}}),hr=ue({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=m(pr()),t=Ge();function l(p){if(typeof WeakMap!="function")return null;var b=new WeakMap,s=new WeakMap;return(l=function(f){return f?s:b})(p)}function m(p,b){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var s=l(b);if(s&&s.has(p))return s.get(p);var f={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in p)if(S!=="default"&&Object.prototype.hasOwnProperty.call(p,S)){var E=d?Object.getOwnPropertyDescriptor(p,S):null;E&&(E.get||E.set)?Object.defineProperty(f,S,E):f[S]=p[S]}return f.default=p,s&&s.set(p,f),f}var h=(p,b=[])=>(Array.isArray(p)?p.forEach(s=>{h(s,b)}):p!=null&&p!==!1&&b.push(p),b),o=p=>{let b=p.type;if(typeof b=="string")return b;if(typeof b=="function")return b.displayName||b.name||"Unknown";if(r.isFragment(p))return"React.Fragment";if(r.isSuspense(p))return"React.Suspense";if(typeof b=="object"&&b!==null){if(r.isContextProvider(p))return"Context.Provider";if(r.isContextConsumer(p))return"Context.Consumer";if(r.isForwardRef(p)){if(b.displayName)return b.displayName;let s=b.render.displayName||b.render.name||"";return s!==""?`ForwardRef(${s})`:"ForwardRef"}if(r.isMemo(p)){let s=b.displayName||b.type.displayName||b.type.name||"";return s!==""?`Memo(${s})`:"Memo"}}return"UNDEFINED"},a=p=>{let{props:b}=p;return Object.keys(b).filter(s=>s!=="children"&&b[s]!==void 0).sort()},g=(p,b,s,f,d,S)=>++f>b.maxDepth?(0,t.printElementAsLeaf)(o(p),b):(0,t.printElement)(o(p),(0,t.printProps)(a(p),p.props,b,s+b.indent,f,d,S),(0,t.printChildren)(h(p.props.children),b,s+b.indent,f,d,S),b,s);e.serialize=g;var i=p=>p!=null&&r.isElement(p);e.test=i;var y={serialize:g,test:i},_=y;e.default=_}}),dr=ue({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Ge(),t=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,l=typeof t=="function"&&t.for?t.for("react.test.json"):245830487,m=i=>{let{props:y}=i;return y?Object.keys(y).filter(_=>y[_]!==void 0).sort():[]},h=(i,y,_,p,b,s)=>++p>y.maxDepth?(0,r.printElementAsLeaf)(i.type,y):(0,r.printElement)(i.type,i.props?(0,r.printProps)(m(i),i.props,y,_+y.indent,p,b,s):"",i.children?(0,r.printChildren)(i.children,y,_+y.indent,p,b,s):"",y,_);e.serialize=h;var o=i=>i&&i.$$typeof===l;e.test=o;var a={serialize:h,test:o},g=a;e.default=g}}),He=ue({"../../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=te,e.plugins=void 0;var r=i(ur()),t=Be(),l=i(lr()),m=i(sr()),h=i(fr()),o=i(gr()),a=i(hr()),g=i(dr());function i(c){return c&&c.__esModule?c:{default:c}}var y=Object.prototype.toString,_=Date.prototype.toISOString,p=Error.prototype.toString,b=RegExp.prototype.toString,s=c=>typeof c.constructor=="function"&&c.constructor.name||"Object",f=c=>typeof window<"u"&&c===window,d=/^Symbol\((.*)\)(.*)$/,S=/\n/gi,E=class extends Error{constructor(c,R){super(c),this.stack=R,this.name=this.constructor.name}};function A(c){return c==="[object Array]"||c==="[object ArrayBuffer]"||c==="[object DataView]"||c==="[object Float32Array]"||c==="[object Float64Array]"||c==="[object Int8Array]"||c==="[object Int16Array]"||c==="[object Int32Array]"||c==="[object Uint8Array]"||c==="[object Uint8ClampedArray]"||c==="[object Uint16Array]"||c==="[object Uint32Array]"}function T(c){return Object.is(c,-0)?"-0":String(c)}function C(c){return`${c}n`}function N(c,R){return R?`[Function ${c.name||"anonymous"}]`:"[Function]"}function I(c){return String(c).replace(d,"Symbol($1)")}function O(c){return`[${p.call(c)}]`}function j(c,R,F,Y){if(c===!0||c===!1)return`${c}`;if(c===void 0)return"undefined";if(c===null)return"null";let U=typeof c;if(U==="number")return T(c);if(U==="bigint")return C(c);if(U==="string")return Y?`"${c.replace(/"|\\/g,"\\$&")}"`:`"${c}"`;if(U==="function")return N(c,R);if(U==="symbol")return I(c);let P=y.call(c);return P==="[object WeakMap]"?"WeakMap {}":P==="[object WeakSet]"?"WeakSet {}":P==="[object Function]"||P==="[object GeneratorFunction]"?N(c,R):P==="[object Symbol]"?I(c):P==="[object Date]"?isNaN(+c)?"Date { NaN }":_.call(c):P==="[object Error]"?O(c):P==="[object RegExp]"?F?b.call(c).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(c):c instanceof Error?O(c):null}function B(c,R,F,Y,U,P){if(U.indexOf(c)!==-1)return"[Circular]";U=U.slice(),U.push(c);let G=++Y>R.maxDepth,J=R.min;if(R.callToJSON&&!G&&c.toJSON&&typeof c.toJSON=="function"&&!P)return k(c.toJSON(),R,F,Y,U,!0);let fe=y.call(c);return fe==="[object Arguments]"?G?"[Arguments]":`${J?"":"Arguments "}[${(0,t.printListItems)(c,R,F,Y,U,k)}]`:A(fe)?G?`[${c.constructor.name}]`:`${J||!R.printBasicPrototype&&c.constructor.name==="Array"?"":`${c.constructor.name} `}[${(0,t.printListItems)(c,R,F,Y,U,k)}]`:fe==="[object Map]"?G?"[Map]":`Map {${(0,t.printIteratorEntries)(c.entries(),R,F,Y,U,k," => ")}}`:fe==="[object Set]"?G?"[Set]":`Set {${(0,t.printIteratorValues)(c.values(),R,F,Y,U,k)}}`:G||f(c)?`[${s(c)}]`:`${J||!R.printBasicPrototype&&s(c)==="Object"?"":`${s(c)} `}{${(0,t.printObjectProperties)(c,R,F,Y,U,k)}}`}function L(c){return c.serialize!=null}function x(c,R,F,Y,U,P){let G;try{G=L(c)?c.serialize(R,F,Y,U,P,k):c.print(R,J=>k(J,F,Y,U,P),J=>{let fe=Y+F.indent;return fe+J.replace(S,` +${fe}`)},{edgeSpacing:F.spacingOuter,min:F.min,spacing:F.spacingInner},F.colors)}catch(J){throw new E(J.message,J.stack)}if(typeof G!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof G}".`);return G}function z(c,R){for(let F=0;Fc,W=V({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:re});e.DEFAULT_OPTIONS=W;function H(c){if(Object.keys(c).forEach(R=>{if(!Object.prototype.hasOwnProperty.call(W,R))throw new Error(`pretty-format: Unknown option "${R}".`)}),c.min&&c.indent!==void 0&&c.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(c.theme!==void 0){if(c.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof c.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof c.theme}".`)}}var Z=c=>D.reduce((R,F)=>{let Y=c.theme&&c.theme[F]!==void 0?c.theme[F]:re[F],U=Y&&r.default[Y];if(U&&typeof U.close=="string"&&typeof U.open=="string")R[F]=U;else throw new Error(`pretty-format: Option "theme" has a key "${F}" whose value "${Y}" is undefined in ansi-styles.`);return R},Object.create(null)),ie=()=>D.reduce((c,R)=>(c[R]={close:"",open:""},c),Object.create(null)),X=c=>(c==null?void 0:c.printFunctionName)??W.printFunctionName,Q=c=>(c==null?void 0:c.escapeRegex)??W.escapeRegex,le=c=>(c==null?void 0:c.escapeString)??W.escapeString,oe=c=>({callToJSON:(c==null?void 0:c.callToJSON)??W.callToJSON,colors:c!=null&&c.highlight?Z(c):ie(),compareKeys:typeof(c==null?void 0:c.compareKeys)=="function"||(c==null?void 0:c.compareKeys)===null?c.compareKeys:W.compareKeys,escapeRegex:Q(c),escapeString:le(c),indent:c!=null&&c.min?"":ee((c==null?void 0:c.indent)??W.indent),maxDepth:(c==null?void 0:c.maxDepth)??W.maxDepth,maxWidth:(c==null?void 0:c.maxWidth)??W.maxWidth,min:(c==null?void 0:c.min)??W.min,plugins:(c==null?void 0:c.plugins)??W.plugins,printBasicPrototype:(c==null?void 0:c.printBasicPrototype)??!0,printFunctionName:X(c),spacingInner:c!=null&&c.min?" ":` +`,spacingOuter:c!=null&&c.min?"":` +`});function ee(c){return new Array(c+1).join(" ")}function te(c,R){if(R&&(H(R),R.plugins)){let Y=z(R.plugins,c);if(Y!==null)return x(Y,c,oe(R),"",0,[])}let F=j(c,X(R),Q(R),le(R));return F!==null?F:B(c,oe(R),"",0,[])}var se={AsymmetricMatcher:l.default,DOMCollection:m.default,DOMElement:h.default,Immutable:o.default,ReactElement:a.default,ReactTestComponent:g.default};e.plugins=se;var me=te;e.default=me}}),Tt=ue({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=b;var r="diff-sequences",t=0,l=(s,f,d,S,E)=>{let A=0;for(;s{let A=0;for(;s<=f&&d<=S&&E(f,S);)f-=1,S-=1,A+=1;return A},h=(s,f,d,S,E,A,T)=>{let C=0,N=-s,I=A[C],O=I;A[C]+=l(I+1,f,S+I-N+1,d,E);let j=s{let C=0,N=s,I=A[C],O=I;A[C]-=m(f,I-1,d,S+I-N-1,E);let j=s{let j=S-f,B=d-f,L=E-S-B,x=-L-(s-1),z=-L+(s-1),k=t,re=s{let j=E-d,B=d-f,L=E-S-B,x=L-s,z=L+s,k=t,re=s{let I=S-f,O=E-d,j=d-f,B=E-S,L=B-j,x=j,z=j;if(T[0]=f-1,C[0]=d,L%2===0){let k=(s||L)/2,re=(j+B)/2;for(let D=1;D<=re;D+=1)if(x=h(D,d,E,I,A,T,x),D{if(E-S{le(ee,se,te)},isCommon:(ee,te)=>oe(te,ee)}}let X=f,Q=d;f=S,d=E,S=X,E=Q}let{foundSubsequence:O,isCommon:j}=T[A?1:0];i(s,f,d,S,E,j,C,N,I);let{nChangePreceding:B,aEndPreceding:L,bEndPreceding:x,nCommonPreceding:z,aCommonPreceding:k,bCommonPreceding:re,nCommonFollowing:D,aCommonFollowing:V,bCommonFollowing:W,nChangeFollowing:H,aStartFollowing:Z,bStartFollowing:ie}=I;f{if(typeof f!="number")throw new TypeError(`${r}: ${s} typeof ${typeof f} is not a number`);if(!Number.isSafeInteger(f))throw new RangeError(`${r}: ${s} value ${f} is not a safe integer`);if(f<0)throw new RangeError(`${r}: ${s} value ${f} is a negative integer`)},p=(s,f)=>{let d=typeof f;if(d!=="function")throw new TypeError(`${r}: ${s} typeof ${d} is not a function`)};function b(s,f,d,S){_("aLength",s),_("bLength",f),p("isCommon",d),p("foundSubsequence",S);let E=l(0,s,0,f,d);if(E!==0&&S(E,0,0),s!==E||f!==E){let A=E,T=E,C=m(A,s-1,T,f-1,d),N=s-C,I=f-C,O=E+C;s!==O&&f!==O&&y(0,A,N,T,I,!1,[{foundSubsequence:S,isCommon:d}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&S(C,N,I)}}}}),Ct=ue({"../../node_modules/loupe/loupe.js"(e,r){(function(t,l){typeof e=="object"&&typeof r<"u"?l(e):typeof define=="function"&&define.amd?define(["exports"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.loupe={}))})(e,function(t){function l(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(u){return typeof u}:l=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},l(n)}function m(n,u){return h(n)||o(n,u)||a(n,u)||i()}function h(n){if(Array.isArray(n))return n}function o(n,u){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var w=[],M=!0,$=!1,v=void 0;try{for(var q=n[Symbol.iterator](),K;!(M=(K=q.next()).done)&&(w.push(K.value),!(u&&w.length===u));M=!0);}catch(ae){$=!0,v=ae}finally{try{!M&&q.return!=null&&q.return()}finally{if($)throw v}}return w}}function a(n,u){if(n){if(typeof n=="string")return g(n,u);var w=Object.prototype.toString.call(n).slice(8,-1);if(w==="Object"&&n.constructor&&(w=n.constructor.name),w==="Map"||w==="Set")return Array.from(n);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return g(n,u)}}function g(n,u){(u==null||u>n.length)&&(u=n.length);for(var w=0,M=new Array(u);w0&&arguments[0]!==void 0?arguments[0]:{},u=n.showHidden,w=u===void 0?!1:u,M=n.depth,$=M===void 0?2:M,v=n.colors,q=v===void 0?!1:v,K=n.customInspect,ae=K===void 0?!0:K,ne=n.showProxy,ge=ne===void 0?!1:ne,he=n.maxArrayLength,Le=he===void 0?1/0:he,we=n.breakLength,be=we===void 0?1/0:we,Te=n.seen,Vt=Te===void 0?[]:Te,nt=n.truncate,Gt=nt===void 0?1/0:nt,it=n.stylize,Ht=it===void 0?String:it,Fe={showHidden:!!w,depth:Number($),colors:!!q,customInspect:!!ae,showProxy:!!ge,maxArrayLength:Number(Le),breakLength:Number(be),truncate:Number(Gt),seen:Vt,stylize:Ht};return Fe.colors&&(Fe.stylize=b),Fe}function f(n,u){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p;n=String(n);var M=w.length,$=n.length;return M>u&&$>M?w:$>u&&$>M?"".concat(n.slice(0,u-M)).concat(w):n}function d(n,u,w){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";w=w||u.inspect;var $=n.length;if($===0)return"";for(var v=u.truncate,q="",K="",ae="",ne=0;ne<$;ne+=1){var ge=ne+1===n.length,he=ne+2===n.length;ae="".concat(p,"(").concat(n.length-ne,")");var Le=n[ne];u.truncate=v-q.length-(ge?0:M.length);var we=K||w(Le,u)+(ge?"":M),be=q.length+we.length,Te=be+ae.length;if(ge&&be>v&&q.length+ae.length<=v||!ge&&!he&&Te>v||(K=ge?"":w(n[ne+1],u)+(he?"":M),!ge&&he&&Te>v&&be+K.length>v))break;if(q+=we,!ge&&!he&&be+K.length>=v){ae="".concat(p,"(").concat(n.length-ne-1,")");break}ae=""}return"".concat(q).concat(ae)}function S(n){return n.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?n:JSON.stringify(n).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function E(n,u){var w=m(n,2),M=w[0],$=w[1];return u.truncate-=2,typeof M=="string"?M=S(M):typeof M!="number"&&(M="[".concat(u.inspect(M,u),"]")),u.truncate-=M.length,$=u.inspect($,u),"".concat(M,": ").concat($)}function A(n,u){var w=Object.keys(n).slice(n.length);if(!n.length&&!w.length)return"[]";u.truncate-=4;var M=d(n,u);u.truncate-=M.length;var $="";return w.length&&($=d(w.map(function(v){return[v,n[v]]}),u,E)),"[ ".concat(M).concat($?", ".concat($):""," ]")}var T=Function.prototype.toString,C=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,N=512;function I(n){if(typeof n!="function")return null;var u="";if(typeof Function.prototype.name>"u"&&typeof n.name>"u"){var w=T.call(n);if(w.indexOf("(")>N)return u;var M=w.match(C);M&&(u=M[1])}else u=n.name;return u}var O=I,j=function(n){return typeof Buffer=="function"&&n instanceof Buffer?"Buffer":n[Symbol.toStringTag]?n[Symbol.toStringTag]:O(n.constructor)};function B(n,u){var w=j(n);u.truncate-=w.length+4;var M=Object.keys(n).slice(n.length);if(!n.length&&!M.length)return"".concat(w,"[]");for(var $="",v=0;v ").concat($)}function k(n){var u=[];return n.forEach(function(w,M){u.push([M,w])}),u}function re(n,u){var w=n.size-1;return w<=0?"Map{}":(u.truncate-=7,"Map{ ".concat(d(k(n),u,z)," }"))}var D=Number.isNaN||function(n){return n!==n};function V(n,u){return D(n)?u.stylize("NaN","number"):n===1/0?u.stylize("Infinity","number"):n===-1/0?u.stylize("-Infinity","number"):n===0?u.stylize(1/n===1/0?"+0":"-0","number"):u.stylize(f(n,u.truncate),"number")}function W(n,u){var w=f(n.toString(),u.truncate-1);return w!==p&&(w+="n"),u.stylize(w,"bigint")}function H(n,u){var w=n.toString().split("/")[2],M=u.truncate-(2+w.length),$=n.source;return u.stylize("/".concat(f($,M),"/").concat(w),"regexp")}function Z(n){var u=[];return n.forEach(function(w){u.push(w)}),u}function ie(n,u){return n.size===0?"Set{}":(u.truncate-=7,"Set{ ".concat(d(Z(n),u)," }"))}var X=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Q={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},le=16,oe=4;function ee(n){return Q[n]||"\\u".concat("0000".concat(n.charCodeAt(0).toString(le)).slice(-oe))}function te(n,u){return X.test(n)&&(n=n.replace(X,ee)),u.stylize("'".concat(f(n,u.truncate-2),"'"),"string")}function se(n){return"description"in Symbol.prototype?n.description?"Symbol(".concat(n.description,")"):"Symbol()":n.toString()}var me=function(){return"Promise{…}"};try{var c=process.binding("util"),R=c.getPromiseDetails,F=c.kPending,Y=c.kRejected;Array.isArray(R(Promise.resolve()))&&(me=function(n,u){var w=R(n),M=m(w,2),$=M[0],v=M[1];return $===F?"Promise{}":"Promise".concat($===Y?"!":"","{").concat(u.inspect(v,u),"}")})}catch{}var U=me;function P(n,u){var w=Object.getOwnPropertyNames(n),M=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[];if(w.length===0&&M.length===0)return"{}";if(u.truncate-=4,u.seen=u.seen||[],u.seen.indexOf(n)>=0)return"[Circular]";u.seen.push(n);var $=d(w.map(function(K){return[K,n[K]]}),u,E),v=d(M.map(function(K){return[K,n[K]]}),u,E);u.seen.pop();var q="";return $&&v&&(q=", "),"{ ".concat($).concat(q).concat(v," }")}var G=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function J(n,u){var w="";return G&&G in n&&(w=n[G]),w=w||O(n.constructor),(!w||w==="_class")&&(w=""),u.truncate-=w.length,"".concat(w).concat(P(n,u))}function fe(n,u){return n.length===0?"Arguments[]":(u.truncate-=13,"Arguments[ ".concat(d(n,u)," ]"))}var xt=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function kt(n,u){var w=Object.getOwnPropertyNames(n).filter(function(q){return xt.indexOf(q)===-1}),M=n.name;u.truncate-=M.length;var $="";typeof n.message=="string"?$=f(n.message,u.truncate):w.unshift("message"),$=$?": ".concat($):"",u.truncate-=$.length+5;var v=d(w.map(function(q){return[q,n[q]]}),u,E);return"".concat(M).concat($).concat(v?" { ".concat(v," }"):"")}function vt(n,u){var w=m(n,2),M=w[0],$=w[1];return u.truncate-=3,$?"".concat(u.stylize(M,"yellow"),"=").concat(u.stylize('"'.concat($,'"'),"string")):"".concat(u.stylize(M,"yellow"))}function De(n,u){return d(n,u,Qe,` +`)}function Qe(n,u){var w=n.getAttributeNames(),M=n.tagName.toLowerCase(),$=u.stylize("<".concat(M),"special"),v=u.stylize(">","special"),q=u.stylize(""),"special");u.truncate-=M.length*2+5;var K="";w.length>0&&(K+=" ",K+=d(w.map(function(ge){return[ge,n.getAttribute(ge)]}),u,vt," ")),u.truncate-=K.length;var ae=u.truncate,ne=De(n.children,u);return ne&&ne.length>ae&&(ne="".concat(p,"(").concat(n.children.length,")")),"".concat($).concat(K).concat(v).concat(ne).concat(q)}var zt=typeof Symbol=="function"&&typeof Symbol.for=="function",Ne=zt?Symbol.for("chai/inspect"):"@@chai/inspect",_e=!1;try{var et=ar("util");_e=et.inspect?et.inspect.custom:!1}catch{_e=!1}function tt(){this.key="chai/loupe__"+Math.random()+Date.now()}tt.prototype={get:function(n){return n[this.key]},has:function(n){return this.key in n},set:function(n,u){Object.isExtensible(n)&&Object.defineProperty(n,this.key,{value:u,configurable:!0})}};var $e=new(typeof WeakMap=="function"?WeakMap:tt),Re={},rt={undefined:function(n,u){return u.stylize("undefined","undefined")},null:function(n,u){return u.stylize(null,"null")},boolean:function(n,u){return u.stylize(n,"boolean")},Boolean:function(n,u){return u.stylize(n,"boolean")},number:V,Number:V,bigint:W,BigInt:W,string:te,String:te,function:x,Function:x,symbol:se,Symbol:se,Array:A,Date:L,Map:re,Set:ie,RegExp:H,Promise:U,WeakSet:function(n,u){return u.stylize("WeakSet{…}","special")},WeakMap:function(n,u){return u.stylize("WeakMap{…}","special")},Arguments:fe,Int8Array:B,Uint8Array:B,Uint8ClampedArray:B,Int16Array:B,Uint16Array:B,Int32Array:B,Uint32Array:B,Float32Array:B,Float64Array:B,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:kt,HTMLCollection:De,NodeList:De},Ut=function(n,u,w){return Ne in n&&typeof n[Ne]=="function"?n[Ne](u):_e&&_e in n&&typeof n[_e]=="function"?n[_e](u.depth,u):"inspect"in n&&typeof n.inspect=="function"?n.inspect(u.depth,u):"constructor"in n&&$e.has(n.constructor)?$e.get(n.constructor)(n,u):Re[w]?Re[w](n,u):""},Yt=Object.prototype.toString;function Ie(n,u){u=s(u),u.inspect=Ie;var w=u,M=w.customInspect,$=n===null?"null":l(n);if($==="object"&&($=Yt.call(n).slice(8,-1)),rt[$])return rt[$](n,u);if(M&&n){var v=Ut(n,u,$);if(v)return typeof v=="string"?v:Ie(v,u)}var q=n?Object.getPrototypeOf(n):!1;return q===Object.prototype||q===null?P(n,u):n&&typeof HTMLElement=="function"&&n instanceof HTMLElement?Qe(n,u):"constructor"in n?n.constructor!==Object?J(n,u):P(n,u):n===Object(n)?P(n,u):u.stylize(String(n),$)}function Wt(n,u){return $e.has(n)?!1:($e.set(n,u),!0)}function qt(n,u){return n in Re?!1:(Re[n]=u,!0)}var Kt=Ne;t.custom=Kt,t.default=Ie,t.inspect=Ie,t.registerConstructor=Wt,t.registerStringTag=qt,Object.defineProperty(t,"__esModule",{value:!0})})}}),pe=de(He()),at=de(Tt()),_r=Symbol("vitest:SAFE_COLORS"),br={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},Or=Object.entries(br);function Je(e){return String(e)}Je.open="";Je.close="";var Sr=Or.reduce((e,[r])=>(e[r]=Je,e),{isColorSupported:!1});function Er(){return globalThis[_r]||Sr}function ct(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Se=-1,Ee=1,je=0,Ce=class{constructor(e,r){xe(this,0);xe(this,1);this[0]=e,this[1]=r}},At="Compared values have no visual difference.",wr="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";function Tr(e,r){return e.replace(/\s+$/,t=>r(t))}function Xe(e,r,t,l,m,h){return e.length!==0?t(`${l} ${Tr(e,m)}`):l!==" "?t(l):r&&h.length!==0?t(`${l} ${h}`):""}function Pt(e,r,{aColor:t,aIndicator:l,changeLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:h}){return Xe(e,r,t,l,m,h)}function Mt(e,r,{bColor:t,bIndicator:l,changeLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:h}){return Xe(e,r,t,l,m,h)}function Nt(e,r,{commonColor:t,commonIndicator:l,commonLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:h}){return Xe(e,r,t,l,m,h)}function ut(e,r,t,l,{patchColor:m}){return m(`@@ -${e+1},${r-e} +${t+1},${l-t} @@`)}function Cr(e,r){let t=e.length,l=r.contextLines,m=l+l,h=t,o=!1,a=0,g=0;for(;g!==t;){let T=g;for(;g!==t&&e[g][0]===je;)g+=1;if(T!==g)if(T===0)g>l&&(h-=g-l,o=!0);else if(g===t){let C=g-T;C>l&&(h-=C-l,o=!0)}else{let C=g-T;C>m&&(h-=C-m,a+=1)}for(;g!==t&&e[g][0]!==je;)g+=1}let i=a!==0||o;a!==0?h+=a+1:o&&(h+=1);let y=h-1,_=[],p=0;i&&_.push("");let b=0,s=0,f=0,d=0,S=T=>{let C=_.length;_.push(Nt(T,C===0||C===y,r)),f+=1,d+=1},E=T=>{let C=_.length;_.push(Pt(T,C===0||C===y,r)),f+=1},A=T=>{let C=_.length;_.push(Mt(T,C===0||C===y,r)),d+=1};for(g=0;g!==t;){let T=g;for(;g!==t&&e[g][0]===je;)g+=1;if(T!==g)if(T===0){g>l&&(T=g-l,b=T,s=T,f=b,d=s);for(let C=T;C!==g;C+=1)S(e[C][1])}else if(g===t){let C=g-T>l?T+l:g;for(let N=T;N!==C;N+=1)S(e[N][1])}else{let C=g-T;if(C>m){let N=T+l;for(let O=T;O!==N;O+=1)S(e[O][1]);_[p]=ut(b,f,s,d,r),p=_.length,_.push("");let I=C-m;b=f+I,s=d+I,f=b,d=s;for(let O=g-l;O!==g;O+=1)S(e[O][1])}else for(let N=T;N!==g;N+=1)S(e[N][1])}for(;g!==t&&e[g][0]===Se;)E(e[g][1]),g+=1;for(;g!==t&&e[g][0]===Ee;)A(e[g][1]),g+=1}return i&&(_[p]=ut(b,f,s,d,r)),_.join(` +`)}function Ar(e,r){return e.map((t,l,m)=>{let h=t[1],o=l===0||l===m.length-1;switch(t[0]){case Se:return Pt(h,o,r);case Ee:return Mt(h,o,r);default:return Nt(h,o,r)}}).join(` +`)}var lt=e=>e,$t=5;function Pr(){let e=Er();return{aAnnotation:"Expected",aColor:e.green,aIndicator:"-",bAnnotation:"Received",bColor:e.red,bIndicator:"+",changeColor:e.inverse,changeLineTrailingSpaceColor:lt,commonColor:e.dim,commonIndicator:" ",commonLineTrailingSpaceColor:lt,compareKeys:void 0,contextLines:$t,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:e.yellow}}function Mr(e){return e&&typeof e=="function"?e:void 0}function Nr(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:$t}function Me(e={}){return{...Pr(),...e,compareKeys:Mr(e.compareKeys),contextLines:Nr(e.contextLines)}}function Oe(e){return e.length===1&&e[0].length===0}function $r(e){let r=0,t=0;return e.forEach(l=>{switch(l[0]){case Se:r+=1;break;case Ee:t+=1;break}}),{a:r,b:t}}function Rr({aAnnotation:e,aColor:r,aIndicator:t,bAnnotation:l,bColor:m,bIndicator:h,includeChangeCounts:o,omitAnnotationLines:a},g){if(a)return"";let i="",y="";if(o){let b=String(g.a),s=String(g.b),f=l.length-e.length,d=" ".repeat(Math.max(0,f)),S=" ".repeat(Math.max(0,-f)),E=s.length-b.length,A=" ".repeat(Math.max(0,E)),T=" ".repeat(Math.max(0,-E));i=`${d} ${t} ${A}${b}`,y=`${S} ${h} ${T}${s}`}let _=`${t} ${e}${i}`,p=`${h} ${l}${y}`;return`${r(_)} +${m(p)} + +`}function Rt(e,r){return Rr(r,$r(e))+(r.expand?Ar(e,r):Cr(e,r))}function Ze(e,r,t){return Rt(It(Oe(e)?[]:e,Oe(r)?[]:r),Me(t))}function Ir(e,r,t,l,m){if(Oe(e)&&Oe(t)&&(e=[],t=[]),Oe(r)&&Oe(l)&&(r=[],l=[]),e.length!==t.length||r.length!==l.length)return Ze(e,r,m);let h=It(t,l),o=0,a=0;return h.forEach(g=>{switch(g[0]){case Se:g[1]=e[o],o+=1;break;case Ee:g[1]=r[a],a+=1;break;default:g[1]=r[a],o+=1,a+=1}}),Rt(h,Me(m))}function It(e,r){let t=e.length,l=r.length,m=(i,y)=>e[i]===r[y],h=[],o=0,a=0,g=(i,y,_)=>{for(;o!==y;o+=1)h.push(new Ce(Se,e[o]));for(;a!==_;a+=1)h.push(new Ce(Ee,r[a]));for(;i!==0;i-=1,o+=1,a+=1)h.push(new Ce(je,r[a]))};for((at.default.default||at.default)(t,l,m,g);o!==t;o+=1)h.push(new Ce(Se,e[o]));for(;a!==l;a+=1)h.push(new Ce(Ee,r[a]));return h}function ze(e,r){let{commonColor:t}=Me(r);return t(e)}var{AsymmetricMatcher:jr,DOMCollection:Br,DOMElement:Dr,Immutable:Lr,ReactElement:Fr,ReactTestComponent:xr}=pe.plugins,jt=[xr,Fr,Dr,Br,Lr,jr],Ue={plugins:jt},Bt={callToJSON:!1,maxDepth:10,plugins:jt};function kr(e,r,t){if(Object.is(e,r))return"";let l=ct(e),m=l,h=!1;if(l==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return null;m=e.getExpectedType(),h=m==="string"}if(m!==ct(r)){let{aAnnotation:o,aColor:a,aIndicator:g,bAnnotation:i,bColor:y,bIndicator:_}=Me(t),p=Ye(Bt,t),b=(0,pe.format)(e,p),s=(0,pe.format)(r,p),f=`${a(`${g} ${o}:`)} +${b}`,d=`${y(`${_} ${i}:`)} +${s}`;return`${f} + +${d}`}if(h)return null;switch(l){case"string":return Ze(e.split(` +`),r.split(` +`),t);case"boolean":case"number":return vr(e,r,t);case"map":return ke(st(e),st(r),t);case"set":return ke(mt(e),mt(r),t);default:return ke(e,r,t)}}function vr(e,r,t){let l=(0,pe.format)(e,Ue),m=(0,pe.format)(r,Ue);return l===m?"":Ze(l.split(` +`),m.split(` +`),t)}function st(e){return new Map(Array.from(e.entries()).sort())}function mt(e){return new Set(Array.from(e.values()).sort())}function ke(e,r,t){let l,m=!1;try{let o=Ye(Ue,t);l=ft(e,r,o,t)}catch{m=!0}let h=ze(At,t);if(l===void 0||l===h){let o=Ye(Bt,t);l=ft(e,r,o,t),l!==h&&!m&&(l=`${ze(wr,t)} + +${l}`)}return l}function Ye(e,r){let{compareKeys:t}=Me(r);return{...e,compareKeys:t}}function ft(e,r,t,l){let m={...t,indent:0},h=(0,pe.format)(e,m),o=(0,pe.format)(r,m);if(h===o)return ze(At,l);{let a=(0,pe.format)(e,t),g=(0,pe.format)(r,t);return Ir(a.split(` +`),g.split(` +`),h.split(` +`),o.split(` +`),l)}}var We=de(He()),zr=de(Ct()),{AsymmetricMatcher:Ur,DOMCollection:Yr,DOMElement:Wr,Immutable:qr,ReactElement:Kr,ReactTestComponent:Vr}=We.plugins,gt=[Vr,Kr,Wr,Yr,qr,Ur];function qe(e,r=10,{maxLength:t,...l}={}){let m=t??1e4,h;try{h=(0,We.format)(e,{maxDepth:r,escapeString:!1,plugins:gt,...l})}catch{h=(0,We.format)(e,{callToJSON:!1,maxDepth:r,escapeString:!1,plugins:gt,...l})}return h.length>=m&&r>1?qe(e,Math.floor(r/2)):h}var Gr=/%[sdjifoOcj%]/g;function Hr(...e){if(typeof e[0]!="string"){let h=[];for(let o=0;o{if(h==="%%")return"%";if(t>=r)return h;switch(h){case"%s":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:typeof o=="number"&&o===0&&1/o<0?"-0":typeof o=="object"&&o!==null?Ae(o,{depth:0,colors:!1,compact:3}):String(o)}case"%d":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:Number(o).toString()}case"%i":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:Number.parseInt(String(o)).toString()}case"%f":return Number.parseFloat(String(e[t++])).toString();case"%o":return Ae(e[t++],{showHidden:!0,showProxy:!0});case"%O":return Ae(e[t++]);case"%c":return t++,"";case"%j":try{return JSON.stringify(e[t++])}catch(o){let a=o.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return"[Circular]";throw o}default:return h}});for(let h=e[t];tr.add(l);Object.getOwnPropertyNames(e).forEach(t),Object.getOwnPropertySymbols(e).forEach(t)}function Dt(e){let r=new Set;return Jr(e)?[]:(Xr(e,r),Array.from(r))}var Lt={forceWritable:!1};function yt(e,r=Lt){return Ve(e,new WeakMap,r)}function Ve(e,r,t=Lt){let l,m;if(r.has(e))return r.get(e);if(Array.isArray(e)){for(m=Array(l=e.length),r.set(e,m);l--;)m[l]=Ve(e[l],r,t);return m}if(Object.prototype.toString.call(e)==="[object Object]"){m=Object.create(Object.getPrototypeOf(e)),r.set(e,m);let h=Dt(e);for(let o of h){let a=Object.getOwnPropertyDescriptor(e,o);if(!a)continue;let g=Ve(e[o],r,t);"get"in a?Object.defineProperty(m,o,{...a,get(){return g}}):Object.defineProperty(m,o,{...a,writable:t.forceWritable?!0:a.writable,value:g})}return m}return e}de(He());de(Tt());de(Ct());var Zr="@@__IMMUTABLE_RECORD__@@",Qr="@@__IMMUTABLE_ITERABLE__@@";function en(e){return e&&(e[Qr]||e[Zr])}var tn=Object.getPrototypeOf({});function pt(e){return e instanceof Error?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}function Pe(e,r=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(en(e))return Pe(e.toJSON(),r);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Hr(e.sample)}`;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=new Array(e.length);return r.set(e,t),e.forEach((l,m)=>{try{t[m]=Pe(l,r)}catch(h){t[m]=pt(h)}}),t}else{let t=Object.create(null);r.set(e,t);let l=e;for(;l&&l!==tn;)Object.getOwnPropertyNames(l).forEach(m=>{if(!(m in t))try{t[m]=Pe(e[m],r)}catch(h){delete t[m],t[m]=pt(h)}}),l=Object.getPrototypeOf(l);return t}}function ht(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function rn(e,r){if(!e||typeof e!="object")return{message:e};if(e.stack&&(e.stackStr=String(e.stack)),e.name&&(e.nameStr=String(e.name)),e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0){let t=yt(e.actual,{forceWritable:!0}),l=yt(e.expected,{forceWritable:!0}),{replacedActual:m,replacedExpected:h}=Ft(t,l);e.diff=kr(h,m,{...r,...e.diffOptions})}typeof e.expected!="string"&&(e.expected=qe(e.expected,10)),typeof e.actual!="string"&&(e.actual=qe(e.actual,10));try{typeof e.message=="string"&&(e.message=ht(e.message)),typeof e.cause=="object"&&typeof e.cause.message=="string"&&(e.cause.message=ht(e.cause.message))}catch{}try{return Pe(e)}catch(t){return Pe(new Error(`Failed to fully serialize error: ${t==null?void 0:t.message} +Inner error message: ${e==null?void 0:e.message}`))}}function dt(e){return Ke(e)==="Object"&&typeof e.asymmetricMatch=="function"}function _t(e,r){let t=Ke(e),l=Ke(r);return t===l&&(t==="Object"||t==="Array")}function Ft(e,r,t=new WeakSet,l=new WeakSet){return _t(e,r)?t.has(e)||l.has(r)?{replacedActual:e,replacedExpected:r}:(t.add(e),l.add(r),Dt(r).forEach(m=>{let h=r[m],o=e[m];if(dt(h))h.asymmetricMatch(o)&&(e[m]=h);else if(dt(o))o.asymmetricMatch(h)&&(r[m]=o);else if(_t(o,h)){let a=Ft(o,h,t,l);e[m]=a.replacedActual,r[m]=a.replacedExpected}}),{replacedActual:e,replacedExpected:r}):{replacedActual:e,replacedExpected:r}}var nn=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(nn||{}),ye={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},bt={start:!1,back:!1,goto:!1,next:!1,end:!1},on=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Ot=e=>Object.prototype.toString.call(e)==="[object Object]",an=e=>Object.prototype.toString.call(e)==="[object Module]",cn=e=>{if(!Ot(e)&&!an(e))return!1;if(e.constructor===void 0)return!0;let r=e.constructor.prototype;return!!Ot(r)},un=e=>{try{return new e.constructor}catch{return{}}},ve=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),St=(e,r=!1)=>{let t=(r?e.shadowCalls:e.calls).filter(m=>m.retain);if(!t.length)return;let l=new Map(Array.from(e.callRefsByResult.entries()).filter(([,m])=>m.retain));return{cursor:t.length,calls:t,callRefsByResult:l}},ln=class{constructor(){var o;this.initialized=!1,this.channel=Zt.getChannel(),this.state=((o=ce.window)==null?void 0:o.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{};let e=({storyId:a,isPlaying:g=!0,isDebugging:i=!1})=>{let y=this.getState(a);this.setState(a,{...ve(),...St(y,i),shadowCalls:i?y.shadowCalls:[],chainedCallIds:i?y.chainedCallIds:new Set,playUntil:i?y.playUntil:void 0,isPlaying:g,isDebugging:i}),this.sync(a)};this.channel.on(ot,e),this.channel.on(er,({storyId:a,newPhase:g})=>{let{isDebugging:i}=this.getState(a);this.setState(a,{renderPhase:g}),g==="preparing"&&i&&e({storyId:a}),g==="playing"&&e({storyId:a,isDebugging:i}),g==="played"&&this.setState(a,{isLocked:!1,isPlaying:!1,isDebugging:!1}),g==="errored"&&this.setState(a,{isLocked:!1,isPlaying:!1})}),this.channel.on(tr,()=>{this.initialized?this.cleanup():this.initialized=!0});let r=({storyId:a,playUntil:g})=>{this.getState(a).isDebugging||this.setState(a,({calls:y})=>({calls:[],shadowCalls:y.map(_=>({..._,status:"waiting"})),isDebugging:!0}));let i=this.getLog(a);this.setState(a,({shadowCalls:y})=>{var p;if(g||!i.length)return{playUntil:g};let _=y.findIndex(b=>b.id===i[0].callId);return{playUntil:(p=y.slice(0,_).filter(b=>b.interceptable&&!b.ancestors.length).slice(-1)[0])==null?void 0:p.id}}),this.channel.emit(ot,{storyId:a,isDebugging:!0})},t=({storyId:a})=>{var y;let g=this.getLog(a).filter(_=>!_.ancestors.length),i=g.reduceRight((_,p,b)=>_>=0||p.status==="waiting"?_:b,-1);r({storyId:a,playUntil:(y=g[i-1])==null?void 0:y.callId})},l=({storyId:a,callId:g})=>{var s;let{calls:i,shadowCalls:y,resolvers:_}=this.getState(a),p=i.find(({id:f})=>f===g),b=y.find(({id:f})=>f===g);if(!p&&b&&Object.values(_).length>0){let f=(s=this.getLog(a).find(d=>d.status==="waiting"))==null?void 0:s.callId;b.id!==f&&this.setState(a,{playUntil:b.id}),Object.values(_).forEach(d=>d())}else r({storyId:a,playUntil:g})},m=({storyId:a})=>{var i;let{resolvers:g}=this.getState(a);if(Object.values(g).length>0)Object.values(g).forEach(y=>y());else{let y=(i=this.getLog(a).find(_=>_.status==="waiting"))==null?void 0:i.callId;y?r({storyId:a,playUntil:y}):h({storyId:a})}},h=({storyId:a})=>{this.setState(a,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(a).resolvers).forEach(g=>g())};this.channel.on(ye.START,r),this.channel.on(ye.BACK,t),this.channel.on(ye.GOTO,l),this.channel.on(ye.NEXT,m),this.channel.on(ye.END,h)}getState(e){return this.state[e]||ve()}setState(e,r){var m;let t=this.getState(e),l=typeof r=="function"?r(t):r;this.state={...this.state,[e]:{...t,...l}},(m=ce.window)!=null&&m.parent&&(ce.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){var r;this.state=Object.entries(this.state).reduce((t,[l,m])=>{let h=St(m);return h&&(t[l]=Object.assign(ve(),h)),t},{});let e={controlStates:bt,logItems:[]};this.channel.emit(ye.SYNC,e),(r=ce.window)!=null&&r.parent&&(ce.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:r,shadowCalls:t}=this.getState(e),l=[...t];r.forEach((h,o)=>{l[o]=h});let m=new Set;return l.reduceRight((h,o)=>(o.args.forEach(a=>{a!=null&&a.__callId__&&m.add(a.__callId__)}),o.path.forEach(a=>{a.__callId__&&m.add(a.__callId__)}),(o.interceptable||o.exception)&&!m.has(o.id)&&(h.unshift({callId:o.id,status:o.status,ancestors:o.ancestors}),m.add(o.id)),h),[])}instrument(e,r,t=0){if(!cn(e))return e;let{mutate:l=!1,path:m=[]}=r,h=r.getKeys?r.getKeys(e,t):Object.keys(e);return t+=1,h.reduce((o,a)=>{let g=mn(e,a);if(typeof(g==null?void 0:g.get)=="function"){let y=()=>{var _,p;return(p=(_=g==null?void 0:g.get)==null?void 0:_.bind(e))==null?void 0:p()};return Object.defineProperty(o,a,{get:()=>this.instrument(y(),{...r,path:m.concat(a)},t)}),o}let i=e[a];return typeof i!="function"?(o[a]=this.instrument(i,{...r,path:m.concat(a)},t),o):"__originalFn__"in i&&typeof i.__originalFn__=="function"?(o[a]=i,o):(o[a]=(...y)=>this.track(a,i,e,y,r),o[a].__originalFn__=i,Object.defineProperty(o[a],"name",{value:a,writable:!1}),Object.keys(i).length>0&&Object.assign(o[a],this.instrument({...i},{...r,path:m.concat(a)},t)),o)},l?e:un(e))}track(e,r,t,l,m){var f,d,S,E;let h=((f=l==null?void 0:l[0])==null?void 0:f.__storyId__)||((E=(S=(d=ce.__STORYBOOK_PREVIEW__)==null?void 0:d.selectionStore)==null?void 0:S.selection)==null?void 0:E.storyId),{cursor:o,ancestors:a}=this.getState(h);this.setState(h,{cursor:o+1});let g=`${a.slice(-1)[0]||h} [${o}] ${e}`,{path:i=[],intercept:y=!1,retain:_=!1}=m,p=typeof y=="function"?y(e,i):y,b={id:g,cursor:o,storyId:h,ancestors:a,path:i,method:e,args:l,interceptable:p,retain:_},s=(p&&!a.length?this.intercept:this.invoke).call(this,r,t,b,m);return this.instrument(s,{...m,mutate:!0,path:[{__callId__:b.id}]})}intercept(e,r,t,l){let{chainedCallIds:m,isDebugging:h,playUntil:o}=this.getState(t.storyId),a=m.has(t.id);return!h||a||o?(o===t.id&&this.setState(t.storyId,{playUntil:void 0}),this.invoke(e,r,t,l)):new Promise(g=>{this.setState(t.storyId,({resolvers:i})=>({isLocked:!1,resolvers:{...i,[t.id]:g}}))}).then(()=>(this.setState(t.storyId,g=>{let{[t.id]:i,...y}=g.resolvers;return{isLocked:!0,resolvers:y}}),this.invoke(e,r,t,l)))}invoke(e,r,t,l){let{callRefsByResult:m,renderPhase:h}=this.getState(t.storyId),o=i=>{var y,_,p;if(m.has(i))return m.get(i);if(i instanceof Array)return i.map(o);if(i instanceof Date)return{__date__:{value:i.toISOString()}};if(i instanceof Error){let{name:b,message:s,stack:f}=i;return{__error__:{name:b,message:s,stack:f}}}if(i instanceof RegExp){let{flags:b,source:s}=i;return{__regexp__:{flags:b,source:s}}}if(i instanceof((y=ce.window)==null?void 0:y.HTMLElement)){let{prefix:b,localName:s,id:f,classList:d,innerText:S}=i,E=Array.from(d);return{__element__:{prefix:b,localName:s,id:f,classNames:E,innerText:S}}}return typeof i=="function"?{__function__:{name:"getMockName"in i?i.getMockName():i.name}}:typeof i=="symbol"?{__symbol__:{description:i.description}}:typeof i=="object"&&((_=i==null?void 0:i.constructor)!=null&&_.name)&&((p=i==null?void 0:i.constructor)==null?void 0:p.name)!=="Object"?{__class__:{name:i.constructor.name}}:Object.prototype.toString.call(i)==="[object Object]"?Object.fromEntries(Object.entries(i).map(([b,s])=>[b,o(s)])):i},a={...t,args:t.args.map(o)};t.path.forEach(i=>{i!=null&&i.__callId__&&this.setState(t.storyId,({chainedCallIds:y})=>({chainedCallIds:new Set(Array.from(y).concat(i.__callId__))}))});let g=i=>{if(i instanceof Error){let{name:y,message:_,stack:p,callId:b=t.id}=i,{showDiff:s=void 0,diff:f=void 0,actual:d=void 0,expected:S=void 0}=i.name==="AssertionError"?rn(i):i,E={name:y,message:_,stack:p,callId:b,showDiff:s,diff:f,actual:d,expected:S};if(this.update({...a,status:"error",exception:E}),this.setState(t.storyId,A=>({callRefsByResult:new Map([...Array.from(A.callRefsByResult.entries()),[i,{__callId__:t.id,retain:t.retain}]])})),t.ancestors.length)throw Object.prototype.hasOwnProperty.call(i,"callId")||Object.defineProperty(i,"callId",{value:t.id}),i}throw i};try{if(h==="played"&&!t.retain)throw on;let i=(l.getArgs?l.getArgs(t,this.getState(t.storyId)):t.args).map(_=>typeof _!="function"||Object.keys(_).length?_:(...p)=>{let{cursor:b,ancestors:s}=this.getState(t.storyId);this.setState(t.storyId,{cursor:0,ancestors:[...s,t.id]});let f=()=>this.setState(t.storyId,{cursor:b,ancestors:s}),d=!1;try{let S=_(...p);return S instanceof Promise?(d=!0,S.finally(f)):S}finally{d||f()}}),y=e.apply(r,i);return y&&["object","function","symbol"].includes(typeof y)&&this.setState(t.storyId,_=>({callRefsByResult:new Map([...Array.from(_.callRefsByResult.entries()),[y,{__callId__:t.id,retain:t.retain}]])})),this.update({...a,status:y instanceof Promise?"active":"done"}),y instanceof Promise?y.then(_=>(this.update({...a,status:"done"}),_),g):y}catch(i){return g(i)}}update(e){this.channel.emit(ye.CALL,e),this.setState(e.storyId,({calls:r})=>{let t=r.concat(e).reduce((l,m)=>Object.assign(l,{[m.id]:m}),{});return{calls:Object.values(t).sort((l,m)=>l.id.localeCompare(m.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let r=()=>{var i;let{isLocked:t,isPlaying:l}=this.getState(e),m=this.getLog(e),h=(i=m.filter(({ancestors:y})=>!y.length).find(y=>y.status==="waiting"))==null?void 0:i.callId,o=m.some(y=>y.status==="active");if(t||o||m.length===0){let y={controlStates:bt,logItems:m};this.channel.emit(ye.SYNC,y);return}let a=m.some(y=>y.status==="done"||y.status==="error"),g={controlStates:{start:a,back:a,goto:!0,next:l,end:l},logItems:m,pausedAt:h};this.channel.emit(ye.SYNC,g)};this.setState(e,({syncTimeout:t})=>(clearTimeout(t),{syncTimeout:setTimeout(r,0)}))}};function sn(e,r={}){var t,l,m,h,o,a,g,i;try{let y=!1,_=!1;return(m=(l=(t=ce.window)==null?void 0:t.location)==null?void 0:l.search)!=null&&m.includes("instrument=true")?y=!0:(a=(o=(h=ce.window)==null?void 0:h.location)==null?void 0:o.search)!=null&&a.includes("instrument=false")&&(_=!0),((g=ce.window)==null?void 0:g.parent)===ce.window&&!y||_?e:(ce.window&&!ce.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ce.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new ln),((i=ce.window)==null?void 0:i.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,r))}catch(y){return Qt.warn(y),e}}function mn(e,r){let t=e;for(;t!=null;){let l=Object.getOwnPropertyDescriptor(t,r);if(l)return l;t=Object.getPrototypeOf(t)}}var{step:gn}=sn({step:(e,r,t)=>r(t)},{intercept:!0}),yn={throwPlayFunctionExceptions:!1};export{yn as parameters,gn as runStep}; diff --git a/storybook/assets/preview-BpcF_O6y.js b/storybook/assets/preview-BpcF_O6y.js new file mode 100644 index 0000000..c48ec79 --- /dev/null +++ b/storybook/assets/preview-BpcF_O6y.js @@ -0,0 +1,7 @@ +const{global:r}=__STORYBOOK_MODULE_GLOBAL__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:O}=__STORYBOOK_MODULE_CORE_EVENTS__;var d="storybook/highlight",i="storybookHighlight",g=`${d}/add`,E=`${d}/reset`,{document:l}=r,H=(e="#FF4785",t="dashed")=>` + outline: 2px ${t} ${e}; + outline-offset: 2px; + box-shadow: 0 0 0 6px rgba(255,255,255,0.6); +`,h=s.getChannel(),T=e=>{let t=i;n();let o=Array.from(new Set(e.elements)),_=l.createElement("style");_.setAttribute("id",t),_.innerHTML=o.map(a=>`${a}{ + ${H(e.color,e.style)} + }`).join(" "),l.head.appendChild(_)},n=()=>{var o;let e=i,t=l.getElementById(e);t&&((o=t.parentNode)==null||o.removeChild(t))};h.on(O,n);h.on(E,n);h.on(g,T); diff --git a/storybook/assets/preview-CIRcjyVj.js b/storybook/assets/preview-CIRcjyVj.js new file mode 100644 index 0000000..098dfda --- /dev/null +++ b/storybook/assets/preview-CIRcjyVj.js @@ -0,0 +1 @@ +const e={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}};export{e as default}; diff --git a/storybook/assets/preview-CwqMn10d.js b/storybook/assets/preview-CwqMn10d.js new file mode 100644 index 0000000..fe1b7b2 --- /dev/null +++ b/storybook/assets/preview-CwqMn10d.js @@ -0,0 +1,20 @@ +import{d as E}from"./index-DrFu-skq.js";const{useMemo:f,useEffect:v}=__STORYBOOK_MODULE_PREVIEW_API__,{global:M}=__STORYBOOK_MODULE_GLOBAL__,{logger:h}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",{document:l,window:B}=M,x=()=>B.matchMedia("(prefers-reduced-motion: reduce)").matches,O=(r,e=[],a)=>{if(r==="transparent")return"transparent";if(e.find(n=>n.value===r))return r;let d=e.find(n=>n.name===a);if(d)return d.value;if(a){let n=e.map(o=>o.name).join(", ");h.warn(E` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${n}. + `)}return"transparent"},k=r=>{(Array.isArray(r)?r:[r]).forEach(S)},S=r=>{var a;let e=l.getElementById(r);e&&((a=e.parentElement)==null||a.removeChild(e))},w=(r,e)=>{let a=l.getElementById(r);if(a)a.innerHTML!==e&&(a.innerHTML=e);else{let d=l.createElement("style");d.setAttribute("id",r),d.innerHTML=e,l.head.appendChild(d)}},A=(r,e,a)=>{var n;let d=l.getElementById(r);if(d)d.innerHTML!==e&&(d.innerHTML=e);else{let o=l.createElement("style");o.setAttribute("id",r),o.innerHTML=e;let i=`addon-backgrounds-grid${a?`-docs-${a}`:""}`,t=l.getElementById(i);t?(n=t.parentElement)==null||n.insertBefore(o,t):l.head.appendChild(o)}},L=(r,e)=>{var c;let{globals:a,parameters:d}=e,n=(c=a[p])==null?void 0:c.value,o=d[p],i=f(()=>o.disable?"transparent":O(n,o.values,o.default),[o,n]),t=f(()=>i&&i!=="transparent",[i]),s=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",u=f(()=>` + ${s} { + background: ${i} !important; + ${x()?"":"transition: background-color 0.3s;"} + } + `,[i,s]);return v(()=>{let g=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!t){k(g);return}A(g,u,e.viewMode==="docs"?e.id:null)},[t,u,e]),r()},T=(r,e)=>{var y;let{globals:a,parameters:d}=e,n=d[p].grid,o=((y=a[p])==null?void 0:y.grid)===!0&&n.disable!==!0,{cellAmount:i,cellSize:t,opacity:s}=n,u=e.viewMode==="docs",c=d.layout===void 0||d.layout==="padded"?16:0,g=n.offsetX??(u?20:c),m=n.offsetY??(u?20:c),$=f(()=>{let b=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",_=[`${t*i}px ${t*i}px`,`${t*i}px ${t*i}px`,`${t}px ${t}px`,`${t}px ${t}px`].join(", ");return` + ${b} { + background-size: ${_} !important; + background-position: ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px !important; + background-blend-mode: difference !important; + background-image: linear-gradient(rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(rgba(130, 130, 130, ${s/2}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s/2}) 1px, transparent 1px) !important; + } + `},[t]);return v(()=>{let b=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!o){k(b);return}w(b,$)},[o,$,e]),r()},I=[T,L],R={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}},G={[p]:null};export{I as decorators,G as globals,R as parameters}; diff --git a/storybook/assets/preview-Db4Idchh.js b/storybook/assets/preview-Db4Idchh.js new file mode 100644 index 0000000..4200af8 --- /dev/null +++ b/storybook/assets/preview-Db4Idchh.js @@ -0,0 +1 @@ +var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function K(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function U(){h.canvas||(h=K())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function V(e){H(),e(h.context)}function Z(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function G(){var e;h.canvas&&(H(),(e=h.canvas.parentNode)==null||e.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function J(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function Q(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function x(e,t){return Math.abs(e.x-t.x){let f=l&&n.position==="center"?it(e,t,n):et(e,t,n,i[r-1],l);i[r]=f})}function lt(e,t,o,l){let i=o.reduce((n,r)=>{var f;return Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),(f=n[r.position])==null||f.push(r),n},{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function nt(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function ft(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:nt(_)}}function rt(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function at(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function st(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ht(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function ut(e){return t=>{if(e&&t){let o=ft(e),l=rt(t,o),i=at(t,o),n=st(t,o),r=ht(t,o),f=o.width<=B*3||o.height<=B;lt(t,o,[...r,...i,...n,...l],f)}}}function dt(e){V(ut(e))}var mt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=mt(e,t),dt(O)}var gt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{Z()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),U(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),G()}},[o,t.viewMode]),e()},pt="measureEnabled",ct=[gt],wt={[pt]:!1};export{ct as decorators,wt as globals}; diff --git a/storybook/assets/preview-TCN6m6T-.js b/storybook/assets/preview-TCN6m6T-.js new file mode 100644 index 0000000..421c2d1 --- /dev/null +++ b/storybook/assets/preview-TCN6m6T-.js @@ -0,0 +1 @@ +import"./index-DXimoRZY.js";const{global:O}=__STORYBOOK_MODULE_GLOBAL__,{makeDecorator:E,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:l,SELECT_STORY:L}=__STORYBOOK_MODULE_CORE_EVENTS__;var c="links",{document:i,HTMLElement:m}=O,v=e=>_.getChannel().emit(L,e),o=e=>{let{target:t}=e;if(!(t instanceof m))return;let s=t,{sbKind:a,sbStory:r}=s.dataset;(a||r)&&(e.preventDefault(),v({kind:a,story:r}))},n=!1,d=()=>{n||(n=!0,i.addEventListener("click",o))},k=()=>{n&&(n=!1,i.removeEventListener("click",o))},R=E({name:"withLinks",parameterName:c,wrapper:(e,t)=>(d(),_.getChannel().once(l,k),e(t))}),T=[R];export{T as decorators}; diff --git a/storybook/assets/preview-UNaZQn6M.js b/storybook/assets/preview-UNaZQn6M.js new file mode 100644 index 0000000..8e70de4 --- /dev/null +++ b/storybook/assets/preview-UNaZQn6M.js @@ -0,0 +1 @@ +let l;const S=new Uint8Array(16);function A(){if(!l&&(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(S)}const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function D(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}const I=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),m={randomUUID:I};function v(e,t,r){if(m.randomUUID&&!t&&!e)return m.randomUUID();e=e||{};const n=e.random||(e.rng||A)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,D(n)}const{addons:w}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__,{ImplicitActionsDuringRendering:U}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var f="storybook/actions",j=`${f}/action-event`,V={depth:10,clearOnStoryChange:!0,limit:50},E=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:E(r,t)},C=e=>!!(typeof e=="object"&&e&&E(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),K=e=>{if(C(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},L=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?v():Date.now().toString(36)+Math.random().toString(36).substring(2);function u(e,t={}){let r={...V,...t},n=function(...i){var g,O;if(t.implicit){let y=(g="__STORYBOOK_PREVIEW__"in p?p.__STORYBOOK_PREVIEW__:void 0)==null?void 0:g.storyRenders.find(d=>d.phase==="playing"||d.phase==="rendering");if(y){let d=!((O=window==null?void 0:window.FEATURES)!=null&&O.disallowImplicitActionsInRenderV8),R=new U({phase:y.phase,name:e,deprecated:d});if(d)console.warn(R);else throw R}}let c=w.getChannel(),s=L(),a=5,_=i.map(K),b=i.length>1?_:_[0],x={id:s,count:0,data:{name:e,args:b},options:{...r,maxDepth:a+(r.depth||3),allowFunction:r.allowFunction||!1}};c.emit(j,x)};return n.isAction=!0,n.implicit=t.implicit,n}var T=(e,t)=>typeof t[e]>"u"&&!(e in t),B=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let c=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([s])=>!!c.test(s)).reduce((s,[a,_])=>(T(a,t)&&(s[a]=u(a,{implicit:!0,id:n})),s),{})},M=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([i,c])=>!!c.action).reduce((i,[c,s])=>(T(c,t)&&(i[c]=u(typeof s.action=="string"?s.action:c)),i),{})},Y=[M,B],h=!1,P=e=>{let{parameters:{actions:t}}=e;if(!(t!=null&&t.disable)&&!h&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in p&&typeof p.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let r=p.__STORYBOOK_TEST_ON_MOCK_CALL__;r((n,i)=>{let c=n.getMockName();(!/^next\/.*::/.test(c)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>c.startsWith(s)))&&u(c)(i)}),h=!0}},N=[P];export{Y as argsEnhancers,N as loaders}; diff --git a/storybook/assets/preview-VkJbG7Ig.js b/storybook/assets/preview-VkJbG7Ig.js new file mode 100644 index 0000000..651a978 --- /dev/null +++ b/storybook/assets/preview-VkJbG7Ig.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-CMAjytqJ.js","./iframe-CNsWcalC.js","./index-CDs2tPxN.js","./react-18-CqnZ7Kye.js","./index-DXimoRZY.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as a}from"./iframe-CNsWcalC.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-CMAjytqJ.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/storybook/assets/react-18-CqnZ7Kye.js b/storybook/assets/react-18-CqnZ7Kye.js new file mode 100644 index 0000000..293c466 --- /dev/null +++ b/storybook/assets/react-18-CqnZ7Kye.js @@ -0,0 +1,24 @@ +import{r as Ol,g as Ta,R as Ma}from"./index-CDs2tPxN.js";var Il={},zo={exports:{}},ve={},Po={exports:{}},Lo={};/** + * @license React + * scheduler.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. + */(function(e){function n(C,z){var P=C.length;C.push(z);e:for(;0>>1,Y=C[H];if(0>>1;Hl(al,P))mnl(Xt,al)?(C[H]=Xt,C[mn]=P,H=mn):(C[H]=al,C[pn]=P,H=pn);else if(mnl(Xt,P))C[H]=Xt,C[mn]=P,H=mn;else break e}}return z}function l(C,z){var P=C.sortIndex-z.sortIndex;return P!==0?P:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],d=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var z=t(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=C)r(d),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(d)}}function h(C){if(k=!1,f(C),!w)if(t(s)!==null)w=!0,ol(E);else{var z=t(d);z!==null&&sl(h,z.startTime-C)}}function E(C,z){w=!1,k&&(k=!1,c(N),N=-1),g=!0;var P=p;try{for(f(z),m=t(s);m!==null&&(!(m.expirationTime>z)||C&&!Ce());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var Y=H(m.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===t(s)&&r(s),f(z)}else r(s);m=t(s)}if(m!==null)var Yt=!0;else{var pn=t(d);pn!==null&&sl(h,pn.startTime-z),Yt=!1}return Yt}finally{m=null,p=P,g=!1}}var x=!1,_=null,N=-1,B=5,L=-1;function Ce(){return!(e.unstable_now()-LC||125H?(C.sortIndex=P,n(d,C),t(s)===null&&C===t(d)&&(k?(c(N),N=-1):k=!0,sl(h,P-H))):(C.sortIndex=Y,n(s,C),w||g||(w=!0,ol(E))),C},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(C){var z=p;return function(){var P=p;p=z;try{return C.apply(this,arguments)}finally{p=P}}}})(Lo);Po.exports=Lo;var Ra=Po.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 Da=Ol,me=Ra;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jl=Object.prototype.hasOwnProperty,Fa=/^[: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]*$/,ku={},Su={};function Oa(e){return jl.call(Su,e)?!0:jl.call(ku,e)?!1:Fa.test(e)?Su[e]=!0:(ku[e]=!0,!1)}function Ia(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ja(e,n,t,r){if(n===null||typeof n>"u"||Ia(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];q[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new ie(e,2,!1,e,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(e){q[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){q[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){q[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){q[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){q[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Li=/[\-:]([a-z])/g;function Ti(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Li,Ti);q[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Li,Ti);q[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Li,Ti);q[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});q.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mi(e,n,t,r){var l=q.hasOwnProperty(n)?q[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{fl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?pt(e):""}function Ua(e){switch(e.tag){case 5:return pt(e.type);case 16:return pt("Lazy");case 13:return pt("Suspense");case 19:return pt("SuspenseList");case 0:case 2:case 15:return e=dl(e.type,!1),e;case 11:return e=dl(e.type.render,!1),e;case 1:return e=dl(e.type,!0),e;default:return""}}function Bl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case Tn:return"Portal";case Ul:return"Profiler";case Ri:return"StrictMode";case Vl:return"Suspense";case Al:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ro:return(e.displayName||"Context")+".Consumer";case Mo:return(e._context.displayName||"Context")+".Provider";case Di:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fi:return n=e.displayName||null,n!==null?n:Bl(e.type)||"Memo";case Ye:n=e._payload,e=e._init;try{return Bl(e(n))}catch{}}return null}function Va(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bl(n);case 8:return n===Ri?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fo(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Aa(e){var n=Fo(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Zt(e){e._valueTracker||(e._valueTracker=Aa(e))}function Oo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Fo(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Cu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=sn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Io(e,n){n=n.checked,n!=null&&Mi(e,"checked",n,!1)}function Wl(e,n){Io(e,n);var t=sn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ql(e,n.type,t):n.hasOwnProperty("defaultValue")&&Ql(e,n.type,sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function xu(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Ql(e,n,t){(n!=="number"||Sr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var mt=Array.isArray;function Hn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=Jt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var yt={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},Ba=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(e){Ba.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),yt[n]=yt[e]})});function Ao(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||yt.hasOwnProperty(e)&&yt[e]?(""+n).trim():n+"px"}function Bo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ao(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ha=V({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 Yl(e,n){if(n){if(Ha[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function Xl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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 Gl=null;function Oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Wn=null,Qn=null;function zu(e){if(e=$t(e)){if(typeof Zl!="function")throw Error(y(280));var n=e.stateNode;n&&(n=Zr(n),Zl(e.stateNode,e.type,n))}}function Ho(e){Wn?Qn?Qn.push(e):Qn=[e]:Wn=e}function Wo(){if(Wn){var e=Wn,n=Qn;if(Qn=Wn=null,zu(e),n)for(e=0;e>>=0,e===0?32:31-(ba(e)/ec|0)|0}var qt=64,bt=4194304;function vt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _r(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=vt(o):(i&=u,i!==0&&(r=vt(i)))}else u=t&~l,u!==0?r=vt(u):i!==0&&(r=vt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Wt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Pe(n),e[n]=t}function lc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wt),Iu=" ",ju=!1;function as(e,n){switch(e){case"keyup":return Rc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function Fc(e,n){switch(e){case"compositionend":return cs(n);case"keypress":return n.which!==32?null:(ju=!0,Iu);case"textInput":return e=n.data,e===Iu&&ju?null:e;default:return null}}function Oc(e,n){if(Rn)return e==="compositionend"||!Wi&&as(e,n)?(e=os(),dr=Ai=Je=null,Rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Bu(t)}}function ms(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ms(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function vs(){for(var e=window,n=Sr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Sr(e.document)}return n}function Qi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Qc(e){var n=vs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&ms(t.ownerDocument.documentElement,t)){if(r!==null&&Qi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Hu(t,i);var u=Hu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Dn=null,ti=null,St=null,ri=!1;function Wu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ri||Dn==null||Dn!==Sr(r)||(r=Dn,"selectionStart"in r&&Qi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),St&&Dt(St,r)||(St=r,r=Pr(ti,"onSelect"),0In||(e.current=ai[In],ai[In]=null,In--)}function R(e,n){In++,ai[In]=e.current,e.current=n}var an={},te=fn(an),se=fn(!1),En=an;function Gn(e,n){var t=e.type.contextTypes;if(!t)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ae(e){return e=e.childContextTypes,e!=null}function Tr(){F(se),F(te)}function Zu(e,n,t){if(te.current!==an)throw Error(y(168));R(te,n),R(se,t)}function xs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Va(e)||"Unknown",l));return V({},t,r)}function Mr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,En=te.current,R(te,e),R(se,se.current),!0}function Ju(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=xs(e,n,En),r.__reactInternalMemoizedMergedChildContext=e,F(se),F(te),R(te,e)):F(se),R(se,t)}var je=null,Jr=!1,Nl=!1;function _s(e){je===null?je=[e]:je.push(e)}function tf(e){Jr=!0,_s(e)}function dn(){if(!Nl&&je!==null){Nl=!0;var e=0,n=M;try{var t=je;for(M=1;e>=u,l-=u,Ue=1<<32-Pe(n)+l|t<N?(B=_,_=null):B=_.sibling;var L=p(c,_,f[N],h);if(L===null){_===null&&(_=B);break}e&&_&&L.alternate===null&&n(c,_),a=i(L,a,N),x===null?E=L:x.sibling=L,x=L,_=B}if(N===f.length)return t(c,_),I&&vn(c,N),E;if(_===null){for(;NN?(B=_,_=null):B=_.sibling;var Ce=p(c,_,L.value,h);if(Ce===null){_===null&&(_=B);break}e&&_&&Ce.alternate===null&&n(c,_),a=i(Ce,a,N),x===null?E=Ce:x.sibling=Ce,x=Ce,_=B}if(L.done)return t(c,_),I&&vn(c,N),E;if(_===null){for(;!L.done;N++,L=f.next())L=m(c,L.value,h),L!==null&&(a=i(L,a,N),x===null?E=L:x.sibling=L,x=L);return I&&vn(c,N),E}for(_=r(c,_);!L.done;N++,L=f.next())L=g(_,c,N,L.value,h),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?N:L.key),a=i(L,a,N),x===null?E=L:x.sibling=L,x=L);return e&&_.forEach(function(rt){return n(c,rt)}),I&&vn(c,N),E}function O(c,a,f,h){if(typeof f=="object"&&f!==null&&f.type===Mn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Gt:e:{for(var E=f.key,x=a;x!==null;){if(x.key===E){if(E=f.type,E===Mn){if(x.tag===7){t(c,x.sibling),a=l(x,f.props.children),a.return=c,c=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ye&&eo(E)===x.type){t(c,x.sibling),a=l(x,f.props),a.ref=ct(c,x,f),a.return=c,c=a;break e}t(c,x);break}else n(c,x);x=x.sibling}f.type===Mn?(a=Sn(f.props.children,c.mode,h,f.key),a.return=c,c=a):(h=kr(f.type,f.key,f.props,null,c.mode,h),h.ref=ct(c,a,f),h.return=c,c=h)}return u(c);case Tn:e:{for(x=f.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Fl(f,c.mode,h),a.return=c,c=a}return u(c);case Ye:return x=f._init,O(c,a,x(f._payload),h)}if(mt(f))return w(c,a,f,h);if(it(f))return k(c,a,f,h);ur(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=Dl(f,c.mode,h),a.return=c,c=a),u(c)):t(c,a)}return O}var Jn=Ls(!0),Ts=Ls(!1),Fr=fn(null),Or=null,Vn=null,Xi=null;function Gi(){Xi=Vn=Or=null}function Zi(e){var n=Fr.current;F(Fr),e._currentValue=n}function di(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Kn(e,n){Or=e,Xi=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(oe=!0),e.firstContext=null)}function Se(e){var n=e._currentValue;if(Xi!==e)if(e={context:e,memoizedValue:n,next:null},Vn===null){if(Or===null)throw Error(y(308));Vn=e,Or.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return n}var gn=null;function Ji(e){gn===null?gn=[e]:gn.push(e)}function Ms(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,Ji(n)):(t.next=l.next,l.next=t),n.interleaved=t,We(e,r)}function We(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Xe=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rs(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ae(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function rn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,T&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,We(e,t)}return l=r.interleaved,l===null?(n.next=n,Ji(r)):(n.next=l.next,l.next=n),r.interleaved=n,We(e,t)}function mr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ji(e,t)}}function no(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=u:i=i.next=u,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Ir(e,n,t,r){var l=e.updateQueue;Xe=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,d=s.next;s.next=null,u===null?i=d:u.next=d,u=s;var v=e.alternate;v!==null&&(v=v.updateQueue,o=v.lastBaseUpdate,o!==u&&(o===null?v.firstBaseUpdate=d:o.next=d,v.lastBaseUpdate=s))}if(i!==null){var m=l.baseState;u=0,v=d=s=null,o=i;do{var p=o.lane,g=o.eventTime;if((r&p)===p){v!==null&&(v=v.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var w=e,k=o;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=V({},m,p);break e;case 2:Xe=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},v===null?(d=v=g,s=m):v=v.next=g,u|=p;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(v===null&&(s=m),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=v,n=l.shared.interleaved,n!==null){l=n;do u|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);_n|=u,e.lanes=u,e.memoizedState=m}}function to(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Pl.transition;Pl.transition={};try{e(!1),n()}finally{M=t,Pl.transition=r}}function Gs(){return Ee().memoizedState}function of(e,n,t){var r=un(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Zs(e))Js(n,t);else if(t=Ms(e,n,t,r),t!==null){var l=le();Le(t,e,r,l),qs(t,n,r)}}function sf(e,n,t){var r=un(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Zs(e))Js(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,Te(o,u)){var s=n.interleaved;s===null?(l.next=l,Ji(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Ms(e,n,l,r),t!==null&&(l=le(),Le(t,e,r,l),qs(t,n,r))}}function Zs(e){var n=e.alternate;return e===U||n!==null&&n===U}function Js(e,n){Et=Ur=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function qs(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ji(e,t)}}var Vr={readContext:Se,useCallback:b,useContext:b,useEffect:b,useImperativeHandle:b,useInsertionEffect:b,useLayoutEffect:b,useMemo:b,useReducer:b,useRef:b,useState:b,useDebugValue:b,useDeferredValue:b,useTransition:b,useMutableSource:b,useSyncExternalStore:b,useId:b,unstable_isNewReconciler:!1},af={readContext:Se,useCallback:function(e,n){return Re().memoizedState=[e,n===void 0?null:n],e},useContext:Se,useEffect:lo,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,hr(4194308,4,Qs.bind(null,n,e),t)},useLayoutEffect:function(e,n){return hr(4194308,4,e,n)},useInsertionEffect:function(e,n){return hr(4,2,e,n)},useMemo:function(e,n){var t=Re();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Re();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=of.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var n=Re();return e={current:e},n.memoizedState=e},useState:ro,useDebugValue:uu,useDeferredValue:function(e){return Re().memoizedState=e},useTransition:function(){var e=ro(!1),n=e[0];return e=uf.bind(null,e[1]),Re().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=U,l=Re();if(I){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),G===null)throw Error(y(349));xn&30||Is(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,lo(Us.bind(null,r,i,e),[e]),r.flags|=2048,Bt(9,js.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=Re(),n=G.identifierPrefix;if(I){var t=Ve,r=Ue;t=(r&~(1<<32-Pe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Vt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[De]=n,e[It]=r,sa(e,n,!1,!1),n.stateNode=e;e:{switch(u=Xl(t,r),t){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;let&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304)}else{if(!r)if(e=jr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),ft(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!I)return ee(n),null}else 2*W()-i.renderingStartTime>et&&t!==1073741824&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=W(),n.sibling=null,t=j.current,R(j,r?t&1|2:t&1),n):(ee(n),null);case 22:case 23:return du(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?fe&1073741824&&(ee(n),n.subtreeFlags&6&&(n.flags|=8192)):ee(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function yf(e,n){switch(Ki(n),n.tag){case 1:return ae(n.type)&&Tr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qn(),F(se),F(te),nu(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return eu(n),null;case 13:if(F(j),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Zn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(j),null;case 4:return qn(),null;case 10:return Zi(n.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var sr=!1,ne=!1,gf=typeof WeakSet=="function"?WeakSet:Set,S=null;function An(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function Si(e,n,t){try{t()}catch(r){A(e,n,r)}}var ho=!1;function wf(e,n){if(li=Nr,e=vs(),Qi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=u+l),m!==i||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++v===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ii={focusedElem:e,selectionRange:t},Nr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:_e(n.type,k),O);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){A(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=ho,ho=!1,w}function Ct(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Si(n,t,i)}l=l.next}while(l!==r)}}function el(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ei(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function fa(e){var n=e.alternate;n!==null&&(e.alternate=null,fa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[De],delete n[It],delete n[si],delete n[ef],delete n[nf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function da(e){return e.tag===5||e.tag===3||e.tag===4}function yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||da(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ci(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Lr));else if(r!==4&&(e=e.child,e!==null))for(Ci(e,n,t),e=e.sibling;e!==null;)Ci(e,n,t),e=e.sibling}function xi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xi(e,n,t),e=e.sibling;e!==null;)xi(e,n,t),e=e.sibling}var Z=null,Ne=!1;function Ke(e,n,t){for(t=t.child;t!==null;)pa(e,n,t),t=t.sibling}function pa(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(Kr,t)}catch{}switch(t.tag){case 5:ne||An(t,n);case 6:var r=Z,l=Ne;Z=null,Ke(e,n,t),Z=r,Ne=l,Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Z.removeChild(t.stateNode));break;case 18:Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?_l(e.parentNode,t):e.nodeType===1&&_l(e,t),Mt(e)):_l(Z,t.stateNode));break;case 4:r=Z,l=Ne,Z=t.stateNode.containerInfo,Ne=!0,Ke(e,n,t),Z=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&Si(t,n,u),l=l.next}while(l!==r)}Ke(e,n,t);break;case 1:if(!ne&&(An(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){A(t,n,o)}Ke(e,n,t);break;case 21:Ke(e,n,t);break;case 22:t.mode&1?(ne=(r=ne)||t.memoizedState!==null,Ke(e,n,t),ne=r):Ke(e,n,t);break;default:Ke(e,n,t)}}function go(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new gf),n.forEach(function(r){var l=Pf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function xe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sf(r/1960))-r,10e?16:e,qe===null)var r=!1;else{if(e=qe,qe=null,Hr=0,T&6)throw Error(y(331));var l=T;for(T|=4,S=e.current;S!==null;){var i=S,u=i.child;if(S.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sW()-cu?kn(e,0):au|=t),ce(e,n)}function Sa(e,n){n===0&&(e.mode&1?(n=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):n=1);var t=le();e=We(e,n),e!==null&&(Wt(e,n,t),ce(e,t))}function zf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Sa(e,t)}function Pf(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Sa(e,t)}var Ea;Ea=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||se.current)oe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return oe=!1,vf(e,n,t);oe=!!(e.flags&131072)}else oe=!1,I&&n.flags&1048576&&Ns(n,Dr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;yr(e,n),e=n.pendingProps;var l=Gn(n,te.current);Kn(n,t),l=ru(null,n,r,e,l,t);var i=lu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ae(r)?(i=!0,Mr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qi(n),l.updater=br,n.stateNode=l,l._reactInternals=n,mi(n,r,e,t),n=yi(null,n,r,!0,i,t)):(n.tag=0,I&&i&&$i(n),re(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(yr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Tf(r),e=_e(r,e),l){case 0:n=hi(null,n,r,e,t);break e;case 1:n=po(null,n,r,e,t);break e;case 11:n=co(null,n,r,e,t);break e;case 14:n=fo(null,n,r,_e(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),hi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),po(e,n,r,l,t);case 3:e:{if(ia(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Rs(e,n),Ir(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=bn(Error(y(423)),n),n=mo(e,n,r,t,l);break e}else if(r!==l){l=bn(Error(y(424)),n),n=mo(e,n,r,t,l);break e}else for(de=tn(n.stateNode.containerInfo.firstChild),pe=n,I=!0,ze=null,t=Ts(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zn(),r===l){n=Qe(e,n,t);break e}re(e,n,r,t)}n=n.child}return n;case 5:return Ds(n),e===null&&fi(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ui(r,l)?u=null:i!==null&&ui(r,i)&&(n.flags|=32),la(e,n),re(e,n,u,t),n.child;case 6:return e===null&&fi(n),null;case 13:return ua(e,n,t);case 4:return bi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jn(n,null,r,t):re(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),co(e,n,r,l,t);case 7:return re(e,n,n.pendingProps,t),n.child;case 8:return re(e,n,n.pendingProps.children,t),n.child;case 12:return re(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,R(Fr,r._currentValue),r._currentValue=u,i!==null)if(Te(i.value,u)){if(i.children===l.children&&!se.current){n=Qe(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ae(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),di(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(y(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),di(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}re(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Kn(n,t),l=Se(l),r=r(l),n.flags|=1,re(e,n,r,t),n.child;case 14:return r=n.type,l=_e(r,n.pendingProps),l=_e(r.type,l),fo(e,n,r,l,t);case 15:return ta(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),yr(e,n),n.tag=1,ae(r)?(e=!0,Mr(n)):e=!1,Kn(n,t),bs(n,r,l),mi(n,r,l,t),yi(null,n,r,!0,e,t);case 19:return oa(e,n,t);case 22:return ra(e,n,t)}throw Error(y(156,n.tag))};function Ca(e,n){return Zo(e,n)}function Lf(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new Lf(e,n,t,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tf(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Di)return 11;if(e===Fi)return 14}return 2}function on(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function kr(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")mu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mn:return Sn(t.children,l,i,n);case Ri:u=8,l|=8;break;case Ul:return e=we(12,t,n,l|2),e.elementType=Ul,e.lanes=i,e;case Vl:return e=we(13,t,n,l),e.elementType=Vl,e.lanes=i,e;case Al:return e=we(19,t,n,l),e.elementType=Al,e.lanes=i,e;case Do:return tl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mo:u=10;break e;case Ro:u=9;break e;case Di:u=11;break e;case Fi:u=14;break e;case Ye:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Sn(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function tl(e,n,t,r){return e=we(22,e,r,n),e.elementType=Do,e.lanes=t,e.stateNode={isHidden:!1},e}function Dl(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function Fl(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Mf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ml(0),this.expirationTimes=ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ml(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vu(e,n,t,r,l,i,u,o,s){return e=new Mf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=we(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(i),e}function Rf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(za)}catch(e){console.error(e)}}za(),zo.exports=ve;var Pa=zo.exports;const Af=Ta(Pa);var No=Pa;Il.createRoot=No.createRoot,Il.hydrateRoot=No.hydrateRoot;var $r=new Map,jf=({callback:e,children:n})=>{let t=Ol.useRef();return Ol.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),n},Bf=async(e,n,t)=>{let r=await Uf(n,t);return new Promise(l=>{r.render(Ma.createElement(jf,{callback:()=>l(null)},e))})},Hf=(e,n)=>{let t=$r.get(e);t&&(t.unmount(),$r.delete(e))},Uf=async(e,n)=>{let t=$r.get(e);return t||(t=Il.createRoot(e,n),$r.set(e,t)),t};export{Af as $,Pa as a,Bf as r,Hf as u}; diff --git a/storybook/assets/syntaxhighlighter-BP7B2CQK-DoA1HlSX.js b/storybook/assets/syntaxhighlighter-BP7B2CQK-DoA1HlSX.js new file mode 100644 index 0000000..8bedcda --- /dev/null +++ b/storybook/assets/syntaxhighlighter-BP7B2CQK-DoA1HlSX.js @@ -0,0 +1 @@ +import{S as g,c as n,s as u,a as c}from"./DocsRenderer-K4EAMTCU-CMAjytqJ.js";import"./iframe-CNsWcalC.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,n as createCopyToClipboardFunction,u as default,c as supportedLanguages}; diff --git a/storybook/doc.svg b/storybook/doc.svg new file mode 100644 index 0000000..bef2559 --- /dev/null +++ b/storybook/doc.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/storybook/favicon.svg b/storybook/favicon.svg new file mode 100644 index 0000000..684ddb2 --- /dev/null +++ b/storybook/favicon.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/storybook/floorplan.png b/storybook/floorplan.png new file mode 100644 index 0000000..9bc2955 Binary files /dev/null and b/storybook/floorplan.png differ diff --git a/storybook/github.svg b/storybook/github.svg new file mode 100644 index 0000000..302f463 --- /dev/null +++ b/storybook/github.svg @@ -0,0 +1,6 @@ + + + github + + + \ No newline at end of file diff --git a/storybook/iframe.html b/storybook/iframe.html new file mode 100644 index 0000000..ad41fbd --- /dev/null +++ b/storybook/iframe.html @@ -0,0 +1,643 @@ + + + + + + Storybook + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+

No Preview

+

Sorry, but you either have no stories or none are selected somehow.

+
    +
  • Please check the Storybook config.
  • +
  • Try reloading the page.
  • +
+

+ If the problem persists, check the browser console, or the terminal you've run Storybook from. +

+
+
+ +
+
+

+

+ The component failed to render properly, likely due to a configuration issue in Storybook. + Here are some common causes and how you can address them: +

+
    +
  1. + Missing Context/Providers: You can use decorators to supply specific + contexts or providers, which are sometimes necessary for components to render correctly. For + detailed instructions on using decorators, please visit the + Decorators documentation. +
  2. +
  3. + Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary + settings for loaders, plugins, and other relevant parameters. You can find step-by-step + guides for configuring + Webpack or + Vite + with Storybook. +
  4. +
  5. + Missing Environment Variables: Your Storybook may require specific + environment variables to function as intended. You can set up custom environment variables + as outlined in the + Environment Variables documentation. +
  6. +
+
+
+
+ +
+
+ + diff --git a/storybook/index.html b/storybook/index.html new file mode 100644 index 0000000..3d66a72 --- /dev/null +++ b/storybook/index.html @@ -0,0 +1,171 @@ + + + + + + @storybook/cli - Storybook + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + diff --git a/storybook/index.json b/storybook/index.json new file mode 100644 index 0000000..6435006 --- /dev/null +++ b/storybook/index.json @@ -0,0 +1 @@ +{"v":4,"entries":{"react-coverage-heatmap-renderer--docs":{"id":"react-coverage-heatmap-renderer--docs","title":"react-coverage-heatmap/Renderer","name":"Docs","importPath":"./src/stories/Renderer.stories.js","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"react-coverage-heatmap-renderer--showroom-floor-ap":{"type":"story","id":"react-coverage-heatmap-renderer--showroom-floor-ap","name":"Showroom Floor Ap","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--showroom-ceiling-ap":{"type":"story","id":"react-coverage-heatmap-renderer--showroom-ceiling-ap","name":"Showroom Ceiling Ap","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--showroom-two-aps":{"type":"story","id":"react-coverage-heatmap-renderer--showroom-two-aps","name":"Showroom Two Aps","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--showroom-index-map":{"type":"story","id":"react-coverage-heatmap-renderer--showroom-index-map","name":"Showroom Index Map","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--without-door":{"type":"story","id":"react-coverage-heatmap-renderer--without-door","name":"Without Door","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--without-furniture":{"type":"story","id":"react-coverage-heatmap-renderer--without-furniture","name":"Without Furniture","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]},"react-coverage-heatmap-renderer--without-wall":{"type":"story","id":"react-coverage-heatmap-renderer--without-wall","name":"Without Wall","title":"react-coverage-heatmap/Renderer","importPath":"./src/stories/Renderer.stories.js","tags":["dev","test","autodocs"]}}} diff --git a/storybook/project.json b/storybook/project.json new file mode 100644 index 0000000..bf6c51c --- /dev/null +++ b/storybook/project.json @@ -0,0 +1 @@ +{"generatedAt":1722701032625,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.3","storybookVersionSpecifier":"^8.1.1","language":"javascript","storybookPackages":{"@storybook/blocks":{"version":"8.1.3"},"@storybook/react":{"version":"8.1.3"},"@storybook/react-vite":{"version":"8.1.3"},"@storybook/test":{"version":"8.1.3"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.1.3"}},"addons":{"@storybook/addon-onboarding":{"version":"8.1.3"},"@storybook/addon-links":{"version":"8.1.3"},"@storybook/addon-essentials":{"version":"8.1.3"},"@chromatic-com/storybook":{"version":"1.4.0"},"@storybook/addon-interactions":{"version":"8.1.3"}}} diff --git a/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js b/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js new file mode 100644 index 0000000..ebb25da --- /dev/null +++ b/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js @@ -0,0 +1,331 @@ +try{ +(()=>{var rc=Object.create;var Ha=Object.defineProperty;var ic=Object.getOwnPropertyDescriptor;var oc=Object.getOwnPropertyNames;var lc=Object.getPrototypeOf,sc=Object.prototype.hasOwnProperty;var Gt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Da=(e,t)=>()=>(e&&(t=e(e=0)),t);var cc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dc=(e,t)=>{for(var n in t)Ha(e,n,{get:t[n],enumerable:!0})},Ko=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oc(t))!sc.call(e,i)&&i!==n&&Ha(e,i,{get:()=>t[i],enumerable:!(r=ic(t,i))||r.enumerable});return e};var uc=(e,t,n)=>(n=e!=null?rc(lc(e)):{},Ko(t||!e||!e.__esModule?Ha(n,"default",{value:e,enumerable:!0}):n,e)),Jo=e=>Ko(Ha({},"__esModule",{value:!0}),e);var be=Da(()=>{});var Ye,Ee=Da(()=>{Ye={NODE_ENV:"production",NODE_PATH:[],STORYBOOK:"true",PUBLIC_URL:"."}});var ke=Da(()=>{});var $a={};dc($a,{Children:()=>pc,Component:()=>Bt,Fragment:()=>hc,Profiler:()=>fc,PureComponent:()=>gc,StrictMode:()=>vc,Suspense:()=>yc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>bc,cloneElement:()=>Ec,createContext:()=>Qe,createElement:()=>S,createFactory:()=>kc,createRef:()=>wc,default:()=>a,forwardRef:()=>q,isValidElement:()=>li,lazy:()=>Cc,memo:()=>Sc,startTransition:()=>xc,unstable_act:()=>Mc,useCallback:()=>Y,useContext:()=>hn,useDebugValue:()=>Nc,useDeferredValue:()=>Ac,useEffect:()=>le,useId:()=>Fc,useImperativeHandle:()=>Oc,useInsertionEffect:()=>Lc,useLayoutEffect:()=>Tc,useMemo:()=>Pt,useReducer:()=>si,useRef:()=>Ie,useState:()=>Te,useSyncExternalStore:()=>_c,useTransition:()=>Zc,version:()=>Ic});var a,pc,Bt,hc,fc,gc,vc,yc,bc,Ec,Qe,S,kc,wc,q,li,Cc,Sc,xc,Mc,Y,hn,Nc,Ac,le,Fc,Oc,Lc,Tc,Pt,si,Ie,Te,_c,Zc,Ic,Wn=Da(()=>{be();Ee();ke();a=__REACT__,{Children:pc,Component:Bt,Fragment:hc,Profiler:fc,PureComponent:gc,StrictMode:vc,Suspense:yc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bc,cloneElement:Ec,createContext:Qe,createElement:S,createFactory:kc,createRef:wc,forwardRef:q,isValidElement:li,lazy:Cc,memo:Sc,startTransition:xc,unstable_act:Mc,useCallback:Y,useContext:hn,useDebugValue:Nc,useDeferredValue:Ac,useEffect:le,useId:Fc,useImperativeHandle:Oc,useInsertionEffect:Lc,useLayoutEffect:Tc,useMemo:Pt,useReducer:si,useRef:Ie,useState:Te,useSyncExternalStore:_c,useTransition:Zc,version:Ic}=__REACT__});var dl=cc((Yn,mi)=>{be();Ee();ke();(function(e,t){typeof Yn=="object"&&typeof mi=="object"?mi.exports=t((Wn(),Jo($a))):typeof define=="function"&&define.amd?define(["react"],t):typeof Yn=="object"?Yn.ReactConfetti=t((Wn(),Jo($a))):e.ReactConfetti=t(e.React)})(typeof self<"u"?self:Yn,function(e){return function(t){var n={};function r(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(i,o,l){r.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:l})},r.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,o){if(1&o&&(i=r(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)r.d(l,s,(function(c){return i[c]}).bind(null,s));return l},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=2)}([function(t,n){t.exports=e},function(t,n,r){"use strict";var i={linear:function(o,l,s,c){return(s-l)*o/c+l},easeInQuad:function(o,l,s,c){return(s-l)*(o/=c)*o+l},easeOutQuad:function(o,l,s,c){return-(s-l)*(o/=c)*(o-2)+l},easeInOutQuad:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o+l:-d/2*(--o*(o-2)-1)+l},easeInCubic:function(o,l,s,c){return(s-l)*(o/=c)*o*o+l},easeOutCubic:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o+1)+l},easeInOutCubic:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o+l:d/2*((o-=2)*o*o+2)+l},easeInQuart:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o+l},easeOutQuart:function(o,l,s,c){return-(s-l)*((o=o/c-1)*o*o*o-1)+l},easeInOutQuart:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o+l:-d/2*((o-=2)*o*o*o-2)+l},easeInQuint:function(o,l,s,c){return(s-l)*(o/=c)*o*o*o*o+l},easeOutQuint:function(o,l,s,c){return(s-l)*((o=o/c-1)*o*o*o*o+1)+l},easeInOutQuint:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?d/2*o*o*o*o*o+l:d/2*((o-=2)*o*o*o*o+2)+l},easeInSine:function(o,l,s,c){var d=s-l;return-d*Math.cos(o/c*(Math.PI/2))+d+l},easeOutSine:function(o,l,s,c){return(s-l)*Math.sin(o/c*(Math.PI/2))+l},easeInOutSine:function(o,l,s,c){return-(s-l)/2*(Math.cos(Math.PI*o/c)-1)+l},easeInExpo:function(o,l,s,c){return o==0?l:(s-l)*Math.pow(2,10*(o/c-1))+l},easeOutExpo:function(o,l,s,c){var d=s-l;return o==c?l+d:d*(1-Math.pow(2,-10*o/c))+l},easeInOutExpo:function(o,l,s,c){var d=s-l;return o===0?l:o===c?l+d:(o/=c/2)<1?d/2*Math.pow(2,10*(o-1))+l:d/2*(2-Math.pow(2,-10*--o))+l},easeInCirc:function(o,l,s,c){return-(s-l)*(Math.sqrt(1-(o/=c)*o)-1)+l},easeOutCirc:function(o,l,s,c){return(s-l)*Math.sqrt(1-(o=o/c-1)*o)+l},easeInOutCirc:function(o,l,s,c){var d=s-l;return(o/=c/2)<1?-d/2*(Math.sqrt(1-o*o)-1)+l:d/2*(Math.sqrt(1-(o-=2)*o)+1)+l},easeInElastic:function(o,l,s,c){var d,u,m,p=s-l;return m=1.70158,o===0?l:(o/=c)==1?l+p:((u=0)||(u=.3*c),(d=p)=1&&this.rotationDirection===o.Positive?this.rotationDirection=o.Negative:this.rotateY<=-1&&this.rotationDirection===o.Negative&&(this.rotationDirection=o.Positive);var Oe=.1*this.rotationDirection;if(this.rotateY+=Oe,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=ye,this.context.lineCap="round",this.context.lineWidth=2,he&&typeof he=="function")he.call(this,this.context);else switch(this.shape){case i.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case i.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case i.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&m(M.prototype,A),N&&m(M,N),C}();function f(C,M,A){return M in C?Object.defineProperty(C,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[M]=A,C}var y=function C(M,A){var N=this;(function(ne,P){if(!(ne instanceof P))throw new TypeError("Cannot call a class as a function")})(this,C),f(this,"canvas",void 0),f(this,"context",void 0),f(this,"getOptions",void 0),f(this,"x",0),f(this,"y",0),f(this,"w",0),f(this,"h",0),f(this,"lastNumberOfPieces",0),f(this,"tweenInitTime",Date.now()),f(this,"particles",[]),f(this,"particlesGenerated",0),f(this,"removeParticleAt",function(ne){N.particles.splice(ne,1)}),f(this,"getParticle",function(){var ne=u(N.x,N.w+N.x),P=u(N.y,N.h+N.y);return new v(N.context,N.getOptions,ne,P)}),f(this,"animate",function(){var ne=N.canvas,P=N.context,fe=N.particlesGenerated,ye=N.lastNumberOfPieces,he=N.getOptions(),Oe=he.run,Zt=he.recycle,je=he.numberOfPieces,un=he.debug,ri=he.tweenFunction,Dn=he.tweenDuration;if(!Oe)return!1;var ii=N.particles.length,zn=Zt?ii:fe,oi=Date.now();if(znDn?Dn:Math.max(0,oi-Go),zn,je,Dn),qo=Math.round(ac-zn),Yo=0;Yone.height||Un.y<-100||Un.x>ne.width+100||Un.x<-100)&&(Zt&&zn<=je?N.particles[Qo]=N.getParticle():N.removeParticleAt(Qo))}),ii>0||zn0&&Oe.call(P,P),P._options.run=!1)}),g(this,"reset",function(){P.generator&&P.generator.particlesGenerated>0&&(P.generator.particlesGenerated=0,P.generator.particles=[],P.generator.lastNumberOfPieces=0)}),g(this,"stop",function(){P.options={run:!1},P.rafId&&(cancelAnimationFrame(P.rafId),P.rafId=void 0)}),this.canvas=ie;var fe=this.canvas.getContext("2d");if(!fe)throw new Error("Could not get canvas context");this.context=fe,this.generator=new y(this.canvas,function(){return P.options}),this.options=ne,this.update()}var M,A,N;return M=C,(A=[{key:"options",get:function(){return this._options},set:function(ie){var ne=this._options&&this._options.run,P=this._options&&this._options.recycle;this.setOptionsWithDefaults(ie),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof ie.recycle=="boolean"&&ie.recycle&&P===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof ie.run=="boolean"&&ie.run&&ne===!1&&this.update()}}])&&h(M.prototype,A),N&&h(M,N),C}();function B(C){return function(M){if(Array.isArray(M))return $e(M)}(C)||function(M){if(typeof Symbol<"u"&&Symbol.iterator in Object(M))return Array.from(M)}(C)||Ze(C)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H(C){return(H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(C)}function ae(){return(ae=Object.assign||function(C){for(var M=1;M"u"||!(Symbol.iterator in Object(A)))){var ie=[],ne=!0,P=!1,fe=void 0;try{for(var ye,he=A[Symbol.iterator]();!(ne=(ye=he.next()).done)&&(ie.push(ye.value),!N||ie.length!==N);ne=!0);}catch(Oe){P=!0,fe=Oe}finally{try{ne||he.return==null||he.return()}finally{if(P)throw fe}}return ie}}(C,M)||Ze(C,M)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ze(C,M){if(C){if(typeof C=="string")return $e(C,M);var A=Object.prototype.toString.call(C).slice(8,-1);return A==="Object"&&C.constructor&&(A=C.constructor.name),A==="Map"||A==="Set"?Array.from(C):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?$e(C,M):void 0}}function $e(C,M){(M==null||M>C.length)&&(M=C.length);for(var A=0,N=new Array(M);A"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}}();return function(){var A,N=Vn(C);if(M){var ie=Vn(this).constructor;A=Reflect.construct(N,arguments,ie)}else A=N.apply(this,arguments);return ni(this,A)}}function ni(C,M){return!M||H(M)!=="object"&&typeof M!="function"?Pn(C):M}function Pn(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function Vn(C){return(Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(C)}function Wt(C,M,A){return M in C?Object.defineProperty(C,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[M]=A,C}var ai=s.a.createRef(),jn=function(C){(function(P,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(fe&&fe.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),fe&&We(P,fe)})(ne,C);var M,A,N,ie=Va(ne);function ne(P){var fe;Me(this,ne);for(var ye=arguments.length,he=new Array(ye>1?ye-1:0),Oe=1;Oe<~]))"].join("|");return new RegExp(t,e?void 0:"g")}var Bc=pi();function hi(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Bc,"")}be();Ee();ke();var Pc="array",Vc="bit",ul="bits",jc="byte",ml="bytes",gn="",Hc="exponent",Dc="function",pl="iec",zc="Invalid number",Uc="Invalid rounding method",fi="jedec",$c="object",hl=".",Wc="round",Gc="s",qc="si",Yc="kbit",Qc="kB",Kc=" ",Jc="string",Xc="0",gi={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function vi(e,{bits:t=!1,pad:n=!1,base:r=-1,round:i=2,locale:o=gn,localeOptions:l={},separator:s=gn,spacer:c=Kc,symbols:d={},standard:u=gn,output:m=Jc,fullform:p=!1,fullforms:v=[],exponent:f=-1,roundingMethod:y=Wc,precision:k=0}={}){let b=f,h=Number(e),g=[],E=0,x=gn;u===qc?(r=10,u=fi):u===pl||u===fi?r=2:r===2?u=pl:(r=10,u=fi);let B=r===10?1e3:1024,H=p===!0,ae=h<0,re=Math[y];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(zc);if(typeof re!==Dc)throw new TypeError(Uc);if(ae&&(h=-h),(b===-1||isNaN(b))&&(b=Math.floor(Math.log(h)/Math.log(B)),b<0&&(b=0)),b>8&&(k>0&&(k+=8-b),b=8),m===Hc)return b;if(h===0)g[0]=0,x=g[1]=gi.symbol[u][t?ul:ml][b];else{E=h/(r===2?Math.pow(2,b*10):Math.pow(1e3,b)),t&&(E=E*8,E>=B&&b<8&&(E=E/B,b++));let ve=Math.pow(10,b>0?i:0);g[0]=re(E*ve)/ve,g[0]===B&&b<8&&f===-1&&(g[0]=1,b++),x=g[1]=r===10&&b===1?t?Yc:Qc:gi.symbol[u][t?ul:ml][b]}if(ae&&(g[0]=-g[0]),k>0&&(g[0]=g[0].toPrecision(k)),g[1]=d[g[1]]||g[1],o===!0?g[0]=g[0].toLocaleString():o.length>0?g[0]=g[0].toLocaleString(o,l):s.length>0&&(g[0]=g[0].toString().replace(hl,s)),n&&Number.isInteger(g[0])===!1&&i>0){let ve=s||hl,Fe=g[0].toString().split(ve),Ze=Fe[1]||gn,$e=Ze.length,Me=i-$e;g[0]=`${Fe[0]}${ve}${Ze.padEnd($e+Me,Xc)}`}return H&&(g[1]=v[b]?v[b]:gi.fullform[u][b]+(t?Vc:jc)+(g[0]===1?gn:Gc)),m===Pc?g:m===$c?{value:g[0],symbol:g[1],exponent:b,unit:x}:g.join(c)}var ed=Object.create,Q1=Object.defineProperty,td=Object.getOwnPropertyDescriptor,nd=Object.getOwnPropertyNames,ad=Object.getPrototypeOf,rd=Object.prototype.hasOwnProperty,id=(e=>typeof Gt<"u"?Gt:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof Gt<"u"?Gt:t)[n]}):e)(function(e){if(typeof Gt<"u")return Gt.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),$t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),od=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nd(t))!rd.call(e,i)&&i!==n&&Q1(e,i,{get:()=>t[i],enumerable:!(r=td(t,i))||r.enumerable});return e},mt=(e,t,n)=>(n=e!=null?ed(ad(e)):{},od(t||!e||!e.__esModule?Q1(n,"default",{value:e,enumerable:!0}):n,e)),Br=$t((e,t)=>{(function(n,r){typeof id=="function"&&typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):n.pluralize=r()})(e,function(){var n=[],r=[],i={},o={},l={};function s(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,k){return y===k?k:y===y.toLowerCase()?k.toLowerCase():y===y.toUpperCase()?k.toUpperCase():y[0]===y[0].toUpperCase()?k.charAt(0).toUpperCase()+k.substr(1).toLowerCase():k.toLowerCase()}function d(y,k){return y.replace(/\$(\d{1,2})/g,function(b,h){return k[h]||""})}function u(y,k){return y.replace(k[0],function(b,h){var g=d(k[1],arguments);return c(b===""?y[h-1]:b,g)})}function m(y,k,b){if(!y.length||i.hasOwnProperty(y))return k;for(var h=b.length;h--;){var g=b[h];if(g[0].test(k))return u(k,g)}return k}function p(y,k,b){return function(h){var g=h.toLowerCase();return k.hasOwnProperty(g)?c(h,g):y.hasOwnProperty(g)?c(h,y[g]):m(g,h,b)}}function v(y,k,b,h){return function(g){var E=g.toLowerCase();return k.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:m(E,E,b)===E}}function f(y,k,b){var h=k===1?f.singular(y):f.plural(y);return(b?k+" ":"")+h}return f.plural=p(l,o,n),f.isPlural=v(l,o,n),f.singular=p(o,l,r),f.isSingular=v(o,l,r),f.addPluralRule=function(y,k){n.push([s(y),k])},f.addSingularRule=function(y,k){r.push([s(y),k])},f.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}f.addPluralRule(y,"$0"),f.addSingularRule(y,"$0")},f.addIrregularRule=function(y,k){k=k.toLowerCase(),y=y.toLowerCase(),l[y]=k,o[k]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return f.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return f.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return f.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}),ld=$t((e,t)=>{var n=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),i=Math.min,o=Date.now;t.exports={left:l("scrollLeft"),top:l("scrollTop")};function l(d){return function(u,m,p,v){p=p||{},typeof p=="function"&&(v=p,p={}),typeof v!="function"&&(v=c);var f=o(),y=u[d],k=p.ease||s,b=isNaN(p.duration)?350:+p.duration,h=!1;return y===m?v(n,u[d]):requestAnimationFrame(E),g;function g(){h=!0}function E(x){if(h)return v(r,u[d]);var B=o(),H=i(1,(B-f)/b),ae=k(H);u[d]=ae*(m-y)+y,H<1?requestAnimationFrame(E):requestAnimationFrame(function(){v(null,u[d])})}}}function s(d){return .5*(1-Math.cos(Math.PI*d))}function c(){}}),sd=$t((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():n.Scrollparent=r()})(e,function(){function n(i){var o=getComputedStyle(i,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var o=i.parentNode;o.parentNode;){if(n(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return r})}),fo=$t((e,t)=>{var n=function(g){return r(g)&&!i(g)};function r(g){return!!g&&typeof g=="object"}function i(g){var E=Object.prototype.toString.call(g);return E==="[object RegExp]"||E==="[object Date]"||s(g)}var o=typeof Symbol=="function"&&Symbol.for,l=o?Symbol.for("react.element"):60103;function s(g){return g.$$typeof===l}function c(g){return Array.isArray(g)?[]:{}}function d(g,E){return E.clone!==!1&&E.isMergeableObject(g)?b(c(g),g,E):g}function u(g,E,x){return g.concat(E).map(function(B){return d(B,x)})}function m(g,E){if(!E.customMerge)return b;var x=E.customMerge(g);return typeof x=="function"?x:b}function p(g){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(g).filter(function(E){return Object.propertyIsEnumerable.call(g,E)}):[]}function v(g){return Object.keys(g).concat(p(g))}function f(g,E){try{return E in g}catch{return!1}}function y(g,E){return f(g,E)&&!(Object.hasOwnProperty.call(g,E)&&Object.propertyIsEnumerable.call(g,E))}function k(g,E,x){var B={};return x.isMergeableObject(g)&&v(g).forEach(function(H){B[H]=d(g[H],x)}),v(E).forEach(function(H){y(g,H)||(f(g,H)&&x.isMergeableObject(E[H])?B[H]=m(H,x)(g[H],E[H],x):B[H]=d(E[H],x))}),B}function b(g,E,x){x=x||{},x.arrayMerge=x.arrayMerge||u,x.isMergeableObject=x.isMergeableObject||n,x.cloneUnlessOtherwiseSpecified=d;var B=Array.isArray(E),H=Array.isArray(g),ae=B===H;return ae?B?x.arrayMerge(g,E,x):k(g,E,x):d(E,x)}b.all=function(g,E){if(!Array.isArray(g))throw new Error("first argument should be an array");return g.reduce(function(x,B){return b(x,B,E)},{})};var h=b;t.exports=h}),cd=$t((e,t)=>{var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n}),dd=$t((e,t)=>{var n=cd();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function o(c,d,u,m,p,v){if(v!==n){var f=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 f.name="Invariant Violation",f}}o.isRequired=o;function l(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:r};return s.PropTypes=s,s}}),ud=$t((e,t)=>{t.exports=dd()()}),md=$t((e,t)=>{var n=function(o){return Object.prototype.hasOwnProperty.call(o,"props")},r=function(o,l){return o+i(l)},i=function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(r,""):n(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?i(o.props.children):""};i.default=i,t.exports=i}),{CHROMATIC_INDEX_URL:pd,CHROMATIC_BASE_URL:Pr=pd||"https://www.chromatic.com",CHROMATIC_API_URL:hd=`${Pr}/api`}=Ye,U="chromaui/addon-visual-tests",tn=`${U}/panel`,fd=`${U}/sidebarTop`,gd=`${U}/sidebarBottom`,Pi=`${U}/access-token/${Pr}`,K1=`${U}/apiInfo`,go=`${U}/configInfo`,fl=`${U}/configInfoDismissed`,vd=`${U}/gitInfo`,J1=`${U}/gitInfoError`,X1=`${U}/projectInfo`,Vi=`${U}/isOutdated`,yd=`${U}/startBuild`,bd=`${U}/stopBuild`,es=`${U}/localBuildProgress`,Ed=`${U}/selectedModeName`,kd=`${U}/selectedBrowserId`,wd=`${U}/telemetry`,ts=`${U}/removeAddon`,Cd=`${U}/retryConnection`,Sd={autoAcceptChanges:!1,exitOnceUploaded:!1,exitZeroOnChanges:!0,forceRebuild:!0,fromCI:!1,interactive:!1,isLocalBuild:!0,skip:!1,skipUpdateCheck:!0},ns="https://www.chromatic.com/docs/visual-tests-addon",Nt=(e,t)=>{let n=hn(e);if(n==null)throw new Error(`Missing context value for ${t}`);return n},as=Qe(null),xd=({children:e,value:t})=>a.createElement(as.Provider,{value:t},e),rs=()=>Nt(as,"AuthState"),Md={user:a.createElement(a.Fragment,null,a.createElement("path",{d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0ZM2.67 11.15c.7-1 2.6-1.81 3.2-1.9.22-.04.23-.66.23-.66s-.67-.66-.81-1.55c-.4 0-.63-.94-.24-1.27l-.02-.13c-.06-.6-.28-2.6 1.97-2.6s2.03 2 1.97 2.6l-.02.13c.4.33.15 1.27-.24 1.27-.14.89-.8 1.55-.8 1.55s0 .62.22.66c.6.09 2.5.9 3.2 1.9a6 6 0 1 0-8.66 0Z"})),useralt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.27 13.16a11.39 11.39 0 0 0 5.18-1.23v-.25c0-1.57-3.24-3-4.1-3.13-.27-.05-.28-.79-.28-.79s.8-.78.96-1.83c.47 0 .75-1.12.29-1.52.02-.41.6-3.25-2.32-3.25S4.65 4 4.67 4.41c-.46.4-.17 1.52.29 1.52.17 1.05.96 1.83.96 1.83s0 .74-.27.79c-.86.13-4.04 1.53-4.1 3.08a11.44 11.44 0 0 0 5.72 1.53Z"})),useradd:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.18 11.9c-.4-.17-.8-.36-1.18-.58.06-1.44 3.02-2.74 3.82-2.87.25-.04.26-.73.26-.73s-.74-.73-.9-1.7c-.43 0-.7-1.05-.27-1.42l-.01-.14c-.07-.67-.31-2.88 2.18-2.88 2.48 0 2.24 2.2 2.17 2.88l-.01.14c.43.37.16 1.41-.27 1.41-.16.98-.9 1.71-.9 1.71s.01.69.26.73c.8.13 3.82 1.46 3.82 2.91v.24a10.63 10.63 0 0 1-8.97.3ZM11.5 2.16c.28 0 .5.22.5.5v1.5h1.5a.5.5 0 0 1 0 1H12v1.5a.5.5 0 0 1-1 0v-1.5H9.5a.5.5 0 1 1 0-1H11v-1.5c0-.28.22-.5.5-.5Z"})),users:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.21 11.62A10.59 10.59 0 0 1 0 11.07c.06-1.35 2.93-2.58 3.7-2.7.25-.03.26-.68.26-.68s-.72-.69-.87-1.6c-.42 0-.68-.99-.26-1.33 0-.03 0-.08-.02-.14-.07-.63-.3-2.71 2.12-2.71 2.41 0 2.18 2.08 2.11 2.71l-.01.14c.42.34.16 1.32-.26 1.32-.16.92-.87 1.6-.87 1.6s0 .66.25.7c.78.11 3.7 1.36 3.7 2.73v.22l-.64.3Z"}),a.createElement("path",{d:"M8.81 8.42a9.64 9.64 0 0 0-.74-.4 5.2 5.2 0 0 1 1.7-.76c.17-.02.17-.47.17-.47s-.49-.47-.6-1.1c-.28 0-.46-.68-.17-.91l-.01-.1c-.05-.43-.2-1.86 1.45-1.86 1.66 0 1.5 1.43 1.45 1.86v.1c.28.23.1.9-.18.9-.11.64-.6 1.11-.6 1.11s0 .45.17.47c.54.08 2.55.94 2.55 1.89v.62a10.6 10.6 0 0 1-3.3.56 2.97 2.97 0 0 0-.58-.88c-.37-.41-.85-.76-1.31-1.03Z"})),profile:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.1 7.35a5.06 5.06 0 0 1-4.52-.28C4.6 6.4 6.02 5.77 6.4 5.7c.12-.02.12-.35.12-.35s-.35-.34-.43-.81c-.2 0-.33-.5-.12-.67l-.01-.07C5.93 3.48 5.81 2.42 7 2.42S8.07 3.48 8.04 3.8v.07c.2.17.07.67-.13.67-.08.47-.43.81-.43.81s0 .33.12.35c.38.06 1.82.7 1.82 1.4v.1c-.1.06-.2.1-.31.15Zm-5.35 3.9c0-.14.11-.25.25-.25h6a.25.25 0 1 1 0 .5H4a.25.25 0 0 1-.25-.25ZM4 9a.25.25 0 0 0 0 .5h6a.25.25 0 1 0 0-.5H4Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1 .5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v13a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V.5ZM2 13V1h10v12H2Z"})),facehappy:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.97 8.75a.5.5 0 0 0-.87.5 4.5 4.5 0 0 0 7.8 0 .5.5 0 1 0-.87-.5 3.5 3.5 0 0 1-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),faceneutral:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),facesad:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.97 10.25a.5.5 0 0 1-.87-.5 4.5 4.5 0 0 1 7.8 0 .5.5 0 1 1-.87.5 3.5 3.5 0 0 0-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),accessibility:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z"}),a.createElement("path",{d:"M7 4.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),accessibilityalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM8 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z"})),arrowup:a.createElement(a.Fragment,null,a.createElement("path",{d:"m7.35 2.9 5.5 5.5a.5.5 0 0 1-.7.7L7 3.96 1.85 9.1a.5.5 0 1 1-.7-.7l5.5-5.5c.2-.2.5-.2.7 0Z"})),arrowdown:a.createElement(a.Fragment,null,a.createElement("path",{d:"m1.15 5.6 5.5 5.5c.2.2.5.2.7 0l5.5-5.5a.5.5 0 0 0-.7-.7L7 10.04 1.85 4.9a.5.5 0 1 0-.7.7Z"})),arrowleft:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.76 7.1c.02.09.06.18.14.25l5.5 5.5a.5.5 0 0 0 .7-.7L3.96 7 9.1 1.85a.5.5 0 1 0-.7-.7l-5.5 5.5a.5.5 0 0 0-.14.45Z"})),arrowright:a.createElement(a.Fragment,null,a.createElement("path",{d:"m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z"})),arrowupalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.85 4.65 7.35.15a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 1 0 .7.7L6.5 1.71V13.5a.5.5 0 0 0 1 0V1.7l3.65 3.65a.5.5 0 0 0 .7-.7Z"})),arrowdownalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v11.8L2.85 8.64a.5.5 0 1 0-.7.7l4.5 4.5A.5.5 0 0 0 7 14a.5.5 0 0 0 .35-.15l4.5-4.5a.5.5 0 0 0-.7-.7L7.5 12.29V.5Z"})),arrowleftalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.35 2.15c.2.2.2.5 0 .7L1.71 6.5H13.5a.5.5 0 0 1 0 1H1.7l3.65 3.65a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"})),arrowrightalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8.65 2.15c.2-.2.5-.2.7 0l4.5 4.5c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7-.7l3.64-3.65H.5a.5.5 0 0 1 0-1h11.8L8.64 2.85a.5.5 0 0 1 0-.7Z"})),expandalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"m7.35.15 4 4a.5.5 0 0 1-.7.7L7 1.21 3.35 4.85a.5.5 0 1 1-.7-.7l4-4c.2-.2.5-.2.7 0ZM11.35 9.15c.2.2.2.5 0 .7l-4 4a.5.5 0 0 1-.7 0l-4-4a.5.5 0 1 1 .7-.7L7 12.79l3.65-3.64c.2-.2.5-.2.7 0Z"})),collapse:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.354.146a.5.5 0 1 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0-.708-.708L7 3.793 3.354.146Zm3.292 9a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708L7 10.207l-3.646 3.647a.5.5 0 0 1-.708-.708l4-4Z"})),expand:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5 1h2a.5.5 0 0 1 0 1h-.8l3.15 3.15a.5.5 0 1 1-.7.7L2 2.71v.79a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 1.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-.8L8.85 5.86a.5.5 0 1 1-.7-.7L11.29 2h-.79a.5.5 0 0 1-.5-.5ZM12.5 10c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h.8L8.14 8.85a.5.5 0 1 1 .7-.7L12 11.29v-.79c0-.28.22-.5.5-.5ZM2 11.3v-.8a.5.5 0 0 0-1 0v2c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1h-.8l3.15-3.15a.5.5 0 1 0-.7-.7L2 11.29Z"})),unfold:a.createElement(a.Fragment,null,a.createElement("path",{d:"m6.65.15-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64V5a.5.5 0 0 0 1 0V1.7l.65.65a.5.5 0 1 0 .7-.7L7.35.15a.5.5 0 0 0-.7 0Z"}),a.createElement("path",{d:"M1.3 4.04a.5.5 0 0 0-.16.82L3.3 7 1.15 9.15a.5.5 0 0 0 .35.85h3a.5.5 0 0 0 0-1H2.7l1.5-1.5h5.6l2.35 2.35a.5.5 0 0 0 .7-.7L10.71 7l2.14-2.15.11-.54-.1.54A.5.5 0 0 0 13 4.5a.5.5 0 0 0-.14-.35.5.5 0 0 0-.36-.15h-3a.5.5 0 0 0 0 1h1.8L9.8 6.5H4.2L2.7 5h1.8a.5.5 0 0 0 0-1h-3a.5.5 0 0 0-.2.04Z"}),a.createElement("path",{d:"M7 8.5c.28 0 .5.22.5.5v3.3l.65-.65a.5.5 0 0 1 .7.7l-1.5 1.5a.5.5 0 0 1-.7 0l-1.5-1.5a.5.5 0 0 1 .7-.7l.65.64V9c0-.28.22-.5.5-.5ZM9 9.5c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5Z"})),transfer:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.65 2.65c.2-.2.5-.2.7 0l1.5 1.5c.2.2.2.5 0 .7l-1.5 1.5a.5.5 0 0 1-.7-.7l.64-.65H1.5a.5.5 0 0 1 0-1h9.8l-.65-.65a.5.5 0 0 1 0-.7ZM3.35 8.35 2.71 9h9.79a.5.5 0 0 1 0 1H2.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7Z"})),redirect:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5 1c.28 0 .5.22.5.5V10a2 2 0 0 0 4 0V4a3 3 0 0 1 6 0v7.8l1.15-1.15a.5.5 0 0 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 0 1 .7-.7L11 11.79V4a2 2 0 1 0-4 0v6a3 3 0 0 1-6 0V1.5c0-.28.22-.5.5-.5Z"})),undo:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.15 3.85a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7L2.71 3H9a4 4 0 0 1 0 8H3a.5.5 0 0 1 0-1h6a3 3 0 1 0 0-6H2.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2Z"})),reply:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.35 2.15c.2.2.2.5 0 .7L1.71 5.5H9.5A4.5 4.5 0 0 1 14 10v1.5a.5.5 0 0 1-1 0V10a3.5 3.5 0 0 0-3.5-3.5H1.7l2.65 2.65a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"})),sync:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.5 1A.5.5 0 0 0 5 .5H2a.5.5 0 0 0 0 1h1.53a6.5 6.5 0 0 0 2.39 11.91.5.5 0 1 0 .16-.99A5.5 5.5 0 0 1 4.5 2.1V4a.5.5 0 0 0 1 0V1ZM7.5 1a.5.5 0 0 1 .58-.41 6.5 6.5 0 0 1 2.39 11.91H12a.5.5 0 0 1 0 1H9a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.9A5.5 5.5 0 0 0 7.92 1.58.5.5 0 0 1 7.5 1Z"})),upload:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8.65 5.85 7.5 4.71v5.79a.5.5 0 0 1-1 0V4.7L5.35 5.86a.5.5 0 1 1-.7-.7l2-2c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),download:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.35 8.15 6.5 9.29V3.5a.5.5 0 0 1 1 0v5.8l1.15-1.15a.5.5 0 1 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 1 1 .7-.7Z"}),a.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm1 0a6 6 0 1 1 12 0A6 6 0 0 1 1 7Z"})),back:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.85 5.35 4.71 6.5h5.79a.5.5 0 0 1 0 1H4.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Z"})),proceed:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.5 6.5h5.8L8.14 5.35a.5.5 0 1 1 .7-.7l2 2c.2.2.2.5 0 .7l-2 2a.5.5 0 1 1-.7-.7L9.29 7.5H3.5a.5.5 0 0 1 0-1Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14Zm0-1A6 6 0 1 1 7 1a6 6 0 0 1 0 12Z"})),refresh:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.1.5H7a6.5 6.5 0 1 0 6.41 7.58.5.5 0 1 0-.99-.16A5.47 5.47 0 0 1 7 12.5a5.5 5.5 0 0 1 0-11 5.5 5.5 0 0 1 4.9 3H10a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-1 0v1.53A6.5 6.5 0 0 0 7.1.5Z"})),globe:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 0 0 7a7 7 0 0 0 14 0Zm-6.53 5.74c-.24.23-.4.26-.47.26-.08 0-.23-.03-.47-.26-.23-.24-.5-.62-.73-1.18A11.57 11.57 0 0 1 5 7.5h4a11.57 11.57 0 0 1-.8 4.06c-.24.56-.5.94-.73 1.18ZM8.99 6.5H5.01c.05-1.62.35-3.04.79-4.06.24-.56.5-.94.73-1.18.24-.23.4-.26.47-.26.08 0 .23.03.47.26.23.24.5.62.73 1.18.44 1.02.74 2.44.8 4.06Zm1 1c-.06 2.18-.56 4.08-1.28 5.25a6 6 0 0 0 4.27-5.25H9.99Zm2.99-1H9.99c-.06-2.18-.56-4.08-1.28-5.25a6 6 0 0 1 4.27 5.25ZM4 6.5c.06-2.18.56-4.08 1.28-5.25A6 6 0 0 0 1.02 6.5h2.99Zm-2.99 1a6 6 0 0 0 4.27 5.25c-.72-1.17-1.22-3.07-1.28-5.25H1.02Z"})),compass:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M10.09 3.4 5.95 5.8a.37.37 0 0 0-.11.09.38.38 0 0 0-.04.05l-2.4 4.15a.37.37 0 0 0 0 .38c.1.18.33.24.5.14l4.15-2.4a.37.37 0 0 0 .15-.15l2.4-4.15a.37.37 0 0 0-.03-.44.37.37 0 0 0-.48-.07ZM4.75 9.25 7.6 7.6 6.4 6.4 4.75 9.25Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),location:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm6.5 3.5v2.48A6 6 0 0 1 1.02 7.5H3.5a.5.5 0 0 0 0-1H1.02A6 6 0 0 1 6.5 1.02V3.5a.5.5 0 0 0 1 0V1.02a6 6 0 0 1 5.48 5.48H10.5a.5.5 0 0 0 0 1h2.48a6 6 0 0 1-5.48 5.48V10.5a.5.5 0 0 0-1 0Z"})),pin:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M9 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M12 5A5 5 0 0 0 2 5c0 2.63 2.27 6.15 4.65 8.64.2.2.5.2.7 0C9.73 11.15 12 7.64 12 5ZM7 1a4 4 0 0 1 4 4c0 1.06-.47 2.42-1.3 3.88A21.23 21.23 0 0 1 7 12.55c-1-1.1-1.97-2.39-2.7-3.67A8.46 8.46 0 0 1 3 5a4 4 0 0 1 4-4Z"})),time:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 2c.28 0 .5.22.5.5v4H10a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5V2.5c0-.28.22-.5.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),dashboard:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.8 4.1a.5.5 0 0 1 .1.7L7.92 7.58A1 1 0 1 1 7.1 7l2-2.8a.5.5 0 0 1 .7-.12Z"}),a.createElement("path",{fillRule:"evenodd",d:"M2.07 12.97a7 7 0 1 1 9.86 0 12.96 12.96 0 0 0-9.86 0Zm9.58-1.18a6 6 0 1 0-9.3 0 13.98 13.98 0 0 1 9.3 0Z"})),timer:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5 4.5a.5.5 0 0 0-1 0v2.63a1 1 0 1 0 1 0V4.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M5.5.5c0-.28.22-.5.5-.5h2a.5.5 0 0 1 0 1h-.5v1.02c1.28.1 2.45.61 3.37 1.4l.78-.77a.5.5 0 0 1 .7.7l-.77.78a6 6 0 1 1-5.08-2.1V1H6a.5.5 0 0 1-.5-.5ZM7 3a5 5 0 1 0 0 10A5 5 0 0 0 7 3Z"})),home:a.createElement(a.Fragment,null,a.createElement("path",{d:"m7.35 1.15 5.5 5.5a.5.5 0 0 1-.7.7L12 7.21v5.29a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V9H6v3.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V7.2l-.15.15a.5.5 0 1 1-.7-.7l1-1 4.5-4.5c.2-.2.5-.2.7 0ZM3 6.2V12h2V8.5c0-.28.22-.5.5-.5h3c.28 0 .5.22.5.5V12h2V6.2l-4-4-4 4Z"})),admin:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M1.21 4.1a.5.5 0 0 1 .06-.04l5.48-3a.5.5 0 0 1 .5 0l5.48 3a.5.5 0 0 1 .27.39.5.5 0 0 1-.51.55H1.51a.5.5 0 0 1-.3-.9ZM3.46 4h7.08L7 2.07 3.46 4Z"}),a.createElement("path",{d:"M4 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM11 6a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V6ZM5.75 5.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM8.75 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM1.5 12.5c0-.27.22-.5.5-.5h10a.5.5 0 0 1 0 1H2a.5.5 0 0 1-.5-.5Z"})),info:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM7 4.5A.75.75 0 1 0 7 3a.75.75 0 0 0 0 1.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),question:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 1 1 7 7a.5.5 0 0 0-.5.5V9a.5.5 0 0 0 1 0V7.95a2.75 2.75 0 1 0-3.25-2.7.5.5 0 0 0 1 0ZM7 11.5A.75.75 0 1 0 7 10a.75.75 0 0 0 0 1.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),support:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-3.52 4.9a5.97 5.97 0 0 1-6.96 0l1.45-1.45a3.98 3.98 0 0 0 4.06 0l1.45 1.44Zm-.03-2.87 1.44 1.45a5.97 5.97 0 0 0 0-6.96l-1.44 1.45a3.98 3.98 0 0 1 0 4.06ZM9.03 3.55l1.45-1.44a5.97 5.97 0 0 0-6.96 0l1.45 1.44a3.98 3.98 0 0 1 4.06 0ZM3.55 4.97 2.11 3.52a5.97 5.97 0 0 0 0 6.96l1.44-1.45a3.98 3.98 0 0 1 0-4.06ZM10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),alert:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 4.5c.28 0 .5.22.5.5v3.5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM7.75 10.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7.2 1.04a.5.5 0 0 1 .24.21l6.49 11a.5.5 0 0 1-.44.75H.51a.5.5 0 0 1-.5-.45.5.5 0 0 1 .06-.31l6.5-10.99a.5.5 0 0 1 .64-.2ZM7 2.48 1.38 12h11.24L7 2.48Z"})),email:a.createElement(a.Fragment,null,a.createElement("path",{d:"M0 2.5c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-9Zm1 1.02V11h12V3.52L7.31 7.89a.5.5 0 0 1-.52.07.5.5 0 0 1-.1-.07L1 3.52ZM12.03 3H1.97L7 6.87 12.03 3Z"})),phone:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"m7.76 8.13-.05.05a.2.2 0 0 1-.28.03A6.76 6.76 0 0 1 5.8 6.56a.21.21 0 0 1 .04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 0 0-.51.13A3.23 3.23 0 0 0 .9 3.42c-.13 1.1.26 2.37 1.17 3.78a16.68 16.68 0 0 0 4.55 4.6 6.57 6.57 0 0 0 3.53 1.32A3.2 3.2 0 0 0 13 11.46c.14-.24.24-.64-.07-1.18a7.8 7.8 0 0 0-1.73-1.8c-.64-.5-1.52-1.12-2.13-1.12a.97.97 0 0 0-.34.06c-.47.17-.74.46-.95.69l-.02.02Zm4.32 2.68a6.8 6.8 0 0 0-1.48-1.54h-.02c-.3-.25-.64-.49-.95-.67a2.7 2.7 0 0 0-.56-.24h-.01c-.23.09-.34.21-.56.45l-.02.02-.04.04a1.2 1.2 0 0 1-1.6.15 7.76 7.76 0 0 1-1.86-1.89l-.01-.01-.02-.02a1.21 1.21 0 0 1 .2-1.53l.06-.06.02-.02c.22-.2.35-.31.43-.53v-.02c0-.02 0-.06-.03-.14a3.7 3.7 0 0 0-.5-.88h-.01V3.9c-.23-.33-.65-.87-1.1-1.32H4c-.31-.32-.55-.5-.72-.6a.6.6 0 0 0-.22-.1h-.03a2.23 2.23 0 0 0-1.15 1.66c-.09.78.18 1.8 1.02 3.1a15.68 15.68 0 0 0 4.27 4.33l.02.01.02.02a5.57 5.57 0 0 0 2.97 1.11 2.2 2.2 0 0 0 1.93-1.14h.01v-.05a.57.57 0 0 0-.05-.12Z"})),link:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.84 2.16a2.25 2.25 0 0 0-3.18 0l-2.5 2.5c-.88.88-.88 2.3 0 3.18a.5.5 0 0 1-.7.7 3.25 3.25 0 0 1 0-4.59l2.5-2.5a3.25 3.25 0 0 1 4.59 4.6L10.48 8.1c.04-.44.01-.89-.09-1.32l1.45-1.45c.88-.88.88-2.3 0-3.18Z"}),a.createElement("path",{d:"M3.6 7.2c-.1-.42-.12-.87-.08-1.31L1.45 7.95a3.25 3.25 0 1 0 4.6 4.6l2.5-2.5a3.25 3.25 0 0 0 0-4.6.5.5 0 0 0-.7.7c.87.89.87 2.31 0 3.2l-2.5 2.5a2.25 2.25 0 1 1-3.2-3.2l1.46-1.44Z"})),unlink:a.createElement(a.Fragment,null,a.createElement("path",{d:"m1.45 7.95 1.3-1.3.71.7-1.3 1.3a2.25 2.25 0 1 0 3.18 3.2l1.3-1.31.71.7-1.3 1.3a3.25 3.25 0 0 1-4.6-4.59ZM12.55 6.05l-1.3 1.3-.71-.7 1.3-1.3a2.25 2.25 0 1 0-3.18-3.2l-1.3 1.31-.71-.7 1.3-1.3a3.25 3.25 0 0 1 4.6 4.59ZM1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),bell:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M8 1.11a1 1 0 1 0-1.99 0A4.5 4.5 0 0 0 2.5 5.5v3.88l-.94 1.89a.5.5 0 0 0-.06.3.5.5 0 0 0 .51.43h3.58a1.5 1.5 0 1 0 2.82 0H12a.5.5 0 0 0 .45-.73l-.94-1.89V5.5A4.5 4.5 0 0 0 8 1.11ZM2.8 11h8.4l-.5-1H3.3l-.5 1Zm7.7-2V5.5a3.5 3.5 0 1 0-7 0V9h7Zm-4 3.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z"})),rss:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5.5c0-.28.22-.5.5-.5a12 12 0 0 1 12 12 .5.5 0 0 1-1 0A11 11 0 0 0 2 1a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{d:"M1.5 4.5c0-.28.22-.5.5-.5a8 8 0 0 1 8 8 .5.5 0 0 1-1 0 7 7 0 0 0-7-7 .5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M5 11a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})),sharealt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a.5.5 0 0 0-1 0V12H2V2h4.5a.5.5 0 0 0 0-1H2Z"}),a.createElement("path",{d:"M7.35 7.36 12 2.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 1 0 0 1h1.8L6.64 6.64a.5.5 0 1 0 .7.7Z"})),share:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.65.15c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7L7.5 1.72v6.8a.5.5 0 0 1-1 0V1.7L5.35 2.86a.5.5 0 1 1-.7-.71l2-2Z"}),a.createElement("path",{d:"M2 4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H9.5a.5.5 0 1 0 0 1H12v7H2V5h2.5a.5.5 0 0 0 0-1H2Z"})),circlehollow:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12Zm0 1A7 7 0 1 0 7 0a7 7 0 0 0 0 14Z"})),circle:a.createElement("path",{d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Z"}),bookmarkhollow:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5ZM4 12.41l2.66-2.28a.45.45 0 0 1 .38-.13c.1.01.2.05.29.12l2.67 2.3V1H4v11.41Z"})),bookmark:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5Z"})),diamond:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M8.41 1.59a2 2 0 0 0-2.82 0l-4 4a2 2 0 0 0 0 2.82l4 4a2 2 0 0 0 2.82 0l4-4a2 2 0 0 0 0-2.82l-4-4Zm.71-.71a3 3 0 0 0-4.24 0l-4 4a3 3 0 0 0 0 4.24l4 4a3 3 0 0 0 4.24 0l4-4a3 3 0 0 0 0-4.24l-4-4Z"})),hearthollow:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59ZM1.2 3.53A2.2 2.2 0 0 1 2.57 2.2M1.2 3.53c-.13.33-.2.72-.2 1.18 0 .22.03.45.1.68a3.97 3.97 0 0 0 .79 1.46c.19.23.38.45.59.65l4.51 4.36 4.52-4.35c.2-.2.4-.4.59-.65.18-.23.34-.47.49-.73.13-.23.23-.48.3-.73.08-.23.11-.46.11-.7 0-.45-.07-.84-.2-1.18-.12-.33-.3-.6-.51-.8v-.01c-.22-.2-.5-.38-.85-.51-.34-.13-.75-.2-1.24-.2-.2 0-.4.03-.6.09a4.95 4.95 0 0 0-1.9 1.22l-.68.67-.7-.65a9.97 9.97 0 0 0-.62-.53c-.2-.16-.42-.3-.63-.42h-.01c-.21-.12-.43-.22-.66-.29C4.2 2.03 4 2 3.77 2c-.48 0-.88.07-1.21.2"})),heart:a.createElement(a.Fragment,null,a.createElement("path",{d:"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59Z"})),starhollow:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.32.78a.75.75 0 0 1 1.36 0l1.63 3.54 3.87.46c.63.07.89.86.42 1.3l-2.86 2.64.76 3.81a.75.75 0 0 1-1.1.8L7 11.43l-3.4 1.9a.75.75 0 0 1-1.1-.8l.76-3.81L.4 6.07a.75.75 0 0 1 .42-1.3l3.87-.45L6.32.78ZM7 1.7 5.54 4.86c-.11.24-.34.4-.6.43l-3.46.42 2.56 2.37c.2.17.28.44.23.7l-.68 3.42 3.04-1.7c.23-.14.5-.14.74 0l3.04 1.7-.68-3.43a.75.75 0 0 1 .23-.7l2.56-2.36-3.47-.42a.75.75 0 0 1-.59-.43L7 1.7Z"})),star:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.68.78a.75.75 0 0 0-1.36 0L4.69 4.32l-3.87.46a.75.75 0 0 0-.42 1.3l2.86 2.64-.76 3.81a.75.75 0 0 0 1.1.8l3.4-1.9 3.4 1.9a.75.75 0 0 0 1.1-.8l-.76-3.81 2.86-2.65a.75.75 0 0 0-.42-1.3L9.3 4.33 7.68.78Z"})),certificate:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M10 7.85A4.49 4.49 0 0 0 7 0a4.5 4.5 0 0 0-3 7.85V13a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.15L7 11.21l2.15 2.14A.5.5 0 0 0 10 13V7.85ZM7 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.35 2.15c.2-.2.5-.2.7 0L9 11.79V8.53a4.48 4.48 0 0 1-4 0v3.26l1.65-1.64Z"})),verified:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.56 13.12a1 1 0 0 1 .88 0l.98.49a1 1 0 0 0 1.31-.43l.52-.97a1 1 0 0 1 .7-.51l1.08-.2a1 1 0 0 0 .81-1.1l-.15-1.1a1 1 0 0 1 .27-.82l.76-.8a1 1 0 0 0 0-1.37l-.76-.79a1 1 0 0 1-.27-.83l.15-1.08a1 1 0 0 0-.8-1.12l-1.09-.19a1 1 0 0 1-.7-.5L9.73.81A1 1 0 0 0 8.43.4l-1 .49a1 1 0 0 1-.87 0L5.58.39a1 1 0 0 0-1.31.43l-.52.97a1 1 0 0 1-.7.51l-1.08.2a1 1 0 0 0-.81 1.1l.15 1.1a1 1 0 0 1-.27.82l-.76.8a1 1 0 0 0 0 1.37l.76.79a1 1 0 0 1 .27.83l-.15 1.08a1 1 0 0 0 .8 1.12l1.09.19a1 1 0 0 1 .7.5l.52.98a1 1 0 0 0 1.3.43l1-.49Zm4.3-8.47c.19.2.19.5 0 .7l-4.5 4.5a.5.5 0 0 1-.71 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z"})),thumbsup:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.5 5.5 0 0 1-1.3-.16c-.42-.1-.91-.25-1.47-.45-.3-.12-.63-.21-.95-.27H2.88a.84.84 0 0 1-.62-.26.84.84 0 0 1-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 0 1 .62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 0 1 .62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7a2.94 2.94 0 0 1 .21 1.58 3 3 0 0 1-.3 1h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98.07.54-.07 1.08-.4 1.51a1.9 1.9 0 0 1-.57 1.5Zm.47-5.33a.96.96 0 0 0 .03-.25.74.74 0 0 0-.23-.51.68.68 0 0 0-.52-.23H7.93l.73-1.45a2 2 0 0 0 .21-.87c0-.44-.07-.7-.13-.82a.53.53 0 0 0-.24-.24 1.3 1.3 0 0 0-.54-.12.99.99 0 0 0-.14.28c-.08.27-.13.52-.18.76-.06.38-.2.77-.48 1.07v.01l-.02.01c-.2.2-.4.46-.67.8l-.61.76c-.15.17-.35.38-.54.51l-.26.18H5v4.13h.02c.38.08.76.18 1.12.32.53.2.98.33 1.35.42.36.09.71.13 1.07.13h.88c.43 0 .68-.11.87-.29a.9.9 0 0 0 .26-.7l-.02-.37.22-.3c.17-.23.25-.5.2-.78l-.04-.33.17-.3a.97.97 0 0 0 .13-.48c0-.09 0-.13-.02-.15l-.15-.46.26-.4c.1-.15.13-.25.15-.33ZM3.5 10.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),shield:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M11.76 2.08a.5.5 0 0 1 .24.42v6a.5.5 0 0 1-.17.38l-4.5 3.99a.5.5 0 0 1-.67 0l-4.49-4A.5.5 0 0 1 2 8.5V2.5c0-.18.1-.34.24-.42l.01-.02a2.5 2.5 0 0 1 .3-.16c.22-.1.52-.24.92-.37C4.27 1.26 5.44 1 7 1c1.56 0 2.73.26 3.53.53a6.97 6.97 0 0 1 1.22.53l.01.02ZM3 2.79v5.49l1.07.94 6.59-6.58-.44-.17C9.52 2.24 8.44 2 7 2c-1.44 0-2.52.24-3.22.47-.35.12-.6.24-.78.32Zm4 9.04L4.82 9.9 11 3.71v4.57l-4 3.55Z"})),basket:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.35 2.85a.5.5 0 1 0-.7-.7l-3 3a.5.5 0 1 0 .7.7l3-3Z"}),a.createElement("path",{d:"M2.09 6H4.5a.5.5 0 0 0 0-1H1.8a.75.75 0 0 0-.74.87l.8 4.88A1.5 1.5 0 0 0 3.36 12h7.3a1.5 1.5 0 0 0 1.48-1.25l.81-4.88A.75.75 0 0 0 12.2 5H10a.5.5 0 0 0 0 1h1.91l-.76 4.58a.5.5 0 0 1-.5.42h-7.3a.5.5 0 0 1-.5-.42L2.1 6Z"}),a.createElement("path",{d:"M4.5 7c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 7.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2ZM6.5 9.5v-2a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0Z"})),beaker:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M4.5 2h.75v3.87l-3.03 5.26c-.48.83.12 1.87 1.08 1.87h7.4c.96 0 1.57-1.04 1.08-1.87L8.75 5.87V2h.75a.5.5 0 0 0 0-1h-5a.5.5 0 0 0 0 1Zm1.75 4V2h1.5v4.13l.07.12 1 1.75H5.18l1.01-1.75.07-.12V6ZM4.6 9l-1.52 2.63c-.1.16.03.37.22.37h7.4c.2 0 .31-.2.22-.37L9.4 9H4.6Z"})),hourglass:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M3.5 1a.5.5 0 0 0-.5.5c0 1.06.14 1.9.68 2.97.34.7.86 1.5 1.6 2.53a16.53 16.53 0 0 0-1.8 2.96A6 6 0 0 0 3 12.49v.01a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5 6 6 0 0 0-.48-2.54c-.34-.8-.9-1.71-1.8-2.96a19.78 19.78 0 0 0 1.6-2.53c.54-1.08.68-1.9.68-2.97a.5.5 0 0 0-.5-.5h-7Zm6.49 11a4.68 4.68 0 0 0-.39-1.65c-.27-.65-.73-1.4-1.5-2.5a133 133 0 0 1-.75 1 .5.5 0 0 1-.56.1.5.5 0 0 1-.2-.16l-.7-.94a14.36 14.36 0 0 0-1.5 2.5A4.68 4.68 0 0 0 4.02 12H10ZM6.3 6.72l.7.94a90.06 90.06 0 0 0 .7-.96c.49-.67.87-1.22 1.17-1.7H5.13A32.67 32.67 0 0 0 6.3 6.72ZM4.56 4h4.88c.36-.73.5-1.31.55-2H4c.04.69.19 1.27.55 2Z"})),flag:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M11.5 1h-9a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 1 0V8h8.5a.5.5 0 0 0 .35-.85L9.21 4.5l2.64-2.65A.5.5 0 0 0 11.5 1ZM8.15 4.15 10.29 2H3v5h7.3L8.14 4.85a.5.5 0 0 1 0-.7Z"})),cloudhollow:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M10 7V6a3 3 0 0 0-5.9-.74l-.18.68-.7.07A2.5 2.5 0 0 0 3.5 11h3.19l.07-.01h.08L7 11h4a2 2 0 1 0 0-4h-1ZM3.12 5.02A3.5 3.5 0 0 0 3.5 12H11a3 3 0 1 0 0-6 4 4 0 0 0-7.88-.98Z"})),cloud:a.createElement("path",{d:"M7 2a4 4 0 0 1 4 4 3 3 0 1 1 0 6H3.5a3.5 3.5 0 0 1-.38-6.98A4 4 0 0 1 7 2Z"}),edit:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"m13.85 2.15-2-2a.5.5 0 0 0-.7 0l-1.5 1.5-9 9a.5.5 0 0 0-.14.26L0 13.39a.5.5 0 0 0 .14.46.5.5 0 0 0 .46.14l2.48-.5a.5.5 0 0 0 .27-.14l9-9 1.5-1.5a.5.5 0 0 0 0-.7ZM12 3.29l.8-.79-1.3-1.3-.8.8L12 3.3Zm-2-.58L1.7 11 3 12.3 11.3 4 10 2.7ZM1.14 12.86l.17-.85.68.68-.85.17Z"})),cog:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.59 5.59a2 2 0 0 1 3.27 2.14.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 1 0-.36-.94A2 2 0 0 1 5.6 5.6Z",fill:"#333"}),a.createElement("path",{fillRule:"evenodd",d:"M.94 6.53c.13.12.19.3.18.46 0 .17-.05.34-.18.47L0 8.39c.19.94.55 1.81 1.07 2.58h1.32c.18 0 .34.07.46.2.12.11.2.27.2.45v1.32c.76.51 1.62.88 2.55 1.06l.94-.94a.63.63 0 0 1 .45-.19h.03c.16 0 .33.07.45.19l.94.94a7.1 7.1 0 0 0 2.55-1.06v-1.33c0-.18.07-.35.2-.46.11-.12.27-.2.45-.2h1.33A7.1 7.1 0 0 0 14 8.4l-.95-.94a.64.64 0 0 1-.18-.47c0-.17.06-.34.18-.46l.95-.95a7.1 7.1 0 0 0-1.05-2.52h-1.34a.63.63 0 0 1-.46-.2.64.64 0 0 1-.2-.46V1.06A7.1 7.1 0 0 0 8.42 0l-.94.94a.63.63 0 0 1-.45.19H7a.63.63 0 0 1-.45-.19L5.6 0a7.1 7.1 0 0 0-2.56 1.06v1.33c0 .18-.07.34-.2.46a.63.63 0 0 1-.45.2H1.06A7.1 7.1 0 0 0 0 5.59l.94.94Zm.7 1.63c.33-.32.49-.75.48-1.17 0-.42-.15-.85-.47-1.17l-.54-.54c.12-.43.3-.85.51-1.23h.77c.46 0 .87-.2 1.17-.5.3-.29.48-.7.48-1.16v-.77c.4-.22.81-.39 1.25-.52l.54.55c.33.32.75.48 1.16.48h.03c.42 0 .84-.16 1.16-.48l.54-.54c.44.12.85.3 1.24.5v.8c0 .45.19.87.49 1.16.3.3.7.5 1.16.5h.78c.2.37.38.78.5 1.2l-.54.55c-.33.32-.49.75-.48 1.17 0 .42.15.85.48 1.17l.55.55c-.13.44-.3.85-.52 1.24h-.77c-.45 0-.87.2-1.16.5-.3.29-.5.7-.5 1.16v.77c-.38.21-.8.39-1.23.51l-.54-.54a1.64 1.64 0 0 0-1.16-.48H7c-.41 0-.83.16-1.16.48l-.54.55a6.1 6.1 0 0 1-1.25-.52v-.76c0-.45-.19-.87-.48-1.16-.3-.3-.71-.5-1.17-.5h-.76a6.1 6.1 0 0 1-.53-1.25l.55-.55Z"})),nut:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.59 8.41a2 2 0 1 1 3.27-.68.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 0 0-.36-.94 2 2 0 0 1-2.14-.45Z"}),a.createElement("path",{fillRule:"evenodd",d:"M6.5.29a1 1 0 0 1 1 0l5.06 2.92c.31.18.5.51.5.87v5.84a1 1 0 0 1-.5.87L7.5 13.7a1 1 0 0 1-1 0L1.44 10.8a1 1 0 0 1-.5-.87V4.08a1 1 0 0 1 .5-.87L6.5.3Zm.5.86 5.06 2.93v5.84L7 12.85 1.94 9.92V4.08L7 1.15Z"})),wrench:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.5 1c.44 0 .56.52.25.83l-.8.81c-.2.2-.2.52 0 .72l.69.7c.2.2.52.2.72 0l.8-.81c.32-.31.84-.2.84.25a2.5 2.5 0 0 1-3.41 2.33L2.7 12.7a1 1 0 0 1-1.42-1.42l6.88-6.88A2.5 2.5 0 0 1 10.5 1ZM2 12.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),ellipsis:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM13 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})),check:a.createElement(a.Fragment,null,a.createElement("path",{d:"M13.85 3.35a.5.5 0 0 0-.7-.7L5 10.79.85 6.65a.5.5 0 1 0-.7.7l4.5 4.5c.2.2.5.2.7 0l8.5-8.5Z"})),form:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6.4a.5.5 0 0 0-1 0V12H2V2h7.5a.5.5 0 0 0 0-1H2Z"}),a.createElement("path",{d:"m6.35 9.86 7.5-7.5a.5.5 0 0 0-.7-.71L6 8.8 3.85 6.65a.5.5 0 1 0-.7.7l2.5 2.5c.2.2.5.2.7 0Z"})),batchdeny:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.646.646a.5.5 0 0 1 0 .708L5.207 7l3.647 3.646a.5.5 0 0 1-.708.708L4.5 7.707.854 11.354a.5.5 0 0 1-.708-.708L3.793 7 .146 3.354a.5.5 0 1 1 .708-.708L4.5 6.293l3.646-3.647a.5.5 0 0 1 .708 0ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z"})),batchaccept:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.2.6a.5.5 0 0 1 .1.7l-5.995 7.993a.505.505 0 0 1-.37.206.5.5 0 0 1-.395-.152L.146 8.854a.5.5 0 1 1 .708-.708l2.092 2.093L8.6 2.7a.5.5 0 0 1 .7-.1ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z"})),controls:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.5 1c.28 0 .5.22.5.5V2h1.5a.5.5 0 0 1 0 1H11v.5a.5.5 0 0 1-1 0V3H1.5a.5.5 0 0 1 0-1H10v-.5c0-.28.22-.5.5-.5ZM1.5 11a.5.5 0 0 0 0 1H10v.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H11v-.5a.5.5 0 0 0-1 0v.5H1.5ZM1 7c0-.28.22-.5.5-.5H3V6a.5.5 0 0 1 1 0v.5h8.5a.5.5 0 0 1 0 1H4V8a.5.5 0 0 1-1 0v-.5H1.5A.5.5 0 0 1 1 7Z"})),plus:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v6h-6a.5.5 0 0 0 0 1h6v6a.5.5 0 0 0 1 0v-6h6a.5.5 0 0 0 0-1h-6v-6Z"})),closeAlt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.03.97A.75.75 0 0 0 .97 2.03L5.94 7 .97 11.97a.75.75 0 1 0 1.06 1.06L7 8.06l4.97 4.97a.75.75 0 1 0 1.06-1.06L8.06 7l4.97-4.97A.75.75 0 0 0 11.97.97L7 5.94 2.03.97Z"})),cross:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.85 1.15a.5.5 0 1 0-.7.7L6.29 7l-5.14 5.15a.5.5 0 0 0 .7.7L7 7.71l5.15 5.14a.5.5 0 0 0 .7-.7L7.71 7l5.14-5.15a.5.5 0 0 0-.7-.7L7 6.29 1.85 1.15Z"})),trash:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.5 4.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM9 5a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M4.5.5c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5V2h3a.5.5 0 0 1 0 1H12v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V3h-.5a.5.5 0 0 1 0-1h3V.5ZM3 3v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3H3Zm2.5-2h3v1h-3V1Z"})),pinalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5 5H3.66A4 4 0 0 0 .83 6.17l-.48.48a.5.5 0 0 0 0 .7l2.8 2.8-3 3a.5.5 0 0 0 .7.7l3-3 2.8 2.8c.2.2.5.2.7 0l.48-.48A4 4 0 0 0 9 10.34V9l2-2c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM11 5.59l-3 3v1.75a3 3 0 0 1-.88 2.12L7 12.6 1.41 7l.13-.12A3 3 0 0 1 3.66 6H5.4l3-3-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6Z"})),unpin:a.createElement(a.Fragment,null,a.createElement("path",{d:"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5.7 4.3l.71.7 2-2-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6l-2 2 .7.7L11 7c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM.83 6.17A4 4 0 0 1 3.59 5l1 1h-.93a3 3 0 0 0-2.12.88L1.4 7 7 12.59l.12-.13A3 3 0 0 0 8 10.34v-.93l1 1a4 4 0 0 1-1.17 2.76l-.48.48a.5.5 0 0 1-.7 0l-2.8-2.8-3 3a.5.5 0 0 1-.7-.7l3-3-2.8-2.8a.5.5 0 0 1 0-.7l.48-.48Zm1.02-5.02a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),add:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 3c.28 0 .5.22.5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3c0-.28.22-.5.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),subtract:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),close:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.85 4.15c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),delete:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0a6 6 0 0 1-9.87 4.58l8.45-8.45A5.98 5.98 0 0 1 13 7ZM2.42 10.87l8.45-8.45a6 6 0 0 0-8.46 8.46Z"})),passed:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm3.85-9.35c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z"})),changed:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"})),failed:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm2.85-9.85c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z"})),clear:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M5 2h7a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-1.41-.59l-3-3a2 2 0 0 1 0-2.82l3-3A2 2 0 0 1 5 2Zm1.15 3.15c.2-.2.5-.2.7 0L8 6.29l1.15-1.14a.5.5 0 1 1 .7.7L8.71 7l1.14 1.15a.5.5 0 0 1-.7.7L8 7.71 6.85 8.85a.5.5 0 1 1-.7-.7L7.29 7 6.15 5.85a.5.5 0 0 1 0-.7Z"})),comment:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.5 5a.5.5 0 1 0 0 1h7a.5.5 0 0 0 0-1h-7ZM3 8.5c0-.27.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M12.5 12H5.7l-1.85 1.86a.5.5 0 0 1-.35.14.5.5 0 0 1-.5-.5V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5ZM2 11V3h10v8H2Z"})),commentadd:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5 5a.5.5 0 1 0-1 0v1.5H5a.5.5 0 1 0 0 1h1.5V9a.5.5 0 0 0 1 0V7.5H9a.5.5 0 0 0 0-1H7.5V5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z"})),requestchange:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.85 6.65c.2.2.2.51 0 .7l-2 2a.5.5 0 1 1-.7-.7L8.3 7.5H4.5a.5.5 0 0 1 0-1h3.79L7.15 5.36a.5.5 0 1 1 .7-.71l2 2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z"})),comments:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8.5 7a.5.5 0 0 0 0-1h-5a.5.5 0 1 0 0 1h5ZM9 8.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1 0-1h5c.28 0 .5.23.5.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M12 11.5V10h1.5a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v8c0 .28.22.5.5.5H2v1.5a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.14L4.71 12h6.79a.5.5 0 0 0 .5-.5ZM3 3V2h10v7h-1V3.5a.5.5 0 0 0-.5-.5H3Zm-2 8V4h10v7H1Z"})),lock:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8 8a1 1 0 0 1-.5.87v1.63a.5.5 0 0 1-1 0V8.87A1 1 0 1 1 8 8Z"}),a.createElement("path",{fillRule:"evenodd",d:"M3 4a4 4 0 1 1 8 0v1h1.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4Zm7 1V4a3 3 0 1 0-6 0v1h6Zm2 1H2v7h10V6Z"})),unlock:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.5 8.87a1 1 0 1 1 1 0v1.63a.5.5 0 0 1-1 0V8.87Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 0 0-3 3v1h8.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4a4 4 0 0 1 7.76-1.38.5.5 0 0 1-.94.34A3 3 0 0 0 7 1ZM2 6h10v7H2V6Z"})),key:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7.5 8.53v.97a.5.5 0 0 1-.5.5H5.5v1.5a.5.5 0 0 1-.5.5H3.5v1.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .15-.36l5.12-5.11a4.5 4.5 0 1 1 2.23 2.5ZM6 4.5a3.5 3.5 0 1 1 1.5 2.87c-.29-.2-1-.37-1 .48V9H5a.5.5 0 0 0-.5.5V11H3a.5.5 0 0 0-.5.5V13H1v-1.3l5.2-5.19c.15-.16.18-.4.1-.6A3.47 3.47 0 0 1 6 4.5Z"})),outbox:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.35.15a.5.5 0 0 0-.7 0l-2 2a.5.5 0 1 0 .7.7L6.5 1.72v6.8a.5.5 0 0 0 1 0V1.7l1.15 1.15a.5.5 0 1 0 .7-.71l-2-2Z"}),a.createElement("path",{d:"M2 7.5a.5.5 0 1 0-1 0v5c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-1 0V12H2V7.5Z"})),credit:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.5 8a.5.5 0 1 0 0 1h3a.5.5 0 0 0 0-1h-3Z"}),a.createElement("path",{fillRule:"evenodd",d:"M0 11.5c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5a.5.5 0 0 0-.5.5v9ZM1 3v1h12V3H1Zm0 8h12V6H1v5Z"})),button:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h3.5a.5.5 0 1 0 0-1H1V4h12v5h-1a.5.5 0 0 0 0 1h1a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H1Z"}),a.createElement("path",{d:"M6.45 7a.5.5 0 0 1 .3.08l3.48 2.02a.5.5 0 0 1 0 .87l-1.08.62.75 1.3a.75.75 0 0 1-1.3.75l-.75-1.3-1.07.62a.5.5 0 0 1-.67-.13.5.5 0 0 1-.1-.3L6 7.5a.5.5 0 0 1 .45-.5Z"})),type:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4 1.5c0-.27.22-.5.5-.5h5a.5.5 0 1 1 0 1h-2v10h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2V2h-2a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{d:"M0 4.5c0-.27.22-.5.5-.5h4a.5.5 0 1 1 0 1H1v4h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-5ZM9.5 4a.5.5 0 1 0 0 1H13v4H9.5a.5.5 0 1 0 0 1h4a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-4Z"})),pointerdefault:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.94 12.46c.11 0 .2-.06.25-.15l1.58-3.16 2.54 2.54c.04.05.1.07.19.07a.3.3 0 0 0 .2-.07l.8-.8a.27.27 0 0 0 0-.38L8.9 7.9l3.4-1.7c.06-.03.1-.07.12-.11a.22.22 0 0 0 .04-.14.33.33 0 0 0-.06-.16.17.17 0 0 0-.09-.07h-.02L1.91 1.55a.27.27 0 0 0-.35.36l4.15 10.37c.04.09.12.16.23.17Zm-.03 1h-.02a1.28 1.28 0 0 1-1.1-.8L.62 2.29A1.27 1.27 0 0 1 2.3.63l10.35 4.15c.52.18.79.65.81 1.11.04.53-.27.98-.7 1.2l-2.17 1.08L12.2 9.8c.5.5.5 1.3 0 1.8l-.8.8v.01c-.5.46-1.3.48-1.8-.01l-1.56-1.56-.95 1.92c-.23.45-.68.7-1.15.7h-.03Z"})),pointerhand:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.87 6v-.02c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47V5.17a.6.6 0 0 0 0-.05c-.02-.27-.23-.5-.47-.5a.5.5 0 0 0-.52.5v1.65l-.01.1a.49.49 0 0 1-.46.37.48.48 0 0 1-.47-.47V4.62a.6.6 0 0 0 0-.05c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 0 1-.47-.47V1.75c-.02-.27-.22-.5-.47-.5a.5.5 0 0 0-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47v-.26a.78.78 0 0 0-.06-.31.65.65 0 0 0-.16-.22l-.2-.19A6.37 6.37 0 0 0 3.06 7h-.02c-.43-.34-.62-.25-.69-.2-.26.14-.29.5-.13.74l1.73 2.6v.01h-.01l-.04.02.05-.02s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.04-.6.04-1.19.03-1.78V6Zm.97 2.38c-.06 1.29-.26 2.67-1.08 3.72-.88 1.12-2.29 1.65-4.23 1.65a4.64 4.64 0 0 1-3.4-1.62 6.96 6.96 0 0 1-1.05-1.5v-.02L1.4 8.1A1.6 1.6 0 0 1 1.15 7c.05-.38.26-.8.69-1.04.2-.13.48-.23.85-.19.36.05.68.22.98.45.14.1.27.22.4.33v-4.8A1.5 1.5 0 0 1 5.63.25c.93.04 1.43.86 1.43 1.55v1.33c.17-.05.35-.07.53-.06h.02c.5.04.91.33 1.15.71a1.5 1.5 0 0 1 .74-.16c.66.03 1.12.46 1.32.97a1.5 1.5 0 0 1 .64-.1h.02c.85.06 1.39.8 1.39 1.55v.48c0 .6 0 1.24-.03 1.86Z"})),browser:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5H.5Zm.5-1V4h12v8H1Zm1-9.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),tablet:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.5 0C2.67 0 2 .68 2 1.5v11c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-11c0-.82-.67-1.5-1.5-1.5h-7Zm0 1h7c.28 0 .5.23.5.5V11H3V1.5c0-.27.22-.5.5-.5ZM6 12a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1H6Z"})),mobile:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3 1.5C3 .68 3.67 0 4.5 0h5c.83 0 1.5.68 1.5 1.5v11c0 .83-.67 1.5-1.5 1.5h-5A1.5 1.5 0 0 1 3 12.5v-11ZM4 12V2h6v10H4Z"})),watch:a.createElement(a.Fragment,null,a.createElement("path",{key:"watch",fillRule:"evenodd",d:"M4 .5c0-.27.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5A.5.5 0 0 1 4 .5ZM9.5 3h-5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Zm-5-1C3.67 2 3 2.68 3 3.5v7c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-7c0-.82-.67-1.5-1.5-1.5h-5ZM7 4c.28 0 .5.23.5.5v2h1a.5.5 0 1 1 0 1H7a.5.5 0 0 1-.5-.5V4.5c0-.27.22-.5.5-.5Zm-2.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z"})),sidebar:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2ZM6 2h6v10H6V2Z"})),sidebaralt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5ZM10 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1h-1Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h6v10H2ZM9 2h3v10H9V2Z"})),sidebaralttoggle:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.5 4.5A.5.5 0 0 0 11 4h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5ZM11 6a.5.5 0 0 1 0 1h-1a.5.5 0 0 1 0-1h1Zm.5 2.5A.5.5 0 0 0 11 8h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11ZM9 12h3V2H9v10Zm-1 0H2V2h6v4.5H5.2l.66-.65a.5.5 0 1 0-.71-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7l-.64-.65H8V12Z"})),sidebartoggle:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2Zm4 0V7.5h2.8l-.65.65a.5.5 0 1 0 .7.7l1.5-1.5a.5.5 0 0 0 0-.7l-1.5-1.5a.5.5 0 1 0-.7.7l.64.65H6V2h6v10H6Z"})),bottombar:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3 10.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 8V2h10v6H2Zm10 1v3H2V9h10Z"})),bottombartoggle:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.5 10a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1 12.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5Zm1-.5V9h10v3H2Zm4.5-4H2V2h10v6H7.5V5.21l.65.65a.5.5 0 1 0 .7-.71l-1.5-1.5a.5.5 0 0 0-.7 0l-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64v2.8Z"})),cpu:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M5 5.5c0-.27.22-.5.5-.5h3c.28 0 .5.23.5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3ZM6 8V6h2v2H6Z"}),a.createElement("path",{fillRule:"evenodd",d:"M5.5 0c.28 0 .5.23.5.5V2h2V.5a.5.5 0 0 1 1 0V2h2.5c.28 0 .5.23.5.5V5h1.5a.5.5 0 0 1 0 1H12v2h1.5a.5.5 0 0 1 0 1H12v2.5a.5.5 0 0 1-.5.5H9v1.5a.5.5 0 0 1-1 0V12H6v1.5a.5.5 0 0 1-1 0V12H2.5a.5.5 0 0 1-.5-.5V9H.5a.5.5 0 0 1 0-1H2V6H.5a.5.5 0 0 1 0-1H2V2.5c0-.27.22-.5.5-.5H5V.5c0-.27.22-.5.5-.5ZM11 3H3v8h8V3Z"})),database:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M12 3c0-1.1-2.24-2-5-2s-5 .9-5 2v8c0 .43.26.75.54.98.3.23.68.41 1.12.55.88.3 2.06.47 3.34.47 1.28 0 2.46-.17 3.34-.46.44-.15.83-.33 1.12-.56.28-.23.54-.55.54-.98V3Zm-1.03 0a2.45 2.45 0 0 0-.8-.49A8.88 8.88 0 0 0 7 2c-1.29 0-2.4.21-3.16.51a2.45 2.45 0 0 0-.81.49l.05.05c.13.13.37.28.76.44C4.6 3.79 5.7 4 7 4s2.4-.21 3.16-.51a2.45 2.45 0 0 0 .81-.49ZM11 5.75V4.2A8.9 8.9 0 0 1 7 5a8.98 8.98 0 0 1-4-.8v1.55l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 6.75a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03v-.01ZM3 7.01c.2.1.42.2.66.28.88.29 2.06.46 3.34.46 1.28 0 2.46-.17 3.34-.46.24-.08.46-.17.66-.28V8.5l-.02.04a.62.62 0 0 1-.14.15c-.17.13-.44.27-.82.4A10 10 0 0 1 7 9.5a10 10 0 0 1-3.02-.41 2.76 2.76 0 0 1-.82-.4.62.62 0 0 1-.14-.15.15.15 0 0 1-.02-.03V7Zm0 2.75V11l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 12a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03V9.76c-.2.1-.42.2-.66.28-.88.29-2.06.46-3.34.46-1.28 0-2.46-.17-3.34-.46A4.77 4.77 0 0 1 3 9.76Z"})),memory:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5 3a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0V3Zm2-.5c.28 0 .5.22.5.5v3a.5.5 0 0 1-1 0V3c0-.28.22-.5.5-.5Zm3 2a.5.5 0 1 0-1 0V6a.5.5 0 0 0 1 0V4.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M12 3.54a.5.5 0 0 0-.15-.39l-3-3a.5.5 0 0 0-.38-.14H2.5a.5.5 0 0 0-.5.5v13c0 .27.22.5.5.5h9a.5.5 0 0 0 .5-.5V3.53ZM3 1h5.3L11 3.71v5.3H3V1Zm0 9v3h8v-3H3Z"})),structure:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8.16 3.45a1.5 1.5 0 1 0-2.33 0l-4.02 6.58A1.5 1.5 0 1 0 2.91 12h8.18a1.5 1.5 0 1 0 1.1-1.97L8.16 3.45Zm-1.47.52a1.5 1.5 0 0 0 .62 0l4.03 6.58c-.11.14-.2.29-.25.45H2.9a1.5 1.5 0 0 0-.25-.45L6.7 3.97Z"})),box:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"m7.21.05 6.49 2.99a.5.5 0 0 1 .3.47v6.98a.5.5 0 0 1-.3.47l-6.47 2.98a.5.5 0 0 1-.46 0L.3 10.96a.5.5 0 0 1-.3-.47V3.5a.5.5 0 0 1 .3-.47L6.79.05a.5.5 0 0 1 .43 0ZM1 4.28v5.9l5.5 2.54v-5.9L1 4.28Zm6.5 8.44 5.5-2.54v-5.9L7.5 6.82v5.9Zm4.8-9.22L7 5.95 1.7 3.5 7 1.05l5.3 2.45Z"})),power:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0v-6Z"}),a.createElement("path",{d:"M4.27 2.8a.5.5 0 0 0-.54-.83 6 6 0 1 0 6.54 0 .5.5 0 0 0-.54.84 5 5 0 1 1-5.46 0Z"})),photo:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M6.25 4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M13 1.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5ZM2 9.3V2h10v5.3L9.85 5.15a.5.5 0 0 0-.7 0L6.5 7.8 5.35 6.65a.5.5 0 0 0-.7 0L2 9.3Zm7.5-3.1L12 8.7V12H2v-1.3l3-3 3.15 3.15a.5.5 0 0 0 .7-.71L7.21 8.5 9.5 6.21Z"})),component:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.5 1A2.5 2.5 0 0 0 1 3.5v7A2.5 2.5 0 0 0 3.5 13h7a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 10.5 1h-7ZM12 6.5H7.5V2h3c.83 0 1.5.68 1.5 1.5v3Zm0 1v3c0 .83-.67 1.5-1.5 1.5h-3V7.5H12ZM6.5 12V7.5H2v3c0 .83.67 1.5 1.5 1.5h3ZM2 6.5h4.5V2h-3C2.67 2 2 2.68 2 3.5v3Z"})),grid:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5H6c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H1.5A.5.5 0 0 1 1 6V1.5Zm1 4V2h3.5v3.5H2Zm5.5-4c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V1.5Zm1 4V2H12v3.5H8.5Zm-7 2A.5.5 0 0 0 1 8v4.5c0 .28.22.5.5.5H6a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5H1.5Zm.5 1V12h3.5V8.5H2ZM7.5 8c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5v4.5a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V8Zm1 4V8.5H12V12H8.5Z"})),outline:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2 2v2H1V1.5c0-.27.22-.5.5-.5H4v1H2ZM1 9V5h1v4H1Zm0 1v2.5c0 .28.22.5.5.5H4v-1H2v-2H1Zm9 3h2.5a.5.5 0 0 0 .5-.5V10h-1v2h-2v1Zm2-9h1V1.5a.5.5 0 0 0-.5-.5H10v1h2v2Zm-3 8v1H5v-1h4ZM9 1v1H5V1h4Zm4 8h-1V5h1v4ZM7 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),photodrag:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M8.25 3.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5V6h1V4h2v6.5c0 .28.22.5.5.5H10v2H8v1h2.5a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V7ZM4 1v5.8l1.65-1.65c.2-.2.5-.2.7 0L7.5 6.3l2.65-2.65c.2-.2.5-.2.7 0L13 5.8V1H4Zm9 6.21-2.5-2.5-2.3 2.3 1.15 1.14a.5.5 0 1 1-.7.7L6 6.22l-2 2v1.8h9V7.2Z"}),a.createElement("path",{d:"M0 10V7h1v3H0Zm0 3.5V11h1v2h2v1H.5a.5.5 0 0 1-.5-.5Zm7 .5H4v-1h3v1Z"})),search:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"})),zoom:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6 3.5c.28 0 .5.22.5.5v1.5H8a.5.5 0 0 1 0 1H6.5V8a.5.5 0 0 1-1 0V6.5H4a.5.5 0 0 1 0-1h1.5V4c0-.28.22-.5.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"})),zoomout:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4 5.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1H4Z"}),a.createElement("path",{fillRule:"evenodd",d:"M6 11.5c1.35 0 2.59-.49 3.54-1.3.03.06.06.11.1.15l3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1A5.5 5.5 0 1 0 6 11.5Zm0-1a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"})),zoomreset:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5 2.84V1.5a.5.5 0 0 0-1 0V4c0 .28.22.5.5.5h2.5a.5.5 0 0 0 0-1H2.26a4.5 4.5 0 1 1-.5 4.02.5.5 0 1 0-.94.33 5.5 5.5 0 0 0 8.72 2.36l.1.14 3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1 5.5 5.5 0 1 0-8.7-6.7Z"})),eye:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),a.createElement("path",{fillRule:"evenodd",d:"m14 7-.2.3c-.13.16-3.06 4.2-6.8 4.2C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3C.34 6.55 3.27 2.5 7 2.5c3.74 0 6.67 4.04 6.8 4.2l.2.3ZM2.9 5.3A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8 1.52 0 2.96-.83 4.1-1.8A13 13 0 0 0 12.76 7a13 13 0 0 0-1.66-1.7C9.96 4.33 8.52 3.5 7 3.5c-1.52 0-2.96.83-4.1 1.8Z"})),eyeclose:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11ZM11.1 8.7c-.17.15-.36.3-.55.44l.72.71a13.25 13.25 0 0 0 2.52-2.56L14 7l-.2-.3c-.13-.16-3.06-4.2-6.8-4.2-.89 0-1.73.23-2.5.58l.76.76A4.86 4.86 0 0 1 7 3.5c1.52 0 2.96.83 4.1 1.8A13 13 0 0 1 12.76 7a13 13 0 0 1-1.66 1.7ZM.2 6.7c.08-.09 1.04-1.41 2.53-2.55l.72.71c-.2.14-.38.3-.55.44A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8.6 0 1.18-.13 1.74-.34l.77.76c-.78.35-1.62.58-2.51.58C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3Z"}),a.createElement("path",{d:"M4.5 7c0-.32.06-.63.17-.91l3.24 3.24A2.5 2.5 0 0 1 4.5 7Zm4.83.91L6.09 4.67a2.5 2.5 0 0 1 3.24 3.24Z"})),lightning:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .28.09.5.5 0 0 0 .35-.14L11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L2.52 6.6Zm7.72.63-3.07-.8 1.85-4.14-5.2 4.51 2.94.77-1.27 4.28 4.75-4.62Zm-5.73 6.2.04.02Z"})),lightningoff:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.14 8.72 11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L5.46 4.05l.71.7L9.02 2.3 7.38 5.97l.7.7 2.16.56-.8.79.7.7ZM2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .63-.05l3.84-3.74-.7-.7-2.51 2.43 1.13-3.81-.68-.69L3.8 6.8l.85-.73-.71-.7L2.52 6.6Zm-.67-5.45a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),contrast:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3 3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h10a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3Zm1 1v2.3L6.3 4H4ZM3 4v6.5a.5.5 0 0 0 .5.5H10v2H1V4h2Zm1-1h6.5a.5.5 0 0 1 .5.5V10h2V1H4v2Zm6 7V7.71l-2.3 2.3H10Zm0-3.7V4.7L4.7 10h1.6L10 6.3ZM9.3 4H7.7L4 7.71V9.3L9.3 4Z"})),switchalt:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3 3V.5c0-.27.22-.5.5-.5h10c.28 0 .5.23.5.5v10a.5.5 0 0 1-.5.5H11v2.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-10c0-.27.22-.5.5-.5H3Zm1 0V1h9v9h-2V3.5a.5.5 0 0 0-.5-.5H4Zm6 8v2H1V4h2v6.5c0 .28.22.5.5.5H10Zm0-1H4V4h6v6Z"})),mirror:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12h10V2L2 12Z"})),grow:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5 1a.5.5 0 1 0 0 1H12v10.5a.5.5 0 0 0 1 0V2a1 1 0 0 0-1-1H1.5Z"}),a.createElement("path",{d:"M1 3.5c0-.27.22-.5.5-.5H10a1 1 0 0 1 1 1v8.5a.5.5 0 0 1-1 0V4H1.5a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h7a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-7ZM2 6v6h6V6H2Z"})),paintbrush:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M11.8535.1464a.5.5 0 0 0-.7071 0L2.9827 8.3102a2.2396 2.2396 0 0 0-1.0737.599C.6772 10.141.2402 11.903.0852 12.9978 0 13.5998 0 14.0002 0 14.0002s.4004 0 1.0023-.0853c1.095-.155 2.8569-.5919 4.0887-1.8237.307-.307.5067-.6806.5992-1.0743l8.1633-8.1633a.5.5 0 0 0 0-.7071l-2-2Zm-6.253 9.546L6.543 8.75l-1.293-1.2929-.9424.9424a2.242 2.242 0 0 1 .7835.5097c.23.2302.4.4977.5095.7831ZM7.25 8.0428 12.7929 2.5 11.5 1.2071 5.957 6.75 7.25 8.0429ZM4.3839 9.6163c.4881.4882.4881 1.2796 0 1.7678-.7665.7664-1.832 1.1845-2.7791 1.403a8.6972 8.6972 0 0 1-.49.0982 8.7151 8.7151 0 0 1 .0982-.4899c.2186-.9471.6367-2.0126 1.403-2.779.4882-.4882 1.2797-.4882 1.7679 0Z"})),ruler:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1.5 1c.28 0 .5.23.5.5V2h10v-.5a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0V3H2v.5a.5.5 0 0 1-1 0v-2c0-.27.22-.5.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 6a.5.5 0 0 0-.5.5v6c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-11ZM2 7v5h10V7h-1v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H7.5v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H4v2.5a.5.5 0 0 1-1 0V7H2Z"})),stop:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.5 4a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),camera:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"}),a.createElement("path",{fillRule:"evenodd",d:"M2.5 1a.5.5 0 0 0-.5.5V2H.5a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H6v-.5a.5.5 0 0 0-.5-.5h-3ZM1 3v8h12V3H1Z"})),video:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.5 10a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"}),a.createElement("path",{fillRule:"evenodd",d:"M0 4c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v.5l3.19-2.4a.5.5 0 0 1 .81.4v9a.5.5 0 0 1-.8.4L10 9.5v.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm9 0v1.5a.5.5 0 0 0 .8.4L13 3.5v7L9.8 8.1a.5.5 0 0 0-.8.4V10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Z"})),speaker:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M1 4.50004V9.50004C1 9.77618 1.22386 10 1.5 10H4L7.17075 12.7744C7.49404 13.0573 8 12.8277 8 12.3982V1.60192C8 1.17235 7.49404 0.942757 7.17075 1.22564L4 4.00004H1.5C1.22386 4.00004 1 4.2239 1 4.50004ZM4 9.00004V5.00004H2V9.00004H4ZM4.99804 9.54456C4.99934 9.52989 5 9.51505 5 9.50004V4.50004C5 4.48504 4.99934 4.47019 4.99804 4.45552L7 2.70381V11.2963L4.99804 9.54456Z"}),a.createElement("path",{d:"M10.1498 1.75202C9.88637 1.66927 9.60572 1.81577 9.52297 2.07922C9.44023 2.34267 9.58672 2.62332 9.85017 2.70607C11.6763 3.27963 13 4.98596 13 7.00014C13 9.01433 11.6763 10.7207 9.85017 11.2942C9.58672 11.377 9.44023 11.6576 9.52297 11.9211C9.60572 12.1845 9.88637 12.331 10.1498 12.2483C12.3808 11.5476 14 9.4636 14 7.00014C14 4.53669 12.3808 2.45272 10.1498 1.75202Z"}),a.createElement("path",{d:"M10.2504 3.96861C10.0113 3.83033 9.70547 3.91201 9.5672 4.15105C9.42893 4.39008 9.51061 4.69594 9.74964 4.83421C10.4982 5.26723 11 6.07534 11 7.00006C11 7.92479 10.4982 8.7329 9.74964 9.16591C9.51061 9.30418 9.42893 9.61005 9.5672 9.84908C9.70547 10.0881 10.0113 10.1698 10.2504 10.0315C11.2952 9.42711 12 8.29619 12 7.00006C12 5.70394 11.2952 4.57302 10.2504 3.96861Z"})),play:a.createElement(a.Fragment,null,a.createElement("path",{d:"m12.81 7.43-9.05 5.6A.5.5 0 0 1 3 12.6V1.4c0-.4.43-.63.76-.43l9.05 5.6a.5.5 0 0 1 0 .86Z"})),playback:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.24 12.04 3.7 7.42a.5.5 0 0 1-.2-.23v4.05a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0V6.8a.5.5 0 0 1 .2-.23l7.54-4.6a.5.5 0 0 1 .76.42v9.22a.5.5 0 0 1-.76.43Z"})),playnext:a.createElement(a.Fragment,null,a.createElement("path",{d:"m2.76 12.04 7.54-4.61a.5.5 0 0 0 .2-.23v4.05a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0V6.8a.5.5 0 0 0-.2-.23l-7.54-4.6a.5.5 0 0 0-.76.42v9.22c0 .39.43.63.76.43Z"})),rewind:a.createElement(a.Fragment,null,a.createElement("path",{d:"M9 2.42v2.32L13.23 2a.5.5 0 0 1 .77.42v9.16a.5.5 0 0 1-.77.42L9 9.26v2.32a.5.5 0 0 1-.77.42L1.5 7.65v3.6a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0v3.6L8.23 2a.5.5 0 0 1 .77.42Z"})),fastforward:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5 2.42v2.32L.77 2a.5.5 0 0 0-.77.42v9.16c0 .4.44.64.77.42L5 9.26v2.32c0 .4.44.64.77.42l6.73-4.35v3.6a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0v3.6L5.77 2a.5.5 0 0 0-.77.42Z"})),stopalt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11Z"})),sidebyside:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12V2h5v10H2Z"})),stacked:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M12.5 1c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11ZM2 2h10v5H2V2Z"})),sun:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0V2a.5.5 0 0 0 1 0V.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),a.createElement("path",{d:"M7 11.5c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0V12c0-.28.22-.5.5-.5ZM11.5 7c0-.28.22-.5.5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5ZM.5 6.5a.5.5 0 0 0 0 1H2a.5.5 0 0 0 0-1H.5ZM3.82 10.18c.2.2.2.51 0 .7l-1.06 1.07a.5.5 0 1 1-.71-.7l1.06-1.07c.2-.2.51-.2.7 0ZM11.95 2.76a.5.5 0 1 0-.7-.71l-1.07 1.06a.5.5 0 1 0 .7.7l1.07-1.05ZM10.18 10.18c.2-.2.51-.2.7 0l1.07 1.06a.5.5 0 1 1-.7.71l-1.07-1.06a.5.5 0 0 1 0-.7ZM2.76 2.05a.5.5 0 1 0-.71.7l1.06 1.07a.5.5 0 0 0 .7-.7L2.77 2.04Z"})),moon:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M7.78.04a7.03 7.03 0 0 0-4.28.9 7 7 0 1 0 9.87 8.96c.1-.21-.14-.41-.36-.32a4.98 4.98 0 0 1-2 .42A5 5 0 0 1 8.53.65c.2-.12.19-.44-.04-.49a7.04 7.04 0 0 0-.72-.12Zm-1.27.98a6 6 0 0 0 4.98 9.96 6 6 0 1 1-4.98-9.96Z"})),book:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M13 2a2 2 0 0 0-2-2H1.5a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5H11a2 2 0 0 0 2-2V2ZM3 13h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H7v6a.5.5 0 0 1-.86.36L5.5 6.7l-.65.65A.5.5 0 0 1 4 7V1H3v12ZM5 1v4.8l.15-.15a.5.5 0 0 1 .74.04l.11.1V1H5Z"})),document:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4 5.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5ZM4.5 7.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM4 10.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 0a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5V3.2a.5.5 0 0 0-.15-.35l-2.7-2.7A.5.5 0 0 0 9.79 0H1.5ZM2 1h7.5v2c0 .28.22.5.5.5h2V13H2V1Z"})),copy:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M11.75.07A.5.5 0 0 0 11.5 0h-6a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h8a.5.5 0 0 0 .5-.5V11h4.5a.5.5 0 0 0 .5-.5V2.51a.5.5 0 0 0-.15-.36l-2-2a.5.5 0 0 0-.1-.08ZM9 10h4V3h-1.5a.5.5 0 0 1-.5-.5V1H6v2h.5a.5.5 0 0 1 .36.15l1.99 2c.1.09.15.21.15.35v4.51ZM1 4v9h7V6H6.5a.5.5 0 0 1-.5-.5V4H1Z"})),category:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3 1.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm-1 2c0-.27.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1 5.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7ZM2 12V6h10v6H2Z"})),folder:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M6.59 3.5 5.09 2H1v9h12V3.5H6.59Zm.41-1L5.8 1.3a1 1 0 0 0-.71-.3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H7Z"})),print:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.5 8a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1h-5Zm0 2a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M2 1.5c0-.27.22-.5.5-.5h8a.5.5 0 0 1 .36.15l.99 1c.1.09.15.21.15.35v1.51h1.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-.5.5H12v2.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10H.5a.5.5 0 0 1-.5-.5v-5c0-.28.22-.5.5-.5H2V1.5ZM13 9h-1V6.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5V9H1V5h12v4Zm-2-6v1H3V2h7v.5c0 .28.22.5.5.5h.5Zm-8 9h8V7H3v5Z"})),graphline:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5.15 6.15c.2-.2.5-.2.7 0L7 7.3l2.15-2.15c.2-.2.5-.2.7 0l1 1a.5.5 0 0 1-.7.7l-.65-.64-2.15 2.15a.5.5 0 0 1-.7 0L5.5 7.2 3.85 8.86a.5.5 0 1 1-.7-.71l2-2Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1.5 1a.5.5 0 0 0-.5.5v11c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-11ZM2 2v10h10V2H2Z"})),calendar:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.5 0c.28 0 .5.22.5.5V1h6V.5a.5.5 0 0 1 1 0V1h1.5c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.28.22-.5.5-.5H3V.5c0-.28.22-.5.5-.5ZM2 4v2.3h3V4H2Zm0 5.2V6.8h3v2.4H2Zm0 .5V12h3V9.7H2Zm3.5 0V12h3V9.7h-3Zm3.5 0V12h3V9.7H9Zm3-.5H9V6.8h3v2.4Zm-3.5 0h-3V6.8h3v2.4ZM9 4v2.3h3V4H9ZM5.5 6.3h3V4h-3v2.3Z"})),graphbar:a.createElement(a.Fragment,null,a.createElement("path",{d:"M12 2.5a.5.5 0 0 0-1 0v10a.5.5 0 0 0 1 0v-10Zm-3 2a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0v-8ZM5.5 7c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0v-5c0-.28.22-.5.5-.5ZM3 10.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2Z"})),menu:a.createElement(a.Fragment,null,a.createElement("path",{d:"M13 2a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h12Zm-3 3a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h9Zm1.5 3.5A.5.5 0 0 0 11 8H1a.5.5 0 0 0 0 1h10a.5.5 0 0 0 .5-.5Zm-4 2.5a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h6.5Z"})),menualt:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm3 3a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H4ZM2.5 8.5c0-.28.22-.5.5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Zm4 2.5a.5.5 0 0 0 0 1H13a.5.5 0 0 0 0-1H6.5Z"})),filter:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm2 3a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1H3Zm1.5 3.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5Zm2 2.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z"})),docchart:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M1 1.5C1 1.22386 1.22386 1 1.5 1H12.5C12.7761 1 13 1.22386 13 1.5V12.5C13 12.7761 12.7761 13 12.5 13H1.5C1.22386 13 1 12.7761 1 12.5V1.5ZM2 4V6.2998H5V4H2ZM2 9.2002V6.7998H5V9.2002H2ZM2 9.7002V12H5V9.7002H2ZM5.5 9.7002V12H8.5V9.7002H5.5ZM9 9.7002V12H12V9.7002H9ZM12 9.2002H9V6.7998H12V9.2002ZM8.5 9.2002H5.5V6.7998H8.5V9.2002ZM9 6.2998H12V4H9V6.2998ZM5.5 6.2998H8.5V4H5.5V6.2998Z"})),doclist:a.createElement(a.Fragment,null,a.createElement("path",{d:"M3.5 6.5c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5ZM4 9a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1H4Z"}),a.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 4v8h10V4H2Z"})),markup:a.createElement(a.Fragment,null,a.createElement("path",{d:"M8.98 1.63a.5.5 0 0 0-.96-.26l-3 11a.5.5 0 1 0 .96.26l3-11ZM3.32 3.62a.5.5 0 0 1 .06.7L1.15 7l2.23 2.68a.5.5 0 1 1-.76.64l-2.5-3a.5.5 0 0 1 0-.64l2.5-3a.5.5 0 0 1 .7-.06Zm7.36 0a.5.5 0 0 0-.06.7L12.85 7l-2.23 2.68a.5.5 0 0 0 .76.64l2.5-3a.5.5 0 0 0 0-.64l-2.5-3a.5.5 0 0 0-.7-.06Z"})),bold:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 0 0 1.8-5.4A2.74 2.74 0 0 0 8 2H3Zm5 5.5H5.5v3H8a1.5 1.5 0 1 0 0-3Zm-.25-4H5.5V6h2.25a1.25 1.25 0 1 0 0-2.5Z"})),italic:a.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2Z"}),paperclip:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.55 2.27a1.5 1.5 0 0 0-2.12 0L2.78 7.92a2.5 2.5 0 0 0 3.53 3.54l3.54-3.54a.5.5 0 1 1 .7.71l-3.53 3.54a3.5 3.5 0 0 1-4.96-4.94v-.01l5.66-5.66h.01a2.5 2.5 0 0 1 3.53 3.53L5.6 10.76a1.5 1.5 0 0 1-2.12-2.12L7.02 5.1a.5.5 0 1 1 .7.7L4.2 9.34a.5.5 0 0 0 .7.7l5.66-5.65a1.5 1.5 0 0 0 0-2.12Z"})),listordered:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5 2.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm.5 4a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm-3-9H1v1h1v3h1V2.5a.5.5 0 0 0-.5-.5ZM3 8.5v1a.5.5 0 0 1-1 0V9h-.5a.5.5 0 0 1 0-1h1c.28 0 .5.22.5.5Zm-1 2a.5.5 0 0 0-1 0V12h2v-1H2v-.5Z"})),listunordered:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.75 2.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM5.5 2a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm0 9a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7ZM2 12.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm-3 .75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"})),paragraph:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6 7a3 3 0 1 1 0-6h5.5a.5.5 0 0 1 0 1H10v10.5a.5.5 0 0 1-1 0V2H7v10.5a.5.5 0 0 1-1 0V7Z"})),markdown:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2 4.5h1.5L5 6.38 6.5 4.5H8v5H6.5V7L5 8.88 3.5 7v2.5H2v-5Zm7.75 0h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M.5 2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5ZM1 3v8h12V3H1Z"})),repository:a.createElement(a.Fragment,null,a.createElement("path",{d:"M5 2.5C5 2.77614 4.77614 3 4.5 3C4.22386 3 4 2.77614 4 2.5C4 2.22386 4.22386 2 4.5 2C4.77614 2 5 2.22386 5 2.5Z"}),a.createElement("path",{d:"M4.5 5C4.77614 5 5 4.77614 5 4.5C5 4.22386 4.77614 4 4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5Z"}),a.createElement("path",{d:"M5 6.5C5 6.77614 4.77614 7 4.5 7C4.22386 7 4 6.77614 4 6.5C4 6.22386 4.22386 6 4.5 6C4.77614 6 5 6.22386 5 6.5Z"}),a.createElement("path",{fillRule:"evenodd",d:"M11 0C12.1046 0 13 0.895431 13 2V12C13 13.1046 12.1046 14 11 14H1.5C1.22386 14 1 13.7761 1 13.5V0.5C1 0.223857 1.22386 0 1.5 0H11ZM11 1H3V13H11C11.5523 13 12 12.5523 12 12V2C12 1.44772 11.5523 1 11 1Z"})),commit:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M3.03 7.5a4 4 0 0 0 7.94 0h2.53a.5.5 0 0 0 0-1h-2.53a4 4 0 0 0-7.94 0H.5a.5.5 0 0 0 0 1h2.53ZM7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"})),branch:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M6 2.5c0 .65-.42 1.2-1 1.41v4.06A3.36 3.36 0 0 1 7.5 7a2.7 2.7 0 0 0 1.81-.56c.22-.18.38-.4.48-.62a1.5 1.5 0 1 1 1.03.15c-.16.42-.43.87-.86 1.24-.57.47-1.37.79-2.46.79-1.04 0-1.64.42-2 .92-.26.37-.4.8-.47 1.18A1.5 1.5 0 1 1 4 10.09V3.9a1.5 1.5 0 1 1 2-1.4Zm-2 9a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm1-9a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm6 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),pullrequest:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M8.35 1.35 7.71 2h.79A2.5 2.5 0 0 1 11 4.5v5.59a1.5 1.5 0 1 1-1 0V4.5C10 3.67 9.33 3 8.5 3h-.8l.65.65a.5.5 0 1 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7ZM11 11.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM4 3.91a1.5 1.5 0 1 0-1 0v6.18a1.5 1.5 0 1 0 1 0V3.9ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm0-8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),merge:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M4.1 3.87a1.5 1.5 0 1 0-1.1.04v6.18a1.5 1.5 0 1 0 1 0V6.4c.26.4.57.77.93 1.08A6.57 6.57 0 0 0 9.08 9a1.5 1.5 0 1 0 0-1 5.57 5.57 0 0 1-3.5-1.25 4.74 4.74 0 0 1-1.47-2.87ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM4 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm7 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),apple:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.03 8.1a3.05 3.05 0 0 1-.2-1.74 2.7 2.7 0 0 1 1.4-1.94 3.13 3.13 0 0 0-2.35-1.4c-.84-.08-2.01.56-2.65.57h-.02c-.63 0-1.81-.65-2.64-.57-.42.04-1.75.32-2.55 1.6-.28.44-.5 1.01-.58 1.74a6.36 6.36 0 0 0 .02 1.74 7.5 7.5 0 0 0 1.35 3.33c.7 1.01 1.51 1.6 1.97 1.6.93.02 1.74-.6 2.41-.6l.02.01h.04c.67-.02 1.48.61 2.42.6.45-.02 1.26-.6 1.97-1.6a7.95 7.95 0 0 0 .97-1.86 2.6 2.6 0 0 1-1.58-1.48ZM8.86 2.13c.72-.85.7-2.07.63-2.12-.07-.06-1.25.16-1.99.98a2.78 2.78 0 0 0-.62 2.13c.06.05 1.27-.14 1.98-.99Z"})),linux:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M7 0a3 3 0 0 1 3 3v1.24c.13.13.25.27.36.42l.52.43.2.15c.32.26.7.59 1.09.97A6.28 6.28 0 0 1 14 9.54a.5.5 0 0 1-.35.44c-.31.1-.8.18-1.34.13-.33-.03-.7-.12-1.05-.3-.04.17-.1.34-.17.51a2 2 0 1 1-2.89 2.56 5.5 5.5 0 0 1-2.4 0 2 2 0 1 1-2.9-2.56 5.56 5.56 0 0 1-.16-.51c-.35.18-.72.27-1.05.3a3.4 3.4 0 0 1-1.34-.13.5.5 0 0 1-.35-.44l.01-.14a6.28 6.28 0 0 1 1.82-3.2 13.42 13.42 0 0 1 1.3-1.11c.22-.19.4-.32.5-.43.12-.15.24-.29.37-.42V3a3 3 0 0 1 3-3Zm1 11.9a2 2 0 0 1 2.14-1.9 5.5 5.5 0 0 0 .36-2c0-.51-.1-1.07-.3-1.6l-.03-.02a4.4 4.4 0 0 0-.86-.42 6.71 6.71 0 0 0-1-.31l-.86.64c-.27.2-.63.2-.9 0l-.85-.64a6.72 6.72 0 0 0-1.87.73l-.03.02A4.6 4.6 0 0 0 3.5 8c0 .68.11 1.39.36 2H4a2 2 0 0 1 2 1.9 4.49 4.49 0 0 0 2 0ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.1 4.3a1.5 1.5 0 0 1 1.8 0l.27.2L7 5.38 5.83 4.5l.27-.2ZM8.5 2c.28 0 .5.22.5.5V3a.5.5 0 0 1-1 0v-.5c0-.28.22-.5.5-.5ZM6 2.5a.5.5 0 0 0-1 0V3a.5.5 0 0 0 1 0v-.5Z"})),ubuntu:a.createElement(a.Fragment,null,a.createElement("path",{d:"M12.26 2.07c0 1.14-.89 2.06-1.99 2.06s-1.99-.92-1.99-2.06c0-1.14.9-2.07 2-2.07s1.98.93 1.98 2.07ZM3.98 6.6c0 1.14-.9 2.07-2 2.07C.9 8.67 0 7.74 0 6.6c0-1.14.9-2.07 1.99-2.07 1.1 0 1.99.93 1.99 2.07ZM6.47 11.92a4.76 4.76 0 0 1-3.3-2.62c-.53.25-1.12.33-1.7.22a6.72 6.72 0 0 0 1.84 2.63 6.38 6.38 0 0 0 4.24 1.58c-.37-.5-.57-1.1-.59-1.73a4.77 4.77 0 0 1-.49-.08ZM11.81 11.93c0 1.14-.89 2.07-1.99 2.07s-1.98-.93-1.98-2.07c0-1.14.89-2.06 1.98-2.06 1.1 0 2 .92 2 2.06ZM12.6 11.17a6.93 6.93 0 0 0 .32-7.93A2.95 2.95 0 0 1 11.8 4.6a5.23 5.23 0 0 1-.16 5.03c.47.4.8.94.95 1.54ZM1.99 3.63h-.15A6.48 6.48 0 0 1 8 .24a3.07 3.07 0 0 0-.6 1.68 4.7 4.7 0 0 0-3.9 2.17c-.46-.3-.98-.45-1.51-.45Z"})),windows:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.5 1H1v5.5h5.5V1ZM13 1H7.5v5.5H13V1ZM7.5 7.5H13V13H7.5V7.5ZM6.5 7.5H1V13h5.5V7.5Z"})),storybook:a.createElement(a.Fragment,null,a.createElement("path",{d:"M2.04.62a.7.7 0 0 0-.66.72l.44 11.56c.01.37.3.66.67.68l9.4.42h.02a.7.7 0 0 0 .7-.7V.66a.7.7 0 0 0-.74-.66l-.77.05.05 1.62a.1.1 0 0 1-.17.08l-.52-.4-.61.46a.1.1 0 0 1-.17-.09L9.75.13l-7.7.49Zm8 4.74c-.24.2-2.09.33-2.09.05.04-1.04-.43-1.09-.69-1.09-.24 0-.66.08-.66.64 0 .57.6.89 1.32 1.27 1.02.53 2.24 1.18 2.24 2.82 0 1.57-1.27 2.43-2.9 2.43-1.67 0-3.14-.68-2.97-3.03.06-.27 2.2-.2 2.2 0-.03.97.19 1.26.75 1.26.43 0 .62-.24.62-.64 0-.6-.63-.95-1.36-1.36-.99-.56-2.15-1.2-2.15-2.7 0-1.5 1.03-2.5 2.86-2.5 1.83 0 2.84.99 2.84 2.85Z"})),azuredevops:a.createElement(a.Fragment,null,a.createElement("path",{d:"m0 5.18 1.31-1.73 4.9-2V.01l4.3 3.15-8.78 1.7v4.8L0 9.16V5.18Zm14-2.6v8.55l-3.36 2.86-5.42-1.79V14L1.73 9.66l8.78 1.05V3.16L14 2.58Z"})),bitbucket:a.createElement(a.Fragment,null,a.createElement("path",{d:"M1 1.52A.41.41 0 0 0 .59 2l1.74 10.6c.05.26.28.46.55.46h8.37c.2 0 .38-.14.42-.34l1.01-6.25H8.81l-.46 2.71H5.68L4.95 5.4h7.91L13.4 2a.41.41 0 0 0-.41-.48H1Z"})),chrome:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M13.02 3.43a.11.11 0 0 1-.1.17H7a3.4 3.4 0 0 0-3.3 2.55.11.11 0 0 1-.21.03L1.52 2.76a.11.11 0 0 1 0-.12 6.97 6.97 0 0 1 9-1.7c1.03.6 1.9 1.47 2.5 2.5ZM7 9.62a2.62 2.62 0 1 1 0-5.24 2.62 2.62 0 0 1 0 5.24Zm1.03.7a.11.11 0 0 0-.12-.04 3.4 3.4 0 0 1-4-1.84L1.1 3.57a.11.11 0 0 0-.2 0 7 7 0 0 0 5.07 10.35c.04 0 .08-.02.1-.05l1.97-3.42a.11.11 0 0 0 0-.13Zm1.43-5.95h3.95c.05 0 .1.03.1.07a6.97 6.97 0 0 1-1.53 7.48A6.96 6.96 0 0 1 7.08 14a.11.11 0 0 1-.1-.17l2.81-4.88h.01a3.38 3.38 0 0 0-.42-4.38.11.11 0 0 1 .08-.2Z"})),chromatic:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 0 14 0A7 7 0 0 0 0 7Zm5.22-3.87a1.97 1.97 0 0 1 3.75.83v1.29L5.61 3.32a2.49 2.49 0 0 0-.4-.19ZM8.7 5.71 5.35 3.78a1.97 1.97 0 0 0-2.6 2.83c.12-.1.24-.18.37-.26l1.51-.87a.27.27 0 0 1 .27 0L7 6.69l1.7-.98Zm-.32 4.97-1.52-.87a.27.27 0 0 1-.13-.23V7.15l-1.7-.97v3.86a1.97 1.97 0 0 0 3.75.83 2.5 2.5 0 0 1-.4-.19Zm.26-.46a1.97 1.97 0 0 0 2.6-2.83c-.11.1-.23.18-.36.26L7.53 9.58l1.11.64Zm-4.1.26h-.17a1.97 1.97 0 0 1-1.9-2.47 2 2 0 0 1 .92-1.2l1.11-.63v3.86c0 .14.01.29.04.44Zm6.79-5.98a1.97 1.97 0 0 0-1.87-.97c.03.14.04.29.04.43v1.75c0 .1-.05.19-.14.23l-2.1 1.22V9.1l3.35-1.93a1.97 1.97 0 0 0 .72-2.68Z"})),componentdriven:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.85 2.18 8.87.2a.69.69 0 0 0-.97 0L3.09 5.01a.69.69 0 0 0 0 .97l2.46 2.46-2.4 2.4a.69.69 0 0 0 0 .98l1.98 1.98c.27.27.7.27.97 0l4.8-4.81a.69.69 0 0 0 0-.97L8.45 5.56l2.4-2.4a.69.69 0 0 0 0-.98Z"})),discord:a.createElement(a.Fragment,null,a.createElement("path",{d:"M11.85 2.88C10.95 2.48 10 2.18 9 2a7.05 7.05 0 0 0-.4.75 10.66 10.66 0 0 0-3.2 0c-.1-.23-.24-.5-.36-.73A.04.04 0 0 0 4.99 2a11.51 11.51 0 0 0-2.86.9 11.82 11.82 0 0 0-2.05 8 11.6 11.6 0 0 0 3.5 1.77c.01 0 .03 0 .04-.02.27-.36.51-.75.72-1.16a.04.04 0 0 0-.03-.06 7.66 7.66 0 0 1-1.09-.52.04.04 0 0 1 0-.08 5.96 5.96 0 0 0 .26-.17 8.28 8.28 0 0 0 7.08 0l.22.17c.02.02.02.06 0 .08-.36.2-.72.37-1.1.52a.04.04 0 0 0-.02.06c.2.4.45.8.71 1.16.01.02.03.02.05.02a11.57 11.57 0 0 0 3.52-1.8 11.74 11.74 0 0 0-2.09-7.99Zm-7.17 6.4c-.7 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.56 1.42-1.26 1.42Zm4.65 0c-.69 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.55 1.42-1.26 1.42Z"})),facebook:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.4 14H5.06V7H3.5V4.59h1.56V3.17C5.06 1.2 5.53 0 7.6 0h1.72v2.41H8.25c-.8 0-.85.34-.85.97v1.2h1.93L9.11 7H7.4l-.01 7Z"})),figma:a.createElement(a.Fragment,null,a.createElement("path",{fillRule:"evenodd",d:"M9.2 0H4.8a2.6 2.6 0 0 0-1.4 4.8 2.6 2.6 0 0 0 0 4.4 2.6 2.6 0 1 0 4 2.2V8.89a2.6 2.6 0 1 0 3.2-4.09A2.6 2.6 0 0 0 9.2 0ZM7.4 7A1.8 1.8 0 1 0 11 7a1.8 1.8 0 0 0-3.6 0Zm-.8 2.6H4.8a1.8 1.8 0 1 0 1.8 1.8V9.6ZM4.8 4.4h1.8V.8H4.8a1.8 1.8 0 0 0 0 3.59Zm0 .8a1.8 1.8 0 0 0 0 3.6h1.8V5.2H4.8Zm4.4-.8H7.4V.8h1.8a1.8 1.8 0 1 1 0 3.59Z"})),gdrive:a.createElement(a.Fragment,null,a.createElement("path",{d:"M6.37 8.77 4.33 12.3h6.75l2.04-3.54H6.38Zm6.18-1-3.5-6.08h-4.1l3.51 6.08h4.09ZM4.38 2.7.88 8.77l2.04 3.54 3.5-6.07L4.38 2.7Z"})),github:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7 0a7 7 0 0 0-2.21 13.64c.35.06.48-.15.48-.33L5.26 12c-1.76.32-2.21-.43-2.35-.83-.08-.2-.43-.82-.72-.99-.25-.13-.6-.45-.01-.46.55 0 .94.5 1.07.72.63 1.06 1.64.76 2.04.58.07-.46.25-.77.45-.94-1.56-.18-3.19-.78-3.19-3.46 0-.76.28-1.39.72-1.88-.07-.17-.31-.9.07-1.85 0 0 .59-.19 1.93.71a6.5 6.5 0 0 1 3.5 0c1.34-.9 1.92-.71 1.92-.71.39.96.14 1.68.07 1.85.45.5.72 1.11.72 1.88 0 2.69-1.64 3.28-3.2 3.46.26.22.48.64.48 1.3l-.01 1.92c0 .18.13.4.48.33A7.01 7.01 0 0 0 7 0Z"})),gitlab:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.53 5.58H1.07l1.49-4.55a.26.26 0 0 1 .48 0l1.49 4.55ZM7 13.15 1.07 5.58l-.75 2.3a.5.5 0 0 0 .18.57l6.5 4.7Zm0 0 6.5-4.7a.5.5 0 0 0 .18-.57l-.75-2.3L7 13.15l2.47-7.57H4.53L7 13.15Zm2.47-7.57h3.46l-1.49-4.55a.26.26 0 0 0-.48 0L9.47 5.58Z"})),google:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.92 1.1H7.26c-1.64 0-3.19 1.24-3.19 2.68 0 1.47 1.12 2.66 2.8 2.66l.33-.01c-.1.2-.18.44-.18.68 0 .41.22.75.5 1.02h-.64c-2.03 0-3.6 1.3-3.6 2.64 0 1.32 1.72 2.15 3.75 2.15 2.32 0 3.6-1.31 3.6-2.64 0-1.06-.31-1.7-1.28-2.38-.33-.23-.96-.8-.96-1.14 0-.39.1-.58.7-1.04a2.46 2.46 0 0 0 1.03-1.92c0-.92-.4-1.82-1.18-2.11h1.17l.81-.6ZM9.6 10.04c.03.13.05.25.05.38 0 1.07-.7 1.9-2.67 1.9-1.4 0-2.42-.88-2.42-1.95 0-1.05 1.26-1.92 2.66-1.9a3 3 0 0 1 .92.14c.76.53 1.3.83 1.46 1.43ZM7.34 6.07c-.94-.03-1.84-1.06-2-2.3-.17-1.24.47-2.19 1.41-2.16.94.03 1.84 1.03 2 2.26.17 1.24-.47 2.23-1.41 2.2Z"})),graphql:a.createElement(a.Fragment,null,a.createElement("path",{d:"M7.87 11.6a1.17 1.17 0 0 0-1.7-.02l-2.71-1.56.01-.04h7.07l.02.07-2.69 1.56Zm-1.7-9.18.03.03-3.54 6.12h-.04V5.43a1.17 1.17 0 0 0 .84-1.46l2.7-1.56Zm4.38 1.56a1.17 1.17 0 0 0 .84 1.46v3.12l-.04.01-3.54-6.12c.02 0 .03-.02.04-.03l2.7 1.56ZM3.47 9.42a1.17 1.17 0 0 0-.32-.57l3.53-6.12a1.17 1.17 0 0 0 .65 0l3.54 6.12a1.17 1.17 0 0 0-.33.57H3.47Zm8.8-.74c-.1-.05-.21-.1-.32-.12V5.44a1.17 1.17 0 1 0-1.12-1.94l-2.7-1.56a1.17 1.17 0 1 0-2.24 0L3.19 3.5a1.17 1.17 0 1 0-1.13 1.94v3.12a1.17 1.17 0 1 0 1.12 1.94l2.7 1.56a1.17 1.17 0 1 0 2.24-.03l2.69-1.55a1.17 1.17 0 1 0 1.45-1.8Z"})),medium:a.createElement(a.Fragment,null,a.createElement("path",{d:"M0 0v14h14V0H0Zm11.63 3.32-.75.72a.22.22 0 0 0-.08.2v5.33c0 .07.03.14.08.18l.73.72v.16H7.92v-.16l.76-.74c.08-.07.08-.1.08-.21V5.24l-2.11 5.37h-.29L3.9 5.24v3.67c0 .13.05.25.14.34l.99 1.2v.16h-2.8v-.16l.98-1.2a.48.48 0 0 0 .13-.41V4.65c0-.11-.04-.2-.12-.27l-.88-1.06v-.16h2.73l2.1 4.62 1.86-4.62h2.6v.16Z"})),redux:a.createElement(a.Fragment,null,a.createElement("path",{d:"M4.06 9.69c.02.49.42.88.91.88H5a.91.91 0 0 0-.03-1.83h-.03c-.03 0-.08 0-.11.02a5.97 5.97 0 0 1-.85-3.62c.06-.98.39-1.82.96-2.52.47-.6 1.39-.9 2-.92 1.73-.03 2.47 2.12 2.51 2.99.22.04.57.16.82.24-.2-2.64-1.83-4-3.4-4-1.46 0-2.81 1.05-3.35 2.61a6.67 6.67 0 0 0 .65 5.68.74.74 0 0 0-.11.47Zm8.28-2.3a6.62 6.62 0 0 0-5.15-2.25h-.26a.9.9 0 0 0-.8-.49H6.1a.91.91 0 0 0 .03 1.83h.03a.92.92 0 0 0 .8-.56h.3c1.23 0 2.4.36 3.47 1.06.81.54 1.4 1.24 1.72 2.09.28.68.26 1.35-.03 1.92a2.4 2.4 0 0 1-2.23 1.34c-.65 0-1.27-.2-1.6-.34-.18.16-.5.42-.73.58.7.33 1.41.5 2.1.5 1.56 0 2.72-.85 3.16-1.72.47-.94.44-2.57-.78-3.96ZM4.9 12.9a4 4 0 0 1-.98.11c-1.2 0-2.3-.5-2.84-1.32C.38 10.6.13 8.3 2.5 6.58c.05.26.15.62.22.83-.31.23-.8.68-1.11 1.3a2.4 2.4 0 0 0 .13 2.53c.36.54.93.86 1.66.96.9.11 1.8-.05 2.66-.5a5.83 5.83 0 0 0 2.67-2.56.91.91 0 0 1 .62-1.55h.03a.92.92 0 0 1 .1 1.82 6.26 6.26 0 0 1-4.56 3.49Z"})),twitter:a.createElement(a.Fragment,null,a.createElement("path",{d:"M14 2.55c-.51.23-1.07.39-1.65.46.6-.36 1.05-.94 1.26-1.63-.55.34-1.17.58-1.82.72a2.84 2.84 0 0 0-2.1-.93 2.9 2.9 0 0 0-2.8 3.61 8.09 8.09 0 0 1-5.9-3.07 2.99 2.99 0 0 0 .88 3.93 2.8 2.8 0 0 1-1.3-.37v.04c0 1.42 1 2.61 2.3 2.89a2.82 2.82 0 0 1-1.3.05 2.89 2.89 0 0 0 2.7 2.04A5.67 5.67 0 0 1 0 11.51a7.98 7.98 0 0 0 4.4 1.32c5.29 0 8.17-4.48 8.17-8.38v-.38A5.93 5.93 0 0 0 14 2.55Z"})),youtube:a.createElement(a.Fragment,null,a.createElement("path",{d:"M13.99 8.17V5.83a14.95 14.95 0 0 0-.23-2.22c-.09-.38-.27-.7-.55-.96s-.6-.41-.97-.45A51.3 51.3 0 0 0 7 2c-2.34 0-4.09.07-5.24.2A1.78 1.78 0 0 0 .25 3.61 15.26 15.26 0 0 0 0 7v1.16a15.24 15.24 0 0 0 .24 2.22c.09.38.27.7.55.96.27.26.6.41.97.45 1.15.13 2.9.2 5.24.2 2.34 0 4.08-.06 5.24-.2.37-.04.7-.19.97-.45s.45-.58.54-.96a15.26 15.26 0 0 0 .24-2.22Zm-4.23-1.6c.16.1.24.24.24.43 0 .2-.08.33-.24.42l-4 2.5a.44.44 0 0 1-.26.08.54.54 0 0 1-.24-.06A.46.46 0 0 1 5 9.5v-5c0-.2.08-.34.26-.44.17-.1.34-.09.5.02l4 2.5Z"})),linkedin:a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 13H2.33333C1.59695 13 1 12.403 1 11.6667V2.33333C1 1.59695 1.59695 1 2.33333 1H11.6667C12.403 1 13 1.59695 13 2.33333V11.6667C13 12.403 12.403 13 11.6667 13ZM9.55293 11.3333H11.3337V7.67516C11.3337 6.12737 10.4563 5.379 9.23075 5.379C8.00467 5.379 7.48867 6.33378 7.48867 6.33378V5.55552H5.77255V11.3333H7.48867V8.30031C7.48867 7.48764 7.86276 7.00405 8.57878 7.00405C9.23696 7.00405 9.55293 7.46875 9.55293 8.30031V11.3333ZM2.66699 3.73279C2.66699 4.32157 3.14067 4.79896 3.72522 4.79896C4.30977 4.79896 4.78316 4.32157 4.78316 3.73279C4.78316 3.14402 4.30977 2.66663 3.72522 2.66663C3.14067 2.66663 2.66699 3.14402 2.66699 3.73279ZM4.62856 11.3333H2.83908V5.55552H4.62856V11.3333Z",fill:"#1EA7FD"}),vscode:a.createElement(a.Fragment,null,a.createElement("path",{d:"M10.24.04c.13 0 .26.03.38.09L13.5 1.5a.87.87 0 0 1 .5.8v.03-.01 9.39c0 .33-.2.63-.5.78l-2.88 1.38a.87.87 0 0 1-1-.17l-5.5-5.03-2.4 1.83a.58.58 0 0 1-.75-.04l-.77-.7a.58.58 0 0 1 0-.86L2.27 7 .2 5.1a.58.58 0 0 1 0-.86l.77-.7c.21-.2.52-.2.75-.04l2.4 1.83L9.63.3a.87.87 0 0 1 .61-.26Zm.26 3.78L6.32 7l4.18 3.18V3.82Z"}))},Nd=w.svg({display:"inline-block",shapeRendering:"inherit",transform:"translate3d(0, 0, 0)",verticalAlign:"middle",path:{fill:"currentColor"}}),vo=({icon:e,...t})=>a.createElement(Nd,{viewBox:"0 0 14 14",width:"14px",height:"14px",...t},a.createElement(a.Fragment,null,Md[e]));function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&i<1?(s=o,c=l):i>=1&&i<2?(s=l,c=o):i>=2&&i<3?(c=o,d=l):i>=3&&i<4?(c=l,d=o):i>=4&&i<5?(s=l,d=o):i>=5&&i<6&&(s=o,d=l);var u=n-o/2,m=s+u,p=c+u,v=d+u;return r(m,p,v)}var gl={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function _d(e){if(typeof e!="string")return e;var t=e.toLowerCase();return gl[t]?"#"+gl[t]:e}var Zd=/^#[a-fA-F0-9]{6}$/,Id=/^#[a-fA-F0-9]{8}$/,Rd=/^#[a-fA-F0-9]{3}$/,Bd=/^#[a-fA-F0-9]{4}$/,bi=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Pd=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Vd=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,jd=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function os(e){if(typeof e!="string")throw new yt(3);var t=_d(e);if(t.match(Zd))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Id)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Rd))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Bd)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=bi.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=Pd.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=Vd.exec(t);if(l){var s=parseInt(""+l[1],10),c=parseInt(""+l[2],10)/100,d=parseInt(""+l[3],10)/100,u="rgb("+ha(s,c,d)+")",m=bi.exec(u);if(!m)throw new yt(4,t,u);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var p=jd.exec(t.substring(0,50));if(p){var v=parseInt(""+p[1],10),f=parseInt(""+p[2],10)/100,y=parseInt(""+p[3],10)/100,k="rgb("+ha(v,f,y)+")",b=bi.exec(k);if(!b)throw new yt(4,t,k);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new yt(5)}function Hd(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=Math.max(t,n,r),o=Math.min(t,n,r),l=(i+o)/2;if(i===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s,c=i-o,d=l>.5?c/(2-i-o):c/(i+o);switch(i){case t:s=(n-r)/c+(n=1?sr(e,t,n):"rgba("+ha(e,t,n)+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?sr(e.hue,e.saturation,e.lightness):"rgba("+ha(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new yt(2)}function zi(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Di("#"+Yt(e)+Yt(t)+Yt(n));if(typeof e=="object"&&t===void 0&&n===void 0)return Di("#"+Yt(e.red)+Yt(e.green)+Yt(e.blue));throw new yt(6)}function Ui(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var i=os(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?zi(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?zi(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new yt(7)}var Wd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Gd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},qd=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Yd=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function ss(e){if(typeof e!="object")throw new yt(8);if(Gd(e))return Ui(e);if(Wd(e))return zi(e);if(Yd(e))return $d(e);if(qd(e))return Ud(e);throw new yt(8)}function cs(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):cs(e,t,r)}}function ds(e){return cs(e,e.length,[])}function us(e,t,n){return Math.max(e,Math.min(t,n))}function Qd(e,t){if(t==="transparent")return t;var n=ls(t);return ss(lr({},n,{lightness:us(0,1,n.lightness-parseFloat(e))}))}var Kd=ds(Qd),Qt=Kd;function Jd(e,t){if(t==="transparent")return t;var n=ls(t);return ss(lr({},n,{lightness:us(0,1,n.lightness+parseFloat(e))}))}var Xd=ds(Jd),rr=Xd,z={primary:"#FF4785",secondary:"#029CFD",tertiary:"#E3E6E8",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",red:"#ff4400",bluelight:"#E3F3FF",bluelighter:"#F5FBFF",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",tr10:"rgba(0, 0, 0, 0.1)",tr5:"rgba(0, 0, 0, 0.05)",border:"hsla(203, 50%, 30%, 0.15)",positive:"#448028",negative:"#D43900",warning:"#A15C20",selected:"#0271B6"},yo={padding:{small:10,medium:20,large:30},borderRadius:{small:5,default:10}},D={type:{primary:'var(--nunito-sans, "Nunito Sans"), "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',code:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace'},weight:{regular:"400",bold:"700",extrabold:"800"},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Wa=600,Ga=5.55555;me({padding:`0 ${yo.padding.medium}px`,[`@media (min-width: ${Wa*1}px)`]:{margin:`0 ${Ga*1}%`},[`@media (min-width: ${Wa*2}px)`]:{margin:`0 ${Ga*2}%`},[`@media (min-width: ${Wa*3}px)`]:{margin:`0 ${Ga*3}%`},[`@media (min-width: ${Wa*4}px)`]:{margin:`0 ${Ga*4}%`}});me({border:`1px solid ${z.border}`,borderRadius:`${yo.borderRadius.small}px`,transition:"background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out","&:hover, &.__hover":{borderColor:`${Ui(z.secondary,.5)}`,transform:"translate3d(0, -3px, 0)",boxShadow:"rgba(0, 0, 0, 0.08) 0 3px 10px 0"},"&:active, &.__active":{borderColor:`${Ui(z.secondary,1)}`,transform:"translate3d(0, 0, 0)"}});me({fontSize:D.size.l3,fontWeight:D.weight.bold}),me({fontSize:D.size.l2,fontWeight:D.weight.bold}),me({fontSize:D.size.l1,fontWeight:D.weight.bold}),me({fontSize:D.size.m3,fontWeight:D.weight.bold}),me({fontSize:D.size.m2,fontWeight:D.weight.bold}),me({fontSize:D.size.m1,fontWeight:D.weight.bold}),me({fontSize:D.size.s3,fontWeight:D.weight.bold}),me({fontSize:D.size.s2,fontWeight:D.weight.bold});me({fontSize:14,fontWeight:D.weight.extrabold,lineHeight:"18px",letterSpacing:"0.38em"}),me({fontSize:11,fontWeight:D.weight.extrabold,lineHeight:"16px",letterSpacing:"0.38em"});me({fontSize:14,fontWeight:D.weight.bold,lineHeight:"18px"}),me({fontSize:14,fontWeight:D.weight.regular,lineHeight:"18px"}),me({fontSize:D.size.s3,fontWeight:D.weight.bold,lineHeight:"24px"}),me({fontSize:D.size.s1,fontWeight:D.weight.regular,lineHeight:"18px"}),me({fontSize:D.size.s2,fontWeight:D.weight.bold,lineHeight:"20px"}),me({fontSize:D.size.s1,fontWeight:D.weight.bold,lineHeight:"18px"}),me({fontSize:D.size.s3,fontWeight:D.weight.regular,lineHeight:"24px"}),me({fontSize:D.size.s2,fontWeight:D.weight.regular,lineHeight:"20px"});me({fontFamily:D.type.code,fontSize:D.size.s2,fontWeight:D.weight.regular,lineHeight:"17px"}),me({fontFamily:D.type.code,fontSize:D.size.s1,fontWeight:D.weight.regular,lineHeight:"14px"});var bo=Rt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),ms=Rt({"0%, 100%":{opacity:1},"50%":{opacity:.4}});Rt({"0%":{transform:"translateY(1px)"},"25%":{transform:"translateY(0px)"},"50%":{transform:"translateY(-3px)"},"100%":{transform:"translateY(1px)"}});var e5=Rt({"0%, 100%":{transform:"translate3d(0,0,0)"},"12.5%, 62.5%":{transform:"translate3d(-4px,0,0)"},"37.5%, 87.5%":{transform:"translate3d(4px,0,0)"}});Rt({"0%":{transform:"rotate(-3deg)"},"1.68421%":{transform:"rotate(3deg)"},"2.10526%":{transform:"rotate(6deg)"},"3.78947%":{transform:"rotate(-6deg)"},"4.21053%":{transform:"rotate(-6deg)"},"5.89474%":{transform:"rotate(6deg)"},"6.31579%":{transform:"rotate(6deg)"},"8%":{transform:"rotate(-6deg)"},"8.42105%":{transform:"rotate(-6deg)"},"10.10526%":{transform:"rotate(6deg)"},"10.52632%":{transform:"rotate(6deg)"},"12.21053%":{transform:"rotate(-6deg)"},"12.63158%":{transform:"rotate(-6deg)"},"14.31579%":{transform:"rotate(6deg)"},"15.78947%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(0deg)"}});var t5=me({animation:`${ms} 1.5s ease-in-out infinite`,background:z.tr5,color:"transparent",cursor:"progress"}),Kt={large:40,medium:28,small:20,tiny:16},n5=w.div({background:"transparent",display:"inline-block",verticalAlign:"top",overflow:"hidden",textTransform:"uppercase",img:{width:"100%",height:"auto",display:"block"}},e=>({borderRadius:e.type==="user"?"50%":5,height:`${Kt[e.size||"medium"]}px`,width:`${Kt[e.size||"medium"]}px`,lineHeight:`${Kt[e.size||"medium"]}px`,...e.isLoading&&{background:z.light,filter:"grayscale(1)"},...!e.src&&!e.isLoading&&{background:"#37D5D3"}})),a5=w(vo)({position:"relative",margin:"0 auto",display:"block",verticalAlign:"top",path:{fill:z.medium,animation:`${ms} 1.5s ease-in-out infinite`}},e=>({bottom:`${e.type==="user"?-2:-4}px`,height:`${e.type==="user"?100:70}%`,width:`${e.type==="user"?100:70}%`})),r5=w.div({color:z.lightest,textAlign:"center"},e=>({tiny:{fontSize:`${D.size.s1-2}px`,lineHeight:`${Kt.tiny}px`},small:{fontSize:`${D.size.s1}px`,lineHeight:`${Kt.small}px`},medium:{fontSize:`${D.size.s2}px`,lineHeight:`${Kt.medium}px`},large:{fontSize:`${D.size.s3}px`,lineHeight:`${Kt.large}px`}})[e.size||"medium"]),i5=({isLoading:e=!1,username:t="loading",src:n=void 0,size:r="medium",type:i="user",...o})=>{let l=a.createElement(a5,{icon:i==="user"?"useralt":"repository",type:i}),s={};return e?(s["aria-busy"]=!0,s["aria-label"]="Loading avatar ..."):n?l=a.createElement("img",{src:n,alt:t}):(s["aria-label"]=t,l=a.createElement(r5,{size:r,"aria-hidden":"true"},t.substring(0,1))),a.createElement(n5,{size:r,isLoading:e,src:n,type:i,...s,...o},l)},o5=w.span(e=>e.withArrow&&{"> svg:last-of-type":{height:"0.65em",width:"0.65em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}),l5=w.a({display:"inline-block",transition:"transform 150ms ease-out, color 150ms ease-out",textDecoration:"none",color:z.secondary,"&:hover, &:focus-visible":{cursor:"pointer",transform:"translateY(-1px)",color:Qt(.07,z.secondary)},"&:active":{transform:"translateY(0)",color:Qt(.1,z.secondary)},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em"}},e=>({...e.containsIcon&&{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}},...e.secondary&&{color:e.theme.base==="light"?z.mediumdark:z.medium,"&:hover":{color:e.theme.base==="light"?z.dark:z.light},"&:active":{color:e.theme.base==="light"?z.darker:z.lighter}},...e.tertiary&&{color:z.dark,"&:hover":{color:z.darkest},"&:active":{color:z.mediumdark}},...e.nochrome&&{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}},...e.inverse&&{color:z.lightest,"&:hover":{color:z.lighter},"&:active":{color:z.light}}})),s5=w.a({}),c5=w.button({background:"none",border:"none",padding:"0",font:"inherit",cursor:"pointer"}),ps=q(({containsIcon:e,inverse:t,isButton:n,LinkWrapper:r,nochrome:i,secondary:o,tertiary:l,...s},c)=>n?a.createElement(c5,{...s,ref:c}):r?a.createElement(r,{...s,ref:c}):a.createElement(s5,{...s,ref:c}));ps.displayName="LinkComponentPicker";var De=q(({children:e,withArrow:t,...n},r)=>{let i=a.createElement(a.Fragment,null,a.createElement(o5,{withArrow:!!t},e,t&&a.createElement(vo,{icon:"arrowright"})));return a.createElement(l5,{as:ps,ref:r,...n},i)});De.displayName="Link";De.defaultProps={withArrow:!1,isButton:!1,containsIcon:!1,secondary:!1,tertiary:!1,nochrome:!1,inverse:!1};var d5=w.label(e=>({...e.appearance!=="code"&&{fontWeight:D.weight.bold},...e.appearance==="code"?{fontFamily:D.type.code,fontSize:`${D.size.s1-1}px`,lineHeight:"16px"}:{fontSize:`${D.size.s2}px`,lineHeight:"20px"}})),u5=w.div([{marginBottom:8},e=>e.hideLabel&&{border:"0px !important",clip:"rect(0 0 0 0) !important",WebkitClipPath:"inset(100%) !important",clipPath:"inset(100%) !important",height:"1px !important",overflow:"hidden !important",padding:"0px !important",position:"absolute !important",whiteSpace:"nowrap !important",width:"1px !important"}]),m5=w.input({"&::placeholder":{color:z.mediumdark},appearance:"none",border:"none",boxSizing:"border-box",display:"block",outline:"none",width:"100%",margin:"0","&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${z.lightest} inset`}}),p5=e=>{let t={position:"relative",...e.error&&{zIndex:1},"&:focus":{zIndex:2}};switch(e.stackLevel){case"top":return{borderTopLeftRadius:"4px",borderTopRightRadius:"4px",borderBottomLeftRadius:0,borderBottomRightRadius:0,...t};case"middle":return{borderRadius:0,marginTop:-1,...t};case"bottom":return{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px",borderTopLeftRadius:0,borderTopRightRadius:0,marginTop:-1,...t};default:return{borderRadius:"4px"}}},h5=w.div(e=>({display:"inline-block",position:"relative",verticalAlign:"top",width:"100%",".sbds-input-el":{position:"relative",...p5(e),background:z.lightest,color:z.darkest,fontSize:`${D.size.s2}px`,lineHeight:"20px",padding:"10px 15px",boxShadow:`${z.border} 0 0 0 1px inset`,"&:focus":{boxShadow:`${z.secondary} 0 0 0 1px inset`},...e.appearance==="pill"&&{fontSize:`${D.size.s1}px`,lineHeight:"16px",padding:"6px 12px",borderRadius:"3em",background:"transparent"},...e.appearance==="code"&&{fontSize:`${D.size.s1-1}px`,lineHeight:"16px",fontFamily:D.type.code,borderRadius:`${yo.borderRadius.small}px`,background:z.lightest,padding:"8px 10px"},...e.startingType==="password"&&{paddingRight:52},...e.icon&&{paddingLeft:40,...(e.appearance==="pill"||e.appearance==="code")&&{paddingLeft:30},"&:focus + svg path":{fill:z.darker}},...e.error&&{boxShadow:`${z.red} 0 0 0 1px inset`,"&:focus":{boxShadow:`${z.red} 0 0 0 1px inset !important`}}},"> svg":{...e.icon&&{transition:"all 150ms ease-out",position:"absolute",top:"50%",zIndex:3,background:"transparent",...e.appearance==="pill"||e.appearance==="code"?{fontSize:`${D.size.s1}px`,height:12,marginTop:-6,width:12,left:10}:{fontSize:`${D.size.s2}px`,height:14,marginTop:-7,width:14,left:e.appearance==="tertiary"?0:15},path:{transition:"all 150ms ease-out",fill:z.mediumdark}},...e.error&&{animation:`${e5} 700ms ease-out`,path:{fill:z.red}}}})),f5=w.div(e=>e.orientation==="horizontal"&&{display:"table-row",".sbds-input-label-wrapper, .sbds-input-input-wrapper":{display:"table-cell"},".sbds-input-label-wrapper":{width:1,paddingRight:20,verticalAlign:"middle"},".sbds-input-input-wrapper":{width:"auto"}}),g5=w(Ne)({width:"100%"}),v5=w(ol)({width:170}),y5=w.div({position:"absolute",right:"0",minWidth:45,top:"50%",transform:"translateY(-50%)",fontWeight:"bold",fontSize:11,zIndex:2}),vl=({error:e,value:t,lastErrorValue:n})=>{let r=typeof e=="function"?e(t):e;return n&&t!==n&&(r=null),r},hs=q(({id:e,appearance:t="default",className:n=void 0,error:r=null,errorTooltipPlacement:i="right",hideLabel:o=!1,icon:l=void 0,label:s,lastErrorValue:c=void 0,onActionClick:d=void 0,orientation:u="vertical",stackLevel:m=void 0,startingType:p="text",suppressErrorMessage:v=!1,type:f="text",value:y="",...k},b)=>{let[h,g]=Te(vl({error:r,value:y,lastErrorValue:c})),E=`${e}-error`;le(()=>{g(vl({error:r,value:y,lastErrorValue:c}))},[y,r,c]);let x=a.createElement(m5,{className:"sbds-input-el",id:e,ref:b,value:y,type:f,"aria-describedby":E,"aria-invalid":!!r,...k});return a.createElement(f5,{orientation:u,className:n},a.createElement(u5,{className:"sbds-input-label-wrapper",hideLabel:o},a.createElement(d5,{htmlFor:e,appearance:t},s)),a.createElement(h5,{className:"sbds-input-input-wrapper",error:h,"data-error":h,icon:l,appearance:t,stackLevel:m,startingType:p},l&&a.createElement(vo,{icon:l,"aria-hidden":!0}),a.createElement(g5,{tabIndex:-1,placement:i,startOpen:!0,hasChrome:!!h&&!v,tooltip:h&&!v&&a.createElement(v5,{desc:h}),role:"none"},x),p==="password"&&a.createElement(y5,null,a.createElement(De,{isButton:!0,tertiary:!0,onClick:d,type:"button"},f==="password"?"Show":"Hide"))))});hs.displayName="PureInput";var fs=q(({type:e,startFocused:t,...n},r)=>{let[i,o]=Te(e),l=Y(u=>{if(u.preventDefault(),u.stopPropagation(),i==="password"){o("text");return}o("password")},[i,o]),s=Ie(),c=r||s,d=Ie(!1);return le(()=>{c.current&&t&&!d.current&&(c.current.focus(),d.current=!0)},[c,t,d]),a.createElement(hs,{ref:c,startingType:e,type:i,onActionClick:l,...n})});fs.displayName="Input";var b5=w.div({borderRadius:"3em",cursor:"progress",display:"inline-block",overflow:"hidden",position:["relative","absolute"],transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-16,marginLeft:-16,height:32,width:32,animation:`${bo} 0.7s linear infinite`,borderWidth:2,borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.03)",borderTopColor:"rgba(0, 0, 0, 0.15)"},e=>({...e.inverse&&{borderColor:"rgba(255, 255, 255, 0.2)",borderTopColor:"rgba(255, 255, 255, 0.4)"},...e.inForm&&{marginTop:-6,marginLeft:-6,height:12,width:12,border:`1px solid ${z.secondary}`,borderBottomColor:"transparent"},...e.inline&&{position:"relative",top:"initial",left:"initial",marginTop:"initial",marginLeft:"initial",verticalAlign:"middle",height:8,width:8,border:"1px solid",borderTopColor:z.secondary,borderLeftColor:z.secondary,borderRightColor:z.secondary,borderBottomColor:"transparent",...e.positive&&{borderTopColor:z.positive,borderLeftColor:z.positive,borderRightColor:z.positive},...e.negative&&{borderTopColor:z.red,borderLeftColor:z.red,borderRightColor:z.red},...e.neutral&&{borderTopColor:z.dark,borderLeftColor:z.dark,borderRightColor:z.dark},...e.inverse&&{borderTopColor:z.lightest,borderLeftColor:z.lightest,borderRightColor:z.lightest}}})),E5=e=>a.createElement(b5,{"aria-label":"Content is loading ...","aria-live":"polite",role:"status",...e}),k5=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},w5=w.span({}),C5=w.span(({theme:e})=>({fontWeight:e.typography.weight.bold,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})),S5=w.span({}),x5=w.span({}),yl=w.li(({theme:e})=>({listStyle:"none","&:not(:first-of-type)":{borderTop:`1px solid ${e.appBorderColor}`}})),M5=w.span({lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center",justifyContent:"space-between",".sbds-list-item-title":{display:"block",flex:"0 1 auto",marginRight:"auto"},".sbds-list-item-left, .sbds-list-item-center, .sbds-list-item-right":{display:"inline-flex"},".sbds-list-item-center":{flex:"0 1 auto",marginLeft:"auto",marginRight:"auto"},".sbds-list-item-left, .sbds-list-item-right":{flex:"0 1 auto"},".sbds-list-item-right":{flex:"none",textAlign:"right",marginLeft:10}}),Eo=({active:e,activeColor:t,disabled:n,isLoading:r,theme:i})=>({fontSize:`${i.typography.size.s1}px`,transition:"all 150ms ease-out",color:i.color.mediumdark,textDecoration:"none",display:"block",".sbds-list-item-title":{color:i.base==="light"?i.color.darker:i.color.lighter},".sbds-list-item-right svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top",path:{fill:i.color.mediumdark}},"&:hover":{background:i.background.hoverable,cursor:"pointer",".sbds-list-item-right svg":{opacity:1}},...e&&{".sbds-list-item-title":{fontWeight:i.typography.weight.bold},".sbds-list-item-title, .sbds-list-item-center":{color:t},".sbds-list-item-right svg":{opacity:1,path:{fill:t}}},...r&&{".sbds-list-item-title":{...t5,flex:"0 1 auto",display:"inline-block"}},...n&&{cursor:"not-allowed !important",".sbds-list-item-title, .sbds-list-item-center":{color:i.color.mediumdark}}}),N5=w(({active:e,activeColor:t,isLoading:n,...r})=>a.createElement("a",{...r}))(Eo),A5=w.span(Eo),F5=k5(e=>w(({active:t,isLoading:n,activeColor:r,...i})=>a.createElement(e,{...i}))(Eo)),st=({appearance:e="primary",left:t,title:n=a.createElement("span",null,"Loading"),center:r,right:i,onClick:o,LinkWrapper:l,isLink:s=!0,...c})=>{let d=qt().color[e],u=a.createElement(M5,{onClick:o,role:"presentation"},t&&a.createElement(w5,{className:"sbds-list-item-left"},t),n&&a.createElement(C5,{className:"sbds-list-item-title"},n),r&&a.createElement(S5,{className:"sbds-list-item-center"},r),i&&a.createElement(x5,{className:"sbds-list-item-right"},i));if(l){let m=F5(l);return a.createElement(yl,null,a.createElement(m,{activeColor:d,...c},u))}return a.createElement(yl,null,a.createElement(s?N5:A5,{activeColor:d,...c},u))};function la(e){function t(B,H){return B>>>H|B<<32-H}for(var n,r,i=Math.pow,o=i(2,32),l="",s=[],c=8*e.length,d=la.h=la.h||[],u=la.k=la.k||[],m=u.length,p={},v=2;m<64;v++)if(!p[v]){for(n=0;n<313;n+=v)p[n]=v;d[m]=i(v,.5)*o|0,u[m++]=i(v,1/3)*o|0}for(e+="\x80";e.length%64-56;)e+="\0";for(n=0;n>8)return;s[n>>2]|=r<<(3-n)%4*8}for(s[s.length]=c/o|0,s[s.length]=c,r=0;r>>3)+f[n-7]+(t(b,17)^t(b,19)^b>>>10)|0);(d=[E+((t(h,2)^t(h,13)^t(h,22))+(h&d[1]^h&d[2]^d[1]&d[2]))|0].concat(d))[4]=d[4]+E|0}for(n=0;n<8;n++)d[n]=d[n]+y[n]|0}for(n=0;n<8;n++)for(r=3;r+1;r--){var x=d[n]>>8*r&255;l+=(x<16?0:"")+x.toString(16)}return l}var O5=e=>new Uint8Array(e).reduce((t,n)=>t+String.fromCharCode(n),""),L5=e=>window.btoa(Array.isArray(e)?O5(e):e),bl=e=>L5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),T5=e=>Array.from(e.match(/.{1,2}/g)??[],t=>parseInt(t,16)),_5=()=>Math.random().toString(36).slice(2,10)+Math.random().toString(36).slice(2,10)+Math.random().toString(36).slice(2,10)+Math.random().toString(36).slice(2,10),gs=e=>Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"),Z5=({error:e})=>e==="authorization_pending",I5=({error_description:e})=>e==="Not OAuth beta user",R5=async e=>{let t=bl(_5()),n=bl(T5(la(t))),r=await fetch(`${Pr}/authorize`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:gs({client_id:"chromaui:addon-visual-tests",code_challenge:n})}),{device_code:i,user_code:o,verification_uri_complete:l,expires_in:s,interval:c}=await r.json(),d=e?l.replace("https://www",`https://${e}`):l;return{expires:Date.now()+s*1e3,interval:c*1e3,user_code:o,device_code:i,verifier:t,verificationUrl:d}},B5=async({expires:e,device_code:t,verifier:n})=>{if(Date.now()>=e)throw new Error("Token exchange expired, please restart sign in.");try{let r=await(await fetch(`${Pr}/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:gs({client_id:"chromaui:addon-visual-tests",grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:t,code_verifier:n,scope:"user:read account:read project:read project:write"})})).json();if(Z5(r))throw new Error("You have not authorized the Visual Tests addon for Chromatic, please try again");if(r.access_token)return r.access_token;if(I5(r))return alert("You must be a beta user to use this addon at this time."),null;throw new Error}catch(r){throw console.warn(r),r}},ko=Qe(null),P5=({children:e,value:t})=>a.createElement(ko.Provider,{value:t},e),Xe=(e,t)=>{let n=Nt(ko,"Telemetry");le(()=>n({location:e,screen:t}),[e,t,n])};function vs(){let e=mn(),{addNotification:t,setOptions:n,togglePanel:r}=e,i=Y(({onDismiss:o})=>{o(),n({selectedPanel:tn}),r(!0)},[n,r]);return Y((o,l)=>{t({id:`${U}/error`,content:{headline:o,subHeadline:l.toString()},icon:{name:"failed",color:It.negative},onClick:i})},[t,i])}var Qn=new Map,V5=(e,t,n)=>{let r=()=>{window.clearTimeout(Qn.get(e)),Qn.delete(e)},i=(...o)=>{Qn.has(e)?r():t(...o),Qn.set(e,window.setTimeout(()=>Qn.delete(e)&&t(...o),n))};return i.cancel=r,i};function nt(e,t){let n=Y(()=>{try{let s=sessionStorage.getItem(`${U}/state/${e}`);if(s!=null)return JSON.parse(s)}catch{}return typeof t=="function"?t():t},[e,t]),[r,i]=Te(n),o=Pt(()=>V5(e,s=>{let c=new Set(sessionStorage.getItem(`${U}/state`)?.split(";"));s==null?(sessionStorage.removeItem(`${U}/state/${e}`),c.delete(e)):(sessionStorage.setItem(`${U}/state/${e}`,JSON.stringify(s)),c.add(e)),sessionStorage.setItem(`${U}/state`,Array.from(c).join(";")),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))},1e3),[e]);le(()=>o.cancel,[o]);let l=Y(s=>{let c=s;(!c.key||c.key===e)&&i(n())},[e,n]);return le(()=>(window.addEventListener("storage",l),window.addEventListener("session-storage",l),()=>{window.removeEventListener("storage",l),window.removeEventListener("session-storage",l)}),[l]),[r,Y(s=>i(c=>{let d=typeof s=="function"?s(c):s;return o(d),d}),[o])]}function j5(...e){let t=sessionStorage.getItem(`${U}/state`)?.split(";")||[];e.length?(e.forEach(n=>sessionStorage.removeItem(`${U}/state/${n}`)),sessionStorage.setItem(`${U}/state`,t.filter(n=>!e.includes(n)).join(";"))):(t.forEach(n=>sessionStorage.removeItem(`${U}/state/${n}`)),sessionStorage.removeItem(`${U}/state`))}var ys=Qe(void 0),H5=({children:e,addonUninstalled:t,setAddonUninstalled:n})=>{let r=mn().getChannel();if(!r)throw new Error("Channel not available");let i=()=>{r.emit(ts),n(!0)};return a.createElement(ys.Provider,{value:{addonUninstalled:t,uninstallAddon:i}},e)},wo=()=>Nt(ys,"Uninstall Addon"),ge=w.div({display:"flex",flexDirection:"column",flexGrow:1,alignItems:"center",justifyContent:"center",padding:10}),pe=w.h1(({theme:e})=>({marginTop:0,marginBottom:4,fontSize:"1em",fontWeight:"bold",color:e.base==="light"?e.color.defaultText:e.color.lightest})),bs=e=>a.createElement("svg",{width:"58",height:"53",viewBox:"0 0 58 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{filter:"url(#filter0_dd_304_317890)"},a.createElement("rect",{x:"6",y:"2",width:"40",height:"40",rx:"8",fill:"#FF4785",shapeRendering:"crispEdges"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5005 11.0555C16.8471 11.0963 16.3455 11.6508 16.37 12.3051L17.1135 32.1151C17.137 32.7426 17.6379 33.2471 18.2651 33.2753L34.3716 33.9987C34.3896 33.9995 34.4077 33.9999 34.4257 33.9999C35.0921 33.9999 35.6324 33.4597 35.6324 32.7932V11.2067C35.6324 11.1816 35.6316 11.1565 35.63 11.1314C35.5885 10.4663 35.0156 9.96082 34.3505 10.0024L33.0259 10.0853L33.1227 12.8548C33.1261 12.9541 33.0484 13.0375 32.949 13.041C32.9065 13.0424 32.8648 13.0288 32.8314 13.0025L31.939 12.2995L30.8825 13.1009C30.8033 13.161 30.6904 13.1455 30.6303 13.0663C30.605 13.033 30.5921 12.9919 30.5939 12.9501L30.707 10.2302L17.5005 11.0555ZM31.221 19.1936C30.7965 19.5234 27.6343 19.7484 27.6343 19.2789C27.7011 17.4876 26.8991 17.409 26.4536 17.409C26.0303 17.409 25.3174 17.537 25.3174 18.4966C25.3174 19.4746 26.3592 20.0267 27.582 20.6747C29.3191 21.5952 31.4215 22.7093 31.4215 25.5128C31.4215 28.1998 29.2383 29.6842 26.4536 29.6842C23.5797 29.6842 21.0683 28.5215 21.352 24.4904C21.4633 24.0171 25.1169 24.1296 25.1169 24.4904C25.0723 26.1538 25.4511 26.6431 26.409 26.6431C27.1442 26.6431 27.4783 26.2379 27.4783 25.5554C27.4783 24.5227 26.3929 23.9133 25.1442 23.2122C23.4534 22.2629 21.4633 21.1456 21.4633 18.5819C21.4633 16.0229 23.2233 14.3168 26.3645 14.3168C29.5056 14.3168 31.221 15.9967 31.221 19.1936Z",fill:"white"})),a.createElement("circle",{cx:"46",cy:"22",r:"2.5",fill:"white",stroke:"#FF4785"}),a.createElement("path",{d:"M57.8536 22.3536C58.0488 22.1583 58.0488 21.8417 57.8536 21.6464L54.6716 18.4645C54.4763 18.2692 54.1597 18.2692 53.9645 18.4645C53.7692 18.6597 53.7692 18.9763 53.9645 19.1716L56.7929 22L53.9645 24.8284C53.7692 25.0237 53.7692 25.3403 53.9645 25.5355C54.1597 25.7308 54.4763 25.7308 54.6716 25.5355L57.8536 22.3536ZM48.5 22.5H57.5V21.5H48.5V22.5Z",fill:"#FF4785"}),a.createElement("defs",null,a.createElement("filter",{id:"filter0_dd_304_317890",x:"0",y:"0",width:"52",height:"53",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"5"}),a.createElement("feGaussianBlur",{stdDeviation:"3"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_304_317890"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1"}),a.createElement("feGaussianBlur",{stdDeviation:"1.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_304_317890",result:"effect2_dropShadow_304_317890"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_304_317890",result:"shape"})))),sn=e=>a.createElement("svg",{width:"52",height:"53",viewBox:"0 0 52 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{filter:"url(#filter0_dd_304_317945)"},a.createElement("g",{clipPath:"url(#clip0_304_317945)"},a.createElement("rect",{x:"6",y:"2",width:"40",height:"40",rx:"8",fill:"#288041"}),a.createElement("g",{clipPath:"url(#clip1_304_317945)"},a.createElement("rect",{x:"14.75",y:"10.75",width:"22.5",height:"22.5",rx:"2",fill:"#215D31"}),a.createElement("rect",{x:"20.6104",y:"20.1591",width:"20.1485",height:"20.1485",transform:"rotate(45 20.6104 20.1591)",fill:"#93D4A5"}),a.createElement("rect",{x:"30.9502",y:"16.59",width:"20.1485",height:"20.1485",transform:"rotate(45 30.9502 16.59)",fill:"#93D4A5"}),a.createElement("circle",{cx:"20.435",cy:"16.2246",r:"2.45455",fill:"#93D4A5"})),a.createElement("rect",{x:"7.05469",y:"3",width:"53.75",height:"32.25",transform:"rotate(45 7.05469 3)",fill:"#67B47C"}),a.createElement("g",{clipPath:"url(#clip2_304_317945)"},a.createElement("g",{clipPath:"url(#clip3_304_317945)"},a.createElement("rect",{x:"14.75",y:"10.75",width:"22.5",height:"22.5",rx:"2",fill:"#2B733F"}),a.createElement("rect",{x:"21.3604",y:"21.6592",width:"20.1485",height:"20.1485",transform:"rotate(45 21.3604 21.6592)",fill:"#A9E0B8"}),a.createElement("rect",{x:"32.2012",y:"18.5908",width:"20.1485",height:"20.1485",transform:"rotate(45 32.2012 18.5908)",fill:"#A9E0B8"}),a.createElement("circle",{cx:"21.685",cy:"17.9746",r:"2.45455",fill:"#A9E0B8"}))))),a.createElement("defs",null,a.createElement("filter",{id:"filter0_dd_304_317945",x:"0",y:"0",width:"52",height:"53",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},a.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"5"}),a.createElement("feGaussianBlur",{stdDeviation:"3"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),a.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_304_317945"}),a.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.createElement("feOffset",{dy:"1"}),a.createElement("feGaussianBlur",{stdDeviation:"1.5"}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),a.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_304_317945",result:"effect2_dropShadow_304_317945"}),a.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_304_317945",result:"shape"})),a.createElement("clipPath",{id:"clip0_304_317945"},a.createElement("rect",{x:"6",y:"2",width:"40",height:"40",rx:"8",fill:"white"})),a.createElement("clipPath",{id:"clip1_304_317945"},a.createElement("rect",{x:"14.75",y:"10.75",width:"22.5",height:"22.5",rx:"2",fill:"white"})),a.createElement("clipPath",{id:"clip2_304_317945"},a.createElement("rect",{width:"60.7428",height:"29.9046",fill:"white",transform:"translate(7.20801 3.17212) rotate(45)"})),a.createElement("clipPath",{id:"clip3_304_317945"},a.createElement("rect",{x:"14.75",y:"10.75",width:"22.5",height:"22.5",rx:"2",fill:"white"})))),D5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:e}))),Es=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:e}))),z5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Dt=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),U5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:e}))),ks=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),$5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:e}))),W5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:e}))),G5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:e}))),q5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:e}))),Co=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),El=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),Y5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),So=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Q5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),K5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}))),ws=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),Cs=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:e}))),J5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Ss=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),X5=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:e}))),eu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),xs=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),S("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),tu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("g",{clipPath:"url(#prefix__clip0_1449_588)"},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:e})),S("defs",null,S("clipPath",{id:"prefix__clip0_1449_588"},S("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Ms=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),nu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:e}))),au=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),ru=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:e}))),iu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:e}))),ou=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:e}))),lu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),Vr=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),su=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:e}))),cu=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:e}),S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:e}))),du=q(({color:e="currentColor",size:t=14,...n},r)=>S("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...n},S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:e}))),uu=mt(Br()),mu=(e,t)=>t&&{positive:{color:e.color.positiveText},warning:{color:e.color.warningText}}[t]||{},rt=w(rl)(({active:e,secondary:t,theme:n})=>({display:"inline-flex",alignItems:"center",verticalAlign:"top",gap:6,margin:0,color:e||t?n.color.secondary:n.color.mediumdark,fontWeight:"normal","& > svg":{width:"auto"}}),({active:e,status:t,theme:n})=>!e&&mu(n,t),({active:e,theme:t})=>{let n=t.background.content===t.color.lightest,r=n?"rgb(241,248,255)":"rgb(28,37,45)",i=n?"rgb(229,243,255)":"rgb(29,44,56)";return{"--bg-color":e?r:t.background.content,"&:hover":{"--bg-color":i,color:t.color.secondary}}}),Ns=w.div({display:"flex",flexDirection:"column"}),$i=w.div(({theme:e})=>({padding:15,lineHeight:"18px",borderBottom:`1px solid ${e.appBorderColor}`,p:{margin:"10px 0","&:last-of-type":{marginBottom:0}},dl:{display:"grid",gridTemplateColumns:"auto 1fr",gap:10,margin:"10px 0 0 0"},dt:{color:e.color.mediumdark,fontWeight:700},dd:{marginLeft:0},"button + button":{marginLeft:10}})),cr=w.div({display:"flex",fontWeight:"bold",marginBottom:15}),kl=w(J5)(({theme:e})=>({width:12,height:12,margin:"3px 6px",verticalAlign:"top",color:e.color.mediumdark})),jr={width:14,height:14,margin:"2px 6px 2px 0",verticalAlign:"top"},pu=w(cu)(jr),hu=w(z5)(jr),fu=w(Es)(jr),gu=w($5)(jr),xo=w(So)({marginLeft:"auto"}),Mo=w(rt)({margin:-5,marginLeft:"auto"}),se=w(di)({"&&":{display:"inline-flex",borderRadius:4,fontSize:13,lineHeight:"14px",padding:"9px 12px",alignItems:"center","@container (min-width: 800px)":{padding:"8px 10px"}}},({link:e,theme:t})=>e&&me({"&&":{background:"none",boxShadow:"none",padding:2,fontWeight:"normal",color:t.base==="light"?t.color.dark:"#C9CDCF",opacity:.8,transition:"opacity 150ms ease-out","&:hover, &:focus":{opacity:1},"&:focus:not(:active)":{outline:`1px solid ${t.color.secondary}`}}}),({tertiary:e})=>e&&me({"&&:hover":{boxShadow:"none"}}),({belowText:e})=>e&&{marginTop:7}),Ve=w(al)(({theme:e})=>({color:e.base==="light"?e.color.darker:e.color.lighter,border:`1px solid ${e.appBorderColor}`,fontSize:"12px",padding:"2px 3px"})),wl="experimental_useSharedState_getValue",qa="experimental_useSharedState_setValue",ki=new Map,As=class{constructor(e){this.channel=e,this.listeners=[],this.state={},this.channel.on(qa,(t,n,r)=>{this.state?.[t]?.index>=r||(this.state[t]={index:r,value:n})}),this.channel.on(wl,t=>{let n=this.state[t]?.index??0,r=this.state[t]?.value;this.channel.emit(qa,t,r,n)})}get(e){return this.state[e]||this.channel.emit(wl,e),this.state[e]?.value}set(e,t){let n=(this.state[e]?.index??0)+1;this.state[e]={index:n,value:t},this.channel.emit(qa,e,t,n)}static subscribe(e,t){let n=ki.get(e)||new As(t);return ki.has(e)||(ki.set(e,n),n.channel.on(qa,(r,i)=>{r===e&&n.listeners.forEach(o=>o(i))})),{get value(){return n.get(e)},set value(r){n.set(e,r)},on(r,i){if(r!=="change")throw new Error("unsupported event");n.listeners.push(i)},off(r,i){if(r!=="change")throw new Error("unsupported event");let o=n.listeners.indexOf(i);o>=0&&n.listeners.splice(o,1)}}}};function Le(e){let t=mn().getChannel();if(!t)throw new Error("Channel not available");let n=Ie(As.subscribe(e,t)),[r,i]=Te(n.current.value);return le(()=>{let o=n.current;return o.on("change",i),()=>o.off("change",i)},[n]),[r,Y(o=>{i(o),n.current.value=o},[])]}var vu={autoAcceptChanges:{description:"Automatically accept visual changes - usually for a specific branch name.",type:"true or branch name"},buildScriptName:{description:"The package.json script that builds your Storybook.",type:"string"},cypress:{description:"Run build against `@chromatic-com/cypress` test archives.",type:"boolean"},debug:{description:"Output verbose logs and debug information.",type:"boolean"},diagnosticsFile:{description:"Write process information to a JSON file.",type:"string or boolean"},exitOnceUploaded:{description:"Exit the process as soon as your Storybook is published.",type:"string or boolean"},exitZeroOnChanges:{description:"Exit the process succesfully even when visual changes are found.",type:"string or boolean"},externals:{description:"Disable TurboSnap when any of these files have changed since the baseline build.",type:"string: ['public/**']"},fileHashing:{description:"Apply file hashing to skip uploading unchanged files - default: true",type:"boolean"},ignoreLastBuildOnBranch:{description:"Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased).",type:"string"},junitReport:{description:"Write build results to a JUnit XML file.",type:"string or boolean"},logFile:{description:"Write Chromatic CLI logs to a file.",type:"string or boolean"},onlyChanged:{description:"Enables TurboSnap to only run stories affected by files changed since the baseline build.",type:"true or string (branch name)",glob:!0},onlyStoryFiles:{description:"Only run a single story or a subset of stories by their filename(s).",type:"string[]"},onlyStoryNames:{description:"Only run a single story or a subset of stories by their name(s).",type:"string[]"},outputDir:{description:"Relative path to target directory for building your Storybook, in case you want to preserve it.",type:"string"},playwright:{description:"Run build against `@chromatic-com/playwright` test archives.",type:"boolean"},projectId:{description:"Unique identifier for your project. ",type:"string"},projectToken:{description:"Secret token for your project. Preferably configured through CHROMATIC_PROJECT_TOKEN.",type:"string"},skip:{description:"Skip Chromatic tests, but mark the commit as passing. Avoids blocking PRs due to required merge checks.",type:"string or boolean"},storybookBaseDir:{description:"Relative path from repository root to Storybook project root.",type:"string"},storybookBuildDir:{description:"Path to the directory of an already built Storybook.",type:"string"},storybookConfigDir:{description:"Relative path from where you run Chromatic to your Storybook config directory.",type:"string"},storybookLogFile:{description:"Write Storybook build logs to a file.",type:"string or boolean"},untraced:{description:"Disregard these files and their dependencies when tracing dependent stories for TurboSnap.",type:"string[]"},uploadMetadata:{description:"Upload Chromatic metadata files as part of the published Storybook.",type:"boolean"},zip:{description:"Publish your Storybook to Chromatic as a single zip file instead of individual content files.",type:"boolean"}},yu=w(Mo)({position:"absolute",right:16,top:10}),bu=w.div(({theme:e})=>({backgroundColor:e.background.content,display:"flex",flexDirection:"column",minHeight:"100%",overflowY:"auto",padding:20,position:"relative"})),Eu=w.div({margin:"0 auto",maxWidth:600,width:"100%"}),Cl=w.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,marginBottom:20,paddingBottom:20,code:{fontSize:"90%"}})),ku=w(cr)({marginBottom:10}),wu=w.div({display:"flex",flexDirection:"column",gap:20}),Sl=w.div(({theme:e})=>({alignItems:"center",borderRadius:e.appBorderRadius,display:"flex",flexWrap:"wrap","> div":{width:"100%"}})),xl=w.div(({theme:e})=>({display:"flex",flexGrow:1,flexWrap:"wrap",gap:"5px 10px"})),Ml=w.div(({theme:e})=>({fontWeight:e.typography.weight.bold,div:{marginLeft:5,position:"relative",top:2}})),Nl=w.div({marginTop:10}),Cu=w.div(({hideBorderRadius:e,theme:t})=>({background:t.base==="dark"?t.color.darkest:t.color.lighter,border:`1px solid ${t.appBorderColor}`,borderRadius:t.appBorderRadius,borderBottomLeftRadius:e?0:t.appBorderRadius,borderBottomRightRadius:e?0:t.appBorderRadius,color:t.base==="dark"?t.color.medium:t.color.dark,fontFamily:t.typography.fonts.mono,fontSize:13,lineHeight:"20px",padding:"5px 10px",wordWrap:"break-word"})),Su=w.div(({theme:e})=>({color:e.color.warningText})),Al=w.div(({theme:e})=>({color:e.base==="dark"?e.color.medium:e.color.dark,marginTop:2})),Fl=w.div(({warning:e,theme:t})=>({alignItems:"center",display:"flex",backgroundColor:e?t.base==="dark"?"#342E1A":t.background.warning:t.background.hoverable,border:`1px solid ${t.appBorderColor}`,borderRadius:3,borderTopLeftRadius:0,borderTopRightRadius:0,borderTop:0,fontSize:t.typography.size.s1,gap:5,lineHeight:"20px",padding:5,svg:{color:e?t.base==="dark"?t.color.warning:t.color.warningText:t.color.secondary,flexShrink:0},code:{fontSize:"85%"}})),xu=w.div(({theme:e})=>({"&:nth-last-of-type(2)":{borderBottom:`1px solid ${e.appBorderColor}`,paddingBottom:30}})),Fs={height:12,margin:2,verticalAlign:"top",width:12},Mu=w(eu)(Fs),Nu=w(q5)(Fs),Au=({onClose:e})=>{let{uninstallAddon:t}=wo(),[n]=Le(go),{configuration:r={},problems:i={},suggestions:o={}}=n||{},{configFile:l,...s}=r,c=Object.keys({...s,...i,...o}).sort().map(d=>({key:d,value:d in s?s[d]:void 0,problem:i[d],suggestion:o[d]}));return a.createElement(bu,null,a.createElement(yu,{onClick:e,style:{marginRight:-8}},a.createElement(xo,{"aria-label":"Close"})),a.createElement(Eu,null,a.createElement(ku,null,"Configuration"),l?a.createElement(Cl,null,"This is a read-only representation of the Chromatic configuration options found in"," ",a.createElement(Ve,null,l),". Changes to the config file will be reflected here."," ",a.createElement(fn,{href:"https://www.chromatic.com/docs/cli/#configuration-options",target:"_blank",withArrow:!0},"Learn more")):a.createElement(Cl,null,"To configure this addon, create ",a.createElement(Ve,null,"chromatic.config.json")," in your project's root directory."," ",a.createElement(fn,{href:"https://www.chromatic.com/docs/cli/#configuration-options",target:"_blank",withArrow:!0},"Learn more")),c&&a.createElement(wu,null,c.map(({key:d,value:u,problem:m,suggestion:p})=>a.createElement(xu,{key:d,id:`${d}-option`},a.createElement(Sl,null,a.createElement(xl,null,a.createElement(Ml,null,d," "),d in Sd&&a.createElement(Su,null,"*Disabled for local builds")),a.createElement(Al,null,vu[d]?.description),a.createElement(Nl,null,a.createElement(Cu,{hideBorderRadius:!!(m||p)},u===void 0?"undefined":JSON.stringify(u)))),m!==void 0&&a.createElement(Fl,{warning:!0},a.createElement(Mu,null),m===null?a.createElement("span",null,a.createElement("strong",null,"Warning: "),"This should be removed."):a.createElement("span",null,a.createElement("strong",null,"Warning: "),"This should be: ",a.createElement(Ve,null,JSON.stringify(m)))),p!==void 0&&a.createElement(Fl,null,a.createElement(Nu,null),a.createElement("span",null,a.createElement("strong",null,"Hint: "),"Try setting as ",a.createElement(Ve,null,JSON.stringify(p)))))),a.createElement("div",null,a.createElement(Sl,null,a.createElement(xl,null,a.createElement(Ml,null,"Uninstall addon")),a.createElement(Al,null,"Removing the addon updates your Storybook configuration and uninstalls the dependency."),a.createElement(Nl,null,a.createElement(se,{onClick:t},"Uninstall")))))))},Os={configVisible:!1,settingsVisible:!1,warningsVisible:!1,baselineImageVisible:!1,focusVisible:!1,diffVisible:!1},vn=e=>(t,n)=>({...t,[e]:typeof n=="boolean"?n:!t[e]}),Fu={toggleDiff:vn("diffVisible"),toggleFocus:vn("focusVisible"),toggleConfig:vn("configVisible"),toggleSettings:vn("settingsVisible"),toggleWarnings:vn("warningsVisible"),toggleBaselineImage:vn("baselineImageVisible")},Ou=(e,t)=>Fu[t.type](e,t.payload),Ls=Qe(Os),Ts=Qe(()=>{}),Hr=()=>Nt(Ls,"Controls"),Zn=()=>{let e=Nt(Ts,"ControlsDispatch");return Pt(()=>({toggleDiff:t=>e({type:"toggleDiff",payload:t}),toggleFocus:t=>e({type:"toggleFocus",payload:t}),toggleConfig:t=>e({type:"toggleConfig",payload:t}),toggleSettings:t=>e({type:"toggleSettings",payload:t}),toggleWarnings:t=>e({type:"toggleWarnings",payload:t}),toggleBaselineImage:t=>e({type:"toggleBaselineImage",payload:t})}),[e])},Lu=({children:e,initialState:t=Os})=>{let[n,r]=si(Ou,t);return a.createElement(Ls.Provider,{value:n},a.createElement(Ts.Provider,{value:r},e))},Be=w(ll)(({theme:e})=>({marginBottom:"-4px",marginTop:"-4px",left:-8})),Tu=w.div({"& > div":{minWidth:120}}),fa=({children:e,links:t,note:n,...r})=>{let[i,o]=a.useState(!1),l=a.createElement(Ne,{closeOnOutsideClick:!0,closeOnTriggerHidden:!0,onVisibleChange:s=>o(s),tooltip:({onHide:s})=>a.createElement(Tu,null,a.createElement(il,{links:t.map(c=>({...c,onClick:(...d)=>(s(),c.onClick?.(...d))}))})),trigger:"click",...r},typeof e=="function"?e(i):a.createElement(rt,{active:i},e));return n?a.createElement(Ne,{tooltip:a.createElement(Be,{note:n}),trigger:"hover",hasChrome:!1},l):l},Dr=()=>{let{accessToken:e,setAccessToken:t}=rs(),{toggleConfig:n}=Zn(),[r]=Le(X1),{projectId:i}=r||{},o=[{id:"learn",title:"About this addon",icon:a.createElement(Ss,{"aria-hidden":!0}),href:"https://www.chromatic.com/docs/visual-testing-addon",target:"_blank"},{id:"configuration",title:"Configuration",icon:a.createElement(W5,{"aria-hidden":!0}),onClick:()=>n()},...i?[{id:"visit",title:"View project on Chromatic",icon:a.createElement(xs,{"aria-hidden":!0}),href:i?`https://www.chromatic.com/builds?appId=${i?.split(":")[1]}`:"https://www.chromatic.com/start",target:"_blank"}]:[],...e?[{id:"logout",title:"Log out",icon:a.createElement(du,{"aria-hidden":!0}),onClick:()=>t(null)}]:[]];return a.createElement(fa,{placement:"top",links:o},a.createElement(G5,null))};w.div(({hidden:e,theme:t})=>({background:t.background.app,containerType:"size",display:e?"none":"flex",flexDirection:"column",height:"100%"}));var _u=w.div({display:"flex",flexDirection:"column",flexGrow:1},({hidden:e})=>e&&{display:"none"}),ca=w.div(({grow:e})=>e&&{flexGrow:e?1:"auto"}),sa=w.div({display:"flex",flexDirection:"row",margin:15},({header:e,theme:t})=>e&&{margin:0,padding:15,borderBottom:`1px solid ${t.appBorderColor}`,"@container (min-width: 800px)":{height:40,alignItems:"center",justifyContent:"space-between",padding:"5px 15px"}}),Zu=w(sa)({alignItems:"center",height:40,margin:"0 10px"}),it=w.div({display:"flex",flexDirection:"column",alignItems:"center"},({push:e})=>e&&{marginLeft:"auto"}),Ol=w.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,display:"flex",alignItems:"center",minHeight:40,lineHeight:"20px",padding:"5px 15px"})),Iu=w(ca)(({theme:e})=>({background:e.background.warning,color:e.color.warningText})),Ru=w(ca)(({theme:e})=>({background:e.background.hoverable,color:e.color.defaultText})),Bu=({hidden:e,ignoreConfig:t,ignoreSuggestions:n,onOpen:r})=>{let[i]=Le(go),o=Object.keys(i?.problems||{}),l=Object.keys(i?.suggestions||{}),[s,c]=Te(()=>!!localStorage.getItem(fl)),d=Y(()=>{c(!0),localStorage.setItem(fl,"true")},[]),u=a.createElement(De,{isButton:!0,onClick:()=>r(o[0]||l[0]),withArrow:!0},"Show details");return o.length>0&&!t?a.createElement(Iu,{hidden:e},a.createElement(Ol,null,a.createElement(it,null,a.createElement("span",null,"Visual tests locked due to configuration ",(0,uu.default)("problem",o.length),"."," ",u)))):l.length>0&&!s&&!t&&!n?a.createElement(Ru,{hidden:e},a.createElement(Ol,null,a.createElement(it,null,a.createElement("span",null,"Configuration could be improved. ",u)),a.createElement(it,{push:!0},a.createElement(rt,{onClick:d},a.createElement(So,null))))):null},Pu=w.div({display:"flex",flexDirection:"column",height:"100%"}),Ll=w.div(({hidden:e,theme:t})=>({background:t.background.app,display:e?"none":"flex",flexDirection:"column",flexGrow:1,height:"100%",overflowY:"auto"})),zr=w.div(({theme:e})=>({background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,display:"flex",flexDirection:"row",alignItems:"center",height:39,flexShrink:0,padding:"0 10px"})),Se=({children:e,footer:t=a.createElement(zr,null,a.createElement(it,{push:!0}),a.createElement(it,null,a.createElement(Dr,null))),ignoreConfig:n=!1,ignoreSuggestions:r=!t})=>{let{configVisible:i}=Hr(),{toggleConfig:o}=Zn(),l=Y(s=>{o(!0),s&&setTimeout(()=>{document.getElementById(`${s}-option`)?.scrollIntoView({behavior:"smooth",inline:"nearest"})},200)},[o]);return a.createElement(Pu,null,a.createElement(Bu,{onOpen:l,hidden:i,ignoreConfig:n,ignoreSuggestions:r}),a.createElement(Ll,{hidden:i},e),a.createElement(Ll,{hidden:!i},a.createElement(Au,{onClose:()=>o(!1)})),t)},Vu=w.div(({theme:e})=>({position:"relative","&& input":{color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2,lineHeight:"20px"}})),ju=w.div(({theme:e})=>({pointerEvents:"none",position:"absolute",top:0,left:40,right:0,zIndex:2,overflow:"hidden",height:40,display:"flex",alignItems:"center",lineHeight:"20px",color:e.input.color||"inherit",fontSize:e.typography.size.s2,span:{opacity:0}})),Hu=({value:e,placeholder:t,suffix:n})=>a.createElement(ju,null,a.createElement("span",null,e||t),a.createElement("b",null,n)),Du=({id:e,value:t,placeholder:n,suffix:r,...i})=>a.createElement(Vu,null,a.createElement(fs,{id:e,hideLabel:!0,label:"",value:t,placeholder:n,crossOrigin:void 0,enterKeyHint:void 0,...i}),a.createElement(Hu,{value:t,placeholder:n,suffix:r})),W=w.div(({center:e,small:t,block:n,theme:r})=>({display:n?"block":"inline-block",color:r.color.defaultText,fontSize:t?r.typography.size.s1:r.typography.size.s2,lineHeight:t?"18px":"20px",textAlign:e?"center":"left",textWrap:"balance"}),({muted:e,theme:t})=>e&&{color:t.base==="light"?t.color.dark:"#C9CDCF"},({theme:e})=>({b:{color:e.color.defaultText},code:{fontSize:e.typography.size.s1,border:`1px solid ${e.appBorderColor}`,borderRadius:3,padding:2},small:{fontSize:e.typography.size.s1},span:{whiteSpace:"nowrap"},svg:{verticalAlign:"top"}})),Tl=w(rt)(({theme:e})=>({color:e.base==="light"?"currentColor":e.color.medium,fontSize:e.typography.size.s2,fontWeight:e.typography.weight.bold})),Ur=({onBack:e})=>a.createElement(Zu,null,e&&a.createElement(it,null,a.createElement(Tl,{onClick:e},a.createElement(nu,null),"Back")),a.createElement(it,{push:!0},a.createElement(Ne,{as:"div",hasChrome:!1,trigger:"hover",tooltip:a.createElement(Be,{note:"Learn about Visual Tests"})},a.createElement(Tl,{as:"a",href:"https://www.chromatic.com/features/visual-test",target:"_blank"},a.createElement(Ss,null))))),zu=w.form({position:"relative",display:"flex",flexDirection:"column",width:"100%",maxWidth:300,margin:10}),Uu=w(di)({"&&":{fontSize:13,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:4,borderBottomRightRadius:4}}),$u=({onBack:e,onSignIn:t})=>{let[n,r]=Te(""),[i,o]=Te(null),l=Y(c=>{let d=c.target.value.replace(/[^a-z0-9-]/g,"");r(d),o(null)},[]),s=Y(c=>{c.preventDefault(),n?t(n):o("Please enter a subdomain")},[n,t]);return a.createElement(Se,{footer:null,ignoreConfig:!0},a.createElement(Ur,{onBack:e}),a.createElement(ge,null,a.createElement("div",null,a.createElement(bs,null),a.createElement(sn,null)),a.createElement(pe,null,"Sign in with SSO"),a.createElement(W,{muted:!0},"Enter your team's Chromatic URL."),a.createElement(zu,{onSubmit:s},a.createElement(Du,{autoFocus:!0,icon:"users",value:n,placeholder:"yourteam",suffix:".chromatic.com",onChange:l,id:"subdomain-input",stackLevel:"top",error:i,errorTooltipPlacement:"top"}),a.createElement(Uu,{type:"submit",variant:"solid",size:"medium"},"Continue"))))},St=w.div(()=>({display:"flex",flexDirection:"column",gap:5,alignItems:"center",textAlign:"center"})),de=w.div(e=>({display:"flex",flexDirection:"column",gap:15,alignItems:e.alignItems??"center",textAlign:e.textAlign??"center"})),Wu=({onBack:e,onSignIn:t,onSignInWithSSO:n})=>a.createElement(Se,{footer:null,ignoreConfig:!0},a.createElement(Ur,{onBack:e}),a.createElement(ge,null,a.createElement(de,{alignItems:"center",textAlign:"center"},a.createElement("div",null,a.createElement(bs,null),a.createElement(sn,null),a.createElement(pe,null,"Sign in to begin visual testing"),a.createElement(W,{center:!0,muted:!0},"Pinpoint bugs instantly by connecting with cloud browsers that run visual tests in parallel.")),a.createElement(St,null,a.createElement(se,{variant:"solid",size:"medium",onClick:()=>t()},"Sign in with Chromatic"),a.createElement(se,{link:!0,onClick:()=>n()},"Sign in with SSO"))))),Gu={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"},Wi=class extends Error{constructor(e,t,n,r,i,o,l){super(e),this.name="GraphQLError",this.message=e,i&&(this.path=i),t&&(this.nodes=Array.isArray(t)?t:[t]),n&&(this.source=n),r&&(this.positions=r),o&&(this.originalError=o);var s=l;if(!s&&o){var c=o.extensions;c&&typeof c=="object"&&(s=c)}this.extensions=s||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}},we,J;function Ae(e){return new Wi(`Syntax Error: Unexpected token at ${J} in ${e}`)}function Ke(e){if(e.lastIndex=J,e.test(we))return we.slice(J,J=e.lastIndex)}var Ya=/ +(?=[^\s])/y;function qu(e){for(var t=e.split(` +`),n="",r=0,i=0,o=t.length-1,l=0;l!(!e||!e.length),Re={OperationDefinition(e){if(e.operation==="query"&&!e.name&&!et(e.variableDefinitions)&&!et(e.directives))return Re.SelectionSet(e.selectionSet);var t=e.operation;return e.name&&(t+=" "+e.name.value),et(e.variableDefinitions)&&(e.name||(t+=" "),t+="("+e.variableDefinitions.map(Re.VariableDefinition).join(", ")+")"),et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),t+" "+Re.SelectionSet(e.selectionSet)},VariableDefinition(e){var t=Re.Variable(e.variable)+": "+tt(e.type);return e.defaultValue&&(t+=" = "+tt(e.defaultValue)),et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),t},Field(e){var t=(e.alias?e.alias.value+": ":"")+e.name.value;if(et(e.arguments)){var n=e.arguments.map(Re.Argument),r=t+"("+n.join(", ")+")";t=r.length>80?t+`( + `+n.join(` +`).replace(/\n/g,` + `)+` +)`:r}return et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),e.selectionSet?t+" "+Re.SelectionSet(e.selectionSet):t},StringValue:e=>e.block?u2(e.value):d2(e.value),BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+e.values.map(tt).join(", ")+"]",ObjectValue:e=>"{"+e.fields.map(Re.ObjectField).join(", ")+"}",ObjectField:e=>e.name.value+": "+tt(e.value),Document:e=>et(e.definitions)?e.definitions.map(tt).join(` + +`):"",SelectionSet:e=>`{ + `+e.selections.map(tt).join(` +`).replace(/\n/g,` + `)+` +}`,Argument:e=>e.name.value+": "+tt(e.value),FragmentSpread(e){var t="..."+e.name.value;return et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),t+" "+tt(e.selectionSet)},FragmentDefinition(e){var t="fragment "+e.name.value;return t+=" on "+e.typeCondition.name.value,et(e.directives)&&(t+=" "+e.directives.map(Re.Directive).join(" ")),t+" "+tt(e.selectionSet)},Directive(e){var t="@"+e.name.value;return et(e.arguments)&&(t+="("+e.arguments.map(Re.Argument).join(", ")+")"),t},NamedType:e=>e.name.value,ListType:e=>"["+tt(e.type)+"]",NonNullType:e=>tt(e.type)+"!"};function tt(e){return Re[e.kind]?Re[e.kind](e):""}var No=()=>{},Je=No;function pt(e){return{tag:0,0:e}}function Oa(e){return{tag:1,0:e}}var _l=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",m2=e=>e;function Ge(e){return t=>n=>{var r=Je;t(i=>{i===0?n(0):i.tag===0?(r=i[0],n(i)):e(i[0])?n(i):r(0)})}}function Gi(e){return t=>n=>t(r=>{r===0||r.tag===0?n(r):n(Oa(e(r[0])))})}function ur(e){return t=>n=>{var r=[],i=Je,o=!1,l=!1;t(s=>{l||(s===0?(l=!0,r.length||n(0)):s.tag===0?i=s[0]:(o=!1,function(c){var d=Je;c(u=>{if(u===0){if(r.length){var m=r.indexOf(d);m>-1&&(r=r.slice()).splice(m,1),r.length||(l?n(0):o||(o=!0,i(0)))}}else u.tag===0?(r.push(d=u[0]),d(0)):r.length&&(n(u),d(0))})}(e(s[0])),o||(o=!0,i(0))))}),n(pt(s=>{if(s===1){l||(l=!0,i(1));for(var c=0,d=r,u=r.length;cn=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0),e();else if(i.tag===0){var o=i[0];n(pt(l=>{l===1?(r=!0,o(1),e()):o(l)}))}else n(i)})}}function mr(e){return t=>n=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0);else if(i.tag===0){var o=i[0];n(pt(l=>{l===1&&(r=!0),o(l)}))}else e(i[0]),n(i)})}}function qi(e){return t=>n=>t(r=>{r===0?n(0):r.tag===0?(n(r),e()):n(r)})}function va(e){var t=[],n=Je,r=!1;return i=>{t.push(i),t.length===1&&e(o=>{if(o===0){for(var l=0,s=t,c=t.length;l{if(o===1){var l=t.indexOf(i);l>-1&&(t=t.slice()).splice(l,1),t.length||n(1)}else r||(r=!0,n(0))}))}}function Zl(e){return t=>n=>{var r=Je,i=Je,o=!1,l=!1,s=!1,c=!1;t(d=>{c||(d===0?(c=!0,s||n(0)):d.tag===0?r=d[0]:(s&&(i(1),i=Je),o?o=!1:(o=!0,r(0)),function(u){s=!0,u(m=>{s&&(m===0?(s=!1,c?n(0):o||(o=!0,r(0))):m.tag===0?(l=!1,(i=m[0])(0)):(n(m),l?l=!1:i(0)))})}(e(d[0]))))}),n(pt(d=>{d===1?(c||(c=!0,r(1)),s&&(s=!1,i(1))):(!c&&!o&&(o=!0,r(0)),s&&!l&&(l=!0,i(0)))}))}}function Wr(e){return t=>n=>{var r=Je,i=!1,o=0;t(l=>{i||(l===0?(i=!0,n(0)):l.tag===0?e<=0?(i=!0,n(0),l[0](1)):r=l[0]:o++=e&&(i=!0,n(0),r(1))):n(l))}),n(pt(l=>{l===1&&!i?(i=!0,r(1)):l===0&&!i&&on=>{var r=Je,i=Je,o=!1;t(l=>{o||(l===0?(o=!0,i(1),n(0)):l.tag===0?(r=l[0],e(s=>{s===0||(s.tag===0?(i=s[0])(0):(o=!0,i(1),r(1),n(0)))})):n(l))}),n(pt(l=>{l===1&&!o?(o=!0,r(1),i(1)):o||r(0)}))}}function Vs(e,t){return n=>r=>{var i=Je,o=!1;n(l=>{o||(l===0?(o=!0,r(0)):l.tag===0?(i=l[0],r(l)):e(l[0])?r(l):(o=!0,t&&r(l),r(0),i(1)))})}}function h2(e){return t=>e()(t)}function js(e){return t=>{var n=e[_l()]&&e[_l()]()||e,r=!1,i=!1,o=!1,l;t(pt(async s=>{if(s===1)r=!0,n.return&&n.return();else if(i)o=!0;else{for(o=i=!0;o&&!r;)if((l=await n.next()).done)r=!0,n.return&&await n.return(),t(0);else try{o=!1,t(Oa(l.value))}catch(c){if(n.throw)(r=!!(await n.throw(c)).done)&&t(0);else throw c}i=!1}}))}}function f2(e){return e[Symbol.asyncIterator]?js(e):t=>{var n=e[Symbol.iterator](),r=!1,i=!1,o=!1,l;t(pt(s=>{if(s===1)r=!0,n.return&&n.return();else if(i)o=!0;else{for(o=i=!0;o&&!r;)if((l=n.next()).done)r=!0,n.return&&n.return(),t(0);else try{o=!1,t(Oa(l.value))}catch(c){if(n.throw)(r=!!n.throw(c).done)&&t(0);else throw c}i=!1}}))}}var g2=f2;function da(e){return t=>{var n=!1;t(pt(r=>{r===1?n=!0:n||(n=!0,t(Oa(e)),t(0))}))}}function Hs(e){return t=>{var n=!1,r=e({next(i){n||t(Oa(i))},complete(){n||(n=!0,t(0))}});t(pt(i=>{i===1&&!n&&(n=!0,r())}))}}function Yi(){var e,t;return{source:va(Hs(n=>(e=n.next,t=n.complete,No))),next(n){e&&e(n)},complete(){t&&t()}}}function Il(e){return Hs(t=>(e.then(n=>{Promise.resolve(n).then(()=>{t.next(n),t.complete()})}),No))}function xn(e){return t=>{var n=Je,r=!1;return t(i=>{i===0?r=!0:i.tag===0?(n=i[0])(0):r||(e(i[0]),n(0))}),{unsubscribe(){r||(r=!0,n(1))}}}}function v2(e){xn(t=>{})(e)}function Fo(e){return new Promise(t=>{var n=Je,r;e(i=>{i===0?Promise.resolve(r).then(t):i.tag===0?(n=i[0])(0):(r=i[0],n(0))})})}var y2=e=>e&&e.message&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&e.message?new Wi(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new Wi(e),Oo=class extends Error{constructor(e){var t=(e.graphQLErrors||[]).map(y2),n=((r,i)=>{var o="";if(r)return`[Network] ${r.message}`;if(i)for(var l of i)o&&(o+=` +`),o+=`[GraphQL] ${l.message}`;return o})(e.networkError,t);super(n),this.name="CombinedError",this.message=n,this.graphQLErrors=t,this.networkError=e.networkError,this.response=e.response}toString(){return this.message}},Qi=(e,t)=>{for(var n=0|(t||5381),r=0,i=0|e.length;r{if(e===null||Xt.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return yn(e.toJSON());if(Array.isArray(e)){var t="[";for(var n of e)t.length>1&&(t+=","),t+=yn(n)||"null";return t+="]"}else if(hr!==Mn&&e instanceof hr||fr!==Mn&&e instanceof fr)return"null";var r=Object.keys(e).sort();if(!r.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var i=Rl.get(e)||Math.random().toString(36).slice(2);return Rl.set(e,i),yn({__key:i})}Xt.add(e);var o="{";for(var l of r){var s=yn(e[l]);s&&(o.length>1&&(o+=","),o+=yn(l)+":"+s)}return Xt.delete(e),o+="}"},Ki=(e,t,n)=>{if(!(n==null||typeof n!="object"||n.toJSON||Xt.has(n)))if(Array.isArray(n))for(var r=0,i=n.length;r(Xt.clear(),yn(e)),Mn=class{},hr=typeof File<"u"?File:Mn,fr=typeof Blob<"u"?Blob:Mn,b2=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,E2=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,k2=(e,t)=>t%2==0?e.replace(E2,` +`):e,Bl=e=>e.split(b2).map(k2).join("").trim(),Pl=new Map,ir=new Map,Lo=e=>{var t;return typeof e=="string"?t=Bl(e):e.loc&&ir.get(e.__key)===e?t=e.loc.source.body:(t=Pl.get(e)||Bl(tt(e)),Pl.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},Vl=e=>{var t=Qi(Lo(e));if(e.definitions){var n=Ds(e);n&&(t=Qi(` +# ${n}`,t))}return t},w2=e=>{var t,n;return typeof e=="string"?(t=Vl(e),n=ir.get(t)||c2(e)):(t=e.__key||Vl(e),n=ir.get(t)||e),n.loc||Lo(n),n.__key=t,ir.set(t,n),n},wn=(e,t,n)=>{var r=t||{},i=w2(e),o=pr(r),l=i.__key;return o!=="{}"&&(l=Qi(o,l)),{key:l,query:i,variables:r,extensions:n}},Ds=e=>{for(var t of e.definitions)if(t.kind===Gu.OPERATION_DEFINITION)return t.name?t.name.value:void 0},jl=(e,t,n)=>{if(!("data"in t||"errors"in t&&Array.isArray(t.errors)))throw new Error("No Content");var r=e.kind==="subscription";return{operation:e,data:t.data,error:Array.isArray(t.errors)?new Oo({graphQLErrors:t.errors,response:n}):void 0,extensions:t.extensions?{...t.extensions}:void 0,hasNext:t.hasNext==null?r:t.hasNext,stale:!1}},Ji=(e,t)=>{if(typeof e=="object"&&e!=null&&(!e.constructor||e.constructor===Object||Array.isArray(e))){e=Array.isArray(e)?[...e]:{...e};for(var n of Object.keys(t))e[n]=Ji(e[n],t[n]);return e}return t},C2=(e,t,n,r)=>{var i=e.error?e.error.graphQLErrors:[],o=!!e.extensions||!!t.extensions,l={...e.extensions,...t.extensions},s=t.incremental;"path"in t&&(s=[t]);var c={data:e.data};if(s){var d=function(m){Array.isArray(m.errors)&&i.push(...m.errors),m.extensions&&(Object.assign(l,m.extensions),o=!0);var p="data",v=c,f=[];if(m.path)f=m.path;else if(r){var y=r.find(x=>x.id===m.id);m.subPath?f=[...y.path,...m.subPath]:f=y.path}for(var k=0,b=f.length;k=0?p:0,g=0,E=m.items.length;g({operation:e,data:void 0,error:new Oo({networkError:t,response:n}),extensions:void 0,hasNext:!1,stale:!1});function S2(e){return{query:e.extensions&&e.extensions.persistedQuery&&!e.extensions.persistedQuery.miss?void 0:Lo(e.query),operationName:Ds(e.query),variables:e.variables||void 0,extensions:e.extensions}}var x2=(e,t)=>{var n=e.kind==="query"&&e.context.preferGetMethod;if(!n||!t)return e.context.url;var r=new URL(e.context.url);for(var i in t){var o=t[i];o&&r.searchParams.set(i,typeof o=="object"?pr(o):o)}var l=r.toString();return l.length>2047&&n!=="force"?(e.context.preferGetMethod=!1,e.context.url):l},M2=(e,t)=>{if(t&&!(e.kind==="query"&&e.context.preferGetMethod)){var n=pr(t),r=(s=>{var c=new Map;return(hr!==Mn||fr!==Mn)&&(Xt.clear(),Ki(c,"variables",s)),c})(t.variables);if(r.size){var i=new FormData;i.append("operations",n),i.append("map",pr({...[...r.keys()].map(s=>[s])}));var o=0;for(var l of r.values())i.append(""+o++,l);return i}return n}},N2=(e,t)=>{var n={accept:e.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},r=(typeof e.context.fetchOptions=="function"?e.context.fetchOptions():e.context.fetchOptions)||{};if(r.headers)for(var i in r.headers)n[i.toLowerCase()]=r.headers[i];var o=M2(e,t);return typeof o=="string"&&!n["content-type"]&&(n["content-type"]="application/json"),{...r,method:o?"POST":"GET",body:o,headers:n}},A2=typeof TextDecoder<"u"?new TextDecoder:null,F2=/boundary="?([^=";]+)"?/i,O2=/data: ?([^\n]+)/,Hl=e=>e.constructor.name==="Buffer"?e.toString():A2.decode(e);async function*Dl(e){if(e.body[Symbol.asyncIterator])for await(var t of e.body)yield Hl(t);else{var n=e.body.getReader(),r;try{for(;!(r=await n.read()).done;)yield Hl(r.value)}finally{n.cancel()}}}async function*zl(e,t){var n="",r;for await(var i of e)for(n+=i;(r=n.indexOf(t))>-1;)yield n.slice(0,r),n=n.slice(r+t.length)}async function*L2(e,t,n){var r=!0,i=null,o;try{yield await Promise.resolve();var l=(o=await(e.context.fetch||fetch)(t,n)).headers.get("Content-Type")||"",s;/multipart\/mixed/i.test(l)?s=async function*(u,m){var p=u.match(F2),v="--"+(p?p[1]:"-"),f=!0,y;for await(var k of zl(Dl(m),`\r +`+v)){if(f){f=!1;var b=k.indexOf(v);if(b>-1)k=k.slice(b+v.length);else continue}try{yield y=JSON.parse(k.slice(k.indexOf(`\r +\r +`)+4))}catch(h){if(!y)throw h}if(y&&y.hasNext===!1)break}y&&y.hasNext!==!1&&(yield{hasNext:!1})}(l,o):/text\/event-stream/i.test(l)?s=async function*(u){var m;for await(var p of zl(Dl(u),` + +`)){var v=p.match(O2);if(v){var f=v[1];try{yield m=JSON.parse(f)}catch(y){if(!m)throw y}if(m&&m.hasNext===!1)break}}m&&m.hasNext!==!1&&(yield{hasNext:!1})}(o):/text\//i.test(l)?s=async function*(u){var m=await u.text();try{var p=JSON.parse(m);yield p}catch{throw new Error(m)}}(o):s=async function*(u){yield JSON.parse(await u.text())}(o);var c;for await(var d of s)d.pending&&!i?c=d.pending:d.pending&&(c=[...c,...d.pending]),i=i?C2(i,d,o,c):jl(e,d,o),r=!1,yield i,r=!0;i||(yield i=jl(e,{},o))}catch(u){if(!r)throw u;yield zs(e,o&&(o.status<200||o.status>=300)&&o.statusText?new Error(o.statusText):u,o)}}function T2(e,t,n){var r;return typeof AbortController<"u"&&(n.signal=(r=new AbortController).signal),Ao(()=>{r&&r.abort()})(Ge(i=>!!i)(js(L2(e,t,n))))}var Xi=(e,t)=>{if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>Xi(i));if(e&&typeof e=="object"&&(t||"__typename"in e)){var n={};for(var r in e)r==="__typename"?Object.defineProperty(n,"__typename",{enumerable:!1,value:e.__typename}):n[r]=Xi(e[r]);return n}else return e};function Ul(e){var t=n=>e(n);return t.toPromise=()=>Fo(Wr(1)(Ge(n=>!n.stale&&!n.hasNext)(t))),t.then=(n,r)=>t.toPromise().then(n,r),t.subscribe=n=>xn(n)(t),t}function gr(e,t,n){return{...t,kind:e,context:t.context?{...t.context,...n}:n||t.context}}var _2=()=>{},Z2=({forward:e,dispatchDebug:t})=>n=>{var r=ur(o=>{var l=S2(o),s=x2(o,l),c=N2(o,l),d=Ps(Ge(u=>u.kind==="teardown"&&u.key===o.key)(n))(T2(o,s,c));return d})(Ge(o=>o.kind!=="teardown"&&(o.kind!=="subscription"||!!o.context.fetchSubscriptions))(n)),i=e(Ge(o=>o.kind==="teardown"||o.kind==="subscription"&&!o.context.fetchSubscriptions)(n));return ga([r,i])},I2=e=>({client:t,forward:n,dispatchDebug:r})=>e.reduceRight((i,o)=>o({client:t,forward(l){return va(i(va(l)))},dispatchDebug(l){}}),n),R2=({onOperation:e,onResult:t,onError:n})=>({forward:r})=>i=>ur(o=>{n&&o.error&&n(o.error,o.operation);var l=t&&t(o)||o;return"then"in l?Il(l):da(l)})(r(ur(o=>{var l=e&&e(o)||o;return"then"in l?Il(l):da(l)})(i))),B2=({dispatchDebug:e})=>t=>Ge(n=>!1)(t),P2=function e(t){var n=0,r=new Map,i=new Map,o=new Set,l=[],s={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},c=Yi();function d(h){(h.kind==="mutation"||h.kind==="teardown"||!o.has(h.key))&&(h.kind==="teardown"?o.delete(h.key):h.kind!=="mutation"&&o.add(h.key),c.next(h))}var u=!1;function m(h){if(h&&d(h),!u){for(u=!0;u&&(h=l.shift());)d(h);u=!1}}var p=h=>{var g=Ps(Ge(E=>E.kind==="teardown"&&E.key===h.key)(c.source))(Ge(E=>E.operation.kind===h.kind&&E.operation.key===h.key&&(!E.operation.context._instance||E.operation.context._instance===h.context._instance))(b));return t.maskTypename&&(g=Gi(E=>({...E,data:Xi(E.data,!0)}))(g)),h.kind!=="query"?g=Vs(E=>!!E.hasNext,!0)(g):g=Zl(E=>{var x=da(E);return E.stale||E.hasNext?x:ga([x,Gi(()=>(E.stale=!0,E))(Wr(1)(Ge(B=>B.key===h.key)(c.source)))])})(g),h.kind!=="mutation"?g=Ao(()=>{o.delete(h.key),r.delete(h.key),i.delete(h.key),u=!1;for(var E=l.length-1;E>=0;E--)l[E].key===h.key&&l.splice(E,1);d(gr("teardown",h,h.context))})(mr(E=>{if(E.stale){for(var x of l)if(x.key===E.operation.key){o.delete(x.key);break}}else E.hasNext||o.delete(h.key);r.set(h.key,E)})(g)):g=qi(()=>{d(h)})(g),va(g)},v=this instanceof e?this:Object.create(e.prototype),f=Object.assign(v,{suspense:!!t.suspense,operations$:c.source,reexecuteOperation(h){if(h.kind==="teardown")m(h);else if(h.kind==="mutation"||i.has(h.key)){for(var g=!1,E=0;E{var g=i.get(h.key);g||i.set(h.key,g=p(h)),g=qi(()=>{m(h)})(g);var E=r.get(h.key);return h.kind==="query"&&E&&(E.stale||E.hasNext)?Zl(da)(ga([g,Ge(x=>x===r.get(h.key))(da(E))])):g}))},executeQuery(h,g){var E=f.createRequestOperation("query",h,g);return f.executeRequestOperation(E)},executeSubscription(h,g){var E=f.createRequestOperation("subscription",h,g);return f.executeRequestOperation(E)},executeMutation(h,g){var E=f.createRequestOperation("mutation",h,g);return f.executeRequestOperation(E)},readQuery(h,g,E){var x=null;return xn(B=>{x=B})(f.query(h,g,E)).unsubscribe(),x},query:(h,g,E)=>f.executeQuery(wn(h,g),E),subscription:(h,g,E)=>f.executeSubscription(wn(h,g),E),mutation:(h,g,E)=>f.executeMutation(wn(h,g),E)}),y=_2,k=I2(t.exchanges),b=va(k({client:f,dispatchDebug:y,forward:B2({dispatchDebug:y})})(c.source));return v2(b),f},V2={},Gr=Qe(V2),j2=Gr.Provider;Gr.Consumer;Gr.displayName="UrqlContext";var To=()=>{var e=hn(Gr);return e},eo={fetching:!1,stale:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},H2=(e,t)=>e===t||!(!e||!t||e.key!==t.key),wi=(e,t)=>{var n={...e,...t,data:t.data!==void 0||t.error?t.data:e.data,fetching:!!t.fetching,stale:!!t.stale};return((r,i)=>{for(var o in r)if(!(o in i))return!0;for(var l in i)if(l==="operation"?!H2(r[l],i[l]):r[l]!==i[l])return!0;return!1})(e,n)?n:e},D2=(e,t)=>{for(var n=0,r=t.length;n(vr(i,{...eo,fetching:!0}),Fo(Wr(1)(Ge(c=>!c.hasNext)(mr(c=>{t.current&&vr(i,{fetching:!1,stale:c.stale,data:c.data,error:c.error,extensions:c.extensions,operation:c.operation})})(n.executeMutation(wn(e,l),s||{})))))),[n,e,i]);return le(()=>(t.current=!0,()=>{t.current=!1}),[]),[r,o]}function z2(e,t){var n=Ie(void 0);return Pt(()=>{var r=wn(e,t);return n.current!==void 0&&n.current.key===r.key?n.current:(n.current=r,r)},[e,t])}var U2=e=>{if(!e._react){var t=new Set,n=new Map;e.operations$&&xn(r=>{r.kind==="teardown"&&t.has(r.key)&&(t.delete(r.key),n.delete(r.key))})(e.operations$),e._react={get:r=>n.get(r),set(r,i){t.delete(r),n.set(r,i)},dispose(r){t.add(r)}}}return e._react},$2=(e,t)=>t&&t.suspense!==void 0?!!t.suspense:e.suspense;function _o(e){var t=To(),n=U2(t),r=$2(t,e.context),i=z2(e.query,e.variables),o=Pt(()=>{if(e.pause)return null;var p=t.executeQuery(i,{requestPolicy:e.requestPolicy,...e.context});return r?mr(v=>{n.set(i.key,v)})(p):p},[n,t,i,r,e.pause,e.requestPolicy,e.context]),l=Y((p,v)=>{if(!p)return{fetching:!1};var f=n.get(i.key);if(f){if(v&&f!=null&&"then"in f)throw f}else{var y,k=xn(h=>{f=h,y&&y(f)})(Vs(()=>v&&!y||!f)(p));if(f==null&&v){var b=new Promise(h=>{y=h});throw n.set(i.key,b),b}else k.unsubscribe()}return f||{fetching:!0}},[n,i]),s=[t,i,e.requestPolicy,e.context,e.pause],[c,d]=Te(()=>[o,wi(eo,l(o,r)),s]),u=c[1];o!==c[0]&&D2(c[2],s)&&d([o,u=wi(c[1],l(o,r)),s]),le(()=>{var p=c[0],v=c[2][1],f=!1,y=b=>{f=!0,vr(d,h=>{var g=wi(h[1],b);return h[1]!==g?[h[0],g,h[2]]:h})};if(p){var k=xn(y)(Ao(()=>{y({fetching:!1})})(p));return f||y({fetching:!0}),()=>{n.dispose(v.key),k.unsubscribe()}}else y({fetching:!1})},[n,c[0],c[2][1]]);var m=Y(p=>{var v={requestPolicy:e.requestPolicy,...e.context,...p};vr(d,f=>[r?mr(y=>{n.set(i.key,y)})(t.executeQuery(i,v)):t.executeQuery(i,v),f[1],s])},[t,n,i,r,e.requestPolicy,e.context,e.pause]);return[u,m]}function Cn(e,t){return t}var W2={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StatusTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}}]}}]}}]},G2={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"LastBuildOnBranchTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}}]}}]},q2={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"LastBuildOnBranchBuildFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Build"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"committedAt"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StartedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"testsForStatus"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"Variable",name:{kind:"Name",value:"testStatuses"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StatusTestFields"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LastBuildOnBranchTestFields"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CompletedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",alias:{kind:"Name",value:"testsForStatus"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"Variable",name:{kind:"Name",value:"testStatuses"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StatusTestFields"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LastBuildOnBranchTestFields"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"StatusTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LastBuildOnBranchTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}}]}}]},Y2={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StoryTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"webUrl"}},{kind:"Field",name:{kind:"Name",value:"comparisons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"browser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"version"}}]}},{kind:"Field",name:{kind:"Name",value:"captureDiff"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"diffImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"focusImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"headCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"}},{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"captureError"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorInteractionFailure"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorJSError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorFailedJS"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"baseCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"mode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"globals"}}]}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"component"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},Q2={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectedBuildFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Build"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"number"}},{kind:"Field",name:{kind:"Name",value:"branch"}},{kind:"Field",name:{kind:"Name",value:"commit"}},{kind:"Field",name:{kind:"Name",value:"committedAt"}},{kind:"Field",name:{kind:"Name",value:"uncommittedHash"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StartedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryTestFields"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CompletedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryTestFields"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"StoryTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"webUrl"}},{kind:"Field",name:{kind:"Name",value:"comparisons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"browser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"version"}}]}},{kind:"Field",name:{kind:"Name",value:"captureDiff"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"diffImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"focusImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"headCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"}},{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"captureError"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorInteractionFailure"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorJSError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorFailedJS"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"baseCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"mode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"globals"}}]}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"component"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},K2={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VisualTestsProjectCountQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCount"}},{kind:"Field",name:{kind:"Name",value:"accounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newProjectUrl"}}]}}]}}]}}]},J2={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SelectProjectsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarUrl"}},{kind:"Field",name:{kind:"Name",value:"newProjectUrl"}},{kind:"Field",name:{kind:"Name",value:"projects"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"webUrl"}},{kind:"Field",name:{kind:"Name",value:"lastBuild"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"branch"}},{kind:"Field",name:{kind:"Name",value:"number"}}]}}]}}]}}]}}]}}]},X2={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProjectQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"webUrl"}},{kind:"Field",name:{kind:"Name",value:"lastBuild"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"branch"}},{kind:"Field",name:{kind:"Name",value:"number"}}]}}]}}]}}]},em={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateUserPreferences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserPreferencesInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateUserPreferences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedPreferences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vtaOnboarding"}}]}}]}}]}}]},tm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AddonVisualTestsBuild"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"branch"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"gitUserEmailHash"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"repositoryOwnerName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storyId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"testStatuses"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TestStatus"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"selectedBuildId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hasSelectedBuildId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"manageUrl"}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billingUrl"}},{kind:"Field",name:{kind:"Name",value:"suspensionReason"}}]}},{kind:"Field",name:{kind:"Name",value:"features"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uiTests"}}]}},{kind:"Field",alias:{kind:"Name",value:"lastBuildOnBranch"},name:{kind:"Name",value:"lastBuild"},arguments:[{kind:"Argument",name:{kind:"Name",value:"branches"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"branch"}}]}},{kind:"Argument",name:{kind:"Name",value:"repositoryOwnerName"},value:{kind:"Variable",name:{kind:"Name",value:"repositoryOwnerName"}}},{kind:"Argument",name:{kind:"Name",value:"localBuilds"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"localBuildEmailHash"},value:{kind:"Variable",name:{kind:"Name",value:"gitUserEmailHash"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LastBuildOnBranchBuildFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectedBuildFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"skip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"hasSelectedBuildId"}}}]}]}]}},{kind:"Field",name:{kind:"Name",value:"lastBuild"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"branch"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"selectedBuild"},name:{kind:"Name",value:"build"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"selectedBuildId"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"hasSelectedBuildId"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SelectedBuildFields"}}]}},{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"preferences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vtaOnboarding"}}]}},{kind:"Field",name:{kind:"Name",value:"projectMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"userCanReview"},name:{kind:"Name",value:"meetsAccessLevel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"minimumAccessLevel"},value:{kind:"EnumValue",value:"REVIEWER"}}]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"StatusTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LastBuildOnBranchTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"StoryTestFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Test"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"webUrl"}},{kind:"Field",name:{kind:"Name",value:"comparisons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",name:{kind:"Name",value:"browser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"version"}}]}},{kind:"Field",name:{kind:"Name",value:"captureDiff"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"diffImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"focusImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"headCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"}},{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"captureError"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"kind"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorInteractionFailure"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorJSError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CaptureErrorFailedJS"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"baseCapture"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"captureImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"signed"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"imageWidth"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"mode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"globals"}}]}},{kind:"Field",name:{kind:"Name",value:"story"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storyId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"component"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LastBuildOnBranchBuildFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Build"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"committedAt"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StartedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"testsForStatus"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"Variable",name:{kind:"Name",value:"testStatuses"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StatusTestFields"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LastBuildOnBranchTestFields"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CompletedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"result"}},{kind:"Field",alias:{kind:"Name",value:"testsForStatus"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"Variable",name:{kind:"Name",value:"testStatuses"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StatusTestFields"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LastBuildOnBranchTestFields"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectedBuildFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Build"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"number"}},{kind:"Field",name:{kind:"Name",value:"branch"}},{kind:"Field",name:{kind:"Name",value:"commit"}},{kind:"Field",name:{kind:"Name",value:"committedAt"}},{kind:"Field",name:{kind:"Name",value:"uncommittedHash"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StartedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryTestFields"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CompletedBuild"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",alias:{kind:"Name",value:"testsForStory"},name:{kind:"Name",value:"tests"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryTestFields"}}]}}]}}]}}]}}]},nm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReviewTest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ReviewTestInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reviewTest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedTests"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UserError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BuildSupersededError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"build"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TestUnreviewableError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"test"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}}]},am={"\n query VisualTestsProjectCountQuery {\n viewer {\n projectCount\n accounts {\n newProjectUrl\n }\n }\n }\n":K2,"\n query SelectProjectsQuery {\n viewer {\n accounts {\n id\n name\n avatarUrl\n newProjectUrl\n projects {\n id\n name\n webUrl\n lastBuild {\n branch\n number\n }\n }\n }\n }\n }\n":J2,"\n query ProjectQuery($projectId: ID!) {\n project(id: $projectId) {\n id\n name\n webUrl\n lastBuild {\n branch\n number\n }\n }\n }\n":X2,"\n mutation UpdateUserPreferences($input: UserPreferencesInput!) {\n updateUserPreferences(input: $input) {\n updatedPreferences {\n vtaOnboarding\n }\n }\n }\n":em,"\n query AddonVisualTestsBuild(\n $projectId: ID!\n $branch: String!\n $gitUserEmailHash: String!\n $repositoryOwnerName: String\n $storyId: String!\n $testStatuses: [TestStatus!]!\n $selectedBuildId: ID!\n $hasSelectedBuildId: Boolean!\n ) {\n project(id: $projectId) {\n name\n manageUrl\n account {\n billingUrl\n suspensionReason\n }\n features {\n uiTests\n }\n lastBuildOnBranch: lastBuild(\n branches: [$branch]\n repositoryOwnerName: $repositoryOwnerName\n localBuilds: { localBuildEmailHash: $gitUserEmailHash }\n ) {\n ...LastBuildOnBranchBuildFields\n ...SelectedBuildFields @skip(if: $hasSelectedBuildId)\n }\n lastBuild {\n id\n slug\n branch\n }\n }\n selectedBuild: build(id: $selectedBuildId) @include(if: $hasSelectedBuildId) {\n ...SelectedBuildFields\n }\n viewer {\n preferences {\n vtaOnboarding\n }\n projectMembership(projectId: $projectId) {\n userCanReview: meetsAccessLevel(minimumAccessLevel: REVIEWER)\n }\n }\n }\n":tm,"\n fragment LastBuildOnBranchBuildFields on Build {\n __typename\n id\n status\n committedAt\n ... on StartedBuild {\n testsForStatus: tests(first: 1000, statuses: $testStatuses) {\n nodes {\n ...StatusTestFields\n }\n }\n testsForStory: tests(storyId: $storyId) {\n nodes {\n ...LastBuildOnBranchTestFields\n }\n }\n }\n ... on CompletedBuild {\n result\n testsForStatus: tests(first: 1000, statuses: $testStatuses) {\n nodes {\n ...StatusTestFields\n }\n }\n testsForStory: tests(storyId: $storyId) {\n nodes {\n ...LastBuildOnBranchTestFields\n }\n }\n }\n }\n":q2,"\n fragment SelectedBuildFields on Build {\n __typename\n id\n number\n branch\n commit\n committedAt\n uncommittedHash\n status\n ... on StartedBuild {\n startedAt\n testsForStory: tests(storyId: $storyId) {\n nodes {\n ...StoryTestFields\n }\n }\n }\n ... on CompletedBuild {\n startedAt\n testsForStory: tests(storyId: $storyId) {\n nodes {\n ...StoryTestFields\n }\n }\n }\n }\n":Q2,"\n fragment StatusTestFields on Test {\n id\n status\n result\n story {\n storyId\n }\n }\n":W2,"\n fragment LastBuildOnBranchTestFields on Test {\n status\n result\n }\n":G2,"\n fragment StoryTestFields on Test {\n id\n status\n result\n webUrl\n comparisons {\n id\n result\n browser {\n id\n key\n name\n version\n }\n captureDiff {\n diffImage(signed: true) {\n imageUrl\n imageWidth\n }\n focusImage(signed: true) {\n imageUrl\n imageWidth\n }\n }\n headCapture {\n captureImage(signed: true) {\n backgroundColor\n imageUrl\n imageWidth\n thumbnailUrl\n }\n captureError {\n kind\n ... on CaptureErrorInteractionFailure {\n error\n }\n ... on CaptureErrorJSError {\n error\n }\n ... on CaptureErrorFailedJS {\n error\n }\n }\n }\n baseCapture {\n captureImage(signed: true) {\n imageUrl\n imageWidth\n }\n }\n }\n mode {\n name\n globals\n }\n story {\n storyId\n name\n component {\n name\n }\n }\n }\n":Y2,"\n mutation ReviewTest($input: ReviewTestInput!) {\n reviewTest(input: $input) {\n updatedTests {\n id\n status\n }\n userErrors {\n ... on UserError {\n __typename\n message\n }\n ... on BuildSupersededError {\n build {\n id\n }\n }\n ... on TestUnreviewableError {\n test {\n id\n }\n }\n }\n }\n }\n":nm};function ht(e){return am[e]??{}}var Ci=(e,t)=>gr(e.kind,e,{...e.context,authAttempt:t});function rm(e){return({client:t,forward:n})=>{var r=new Set,i=Yi(),o=Yi(),l=new Map;function s(){d=void 0;var m=l;l=new Map,m.forEach(i.next)}function c(m){d=void 0;var p=l;l=new Map,p.forEach(v=>{o.next(zs(v,m))})}var d,u=null;return m=>{function p(){d=Promise.resolve().then(()=>e({mutate(b,h,g){var E=t.createRequestOperation("mutation",wn(b,h),g);return Fo(Wr(1)(Ge(x=>x.operation.key===E.key&&E.context._instance===x.operation.context._instance)(qi(()=>{var x=f(E);r.add(x.context._instance),i.next(x)})(k))))},appendHeaders(b,h){var g=typeof b.context.fetchOptions=="function"?b.context.fetchOptions():b.context.fetchOptions||{};return gr(b.kind,b,{...b.context,fetchOptions:{...g,headers:{...g.headers,...h}}})}})).then(b=>{b&&(u=b),s()}).catch(b=>{c(b)})}p();function v(b){l.set(b.key,Ci(b,!0)),u&&!d&&(d=u.refreshAuth().then(s).catch(c))}function f(b){return u?u.addAuthToOperation(b):b}var y=Ge(Boolean)(Gi(b=>b.kind==="teardown"?(l.delete(b.key),b):b.context._instance&&r.has(b.context._instance)?b:b.context.authAttempt?f(b):d||!u?(d||p(),l.has(b.key)||l.set(b.key,Ci(b,!1)),null):function(h){return!h.context.authAttempt&&u&&u.willAuthError&&u.willAuthError(h)}(b)?(v(b),null):f(Ci(b,!1)))(ga([i.source,m]))),k=n(y);return ga([o.source,Ge(b=>!r.has(b.operation.context._instance)&&b.error&&function(h){return u&&u.didAuthError&&u.didAuthError(h.error,h.operation)}(b)&&!b.operation.context.authAttempt?(v(b.operation),!1):(r.has(b.operation.context._instance)&&r.delete(b.operation.context._instance),!0))(k)])}}}var Qa,im=new Uint8Array(16);function om(){if(!Qa&&(Qa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qa(im)}var _e=[];for(let e=0;e<256;++e)_e.push((e+256).toString(16).slice(1));function lm(e,t=0){return _e[e[t+0]]+_e[e[t+1]]+_e[e[t+2]]+_e[e[t+3]]+"-"+_e[e[t+4]]+_e[e[t+5]]+"-"+_e[e[t+6]]+_e[e[t+7]]+"-"+_e[e[t+8]]+_e[e[t+9]]+"-"+_e[e[t+10]]+_e[e[t+11]]+_e[e[t+12]]+_e[e[t+13]]+_e[e[t+14]]+_e[e[t+15]]}var sm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$l={randomUUID:sm};function cm(e,t,n){if($l.randomUUID&&!t&&!e)return $l.randomUUID();e=e||{};let r=e.random||(e.rng||om)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lm(r)}var dm=cm,bt,ua,yr=e=>{try{let{exp:t}=e?JSON.parse(atob(e.split(".")[1])):{exp:null};bt=e,ua=t}catch{bt=null,ua=null}bt?localStorage.setItem(Pi,bt):localStorage.removeItem(Pi)};yr(localStorage.getItem(Pi));var $s=()=>{let[{token:e},t]=Xo(`${U}/accessToken`,{token:bt}),n=a.useCallback(r=>{yr(r),t({token:bt})},[t]);return[e,n]},um=dm(),Ws=e=>({headers:{Accept:"*/*",...e&&{Authorization:`Bearer ${e}`},"X-Chromatic-Session-ID":um}}),mm=new P2({url:hd,exchanges:[R2({onResult(e){e.data?.viewer===null&&yr(null)}}),rm(async e=>({addAuthToOperation(t){return bt?e.appendHeaders(t,{Authorization:`Bearer ${bt}`}):t},didAuthError:t=>t.response.status===401||t.graphQLErrors.some(n=>n.message.includes("Must login")),async refreshAuth(){yr(null)},willAuthError(){if(!bt)return!0;try{if(!ua){let{exp:t}=JSON.parse(atob(bt.split(".")[1]));ua=t}return Date.now()/1e3>(ua||0)}catch{return!0}}})),Z2],fetchOptions:Ws()}),ce;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{let o={};for(let l of i)o[l]=l;return o},e.getValidEnumValues=i=>{let o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),l={};for(let s of o)l[s]=i[s];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let o=[];for(let l in i)Object.prototype.hasOwnProperty.call(i,l)&&o.push(l);return o},e.find=(i,o)=>{for(let l of i)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(ce||(ce={}));var to;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(to||(to={}));var L=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vt=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},F=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),pm=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),dt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)n._errors.push(t(o));else{let l=n,s=0;for(;st.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};dt.create=e=>new dt(e);var ya=(e,t)=>{let n;switch(e.code){case F.invalid_type:e.received===L.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ce.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:n=`Unrecognized key(s) in object: ${ce.joinValues(e.keys,", ")}`;break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ce.joinValues(e.options)}`;break;case F.invalid_enum_value:n=`Invalid enum value. Expected ${ce.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case F.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case F.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:n="Number must be finite";break;default:n=t.defaultError,ce.assertNever(e)}return{message:n}},Gs=ya;function hm(e){Gs=e}function br(){return Gs}var Er=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],l={...i,path:o},s="",c=r.filter(d=>!!d).slice().reverse();for(let d of c)s=d(l,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}},fm=[];function Z(e,t){let n=Er({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,br(),ya].filter(r=>!!r)});e.common.issues.push(n)}var ze=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if(r.status==="aborted")return G;r.status==="dirty"&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let r of t)n.push({key:await r.key,value:await r.value});return ze.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return G;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}},G=Object.freeze({status:"aborted"}),qs=e=>({status:"dirty",value:e}),Ue=e=>({status:"valid",value:e}),no=e=>e.status==="aborted",ao=e=>e.status==="dirty",ba=e=>e.status==="valid",kr=e=>typeof Promise<"u"&&e instanceof Promise,j;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(j||(j={}));var Mt=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Wl=(e,t)=>{if(ba(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new dt(e.common.issues);return this._error=n,this._error}}};function Q(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>o.code!=="invalid_type"?{message:l.defaultError}:typeof l.data>"u"?{message:r??l.defaultError}:{message:n??l.defaultError},description:i}}var X=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Vt(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Vt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ze,ctx:{common:e.parent.common,data:e.data,parsedType:Vt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(kr(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vt(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Wl(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vt(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(kr(r)?r:Promise.resolve(r));return Wl(n,i)}refine(e,t){let n=r=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(r):t;return this._refinement((r,i)=>{let o=e(r),l=()=>i.addIssue({code:F.custom,...n(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(s=>s?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t=="function"?t(n,r):t),!1))}_refinement(e){return new ut({schema:this,typeName:$.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ot.create(this,this._def)}nullable(){return on.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ct.create(this,this._def)}promise(){return On.create(this,this._def)}or(e){return Ca.create([this,e],this._def)}and(e){return Sa.create(this,e,this._def)}transform(e){return new ut({...Q(this._def),schema:this,typeName:$.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new Aa({...Q(this._def),innerType:this,defaultValue:t,typeName:$.ZodDefault})}brand(){return new Qs({typeName:$.ZodBranded,type:this,...Q(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Mr({...Q(this._def),innerType:this,catchValue:t,typeName:$.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return qr.create(this,e)}readonly(){return Ar.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},gm=/^c[^\s-]{8,}$/i,vm=/^[a-z][a-z0-9]*$/,ym=/^[0-9A-HJKMNP-TV-Z]{26}$/,bm=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Em=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,km="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Si,wm=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Cm=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Sm=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function xm(e,t){return!!((t==="v4"||!t)&&wm.test(e)||(t==="v6"||!t)&&Cm.test(e))}var Et=class extends X{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==L.string){let r=this._getOrReturnCtx(e);return Z(r,{code:F.invalid_type,expected:L.string,received:r.parsedType}),G}let t=new ze,n;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),Z(n,{code:F.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind==="length"){let i=e.data.length>r.value,o=e.data.lengthe.test(r),{validation:t,code:F.invalid_string,...j.errToObj(n)})}_addCheck(e){return new Et({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...j.errToObj(e)})}url(e){return this._addCheck({kind:"url",...j.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...j.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...j.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...j.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...j.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...j.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...j.errToObj(e)})}datetime(e){var t;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...j.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...j.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...j.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...j.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...j.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...j.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...j.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...j.errToObj(t)})}nonempty(e){return this.min(1,j.errToObj(e))}trim(){return new Et({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Et({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Et({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var t;return new Et({checks:[],typeName:$.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};function Mm(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),l=parseInt(t.toFixed(i).replace(".",""));return o%l/Math.pow(10,i)}var nn=class extends X{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==L.number){let r=this._getOrReturnCtx(e);return Z(r,{code:F.invalid_type,expected:L.number,received:r.parsedType}),G}let t,n=new ze;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Z(t,{code:F.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Z(t,{code:F.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind==="multipleOf"?Mm(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),Z(t,{code:F.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Z(t,{code:F.not_finite,message:r.message}),n.dirty()):ce.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new nn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new nn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:j.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:j.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew nn({checks:[],typeName:$.ZodNumber,coerce:e?.coerce||!1,...Q(e)});var an=class extends X{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==L.bigint){let r=this._getOrReturnCtx(e);return Z(r,{code:F.invalid_type,expected:L.bigint,received:r.parsedType}),G}let t,n=new ze;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Z(t,{code:F.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Z(t,{code:F.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):ce.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,j.toString(t))}gt(e,t){return this.setLimit("min",e,!1,j.toString(t))}lte(e,t){return this.setLimit("max",e,!0,j.toString(t))}lt(e,t){return this.setLimit("max",e,!1,j.toString(t))}setLimit(e,t,n,r){return new an({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:j.toString(r)}]})}_addCheck(e){return new an({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:j.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var t;return new an({checks:[],typeName:$.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};var Ea=class extends X{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==L.boolean){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.boolean,received:t.parsedType}),G}return Ue(e.data)}};Ea.create=e=>new Ea({typeName:$.ZodBoolean,coerce:e?.coerce||!1,...Q(e)});var Nn=class extends X{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==L.date){let r=this._getOrReturnCtx(e);return Z(r,{code:F.invalid_type,expected:L.date,received:r.parsedType}),G}if(isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return Z(r,{code:F.invalid_date}),G}let t=new ze,n;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),Z(n,{code:F.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):ce.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Nn({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:j.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:j.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew Nn({checks:[],coerce:e?.coerce||!1,typeName:$.ZodDate,...Q(e)});var wr=class extends X{_parse(e){if(this._getType(e)!==L.symbol){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.symbol,received:t.parsedType}),G}return Ue(e.data)}};wr.create=e=>new wr({typeName:$.ZodSymbol,...Q(e)});var ka=class extends X{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.undefined,received:t.parsedType}),G}return Ue(e.data)}};ka.create=e=>new ka({typeName:$.ZodUndefined,...Q(e)});var wa=class extends X{_parse(e){if(this._getType(e)!==L.null){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.null,received:t.parsedType}),G}return Ue(e.data)}};wa.create=e=>new wa({typeName:$.ZodNull,...Q(e)});var An=class extends X{constructor(){super(...arguments),this._any=!0}_parse(e){return Ue(e.data)}};An.create=e=>new An({typeName:$.ZodAny,...Q(e)});var en=class extends X{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ue(e.data)}};en.create=e=>new en({typeName:$.ZodUnknown,...Q(e)});var Lt=class extends X{_parse(e){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.never,received:t.parsedType}),G}};Lt.create=e=>new Lt({typeName:$.ZodNever,...Q(e)});var Cr=class extends X{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.void,received:t.parsedType}),G}return Ue(e.data)}};Cr.create=e=>new Cr({typeName:$.ZodVoid,...Q(e)});var Ct=class extends X{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==L.array)return Z(t,{code:F.invalid_type,expected:L.array,received:t.parsedType}),G;if(r.exactLength!==null){let o=t.data.length>r.exactLength.value,l=t.data.lengthr.maxLength.value&&(Z(t,{code:F.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((o,l)=>r.type._parseAsync(new Mt(t,o,t.path,l)))).then(o=>ze.mergeArray(n,o));let i=[...t.data].map((o,l)=>r.type._parseSync(new Mt(t,o,t.path,l)));return ze.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Ct({...this._def,minLength:{value:e,message:j.toString(t)}})}max(e,t){return new Ct({...this._def,maxLength:{value:e,message:j.toString(t)}})}length(e,t){return new Ct({...this._def,exactLength:{value:e,message:j.toString(t)}})}nonempty(e){return this.min(1,e)}};Ct.create=(e,t)=>new Ct({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$.ZodArray,...Q(t)});function bn(e){if(e instanceof xe){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Ot.create(bn(r))}return new xe({...e._def,shape:()=>t})}else return e instanceof Ct?new Ct({...e._def,type:bn(e.element)}):e instanceof Ot?Ot.create(bn(e.unwrap())):e instanceof on?on.create(bn(e.unwrap())):e instanceof Tt?Tt.create(e.items.map(t=>bn(t))):e}var xe=class extends X{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=ce.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==L.object){let s=this._getOrReturnCtx(e);return Z(s,{code:F.invalid_type,expected:L.object,received:s.parsedType}),G}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Lt&&this._def.unknownKeys==="strip"))for(let s in n.data)i.includes(s)||o.push(s);let l=[];for(let s of i){let c=r[s],d=n.data[s];l.push({key:{status:"valid",value:s},value:c._parse(new Mt(n,d,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof Lt){let s=this._def.unknownKeys;if(s==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(s==="strict")o.length>0&&(Z(n,{code:F.unrecognized_keys,keys:o}),t.dirty());else if(s!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let s=this._def.catchall;for(let c of o){let d=n.data[c];l.push({key:{status:"valid",value:c},value:s._parse(new Mt(n,d,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let s=[];for(let c of l){let d=await c.key;s.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return s}).then(s=>ze.mergeObjectSync(t,s)):ze.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return j.errToObj,new xe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var r,i,o,l;let s=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,t,n).message)!==null&&o!==void 0?o:n.defaultError;return t.code==="unrecognized_keys"?{message:(l=j.errToObj(e).message)!==null&&l!==void 0?l:s}:{message:s}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(e){return new xe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xe({...this._def,catchall:e})}pick(e){let t={};return ce.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new xe({...this._def,shape:()=>t})}omit(e){let t={};return ce.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new xe({...this._def,shape:()=>t})}deepPartial(){return bn(this)}partial(e){let t={};return ce.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new xe({...this._def,shape:()=>t})}required(e){let t={};return ce.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof Ot;)r=r._def.innerType;t[n]=r}}),new xe({...this._def,shape:()=>t})}keyof(){return Ys(ce.objectKeys(this.shape))}};xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:Lt.create(),typeName:$.ZodObject,...Q(t)});xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:Lt.create(),typeName:$.ZodObject,...Q(t)});xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:Lt.create(),typeName:$.ZodObject,...Q(t)});var Ca=class extends X{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(i){for(let l of i)if(l.result.status==="valid")return l.result;for(let l of i)if(l.result.status==="dirty")return t.common.issues.push(...l.ctx.common.issues),l.result;let o=i.map(l=>new dt(l.ctx.common.issues));return Z(t,{code:F.invalid_union,unionErrors:o}),G}if(t.common.async)return Promise.all(n.map(async i=>{let o={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(r);{let i,o=[];for(let s of n){let c={...t,common:{...t.common,issues:[]},parent:null},d=s._parseSync({data:t.data,path:t.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let l=o.map(s=>new dt(s));return Z(t,{code:F.invalid_union,unionErrors:l}),G}}get options(){return this._def.options}};Ca.create=(e,t)=>new Ca({options:e,typeName:$.ZodUnion,...Q(t)});var or=e=>e instanceof xa?or(e.schema):e instanceof ut?or(e.innerType()):e instanceof Ma?[e.value]:e instanceof rn?e.options:e instanceof Na?Object.keys(e.enum):e instanceof Aa?or(e._def.innerType):e instanceof ka?[void 0]:e instanceof wa?[null]:null,Zo=class extends X{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.object)return Z(t,{code:F.invalid_type,expected:L.object,received:t.parsedType}),G;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(Z(t,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),G)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let i of t){let o=or(i.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let l of o){if(r.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);r.set(l,i)}}return new Zo({typeName:$.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Q(n)})}};function ro(e,t){let n=Vt(e),r=Vt(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){let i=ce.objectKeys(t),o=ce.objectKeys(e).filter(s=>i.indexOf(s)!==-1),l={...e,...t};for(let s of o){let c=ro(e[s],t[s]);if(!c.valid)return{valid:!1};l[s]=c.data}return{valid:!0,data:l}}else if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let o=0;o{if(no(i)||no(o))return G;let l=ro(i.value,o.value);return l.valid?((ao(i)||ao(o))&&t.dirty(),{status:t.value,value:l.data}):(Z(n,{code:F.invalid_intersection_types}),G)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Sa.create=(e,t,n)=>new Sa({left:e,right:t,typeName:$.ZodIntersection,...Q(n)});var Tt=class extends X{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.array)return Z(n,{code:F.invalid_type,expected:L.array,received:n.parsedType}),G;if(n.data.lengththis._def.items.length&&(Z(n,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((i,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new Mt(n,i,n.path,o)):null}).filter(i=>!!i);return n.common.async?Promise.all(r).then(i=>ze.mergeArray(t,i)):ze.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Tt({...this._def,rest:e})}};Tt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Tt({items:e,typeName:$.ZodTuple,rest:null,...Q(t)})};var Sr=class extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.object)return Z(n,{code:F.invalid_type,expected:L.object,received:n.parsedType}),G;let r=[],i=this._def.keyType,o=this._def.valueType;for(let l in n.data)r.push({key:i._parse(new Mt(n,l,n.path,l)),value:o._parse(new Mt(n,n.data[l],n.path,l))});return n.common.async?ze.mergeObjectAsync(t,r):ze.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof X?new Sr({keyType:e,valueType:t,typeName:$.ZodRecord,...Q(n)}):new Sr({keyType:Et.create(),valueType:e,typeName:$.ZodRecord,...Q(t)})}},xr=class extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.map)return Z(n,{code:F.invalid_type,expected:L.map,received:n.parsedType}),G;let r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([l,s],c)=>({key:r._parse(new Mt(n,l,n.path,[c,"key"])),value:i._parse(new Mt(n,s,n.path,[c,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let s of o){let c=await s.key,d=await s.value;if(c.status==="aborted"||d.status==="aborted")return G;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),l.set(c.value,d.value)}return{status:t.value,value:l}})}else{let l=new Map;for(let s of o){let c=s.key,d=s.value;if(c.status==="aborted"||d.status==="aborted")return G;(c.status==="dirty"||d.status==="dirty")&&t.dirty(),l.set(c.value,d.value)}return{status:t.value,value:l}}}};xr.create=(e,t,n)=>new xr({valueType:t,keyType:e,typeName:$.ZodMap,...Q(n)});var Fn=class extends X{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.set)return Z(n,{code:F.invalid_type,expected:L.set,received:n.parsedType}),G;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(Z(n,{code:F.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function o(s){let c=new Set;for(let d of s){if(d.status==="aborted")return G;d.status==="dirty"&&t.dirty(),c.add(d.value)}return{status:t.value,value:c}}let l=[...n.data.values()].map((s,c)=>i._parse(new Mt(n,s,n.path,c)));return n.common.async?Promise.all(l).then(s=>o(s)):o(l)}min(e,t){return new Fn({...this._def,minSize:{value:e,message:j.toString(t)}})}max(e,t){return new Fn({...this._def,maxSize:{value:e,message:j.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Fn.create=(e,t)=>new Fn({valueType:e,minSize:null,maxSize:null,typeName:$.ZodSet,...Q(t)});var ma=class extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.function)return Z(t,{code:F.invalid_type,expected:L.function,received:t.parsedType}),G;function n(l,s){return Er({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,br(),ya].filter(c=>!!c),issueData:{code:F.invalid_arguments,argumentsError:s}})}function r(l,s){return Er({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,br(),ya].filter(c=>!!c),issueData:{code:F.invalid_return_type,returnTypeError:s}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof On){let l=this;return Ue(async function(...s){let c=new dt([]),d=await l._def.args.parseAsync(s,i).catch(m=>{throw c.addIssue(n(s,m)),c}),u=await Reflect.apply(o,this,d);return await l._def.returns._def.type.parseAsync(u,i).catch(m=>{throw c.addIssue(r(u,m)),c})})}else{let l=this;return Ue(function(...s){let c=l._def.args.safeParse(s,i);if(!c.success)throw new dt([n(s,c.error)]);let d=Reflect.apply(o,this,c.data),u=l._def.returns.safeParse(d,i);if(!u.success)throw new dt([r(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ma({...this._def,args:Tt.create(e).rest(en.create())})}returns(e){return new ma({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ma({args:e||Tt.create([]).rest(en.create()),returns:t||en.create(),typeName:$.ZodFunction,...Q(n)})}},xa=class extends X{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};xa.create=(e,t)=>new xa({getter:e,typeName:$.ZodLazy,...Q(t)});var Ma=class extends X{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return Z(t,{received:t.data,code:F.invalid_literal,expected:this._def.value}),G}return{status:"valid",value:e.data}}get value(){return this._def.value}};Ma.create=(e,t)=>new Ma({value:e,typeName:$.ZodLiteral,...Q(t)});function Ys(e,t){return new rn({values:e,typeName:$.ZodEnum,...Q(t)})}var rn=class extends X{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return Z(t,{expected:ce.joinValues(n),received:t.parsedType,code:F.invalid_type}),G}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return Z(t,{received:t.data,code:F.invalid_enum_value,options:n}),G}return Ue(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return rn.create(e)}exclude(e){return rn.create(this.options.filter(t=>!e.includes(t)))}};rn.create=Ys;var Na=class extends X{_parse(e){let t=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==L.string&&n.parsedType!==L.number){let r=ce.objectValues(t);return Z(n,{expected:ce.joinValues(r),received:n.parsedType,code:F.invalid_type}),G}if(t.indexOf(e.data)===-1){let r=ce.objectValues(t);return Z(n,{received:n.data,code:F.invalid_enum_value,options:r}),G}return Ue(e.data)}get enum(){return this._def.values}};Na.create=(e,t)=>new Na({values:e,typeName:$.ZodNativeEnum,...Q(t)});var On=class extends X{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.promise&&t.common.async===!1)return Z(t,{code:F.invalid_type,expected:L.promise,received:t.parsedType}),G;let n=t.parsedType===L.promise?t.data:Promise.resolve(t.data);return Ue(n.then(r=>this._def.type.parseAsync(r,{path:t.path,errorMap:t.common.contextualErrorMap})))}};On.create=(e,t)=>new On({type:e,typeName:$.ZodPromise,...Q(t)});var ut=class extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:o=>{Z(n,o),o.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){let o=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(l=>this._def.schema._parseAsync({data:l,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(r.type==="refinement"){let o=l=>{let s=r.refinement(l,i);if(n.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?G:(l.status==="dirty"&&t.dirty(),o(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?G:(l.status==="dirty"&&t.dirty(),o(l.value).then(()=>({status:t.value,value:l.value}))))}if(r.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ba(o))return o;let l=r.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ba(o)?Promise.resolve(r.transform(o.value,i)).then(l=>({status:t.value,value:l})):o);ce.assertNever(r)}};ut.create=(e,t,n)=>new ut({schema:e,typeName:$.ZodEffects,effect:t,...Q(n)});ut.createWithPreprocess=(e,t,n)=>new ut({schema:t,effect:{type:"preprocess",transform:e},typeName:$.ZodEffects,...Q(n)});var Ot=class extends X{_parse(e){return this._getType(e)===L.undefined?Ue(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Ot.create=(e,t)=>new Ot({innerType:e,typeName:$.ZodOptional,...Q(t)});var on=class extends X{_parse(e){return this._getType(e)===L.null?Ue(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};on.create=(e,t)=>new on({innerType:e,typeName:$.ZodNullable,...Q(t)});var Aa=class extends X{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===L.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Aa.create=(e,t)=>new Aa({innerType:e,typeName:$.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Q(t)});var Mr=class extends X{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return kr(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new dt(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new dt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Mr.create=(e,t)=>new Mr({innerType:e,typeName:$.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Q(t)});var Nr=class extends X{_parse(e){if(this._getType(e)!==L.nan){let t=this._getOrReturnCtx(e);return Z(t,{code:F.invalid_type,expected:L.nan,received:t.parsedType}),G}return{status:"valid",value:e.data}}};Nr.create=e=>new Nr({typeName:$.ZodNaN,...Q(e)});var Nm=Symbol("zod_brand"),Qs=class extends X{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},qr=class extends X{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?G:r.status==="dirty"?(t.dirty(),qs(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?G:r.status==="dirty"?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(e,t){return new qr({in:e,out:t,typeName:$.ZodPipeline})}},Ar=class extends X{_parse(e){let t=this._def.innerType._parse(e);return ba(t)&&(t.value=Object.freeze(t.value)),t}};Ar.create=(e,t)=>new Ar({innerType:e,typeName:$.ZodReadonly,...Q(t)});var Ks=(e,t={},n)=>e?An.create().superRefine((r,i)=>{var o,l;if(!e(r)){let s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(l=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0,d=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...d,fatal:c})}}):An.create(),Am={object:xe.lazycreate},$;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($||($={}));var Fm=(e,t={message:`Input not instance of ${e.name}`})=>Ks(n=>n instanceof e,t),Js=Et.create,Xs=nn.create,Om=Nr.create,Lm=an.create,e0=Ea.create,Tm=Nn.create,_m=wr.create,Zm=ka.create,Im=wa.create,Rm=An.create,Bm=en.create,Pm=Lt.create,Vm=Cr.create,jm=Ct.create,Hm=xe.create,Dm=xe.strictCreate,zm=Ca.create,Um=Zo.create,$m=Sa.create,Wm=Tt.create,Gm=Sr.create,qm=xr.create,Ym=Fn.create,Qm=ma.create,Km=xa.create,Jm=Ma.create,Xm=rn.create,e4=Na.create,t4=On.create,Gl=ut.create,n4=Ot.create,a4=on.create,r4=ut.createWithPreprocess,i4=qr.create,o4=()=>Js().optional(),l4=()=>Xs().optional(),s4=()=>e0().optional(),c4={string:e=>Et.create({...e,coerce:!0}),number:e=>nn.create({...e,coerce:!0}),boolean:e=>Ea.create({...e,coerce:!0}),bigint:e=>an.create({...e,coerce:!0}),date:e=>Nn.create({...e,coerce:!0})},d4=G,At=Object.freeze({__proto__:null,defaultErrorMap:ya,setErrorMap:hm,getErrorMap:br,makeIssue:Er,EMPTY_PATH:fm,addIssueToContext:Z,ParseStatus:ze,INVALID:G,DIRTY:qs,OK:Ue,isAborted:no,isDirty:ao,isValid:ba,isAsync:kr,get util(){return ce},get objectUtil(){return to},ZodParsedType:L,getParsedType:Vt,ZodType:X,ZodString:Et,ZodNumber:nn,ZodBigInt:an,ZodBoolean:Ea,ZodDate:Nn,ZodSymbol:wr,ZodUndefined:ka,ZodNull:wa,ZodAny:An,ZodUnknown:en,ZodNever:Lt,ZodVoid:Cr,ZodArray:Ct,ZodObject:xe,ZodUnion:Ca,ZodDiscriminatedUnion:Zo,ZodIntersection:Sa,ZodTuple:Tt,ZodRecord:Sr,ZodMap:xr,ZodSet:Fn,ZodFunction:ma,ZodLazy:xa,ZodLiteral:Ma,ZodEnum:rn,ZodNativeEnum:Na,ZodPromise:On,ZodEffects:ut,ZodTransformer:ut,ZodOptional:Ot,ZodNullable:on,ZodDefault:Aa,ZodCatch:Mr,ZodNaN:Nr,BRAND:Nm,ZodBranded:Qs,ZodPipeline:qr,ZodReadonly:Ar,custom:Ks,Schema:X,ZodSchema:X,late:Am,get ZodFirstPartyTypeKind(){return $},coerce:c4,any:Rm,array:jm,bigint:Lm,boolean:e0,date:Tm,discriminatedUnion:Um,effect:Gl,enum:Xm,function:Qm,instanceof:Fm,intersection:$m,lazy:Km,literal:Jm,map:qm,nan:Om,nativeEnum:e4,never:Pm,null:Im,nullable:a4,number:Xs,object:Hm,oboolean:s4,onumber:l4,optional:n4,ostring:o4,pipeline:i4,preprocess:r4,promise:t4,record:Gm,set:Ym,strictObject:Dm,string:Js,symbol:_m,transformer:Gl,tuple:Wm,undefined:Zm,union:zm,unknown:Bm,void:Vm,NEVER:d4,ZodIssueCode:F,quotelessJson:pm,ZodError:dt}),u4=At.union([At.object({message:At.literal("login")}),At.object({message:At.literal("grant"),denied:At.boolean()}),At.object({message:At.literal("createdProject"),projectId:At.string()})]),t0=e=>{let t=Ie(),n=Ie();return le(()=>{let r=({origin:i,data:o})=>{if(i===n.current){let l;try{l=u4.parse(o)}catch{return}e?.(l)}};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[e]),[Y(r=>{if(window.innerWidth>800&&window.innerHeight>800){let o=(window.innerWidth-800)/2+window.screenLeft,l=`scrollbars=yes,width=800,height=800,top=${(window.innerHeight-800)/2+window.screenTop},left=${o}`;t.current=window.open(r,"chromatic-dialog",l),t.current?.focus()}else t.current=window.open(r,"_blank");let{origin:i}=new URL(r);n.current=i},[]),Y(()=>t.current?.close(),[])]},m4=w.ol(({theme:e})=>({display:"inline-flex",listStyle:"none",marginTop:15,marginBottom:5,padding:0,gap:5,"li:not(:empty)":{display:"flex",alignItems:"center",justifyContent:"center",border:`1px dashed ${e.input.border}`,borderRadius:4,width:28,height:32}})),p4=ht(` + query VisualTestsProjectCountQuery { + viewer { + projectCount + accounts { + newProjectUrl + } + } + } +`),h4=({onBack:e,hasProjectId:t,setAccessToken:n,setCreatedProjectId:r,exchangeParameters:i})=>{let o=To(),l=vs(),{user_code:s,verificationUrl:c}=i,d=Ie(),u=Ie(),m=Ie(),p=Y(async y=>{if(y.message==="login"&&u.current?.(c),y.message==="grant")try{let k=await B5(i);if(!k)throw new Error("Failed to fetch an access token");d.current=k;let b=Ws(k),{data:h}=await o.query(p4,{},{fetchOptions:b});if(!h?.viewer)throw new Error("Failed to fetch initial project list");if(h.viewer.projectCount>0||t)n(d.current),m.current?.();else{if(!h.viewer.accounts[0])throw new Error("User has no accounts!");if(!h.viewer.accounts[0].newProjectUrl)throw new Error("Unexpected missing project URL");u.current?.(h.viewer.accounts[0].newProjectUrl)}}catch(k){l("Login Error",k)}y.message==="createdProject"&&(d.current?(n(d.current),r(`Project:${y.projectId}`),m.current?.()):l("Unexpected missing access token",new Error))},[c,i,o,t,n,l,r]),[v,f]=t0(p);return u.current=v,m.current=f,a.createElement(Se,{footer:null,ignoreConfig:!0},a.createElement(Ur,{onBack:e}),a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Verify your account"),a.createElement("div",null,a.createElement(W,{center:!0,muted:!0},"Check this verification code on Chromatic to grant access to your published Storybooks.")),a.createElement(m4,null,s?.split("").map((y,k)=>a.createElement("li",{key:`${k}-${y}`},y.replace(/[^A-Z0-9]/,""))))),a.createElement(se,{variant:"solid",size:"medium",onClick:()=>v(c)},"Go to Chromatic"))))},f4=({onNext:e,onUninstall:t})=>a.createElement(Se,{footer:null,ignoreConfig:!0},a.createElement(Ur,null),a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(sn,null),a.createElement(pe,null,"Visual tests"),a.createElement(W,{center:!0,muted:!0},"Catch bugs in UI appearance automatically. Compare image snapshots to detect visual changes.")),a.createElement(St,null,a.createElement(se,{variant:"solid",size:"medium",onClick:e},"Enable"),a.createElement(se,{link:!0,onClick:()=>t()},"Uninstall"))))),g4=({setAccessToken:e,setCreatedProjectId:t,hasProjectId:n})=>{let[r,i]=nt("authenticationScreen",n?"signin":"welcome"),[o,l]=nt("exchangeParameters"),s=vs(),{uninstallAddon:c}=wo();Xe("Authentication",r.charAt(0).toUpperCase()+r.slice(1));let d=Y(async u=>{try{l(await R5(u)),i("verify")}catch(m){s("Sign in Error",m)}},[s,l,i]);if(r==="welcome"&&!n)return a.createElement(f4,{onNext:()=>i("signin"),onUninstall:c});if(r==="signin"||r==="welcome"&&n)return a.createElement(Wu,{...n?{}:{onBack:()=>i("welcome")},onSignIn:d,onSignInWithSSO:()=>i("subdomain")});if(r==="subdomain")return a.createElement($u,{onBack:()=>i("signin"),onSignIn:d});if(r==="verify"){if(!o)throw new Error("Expected to have a `exchangeParameters` if at `verify` step");return a.createElement(h4,{onBack:()=>i("signin"),hasProjectId:n,setAccessToken:e,setCreatedProjectId:t,exchangeParameters:o})}return null},n0=w.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",borderRadius:e.appBorderRadius,background:e.base==="light"?e.color.lightest:e.color.darkest,border:`1px solid ${e.appBorderColor}`,padding:15,flex:1,gap:14,maxWidth:"500px",width:"100%"}),({theme:e,warning:t})=>t&&{background:e.base==="dark"?"#342e1a":e.background.warning}),v4=w.b(()=>({display:"block",marginBottom:2})),y4=()=>{Xe("Errors","GitNotFound");let{uninstallAddon:e}=wo();return a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(sn,null),a.createElement(pe,null,"Visual tests"),a.createElement(W,{center:!0,muted:!0},"Catch bugs in UI appearance automatically. Compare image snapshots to detect visual changes.")),a.createElement(n0,null,a.createElement(Cs,{style:{flexShrink:0}}),a.createElement(W,null,a.createElement(v4,null,"Git not detected"),"This addon requires Git to associate test results with commits and branches. Run"," ",a.createElement(Ve,null,"git init")," and make your first commit",a.createElement(Ve,null,"git commit -m")," to get started!")),a.createElement(De,{target:"_blank",href:"https://www.chromatic.com/docs/visual-tests-addon#git-addon",withArrow:!0,secondary:!0},"Visual tests requirements"),a.createElement(De,{withArrow:!0,onClick:()=>e()},"Uninstall"))))},b4=w(Co)(({theme:e})=>({width:40,height:40,padding:10,background:e.color.positive,borderRadius:"100%",color:"white"})),E4=w(De)(()=>({marginTop:5})),k4=ht(` + query ProjectQuery($projectId: ID!) { + project(id: $projectId) { + id + name + webUrl + lastBuild { + branch + number + } + } + } +`),w4=({projectId:e,configFile:t,goToNext:n})=>{Xe("LinkProject","LinkedProject");let[{data:r,fetching:i,error:o}]=_o({query:k4,variables:{projectId:e}});return a.createElement(Se,{footer:a.createElement(zr,null,a.createElement(it,null,r?.project?.lastBuild&&a.createElement(W,{style:{marginLeft:5}},"Last build: ",r.project.lastBuild.number," on branch"," ",r.project.lastBuild.branch)),a.createElement(it,{push:!0},a.createElement(Dr,null)))},a.createElement(ge,null,a.createElement(de,null,i&&a.createElement("p",null,"Loading..."),o&&a.createElement("p",null,o.message),r?.project&&a.createElement(a.Fragment,null,a.createElement(b4,null),a.createElement("div",null,a.createElement(pe,null,"Project linked!"),a.createElement(W,{center:!0,muted:!0,style:{maxWidth:500}},"The ",a.createElement(Ve,null,"projectId")," for ",a.createElement("strong",null,r.project.name)," was added in"," ",a.createElement(Ve,null,t)," to sync tests with Chromatic. Please commit this change to continue using this addon.")),a.createElement(St,null,a.createElement(se,{variant:"solid",size:"medium",onClick:()=>n()},"Catch a UI change"),a.createElement(E4,{href:"https://www.chromatic.com/docs/cli",target:"_blank",withArrow:!0,secondary:!0},"What's a project ID?"))))))};function C4(e){for(var t=[],n=1;n({"&& > *":{margin:0},"&& pre":{color:e.base==="light"?e.color.darker:e.color.lighter,background:e.base==="light"?e.color.lightest:e.color.darkest,fontSize:"12px",lineHeight:"16px",textAlign:"left",padding:"15px !important"}})),x4="https://www.chromatic.com/docs/visual-tests-addon/#configure";function M4({projectId:e,configFile:t}){return Xe("LinkProject","LinkingProjectFailed"),a.createElement(Se,null,a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Add the project ID to your Chromatic config"),a.createElement(W,{center:!0,muted:!0},"The ",a.createElement(Ve,null,"projectId")," will be used to sync tests with Chromatic. Please commit this change to continue using the addon. The file should be saved at"," ",a.createElement(Ve,null,t),".")),a.createElement(S4,null,a.createElement(Ve,null,C4` + { + "projectId": "${e}", + } + `)),a.createElement(De,{secondary:!0,withArrow:!0,target:"_blank",href:x4},"What's this for?"))))}var N4=ht(` + query SelectProjectsQuery { + viewer { + accounts { + id + name + avatarUrl + newProjectUrl + projects { + id + name + webUrl + lastBuild { + branch + number + } + } + } + } + } +`),A4=({createdProjectId:e,setCreatedProjectId:t,onUpdateProject:n})=>{let r=a.useCallback(async i=>{await n(i)},[n]);return a.createElement(L4,{createdProjectId:e,setCreatedProjectId:t,onSelectProjectId:r})},Ka=w.div(({theme:e})=>({fontSize:`${e.typography.size.s1-1}px`,fontWeight:e.typography.weight.bold,color:e.base==="light"?e.color.dark:e.color.light,backgroundColor:"inherit",padding:"7px 15px",borderBottom:`1px solid ${e.appBorderColor}`,lineHeight:"18px",letterSpacing:"0.38em",textTransform:"uppercase"})),ql=w.div(({theme:e})=>({})),Yl=w.div(({theme:e})=>({background:e.base==="light"?e.color.lighter:e.color.darker})),Ql=w.div(({theme:e})=>({background:e.base==="light"?e.color.lightest:e.color.darkest,borderRadius:5,border:`1px solid ${e.appBorderColor}`,height:260,maxWidth:420,minWidth:260,width:"100%",overflow:"hidden",textAlign:"left",position:"relative",display:"flex","> *":{flex:1,display:"flex",flexDirection:"column",width:"50%"}})),Ja=w.div({height:"100%",overflowY:"auto"}),F4=w(de)({width:"100%"}),O4=w(i5)({marginRight:10});function L4({createdProjectId:e,setCreatedProjectId:t,onSelectProjectId:n}){let[{data:r,fetching:i,error:o},l]=_o({query:N4});le(()=>{let h=setInterval(l,5e3);return()=>clearInterval(h)},[l]);let[s,c]=nt("selectedAccountId"),d=r?.viewer?.accounts.find(h=>h.id===s),u=Y(h=>c(h.id),[c]);le(()=>{!s&&r?.viewer?.accounts&&u(r.viewer.accounts[0])},[r,s,u]);let[m,p]=nt("isSelectingProject",!1),v=Y(h=>{p(!0),n(h.id);let g=setTimeout(()=>{p(!1)},1e3);return()=>clearTimeout(g)},[n,p]),f=Y(async h=>{h.message==="createdProject"&&(l(),t(h.projectId))},[l,t]),[y,k]=t0(f),b=e&&d?.projects?.find(h=>h?.id.endsWith(e));return le(()=>{b&&(k(),v(b))},[b,v,k]),Xe("LinkProject","LinkProject"),a.createElement(Se,null,a.createElement(ge,null,a.createElement(F4,null,a.createElement("div",null,a.createElement(pe,null,"Select a project"),a.createElement(W,{muted:!0},"Your tests will sync with this project.")),o&&a.createElement("p",null,o.message),!r&&i&&a.createElement(Ql,null,a.createElement(ql,null,a.createElement(Ka,null,"Accounts"),a.createElement(Ja,null,a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0}))),a.createElement(Yl,null,a.createElement(Ka,null,"Projects"),a.createElement(Ja,{"data-testid":"right-list"},a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0}),a.createElement(st,{appearance:"secondary",isLoading:!0})))),r?.viewer?.accounts&&a.createElement(Ql,null,a.createElement(ql,null,a.createElement(Ka,null,"Accounts"),a.createElement(Ja,{"data-testid":"left-list"},r.viewer.accounts?.map(h=>a.createElement(st,{key:h.id,title:h.name,appearance:"secondary",left:a.createElement(O4,{src:h.avatarUrl??void 0,size:"tiny"}),onClick:()=>u(h),active:s===h.id})))),a.createElement(Yl,null,a.createElement(Ka,null,"Projects"),a.createElement(Ja,{"data-testid":"right-list"},d&&a.createElement(st,{isLink:!1,onClick:()=>{if(!d?.newProjectUrl)throw new Error("Unexpected missing `newProjectUrl` on account");y(d.newProjectUrl)},title:a.createElement(De,{isButton:!0,withArrow:!0},"Create new project")}),d?.projects?.map(h=>h&&a.createElement(st,{appearance:"secondary",key:h.id,title:h.name,right:a.createElement(Y5,{"aria-label":h.name}),onClick:()=>v(h),disabled:m}))))))))}var T4=()=>a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(sn,null),a.createElement(pe,null,"Visual tests"),a.createElement(W,{center:!0,muted:!0},"Visual tests only runs locally. To test this Storybook, clone it to your machine and run ",a.createElement(Ve,null,"npx storybook dev"),"."))))),_4=w(Vr)({animation:`${bo} 1s linear infinite`}),Z4=({aborted:e})=>{let[t,n]=Te(!1),r=za({}),i=()=>{n(!0),r(Cd)};return le(()=>{n(!1)},[e]),a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Can't connect to Chromatic"),a.createElement(W,{center:!0,muted:!0},"Double check your internet connection and firewall settings.")),e?a.createElement(se,{size:"medium",variant:"solid",onClick:i,disabled:t},a.createElement(Vr,null),"Retry"):a.createElement(se,{size:"medium",variant:"ghost",onClick:i,disabled:t},a.createElement(_4,null),"Connecting..."),a.createElement(De,{href:"https://status.chromatic.com",target:"_blank",rel:"noreferrer",withArrow:!0},"Chromatic API status"))))},I4=()=>(Xe("Uninstalled","uninstalled"),a.createElement(Se,{footer:!1},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(sn,null),a.createElement(pe,null,"Uninstall complete"),a.createElement(W,{center:!0,muted:!0},"Visual Tests will vanish the next time you restart your Storybook.")))))),a0={isRunning:!1,startBuild:()=>{},stopBuild:()=>{}},r0=Qe(a0),La=()=>Nt(r0,"RunBuild"),R4=({children:e,watchState:t=a0})=>a.createElement(r0.Provider,{value:t},e),i0={PENDING:"warn",FAILED:"error",DENIED:"error",BROKEN:"error"},xi=[null,"unknown","pending","success","warn","error"];function B4(e,t){return xi[Math.max(xi.indexOf(e),xi.indexOf(t))]}function P4(e){let t={};return e.forEach(n=>{!n.story||!n.status||(t[n.story.storyId]=B4(i0[n.status]||null,t[n.story.storyId]))}),Object.fromEntries(Object.entries(t).map(([n,r])=>[n,r&&{status:r,title:"Visual Tests",description:"Chromatic Visual Tests"}]))}function V4(e,{shouldSwitchToLastBuildOnBranch:t,lastBuildOnBranchId:n,storyId:r}){if(!t)return e?{...e,storyId:r}:void 0;if(!n)throw new Error("Impossible state");return{buildId:n,storyId:r}}var Kl={EXCEEDED_THRESHOLD:{heading:"Snapshot limit reached",message:"Your account has reached its monthly snapshot limit. Visual testing is disabled. Upgrade your plan to increase your quota.",action:"Upgrade plan"},PAYMENT_REQUIRED:{heading:"Payment required",message:"Your subscription payment is past due. Review or replace your payment method to continue using Chromatic.",action:"Review billing details"},OTHER:{heading:"Account suspended",message:"Your account has been suspended. Contact customer support for details.",action:"Billing details"}},o0=({children:e,billingUrl:t,suspensionReason:n="OTHER"})=>{Xe("Errors","AccountSuspended");let{heading:r,message:i,action:o}=Kl[n]||Kl.OTHER;return a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,r),a.createElement(W,{center:!0,muted:!0},i)),t&&a.createElement(se,{asChild:!0,size:"medium",variant:"solid"},a.createElement("a",{href:t,target:"_new"},o)),e)))},j4=({children:e,manageUrl:t})=>(Xe("Errors","VisualTestsDisabled"),a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Visual Tests disabled for your project"),a.createElement(W,{center:!0,muted:!0},"Update your project settings to enable visual testing.")),a.createElement(se,{asChild:!0,size:"medium",variant:"solid"},a.createElement("a",{href:t,target:"_new"},"Manage project settings")),e))));function l0(e){return t=>typeof t===e}var H4=l0("function"),D4=e=>e===null,Jl=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Xl=e=>!z4(e)&&!D4(e)&&(H4(e)||typeof e=="object"),z4=l0("undefined");function U4(e,t){let{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!He(e[r],t[r]))return!1;return!0}function $4(e,t){if(e.byteLength!==t.byteLength)return!1;let n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function W4(e,t){if(e.size!==t.size)return!1;for(let n of e.entries())if(!t.has(n[0]))return!1;for(let n of e.entries())if(!He(n[1],t.get(n[0])))return!1;return!0}function G4(e,t){if(e.size!==t.size)return!1;for(let n of e.entries())if(!t.has(n[0]))return!1;return!0}function He(e,t){if(e===t)return!0;if(e&&Xl(e)&&t&&Xl(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return U4(e,t);if(e instanceof Map&&t instanceof Map)return W4(e,t);if(e instanceof Set&&t instanceof Set)return G4(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return $4(e,t);if(Jl(e)&&Jl(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){let o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!He(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var q4=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Y4=["bigint","boolean","null","number","string","symbol","undefined"];function Yr(e){let t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Q4(t))return t}function ft(e){return t=>Yr(t)===e}function Q4(e){return q4.includes(e)}function In(e){return t=>typeof t===e}function K4(e){return Y4.includes(e)}var J4=["innerHTML","ownerDocument","style","attributes","nodeValue"];function T(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return T.array(e)?"Array":T.plainFunction(e)?"Function":Yr(e)||"Object"}T.array=Array.isArray;T.arrayOf=(e,t)=>!T.array(e)&&!T.function(t)?!1:e.every(n=>t(n));T.asyncGeneratorFunction=e=>Yr(e)==="AsyncGeneratorFunction";T.asyncFunction=ft("AsyncFunction");T.bigint=In("bigint");T.boolean=e=>e===!0||e===!1;T.date=ft("Date");T.defined=e=>!T.undefined(e);T.domElement=e=>T.object(e)&&!T.plainObject(e)&&e.nodeType===1&&T.string(e.nodeName)&&J4.every(t=>t in e);T.empty=e=>T.string(e)&&e.length===0||T.array(e)&&e.length===0||T.object(e)&&!T.map(e)&&!T.set(e)&&Object.keys(e).length===0||T.set(e)&&e.size===0||T.map(e)&&e.size===0;T.error=ft("Error");T.function=In("function");T.generator=e=>T.iterable(e)&&T.function(e.next)&&T.function(e.throw);T.generatorFunction=ft("GeneratorFunction");T.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;T.iterable=e=>!T.nullOrUndefined(e)&&T.function(e[Symbol.iterator]);T.map=ft("Map");T.nan=e=>Number.isNaN(e);T.null=e=>e===null;T.nullOrUndefined=e=>T.null(e)||T.undefined(e);T.number=e=>In("number")(e)&&!T.nan(e);T.numericString=e=>T.string(e)&&e.length>0&&!Number.isNaN(Number(e));T.object=e=>!T.nullOrUndefined(e)&&(T.function(e)||typeof e=="object");T.oneOf=(e,t)=>T.array(e)?e.indexOf(t)>-1:!1;T.plainFunction=ft("Function");T.plainObject=e=>{if(Yr(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};T.primitive=e=>T.null(e)||K4(typeof e);T.promise=ft("Promise");T.propertyOf=(e,t,n)=>{if(!T.object(e)||!t)return!1;let r=e[t];return T.function(n)?n(r):T.defined(r)};T.regexp=ft("RegExp");T.set=ft("Set");T.string=In("string");T.symbol=In("symbol");T.undefined=In("undefined");T.weakMap=ft("WeakMap");T.weakSet=ft("WeakSet");var I=T;function X4(...e){return e.every(t=>I.string(t)||I.array(t)||I.plainObject(t))}function ep(e,t,n){return s0(e,t)?[e,t].every(I.array)?!e.some(r1(n))&&t.some(r1(n)):[e,t].every(I.plainObject)?!Object.entries(e).some(a1(n))&&Object.entries(t).some(a1(n)):t===n:!1}function e1(e,t,n){let{actual:r,key:i,previous:o,type:l}=n,s=kt(e,i),c=kt(t,i),d=[s,c].every(I.number)&&(l==="increased"?sc);return I.undefined(r)||(d=d&&c===r),I.undefined(o)||(d=d&&s===o),d}function t1(e,t,n){let{key:r,type:i,value:o}=n,l=kt(e,r),s=kt(t,r),c=i==="added"?l:s,d=i==="added"?s:l;if(!I.nullOrUndefined(o)){if(I.defined(c)){if(I.array(c)||I.plainObject(c))return ep(c,d,o)}else return He(d,o);return!1}return[l,s].every(I.array)?!d.every(Io(c)):[l,s].every(I.plainObject)?tp(Object.keys(c),Object.keys(d)):![l,s].every(u=>I.primitive(u)&&I.defined(u))&&(i==="added"?!I.defined(l)&&I.defined(s):I.defined(l)&&!I.defined(s))}function n1(e,t,{key:n}={}){let r=kt(e,n),i=kt(t,n);if(!s0(r,i))throw new TypeError("Inputs have different types");if(!X4(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(I.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function a1(e){return([t,n])=>I.array(e)?He(e,n)||e.some(r=>He(r,n)||I.array(n)&&Io(n)(r)):I.plainObject(e)&&e[t]?!!e[t]&&He(e[t],n):He(e,n)}function tp(e,t){return t.some(n=>!e.includes(n))}function r1(e){return t=>I.array(e)?e.some(n=>He(n,t)||I.array(t)&&Io(t)(n)):He(e,t)}function Kn(e,t){return I.array(e)?e.some(n=>He(n,t)):He(e,t)}function Io(e){return t=>e.some(n=>He(n,t))}function s0(...e){return e.every(I.array)||e.every(I.number)||e.every(I.plainObject)||e.every(I.string)}function kt(e,t){return I.plainObject(e)||I.array(e)?I.string(t)?t.split(".").reduce((n,r)=>n&&n[r],e):I.number(t)?e[t]:e:e}function Fr(e,t){if([e,t].some(I.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(n=>I.plainObject(n)||I.array(n)))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return t1(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,i)=>{try{let o=kt(e,n),l=kt(t,n),s=I.defined(r),c=I.defined(i);if(s||c){let d=c?Kn(i,o):!Kn(r,o),u=Kn(r,l);return d&&u}return[o,l].every(I.array)||[o,l].every(I.plainObject)?!He(o,l):o!==l}catch{return!1}},changedFrom:(n,r,i)=>{if(!I.defined(n))return!1;try{let o=kt(e,n),l=kt(t,n),s=I.defined(i);return Kn(r,o)&&(s?Kn(i,l):!s)}catch{return!1}},decreased:(n,r,i)=>{if(!I.defined(n))return!1;try{return e1(e,t,{key:n,actual:r,previous:i,type:"decreased"})}catch{return!1}},emptied:n=>{try{let[r,i]=n1(e,t,{key:n});return!!r.length&&!i.length}catch{return!1}},filled:n=>{try{let[r,i]=n1(e,t,{key:n});return!r.length&&!!i.length}catch{return!1}},increased:(n,r,i)=>{if(!I.defined(n))return!1;try{return e1(e,t,{key:n,actual:r,previous:i,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return t1(e,t,{key:n,type:"removed",value:r})}catch{return!1}}}}var np=mt(ld(),1),c0=mt(sd(),1);function ap(e,...t){if(!I.plainObject(e))throw new TypeError("Expected an object");let n={};for(let r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function rp(e,...t){if(!I.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;let n={};for(let r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}var Xa=mt(fo(),1),Mi=mt(fo(),1),O=mt(ud()),Ta=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",ip=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function op(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function lp(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ip))}}var sp=Ta&&window.Promise,cp=sp?op:lp;function d0(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function cn(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function Ro(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function _a(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:_a(Ro(e))}function u0(e){return e&&e.referenceNode?e.referenceNode:e}var i1=Ta&&!!(window.MSInputMethodContext&&document.documentMode),o1=Ta&&/MSIE 10/.test(navigator.userAgent);function Rn(e){return e===11?i1:e===10?o1:i1||o1}function Ln(e){if(!e)return document.documentElement;for(var t=Rn(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&cn(n,"position")==="static"?Ln(n):n}function dp(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ln(e.firstElementChild)===e}function io(e){return e.parentNode!==null?io(e.parentNode):e}function Or(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return dp(l)?l:Ln(l);var s=io(e);return s.host?Or(s.host,t):Or(e,io(t).host)}function Tn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function up(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Tn(t,"top"),i=Tn(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function l1(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function s1(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Rn(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function m0(e){var t=e.body,n=e.documentElement,r=Rn(10)&&getComputedStyle(n);return{height:s1("Height",t,n,r),width:s1("Width",t,n,r)}}var mp=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},pp=function(){function e(t,n){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=Rn(10),i=t.nodeName==="HTML",o=oo(e),l=oo(t),s=_a(e),c=cn(t),d=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&i&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=Ut({top:o.top-l.top-d,left:o.left-l.left-u,width:o.width,height:o.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var p=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);m.top-=d-p,m.bottom-=d-p,m.left-=u-v,m.right-=u-v,m.marginTop=p,m.marginLeft=v}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(m=up(m,t)),m}function hp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Bo(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),l=t?0:Tn(n),s=t?0:Tn(n,"left"),c={top:l-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Ut(c)}function p0(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(cn(e,"position")==="fixed")return!0;var n=Ro(e);return n?p0(n):!1}function h0(e){if(!e||!e.parentElement||Rn())return document.documentElement;for(var t=e.parentElement;t&&cn(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Po(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},l=i?h0(e):Or(e,u0(t));if(r==="viewport")o=hp(l,i);else{var s=void 0;r==="scrollParent"?(s=_a(Ro(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var c=Bo(s,l,i);if(s.nodeName==="HTML"&&!p0(l)){var d=m0(e.ownerDocument),u=d.height,m=d.width;o.top+=c.top-c.marginTop,o.bottom=u+c.top,o.left+=c.left-c.marginLeft,o.right=m+c.left}else o=c}n=n||0;var p=typeof n=="number";return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function fp(e){var t=e.width,n=e.height;return t*n}function f0(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var l=Po(n,r,o,i),s={top:{width:l.width,height:t.top-l.top},right:{width:l.right-t.right,height:l.height},bottom:{width:l.width,height:l.bottom-t.bottom},left:{width:t.left-l.left,height:l.height}},c=Object.keys(s).map(function(p){return at({key:p},s[p],{area:fp(s[p])})}).sort(function(p,v){return v.area-p.area}),d=c.filter(function(p){var v=p.width,f=p.height;return v>=n.clientWidth&&f>=n.clientHeight}),u=d.length>0?d[0].key:c[0].key,m=e.split("-")[1];return u+(m?"-"+m:"")}function g0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?h0(t):Or(t,u0(n));return Bo(n,i,r)}function v0(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Lr(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function y0(e,t,n){n=n.split("-")[0];var r=v0(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,l=o?"top":"left",s=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[l]=t[l]+t[c]/2-r[c]/2,n===s?i[s]=t[s]-r[d]:i[s]=t[Lr(s)],i}function Za(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function gp(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Za(e,function(i){return i[t]===n});return e.indexOf(r)}function b0(e,t,n){var r=n===void 0?e:e.slice(0,gp(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&d0(o)&&(t.offsets.popper=Ut(t.offsets.popper),t.offsets.reference=Ut(t.offsets.reference),t=o(t,i))}),t}function vp(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=g0(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=f0(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=y0(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=b0(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function E0(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Vo(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;rl[v]&&(e.offsets.popper[m]+=s[m]+f-l[v]),e.offsets.popper=Ut(e.offsets.popper);var y=s[m]+s[d]/2-f/2,k=cn(e.instance.popper),b=parseFloat(k["margin"+u]),h=parseFloat(k["border"+u+"Width"]),g=y-e.offsets.popper[m]-b-h;return g=Math.max(Math.min(l[d]-f,g),0),e.arrowElement=r,e.offsets.arrow=(n={},_n(n,m,Math.round(g)),_n(n,p,""),n),e}function Op(e){return e==="end"?"start":e==="start"?"end":e}var S0=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ni=S0.slice(3);function c1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ni.indexOf(e),r=Ni.slice(n+1).concat(Ni.slice(0,n));return t?r.reverse():r}var Ai={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Lp(e,t){if(E0(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Po(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Lr(r),o=e.placement.split("-")[1]||"",l=[];switch(t.behavior){case Ai.FLIP:l=[r,i];break;case Ai.CLOCKWISE:l=c1(r);break;case Ai.COUNTERCLOCKWISE:l=c1(r,!0);break;default:l=t.behavior}return l.forEach(function(s,c){if(r!==s||l.length===c+1)return e;r=e.placement.split("-")[0],i=Lr(r);var d=e.offsets.popper,u=e.offsets.reference,m=Math.floor,p=r==="left"&&m(d.right)>m(u.left)||r==="right"&&m(d.left)m(u.top)||r==="bottom"&&m(d.top)m(n.right),y=m(d.top)m(n.bottom),b=r==="left"&&v||r==="right"&&f||r==="top"&&y||r==="bottom"&&k,h=["top","bottom"].indexOf(r)!==-1,g=!!t.flipVariations&&(h&&o==="start"&&v||h&&o==="end"&&f||!h&&o==="start"&&y||!h&&o==="end"&&k),E=!!t.flipVariationsByContent&&(h&&o==="start"&&f||h&&o==="end"&&v||!h&&o==="start"&&k||!h&&o==="end"&&y),x=g||E;(p||b||x)&&(e.flipped=!0,(p||b)&&(r=l[c+1]),x&&(o=Op(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=at({},e.offsets.popper,y0(e.instance.popper,e.offsets.reference,e.placement)),e=b0(e.instance.modifiers,e,"flip"))}),e}function Tp(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,l=["top","bottom"].indexOf(i)!==-1,s=l?"right":"bottom",c=l?"left":"top",d=l?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}function _p(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],l=i[2];if(!o)return e;if(l.indexOf("%")===0){var s=void 0;switch(l){case"%p":s=n;break;case"%":case"%r":default:s=r}var c=Ut(s);return c[t]/100*o}else if(l==="vh"||l==="vw"){var d=void 0;return l==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function Zp(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,l=e.split(/(\+|\-)/).map(function(u){return u.trim()}),s=l.indexOf(Za(l,function(u){return u.search(/,|\s/)!==-1}));l[s]&&l[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=s!==-1?[l.slice(0,s).concat([l[s].split(c)[0]]),[l[s].split(c)[1]].concat(l.slice(s+1))]:[l];return d=d.map(function(u,m){var p=(m===1?!o:o)?"height":"width",v=!1;return u.reduce(function(f,y){return f[f.length-1]===""&&["+","-"].indexOf(y)!==-1?(f[f.length-1]=y,v=!0,f):v?(f[f.length-1]+=y,v=!1,f):f.concat(y)},[]).map(function(f){return _p(f,p,t,n)})}),d.forEach(function(u,m){u.forEach(function(p,v){jo(p)&&(i[m]+=p*(u[v-1]==="-"?-1:1))})}),i}function Ip(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,l=i.reference,s=r.split("-")[0],c=void 0;return jo(+n)?c=[+n,0]:c=Zp(n,o,l,s),s==="left"?(o.top+=c[0],o.left-=c[1]):s==="right"?(o.top+=c[0],o.left+=c[1]):s==="top"?(o.left+=c[0],o.top-=c[1]):s==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function Rp(e,t){var n=t.boundariesElement||Ln(e.instance.popper);e.instance.reference===n&&(n=Ln(n));var r=Vo("transform"),i=e.instance.popper.style,o=i.top,l=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=Po(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=l,i[r]=s,t.boundaries=c;var d=t.priority,u=e.offsets.popper,m={primary:function(p){var v=u[p];return u[p]c[p]&&!t.escapeWithReference&&(f=Math.min(u[v],c[p]-(p==="right"?u.width:u.height))),_n({},v,f)}};return d.forEach(function(p){var v=["left","top"].indexOf(p)!==-1?"primary":"secondary";u=at({},u,m[v](p))}),e.offsets.popper=u,e}function Bp(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,l=i.popper,s=["bottom","top"].indexOf(n)!==-1,c=s?"left":"top",d=s?"width":"height",u={start:_n({},c,o[c]),end:_n({},c,o[c]+o[d]-l[d])};e.offsets.popper=at({},l,u[r])}return e}function Pp(e){if(!C0(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Za(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==void 0?arguments[2]:{};mp(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=cp(this.update.bind(this)),this.options=at({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(at({},e.Defaults.modifiers,i.modifiers)).forEach(function(l){r.options.modifiers[l]=at({},e.Defaults.modifiers[l]||{},i.modifiers?i.modifiers[l]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(l){return at({name:l},r.options.modifiers[l])}).sort(function(l,s){return l.order-s.order}),this.modifiers.forEach(function(l){l.enabled&&d0(l.onLoad)&&l.onLoad(r.reference,r.popper,r.options,l,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return pp(e,[{key:"update",value:function(){return vp.call(this)}},{key:"destroy",value:function(){return yp.call(this)}},{key:"enableEventListeners",value:function(){return Ep.call(this)}},{key:"disableEventListeners",value:function(){return wp.call(this)}}]),e}();Qr.Utils=window.PopperUtils;Qr.placements=S0;Qr.Defaults=Hp;var d1=Qr,so=mt(fo()),Dp=["innerHTML","ownerDocument","style","attributes","nodeValue"],zp=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Up=["bigint","boolean","null","number","string","symbol","undefined"];function Kr(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if($p(t))return t}function gt(e){return function(t){return Kr(t)===e}}function $p(e){return zp.includes(e)}function Bn(e){return function(t){return typeof t===e}}function Wp(e){return Up.includes(e)}function _(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(_.array(e))return"Array";if(_.plainFunction(e))return"Function";var t=Kr(e);return t||"Object"}_.array=Array.isArray;_.arrayOf=function(e,t){return!_.array(e)&&!_.function(t)?!1:e.every(function(n){return t(n)})};_.asyncGeneratorFunction=function(e){return Kr(e)==="AsyncGeneratorFunction"};_.asyncFunction=gt("AsyncFunction");_.bigint=Bn("bigint");_.boolean=function(e){return e===!0||e===!1};_.date=gt("Date");_.defined=function(e){return!_.undefined(e)};_.domElement=function(e){return _.object(e)&&!_.plainObject(e)&&e.nodeType===1&&_.string(e.nodeName)&&Dp.every(function(t){return t in e})};_.empty=function(e){return _.string(e)&&e.length===0||_.array(e)&&e.length===0||_.object(e)&&!_.map(e)&&!_.set(e)&&Object.keys(e).length===0||_.set(e)&&e.size===0||_.map(e)&&e.size===0};_.error=gt("Error");_.function=Bn("function");_.generator=function(e){return _.iterable(e)&&_.function(e.next)&&_.function(e.throw)};_.generatorFunction=gt("GeneratorFunction");_.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};_.iterable=function(e){return!_.nullOrUndefined(e)&&_.function(e[Symbol.iterator])};_.map=gt("Map");_.nan=function(e){return Number.isNaN(e)};_.null=function(e){return e===null};_.nullOrUndefined=function(e){return _.null(e)||_.undefined(e)};_.number=function(e){return Bn("number")(e)&&!_.nan(e)};_.numericString=function(e){return _.string(e)&&e.length>0&&!Number.isNaN(Number(e))};_.object=function(e){return!_.nullOrUndefined(e)&&(_.function(e)||typeof e=="object")};_.oneOf=function(e,t){return _.array(e)?e.indexOf(t)>-1:!1};_.plainFunction=gt("Function");_.plainObject=function(e){if(Kr(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};_.primitive=function(e){return _.null(e)||Wp(typeof e)};_.promise=gt("Promise");_.propertyOf=function(e,t,n){if(!_.object(e)||!t)return!1;var r=e[t];return _.function(n)?n(r):_.defined(r)};_.regexp=gt("RegExp");_.set=gt("Set");_.string=Bn("string");_.symbol=Bn("symbol");_.undefined=Bn("undefined");_.weakMap=gt("WeakMap");_.weakSet=gt("WeakSet");var V=_;function x0(e){return function(t){return typeof t===e}}var Gp=x0("function"),qp=function(e){return e===null},u1=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},m1=function(e){return!Yp(e)&&!qp(e)&&(Gp(e)||typeof e=="object")},Yp=x0("undefined"),co=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Qp(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!qe(e[r],t[r]))return!1;return!0}function Kp(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Jp(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var l=co(e.entries()),s=l.next();!s.done;s=l.next()){var c=s.value;if(!t.has(c[0]))return!1}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var d=co(e.entries()),u=d.next();!u.done;u=d.next()){var c=u.value;if(!qe(c[1],t.get(c[0])))return!1}}catch(m){i={error:m}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Xp(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=co(e.entries()),o=i.next();!o.done;o=i.next()){var l=o.value;if(!t.has(l[0]))return!1}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function qe(e,t){if(e===t)return!0;if(e&&m1(e)&&t&&m1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Qp(e,t);if(e instanceof Map&&t instanceof Map)return Jp(e,t);if(e instanceof Set&&t instanceof Set)return Xp(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Kp(e,t);if(u1(e)&&u1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!qe(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function e3(){for(var e=[],t=0;tc);return V.undefined(r)||(d=d&&c===r),V.undefined(o)||(d=d&&s===o),d}function h1(e,t,n){var r=n.key,i=n.type,o=n.value,l=wt(e,r),s=wt(t,r),c=i==="added"?l:s,d=i==="added"?s:l;if(!V.nullOrUndefined(o)){if(V.defined(c)){if(V.array(c)||V.plainObject(c))return t3(c,d,o)}else return qe(d,o);return!1}return[l,s].every(V.array)?!d.every(Ho(c)):[l,s].every(V.plainObject)?n3(Object.keys(c),Object.keys(d)):![l,s].every(function(u){return V.primitive(u)&&V.defined(u)})&&(i==="added"?!V.defined(l)&&V.defined(s):V.defined(l)&&!V.defined(s))}function f1(e,t,n){var r=n===void 0?{}:n,i=r.key,o=wt(e,i),l=wt(t,i);if(!M0(o,l))throw new TypeError("Inputs have different types");if(!e3(o,l))throw new TypeError("Inputs don't have length");return[o,l].every(V.plainObject)&&(o=Object.keys(o),l=Object.keys(l)),[o,l]}function g1(e){return function(t){var n=t[0],r=t[1];return V.array(e)?qe(e,r)||e.some(function(i){return qe(i,r)||V.array(r)&&Ho(r)(i)}):V.plainObject(e)&&e[n]?!!e[n]&&qe(e[n],r):qe(e,r)}}function n3(e,t){return t.some(function(n){return!e.includes(n)})}function v1(e){return function(t){return V.array(e)?e.some(function(n){return qe(n,t)||V.array(t)&&Ho(t)(n)}):qe(e,t)}}function Jn(e,t){return V.array(e)?e.some(function(n){return qe(n,t)}):qe(e,t)}function Ho(e){return function(t){return e.some(function(n){return qe(n,t)})}}function M0(){for(var e=[],t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function N0(e,t){if(e==null)return{};var n=i3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o3(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ft(e)}function Pa(e){var t=r3();return function(){var n=Tr(e),r;if(t){var i=Tr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o3(this,r)}}function l3(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A0(e){var t=l3(e,"string");return typeof t=="symbol"?t:String(t)}var s3={flip:{padding:20},preventOverflow:{padding:10}},c3="The typeValidator argument must be a function with the signature function(props, propName, componentName).",d3="The error message is optional, but must be a string if provided.";function u3(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function m3(e,t){return Object.hasOwnProperty.call(e,t)}function p3(e,t,n,r){return r?new Error(r):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function h3(e,t){if(typeof e!="function")throw new TypeError(c3);if(t&&typeof t!="string")throw new TypeError(d3)}function E1(e,t,n){return h3(e,n),function(r,i,o){for(var l=arguments.length,s=new Array(l>3?l-3:0),c=3;c3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function g3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function v3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),g3(e,t,i)},f3(e,t,i,r)}function k1(){}var F0=function(e){Ba(n,e);var t=Pa(n);function n(){return Ia(this,n),t.apply(this,arguments)}return Ra(n,[{key:"componentDidMount",value:function(){vt()&&(this.node||this.appendNode(),Xn||this.renderPortal())}},{key:"componentDidUpdate",value:function(){vt()&&(Xn||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!vt()||!this.node||(Xn||Gn.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var r=this.props,i=r.id,o=r.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!vt())return null;var r=this.props,i=r.children,o=r.setRef;if(this.node||this.appendNode(),Xn)return Gn.createPortal(i,this.node);var l=Gn.unstable_renderSubtreeIntoContainer(this,i.length>1?a.createElement("div",null,i):i[0],this.node);return o(l),null}},{key:"renderReact16",value:function(){var r=this.props,i=r.hasChildren,o=r.placement,l=r.target;return i?this.renderPortal():l||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return Xn?this.renderReact16():null}}]),n}(a.Component);Pe(F0,"propTypes",{children:O.default.oneOfType([O.default.element,O.default.array]),hasChildren:O.default.bool,id:O.default.oneOfType([O.default.string,O.default.number]),placement:O.default.string,setRef:O.default.func.isRequired,target:O.default.oneOfType([O.default.object,O.default.string]),zIndex:O.default.number});var O0=function(e){Ba(n,e);var t=Pa(n);function n(){return Ia(this,n),t.apply(this,arguments)}return Ra(n,[{key:"parentStyle",get:function(){var r=this.props,i=r.placement,o=r.styles,l=o.arrow.length,s={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(s.bottom=0,s.left=0,s.right=0,s.height=l):i.startsWith("bottom")?(s.left=0,s.right=0,s.top=0,s.height=l):i.startsWith("left")?(s.right=0,s.top=0,s.bottom=0):i.startsWith("right")&&(s.left=0,s.top=0),s}},{key:"render",value:function(){var r=this.props,i=r.placement,o=r.setArrowRef,l=r.styles,s=l.arrow,c=s.color,d=s.display,u=s.length,m=s.margin,p=s.position,v=s.spread,f={display:d,position:p},y,k=v,b=u;return i.startsWith("top")?(y="0,0 ".concat(k/2,",").concat(b," ").concat(k,",0"),f.bottom=0,f.marginLeft=m,f.marginRight=m):i.startsWith("bottom")?(y="".concat(k,",").concat(b," ").concat(k/2,",0 0,").concat(b),f.top=0,f.marginLeft=m,f.marginRight=m):i.startsWith("left")?(b=v,k=u,y="0,0 ".concat(k,",").concat(b/2," 0,").concat(b),f.right=0,f.marginTop=m,f.marginBottom=m):i.startsWith("right")&&(b=v,k=u,y="".concat(k,",").concat(b," ").concat(k,",0 0,").concat(b/2),f.left=0,f.marginTop=m,f.marginBottom=m),a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},a.createElement("span",{ref:o,style:f},a.createElement("svg",{width:k,height:b,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},a.createElement("polygon",{points:y,fill:c}))))}}]),n}(a.Component);Pe(O0,"propTypes",{placement:O.default.string.isRequired,setArrowRef:O.default.func.isRequired,styles:O.default.object.isRequired});var y3=["color","height","width"];function L0(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,l=N0(n,y3);return a.createElement("button",{"aria-label":"close",onClick:t,style:l,type:"button"},a.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.createElement("g",null,a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}L0.propTypes={handleClick:O.default.func.isRequired,styles:O.default.object.isRequired};function T0(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,l=e.showCloseButton,s=e.title,c=e.styles,d={content:a.isValidElement(t)?t:a.createElement("div",{className:"__floater__content",style:c.content},t)};return s&&(d.title=a.isValidElement(s)?s:a.createElement("div",{className:"__floater__title",style:c.title},s)),n&&(d.footer=a.isValidElement(n)?n:a.createElement("div",{className:"__floater__footer",style:c.footer},n)),(l||o)&&!V.boolean(i)&&(d.close=a.createElement(L0,{styles:c.close,handleClick:r})),a.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}T0.propTypes={content:O.default.node.isRequired,footer:O.default.node,handleClick:O.default.func.isRequired,open:O.default.bool,positionWrapper:O.default.bool.isRequired,showCloseButton:O.default.bool.isRequired,styles:O.default.object.isRequired,title:O.default.node};var _0=function(e){Ba(n,e);var t=Pa(n);function n(){return Ia(this,n),t.apply(this,arguments)}return Ra(n,[{key:"style",get:function(){var r=this.props,i=r.disableAnimation,o=r.component,l=r.placement,s=r.hideArrow,c=r.status,d=r.styles,u=d.arrow.length,m=d.floater,p=d.floaterCentered,v=d.floaterClosing,f=d.floaterOpening,y=d.floaterWithAnimation,k=d.floaterWithComponent,b={};return s||(l.startsWith("top")?b.padding="0 0 ".concat(u,"px"):l.startsWith("bottom")?b.padding="".concat(u,"px 0 0"):l.startsWith("left")?b.padding="0 ".concat(u,"px 0 0"):l.startsWith("right")&&(b.padding="0 0 0 ".concat(u,"px"))),[oe.OPENING,oe.OPEN].indexOf(c)!==-1&&(b=Ce(Ce({},b),f)),c===oe.CLOSING&&(b=Ce(Ce({},b),v)),c===oe.OPEN&&!i&&(b=Ce(Ce({},b),y)),l==="center"&&(b=Ce(Ce({},b),p)),o&&(b=Ce(Ce({},b),k)),Ce(Ce({},m),b)}},{key:"render",value:function(){var r=this.props,i=r.component,o=r.handleClick,l=r.hideArrow,s=r.setFloaterRef,c=r.status,d={},u=["__floater"];return i?a.isValidElement(i)?d.content=a.cloneElement(i,{closeFn:o}):d.content=i({closeFn:o}):d.content=a.createElement(T0,this.props),c===oe.OPEN&&u.push("__floater__open"),l||(d.arrow=a.createElement(O0,this.props)),a.createElement("div",{ref:s,className:u.join(" "),style:this.style},a.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(a.Component);Pe(_0,"propTypes",{component:O.default.oneOfType([O.default.func,O.default.element]),content:O.default.node,disableAnimation:O.default.bool.isRequired,footer:O.default.node,handleClick:O.default.func.isRequired,hideArrow:O.default.bool.isRequired,open:O.default.bool,placement:O.default.string.isRequired,positionWrapper:O.default.bool.isRequired,setArrowRef:O.default.func.isRequired,setFloaterRef:O.default.func.isRequired,showCloseButton:O.default.bool,status:O.default.string.isRequired,styles:O.default.object.isRequired,title:O.default.node});var Z0=function(e){Ba(n,e);var t=Pa(n);function n(){return Ia(this,n),t.apply(this,arguments)}return Ra(n,[{key:"render",value:function(){var r=this.props,i=r.children,o=r.handleClick,l=r.handleMouseEnter,s=r.handleMouseLeave,c=r.setChildRef,d=r.setWrapperRef,u=r.style,m=r.styles,p;if(i)if(a.Children.count(i)===1)if(!a.isValidElement(i))p=a.createElement("span",null,i);else{var v=V.function(i.type)?"innerRef":"ref";p=a.cloneElement(a.Children.only(i),Pe({},v,c))}else p=i;return p?a.createElement("span",{ref:d,style:Ce(Ce({},m),u),onClick:o,onMouseEnter:l,onMouseLeave:s},p):null}}]),n}(a.Component);Pe(Z0,"propTypes",{children:O.default.node,handleClick:O.default.func.isRequired,handleMouseEnter:O.default.func.isRequired,handleMouseLeave:O.default.func.isRequired,setChildRef:O.default.func.isRequired,setWrapperRef:O.default.func.isRequired,style:O.default.object,styles:O.default.object.isRequired});var b3={zIndex:100};function E3(e){var t=(0,so.default)(b3,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var k3=["arrow","flip","offset"],w3=["position","top","right","bottom","left"],Do=function(e){Ba(n,e);var t=Pa(n);function n(r){var i;return Ia(this,n),i=t.call(this,r),Pe(Ft(i),"setArrowRef",function(o){i.arrowRef=o}),Pe(Ft(i),"setChildRef",function(o){i.childRef=o}),Pe(Ft(i),"setFloaterRef",function(o){i.floaterRef=o}),Pe(Ft(i),"setWrapperRef",function(o){i.wrapperRef=o}),Pe(Ft(i),"handleTransitionEnd",function(){var o=i.state.status,l=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===oe.OPENING?oe.OPEN:oe.IDLE},function(){var s=i.state.status;l(s===oe.OPEN?"open":"close",i.props)})}),Pe(Ft(i),"handleClick",function(){var o=i.props,l=o.event,s=o.open;if(!V.boolean(s)){var c=i.state,d=c.positionWrapper,u=c.status;(i.event==="click"||i.event==="hover"&&d)&&(er({title:"click",data:[{event:l,status:u===oe.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Pe(Ft(i),"handleMouseEnter",function(){var o=i.props,l=o.event,s=o.open;if(!(V.boolean(s)||Fi())){var c=i.state.status;i.event==="hover"&&c===oe.IDLE&&(er({title:"mouseEnter",data:[{key:"originalEvent",value:l}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Pe(Ft(i),"handleMouseLeave",function(){var o=i.props,l=o.event,s=o.eventDelay,c=o.open;if(!(V.boolean(c)||Fi())){var d=i.state,u=d.status,m=d.positionWrapper;i.event==="hover"&&(er({title:"mouseLeave",data:[{key:"originalEvent",value:l}],debug:i.debug}),s?[oe.OPENING,oe.OPEN].indexOf(u)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(oe.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:oe.INIT,statusWrapper:oe.INIT},i._isMounted=!1,i.hasMounted=!1,vt()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ra(n,[{key:"componentDidMount",value:function(){if(vt()){var r=this.state.positionWrapper,i=this.props,o=i.children,l=i.open,s=i.target;this._isMounted=!0,er({title:"init",data:{hasChildren:!!o,hasTarget:!!s,isControlled:V.boolean(l),positionWrapper:r,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&s&&V.boolean(l)}}},{key:"componentDidUpdate",value:function(r,i){if(vt()){var o=this.props,l=o.autoOpen,s=o.open,c=o.target,d=o.wrapperOptions,u=a3(i,this.state),m=u.changedFrom,p=u.changed;if(r.open!==s){var v;V.boolean(s)&&(v=s?oe.OPENING:oe.CLOSING),this.toggle(v)}(r.wrapperOptions.position!==d.position||r.target!==c)&&this.changeWrapperPosition(this.props),p("status",oe.IDLE)&&s?this.toggle(oe.OPEN):m("status",oe.INIT,oe.IDLE)&&l&&this.toggle(oe.OPEN),this.popper&&p("status",oe.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",oe.OPENING)||p("status",oe.CLOSING))&&v3(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){vt()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,l=this.props,s=l.disableFlip,c=l.getPopper,d=l.hideArrow,u=l.offset,m=l.placement,p=l.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:oe.IDLE});else if(i&&this.floaterRef){var f=this.options,y=f.arrow,k=f.flip,b=f.offset,h=N0(f,k3);new d1(i,this.floaterRef,{placement:m,modifiers:Ce({arrow:Ce({enabled:!d,element:this.arrowRef},y),flip:Ce({enabled:!s,behavior:v},k),offset:Ce({offset:"0, ".concat(u,"px")},b)},h),onCreate:function(E){var x;if(r.popper=E,!((x=r.floaterRef)!==null&&x!==void 0&&x.isConnected)){r.setState({needsUpdate:!0});return}c(E,"floater"),r._isMounted&&r.setState({currentPlacement:E.placement,status:oe.IDLE}),m!==E.placement&&setTimeout(function(){E.instance.update()},1)},onUpdate:function(E){r.popper=E;var x=r.state.currentPlacement;r._isMounted&&E.placement!==x&&r.setState({currentPlacement:E.placement})}})}if(o){var g=V.undefined(p.offset)?0:p.offset;new d1(this.target,this.wrapperRef,{placement:p.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(E){r.wrapperPopper=E,r._isMounted&&r.setState({statusWrapper:oe.IDLE}),c(E,"wrapper"),m!==E.placement&&setTimeout(function(){E.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var r=this;this.floaterRefInterval=setInterval(function(){var i;(i=r.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(r.floaterRefInterval),r.setState({needsUpdate:!1}),r.initPopper())},50)}},{key:"changeWrapperPosition",value:function(r){var i=r.target,o=r.wrapperOptions;this.setState({positionWrapper:o.position&&!!i})}},{key:"toggle",value:function(r){var i=this.state.status,o=i===oe.OPEN?oe.CLOSING:oe.OPENING;V.undefined(r)||(o=r),this.setState({status:o})}},{key:"debug",get:function(){var r=this.props.debug;return r||vt()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var r=this.props,i=r.disableHoverToClick,o=r.event;return o==="hover"&&Fi()&&!i?"click":o}},{key:"options",get:function(){var r=this.props.options;return(0,so.default)(s3,r||{})}},{key:"styles",get:function(){var r=this,i=this.state,o=i.status,l=i.positionWrapper,s=i.statusWrapper,c=this.props.styles,d=(0,so.default)(E3(c),c);if(l){var u;[oe.IDLE].indexOf(o)===-1||[oe.IDLE].indexOf(s)===-1?u=d.wrapperPosition:u=this.wrapperPopper.styles,d.wrapper=Ce(Ce({},d.wrapper),u)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Ce(Ce({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},l||(w3.forEach(function(p){r.wrapperStyles[p]=m[p]}),d.wrapper=Ce(Ce({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!vt())return null;var r=this.props.target;return r?V.domElement(r)?r:document.querySelector(r):this.childRef||this.wrapperRef}},{key:"render",value:function(){var r=this.state,i=r.currentPlacement,o=r.positionWrapper,l=r.status,s=this.props,c=s.children,d=s.component,u=s.content,m=s.disableAnimation,p=s.footer,v=s.hideArrow,f=s.id,y=s.open,k=s.showCloseButton,b=s.style,h=s.target,g=s.title,E=a.createElement(Z0,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},c),x={};return o?x.wrapperInPortal=E:x.wrapperAsChildren=E,a.createElement("span",null,a.createElement(F0,{hasChildren:!!c,id:f,placement:i,setRef:this.setFloaterRef,target:h,zIndex:this.styles.options.zIndex},a.createElement(_0,{component:d,content:u,disableAnimation:m,footer:p,handleClick:this.handleClick,hideArrow:v||i==="center",open:y,placement:i,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:k,status:l,styles:this.styles,title:g}),x.wrapperInPortal),x.wrapperAsChildren)}}]),n}(a.Component);Pe(Do,"propTypes",{autoOpen:O.default.bool,callback:O.default.func,children:O.default.node,component:E1(O.default.oneOfType([O.default.func,O.default.element]),function(e){return!e.content}),content:E1(O.default.node,function(e){return!e.component}),debug:O.default.bool,disableAnimation:O.default.bool,disableFlip:O.default.bool,disableHoverToClick:O.default.bool,event:O.default.oneOf(["hover","click"]),eventDelay:O.default.number,footer:O.default.node,getPopper:O.default.func,hideArrow:O.default.bool,id:O.default.oneOfType([O.default.string,O.default.number]),offset:O.default.number,open:O.default.bool,options:O.default.object,placement:O.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:O.default.bool,style:O.default.object,styles:O.default.object,target:O.default.oneOfType([O.default.object,O.default.string]),title:O.default.node,wrapperOptions:O.default.shape({offset:O.default.number,placement:O.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:O.default.bool})});Pe(Do,"defaultProps",{autoOpen:!1,callback:k1,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:k1,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var C3=mt(md(),1),S3=Object.defineProperty,x3=(e,t,n)=>t in e?S3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t,n)=>(x3(e,typeof t!="symbol"?t+"":t,n),n),ue={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ct={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},K={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ee={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function jt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function I0(e){return e?e.getBoundingClientRect():null}function M3(){let{body:e,documentElement:t}=document;return!e||!t?0:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}function zt(e){return typeof e=="string"?document.querySelector(e):e}function N3(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Jr(e,t,n){if(!e)return Jt();let r=(0,c0.default)(e);if(r){if(r.isSameNode(Jt()))return n?document:Jt();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Jt()}return r}function Xr(e,t){if(!e)return!1;let n=Jr(e,t);return n?!n.isSameNode(Jt()):!1}function A3(e){return e.offsetParent!==document.body}function Fa(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;let{nodeName:n}=e,r=N3(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Fa(e.parentNode,t):!1}function F3(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){let{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function O3(e,t,n){var r;let i=I0(e),o=Jr(e,n),l=Xr(e,n),s=0,c=(r=i?.top)!=null?r:0;return o instanceof HTMLElement&&(s=o.scrollTop,!l&&!Fa(e)&&(c+=s),o.isSameNode(Jt())||(c+=Jt().scrollTop)),Math.floor(c-t)}function L3(e,t,n){var r;if(!e)return 0;let{offsetTop:i=0,scrollTop:o=0}=(r=(0,c0.default)(e))!=null?r:{},l=e.getBoundingClientRect().top+o;i&&(Xr(e,n)||A3(e))&&(l-=i);let s=Math.floor(l-t);return s<0?0:s}function Jt(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function T3(e,t){let{duration:n,element:r}=t;return new Promise((i,o)=>{let{scrollTop:l}=r,s=e>l?e-l:l-e;np.default.top(r,e,{duration:s<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var ea=qn!==void 0;function R0(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Ht(e){let t=[],n=r=>{if(typeof r=="string"||typeof r=="number")t.push(r);else if(Array.isArray(r))r.forEach(i=>n(i));else if(li(r)){let{children:i}=r.props;Array.isArray(i)?i.forEach(o=>n(o)):n(i)}};return n(e),t.join(" ").trim()}function _3(e,t){return!I.plainObject(e)||!I.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Z3(e){let t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,l,s)=>o+o+l+l+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function w1(e){return e.disableBeacon||e.placement==="center"}function C1(){return!["chrome","safari","firefox","opera"].includes(R0())}function ln({data:e,debug:t=!1,title:n,warn:r=!1}){let i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{I.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function I3(e){let{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:l}=e;return!o.disableScrolling&&(!t||i||n===K.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Fa(l))&&r!==n&&[K.BEACON,K.TOOLTIP].includes(n)}var R3={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},B0={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},B3={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:B0,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},P3={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},V3={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},ta={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},S1={borderRadius:4,position:"absolute"};function j3(e,t){let n=(0,Mi.default)(e??{},t??{}),r=(0,Mi.default)(V3,n.options||{}),{width:i}=r;window.innerWidth>480&&(i=380),"width"in r&&(i=typeof r.width=="number"&&window.innerWidthP0(n,t)):(ln({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var D3={action:"init",controlled:!1,index:0,lifecycle:K.INIT,size:0,status:ee.IDLE},M1=["action","index","lifecycle","status"],z3=class{constructor(e){R(this,"beaconPopper"),R(this,"tooltipPopper"),R(this,"data",new Map),R(this,"listener"),R(this,"store",new Map),R(this,"addListener",i=>{this.listener=i}),R(this,"setSteps",i=>{let{size:o,status:l}=this.getState(),s={size:i.length,status:l};this.data.set("steps",i),l===ee.WAITING&&!o&&i.length&&(s.status=ee.RUNNING),this.setState(s)}),R(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),R(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),R(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),R(this,"close",()=>{let{index:i,status:o}=this.getState();o===ee.RUNNING&&this.setState({...this.getNextState({action:ue.CLOSE,index:i+1})})}),R(this,"go",i=>{let{controlled:o,status:l}=this.getState();if(o||l!==ee.RUNNING)return;let s=this.getSteps()[i];this.setState({...this.getNextState({action:ue.GO,index:i}),status:s?l:ee.FINISHED})}),R(this,"info",()=>this.getState()),R(this,"next",()=>{let{index:i,status:o}=this.getState();o===ee.RUNNING&&this.setState(this.getNextState({action:ue.NEXT,index:i+1}))}),R(this,"open",()=>{let{status:i}=this.getState();i===ee.RUNNING&&this.setState({...this.getNextState({action:ue.UPDATE,lifecycle:K.TOOLTIP})})}),R(this,"prev",()=>{let{index:i,status:o}=this.getState();o===ee.RUNNING&&this.setState({...this.getNextState({action:ue.PREV,index:i-1})})}),R(this,"reset",(i=!1)=>{let{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:ue.RESET,index:0}),status:i?ee.RUNNING:ee.READY})}),R(this,"skip",()=>{let{status:i}=this.getState();i===ee.RUNNING&&this.setState({action:ue.SKIP,lifecycle:K.INIT,status:ee.SKIPPED})}),R(this,"start",i=>{let{index:o,size:l}=this.getState();this.setState({...this.getNextState({action:ue.START,index:I.number(i)?i:o},!0),status:l?ee.RUNNING:ee.WAITING})}),R(this,"stop",(i=!1)=>{let{index:o,status:l}=this.getState();[ee.FINISHED,ee.SKIPPED].includes(l)||this.setState({...this.getNextState({action:ue.STOP,index:o+(i?1:0)}),status:ee.PAUSED})}),R(this,"update",i=>{var o;if(!_3(i,M1))throw new Error(`State is not valid. Valid keys: ${M1.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:ue.UPDATE},!0)})});let{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:ue.INIT,controlled:I.number(n),continuous:t,index:I.number(n)?n:0,lifecycle:K.INIT,status:r.length?ee.READY:ee.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",size:this.store.get("size")||0,status:this.store.get("status")||""}:{...D3}}getNextState(e,t=!1){var n,r,i,o;let{action:l,controlled:s,index:c,size:d,status:u}=this.getState(),m=I.number(e.index)?e.index:c,p=s&&!t?c:Math.min(Math.max(m,0),d);return{action:(n=e.action)!=null?n:l,controlled:s,index:p,lifecycle:(r=e.lifecycle)!=null?r:K.INIT,size:(i=e.size)!=null?i:d,status:p===d?ee.FINISHED:(o=e.status)!=null?o:u}}getSteps(){let e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){let t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){let n=this.getState(),{action:r,index:i,lifecycle:o,size:l,status:s}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("size",l),this.store.set("status",s),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function U3(e){return new z3(e)}var $3=class{constructor(e,t){if(R(this,"element"),R(this,"options"),R(this,"canBeTabbed",n=>{let{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),R(this,"canHaveFocus",n=>{let r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),R(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),R(this,"handleKeyDown",n=>{let{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),R(this,"interceptTab",n=>{n.preventDefault();let r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),R(this,"isHidden",n=>{let r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),R(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),R(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),R(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),R(this,"setFocus",()=>{let{selector:n}=this.options;if(!n)return;let r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},W3=class extends Bt{constructor(e){if(super(e),R(this,"beacon",null),R(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(` + @keyframes joyride-beacon-inner { + 20% { + opacity: 0.9; + } + + 90% { + opacity: 0.7; + } + } + + @keyframes joyride-beacon-outer { + 0% { + transform: scale(1); + } + + 45% { + opacity: 0.7; + transform: scale(0.75); + } + + 100% { + opacity: 0.9; + transform: scale(1); + } + } + `)),t.appendChild(n)}componentDidMount(){let{shouldFocus:e}=this.props;setTimeout(()=>{I.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){let e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){let{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:l,step:s,styles:c}=this.props,d=I.string(i.open)?i.open:(0,C3.default)(i.open),u={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d},m;return e?m=S(e,{continuous:t,index:n,isLastStep:r,size:l,step:s,...u}):m=S("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...u},S("span",{style:c.beaconInner}),S("span",{style:c.beaconOuter})),m}};function G3({styles:e}){return S("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var q3=G3,Y3=class extends Bt{constructor(){super(...arguments),R(this,"isActive",!1),R(this,"resizeTimeout"),R(this,"scrollTimeout"),R(this,"scrollParent"),R(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),R(this,"handleMouseMove",e=>{let{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:l}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=s>=o&&s<=o+n,u=c>=r&&c<=r+l&&d;u!==t&&this.updateState({mouseOverSpotlight:u})}),R(this,"handleScroll",()=>{let{target:e}=this.props,t=zt(e);if(this.scrollParent!==document){let{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Fa(t,"sticky")&&this.updateState({})}),R(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){let{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=zt(r);this.scrollParent=Jr(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;let{lifecycle:n,spotlightClicks:r}=this.props,{changed:i}=Fr(e,this.props);i("lifecycle",K.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{let{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(r&&n===K.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==K.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get spotlightStyles(){var e,t,n;let{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:l=0,styles:s,target:c}=this.props,d=zt(c),u=I0(d),m=Fa(d),p=O3(d,l,i);return{...C1()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=u?.height)!=null?e:0)+l*2),left:Math.round(((t=u?.left)!=null?t:0)-l),opacity:r?1:0,pointerEvents:o?"none":"auto",position:m?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((n=u?.width)!=null?n:0)+l*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){let{mouseOverSpotlight:e,showSpotlight:t}=this.state,{disableOverlay:n,disableOverlayClose:r,lifecycle:i,onClickOverlay:o,placement:l,styles:s}=this.props;if(n||i!==K.TOOLTIP)return null;let c=s.overlay;C1()&&(c=l==="center"?s.overlayLegacyCenter:s.overlayLegacy);let d={cursor:r?"default":"pointer",height:M3(),pointerEvents:e?"none":"auto",...c},u=l!=="center"&&t&&S(q3,{styles:this.spotlightStyles});if(R0()==="safari"){let{mixBlendMode:m,zIndex:p,...v}=d;u=S("div",{style:{...v}},u),delete d.backgroundColor}return S("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:o,role:"presentation",style:d},u)}},Q3=class extends Bt{constructor(){super(...arguments),R(this,"node",null)}componentDidMount(){let{id:e}=this.props;jt()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),ea||this.renderReact15())}componentDidUpdate(){jt()&&(ea||this.renderReact15())}componentWillUnmount(){!jt()||!this.node||(ea||sl(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!jt())return;let{children:e}=this.props;this.node&&cl(this,e,this.node)}renderReact16(){if(!jt()||!ea)return null;let{children:e}=this.props;return this.node?qn(e,this.node):null}render(){return ea?this.renderReact16():null}};function K3({styles:e,...t}){let{color:n,height:r,width:i,...o}=e;return a.createElement("button",{style:o,type:"button",...t},a.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",null,a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var J3=K3;function X3(e){let{backProps:t,closeProps:n,continuous:r,index:i,isLastStep:o,primaryProps:l,size:s,skipProps:c,step:d,tooltipProps:u}=e,{content:m,hideBackButton:p,hideCloseButton:v,hideFooter:f,locale:y,showProgress:k,showSkipButton:b,styles:h,title:g}=d,{back:E,close:x,last:B,next:H,skip:ae}=y,re={primary:x};return r&&(re.primary=o?B:H,k&&(re.primary=S("span",null,re.primary," (",i+1,"/",s,")"))),b&&!o&&(re.skip=S("button",{"aria-live":"off","data-test-id":"button-skip",style:h.buttonSkip,type:"button",...c},ae)),!p&&i>0&&(re.back=S("button",{"data-test-id":"button-back",style:h.buttonBack,type:"button",...t},E)),re.close=!v&&S(J3,{"data-test-id":"button-close",styles:h.buttonClose,...n}),S("div",{key:"JoyrideTooltip","aria-label":Ht(g)||Ht(m),className:"react-joyride__tooltip",style:h.tooltip,...u},S("div",{style:h.tooltipContainer},g&&S("h1",{"aria-label":Ht(g),style:h.tooltipTitle},g),S("div",{style:h.tooltipContent},m)),!f&&S("div",{style:h.tooltipFooter},S("div",{style:h.tooltipFooterSpacer},re.skip),re.back,S("button",{"data-test-id":"button-primary",style:h.buttonNext,type:"button",...l},re.primary)),re.close)}var e7=X3,t7=class extends Bt{constructor(){super(...arguments),R(this,"handleClickBack",e=>{e.preventDefault();let{helpers:t}=this.props;t.prev()}),R(this,"handleClickClose",e=>{e.preventDefault();let{helpers:t}=this.props;t.close()}),R(this,"handleClickPrimary",e=>{e.preventDefault();let{continuous:t,helpers:n}=this.props;if(!t){n.close();return}n.next()}),R(this,"handleClickSkip",e=>{e.preventDefault();let{helpers:t}=this.props;t.skip()}),R(this,"getElementsProps",()=>{let{continuous:e,isLastStep:t,setTooltipRef:n,step:r}=this.props,i=Ht(r.locale.back),o=Ht(r.locale.close),l=Ht(r.locale.last),s=Ht(r.locale.next),c=Ht(r.locale.skip),d=e?s:o;return t&&(d=l),{backProps:{"aria-label":i,"data-action":"back",onClick:this.handleClickBack,role:"button",title:i},closeProps:{"aria-label":o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:o},primaryProps:{"aria-label":d,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:d},skipProps:{"aria-label":c,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:c},tooltipProps:{"aria-modal":!0,ref:n,role:"alertdialog"}}})}render(){let{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:l,tooltipComponent:s,...c}=o,d;if(s){let u={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r};d=S(s,{...u})}else d=S(e7,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},n7=class extends Bt{constructor(){super(...arguments),R(this,"scope",null),R(this,"tooltip",null),R(this,"handleClickHoverBeacon",e=>{let{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:K.TOOLTIP})}),R(this,"handleClickOverlay",()=>{let{helpers:e,step:t}=this.props;t.disableOverlayClose||e.close()}),R(this,"setTooltipRef",e=>{this.tooltip=e}),R(this,"setPopper",(e,t)=>{var n;let{action:r,step:i,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&o.getPopper("tooltip")&&o.update({action:r,lifecycle:K.READY}),(n=i.floaterProps)!=null&&n.getPopper&&i.floaterProps.getPopper(e,t)}),R(this,"renderTooltip",e=>{let{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return S(t7,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){let{debug:e,index:t}=this.props;ln({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;let{action:n,callback:r,continuous:i,controlled:o,debug:l,index:s,lifecycle:c,size:d,status:u,step:m,store:p}=this.props,{changed:v,changedFrom:f}=Fr(e,this.props),y={action:n,controlled:o,index:s,lifecycle:c,size:d,status:u},k=i&&n!==ue.CLOSE&&(s>0||n===ue.PREV),b=v("action")||v("index")||v("lifecycle")||v("status"),h=f("lifecycle",[K.TOOLTIP,K.INIT],K.INIT),g=v("action",[ue.NEXT,ue.PREV,ue.SKIP,ue.CLOSE]),E=o&&s===e.index;if(g&&(h||E)&&r({...y,index:e.index,lifecycle:K.COMPLETE,step:e.step,type:ct.STEP_AFTER}),m.placement==="center"&&u===ee.RUNNING&&v("index")&&n!==ue.START&&c===K.INIT&&p.update({lifecycle:K.READY}),b){let x=zt(m.target),B=!!x;B&&F3(x)?(f("status",ee.READY,ee.RUNNING)||f("lifecycle",K.INIT,K.READY))&&r({...y,step:m,type:ct.STEP_BEFORE}):(console.warn(B?"Target not visible":"Target not mounted",m),r({...y,type:ct.TARGET_NOT_FOUND,step:m}),o||p.update({index:s+(n===ue.PREV?-1:1)}))}f("lifecycle",K.INIT,K.READY)&&p.update({lifecycle:w1(m)||k?K.TOOLTIP:K.BEACON}),v("index")&&ln({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:l}),v("lifecycle",K.BEACON)&&r({...y,step:m,type:ct.BEACON}),v("lifecycle",K.TOOLTIP)&&(r({...y,step:m,type:ct.TOOLTIP}),this.tooltip&&(this.scope=new $3(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),f("lifecycle",[K.TOOLTIP,K.INIT],K.INIT)&&((t=this.scope)==null||t.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){let{lifecycle:e,step:t}=this.props;return w1(t)||e===K.TOOLTIP}render(){let{continuous:e,debug:t,index:n,lifecycle:r,nonce:i,shouldScroll:o,size:l,step:s}=this.props,c=zt(s.target);return!P0(s)||!I.domElement(c)?null:S("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},S(Q3,{id:"react-joyride-portal"},S(Y3,{...s,debug:t,lifecycle:r,onClickOverlay:this.handleClickOverlay})),S(Do,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},S(W3,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===l,locale:s.locale,nonce:i,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:l,step:s,styles:s.styles})))}},V0=class extends Bt{constructor(e){super(e),R(this,"helpers"),R(this,"store"),R(this,"callback",l=>{let{callback:s}=this.props;I.function(s)&&s(l)}),R(this,"handleKeyboard",l=>{let{index:s,lifecycle:c}=this.state,{steps:d}=this.props,u=d[s];c===K.TOOLTIP&&l.code==="Escape"&&u&&!u.disableCloseOnEsc&&this.store.close()}),R(this,"syncState",l=>{this.setState(l)});let{debug:t,getHelpers:n,run:r,stepIndex:i}=e;this.store=U3({...e,controlled:r&&I.number(i)}),this.helpers=this.store.getHelpers();let{addListener:o}=this.store;ln({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!jt())return;let{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;x1(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!jt())return;let{action:n,controlled:r,index:i,lifecycle:o,status:l}=this.state,{debug:s,run:c,stepIndex:d,steps:u}=this.props,{stepIndex:m,steps:p}=e,{reset:v,setSteps:f,start:y,stop:k,update:b}=this.store,{changed:h}=Fr(e,this.props),{changed:g,changedFrom:E}=Fr(t,this.state),x=na(u[i],this.props),B=!He(p,u),H=I.number(d)&&h("stepIndex"),ae=zt(x.target);if(B&&(x1(u,s)?f(u):console.warn("Steps are not valid",u)),h("run")&&(c?y(d):k()),H){let ve=I.number(m)&&m=0?y:0,r===ee.RUNNING&&T3(y,{element:f,duration:l}).then(()=>{setTimeout(()=>{var h;(h=this.store.getPopper("tooltip"))==null||h.instance.update()},10)})}}render(){if(!jt())return null;let{index:e,status:t}=this.state,{continuous:n=!1,debug:r=!1,nonce:i,scrollToFirstStep:o=!1,steps:l}=this.props,s;if(t===ee.RUNNING&&l[e]){let c=na(l[e],this.props);s=S(n7,{...this.state,callback:this.callback,continuous:n,debug:r,helpers:this.helpers,nonce:i,shouldScroll:!c.disableScrolling&&(e!==0||o),step:c,store:this.store})}return S("div",{className:"react-joyride"},s)}};R(V0,"defaultProps",P3);var a7=V0,r7=mt(Br()),i7=w(ci)(({theme:e})=>({padding:"4px 8px",fontSize:e.typography.size.s1})),o7=w(rt)(({theme:e})=>({fontSize:e.typography.size.s2,"&:hover [data-badge], [data-badge=true]":{background:"#E3F3FF",borderColor:"rgba(2, 113, 182, 0.1)",color:"#0271B6"}}),({active:e,theme:t})=>!e&&me({"&:hover":{color:t.base==="light"?t.color.defaultText:t.color.light}})),l7=w.span(({theme:e})=>({color:e.base==="light"?e.color.defaultText:e.color.light})),s7=a.memo(function({count:e,onEnable:t,onDisable:n}){let[r,i]=Te(!1),o=()=>{i(!r),r?n():t()};return le(()=>()=>n(),[n]),a.createElement(o7,{id:"changes-found-filter",active:r,onClick:o},a.createElement(i7,{status:"warning","data-badge":r},e),a.createElement(l7,null,(0,r7.default)("Change",e)))}),c7=()=>!0,N1=({status:e})=>e?.[U]?.status==="warn",j0="enableFilter",d7=({api:e})=>{let t=Y(()=>{e.experimental_setFilter(U,N1),e.emit(j0,U,N1)},[e]),n=Y(()=>e.experimental_setFilter(U,c7),[e]),{status:r}=pn(),i=Object.values(r).filter(o=>o[U]?.status==="warn");return i.length?a.createElement("span",{id:"sidebar-bottom-wrapper"},a.createElement(s7,{count:i.length,onEnable:t,onDisable:n})):null},A1=[void 0,"EQUAL","FIXED","ADDED","CHANGED","REMOVED","CAPTURE_ERROR","SYSTEM_ERROR"],_r=([e,...t])=>t.reduce((n,r)=>A1.indexOf(r)>A1.indexOf(n)?r:n,e);function u7(e){return(e.FAILED??0)>0?"FAILED":(e.IN_PROGRESS??0)>0?"IN_PROGRESS":(e.BROKEN??0)>0?"BROKEN":(e.DENIED??0)>0?"DENIED":(e.PENDING??0)>0?"PENDING":(e.ACCEPTED??0)>0?"ACCEPTED":"PASSED"}function zo(e){let{statusCounts:t,isInProgress:n,changeCount:r,brokenCount:i,resultsByBrowser:o,resultsByMode:l,modesByName:s}=e.reduce((m,p)=>(m.statusCounts[p.status]=(m.statusCounts[p.status]||0)+1,p.status==="IN_PROGRESS"&&(m.isInProgress=!0),p.result&&["CHANGED","ADDED"].includes(p.result)&&(m.changeCount+=1),p.result&&["CAPTURE_ERROR","SYSTEM_ERROR"].includes(p.result)&&(m.brokenCount+=1),p.comparisons?.forEach(({browser:v,result:f})=>{m.resultsByBrowser[v.id]=_r([f??void 0,m.resultsByBrowser[v.id]])}),p.comparisons?.forEach(({result:v})=>{m.resultsByMode[p.mode.name]=_r([v??void 0,m.resultsByMode[p.mode.name]])}),m.modesByName[p.mode.name]=p.mode,m),{statusCounts:{},isInProgress:!1,changeCount:0,brokenCount:0,resultsByBrowser:{},resultsByMode:{},modesByName:{}}),c=e.length?Object.fromEntries(e[0].comparisons.map(m=>[m.browser.id,m.browser])):{},d=Object.entries(o).map(([m,p])=>({browser:c[m],result:p})),u=Object.entries(l).map(([m,p])=>({mode:s[m],result:p}));return{status:u7(t),isInProgress:n,changeCount:r,brokenCount:i,browserResults:d,modeResults:u}}var m7=e=>{try{return[tl()[0][e],el()[e]]}catch{return[null,null]}},H0=({result:e})=>e!=="EQUAL"&&e!=="FIXED",p7=(e,t)=>{let n=e.filter(i=>i.comparisons.some(H0)),r=n.length?n:e;return r.find(i=>i.mode.name===t)||r[0]},h7=(e,t)=>{let n=e.filter(H0),r=n.length?n:e;return r.find(i=>i.browser.id===t)||r[0]};function f7(e){let[t,n]=Te(!0),r=m7("theme")[1],[i,o]=Le(Ed),[l,s]=Le(kd),c,d;return e.length&&(c=t?p7(e,i):e.find(({mode:u})=>u.name===i)||e[0],d=t?h7(c.comparisons,l):c?.comparisons.find(({browser:u})=>u.id===l)||c?.comparisons[0],t&&(i!==c?.mode.name&&o(c?.mode.name),l!==d?.browser.id&&s(d?.browser.id),n(!1))),{modeOrder:r?.toolbar?.items?.map(u=>u.title),selectedTest:c,selectedComparison:d,onSelectBrowser:Y(u=>s(u.id),[s]),onSelectMode:Y(u=>o(u.name),[o])}}var g7=ht(` + query AddonVisualTestsBuild( + $projectId: ID! + $branch: String! + $gitUserEmailHash: String! + $repositoryOwnerName: String + $storyId: String! + $testStatuses: [TestStatus!]! + $selectedBuildId: ID! + $hasSelectedBuildId: Boolean! + ) { + project(id: $projectId) { + name + manageUrl + account { + billingUrl + suspensionReason + } + features { + uiTests + } + lastBuildOnBranch: lastBuild( + branches: [$branch] + repositoryOwnerName: $repositoryOwnerName + localBuilds: { localBuildEmailHash: $gitUserEmailHash } + ) { + ...LastBuildOnBranchBuildFields + ...SelectedBuildFields @skip(if: $hasSelectedBuildId) + } + lastBuild { + id + slug + branch + } + } + selectedBuild: build(id: $selectedBuildId) @include(if: $hasSelectedBuildId) { + ...SelectedBuildFields + } + viewer { + preferences { + vtaOnboarding + } + projectMembership(projectId: $projectId) { + userCanReview: meetsAccessLevel(minimumAccessLevel: REVIEWER) + } + } + } +`),v7=ht(` + fragment LastBuildOnBranchBuildFields on Build { + __typename + id + status + committedAt + ... on StartedBuild { + testsForStatus: tests(first: 1000, statuses: $testStatuses) { + nodes { + ...StatusTestFields + } + } + testsForStory: tests(storyId: $storyId) { + nodes { + ...LastBuildOnBranchTestFields + } + } + } + ... on CompletedBuild { + result + testsForStatus: tests(first: 1000, statuses: $testStatuses) { + nodes { + ...StatusTestFields + } + } + testsForStory: tests(storyId: $storyId) { + nodes { + ...LastBuildOnBranchTestFields + } + } + } + } +`),y7=ht(` + fragment SelectedBuildFields on Build { + __typename + id + number + branch + commit + committedAt + uncommittedHash + status + ... on StartedBuild { + startedAt + testsForStory: tests(storyId: $storyId) { + nodes { + ...StoryTestFields + } + } + } + ... on CompletedBuild { + startedAt + testsForStory: tests(storyId: $storyId) { + nodes { + ...StoryTestFields + } + } + } + } +`),D0=ht(` + fragment StatusTestFields on Test { + id + status + result + story { + storyId + } + } +`),b7=ht(` + fragment LastBuildOnBranchTestFields on Test { + status + result + } +`),E7=ht(` + fragment StoryTestFields on Test { + id + status + result + webUrl + comparisons { + id + result + browser { + id + key + name + version + } + captureDiff { + diffImage(signed: true) { + imageUrl + imageWidth + } + focusImage(signed: true) { + imageUrl + imageWidth + } + } + headCapture { + captureImage(signed: true) { + backgroundColor + imageUrl + imageWidth + thumbnailUrl + } + captureError { + kind + ... on CaptureErrorInteractionFailure { + error + } + ... on CaptureErrorJSError { + error + } + ... on CaptureErrorFailedJS { + error + } + } + } + baseCapture { + captureImage(signed: true) { + imageUrl + imageWidth + } + } + } + mode { + name + globals + } + story { + storyId + name + component { + name + } + } + } +`),k7=ht(` + mutation ReviewTest($input: ReviewTestInput!) { + reviewTest(input: $input) { + updatedTests { + id + status + } + userErrors { + ... on UserError { + __typename + message + } + ... on BuildSupersededError { + build { + id + } + } + ... on TestUnreviewableError { + test { + id + } + } + } + } + } +`),w7=({projectId:e,storyId:t,gitInfo:n,selectedBuildInfo:r})=>{let[{data:i,error:o,operation:l},s]=_o({query:g7,variables:{projectId:e,storyId:t,testStatuses:Object.keys(i0),branch:n.branch||"",...n.slug?{repositoryOwnerName:n.slug.split("/",1)[0]}:{},gitUserEmailHash:n.userEmailHash,selectedBuildId:r?.buildId||"",hasSelectedBuildId:!!r}});le(()=>{let y=setInterval(s,5e3);return()=>clearInterval(y)},[s]);let c=l&&t&&l.variables.storyId!==t,d=Cn(v7,i?.project?.lastBuildOnBranch),u=[...Cn(b7,d&&"testsForStory"in d&&d.testsForStory?d.testsForStory.nodes:[])],m=d?.committedAt>n.committedAt,p=!!d&&!m,v=!!d&&u.every(y=>y.status!=="IN_PROGRESS"),f=Cn(y7,i?.selectedBuild??(v?i?.project?.lastBuildOnBranch:void 0));return{account:i?.project?.account,features:i?.project?.features,manageUrl:i?.project?.manageUrl,hasData:!!i&&!c,hasProject:!!i?.project,hasSelectedBuild:f?.branch.split(":").at(-1)===n.branch,lastBuildOnBranch:d,lastBuildOnBranchIsNewer:m,lastBuildOnBranchIsReady:v,lastBuildOnBranchIsSelectable:p,selectedBuild:f,selectedBuildMatchesGit:f?.branch.split(":").at(-1)===n.branch&&f?.commit===n.commit&&f?.uncommittedHash===n.uncommittedHash,rerunQuery:s,queryError:o,userCanReview:!!i?.viewer?.projectMembership?.userCanReview,vtaOnboarding:i?.viewer?.preferences?.vtaOnboarding}},Uo=Qe(null),z0=Qe(null),C7=()=>Nt(Uo,"Build"),U0=()=>{let{selectedBuild:e}=Nt(Uo,"Build");if(!e)throw new Error("No selectedBuild on Build context");return e},dn=()=>Nt(z0,"Story"),Oi=({children:e,watchState:t})=>{let n=!!t?.selectedBuild&&"testsForStory"in t.selectedBuild,r=t?.selectedBuild&&"testsForStory"in t.selectedBuild&&t.selectedBuild.testsForStory?.nodes,i=[...Cn(E7,r||[])],o=zo(i),{toggleDiff:l}=Zn();return le(()=>l(o.changeCount>0),[l,o.changeCount]),a.createElement(Uo.Provider,{value:Pt(()=>t,[JSON.stringify(t?.selectedBuild)])},a.createElement(z0.Provider,{value:{hasTests:n,tests:i,summary:o,...f7(i)}},e))},S7=w.div(({width:e,height:t,left:n,top:r})=>({width:`${e}px`,height:`${t}px`,left:`${n}px`,top:`${r}px`,position:"relative",overflow:"hidden"}));function x7({top:e=0,left:t=0,width:n=window.innerWidth,height:r=window.innerHeight,colors:i=["#CA90FF","#FC521F","#66BF3C","#FF4785","#FFAE00","#1EA7FD"],...o}){let[l]=Te(()=>{let s=document.createElement("div");return s.setAttribute("id","confetti-container"),s.setAttribute("style","position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999;"),s});return le(()=>(document.body.appendChild(l),()=>{document.body.removeChild(l)}),[l]),qn(a.createElement(S7,{top:e,left:t,width:n,height:r},a.createElement(Y1.default,{colors:i,drawShape:N7,...o})),l)}function M7(e,t){return Math.floor(Math.random()*(t-e))+e}function N7(e){let t=this;switch(t.shape=t.shape||M7(1,6),t.shape){case 2:{let n=t.w/2,r=t.h/2;e.moveTo(-n+2,-r),e.lineTo(n-2,-r),e.arcTo(n,-r,n,-r+2,2),e.lineTo(n,r-2),e.arcTo(n,r,n-2,r,2),e.lineTo(-n+2,r),e.arcTo(-n,r,-n,r-2,2),e.lineTo(-n,-r+2),e.arcTo(-n,-r,-n+2,-r,2);break}case 3:{e.rect(-4,-4,8,16),e.rect(-12,-4,24,8);break}case 4:{e.rect(-4,-4,8,16),e.rect(-4,-4,24,8);break}case 1:{e.arc(0,0,t.radius,0,2*Math.PI);break}case 5:{e.moveTo(16,4),e.lineTo(4,24),e.lineTo(24,24);break}case 6:{e.arc(4,-4,4,-Math.PI/2,0),e.lineTo(4,0);break}}e.closePath(),e.fill()}var A7=w.div(({theme:e})=>({background:e.base==="light"?e.color.lightest:"#292A2C",width:260,padding:15,borderRadius:5,boxShadow:"0px 0px 32px 0px #00000029"})),F7=w.div({display:"flex",flexDirection:"column",alignItems:"flex-start"}),O7=w.div(({theme:e})=>({fontSize:13,lineHeight:"18px",fontWeight:700,color:e.color.defaultText})),L7=w.div(({theme:e})=>({fontSize:13,lineHeight:"18px",textAlign:"start",color:e.color.defaultText,margin:0,marginTop:5})),T7=w.div({display:"flex",justifyContent:"flex-end",marginTop:15}),_7=({isLastStep:e,step:t,primaryProps:n,tooltipProps:r})=>a.createElement(A7,{...r},a.createElement(F7,null,t.title&&a.createElement(O7,null,t.title),a.createElement(L7,null,t.content)),(t.hideNextButton||t.hideBackButton)&&a.createElement(T7,{id:"buttonSkip"},!t.hideSkipButton&&!e&&a.createElement(se,{size:"medium",onClick:t.onSkipWalkthroughButtonClick,link:!0,style:{paddingRight:12,paddingLeft:12,marginRight:8}},"Skip"),!t.hideNextButton&&a.createElement(se,{...n,onClick:n.onClick,primary:!0,...t.onNextButtonClick?{onClick:t.onNextButtonClick}:{}},t.nextButtonText||"Next"))),Z7=({managerApi:e,skipWalkthrough:t,startWalkthrough:n,completeWalkthrough:r})=>{let i=qt(),o=dn(),l=o?.selectedTest?.result==="CHANGED",s=o?.selectedTest?.status!=="ACCEPTED",c=JSON.stringify(pn().layout),d=Ie(c);d.current!==c&&(window.dispatchEvent(new Event("resize")),d.current=c),le(()=>{n()}),le(()=>{e.getCurrentStoryData()?.type!=="story"&&e.jumpToStory(1),e.togglePanel(!0),e.togglePanelPosition("right"),e.setSelectedPanel(tn)},[e]);let[u,m]=nt("showConfetti",!1),[p,v]=nt("stepIndex",0),f=()=>v((y=0)=>y+1);return le(()=>{let y=document.getElementById("storybook-explorer-tree"),k=Array.from(y instanceof HTMLElement?y.children:[]).filter(b=>b instanceof HTMLElement).slice(1);return k.forEach(b=>b.style.display="none"),()=>k.forEach(b=>b.style.display="")},[]),le(()=>{e.once(j0,()=>{v(1),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},100)})},[e,v]),le(()=>{o?.selectedTest?.status==="ACCEPTED"&&p===5&&(m(!0),v(6))},[o?.selectedTest?.status,u,m,p,v]),a.createElement(a.Fragment,null,u&&a.createElement(x7,{numberOfPieces:800,recycle:!1,tweenDuration:2e4,onConfettiComplete:y=>{y?.reset(),m(!1)}}),a.createElement(a7,{steps:[{target:"#sidebar-bottom-wrapper",title:"Changes found",content:a.createElement(a.Fragment,null,"The visual tests addon will detect changes in all of your stories and allow you to review them before opening a pull request.",a.createElement("br",null),a.createElement("br",null),"Click this button to see the changes in the sidebar."),floaterProps:{target:"#changes-found-filter",options:{preventOverflow:{boundariesElement:"window"}}},placement:"top",disableBeacon:!0,hideNextButton:!0,spotlightClicks:!0,onSkipWalkthroughButtonClick:t},l&&s?{target:"#storybook-explorer-tree > div",title:"Stories with changes",content:a.createElement(a.Fragment,null,"Here you have a filtered list of only stories with changes."),placement:"right",disableBeacon:!0,spotlightClicks:!0,onNextButtonClick:f,onSkipWalkthroughButtonClick:t}:{target:"#storybook-explorer-tree > div",title:"Stories with changes",content:a.createElement(a.Fragment,null,"Here you have a list of all stories in your Storybook.",a.createElement("br",null),a.createElement("br",null),"Select a story with changes to see the exact pixels that changed."),placement:"right",disableBeacon:!0,spotlightClicks:!0,hideNextButton:!0,onSkipWalkthroughButtonClick:t},{target:"#panel-tab-content",title:"Inspect changes",content:a.createElement(a.Fragment,null,"The results of the changes are shown here. The pixels that changed are highlighted in green."),disableBeacon:!0,placement:"left",onNextButtonClick:f,onSkipWalkthroughButtonClick:t},{target:"#button-diff-visible",title:"Toggle the diff",content:a.createElement(a.Fragment,null,"This button shows or hides the visual diff. Use it to make the visual changes in your stories obvious. Try it out."),onNextButtonClick:f,onSkipWalkthroughButtonClick:t,spotlightClicks:!0,disableBeacon:!0,placement:"bottom",disableOverlay:!0},{target:"#button-toggle-snapshot",title:"This is the Switch button",content:a.createElement(a.Fragment,null,"Switch between the baseline snapshot (old) and the latest snapshot. The info bar will let you know which version you're looking at."),onNextButtonClick:f,onSkipWalkthroughButtonClick:t,spotlightClicks:!0,disableBeacon:!0,placement:"bottom",disableOverlay:!0},{target:"#button-toggle-accept-story",title:"Accept changes",content:a.createElement(a.Fragment,null,"If the visual changes are intentional, accept them to update the test baselines. The next time you run visual tests, future changes will be compared to these new baselines. This can be undone."),disableBeacon:!0,spotlightClicks:!0,onNextButtonClick:f,hideNextButton:!0,placement:"bottom",disableOverlay:!0,onSkipWalkthroughButtonClick:t},{target:"#button-toggle-accept-story",title:"Perfection!",placement:"bottom",disableOverlay:!0,content:a.createElement(a.Fragment,null,"You've got the basics down! You can always unaccept if you're not happy with the changes."),onNextButtonClick:f,onSkipWalkthroughButtonClick:t},{target:"#button-run-tests",title:"You are ready to test",placement:"bottom",disableOverlay:!0,content:a.createElement(a.Fragment,null,"Any time you want to run tests, tap this button in the sidebar to see exactly what changed across your Storybook."),disableBeacon:!0,nextButtonText:"Done",onNextButtonClick:r}],continuous:!0,stepIndex:p,spotlightPadding:0,hideBackButton:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,showSkipButton:!0,floaterProps:{options:{offset:{offset:"0, 6"}},styles:{floater:{padding:0,paddingLeft:8,paddingTop:8,filter:i.base==="light"?"drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1))":"drop-shadow(#fff5 0px 0px 0.5px) drop-shadow(#fff5 0px 0px 0.5px)"}}},tooltipComponent:_7,styles:{overlay:{mixBlendMode:"unset",backgroundColor:"none"},spotlight:{backgroundColor:"none",border:`solid 2px ${i.color.secondary}`,boxShadow:"0px 0px 0px 9999px rgba(0,0,0,0.4)"},options:{zIndex:1e4,primaryColor:i.color.secondary,arrowColor:i.base==="light"?i.color.lightest:"#292A2C"}}}))},I7=({content:e})=>{let t=e.split(/\r?\n/);return a.createElement(a.Fragment,null,t.reduce((n,r,i)=>n.concat([i&&a.createElement("br",null),r].filter(Boolean)),[]))},$0=({localBuildProgress:e,title:t})=>a.createElement(n0,{warning:!0},a.createElement(W,null,a.createElement("span",null,t&&a.createElement("b",null,t,": "),a.createElement(I7,{content:hi(Array.isArray(e.originalError)?e.originalError[0]?.message:e.originalError?.message||"Unknown error")}))," ",a.createElement(De,{target:"_blank",href:e.errorDetailsUrl||`${ns}#troubleshooting`,withArrow:!0},e.errorDetailsUrl?"Details":"Troubleshoot"))),R7=({children:e,localBuildProgress:t})=>(Xe("Errors","BuildError"),a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Build failed"),a.createElement(W,{center:!0,muted:!0},"Check the Storybook process on the command line for more details.")),a.createElement($0,{localBuildProgress:t}),e)))),mo=["initialize","build","upload","verify","snapshot"],W0={initialize:{key:"initialize",emoji:"\u{1F680}",renderName:()=>"Initialize build",renderProgress:()=>"Initializing build...",renderComplete:()=>"Initialized",estimateDuration:2e3},build:{key:"build",emoji:"\u{1F3D7}",renderName:()=>"Build Storybook",renderProgress:()=>"Building your Storybook...",renderComplete:()=>"Storybook built",estimateDuration:2e4},upload:{key:"upload",emoji:"\u{1F4E1}",renderName:()=>"Publish your Storybook",renderProgress:({stepProgress:e})=>{let{numerator:t,denominator:n}=e.upload;if(!n||!t)return"Uploading files...";let{value:r,exponent:i}=vi(n,{output:"object",round:1}),{value:o,symbol:l}=vi(t,{exponent:i,output:"object",round:1});return`Uploading files (${o}/${r} ${l})...`},renderComplete:()=>"Publish complete",estimateDuration:2e4},verify:{key:"verify",emoji:"\u{1F50D}",renderName:()=>"Verify your Storybook",renderProgress:()=>"Verifying contents...",renderComplete:()=>"Storybook verified",estimateDuration:2e4},snapshot:{key:"snapshot",emoji:"\u{1F4F8}",renderName:()=>"Run visual tests",renderProgress:({stepProgress:e})=>{let{numerator:t,denominator:n}=e.snapshot;return n?`Running visual tests (${t}/${n})...`:"Running visual tests..."},renderComplete:()=>"Tested your stories",estimateDuration:9e4},aborted:{key:"aborted",emoji:"\u270B",renderName:()=>"Build canceled",renderProgress:()=>"Build canceled",renderComplete:()=>"Build canceled",estimateDuration:0},complete:{key:"complete",emoji:"\u{1F389}",renderName:()=>"Visual tests completed!",renderProgress:()=>"Visual tests completed!",renderComplete:()=>"Visual tests completed!",estimateDuration:0},error:{key:"error",emoji:"\u{1F6A8}",renderName:()=>"Build failed",renderProgress:()=>"Build failed",renderComplete:()=>"Build failed",estimateDuration:0},limited:{key:"error",emoji:"\u{1F6A8}",renderName:()=>"Build limited",renderProgress:()=>"Build limited",renderComplete:()=>"Build limited",estimateDuration:0}},B7={buildProgressPercentage:0,currentStep:mo[0],stepProgress:Object.fromEntries(mo.map(e=>[e,{}]))};JSON.stringify(B7);var $o=({localBuildProgress:e,withEmoji:t=!1,...n})=>{let{emoji:r,renderProgress:i}=W0[e.currentStep],o=i(e);return a.createElement(W,{...n},t&&r," ",o)},G0=w.div(({status:e,theme:t})=>({display:"inline-block",width:6,height:6,borderRadius:"50%",background:e&&{IN_PROGRESS:"transparent",PASSED:t.color.positive,PENDING:t.color.gold,ACCEPTED:t.color.positive,DENIED:t.color.positive,BROKEN:t.color.negative,FAILED:t.color.negative,EQUAL:t.color.positive,FIXED:t.color.positive,ADDED:t.color.gold,CHANGED:t.color.gold,REMOVED:t.color.gold,CAPTURE_ERROR:t.color.negative,SYSTEM_ERROR:t.color.negative,positive:t.color.positive,negative:t.color.negative,warning:t.color.gold,notification:t.color.secondary}[e]}),({overlay:e,theme:t})=>e&&me({position:"absolute",top:-1,right:-2,width:7,height:7,border:"1px solid rgba(0, 0, 0, 0.1)",boxShadow:`0 0 0 2px var(--bg-color, ${t.background.bar})`,boxSizing:"border-box"})),q0=({status:e})=>a.createElement(G0,{status:e}),P7=w.div({position:"relative",display:"inline-flex",justifyContent:"center","img, svg":{verticalAlign:"top"}}),Zr=({status:e,children:t})=>a.createElement(P7,null,t,a.createElement(G0,{overlay:!0,status:e})),V7=w.div(({theme:e})=>({width:220,padding:3,color:e.base==="light"?e.color.defaultText:e.color.light,"& > div":{margin:7}})),Wo=w.div(({theme:e})=>({height:5,background:e.background.hoverable,borderRadius:5,overflow:"hidden"})),Y0=w(Wo)(({theme:e})=>({background:e.color.secondary,transition:"width 3s ease-out"})),j7=Rt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Li=w.svg(({progress:e,theme:t})=>({position:"absolute",width:"24px!important",height:"24px!important",transform:"rotate(-90deg)",color:t.color.secondary,circle:{r:"10",cx:"12",cy:"12",fill:"transparent",stroke:e?"currentColor":t.background.hoverable,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:Math.PI*20}}),({spinner:e,theme:t})=>e&&{animation:`${j7} 1s linear infinite`,circle:{stroke:`${t.color.secondary}33`}}),aa=w(rt)(({theme:e})=>({position:"relative",overflow:"visible",color:e.textMutedColor,marginTop:0,zIndex:1,marginRight:4})),H7=({isDisabled:e=!1,isOutdated:t=!1,isRunning:n=!1,localBuildProgress:r,warning:i,clickWarning:o,startBuild:l,stopBuild:s})=>{if(e)return i?a.createElement(Ne,{tooltip:a.createElement(Be,{note:i}),trigger:"hover",hasChrome:!1},a.createElement(aa,{id:"button-run-tests","aria-label":"Visual Tests locked",disabled:!o,onClick:o},a.createElement(Zr,{status:"warning"},a.createElement(Dt,null)))):a.createElement(aa,{id:"button-run-tests","aria-label":"Visual Tests locked",disabled:!0},a.createElement(Dt,null));if(n&&r){let{buildProgressPercentage:c}=r;return a.createElement(Ne,{trigger:"hover",tooltip:a.createElement(V7,null,a.createElement("div",null,a.createElement($o,{localBuildProgress:r,withEmoji:!0})),a.createElement(Wo,null,typeof c=="number"&&a.createElement(Y0,{style:{width:`${c}%`}})))},a.createElement(aa,{"aria-label":"Stop tests",onClick:()=>s()},a.createElement(U5,{style:{width:10,margin:2}}),a.createElement(Li,{xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",null)),a.createElement(Li,{xmlns:"http://www.w3.org/2000/svg",spinner:!0},a.createElement("circle",{strokeDashoffset:Math.PI*20*(1-c/100)})),typeof c=="number"&&a.createElement(Li,{xmlns:"http://www.w3.org/2000/svg",progress:!0},a.createElement("circle",{strokeDashoffset:Math.PI*20*(1-c/100)}))))}return t?a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Code changes detected; click to run tests"}),trigger:"hover",hasChrome:!1},a.createElement(aa,{id:"button-run-tests","aria-label":"Run tests",onClick:()=>l()},a.createElement(Zr,{status:"notification"},a.createElement(Dt,null)))):a.createElement(Ne,{trigger:"hover",hasChrome:!1,tooltip:a.createElement(Be,{note:"No code changes detected. Rerun tests to take new snapshots."})},a.createElement(aa,{id:"button-run-tests","aria-label":"Run tests",onClick:()=>l()},a.createElement(Dt,null)))},D7=w(W)({display:"flex",flexDirection:"column",gap:10,width:200,marginTop:15});function ei({localBuildProgress:e}){return a.createElement(D7,{center:!0,small:!0},a.createElement(Wo,null,typeof e.buildProgressPercentage=="number"&&a.createElement(Y0,{style:{width:`${e.buildProgressPercentage}%`}})),a.createElement($o,{center:!0,muted:!0,small:!0,localBuildProgress:e}))}var z7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHUSURBVHgB7ZfPTupAFMa/mbb0XkAk6r2516jRnXHlxr0+ib4J+iTqm7Bx5YaVcWPQECUoGiJCpX/mOKcxRo2DILa44Jc0Taad+b45mZkzR+CZaq2+CcsqAWIdoCKSowyFw5WFvwcvLRf1m1Kt0SSv51OkFCVJx+sRa1W1JmuLav16x5Zyf/7PDKQQSAM9RVzd3CH0aUsKEtsz0/nUxBnWmisWAItKkkCbWddF2mQcm1/rEmPiOeJF2/TD+f0pKo0jBKqHUcg5U1ib28ByYfXD78YInDSPRxZnOkE7nogJ2a/jd9FvImNbAz/GgHERZp08pjJ8OA3uMVIh2kELXvAwcB/j6HmnOJQ4Y0kbBW16GGS/wb7CsKYni9AYZ9f6haydhzCEVFGEbtiFH3kYBWMEfts5o3jcUVjIaYOjIvsJfIb4hhQ+WYQTAz/XgDXALuCz4D2ckN7Dt6KhDfzLLcGxMsaORApe2MFbQyrOhq9xpIu12Q3jOMaTcNqdjZ+k0REQLS4UxoXUZ1nFD0KkTffR51dZUhTuNVttpBkF1rq717cmFR3GDdXLxm6tcUudxx4lCRe+XACz1pnWZO2XbMJFKteJXKohMYTeIlRBFO2tLP4vc8sThEpu8pkDBW8AAAAASUVORK5CYII=",U7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAN0SURBVHgBvVdLTxNRFP7uUDpSC7Q8rFSLqWJEExOfC1/xHWPiQuPShS50Y/wP6F9wq1HZuTAxMXFlNGzUhWIQDWICLYhSC4XWlj5m2pnjvS20NNDhltB+i870zpnzffece8/cw7CI4FToDBoa+gB2ACAXaocBmOj3b9/yrDgyGZrtmwpHKK3pZJgm1RLJtEaCK8g5BTcLhmZu2RTlqbezDQpjqAf4FDE9O4+cTmcVRuxmW6uzbuQCgqvD1QI0UJ9CoDMOVUW9YW+0icsBG9YDLQNMjIAS0fxf1u4FvH5A3STtYjHiruoEcGL6/Bb07X3ZMImfZjfYnkNgR86jGsgL4LM1Xz3OXys9F+KQiIGdvQ5ZKLKGBefRte1+DoKG30MWcgKmg9zxF8iCBt8W1slGCaDgCKqCIA8FpEzlIjAXQrWgiNw70mugVpDaBczF9/nXvzy03NxmAo4sqEUrN2rls3YUPLIUkOnoQpOEb0sBWVPDp5l3SOqjuDjeVi5KzYG2x0E9KZi7eCVYVoNEXXgY2YpdvOaf38bgtlfmqJiCZDaO15P9CMS/I9xtILzDKDfg0WD7LwHnzpWRC3w0TiBGbgxGgEejhKiO6gW8+f0cC9l/JadXNCRdVDI42QtcPQrFcwHMubM4HCIv3hmlahjlmXoRIFQlQMx6ObnAQivhzY10SQQnLzrxFAh/GHvxJHsbGSoPSSABjFSoYauugV8LY6saCxEv76bgne5Ec5MCj65DIxMxeDBE9xDIeVEJIh373JICotoMrDDevQlz8fIIpRu5d4tch9IicivPHOuqA8Ts2CisKsBpa7F8yWbMrxgzcw2W77jtTF6Ax+GDFexmFIyyZeQ5zToqhzsgL6DXfQR2xfp006oPF++zKYelrShE/mbIC7ArKo51XYYVnLw6qkaYz1xFJu60tL3SzauhWoUAAd/mHpzedg3Oxsrr4ZQaxUGbu+JzMfM7vWzV7bcEy2+BEOHz9+QL01RiDLqZyadms70FPudueJoKa+V4J/AhzM8t6RJxF8/K4XZepdf43LHg9Gy0e2u7q559wRImQrP8dAwM6dkc6o1UJl+1BhQycg8isUS+XaoXBNd8fIHfGP35geCf8P2p8BwlMxrVEqLxFQ2w4BrnnIK7mHjRpIo+UbRqqBlYjBfyIRjGA7+va0CM/AdEDxpHNfo8owAAAABJRU5ErkJggg==",$7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMJSURBVHgB7VfNblJBFD5z+5e0poXGNqnFRFxoUly0K+vCpG7aFyhrTRofwBcQ6974AIZo1/QFyorEBezsQkhqYqkBSoBaAcWW3+N8dxh+hFJI+Nn0S264d+65c77znXNmGEFVhCPxDRobcxGJVSK20ODgowrt2W2Ln2ojP+IpVyRxxhf5ApcrFR4kchd5hq+w9AnfIhxPvhg3jI93FubJEIKGARkinabOqVTgZ4Zg8Xx+7tbQnAPwddsySzTGLoOJN6anpmjYmJwYx8+qQSNCVXHLyAho3BAY78bo5WemFau6D/0i+vC0fx1zLYFQmmjTJshpV8+BpLrWF6kvuDYFB1GuOQfg+CDG1C90lQIgKKWH8EiFbZooWySanWi18yeRJjbfA7DZkgraZqh3Aoh+a1nl21uNesUqzAk9YaadB/VagMP3X5W9876okYvmVMoyxWZ7jY4pCKSoVnyNQDTZQvOY51g5QIq8kjjIvP2iSG8jhawKuGsCYL5iUYyhxJNFYV6IBkCEWmYAxYpv3EfwJejVI0Gv15RSAFQLprl7AoEknNYnR2S4/Ek1CWTWk5vPdkXWYVV23phKydxk55a9sgYiMprtGRWlzi8Qy9UVaJQUaYENfh0WVXTrUrHoH+qdACK2zYiaI9da+ygQtV4T3N+Y3j0WJlnUQzCtbPDssoreCCDnyCGwL2WO5JrfO+SEm8vKMaJGznW3uI/YJKbbTivXEwENFFVGRqDJaMBJtlhvNbzVXYGxjLyfnVRKOKyda6ClCHXFAyhEHVkjMKnOP2whc6ha4TsPhVknnmNl126xakSLAvsnaD82VzQosG1v/QjSY4PyV1sSZKAS5DadyujniqpjMIe2w73zv/lE+DTJ95YWqF8AGSiCGrhq+dU4iae63wu6RbuVsxNu/hFJAiKNg8LICMgmOywUSzRs/L00Fw6fweXS7ln6Nw1TBfg6z8pNolLeMwfCscSbSOIn5y7zPEjg4IsDMHx9lz7hu7bM4ZCKcyKOajQwCLlF8SGVy7v2u0s+jPwDEeUTfjDhTd4AAAAASUVORK5CYII=",W7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALVSURBVHgBxZfLbtNAFIb/8TgJCbm2adNUIOiuYpUN+7JiySPAm5Q+CfQBeIcuWYDaVYWEUIQqCLmQpEmaJq7Hw5y4dpOOadwEh0+yZnx8OWfm/HNjuKZ6VtsD5/sAqwAyj+g4goPDnUeb733L91pz/6zekpdjSwrHkVFycTmW5KuqfJJvVq013piG8W57Yw0GY1gFqon42WzDtuQLg0n2ei2XXplzgnwV81mAy31DQu6lEgmsmnjMpKJi4D9x3eN58/YDabdUkmrAuboMDqTXgV4DSOWgkuZei9iEElzyCRDbmvGnBYDmZ6C4rWIr39i8ejy1uI0aN/gKVpgNQE9BtoDIeJDUTHoP2GPVAvfFL708jrtlCMmxCClu4Vm2gd1s1zUM2kBybgCWXz3tbSJtmlicxKQBfgCkiVvoKUiv+dWhiGNZZnpv1Nee683rNWcFeM2lfQzH/oi++IUcL6LvdJAziuiIunsvOsjwAobSQT7+Ui0ruwiD3gOp4HVI2J9UtBIFXlIf8Ylzwr9XQVCZZjE0Rx8C/4EH6RABkAgDGDkNhKXA/zKSSITzA7ACv02yhwgLpSWQ+4pwmgvZQ1i89GgEiFAPgEQYQIaFn6D6Tjv0u6FF2JdDhCXJy8EPlhHheuKVGmISV9LCQA1BKs+dltpdiUlJUO6lGium+TzwH0EivHMmnIbGdSHpjm2vHV7pza5bmMN9RWgygWVJ8aubm/vOhJV8Ta0HJTUlx7AIJnPUP+p3v6NZpkRIi4i/kPwLaGNyCz0FSmiR0dFnU60HWPwpZPdUaSHjqpaE4+WOhtEiNkdpKbMJtl6ZHwDiJbCNklv35D29iVjGFoBKAes6UXb7HAy1OT6xrmysmuFoMt8cGVLYB61uH6vsBfLV7g1IG4cTQ/VH/e1Z/be8GI1llNDBlw7A5Oub8km+/QMhHVLpnEhHNUQGU5OKPIEQBzuPy0dk+QPy8+sGXJtnqwAAAABJRU5ErkJggg==",G7=w.div(({theme:e})=>({border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,padding:"6px 10px",fontSize:13,lineHeight:"18px"})),q7=w.div(({theme:e})=>({lineHeight:"18px",position:"relative",borderRadius:5,display:"block",minWidth:"80%",color:e.color.warningText,background:e.background.warning,border:`1px solid ${rr(.5,e.color.warningText)}`,padding:15,margin:0})),Y7=w(W)(({theme:e})=>({color:e.color.darkest})),Q7=({onSkip:e,runningSecondBuild:t})=>a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Make a change to this story"),a.createElement(W,{center:!0,muted:!0,block:!0},"In your code, adjust the markup, styling, or assets to see how visual testing works. Don't worry, you can undo it later. Here are a few ideas to get you started.")),a.createElement(de,{style:{display:"flex",alignItems:"flex-start",gap:"8px",margin:"10px 0"}},a.createElement(sa,{style:{margin:0,alignItems:"center",gap:"10px"}},a.createElement("img",{src:U7,alt:"Color Palette",style:{width:32,height:32}}),"Shift the color palette"),a.createElement(sa,{style:{margin:0,alignItems:"center",gap:"10px"}},a.createElement("img",{src:$7,alt:"Embiggen",style:{width:32,height:32}})," ","Embiggen the type"),a.createElement(sa,{style:{margin:0,alignItems:"center",gap:"10px"}},a.createElement("img",{src:W7,alt:"Layout",style:{width:32,height:32}}),"Change the layout"),a.createElement(sa,{style:{margin:0,alignItems:"center",gap:"10px"}},a.createElement("img",{src:z7,alt:"Adjust",style:{width:32,height:32}}),"Adjust the size or scale")),a.createElement(St,null,t?a.createElement(q7,null,a.createElement(Y7,null,"No changes found in the Storybook you published. Make a UI tweak and try again to continue.")):a.createElement(G7,null,"Awaiting changes..."),a.createElement(se,{link:!0,onClick:e},"Skip walkthrough"))))),K7=({isRunning:e,setRunningSecondBuild:t,startBuild:n,setInitialGitHash:r,uncommittedHash:i})=>a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Changes detected"),a.createElement(W,{center:!0,muted:!0},"Time to run your first visual tests to pinpoint the exact changes made to this story.")),a.createElement(se,{variant:"solid",size:"medium",disabled:e,onClick:()=>{t(!0),n(),setTimeout(()=>{r(i)},1e4)}},a.createElement(Dt,null),"Run visual tests")))),J7=({localBuildProgress:e})=>a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Running your first test"),a.createElement(W,{center:!0,muted:!0},"A new snapshot is being created in a standardized cloud browser. Once complete, you'll be able to pinpoint exactly what changed.")),a.createElement(ei,{localBuildProgress:e})))),X7=({isUnchanged:e,localBuildProgress:t,...n})=>(Xe("Onboarding","CatchAChange"),n.isRunning&&t?a.createElement(J7,{localBuildProgress:t}):e?a.createElement(Q7,{...n}):a.createElement(K7,{...n})),eh=w.div(({status:e,theme:t})=>({position:"relative",display:"inline-flex",border:`1px solid ${e==="positive"?t.color.green:t.appBorderColor}`,borderRadius:5,margin:"15px 15px 0",minHeight:200,minWidth:200,maxWidth:500,img:{display:"block",maxWidth:"100%"},svg:{position:"absolute",top:-12,left:-12,width:24,height:24,padding:5,color:t.color.lightest,borderRadius:"50%",backgroundColor:t.color.green}})),th=w.div({width:"100%",margin:2,background:"white",borderRadius:3,overflow:"hidden",div:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}}),po=({backgroundColor:e,status:t,thumbnailUrl:n})=>a.createElement(eh,{status:t},a.createElement(th,null,a.createElement("div",{style:e?{backgroundColor:e}:{}},a.createElement("img",{alt:"Snapshot thumbnail",src:n}))),t==="positive"&&a.createElement(Co,null)),F1=w(W)({marginBottom:5}),O1=({onComplete:e,onSkip:t,ranSecondBuild:n=!1})=>{Xe("Onboarding","CatchAChangeComplete");let r=dn();return a.createElement(Se,{footer:null},a.createElement(ge,{style:{overflowY:"auto"}},n?a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Nice. Your stories were saved as test baselines."),a.createElement(W,{center:!0,muted:!0,block:!0},"This story was indexed and snapshotted in a standardized cloud browser."),r.selectedComparison?.headCapture?.captureImage&&a.createElement(po,{...r.selectedComparison?.headCapture?.captureImage,status:"positive"})),a.createElement(St,null,a.createElement(F1,null,"You're ready to start testing!"),a.createElement(se,{variant:"solid",size:"medium",onClick:e},"Done"),a.createElement(se,{link:!0,onClick:t},"Skip walkthrough"))):a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Nice. You ran your first tests!"),a.createElement(W,{center:!0,muted:!0,block:!0},"This story was indexed and snapshotted in a standardized cloud browser and changes were found."),r.selectedComparison?.headCapture?.captureImage&&a.createElement(po,{...r.selectedComparison?.headCapture?.captureImage,status:"positive"})),a.createElement(St,null,a.createElement(F1,null,"It's time to review changes!"),a.createElement(se,{variant:"solid",size:"medium",onClick:e},"Take a tour"),a.createElement(se,{link:!0,onClick:t},"Skip walkthrough")))))},L1=()=>a.createElement("div",null,a.createElement(sn,null),a.createElement(pe,null,"Get started with visual testing"),a.createElement(W,{center:!0,muted:!0},'Take an image snapshot of your stories to save their "last known good state" as test baselines.')),nh=({isRunning:e,localBuildProgress:t,startBuild:n,onSkip:r})=>(Xe("Onboarding","InitialBuild"),a.createElement(Se,{footer:null},a.createElement(ge,null,t?a.createElement(de,null,a.createElement(L1,null),a.createElement(ei,{localBuildProgress:t})):a.createElement(de,null,a.createElement(L1,null),a.createElement(St,null,a.createElement(se,{disabled:e,size:"medium",variant:"solid",onClick:n},"Take snapshots"),a.createElement(se,{onClick:r,link:!0},"Skip walkthrough")))))),ah=w(W)({marginBottom:5}),rh=({onCatchAChange:e,onSkip:t})=>{Xe("Onboarding","InitialBuildComplete");let n=dn();return a.createElement(Se,{footer:null},a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Nice. Your stories were saved as test baselines."),a.createElement(W,{center:!0,muted:!0,block:!0},"This story was indexed and snapshotted in a standardized cloud browser."),n?.selectedComparison?.headCapture?.captureImage&&a.createElement(po,{...n?.selectedComparison?.headCapture.captureImage,status:"positive"})),a.createElement(St,null,a.createElement(ah,{muted:!0},"Let's see the superpower of catching visual changes."),a.createElement(se,{variant:"solid",size:"medium",onClick:e},"Catch a UI change"),a.createElement(se,{link:!0,onClick:t},"Skip walkthrough")))))},ih=({dismissBuildError:e,localBuildProgress:t,showInitialBuildScreen:n,gitInfo:r,lastBuildHasChangesForStory:i,onComplete:o,onSkip:l})=>{let{isRunning:s,startBuild:c}=La(),[d,u]=nt("showInitialBuild",n);le(()=>{n&&u(!0)},[n,u]);let[m,p]=nt("showCatchAChange",!d),[v,f]=nt("initialGitHash",r.uncommittedHash),y=()=>{f(r.uncommittedHash),p(!0)},[k,b]=nt("runningSecondBuild",!1);return t?.currentStep==="error"?a.createElement(R7,{localBuildProgress:t},a.createElement(St,null,a.createElement(se,{variant:"solid",size:"medium",onClick:c},"Try again"),a.createElement(se,{link:!0,onClick:l},"Skip walkthrough"))):t?.currentStep==="limited"?a.createElement(o0,{billingUrl:t.errorDetailsUrl,suspensionReason:"EXCEEDED_THRESHOLD"},a.createElement(se,{link:!0,onClick:e},"Continue")):d&&(!t||t&&s)?a.createElement(nh,{isRunning:s,localBuildProgress:t,startBuild:c,onSkip:l}):t?.currentStep==="complete"&&!m&&!k?i?a.createElement(O1,{onComplete:o,onSkip:l}):a.createElement(rh,{onCatchAChange:y,onSkip:l}):m&&!i?a.createElement(X7,{isRunning:s,isUnchanged:v===r.uncommittedHash,localBuildProgress:t,onSkip:l,runningSecondBuild:k,setInitialGitHash:f,setRunningSecondBuild:b,startBuild:c,uncommittedHash:r.uncommittedHash}):i?a.createElement(O1,{onComplete:o,onSkip:l,ranSecondBuild:m&&k}):null},oh=w.div(({theme:e})=>({background:e.background.app,padding:"10px 15px",lineHeight:"20px",color:e.color.defaultText,borderBottom:`1px solid ${e.appBorderColor}`})),lh=Rt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(359deg)"}}),sh=w(Vr)({animation:`${lh} 1s linear infinite`}),tr={width:10,marginRight:8},T1=w.button(({isWarning:e,onClick:t,theme:n})=>{let r=n.base==="light"?n.background.warning:"#2e271a";return{position:"relative",display:"flex",width:"100%",lineHeight:"20px",padding:"5px 7px 5px 15px",justifyContent:"space-between",alignItems:"center",background:e?r:n.background.app,border:"none",borderBottom:`1px solid ${n.appBorderColor}`,color:n.color.defaultText,cursor:t?"pointer":"default",textAlign:"left","& > *":{zIndex:1},code:{fontFamily:n.typography.fonts.mono,fontSize:"12px"}}}),_1=w.div(({isWarning:e,percentage:t,theme:n})=>{let r=n.base==="light"?"#FFE6B1":"#43361f";return{display:"block",position:"absolute",top:"0",height:"100%",left:"0",width:`${t}%`,transition:"width 3s ease-out",backgroundColor:e?r:n.background.hoverable,pointerEvents:"none",zIndex:0}}),nr=w.div({padding:"5px 0"}),ch=w.div(({expanded:e,theme:t})=>({display:"grid",gridTemplateRows:e?"1fr":"0fr",background:t.background.app,borderBottom:e?`1px solid ${t.appBorderColor}`:"none",transition:"grid-template-rows 150ms ease-out"})),dh=w.div(({theme:e})=>({whiteSpace:"nowrap",overflow:"hidden",color:e.base==="light"?e.color.dark:e.color.lightest})),uh=w.div(({isCurrent:e,isFailed:t,isPending:n,theme:r})=>({display:"flex",flexDirection:"row",gap:8,opacity:n?.7:1,color:t?r.color.negativeText:"inherit",fontWeight:e||t?"bold":"normal",fontFamily:"Menlo, monospace",fontSize:12,lineHeight:"24px",margin:"0 15px","&:first-of-type":{marginTop:10},"&:last-of-type":{marginBottom:10},"& > div":{display:"flex",alignItems:"center"}})),mh=({localBuildProgress:e,expanded:t=!1})=>{let n=Ie({});le(()=>{n.current[e.currentStep]={...e}},[e]);let r=["aborted","error"].includes(e.currentStep),i=mo.map(o=>{let{startedAt:l,completedAt:s}=e.stepProgress[o],c=!!l&&!s,d=c&&r,u=!l,m={...W0[o],isCurrent:c,isFailed:d,isPending:u};return d?{...m,icon:a.createElement(ws,{style:tr}),renderLabel:m.renderProgress}:c?{...m,icon:a.createElement(sh,{style:tr}),renderLabel:m.renderProgress}:u?{...m,icon:a.createElement(au,{style:tr}),renderLabel:m.renderName}:{...m,icon:a.createElement(Co,{style:tr}),renderLabel:m.renderComplete}});return a.createElement(ch,{expanded:t},a.createElement(dh,null,i.map(({icon:o,isCurrent:l,isFailed:s,isPending:c,key:d,renderLabel:u})=>a.createElement(uh,{isCurrent:l,isFailed:s,isPending:c,key:d},a.createElement("div",null,o,u(n.current[d]||e))))))},ph=({branch:e,dismissBuildError:t,localBuildProgress:n,lastBuildOnBranchInProgress:r,switchToLastBuildOnBranch:i})=>{let[o,l]=a.useState(!1),s=()=>{l(!o)};if(n){let d=["aborted","error"].includes(n.currentStep);return a.createElement(a.Fragment,null,a.createElement(T1,{as:d?"div":"button",onClick:d?void 0:s,isWarning:d},a.createElement(_1,{percentage:n.buildProgressPercentage,isWarning:d}),a.createElement(nr,null,a.createElement($o,{localBuildProgress:n,withEmoji:!0})),d?a.createElement(rt,{onClick:t},a.createElement(So,{"aria-label":"Dismiss"})):a.createElement(rt,{as:"div"},o?a.createElement(iu,null):a.createElement(ru,null))),a.createElement(mh,{localBuildProgress:n,expanded:o||d}))}function c(){return i?r?a.createElement(nr,null,"Reviewing is disabled because there's a newer build in progress on"," ",a.createElement(Ve,null,e),". This can happen when a build runs in CI."):a.createElement(nr,null,"There's a newer snapshot with changes."," ",a.createElement(fn,{withArrow:!0,onClick:i},"Switch to newer snapshot")):a.createElement(nr,null,"Reviewing is disabled because there's a newer build on ",a.createElement(Ve,null,e),".")}return a.createElement(T1,{onClick:i},a.createElement(_1,{percentage:100}),c())},hh=({onClose:e})=>a.createElement(Ns,null,a.createElement($i,null,a.createElement(cr,null,"Render settings",a.createElement(kl,null),a.createElement(Mo,{onClick:e},a.createElement(xo,{"aria-label":"Close"}))),a.createElement("p",null,a.createElement(pu,null),"Delay: 300ms"),a.createElement("p",null,a.createElement(hu,null),"Animation pause: Ends"),a.createElement("p",null,a.createElement(fu,null),"Threshold: 0.2"),a.createElement("p",null,a.createElement(gu,null),"Anti-alias: Included")),a.createElement($i,null,a.createElement(cr,null,"Bounding box",a.createElement(kl,null)),a.createElement("dl",null,a.createElement("dt",null,"Width:"),a.createElement("dd",null,"Fill viewport"),a.createElement("dt",null,"Height:"),a.createElement("dd",null,"Hug contents")))),Q0={isReviewing:!1,userCanReview:!1,buildIsReviewable:!1,acceptTest:(e,t="SPEC")=>Promise.resolve(),unacceptTest:(e,t="SPEC")=>Promise.resolve()},K0=Qe(Q0),J0=()=>Nt(K0,"ReviewTest"),fh=({children:e,watchState:t=Q0})=>a.createElement(K0.Provider,{value:t},e),gh=w.div(({theme:e})=>({position:"relative",display:"flex",background:"transparent",overflow:"hidden",margin:2,img:{maxWidth:"100%",transition:"filter 0.1s ease-in-out"},"img[data-overlay]":{position:"absolute",opacity:.7,pointerEvents:"none"},div:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",p:{maxWidth:380,textAlign:"center"},svg:{width:24,height:24}},"& > svg":{position:"absolute",left:"calc(50% - 14px)",top:"calc(50% - 14px)",width:20,height:20,color:e.color.lightest,opacity:0,transition:"opacity 0.1s ease-in-out",pointerEvents:"none"}}),({href:e})=>e&&{display:"inline-flex",cursor:"pointer","&:hover":{"& > svg":{opacity:1},img:{filter:"brightness(85%)"}}}),vh=w(de)(({theme:e})=>({margin:"30px 15px"})),yh=({componentName:e,storyName:t,testUrl:n,comparisonResult:r,latestImage:i,baselineImage:o,baselineImageVisible:l,diffImage:s,focusImage:c,diffVisible:d,focusVisible:u,...m})=>{let p=qt(),v=!!i&&!!s&&r==="CHANGED",f=r==="CAPTURE_ERROR",y=v&&!!c,k=v?{as:"a",href:n,target:"_blank",title:"View on Chromatic.com"}:{},b=v&&d,h=y&&u;return a.createElement(gh,{...m,...k},i&&a.createElement("img",{alt:`Latest snapshot for the '${t}' story of the '${e}' component`,src:i.imageUrl,style:{display:l?"none":"block"}}),o&&a.createElement("img",{alt:`Baseline snapshot for the '${t}' story of the '${e}' component`,src:o.imageUrl,style:{display:l?"block":"none"}}),v&&a.createElement("img",{alt:"","data-overlay":"diff",src:s.imageUrl,style:{maxWidth:`${s.imageWidth/i.imageWidth*100}%`,opacity:b?.7:0}}),y&&a.createElement("img",{alt:"","data-overlay":"focus",src:c.imageUrl,style:{maxWidth:`${c.imageWidth/i.imageWidth*100}%`,opacity:h?.7:0,filter:h?"blur(2px)":"none"}}),v&&a.createElement(xs,null),f&&!i&&a.createElement(vh,null,a.createElement(D5,{color:p.base==="light"?"currentColor":p.color.medium}),a.createElement(W,{center:!0,muted:!0},"A snapshot couldn't be captured. This often occurs when a story has a code error. Confirm that this story successfully renders in your local Storybook and run the build again.")))},bh=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.06982 9.68493L7.99484 4.63927L14.5786 4.62406C14.5252 4.52043 14.4696 4.41742 14.4109 4.31532C12.372 0.768556 7.84405 -0.453864 4.29726 1.58495C3.24614 2.1892 2.39921 3.01211 1.78076 3.96327L5.06982 9.68493Z",fill:"#DB4437"}),a.createElement("path",{d:"M10.9276 9.68457L5.09539 9.6743L1.79036 3.98022C1.72727 4.07822 1.66591 4.17795 1.60682 4.27985C-0.445348 7.81892 0.759985 12.3515 4.29905 14.4037C5.34791 15.0118 6.48403 15.3338 7.617 15.3939L10.9276 9.68457Z",fill:"#0F9D58"}),a.createElement("path",{d:"M7.98649 4.61194L10.9032 9.66241L7.63525 15.3778C7.75167 15.3833 7.86871 15.3863 7.98649 15.3863C12.0775 15.3863 15.3939 12.0699 15.3939 7.97893C15.3939 6.76648 15.1025 5.62211 14.5861 4.61194L7.98649 4.61194Z",fill:"#FFCD40"}),a.createElement("path",{d:"M8.01367 4.6366V6.40005L14.613 4.6366H8.01367Z",fill:"url(#paint0_radial_466_21161)"}),a.createElement("path",{d:"M1.78198 4.00098L6.60102 8.8192L5.09764 9.687L1.78198 4.00098Z",fill:"url(#paint1_radial_466_21161)"}),a.createElement("path",{d:"M7.6626 15.4017L9.42689 8.81921L10.9303 9.68702L7.6626 15.4017Z",fill:"url(#paint2_radial_466_21161)"}),a.createElement("ellipse",{cx:"8.01347",cy:"8.00358",rx:"3.36699",ry:"3.36699",fill:"#F1F1F1"}),a.createElement("ellipse",{cx:"8.01367",cy:"8.00354",rx:"2.69361",ry:"2.6936",fill:"#4285F4"}),a.createElement("defs",null,a.createElement("radialGradient",{id:"paint0_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.69229 4.63226) scale(7.07721 1.89116)"},a.createElement("stop",{stopColor:"#3E2723",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#3E2723",stopOpacity:"0.01"})),a.createElement("radialGradient",{id:"paint1_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(1.77445 4.00677) scale(6.56938 7.75127)"},a.createElement("stop",{stopColor:"#3E2723",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#3E2723",stopOpacity:"0.01"})),a.createElement("radialGradient",{id:"paint2_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.00025 8.01489) scale(7.39644 14.8995)"},a.createElement("stop",{stopColor:"#263238",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#263238",stopOpacity:"0.01"})))),Eh=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("circle",{cx:"8.00009",cy:"7.99997",r:"7.7037",fill:"url(#paint0_linear_466_21186)"}),a.createElement("ellipse",{cx:"8.00094",cy:"8.00094",rx:"7.06173",ry:"7.06173",fill:"url(#paint1_radial_466_21186)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.07134 1.36353C8.03043 1.36353 7.99727 1.39669 7.99727 1.4376V2.56469C7.99727 2.6056 8.03043 2.63877 8.07134 2.63877C8.11225 2.63877 8.14542 2.6056 8.14542 2.56469V1.4376C8.14542 1.39669 8.11225 1.36353 8.07134 1.36353ZM8.07134 14.7792C8.11225 14.7792 8.14542 14.746 8.14542 14.7051V13.578C8.14542 13.5371 8.11225 13.5039 8.07134 13.5039C8.03043 13.5039 7.99727 13.5371 7.99727 13.578V14.7051C7.99727 14.746 8.03043 14.7792 8.07134 14.7792ZM8.64883 1.46214C8.65292 1.42143 8.68923 1.39175 8.72994 1.39584C8.77064 1.39993 8.80032 1.43625 8.79623 1.47695L8.74793 1.95766C8.74384 1.99836 8.70752 2.02804 8.66682 2.02395C8.62612 2.01986 8.59643 1.98355 8.60052 1.94284L8.64883 1.46214ZM7.41372 14.7468C7.45442 14.7509 7.49074 14.7213 7.49483 14.6806L7.54313 14.1998C7.54722 14.1591 7.51754 14.1228 7.47683 14.1187C7.43613 14.1146 7.39982 14.1443 7.39573 14.185L7.34742 14.6657C7.34333 14.7064 7.37301 14.7428 7.41372 14.7468ZM14.7051 7.99727C14.746 7.99727 14.7792 8.03043 14.7792 8.07134C14.7792 8.11225 14.746 8.14542 14.7051 8.14542H13.578C13.5371 8.14542 13.5039 8.11225 13.5039 8.07134C13.5039 8.03043 13.5371 7.99727 13.578 7.99727H14.7051ZM1.36353 8.07134C1.36353 8.11225 1.39669 8.14542 1.4376 8.14542H2.56469C2.6056 8.14542 2.63877 8.11225 2.63877 8.07134C2.63877 8.03043 2.6056 7.99727 2.56469 7.99727H1.4376C1.39669 7.99727 1.36353 8.03043 1.36353 8.07134ZM14.6806 8.64883C14.7213 8.65292 14.7509 8.68923 14.7468 8.72994C14.7428 8.77064 14.7064 8.80032 14.6657 8.79623L14.185 8.74793C14.1443 8.74384 14.1146 8.70752 14.1187 8.66682C14.1228 8.62612 14.1591 8.59643 14.1998 8.60052L14.6806 8.64883ZM1.39584 7.41372C1.39175 7.45442 1.42143 7.49074 1.46214 7.49483L1.94284 7.54313C1.98355 7.54722 2.01986 7.51754 2.02395 7.47683C2.02804 7.43613 1.99836 7.39982 1.95766 7.39573L1.47695 7.34742C1.43625 7.34333 1.39993 7.37301 1.39584 7.41372ZM12.7097 3.3282C12.7387 3.29927 12.7856 3.29927 12.8145 3.3282C12.8434 3.35713 12.8434 3.40403 12.8145 3.43296L12.0175 4.22994C11.9886 4.25887 11.9417 4.25887 11.9127 4.22994C11.8838 4.20101 11.8838 4.15411 11.9127 4.12518L12.7097 3.3282ZM3.3282 12.8145C3.35713 12.8434 3.40403 12.8434 3.43296 12.8145L4.22994 12.0175C4.25887 11.9886 4.25887 11.9417 4.22994 11.9127C4.20101 11.8838 4.15411 11.8838 4.12518 11.9127L3.3282 12.7097C3.29927 12.7387 3.29927 12.7856 3.3282 12.8145ZM13.1523 3.80568C13.1839 3.77973 13.2306 3.78433 13.2566 3.81595C13.2825 3.84757 13.2779 3.89425 13.2463 3.9202L12.8729 4.22664C12.8413 4.2526 12.7946 4.248 12.7686 4.21638C12.7427 4.18475 12.7473 4.13808 12.7789 4.11212L13.1523 3.80568ZM2.88614 12.3267C2.91209 12.3584 2.95876 12.363 2.99039 12.337L3.36378 12.0306C3.3954 12.0046 3.4 11.9579 3.37404 11.9263C3.34809 11.8947 3.30142 11.8901 3.26979 11.916L2.8964 12.2225C2.86478 12.2484 2.86018 12.2951 2.88614 12.3267ZM12.8145 12.7097C12.8434 12.7387 12.8434 12.7856 12.8145 12.8145C12.7856 12.8434 12.7387 12.8434 12.7097 12.8145L11.9127 12.0175C11.8838 11.9886 11.8838 11.9417 11.9127 11.9127C11.9417 11.8838 11.9886 11.8838 12.0175 11.9127L12.8145 12.7097ZM3.3282 3.3282C3.29927 3.35713 3.29927 3.40403 3.3282 3.43296L4.12518 4.22994C4.15411 4.25887 4.20101 4.25887 4.22994 4.22994C4.25887 4.20101 4.25887 4.15411 4.22994 4.12518L3.43296 3.3282C3.40403 3.29927 3.35713 3.29927 3.3282 3.3282ZM12.337 13.1523C12.363 13.1839 12.3584 13.2306 12.3267 13.2566C12.2951 13.2825 12.2484 13.2779 12.2225 13.2463L11.916 12.8729C11.8901 12.8413 11.8947 12.7946 11.9263 12.7686C11.9579 12.7427 12.0046 12.7473 12.0306 12.7789L12.337 13.1523ZM3.81595 2.88614C3.78433 2.91209 3.77973 2.95876 3.80568 2.99039L4.11212 3.36378C4.13808 3.3954 4.18475 3.4 4.21638 3.37404C4.248 3.34809 4.2526 3.30142 4.22664 3.26979L3.9202 2.8964C3.89425 2.86478 3.84757 2.86018 3.81595 2.88614ZM10.5415 1.91422C10.5572 1.87643 10.6005 1.85848 10.6383 1.87413C10.6761 1.88979 10.6941 1.93312 10.6784 1.97092L10.2471 3.01221C10.2314 3.05 10.1881 3.06795 10.1503 3.05229C10.1125 3.03664 10.0946 2.99331 10.1102 2.95551L10.5415 1.91422ZM5.50437 14.2686C5.54216 14.2842 5.58549 14.2663 5.60115 14.2285L6.03247 13.1872C6.04813 13.1494 6.03018 13.1061 5.99238 13.0904C5.95459 13.0747 5.91126 13.0927 5.8956 13.1305L5.46428 14.1718C5.44862 14.2096 5.46657 14.2529 5.50437 14.2686ZM11.1332 2.18598C11.1524 2.1499 11.1973 2.13628 11.2334 2.15557C11.2695 2.17486 11.2831 2.21974 11.2638 2.25582L11.0361 2.68183C11.0168 2.7179 10.9719 2.73152 10.9358 2.71223C10.8998 2.69295 10.8861 2.64806 10.9054 2.61199L11.1332 2.18598ZM4.90931 13.9871C4.94539 14.0064 4.99027 13.9928 5.00955 13.9567L5.23726 13.5307C5.25654 13.4946 5.24293 13.4497 5.20685 13.4305C5.17077 13.4112 5.12589 13.4248 5.1066 13.4609L4.8789 13.8869C4.85961 13.923 4.87323 13.9678 4.90931 13.9871ZM14.2285 10.5415C14.2663 10.5572 14.2842 10.6005 14.2686 10.6383C14.2529 10.6761 14.2096 10.6941 14.1718 10.6784L13.1305 10.2471C13.0927 10.2314 13.0747 10.1881 13.0904 10.1503C13.1061 10.1125 13.1494 10.0946 13.1872 10.1102L14.2285 10.5415ZM1.87412 5.50437C1.85846 5.54216 1.87641 5.58549 1.91421 5.60115L2.95551 6.03247C2.99331 6.04813 3.03664 6.03018 3.05229 5.99238C3.06795 5.95459 3.05 5.91126 3.0122 5.8956L1.9709 5.46428C1.9331 5.44862 1.88977 5.46657 1.87412 5.50437ZM13.9567 11.1332C13.9928 11.1524 14.0064 11.1973 13.9871 11.2334C13.9678 11.2695 13.923 11.2831 13.8869 11.2638L13.4609 11.0361C13.4248 11.0168 13.4112 10.9719 13.4305 10.9358C13.4497 10.8998 13.4946 10.8861 13.5307 10.9054L13.9567 11.1332ZM2.15557 4.90929C2.13628 4.94537 2.1499 4.99025 2.18598 5.00954L2.61199 5.23726C2.64806 5.25654 2.69295 5.24293 2.71223 5.20685C2.73152 5.17077 2.7179 5.12589 2.68183 5.1066L2.25582 4.87888C2.21974 4.8596 2.17486 4.87321 2.15557 4.90929ZM14.1718 5.46428C14.2096 5.44862 14.2529 5.46657 14.2686 5.50437C14.2842 5.54216 14.2663 5.58549 14.2285 5.60115L13.1872 6.03247C13.1494 6.04813 13.1061 6.03018 13.0904 5.99238C13.0747 5.95459 13.0927 5.91126 13.1305 5.8956L14.1718 5.46428ZM1.87413 10.6383C1.88979 10.6761 1.93312 10.6941 1.97092 10.6784L3.01221 10.2471C3.05 10.2314 3.06795 10.1881 3.05229 10.1503C3.03664 10.1125 2.99331 10.0946 2.95551 10.1102L1.91422 10.5415C1.87643 10.5572 1.85848 10.6005 1.87413 10.6383ZM14.3979 6.07477C14.4371 6.0629 14.4785 6.08501 14.4903 6.12416C14.5022 6.1633 14.4801 6.20467 14.441 6.21654L13.9787 6.35677C13.9396 6.36864 13.8982 6.34654 13.8863 6.30739C13.8744 6.26824 13.8965 6.22688 13.9357 6.215L14.3979 6.07477ZM1.65237 10.0185C1.66425 10.0577 1.70561 10.0798 1.74476 10.0679L2.20699 9.92769C2.24614 9.91581 2.26825 9.87445 2.25637 9.8353C2.2445 9.79615 2.20313 9.77404 2.16399 9.78592L1.70175 9.92615C1.6626 9.93802 1.64049 9.97939 1.65237 10.0185ZM10.6383 14.2686C10.6005 14.2842 10.5572 14.2663 10.5415 14.2285L10.1102 13.1872C10.0946 13.1494 10.1125 13.1061 10.1503 13.0904C10.1881 13.0747 10.2314 13.0927 10.2471 13.1305L10.6784 14.1718C10.6941 14.2096 10.6761 14.2529 10.6383 14.2686ZM5.50437 1.87413C5.46657 1.88979 5.44862 1.93312 5.46428 1.97092L5.8956 3.01221C5.91126 3.05 5.95459 3.06795 5.99238 3.05229C6.03018 3.03664 6.04813 2.99331 6.03247 2.95551L5.60115 1.91422C5.58549 1.87643 5.54216 1.85848 5.50437 1.87413ZM10.0679 14.3979C10.0798 14.4371 10.0577 14.4785 10.0185 14.4903C9.97939 14.5022 9.93802 14.4801 9.92615 14.441L9.78592 13.9787C9.77404 13.9396 9.79615 13.8982 9.8353 13.8863C9.87445 13.8744 9.91581 13.8965 9.92769 13.9357L10.0679 14.3979ZM6.12417 1.65237C6.08502 1.66424 6.06291 1.70561 6.07479 1.74475L6.215 2.20699C6.22688 2.24614 6.26824 2.26825 6.30739 2.25637C6.34654 2.2445 6.36864 2.20314 6.35677 2.16399L6.21656 1.70175C6.20468 1.6626 6.16332 1.64049 6.12417 1.65237ZM9.29287 1.55062C9.30085 1.5105 9.33985 1.48444 9.37997 1.49242C9.4201 1.5004 9.44615 1.5394 9.43817 1.57952L9.21829 2.68496C9.21031 2.72508 9.17131 2.75114 9.13119 2.74316C9.09107 2.73518 9.06501 2.69618 9.07299 2.65606L9.29287 1.55062ZM6.76272 14.6503C6.80284 14.6583 6.84184 14.6322 6.84982 14.5921L7.0697 13.4866C7.07768 13.4465 7.05162 13.4075 7.0115 13.3995C6.97137 13.3916 6.93238 13.4176 6.9244 13.4577L6.70452 14.5632C6.69654 14.6033 6.72259 14.6423 6.76272 14.6503ZM9.92615 1.70175C9.93802 1.6626 9.97939 1.64049 10.0185 1.65237C10.0577 1.66425 10.0798 1.70561 10.0679 1.74476L9.92769 2.20699C9.91581 2.24614 9.87445 2.26825 9.8353 2.25637C9.79615 2.2445 9.77404 2.20313 9.78592 2.16399L9.92615 1.70175ZM6.12417 14.4903C6.16332 14.5022 6.20469 14.4801 6.21656 14.441L6.35677 13.9787C6.36864 13.9396 6.34653 13.8982 6.30739 13.8863C6.26824 13.8744 6.22687 13.8965 6.215 13.9357L6.07479 14.398C6.06291 14.4371 6.08502 14.4785 6.12417 14.4903ZM14.5921 9.29287C14.6322 9.30085 14.6583 9.33985 14.6503 9.37997C14.6423 9.4201 14.6033 9.44615 14.5632 9.43817L13.4577 9.21829C13.4176 9.21031 13.3916 9.17131 13.3995 9.13119C13.4075 9.09107 13.4465 9.06501 13.4866 9.07299L14.5921 9.29287ZM1.49242 6.76272C1.48444 6.80284 1.5105 6.84184 1.55062 6.84982L2.65606 7.0697C2.69618 7.07768 2.73518 7.05162 2.74316 7.0115C2.75114 6.97137 2.72508 6.93238 2.68496 6.9244L1.57952 6.70452C1.5394 6.69654 1.5004 6.72259 1.49242 6.76272ZM14.441 9.92615C14.4801 9.93802 14.5022 9.97939 14.4903 10.0185C14.4785 10.0577 14.4371 10.0798 14.3979 10.0679L13.9357 9.92769C13.8965 9.91581 13.8744 9.87445 13.8863 9.8353C13.8982 9.79615 13.9396 9.77404 13.9787 9.78592L14.441 9.92615ZM1.65237 6.12415C1.64049 6.1633 1.6626 6.20467 1.70175 6.21654L2.16399 6.35677C2.20313 6.36864 2.2445 6.34654 2.25637 6.30739C2.26825 6.26824 2.24614 6.22688 2.20699 6.215L1.74476 6.07477C1.70561 6.0629 1.66425 6.08501 1.65237 6.12415ZM13.5459 4.32424C13.58 4.30151 13.626 4.31066 13.6487 4.34468C13.6714 4.37869 13.6623 4.42469 13.6282 4.44742L12.6911 5.0736C12.6571 5.09633 12.6111 5.08718 12.5884 5.05317C12.5656 5.01915 12.5748 4.97315 12.6088 4.95042L13.5459 4.32424ZM2.494 11.798C2.51673 11.832 2.56273 11.8412 2.59675 11.8184L3.53389 11.1923C3.56791 11.1695 3.57706 11.1235 3.55433 11.0895C3.5316 11.0555 3.4856 11.0464 3.45159 11.0691L2.51444 11.6953C2.48043 11.718 2.47128 11.764 2.494 11.798ZM13.8869 4.87888C13.923 4.8596 13.9678 4.87321 13.9871 4.90929C14.0064 4.94537 13.9928 4.99025 13.9567 5.00954L13.5307 5.23726C13.4946 5.25654 13.4497 5.24293 13.4305 5.20685C13.4112 5.17077 13.4248 5.12589 13.4609 5.1066L13.8869 4.87888ZM2.15557 11.2334C2.17486 11.2695 2.21974 11.2831 2.25582 11.2638L2.68183 11.0361C2.7179 11.0168 2.73152 10.9719 2.71223 10.9358C2.69295 10.8998 2.64806 10.8861 2.61199 10.9054L2.18598 11.1332C2.1499 11.1524 2.13628 11.1973 2.15557 11.2334ZM11.8184 13.5459C11.8412 13.58 11.832 13.626 11.798 13.6487C11.764 13.6714 11.718 13.6623 11.6953 13.6282L11.0691 12.6911C11.0464 12.6571 11.0555 12.6111 11.0895 12.5884C11.1235 12.5656 11.1695 12.5748 11.1923 12.6088L11.8184 13.5459ZM4.34468 2.494C4.31066 2.51673 4.30151 2.56273 4.32424 2.59675L4.95042 3.53389C4.97315 3.56791 5.01915 3.57706 5.05317 3.55433C5.08718 3.5316 5.09633 3.4856 5.0736 3.45159L4.44742 2.51444C4.42469 2.48043 4.37869 2.47128 4.34468 2.494ZM11.2638 13.8869C11.2831 13.923 11.2695 13.9678 11.2334 13.9871C11.1973 14.0064 11.1524 13.9928 11.1331 13.9567L10.9054 13.5307C10.8861 13.4946 10.8998 13.4497 10.9358 13.4305C10.9719 13.4112 11.0168 13.4248 11.0361 13.4609L11.2638 13.8869ZM4.90931 2.15557C4.87323 2.17485 4.85961 2.21974 4.8789 2.25581L5.1066 2.68182C5.12589 2.7179 5.17077 2.73152 5.20685 2.71223C5.24293 2.69295 5.25654 2.64807 5.23726 2.61199L5.00955 2.18598C4.99027 2.1499 4.94539 2.13628 4.90931 2.15557ZM11.6953 2.51444C11.718 2.48043 11.764 2.47128 11.798 2.494C11.832 2.51673 11.8412 2.56273 11.8184 2.59675L11.1923 3.53389C11.1695 3.56791 11.1235 3.57706 11.0895 3.55433C11.0555 3.5316 11.0464 3.4856 11.0691 3.45159L11.6953 2.51444ZM4.34468 13.6487C4.37869 13.6714 4.42469 13.6623 4.44742 13.6282L5.0736 12.6911C5.09633 12.6571 5.08718 12.6111 5.05317 12.5884C5.01915 12.5656 4.97315 12.5748 4.95042 12.6088L4.32424 13.5459C4.30151 13.58 4.31066 13.626 4.34468 13.6487ZM12.2225 2.8964C12.2484 2.86478 12.2951 2.86018 12.3267 2.88614C12.3584 2.91209 12.363 2.95876 12.337 2.99039L12.0306 3.36378C12.0046 3.3954 11.9579 3.4 11.9263 3.37404C11.8947 3.34809 11.8901 3.30142 11.916 3.26979L12.2225 2.8964ZM3.81595 13.2566C3.84757 13.2825 3.89425 13.2779 3.9202 13.2463L4.22664 12.8729C4.2526 12.8413 4.248 12.7946 4.21638 12.7686C4.18475 12.7427 4.13808 12.7473 4.11212 12.7789L3.80568 13.1523C3.77973 13.1839 3.78433 13.2306 3.81595 13.2566ZM13.6282 11.6953C13.6623 11.718 13.6714 11.764 13.6487 11.798C13.626 11.832 13.58 11.8412 13.5459 11.8184L12.6088 11.1923C12.5748 11.1695 12.5656 11.1235 12.5884 11.0895C12.6111 11.0555 12.6571 11.0464 12.6911 11.0691L13.6282 11.6953ZM2.494 4.34468C2.47128 4.37869 2.48043 4.42469 2.51444 4.44742L3.45159 5.0736C3.4856 5.09633 3.5316 5.08718 3.55433 5.05317C3.57706 5.01915 3.56791 4.97315 3.53389 4.95042L2.59675 4.32424C2.56273 4.30151 2.51673 4.31066 2.494 4.34468ZM13.2463 12.2225C13.2779 12.2484 13.2825 12.2951 13.2566 12.3267C13.2306 12.3584 13.1839 12.363 13.1523 12.337L12.7789 12.0306C12.7473 12.0046 12.7427 11.9579 12.7686 11.9263C12.7946 11.8947 12.8413 11.8901 12.8729 11.916L13.2463 12.2225ZM2.88614 3.81595C2.86018 3.84757 2.86478 3.89425 2.8964 3.9202L3.26979 4.22664C3.30142 4.2526 3.34809 4.248 3.37404 4.21638C3.4 4.18475 3.3954 4.13808 3.36378 4.11212L2.99039 3.80568C2.95876 3.77973 2.91209 3.78433 2.88614 3.81595ZM14.5632 6.70452C14.6033 6.69654 14.6423 6.72259 14.6503 6.76272C14.6583 6.80284 14.6322 6.84184 14.5921 6.84982L13.4866 7.0697C13.4465 7.07768 13.4075 7.05162 13.3995 7.0115C13.3916 6.97137 13.4176 6.93238 13.4577 6.9244L14.5632 6.70452ZM1.49242 9.37997C1.5004 9.4201 1.5394 9.44615 1.57952 9.43817L2.68496 9.21829C2.72508 9.21031 2.75114 9.17131 2.74316 9.13119C2.73518 9.09107 2.69618 9.06501 2.65606 9.07299L1.55062 9.29287C1.5105 9.30085 1.48444 9.33985 1.49242 9.37997ZM14.6657 7.34742C14.7064 7.34333 14.7428 7.37301 14.7468 7.41372C14.7509 7.45442 14.7213 7.49074 14.6806 7.49483L14.1998 7.54313C14.1591 7.54722 14.1228 7.51754 14.1187 7.47683C14.1146 7.43613 14.1443 7.39982 14.185 7.39573L14.6657 7.34742ZM1.39584 8.72994C1.39993 8.77064 1.43625 8.80032 1.47695 8.79623L1.95766 8.74793C1.99836 8.74384 2.02804 8.70752 2.02395 8.66682C2.01986 8.62612 1.98355 8.59643 1.94284 8.60052L1.46214 8.64883C1.42143 8.65292 1.39175 8.68923 1.39584 8.72994ZM9.43817 14.5632C9.44615 14.6033 9.4201 14.6423 9.37997 14.6503C9.33985 14.6583 9.30085 14.6322 9.29287 14.5921L9.07299 13.4866C9.06501 13.4465 9.09107 13.4075 9.13119 13.3995C9.17131 13.3916 9.21031 13.4176 9.21829 13.4577L9.43817 14.5632ZM6.76272 1.49242C6.72259 1.5004 6.69654 1.5394 6.70452 1.57952L6.9244 2.68496C6.93238 2.72508 6.97137 2.75114 7.0115 2.74316C7.05162 2.73518 7.07768 2.69618 7.0697 2.65606L6.84982 1.55062C6.84184 1.5105 6.80284 1.48444 6.76272 1.49242ZM8.79623 14.6657C8.80032 14.7064 8.77064 14.7428 8.72994 14.7468C8.68923 14.7509 8.65292 14.7213 8.64883 14.6806L8.60052 14.1998C8.59643 14.1591 8.62612 14.1228 8.66682 14.1187C8.70752 14.1146 8.74384 14.1443 8.74793 14.185L8.79623 14.6657ZM7.41372 1.39584C7.37301 1.39993 7.34333 1.43625 7.34742 1.47695L7.39573 1.95766C7.39982 1.99836 7.43613 2.02804 7.47683 2.02395C7.51754 2.01986 7.54722 1.98355 7.54313 1.94284L7.49483 1.46214C7.49074 1.42143 7.45442 1.39175 7.41372 1.39584Z",fill:"#DDDDDD"}),a.createElement("path",{d:"M3.14941 12.8505L7.29562 7.28674L7.99989 7.99218L3.14941 12.8505Z",fill:"#DDDDDD"}),a.createElement("path",{d:"M7.28662 7.29574L12.8504 3.14954L7.99204 8.00002L7.28662 7.29574Z",fill:"#EE4444"}),a.createElement("path",{d:"M12.8505 3.14954L8.70427 8.71332L8 8.00789L12.8505 3.14954Z",fill:"#CC0000"}),a.createElement("path",{d:"M3.14941 12.8505L8.7132 8.70427L8.00777 8L3.14941 12.8505Z",fill:"#AAAAAA"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_466_21186",x1:"0.300303",y1:"0.300951",x2:"0.300303",y2:"15.7084",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#F8F8F8"}),a.createElement("stop",{offset:"1",stopColor:"#CCCCCC"})),a.createElement("radialGradient",{id:"paint1_radial_466_21186",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.00216 8.0046) scale(7.06173)"},a.createElement("stop",{stopColor:"#00F0FF"}),a.createElement("stop",{offset:"1",stopColor:"#0070E0"})))),kh=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M14.9596 5.19849C14.6332 4.41337 13.9721 3.56574 13.453 3.29783C13.8755 4.12612 14.12 4.95699 14.2134 5.57708C14.2134 5.5783 14.2139 5.58133 14.2149 5.58958C13.3657 3.47293 11.9257 2.61943 10.7499 0.761053C10.6905 0.667084 10.631 0.572865 10.573 0.473553C10.5434 0.422834 10.5159 0.371004 10.4903 0.318178C10.4414 0.223861 10.4038 0.124166 10.378 0.0211155C10.3782 0.0162369 10.3765 0.0114673 10.3734 0.00774353C10.3702 0.0040198 10.3658 0.00161108 10.3609 0.000990505C10.3563 -0.000330168 10.3515 -0.000330168 10.3468 0.000990505C10.3458 0.0013655 10.3442 0.00258425 10.3431 0.00302175C10.3414 0.003678 10.3393 0.005178 10.3376 0.00614675C10.3384 0.00502175 10.3402 0.0024905 10.3407 0.00189675C8.45416 1.10677 7.81416 3.15068 7.75535 4.17327C7.00199 4.22506 6.28171 4.50262 5.68841 4.96977C5.62629 4.9173 5.56135 4.86827 5.49388 4.8229C5.3227 4.22402 5.31543 3.59017 5.47282 2.98752C4.70132 3.3388 4.10126 3.89408 3.66501 4.3844H3.66154C3.36382 4.0073 3.38482 2.76337 3.40179 2.50365C3.39822 2.48755 3.17969 2.61708 3.15107 2.63662C2.88835 2.82414 2.64275 3.03454 2.41713 3.26537C2.16039 3.52573 1.92581 3.80705 1.71582 4.1064C1.71582 4.10677 1.7156 4.10721 1.71547 4.10758C1.71547 4.10718 1.71569 4.10677 1.71582 4.1064C1.23289 4.79075 0.890387 5.56404 0.7081 6.38155C0.704506 6.39783 0.701475 6.41471 0.697975 6.43112C0.68385 6.49724 0.632975 6.82799 0.624068 6.89987C0.623381 6.9054 0.623068 6.91071 0.622412 6.91624C0.556638 7.2582 0.515905 7.60451 0.500537 7.9524C0.500537 7.96521 0.499756 7.9779 0.499756 7.99074C0.499881 12.138 3.86238 15.5 8.01001 15.5C11.7245 15.5 14.8088 12.8035 15.4126 9.26152C15.4253 9.1654 15.4355 9.06877 15.4467 8.9718C15.596 7.68399 15.4301 6.3304 14.9596 5.19849ZM6.30351 11.0764C6.33863 11.0932 6.37163 11.1116 6.40769 11.1276C6.40919 11.1287 6.41126 11.1298 6.41279 11.1308C6.37608 11.1132 6.33965 11.0951 6.30351 11.0764ZM14.2155 5.59143L14.2145 5.58415C14.2149 5.5868 14.2153 5.58958 14.2158 5.59224L14.2155 5.59143Z",fill:"url(#paint0_linear_466_21172)"}),a.createElement("path",{d:"M14.9598 5.19851C14.6334 4.41338 13.9723 3.56576 13.4532 3.29785C13.8757 4.12613 14.1202 4.95701 14.2136 5.5771C14.2136 5.57529 14.214 5.5786 14.2148 5.58416C14.2151 5.58682 14.2156 5.5896 14.216 5.59226C14.9246 7.5132 14.5386 9.46657 13.9823 10.6602C13.1217 12.5071 11.0381 14.3999 7.77678 14.3076C4.25319 14.2078 1.149 11.5934 0.569531 8.16904C0.463937 7.62904 0.569531 7.35485 0.622656 6.91641C0.557938 7.25441 0.533281 7.35204 0.500781 7.95257C0.500781 7.96538 0.5 7.97807 0.5 7.99091C0.500063 12.138 3.86256 15.5 8.01019 15.5C11.7247 15.5 14.8089 12.8035 15.4128 9.26154C15.4255 9.16541 15.4357 9.06879 15.4469 8.97182C15.5962 7.68401 15.4303 6.33041 14.9598 5.19851Z",fill:"url(#paint1_radial_466_21172)"}),a.createElement("path",{d:"M14.9598 5.19851C14.6334 4.41338 13.9723 3.56576 13.4532 3.29785C13.8757 4.12613 14.1202 4.95701 14.2136 5.5771C14.2136 5.57529 14.214 5.5786 14.2148 5.58416C14.2151 5.58682 14.2156 5.5896 14.216 5.59226C14.9246 7.5132 14.5386 9.46657 13.9823 10.6602C13.1217 12.5071 11.0381 14.3999 7.77678 14.3076C4.25319 14.2078 1.149 11.5934 0.569531 8.16904C0.463937 7.62904 0.569531 7.35485 0.622656 6.91641C0.557938 7.25441 0.533281 7.35204 0.500781 7.95257C0.500781 7.96538 0.5 7.97807 0.5 7.99091C0.500063 12.138 3.86256 15.5 8.01019 15.5C11.7247 15.5 14.8089 12.8035 15.4128 9.26154C15.4255 9.16541 15.4357 9.06879 15.4469 8.97182C15.5962 7.68401 15.4303 6.33041 14.9598 5.19851Z",fill:"url(#paint2_radial_466_21172)"}),a.createElement("path",{d:"M11.3101 6.08127C11.3265 6.09277 11.3413 6.10421 11.3567 6.11564C11.1683 5.78113 10.9336 5.47487 10.6596 5.20589C8.32502 2.87164 10.0474 0.144581 10.3379 0.00608106C10.3387 0.00495606 10.3405 0.0024248 10.341 0.00183105C8.45443 1.10671 7.81443 3.15061 7.75562 4.17321C7.84312 4.16714 7.93037 4.1598 8.01943 4.1598C9.42727 4.1598 10.6535 4.93386 11.3101 6.08127Z",fill:"url(#paint3_radial_466_21172)"}),a.createElement("path",{d:"M8.02405 6.54735C8.01177 6.73417 7.35173 7.37838 7.12092 7.37838C4.98533 7.37838 4.63867 8.6701 4.63867 8.6701C4.73327 9.75792 5.49058 10.6537 6.40777 11.1277C6.44961 11.1493 6.49195 11.1689 6.53433 11.1882C6.60698 11.2203 6.68054 11.2504 6.75492 11.2784C7.0694 11.3897 7.39881 11.4532 7.73214 11.4668C11.4753 11.6424 12.2005 6.99201 9.49917 5.64157C10.191 5.52126 10.909 5.79948 11.31 6.08117C10.6534 4.93385 9.4272 4.15979 8.01939 4.15979C7.93033 4.15979 7.84311 4.16713 7.75558 4.1732C7.00222 4.22499 6.28194 4.50255 5.68864 4.9697C5.80314 5.06657 5.93239 5.19607 6.2047 5.46432C6.71414 5.96642 8.02127 6.48635 8.02405 6.54735Z",fill:"url(#paint4_radial_466_21172)"}),a.createElement("path",{d:"M8.02405 6.54735C8.01177 6.73417 7.35173 7.37838 7.12092 7.37838C4.98533 7.37838 4.63867 8.6701 4.63867 8.6701C4.73327 9.75792 5.49058 10.6537 6.40777 11.1277C6.44961 11.1493 6.49195 11.1689 6.53433 11.1882C6.60698 11.2203 6.68054 11.2504 6.75492 11.2784C7.0694 11.3897 7.39881 11.4532 7.73214 11.4668C11.4753 11.6424 12.2005 6.99201 9.49917 5.64157C10.191 5.52126 10.909 5.79948 11.31 6.08117C10.6534 4.93385 9.4272 4.15979 8.01939 4.15979C7.93033 4.15979 7.84311 4.16713 7.75558 4.1732C7.00222 4.22499 6.28194 4.50255 5.68864 4.9697C5.80314 5.06657 5.93239 5.19607 6.2047 5.46432C6.71414 5.96642 8.02127 6.48635 8.02405 6.54735Z",fill:"url(#paint5_radial_466_21172)"}),a.createElement("path",{d:"M5.3385 4.71992C5.39081 4.75366 5.4427 4.78804 5.49416 4.82305C5.32298 4.22417 5.31571 3.59032 5.4731 2.98767C4.7016 3.33895 4.10153 3.89423 3.66528 4.38455C3.70138 4.38351 4.79072 4.36392 5.3385 4.71992Z",fill:"url(#paint6_radial_466_21172)"}),a.createElement("path",{d:"M0.569399 8.16902C1.14887 11.5933 4.25305 14.2078 7.77665 14.3076C11.0379 14.3999 13.1216 12.507 13.9821 10.6602C14.5384 9.46646 14.9245 7.51333 14.2159 5.59224L14.2156 5.59142L14.2146 5.58414C14.2138 5.57858 14.2134 5.57527 14.2135 5.57708C14.2135 5.5783 14.214 5.58133 14.215 5.58958C14.4813 7.32899 13.5965 9.01408 12.2134 10.1535L12.2092 10.1632C9.51406 12.3577 6.93502 11.4872 6.41284 11.1309C6.37613 11.1133 6.33967 11.0951 6.30346 11.0765C4.73215 10.3255 4.08302 8.89402 4.22221 7.66633C2.89543 7.66633 2.44302 6.5473 2.44302 6.5473C2.44302 6.5473 3.63424 5.69796 5.20421 6.43664C6.65827 7.1208 8.02384 6.54736 8.02399 6.5473C8.02121 6.4863 6.71409 5.96636 6.20452 5.4643C5.93224 5.19605 5.80296 5.06671 5.68846 4.96967C5.62634 4.91721 5.5614 4.86817 5.49393 4.8228C5.44241 4.78788 5.39052 4.7535 5.33827 4.71967C4.79052 4.36367 3.70115 4.38327 3.66505 4.38421H3.66159C3.36387 4.00711 3.38487 2.76317 3.40184 2.50346C3.39827 2.48736 3.17974 2.61689 3.15112 2.63642C2.8884 2.82395 2.6428 3.03435 2.41718 3.26517C2.16043 3.5256 1.92585 3.80698 1.71587 4.10639C1.71587 4.10677 1.71565 4.10721 1.71552 4.10758C1.71552 4.10717 1.71574 4.10677 1.71587 4.10639C1.23294 4.79075 0.890436 5.56403 0.708149 6.38155C0.704555 6.39783 0.437836 7.56411 0.569399 8.16902Z",fill:"url(#paint7_radial_466_21172)"}),a.createElement("path",{d:"M10.6595 5.2058C10.9335 5.47478 11.1682 5.78104 11.3566 6.11555C11.398 6.14662 11.4366 6.17759 11.4694 6.2078C13.172 7.77655 12.2799 9.9953 12.2134 10.1534C13.5965 9.01405 14.4813 7.32896 14.215 5.58955C13.3657 3.47293 11.9258 2.61943 10.7499 0.761053C10.6905 0.667084 10.631 0.572866 10.573 0.473553C10.5435 0.422834 10.5159 0.371004 10.4903 0.318178C10.4415 0.223861 10.4038 0.124166 10.3781 0.0211155C10.3782 0.0162369 10.3766 0.0114673 10.3734 0.00774353C10.3703 0.0040198 10.3658 0.00161108 10.361 0.000990505C10.3564 -0.000330168 10.3515 -0.000330168 10.3469 0.000990505C10.3458 0.0013655 10.3443 0.00258425 10.3431 0.00302176C10.3415 0.003678 10.3394 0.00517801 10.3376 0.00614676C10.0473 0.144522 8.32493 2.87158 10.6595 5.2058Z",fill:"url(#paint8_radial_466_21172)"}),a.createElement("path",{d:"M11.4694 6.20779C11.4366 6.17757 11.398 6.1466 11.3566 6.11554C11.3413 6.10404 11.3263 6.0926 11.31 6.08117C10.909 5.79948 10.1909 5.52126 9.49912 5.64157C12.2004 6.99201 11.4752 11.6424 7.73209 11.4668C7.39876 11.4532 7.06935 11.3897 6.75487 11.2784C6.6805 11.2504 6.60694 11.2203 6.53428 11.1882C6.4919 11.1689 6.44956 11.1493 6.40771 11.1277C6.40921 11.1287 6.41128 11.1299 6.41281 11.1308C6.935 11.4871 9.51403 12.3576 12.2092 10.1631L12.2133 10.1534C12.2799 9.99542 13.1719 7.77657 11.4694 6.20779Z",fill:"url(#paint9_radial_466_21172)"}),a.createElement("path",{d:"M4.63871 8.67006C4.63871 8.67006 4.98537 7.37834 7.12096 7.37834C7.35183 7.37834 8.01187 6.73412 8.02408 6.54731C8.0363 6.36049 6.65846 7.12081 5.2043 6.43665C3.63433 5.69796 2.44312 6.54731 2.44312 6.54731C2.44312 6.54731 2.89552 7.66634 4.2223 7.66634C4.08315 8.89402 4.73227 10.3257 6.30355 11.0765C6.33868 11.0932 6.37168 11.1116 6.40774 11.1277C5.49062 10.6537 4.7333 9.75787 4.63871 8.67006Z",fill:"url(#paint10_radial_466_21172)"}),a.createElement("path",{d:"M14.9597 5.19849C14.6333 4.41337 13.9722 3.56574 13.4531 3.29783C13.8756 4.12612 14.1201 4.95699 14.2136 5.57708C14.2136 5.5783 14.214 5.58133 14.215 5.58958C13.3658 3.47293 11.9258 2.61943 10.75 0.761053C10.6906 0.667084 10.6311 0.572865 10.5731 0.473553C10.5436 0.422834 10.516 0.371004 10.4904 0.318178C10.4416 0.223861 10.4039 0.124166 10.3781 0.0211155C10.3783 0.0162369 10.3767 0.0114673 10.3735 0.00774353C10.3703 0.0040198 10.3659 0.00161108 10.3611 0.000990505C10.3565 -0.000330168 10.3516 -0.000330168 10.347 0.000990505C10.3459 0.0013655 10.3443 0.00258425 10.3432 0.00302175C10.3416 0.003678 10.3395 0.005178 10.3377 0.00614675C10.3386 0.00502175 10.3403 0.0024905 10.3408 0.00189675C8.45428 1.10677 7.81428 3.15068 7.75547 4.17327C7.84297 4.16721 7.93022 4.15987 8.01928 4.15987C9.42719 4.15987 10.6534 4.93393 11.3099 6.08124C10.9089 5.79955 10.1908 5.52133 9.49906 5.64165C12.2003 6.99208 11.4752 11.6425 7.73203 11.4669C7.3987 11.4533 7.06929 11.3898 6.75481 11.2784C6.68044 11.2505 6.60688 11.2204 6.53422 11.1882C6.49184 11.1689 6.4495 11.1494 6.40766 11.1278C6.40916 11.1288 6.41122 11.13 6.41275 11.1309C6.37605 11.1132 6.33958 11.0951 6.30337 11.0764C6.3385 11.0932 6.3715 11.1116 6.40756 11.1276C5.49038 10.6536 4.73306 9.75786 4.63847 8.67005C4.63847 8.67005 4.98513 7.37833 7.12072 7.37833C7.35159 7.37833 8.01162 6.73412 8.02384 6.5473C8.02106 6.4863 6.71394 5.96637 6.20437 5.4643C5.93209 5.19605 5.80281 5.06671 5.68831 4.96968C5.62619 4.91721 5.56125 4.86818 5.49378 4.8228C5.3226 4.22393 5.31533 3.59008 5.47272 2.98743C4.70122 3.33871 4.10116 3.89399 3.66491 4.3843H3.66144C3.36372 4.00721 3.38472 2.76327 3.40169 2.50355C3.39812 2.48746 3.17959 2.61699 3.15097 2.63652C2.88825 2.82404 2.64265 3.03445 2.41703 3.26527C2.16036 3.52567 1.92585 3.80702 1.71594 4.1064C1.71594 4.10677 1.71572 4.10721 1.71559 4.10758C1.71559 4.10718 1.71581 4.10677 1.71594 4.1064C1.23301 4.79075 0.890506 5.56404 0.708219 6.38155C0.704625 6.39783 0.701594 6.41471 0.698094 6.43112C0.683969 6.49724 0.620406 6.83277 0.611531 6.90474C0.610844 6.91027 0.612187 6.89924 0.611531 6.90474C0.553567 7.25147 0.516583 7.60137 0.500781 7.95255C0.500781 7.96537 0.5 7.97805 0.5 7.9909C0.5 12.138 3.8625 15.5 8.01012 15.5C11.7247 15.5 14.8089 12.8035 15.4127 9.26152C15.4254 9.1654 15.4356 9.06877 15.4468 8.9718C15.5961 7.68399 15.4302 6.3304 14.9597 5.19849ZM14.2147 5.58415C14.2151 5.5868 14.2155 5.58958 14.2159 5.59224L14.2157 5.59143L14.2147 5.58415Z",fill:"url(#paint11_linear_466_21172)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_466_21172",x1:"13.5874",y1:"2.40249",x2:"1.52839",y2:"14.0351",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.05",stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.37",stopColor:"#FF980E"}),a.createElement("stop",{offset:"0.53",stopColor:"#FF3647"}),a.createElement("stop",{offset:"0.7",stopColor:"#E31587"})),a.createElement("radialGradient",{id:"paint1_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.8936 1.72781) scale(15.3601 15.6187)"},a.createElement("stop",{offset:"0.13",stopColor:"#FFBD4F"}),a.createElement("stop",{offset:"0.28",stopColor:"#FF980E"}),a.createElement("stop",{offset:"0.47",stopColor:"#FF3750"}),a.createElement("stop",{offset:"0.78",stopColor:"#EB0878"}),a.createElement("stop",{offset:"0.86",stopColor:"#E50080"})),a.createElement("radialGradient",{id:"paint2_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.43979 8.1787) scale(15.7441 15.6187)"},a.createElement("stop",{offset:"0.3",stopColor:"#960E18"}),a.createElement("stop",{offset:"0.35",stopColor:"#B11927",stopOpacity:"0.74"}),a.createElement("stop",{offset:"0.43",stopColor:"#DB293D",stopOpacity:"0.34"}),a.createElement("stop",{offset:"0.5",stopColor:"#F5334B",stopOpacity:"0.09"}),a.createElement("stop",{offset:"0.53",stopColor:"#FF3750",stopOpacity:"0"})),a.createElement("radialGradient",{id:"paint3_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(9.48415 -0.731827) scale(5.04157 8.55934)"},a.createElement("stop",{offset:"0.13",stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.53",stopColor:"#FF980E"})),a.createElement("radialGradient",{id:"paint4_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.15707 12.2109) scale(6.67134 7.31187)"},a.createElement("stop",{offset:"0.35",stopColor:"#3A8EE6"}),a.createElement("stop",{offset:"0.67",stopColor:"#9059FF"}),a.createElement("stop",{offset:"1",stopColor:"#C139E6"})),a.createElement("radialGradient",{id:"paint5_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.29699 6.57271) scale(3.54248 4.314)"},a.createElement("stop",{offset:"0.21",stopColor:"#9059FF",stopOpacity:"0"}),a.createElement("stop",{offset:"0.97",stopColor:"#6E008B",stopOpacity:"0.6"})),a.createElement("radialGradient",{id:"paint6_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.50592 1.1523) scale(5.30374 5.32259)"},a.createElement("stop",{offset:"0.1",stopColor:"#FFE226"}),a.createElement("stop",{offset:"0.79",stopColor:"#FF7139"})),a.createElement("radialGradient",{id:"paint7_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(12.3495 -2.33951) scale(25.3212 21.2557)"},a.createElement("stop",{offset:"0.11",stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.46",stopColor:"#FF980E"}),a.createElement("stop",{offset:"0.72",stopColor:"#FF3647"}),a.createElement("stop",{offset:"0.9",stopColor:"#E31587"})),a.createElement("radialGradient",{id:"paint8_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(2.94576 4.67997) rotate(77.3946) scale(8.03354 34.7519)"},a.createElement("stop",{stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.3",stopColor:"#FF980E"}),a.createElement("stop",{offset:"0.57",stopColor:"#FF3647"}),a.createElement("stop",{offset:"0.74",stopColor:"#E31587"})),a.createElement("radialGradient",{id:"paint9_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.56027 3.06659) scale(14.5381 14.2827)"},a.createElement("stop",{offset:"0.14",stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.48",stopColor:"#FF980E"}),a.createElement("stop",{offset:"0.66",stopColor:"#FF3647"}),a.createElement("stop",{offset:"0.9",stopColor:"#E31587"})),a.createElement("radialGradient",{id:"paint10_radial_466_21172",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11.3337 3.90193) scale(17.4743 15.6328)"},a.createElement("stop",{offset:"0.09",stopColor:"#FFF44F"}),a.createElement("stop",{offset:"0.63",stopColor:"#FF980E"})),a.createElement("linearGradient",{id:"paint11_linear_466_21172",x1:"12.5",y1:"2.16999",x2:"2.85701",y2:"12.7061",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:"0.17",stopColor:"#FFF44F",stopOpacity:"0.8"}),a.createElement("stop",{offset:"0.6",stopColor:"#FFF44F",stopOpacity:"0"})))),wh=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("circle",{cx:"8.00009",cy:"7.99997",r:"7.7037",fill:"url(#paint0_linear_466_21186)"}),a.createElement("ellipse",{cx:"8.00094",cy:"8.00094",rx:"7.06173",ry:"7.06173",fill:"url(#paint1_radial_466_21186)"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.07134 1.36353C8.03043 1.36353 7.99727 1.39669 7.99727 1.4376V2.56469C7.99727 2.6056 8.03043 2.63877 8.07134 2.63877C8.11225 2.63877 8.14542 2.6056 8.14542 2.56469V1.4376C8.14542 1.39669 8.11225 1.36353 8.07134 1.36353ZM8.07134 14.7792C8.11225 14.7792 8.14542 14.746 8.14542 14.7051V13.578C8.14542 13.5371 8.11225 13.5039 8.07134 13.5039C8.03043 13.5039 7.99727 13.5371 7.99727 13.578V14.7051C7.99727 14.746 8.03043 14.7792 8.07134 14.7792ZM8.64883 1.46214C8.65292 1.42143 8.68923 1.39175 8.72994 1.39584C8.77064 1.39993 8.80032 1.43625 8.79623 1.47695L8.74793 1.95766C8.74384 1.99836 8.70752 2.02804 8.66682 2.02395C8.62612 2.01986 8.59643 1.98355 8.60052 1.94284L8.64883 1.46214ZM7.41372 14.7468C7.45442 14.7509 7.49074 14.7213 7.49483 14.6806L7.54313 14.1998C7.54722 14.1591 7.51754 14.1228 7.47683 14.1187C7.43613 14.1146 7.39982 14.1443 7.39573 14.185L7.34742 14.6657C7.34333 14.7064 7.37301 14.7428 7.41372 14.7468ZM14.7051 7.99727C14.746 7.99727 14.7792 8.03043 14.7792 8.07134C14.7792 8.11225 14.746 8.14542 14.7051 8.14542H13.578C13.5371 8.14542 13.5039 8.11225 13.5039 8.07134C13.5039 8.03043 13.5371 7.99727 13.578 7.99727H14.7051ZM1.36353 8.07134C1.36353 8.11225 1.39669 8.14542 1.4376 8.14542H2.56469C2.6056 8.14542 2.63877 8.11225 2.63877 8.07134C2.63877 8.03043 2.6056 7.99727 2.56469 7.99727H1.4376C1.39669 7.99727 1.36353 8.03043 1.36353 8.07134ZM14.6806 8.64883C14.7213 8.65292 14.7509 8.68923 14.7468 8.72994C14.7428 8.77064 14.7064 8.80032 14.6657 8.79623L14.185 8.74793C14.1443 8.74384 14.1146 8.70752 14.1187 8.66682C14.1228 8.62612 14.1591 8.59643 14.1998 8.60052L14.6806 8.64883ZM1.39584 7.41372C1.39175 7.45442 1.42143 7.49074 1.46214 7.49483L1.94284 7.54313C1.98355 7.54722 2.01986 7.51754 2.02395 7.47683C2.02804 7.43613 1.99836 7.39982 1.95766 7.39573L1.47695 7.34742C1.43625 7.34333 1.39993 7.37301 1.39584 7.41372ZM12.7097 3.3282C12.7387 3.29927 12.7856 3.29927 12.8145 3.3282C12.8434 3.35713 12.8434 3.40403 12.8145 3.43296L12.0175 4.22994C11.9886 4.25887 11.9417 4.25887 11.9127 4.22994C11.8838 4.20101 11.8838 4.15411 11.9127 4.12518L12.7097 3.3282ZM3.3282 12.8145C3.35713 12.8434 3.40403 12.8434 3.43296 12.8145L4.22994 12.0175C4.25887 11.9886 4.25887 11.9417 4.22994 11.9127C4.20101 11.8838 4.15411 11.8838 4.12518 11.9127L3.3282 12.7097C3.29927 12.7387 3.29927 12.7856 3.3282 12.8145ZM13.1523 3.80568C13.1839 3.77973 13.2306 3.78433 13.2566 3.81595C13.2825 3.84757 13.2779 3.89425 13.2463 3.9202L12.8729 4.22664C12.8413 4.2526 12.7946 4.248 12.7686 4.21638C12.7427 4.18475 12.7473 4.13808 12.7789 4.11212L13.1523 3.80568ZM2.88614 12.3267C2.91209 12.3584 2.95876 12.363 2.99039 12.337L3.36378 12.0306C3.3954 12.0046 3.4 11.9579 3.37404 11.9263C3.34809 11.8947 3.30142 11.8901 3.26979 11.916L2.8964 12.2225C2.86478 12.2484 2.86018 12.2951 2.88614 12.3267ZM12.8145 12.7097C12.8434 12.7387 12.8434 12.7856 12.8145 12.8145C12.7856 12.8434 12.7387 12.8434 12.7097 12.8145L11.9127 12.0175C11.8838 11.9886 11.8838 11.9417 11.9127 11.9127C11.9417 11.8838 11.9886 11.8838 12.0175 11.9127L12.8145 12.7097ZM3.3282 3.3282C3.29927 3.35713 3.29927 3.40403 3.3282 3.43296L4.12518 4.22994C4.15411 4.25887 4.20101 4.25887 4.22994 4.22994C4.25887 4.20101 4.25887 4.15411 4.22994 4.12518L3.43296 3.3282C3.40403 3.29927 3.35713 3.29927 3.3282 3.3282ZM12.337 13.1523C12.363 13.1839 12.3584 13.2306 12.3267 13.2566C12.2951 13.2825 12.2484 13.2779 12.2225 13.2463L11.916 12.8729C11.8901 12.8413 11.8947 12.7946 11.9263 12.7686C11.9579 12.7427 12.0046 12.7473 12.0306 12.7789L12.337 13.1523ZM3.81595 2.88614C3.78433 2.91209 3.77973 2.95876 3.80568 2.99039L4.11212 3.36378C4.13808 3.3954 4.18475 3.4 4.21638 3.37404C4.248 3.34809 4.2526 3.30142 4.22664 3.26979L3.9202 2.8964C3.89425 2.86478 3.84757 2.86018 3.81595 2.88614ZM10.5415 1.91422C10.5572 1.87643 10.6005 1.85848 10.6383 1.87413C10.6761 1.88979 10.6941 1.93312 10.6784 1.97092L10.2471 3.01221C10.2314 3.05 10.1881 3.06795 10.1503 3.05229C10.1125 3.03664 10.0946 2.99331 10.1102 2.95551L10.5415 1.91422ZM5.50437 14.2686C5.54216 14.2842 5.58549 14.2663 5.60115 14.2285L6.03247 13.1872C6.04813 13.1494 6.03018 13.1061 5.99238 13.0904C5.95459 13.0747 5.91126 13.0927 5.8956 13.1305L5.46428 14.1718C5.44862 14.2096 5.46657 14.2529 5.50437 14.2686ZM11.1332 2.18598C11.1524 2.1499 11.1973 2.13628 11.2334 2.15557C11.2695 2.17486 11.2831 2.21974 11.2638 2.25582L11.0361 2.68183C11.0168 2.7179 10.9719 2.73152 10.9358 2.71223C10.8998 2.69295 10.8861 2.64806 10.9054 2.61199L11.1332 2.18598ZM4.90931 13.9871C4.94539 14.0064 4.99027 13.9928 5.00955 13.9567L5.23726 13.5307C5.25654 13.4946 5.24293 13.4497 5.20685 13.4305C5.17077 13.4112 5.12589 13.4248 5.1066 13.4609L4.8789 13.8869C4.85961 13.923 4.87323 13.9678 4.90931 13.9871ZM14.2285 10.5415C14.2663 10.5572 14.2842 10.6005 14.2686 10.6383C14.2529 10.6761 14.2096 10.6941 14.1718 10.6784L13.1305 10.2471C13.0927 10.2314 13.0747 10.1881 13.0904 10.1503C13.1061 10.1125 13.1494 10.0946 13.1872 10.1102L14.2285 10.5415ZM1.87412 5.50437C1.85846 5.54216 1.87641 5.58549 1.91421 5.60115L2.95551 6.03247C2.99331 6.04813 3.03664 6.03018 3.05229 5.99238C3.06795 5.95459 3.05 5.91126 3.0122 5.8956L1.9709 5.46428C1.9331 5.44862 1.88977 5.46657 1.87412 5.50437ZM13.9567 11.1332C13.9928 11.1524 14.0064 11.1973 13.9871 11.2334C13.9678 11.2695 13.923 11.2831 13.8869 11.2638L13.4609 11.0361C13.4248 11.0168 13.4112 10.9719 13.4305 10.9358C13.4497 10.8998 13.4946 10.8861 13.5307 10.9054L13.9567 11.1332ZM2.15557 4.90929C2.13628 4.94537 2.1499 4.99025 2.18598 5.00954L2.61199 5.23726C2.64806 5.25654 2.69295 5.24293 2.71223 5.20685C2.73152 5.17077 2.7179 5.12589 2.68183 5.1066L2.25582 4.87888C2.21974 4.8596 2.17486 4.87321 2.15557 4.90929ZM14.1718 5.46428C14.2096 5.44862 14.2529 5.46657 14.2686 5.50437C14.2842 5.54216 14.2663 5.58549 14.2285 5.60115L13.1872 6.03247C13.1494 6.04813 13.1061 6.03018 13.0904 5.99238C13.0747 5.95459 13.0927 5.91126 13.1305 5.8956L14.1718 5.46428ZM1.87413 10.6383C1.88979 10.6761 1.93312 10.6941 1.97092 10.6784L3.01221 10.2471C3.05 10.2314 3.06795 10.1881 3.05229 10.1503C3.03664 10.1125 2.99331 10.0946 2.95551 10.1102L1.91422 10.5415C1.87643 10.5572 1.85848 10.6005 1.87413 10.6383ZM14.3979 6.07477C14.4371 6.0629 14.4785 6.08501 14.4903 6.12416C14.5022 6.1633 14.4801 6.20467 14.441 6.21654L13.9787 6.35677C13.9396 6.36864 13.8982 6.34654 13.8863 6.30739C13.8744 6.26824 13.8965 6.22688 13.9357 6.215L14.3979 6.07477ZM1.65237 10.0185C1.66425 10.0577 1.70561 10.0798 1.74476 10.0679L2.20699 9.92769C2.24614 9.91581 2.26825 9.87445 2.25637 9.8353C2.2445 9.79615 2.20313 9.77404 2.16399 9.78592L1.70175 9.92615C1.6626 9.93802 1.64049 9.97939 1.65237 10.0185ZM10.6383 14.2686C10.6005 14.2842 10.5572 14.2663 10.5415 14.2285L10.1102 13.1872C10.0946 13.1494 10.1125 13.1061 10.1503 13.0904C10.1881 13.0747 10.2314 13.0927 10.2471 13.1305L10.6784 14.1718C10.6941 14.2096 10.6761 14.2529 10.6383 14.2686ZM5.50437 1.87413C5.46657 1.88979 5.44862 1.93312 5.46428 1.97092L5.8956 3.01221C5.91126 3.05 5.95459 3.06795 5.99238 3.05229C6.03018 3.03664 6.04813 2.99331 6.03247 2.95551L5.60115 1.91422C5.58549 1.87643 5.54216 1.85848 5.50437 1.87413ZM10.0679 14.3979C10.0798 14.4371 10.0577 14.4785 10.0185 14.4903C9.97939 14.5022 9.93802 14.4801 9.92615 14.441L9.78592 13.9787C9.77404 13.9396 9.79615 13.8982 9.8353 13.8863C9.87445 13.8744 9.91581 13.8965 9.92769 13.9357L10.0679 14.3979ZM6.12417 1.65237C6.08502 1.66424 6.06291 1.70561 6.07479 1.74475L6.215 2.20699C6.22688 2.24614 6.26824 2.26825 6.30739 2.25637C6.34654 2.2445 6.36864 2.20314 6.35677 2.16399L6.21656 1.70175C6.20468 1.6626 6.16332 1.64049 6.12417 1.65237ZM9.29287 1.55062C9.30085 1.5105 9.33985 1.48444 9.37997 1.49242C9.4201 1.5004 9.44615 1.5394 9.43817 1.57952L9.21829 2.68496C9.21031 2.72508 9.17131 2.75114 9.13119 2.74316C9.09107 2.73518 9.06501 2.69618 9.07299 2.65606L9.29287 1.55062ZM6.76272 14.6503C6.80284 14.6583 6.84184 14.6322 6.84982 14.5921L7.0697 13.4866C7.07768 13.4465 7.05162 13.4075 7.0115 13.3995C6.97137 13.3916 6.93238 13.4176 6.9244 13.4577L6.70452 14.5632C6.69654 14.6033 6.72259 14.6423 6.76272 14.6503ZM9.92615 1.70175C9.93802 1.6626 9.97939 1.64049 10.0185 1.65237C10.0577 1.66425 10.0798 1.70561 10.0679 1.74476L9.92769 2.20699C9.91581 2.24614 9.87445 2.26825 9.8353 2.25637C9.79615 2.2445 9.77404 2.20313 9.78592 2.16399L9.92615 1.70175ZM6.12417 14.4903C6.16332 14.5022 6.20469 14.4801 6.21656 14.441L6.35677 13.9787C6.36864 13.9396 6.34653 13.8982 6.30739 13.8863C6.26824 13.8744 6.22687 13.8965 6.215 13.9357L6.07479 14.398C6.06291 14.4371 6.08502 14.4785 6.12417 14.4903ZM14.5921 9.29287C14.6322 9.30085 14.6583 9.33985 14.6503 9.37997C14.6423 9.4201 14.6033 9.44615 14.5632 9.43817L13.4577 9.21829C13.4176 9.21031 13.3916 9.17131 13.3995 9.13119C13.4075 9.09107 13.4465 9.06501 13.4866 9.07299L14.5921 9.29287ZM1.49242 6.76272C1.48444 6.80284 1.5105 6.84184 1.55062 6.84982L2.65606 7.0697C2.69618 7.07768 2.73518 7.05162 2.74316 7.0115C2.75114 6.97137 2.72508 6.93238 2.68496 6.9244L1.57952 6.70452C1.5394 6.69654 1.5004 6.72259 1.49242 6.76272ZM14.441 9.92615C14.4801 9.93802 14.5022 9.97939 14.4903 10.0185C14.4785 10.0577 14.4371 10.0798 14.3979 10.0679L13.9357 9.92769C13.8965 9.91581 13.8744 9.87445 13.8863 9.8353C13.8982 9.79615 13.9396 9.77404 13.9787 9.78592L14.441 9.92615ZM1.65237 6.12415C1.64049 6.1633 1.6626 6.20467 1.70175 6.21654L2.16399 6.35677C2.20313 6.36864 2.2445 6.34654 2.25637 6.30739C2.26825 6.26824 2.24614 6.22688 2.20699 6.215L1.74476 6.07477C1.70561 6.0629 1.66425 6.08501 1.65237 6.12415ZM13.5459 4.32424C13.58 4.30151 13.626 4.31066 13.6487 4.34468C13.6714 4.37869 13.6623 4.42469 13.6282 4.44742L12.6911 5.0736C12.6571 5.09633 12.6111 5.08718 12.5884 5.05317C12.5656 5.01915 12.5748 4.97315 12.6088 4.95042L13.5459 4.32424ZM2.494 11.798C2.51673 11.832 2.56273 11.8412 2.59675 11.8184L3.53389 11.1923C3.56791 11.1695 3.57706 11.1235 3.55433 11.0895C3.5316 11.0555 3.4856 11.0464 3.45159 11.0691L2.51444 11.6953C2.48043 11.718 2.47128 11.764 2.494 11.798ZM13.8869 4.87888C13.923 4.8596 13.9678 4.87321 13.9871 4.90929C14.0064 4.94537 13.9928 4.99025 13.9567 5.00954L13.5307 5.23726C13.4946 5.25654 13.4497 5.24293 13.4305 5.20685C13.4112 5.17077 13.4248 5.12589 13.4609 5.1066L13.8869 4.87888ZM2.15557 11.2334C2.17486 11.2695 2.21974 11.2831 2.25582 11.2638L2.68183 11.0361C2.7179 11.0168 2.73152 10.9719 2.71223 10.9358C2.69295 10.8998 2.64806 10.8861 2.61199 10.9054L2.18598 11.1332C2.1499 11.1524 2.13628 11.1973 2.15557 11.2334ZM11.8184 13.5459C11.8412 13.58 11.832 13.626 11.798 13.6487C11.764 13.6714 11.718 13.6623 11.6953 13.6282L11.0691 12.6911C11.0464 12.6571 11.0555 12.6111 11.0895 12.5884C11.1235 12.5656 11.1695 12.5748 11.1923 12.6088L11.8184 13.5459ZM4.34468 2.494C4.31066 2.51673 4.30151 2.56273 4.32424 2.59675L4.95042 3.53389C4.97315 3.56791 5.01915 3.57706 5.05317 3.55433C5.08718 3.5316 5.09633 3.4856 5.0736 3.45159L4.44742 2.51444C4.42469 2.48043 4.37869 2.47128 4.34468 2.494ZM11.2638 13.8869C11.2831 13.923 11.2695 13.9678 11.2334 13.9871C11.1973 14.0064 11.1524 13.9928 11.1331 13.9567L10.9054 13.5307C10.8861 13.4946 10.8998 13.4497 10.9358 13.4305C10.9719 13.4112 11.0168 13.4248 11.0361 13.4609L11.2638 13.8869ZM4.90931 2.15557C4.87323 2.17485 4.85961 2.21974 4.8789 2.25581L5.1066 2.68182C5.12589 2.7179 5.17077 2.73152 5.20685 2.71223C5.24293 2.69295 5.25654 2.64807 5.23726 2.61199L5.00955 2.18598C4.99027 2.1499 4.94539 2.13628 4.90931 2.15557ZM11.6953 2.51444C11.718 2.48043 11.764 2.47128 11.798 2.494C11.832 2.51673 11.8412 2.56273 11.8184 2.59675L11.1923 3.53389C11.1695 3.56791 11.1235 3.57706 11.0895 3.55433C11.0555 3.5316 11.0464 3.4856 11.0691 3.45159L11.6953 2.51444ZM4.34468 13.6487C4.37869 13.6714 4.42469 13.6623 4.44742 13.6282L5.0736 12.6911C5.09633 12.6571 5.08718 12.6111 5.05317 12.5884C5.01915 12.5656 4.97315 12.5748 4.95042 12.6088L4.32424 13.5459C4.30151 13.58 4.31066 13.626 4.34468 13.6487ZM12.2225 2.8964C12.2484 2.86478 12.2951 2.86018 12.3267 2.88614C12.3584 2.91209 12.363 2.95876 12.337 2.99039L12.0306 3.36378C12.0046 3.3954 11.9579 3.4 11.9263 3.37404C11.8947 3.34809 11.8901 3.30142 11.916 3.26979L12.2225 2.8964ZM3.81595 13.2566C3.84757 13.2825 3.89425 13.2779 3.9202 13.2463L4.22664 12.8729C4.2526 12.8413 4.248 12.7946 4.21638 12.7686C4.18475 12.7427 4.13808 12.7473 4.11212 12.7789L3.80568 13.1523C3.77973 13.1839 3.78433 13.2306 3.81595 13.2566ZM13.6282 11.6953C13.6623 11.718 13.6714 11.764 13.6487 11.798C13.626 11.832 13.58 11.8412 13.5459 11.8184L12.6088 11.1923C12.5748 11.1695 12.5656 11.1235 12.5884 11.0895C12.6111 11.0555 12.6571 11.0464 12.6911 11.0691L13.6282 11.6953ZM2.494 4.34468C2.47128 4.37869 2.48043 4.42469 2.51444 4.44742L3.45159 5.0736C3.4856 5.09633 3.5316 5.08718 3.55433 5.05317C3.57706 5.01915 3.56791 4.97315 3.53389 4.95042L2.59675 4.32424C2.56273 4.30151 2.51673 4.31066 2.494 4.34468ZM13.2463 12.2225C13.2779 12.2484 13.2825 12.2951 13.2566 12.3267C13.2306 12.3584 13.1839 12.363 13.1523 12.337L12.7789 12.0306C12.7473 12.0046 12.7427 11.9579 12.7686 11.9263C12.7946 11.8947 12.8413 11.8901 12.8729 11.916L13.2463 12.2225ZM2.88614 3.81595C2.86018 3.84757 2.86478 3.89425 2.8964 3.9202L3.26979 4.22664C3.30142 4.2526 3.34809 4.248 3.37404 4.21638C3.4 4.18475 3.3954 4.13808 3.36378 4.11212L2.99039 3.80568C2.95876 3.77973 2.91209 3.78433 2.88614 3.81595ZM14.5632 6.70452C14.6033 6.69654 14.6423 6.72259 14.6503 6.76272C14.6583 6.80284 14.6322 6.84184 14.5921 6.84982L13.4866 7.0697C13.4465 7.07768 13.4075 7.05162 13.3995 7.0115C13.3916 6.97137 13.4176 6.93238 13.4577 6.9244L14.5632 6.70452ZM1.49242 9.37997C1.5004 9.4201 1.5394 9.44615 1.57952 9.43817L2.68496 9.21829C2.72508 9.21031 2.75114 9.17131 2.74316 9.13119C2.73518 9.09107 2.69618 9.06501 2.65606 9.07299L1.55062 9.29287C1.5105 9.30085 1.48444 9.33985 1.49242 9.37997ZM14.6657 7.34742C14.7064 7.34333 14.7428 7.37301 14.7468 7.41372C14.7509 7.45442 14.7213 7.49074 14.6806 7.49483L14.1998 7.54313C14.1591 7.54722 14.1228 7.51754 14.1187 7.47683C14.1146 7.43613 14.1443 7.39982 14.185 7.39573L14.6657 7.34742ZM1.39584 8.72994C1.39993 8.77064 1.43625 8.80032 1.47695 8.79623L1.95766 8.74793C1.99836 8.74384 2.02804 8.70752 2.02395 8.66682C2.01986 8.62612 1.98355 8.59643 1.94284 8.60052L1.46214 8.64883C1.42143 8.65292 1.39175 8.68923 1.39584 8.72994ZM9.43817 14.5632C9.44615 14.6033 9.4201 14.6423 9.37997 14.6503C9.33985 14.6583 9.30085 14.6322 9.29287 14.5921L9.07299 13.4866C9.06501 13.4465 9.09107 13.4075 9.13119 13.3995C9.17131 13.3916 9.21031 13.4176 9.21829 13.4577L9.43817 14.5632ZM6.76272 1.49242C6.72259 1.5004 6.69654 1.5394 6.70452 1.57952L6.9244 2.68496C6.93238 2.72508 6.97137 2.75114 7.0115 2.74316C7.05162 2.73518 7.07768 2.69618 7.0697 2.65606L6.84982 1.55062C6.84184 1.5105 6.80284 1.48444 6.76272 1.49242ZM8.79623 14.6657C8.80032 14.7064 8.77064 14.7428 8.72994 14.7468C8.68923 14.7509 8.65292 14.7213 8.64883 14.6806L8.60052 14.1998C8.59643 14.1591 8.62612 14.1228 8.66682 14.1187C8.70752 14.1146 8.74384 14.1443 8.74793 14.185L8.79623 14.6657ZM7.41372 1.39584C7.37301 1.39993 7.34333 1.43625 7.34742 1.47695L7.39573 1.95766C7.39982 1.99836 7.43613 2.02804 7.47683 2.02395C7.51754 2.01986 7.54722 1.98355 7.54313 1.94284L7.49483 1.46214C7.49074 1.42143 7.45442 1.39175 7.41372 1.39584Z",fill:"#DDDDDD"}),a.createElement("path",{d:"M3.14941 12.8505L7.29562 7.28674L7.99989 7.99218L3.14941 12.8505Z",fill:"#DDDDDD"}),a.createElement("path",{d:"M7.28662 7.29574L12.8504 3.14954L7.99204 8.00002L7.28662 7.29574Z",fill:"#EE4444"}),a.createElement("path",{d:"M12.8505 3.14954L8.70427 8.71332L8 8.00789L12.8505 3.14954Z",fill:"#CC0000"}),a.createElement("path",{d:"M3.14941 12.8505L8.7132 8.70427L8.00777 8L3.14941 12.8505Z",fill:"#AAAAAA"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_466_21186",x1:"0.300303",y1:"0.300951",x2:"0.300303",y2:"15.7084",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#F8F8F8"}),a.createElement("stop",{offset:"1",stopColor:"#CCCCCC"})),a.createElement("radialGradient",{id:"paint1_radial_466_21186",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.00216 8.0046) scale(7.06173)"},a.createElement("stop",{stopColor:"#00F0FF"}),a.createElement("stop",{offset:"1",stopColor:"#0070E0"})))),Z1={CHROME:a.createElement(bh,{alt:"Chrome"}),FIREFOX:a.createElement(kh,{alt:"Firefox"}),SAFARI:a.createElement(wh,{alt:"Safari"}),EDGE:a.createElement(Eh,{alt:"Edge"})},Ch=w.div(({theme:e})=>({alignItems:"center",color:e.base==="light"?e.color.dark:e.color.light,display:"inline-flex",gap:6,height:16,margin:"6px 7px",svg:{verticalAlign:"top"}})),I1=w.span(({theme:e})=>({color:e.base==="light"?e.color.dark:e.color.light,display:"none",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,"@container (min-width: 300px)":{display:"inline-block"},"+ svg":{color:e.base==="light"?e.color.dark:e.color.light},"button:hover > &, button:hover > & + svg":{color:e.color.secondary}})),Sh=({isAccepted:e,selectedBrowser:t,browserResults:n,onSelectBrowser:r})=>{qt();let i=_r(n.map(({result:s})=>s));if(!i)return null;let o=Z1[t.key];!e&&i!=="EQUAL"&&n.length>=2&&(o=a.createElement(Zr,{status:i},o));let l=n.length>1&&n.map(({browser:s,result:c})=>({active:t===s,id:s.id,onClick:()=>r(s),right:!e&&c!=="EQUAL"&&a.createElement(q0,{status:c}),icon:Z1[s.key],title:s.name}));return a.createElement(Ne,{key:t.key,hasChrome:!1,placement:"top",trigger:"hover",tooltip:a.createElement(Be,{note:l?"Switch browser":`Tested in ${n[0].browser.name}`})},l?a.createElement(fa,{placement:"bottom",links:l},o,a.createElement(I1,null,t.name),a.createElement(Ms,{size:10})):a.createElement(Ch,null,o,a.createElement(I1,null,t.name)))},xh=w.div(({theme:e})=>({alignItems:"center",color:e.base==="light"?e.color.darkest:e.color.light,display:"inline-flex",gap:6,height:14,margin:"7px 7px",svg:{verticalAlign:"top",path:{fill:e.base==="light"?e.color.dark:e.color.light}}})),Mh=w(fa)(({theme:e})=>({button:{svg:{verticalAlign:"top",path:{fill:e.base==="light"?e.color.dark:e.color.light}},"&:hover":{svg:{path:{fill:e.color.secondary}}}}})),R1=w.span(({theme:e})=>({color:e.base==="light"?e.color.dark:e.color.light,display:"none",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,"@container (min-width: 300px)":{display:"inline-block"},"button:hover > &":{color:e.color.secondary}})),Nh=({isAccepted:e,modeOrder:t,modeResults:n,onSelectMode:r,selectedMode:i})=>{qt();let o=_r(n.map(({result:c})=>c));if(!o)return null;let l=a.createElement(tu,null);!e&&o!=="EQUAL"&&n.length>=2&&(l=a.createElement(Zr,{status:o},l));let s=n.length>1&&n.map(({mode:c,result:d})=>({id:c.name,title:c.name,right:!e&&d!=="EQUAL"&&a.createElement(q0,{status:d}),onClick:()=>r(c),active:i.name===c.name})).sort((c,d)=>{if(!t)return 0;let u=t.indexOf(c.title),m=t.indexOf(d.title);return u!==-1&&m!==-1?u-m:0});return a.createElement(Ne,{key:i.name,hasChrome:!1,placement:"top",trigger:"hover",tooltip:a.createElement(Be,{note:s?"Switch mode":`View mode: ${n[0].mode.name}`})},s?a.createElement(Mh,{placement:"bottom",links:s},l,a.createElement(R1,null,i.name),a.createElement(Ms,{size:10})):a.createElement(xh,null,l,a.createElement(R1,null,i.name)))},B1=()=>{let e=dn(),{browserResults:t,modeResults:n}=e.summary;return a.createElement(zr,null,n.length>0&&e.selectedTest&&a.createElement(Nh,{isAccepted:e.summary.status==="ACCEPTED",modeOrder:e.modeOrder,selectedMode:e.selectedTest.mode,modeResults:n,onSelectMode:e.onSelectMode}),t.length>0&&e.selectedComparison&&a.createElement(Sh,{isAccepted:e.summary.status==="ACCEPTED",selectedBrowser:e.selectedComparison.browser,browserResults:t,onSelectBrowser:e.onSelectBrowser}),a.createElement(it,{push:!0},a.createElement(Dr,null)))},Ah=({theme:e,secondary:t,status:n})=>t?{color:e.base==="light"?e.color.dark:e.color.medium,backgroundColor:e.background.app,borderColor:e.base==="light"?e.color.medium:e.color.darker,"&:hover":{color:e.base==="light"?e.color.darkest:e.color.lighter,backgroundColor:Qt(.03,e.background.app)}}:n==="positive"?{color:e.color.positiveText,backgroundColor:e.background.positive,borderColor:rr(.5,e.color.positiveText),"&:hover":{color:e.color.positiveText,backgroundColor:Qt(.05,e.background.positive)}}:n==="warning"?{color:e.color.warningText,backgroundColor:e.background.warning,borderColor:rr(.5,e.color.warningText),"&:hover":{color:e.color.warningText,backgroundColor:Qt(.05,e.background.warning)}}:{color:e.color.lightest,backgroundColor:e.color.secondary,borderWidth:0,borderColor:e.base==="light"?rr(.2,e.color.secondary):Qt(.1,e.color.secondary),"&:hover":{color:e.color.lightest,backgroundColor:Qt(.05,e.color.secondary)}},En=w(rt)(({containsIcon:e})=>({border:"1px solid transparent",boxShadow:"none",fontSize:12,fontWeight:700,height:28,padding:e?"8px 6px":8,transition:"background-color 150ms ease-out","@container (min-width: 300px)":{height:32,width:e?32:"auto",padding:e?"9px 8px":9},"@container (min-width: 800px)":{height:28,fontSize:12,width:e?28:"auto",padding:e?"8px 6px":8}}),Ah,({side:e})=>({...e==="left"&&{borderRightWidth:1,borderTopRightRadius:0,borderBottomRightRadius:0},...e==="right"&&{borderLeftWidth:0,borderTopLeftRadius:0,borderBottomLeftRadius:0}})),P1=w.div({display:"flex",flexDirection:"row"}),Ir=w.div(({theme:e})=>({width:12,height:12,margin:"3px 6px",verticalAlign:"top",display:"inline-block",animation:`${bo} 0.7s linear infinite`,border:"2px solid transparent",borderLeftColor:e.base==="light"?"#00aaff":"#58faf9",borderBottomColor:"#25ccfd",borderRightColor:e.base==="light"?"#58faf9":"#00aaff",borderRadius:"100%",transform:"translate3d(0, 0, 0)"}),({parentComponent:e})=>e&&me({margin:e==="IconButton"?1:0,borderWidth:1,borderLeftColor:"currentcolor",borderBottomColor:"currentcolor",borderRightColor:"currentcolor"})),Ti=w.div(({theme:e,width:t=14,height:n=14,marginLeft:r=7,marginRight:i=8})=>({display:"inline-block",backgroundColor:e.appBorderColor,borderRadius:3,animation:`${e.animation.glow} 1.5s ease-in-out infinite`,height:n,width:t,margin:7,marginLeft:r,marginRight:i})),Fh=w.div(({theme:e})=>({gridArea:"label",margin:"8px 15px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:6,span:{display:"none","@container (min-width: 300px)":{display:"initial"}},"@container (min-width: 800px)":{borderLeft:`1px solid ${e.appBorderColor}`,paddingLeft:10,marginLeft:0}})),V1=w.div({gridArea:"controls",margin:"6px 15px",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:6,"@container (min-width: 800px)":{margin:8}}),Oh=w.div(({theme:e})=>({padding:9,"> svg":{display:"block"},path:{fill:e.color.mediumdark}})),Lh=w.div(({theme:e,showDivider:t})=>({gridArea:"actions",display:"flex",alignItems:"center",justifyContent:"flex-end",margin:"0px 15px",gap:6,"@container (min-width: 300px)":{alignItems:"flex-start",margin:"15px 15px 15px 0px"},"@container (min-width: 800px)":{alignItems:"center",borderLeft:t?`1px solid ${e.appBorderColor}`:"none",margin:"8px 15px 8px 0px",paddingLeft:8}})),Th=({isOutdated:e})=>{let{baselineImageVisible:t,diffVisible:n,focusVisible:r}=Hr(),{toggleBaselineImage:i,toggleDiff:o,toggleFocus:l}=Zn(),{isRunning:s,startBuild:c}=La(),{selectedTest:d,selectedComparison:u,summary:m}=dn(),{changeCount:p,isInProgress:v}=m,{isReviewing:f,buildIsReviewable:y,userCanReview:k,acceptTest:b,unacceptTest:h}=J0();if(v)return a.createElement(V1,null,a.createElement(Ti,null),a.createElement(Ti,null),a.createElement(Ti,null));let g=p>0&&d?.status!=="ACCEPTED",E=p>0&&d?.status==="ACCEPTED",x=u?.result==="CHANGED";return a.createElement(a.Fragment,null,x&&a.createElement(Fh,null,a.createElement(W,null,a.createElement("b",null,t?"Baseline":"Latest",a.createElement("span",null," snapshot")))),x&&a.createElement(V1,null,a.createElement(Ne,{tooltip:a.createElement(Be,{note:t?"Show latest snapshot":"Show baseline snapshot"}),trigger:"hover",hasChrome:!1},a.createElement(rt,{id:"button-toggle-snapshot","aria-label":t?"Show latest snapshot":"Show baseline snapshot",onClick:()=>i()},a.createElement(ou,null))),a.createElement(Ne,{tooltip:a.createElement(Be,{note:r?"Hide spotlight":"Show spotlight"}),trigger:"hover",hasChrome:!1},a.createElement(rt,{id:"button-toggle-spotlight",active:r,"aria-label":r?"Hide spotlight":"Show spotlight",onClick:()=>l(!r)},a.createElement(su,null))),a.createElement(Ne,{tooltip:a.createElement(Be,{note:n?"Hide diff":"Show diff"}),trigger:"hover",hasChrome:!1},a.createElement(rt,{id:"button-diff-visible",active:n,"aria-label":n?"Hide diff":"Show diff",onClick:()=>o(!n)},a.createElement(Es,null)))),(g||E)&&a.createElement(Lh,{showDivider:x},k&&y&&g&&d&&a.createElement(P1,null,a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Accept this story"}),trigger:"hover",hasChrome:!1},a.createElement(En,{id:"button-toggle-accept-story",disabled:f,"aria-label":"Accept this story",onClick:()=>b(d.id,"SPEC"),side:"left"},"Accept")),a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Batch accept options"}),trigger:"hover",hasChrome:!1},a.createElement(fa,{placement:"bottom",links:[{id:"acceptComponent",title:"Accept component",center:"Accept all unreviewed changes for this component",onClick:()=>b(d.id,"COMPONENT"),disabled:f,loading:f},{id:"acceptBuild",title:"Accept entire build",center:"Accept all unreviewed changes for every story in the Storybook",onClick:()=>b(d.id,"BUILD"),disabled:f,loading:f}]},B=>a.createElement(En,{containsIcon:!0,active:B,disabled:f,"aria-label":"Batch accept options",side:"right"},f?a.createElement(Ir,{parentComponent:"IconButton"}):a.createElement(El,null))))),k&&y&&E&&a.createElement(P1,null,a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Unaccept this story"}),trigger:"hover",hasChrome:!1},a.createElement(En,{id:"button-toggle-accept-story",disabled:f,"aria-label":"Unaccept this story",onClick:()=>h(d.id,"SPEC"),side:"left",status:"positive"},a.createElement(lu,null),"Unaccept")),a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Batch unaccept options"}),trigger:"hover",hasChrome:!1},a.createElement(fa,{placement:"bottom",links:[{id:"unacceptComponent",title:"Unaccept component",center:"Unaccept all unreviewed changes for this component",onClick:()=>h(d.id,"COMPONENT"),disabled:f,loading:f},{id:"unacceptBuild",title:"Unaccept entire build",center:"Unaccept all unreviewed changes for every story in the Storybook",onClick:()=>h(d.id,"BUILD"),disabled:f,loading:f}]},B=>a.createElement(En,{containsIcon:!0,active:B,disabled:f,"aria-label":"Batch unaccept options",side:"right",status:"positive"},f?a.createElement(Ir,{parentComponent:"IconButton"}):a.createElement(El,null))))),!(k&&y)&&a.createElement(Ne,{tooltip:a.createElement(Be,{note:"Reviewing disabled"}),trigger:"hover",hasChrome:!1},a.createElement(Oh,null,a.createElement(Cs,null))),a.createElement(Ne,{tooltip:a.createElement(Be,{note:e?"Run new tests":"Rerun tests"}),trigger:"hover",hasChrome:!1},a.createElement(En,{containsIcon:!0,"aria-label":e?"Run new tests":"Rerun tests",onClick:c,disabled:s,secondary:!0},e?a.createElement(Dt,null):a.createElement(Vr,null)))))},ar=mt(Br()),_h=e=>a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"3px 6px",verticalAlign:"top"},...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM5.57143 6.85714C5.57143 7.09384 5.76331 7.28571 6 7.28571C6.23669 7.28571 6.42857 7.09384 6.42857 6.85714L6.42857 3.42857C6.42857 3.19188 6.23669 3 6 3C5.76331 3 5.57143 3.19188 5.57143 3.42857V6.85714ZM5.35714 8.78572C5.35714 8.43067 5.64496 8.14286 6 8.14286C6.35504 8.14286 6.64286 8.43067 6.64286 8.78571C6.64286 9.14075 6.35504 9.42857 6 9.42857C5.64496 9.42857 5.35714 9.14075 5.35714 8.78572Z",fill:"#73828C"})),_i={width:12,height:12,margin:"3px 3px 3px 6px",verticalAlign:"top"},Zh=({icon:e})=>{let{color:t}=qt();return{passed:a.createElement(Q5,{style:{..._i,color:t.positive}}),changed:a.createElement(K5,{style:{..._i,color:t.warning}}),failed:a.createElement(ws,{style:{..._i,color:t.negative}})}[e]};function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function ti(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function kn(e){ti(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ho(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var Ih={};function Rh(){return Ih}function j1(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Bh(e,t){ti(2,arguments);var n=kn(e),r=kn(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var Ph={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vh=function(e,t,n){var r,i=Ph[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},jh=Vh;function Zi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Hh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Dh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uh={date:Zi({formats:Hh,defaultWidth:"full"}),time:Zi({formats:Dh,defaultWidth:"full"}),dateTime:Zi({formats:zh,defaultWidth:"full"})},$h=Uh,Wh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gh=function(e,t,n,r){return Wh[e]},qh=Gh;function ra(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var Yh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Kh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Xh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},e6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},t6=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},n6={ordinalNumber:t6,era:ra({values:Yh,defaultWidth:"wide"}),quarter:ra({values:Qh,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ra({values:Kh,defaultWidth:"wide"}),day:ra({values:Jh,defaultWidth:"wide"}),dayPeriod:ra({values:Xh,defaultWidth:"wide",formattingValues:e6,defaultFormattingWidth:"wide"})},a6=n6;function ia(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var l=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?i6(s,function(m){return m.test(l)}):r6(s,function(m){return m.test(l)}),d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;var u=t.slice(l.length);return{value:d,rest:u}}}function r6(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function i6(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;var s=t.slice(i.length);return{value:l,rest:s}}}var l6=/^(\d+)(th|st|nd|rd)?/i,s6=/\d+/i,c6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d6={any:[/^b/i,/^(a|c)/i]},u6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m6={any:[/1/i,/2/i,/3/i,/4/i]},p6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b6={ordinalNumber:o6({matchPattern:l6,parsePattern:s6,valueCallback:function(e){return parseInt(e,10)}}),era:ia({matchPatterns:c6,defaultMatchWidth:"wide",parsePatterns:d6,defaultParseWidth:"any"}),quarter:ia({matchPatterns:u6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ia({matchPatterns:p6,defaultMatchWidth:"wide",parsePatterns:h6,defaultParseWidth:"any"}),day:ia({matchPatterns:f6,defaultMatchWidth:"wide",parsePatterns:g6,defaultParseWidth:"any"}),dayPeriod:ia({matchPatterns:v6,defaultMatchWidth:"any",parsePatterns:y6,defaultParseWidth:"any"})},E6=b6,k6={code:"en-US",formatDistance:jh,formatLong:$h,formatRelative:qh,localize:a6,match:E6,options:{weekStartsOn:0,firstWeekContainsDate:1}},X0=k6,w6=X0;function ec(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function C6(e){return ec({},e)}var H1=1e3*60,Rr=60*24,D1=Rr*30,z1=Rr*365;function S6(e,t,n){var r,i,o;ti(2,arguments);var l=Rh(),s=(r=(i=n?.locale)!==null&&i!==void 0?i:l.locale)!==null&&r!==void 0?r:w6;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var c=Bh(e,t);if(isNaN(c))throw new RangeError("Invalid time value");var d=ec(C6(n),{addSuffix:!!n?.addSuffix,comparison:c}),u,m;c>0?(u=kn(t),m=kn(e)):(u=kn(e),m=kn(t));var p=String((o=n?.roundingMethod)!==null&&o!==void 0?o:"round"),v;if(p==="floor")v=Math.floor;else if(p==="ceil")v=Math.ceil;else if(p==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var f=m.getTime()-u.getTime(),y=f/H1,k=j1(m)-j1(u),b=(f-k)/H1,h=n?.unit,g;if(h?g=String(h):y<1?g="second":y<60?g="minute":y0?`in ${r}`:`${r} ago`:r}var A6=e=>x6(e,{addSuffix:!0,locale:{...X0,formatDistance:N6}}),oa=w.div(({theme:e})=>({gridArea:"info",display:"flex",justifySelf:"start",justifyContent:"center",flexDirection:"column",margin:15,lineHeight:"18px",color:e.base==="light"?`${e.color.defaultText}99`:`${e.color.light}99`,b:{color:e.base==="light"?`${e.color.defaultText}`:`${e.color.light}`},small:{fontSize:e.typography.size.s1},"@container (min-width: 800px)":{margin:"6px 10px 6px 15px",alignItems:"center",flexDirection:"row",small:{fontSize:"inherit"},"[data-hidden-large]":{display:"none"},"& > span:first-of-type":{display:"inline-flex",alignItems:"center",height:24,marginRight:6}}})),F6=w.div({gridArea:"actions",display:"flex",justifySelf:"end",justifyContent:"center",alignItems:"start",margin:15,"@container (min-width: 800px)":{margin:"6px 15px 0 0"}}),O6=({isStarting:e,tests:t,startedAt:n,isBuildFailed:r,isOutdated:i,shouldSwitchToLastBuildOnBranch:o,switchToLastBuildOnBranch:l})=>{let{isRunning:s,startBuild:c}=La(),{status:d,isInProgress:u,changeCount:m,brokenCount:p,modeResults:v,browserResults:f}=zo(t??[]),y=!e&&n&&A6(new Date(n).getTime()),k=e||u,b=r||d==="FAILED",h=b||d==="BROKEN",g=(h||i)&&!k&&!m,E;return i?E=a.createElement(oa,null,a.createElement("span",null,a.createElement("b",null,"Code edits detected")),a.createElement("small",null,a.createElement("span",null,"Run tests to see what changed"))):b?E=a.createElement(oa,null,a.createElement("span",null,a.createElement("b",null,"Build failed"),a.createElement(_h,null)),a.createElement("small",null,a.createElement("span",null,"An infrastructure error occured"))):k?E=a.createElement(oa,null,a.createElement("span",null,a.createElement("b",null,"Running tests..."),a.createElement(Ir,null)),a.createElement("small",null,a.createElement("span",null,"Test in progress..."))):o?E=a.createElement(oa,null,a.createElement("span",null,a.createElement("b",null,a.createElement(fn,{isButton:!0,onClick:l},"View latest snapshot"))),a.createElement("span",null,"Newer test results are available for this story")):E=a.createElement(oa,null,a.createElement("span",null,a.createElement("b",null,p?null:m?`${(0,ar.default)("change",m,!0)}${d==="ACCEPTED"?" accepted":""}`:"No changes",p?(0,ar.default)("error",p,!0):null),a.createElement(Zh,{icon:p?"failed":d==="PENDING"?"changed":"passed"})),a.createElement("small",null,v.length>0&&a.createElement("span",{"data-hidden-large":!0},(0,ar.default)("mode",v.length,!0),", ",(0,ar.default)("browser",f.length,!0)),v.length>0&&a.createElement("span",{"data-hidden-large":!0}," \u2022 "),u&&a.createElement("span",null,"Test in progress..."),!u&&n&&a.createElement("span",{title:new Date(n).toUTCString()},"Ran ",y))),a.createElement(a.Fragment,null,E,g&&a.createElement(F6,null,a.createElement(En,{onClick:c,disabled:s},s?a.createElement(Ir,{parentComponent:"Button"}):a.createElement(Dt,null),h?"Rerun tests":"Run tests")))},U1=w.div(({theme:e})=>({display:"grid",gridTemplateAreas:` + "info info" + "actions actions" + "label controls" + `,gridTemplateColumns:"1fr fit-content(50%)",gridTemplateRows:"auto auto auto",borderBottom:`1px solid ${e.appBorderColor}`,"@container (min-width: 300px)":{gridTemplateAreas:` + "info actions" + "label controls" + `,gridTemplateColumns:"1fr auto",gridTemplateRows:"auto auto"},"@container (min-width: 800px)":{gridTemplateAreas:'"info label controls actions"',gridTemplateColumns:"auto 1fr auto auto",gridTemplateRows:40}})),$1=w.div(({theme:e})=>({display:"grid",gridTemplateAreas:` + "header" + "main" + "footer" + `,gridTemplateColumns:"1fr",gridTemplateRows:"auto 1fr auto",height:"100%","&[hidden]":{display:"none"}})),W1=w.div(({theme:e})=>({gridArea:"header",position:"sticky",zIndex:1,top:0,background:e.background.content,"@container (min-width: 800px)":{background:e.background.app}})),L6=w.div(({theme:e})=>({gridArea:"main",overflowY:"auto",maxHeight:"100%",background:e.background.content})),G1=w.div(({theme:e})=>({gridArea:"footer",position:"sticky",zIndex:1,bottom:0})),T6=w.div(({children:e,theme:t})=>({display:"flex",alignItems:"center",border:`0px solid ${t.appBorderColor}`,borderTopWidth:1,borderBottomWidth:e?1:0,height:e?40:0,padding:e?"0 15px":0})),_6=w.div(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,color:e.color.defaultText,lineHeight:"18px",padding:15,whiteSpace:"pre-wrap",wordBreak:"break-word"})),Ii=w.div(({theme:e})=>({background:e.background.hoverable,padding:"10px 15px",lineHeight:"18px",position:"relative",borderBottom:`1px solid ${e.appBorderColor}`})),Z6=({isOutdated:e,isStarting:t,isBuildFailed:n,shouldSwitchToLastBuildOnBranch:r,switchToLastBuildOnBranch:i,hidden:o,storyId:l})=>{let{baselineImageVisible:s,diffVisible:c,focusVisible:d}=Hr(),{toggleBaselineImage:u,toggleSettings:m,toggleWarnings:p}=Zn(),v=U0(),f="startedAt"in v&&v.startedAt,y=dn(),{tests:k}=y,b=a.useRef(l),h=a.useRef(y.selectedComparison?.id),g=a.useRef(v.id),{selectedTest:E,selectedComparison:x}=y,B=k.every(({result:$e,status:Me})=>$e==="ADDED"&&Me!=="ACCEPTED"),H=!B&&E?.result==="ADDED"&&E?.status!=="ACCEPTED",ae=!B&&x?.result==="ADDED"&&E?.result!=="ADDED"&&E?.status!=="ACCEPTED";le(()=>{(b.current!==l||h.current!==y.selectedComparison?.id||g.current!==v.id||B||H||ae)&&(u(!1),m(!1),p(!1)),h.current=y.selectedComparison?.id,b.current=l,g.current=v.id},[v.id,l,y,u,m,p,B,H,ae]);let re=a.createElement(O6,{tests:k,startedAt:f,isStarting:t,isBuildFailed:n,isOutdated:e,shouldSwitchToLastBuildOnBranch:r,switchToLastBuildOnBranch:i});if(t||!k.length)return a.createElement($1,{hidden:o},a.createElement(W1,null,a.createElement(U1,null,re)),a.createElement(G1,null,a.createElement(B1,null)));let ve=zo(k),{isInProgress:Fe}=ve,Ze=x?.headCapture?.captureError&&"error"in x?.headCapture?.captureError&&x?.headCapture?.captureError?.error;return a.createElement($1,{hidden:o},a.createElement(W1,null,a.createElement(U1,null,re,a.createElement(Th,{isOutdated:e}))),a.createElement(L6,null,Fe&&a.createElement(ui,null),!Fe&&B&&a.createElement(Ii,null,a.createElement(W,null,"New story found. Accept this snapshot as a test baseline."," ",a.createElement(De,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!Fe&&H&&a.createElement(Ii,null,a.createElement(W,null,"New mode found. Accept this snapshot as a test baseline."," ",a.createElement(De,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!Fe&&ae&&a.createElement(Ii,null,a.createElement(W,null,"New browser found. Accept this snapshot as a test baseline."," ",a.createElement(De,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!Fe&&x&&a.createElement(yh,{key:x.id,componentName:E?.story?.component?.name,storyName:E?.story?.name,testUrl:E?.webUrl,comparisonResult:x.result??void 0,latestImage:x.headCapture?.captureImage??void 0,baselineImage:x.baseCapture?.captureImage??void 0,baselineImageVisible:s,diffImage:x.captureDiff?.diffImage??void 0,focusImage:x.captureDiff?.focusImage??void 0,diffVisible:c,focusVisible:d}),!Fe&&Ze&&a.createElement(a.Fragment,null,a.createElement(T6,null,a.createElement("b",null,"Error stack trace")),a.createElement(_6,null,Ze.stack||Ze.message))),a.createElement(G1,null,a.createElement(B1,null)))},I6=w(ci)({padding:"4px 8px",margin:"0 6px"}),R6=({onClose:e})=>a.createElement(Ns,null,a.createElement($i,null,a.createElement(cr,null,"Warnings",a.createElement(I6,{status:"warning"},"2"),a.createElement(Mo,{onClick:e},a.createElement(xo,{"aria-label":"Close"}))),a.createElement("p",null,"It's essential that your components and stories render in a consistent fashion to prevent false positives. Two issues detected in this story may cause false positives."),a.createElement("p",null,a.createElement(se,{variant:"outline"},a.createElement(ks,null),"Docs"),a.createElement(se,{variant:"outline"},a.createElement(X5,null),"Get support"))));w.div(({theme:e})=>({color:e.color.warning,background:e.background.warning,padding:10,lineHeight:"18px",position:"relative"}));var B6=({branch:e,dismissBuildError:t,isOutdated:n,localBuildProgress:r,switchToLastBuildOnBranch:i,storyId:o})=>{let{settingsVisible:l,warningsVisible:s}=Hr(),{toggleSettings:c,toggleWarnings:d}=Zn(),{isRunning:u,startBuild:m,stopBuild:p}=La(),{lastBuildOnBranch:v,lastBuildOnBranchIsReady:f,lastBuildOnBranchIsSelectable:y}=C7(),k=U0(),b=dn(),{buildIsReviewable:h,userCanReview:g}=J0(),E=!!(!h&&f&&y&&i),x=v?.status==="IN_PROGRESS",B=u||!h&&!E,H=r&&r?.buildId===v?.id,ae=B&&a.createElement(ph,{branch:e,dismissBuildError:t,localBuildProgress:H||u?r:void 0,lastBuildOnBranchInProgress:x,switchToLastBuildOnBranch:i}),re=b?.hasTests&&b?.tests.length===0,ve=k.id!==`Build:${r?.buildId}`;if(re)return a.createElement(Se,null,a.createElement(ge,null,r&&ve?a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Snapshotting new story"),a.createElement(W,{center:!0,muted:!0},'A new snapshot is being created in a standardized cloud browser to save its "last known good state" as a test baseline.')),a.createElement(ei,{localBuildProgress:r})):a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"New story found"),a.createElement(W,{center:!0,muted:!0},'Take an image snapshot of this story to save its "last known good state" as a test baseline. This unlocks visual regression testing so you can see exactly what has changed down to the pixel.')),a.createElement(se,{belowText:!0,size:"medium",variant:"solid",onClick:u?p:m},u?"Cancel build":"Create visual test"))));if(b?.tests?.find(_t=>_t.result==="SKIPPED"))return a.createElement(Se,null,ae,a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"This story was skipped"),a.createElement(W,{center:!0,muted:!0},"If you would like to resume testing it, comment out or remove",a.createElement(Ve,null,"disableSnapshot = true")," from the CSF file.")),a.createElement(se,{asChild:!0,size:"medium",tertiary:!0},a.createElement("a",{href:"https://www.chromatic.com/docs/ignoring-elements#ignore-stories",target:"_new"},a.createElement(ks,null),"View docs")))));let{status:Fe}=k,Ze=["ANNOUNCED","PUBLISHED","PREPARED"].includes(Fe),$e=Fe==="FAILED",Me=Fe==="PENDING"&&(!g||!h);return a.createElement(Se,{footer:null},a.createElement(_u,null,ae,!ae&&Me&&a.createElement(oh,null,g?a.createElement(a.Fragment,null,"Reviewing is disabled because there's a newer build on ",a.createElement(Ve,null,e),"."):a.createElement(a.Fragment,null,"You don't have permission to accept changes."," ",a.createElement(fn,{href:"https://www.chromatic.com/docs/collaborators#roles",target:"_blank",withArrow:!0},"Learn about roles"))),a.createElement(ca,{grow:!0,hidden:l||s},a.createElement(Z6,{hidden:l||s,isOutdated:n,isStarting:Ze,isBuildFailed:$e,shouldSwitchToLastBuildOnBranch:E,switchToLastBuildOnBranch:i,selectedBuild:k,storyId:o})),a.createElement(ca,{grow:!0,hidden:!l},a.createElement(hh,{onClose:()=>c(!1)})),a.createElement(ca,{grow:!0,hidden:!s},a.createElement(R6,{onClose:()=>d(!1)}))))},Ri=w(De)(()=>({marginTop:5})),P6=({queryError:e,hasData:t,hasProject:n,hasSelectedBuild:r,localBuildProgress:i,branch:o})=>{let{setAccessToken:l}=rs(),{isRunning:s,startBuild:c}=La(),{disable:d,disableSnapshot:u,docsOnly:m}=nl("chromatic",{}),p=()=>{let v=a.createElement(se,{disabled:s,size:"medium",variant:"solid",onClick:c},a.createElement(Dt,null),"Take snapshots");return i?i.currentStep==="error"?a.createElement(a.Fragment,null,a.createElement($0,{localBuildProgress:i,title:"Build failed"}),v):a.createElement(ei,{localBuildProgress:i}):v};return a.createElement(Se,{footer:a.createElement(zr,null,a.createElement(it,null,t&&!e&&n&&a.createElement(W,{muted:!0,style:{marginLeft:5}},"Waiting for build on ",o)),a.createElement(it,{push:!0},a.createElement(Dr,null)))},e?.networkError?a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Network error"),a.createElement(W,null,e.networkError.message)),a.createElement(se,{size:"medium",variant:"solid",onClick:()=>l(null)},"Log out"))):e?.graphQLErrors?.length?a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,e.graphQLErrors[0].message),a.createElement(W,{center:!0,muted:!0},e.graphQLErrors[0].extensions.code==="FORBIDDEN"?"You may have insufficient permissions. Try logging out and back in again.":"Try logging out or clear your browser's local storage.")),a.createElement(St,null,a.createElement(se,{size:"medium",variant:"solid",onClick:()=>l(null)},"Log out"),a.createElement(Ri,{withArrow:!0,href:`${ns}#troubleshooting`,target:"_blank"},"Troubleshoot")))):t?n?d||u||m?a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Visual Tests disabled for this story"),a.createElement(W,{center:!0,muted:!0},"Update ",a.createElement("code",null,"parameters.chromatic.",d?"disable":u?"disableSnapshot":"docsOnly")," to enable snapshots for this story.")),a.createElement(Ri,{withArrow:!0,href:"https://www.chromatic.com/docs/ignoring-elements/#ignore-stories",target:"_blank"},"Read more"))):r?null:a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Create a test baseline"),a.createElement(W,{center:!0,muted:!0},'Take an image snapshot of your stories to save their "last known good state" as test baselines.')),p())):a.createElement(ge,null,a.createElement(de,null,a.createElement("div",null,a.createElement(pe,null,"Project not found"),a.createElement(W,{center:!0,muted:!0},"You may not have access to this project or it may not exist.")),a.createElement(Ri,{isButton:!0,onClick:()=>l(null),withArrow:!0},"Switch account"))):a.createElement(ui,null))},V6=e=>Object.fromEntries(Object.entries(e).map(([t])=>[t,null])),j6=({buildIsReviewable:e,userCanReview:t,onReviewSuccess:n,onReviewError:r})=>{let[{fetching:i},o]=Us(k7),l=Y(async d=>{try{if(!e)throw new Error("Build is not reviewable");if(!t)throw new Error("No permission to review tests");let{error:u}=await o({input:d});if(u)throw u;n?.(d)}catch(u){r?.(u,d)}},[n,r,o,e,t]),s=Y((d,u="SPEC")=>l({status:"ACCEPTED",testId:d,batch:u}),[l]),c=Y((d,u="SPEC")=>l({status:"PENDING",testId:d,batch:u}),[l]);return{isReviewing:i,acceptTest:s,unacceptTest:c,buildIsReviewable:e,userCanReview:t}},H6=ht(` + mutation UpdateUserPreferences($input: UserPreferencesInput!) { + updateUserPreferences(input: $input) { + updatedPreferences { + vtaOnboarding + } + } + } +`),D6=({lastBuildOnBranch:e,vtaOnboarding:t})=>{let n=mn(),{notifications:r,storyId:i}=pn(),[o,l]=a.useState(!1),s=a.useCallback(()=>{l(!0),r.forEach(({id:h})=>n.clearNotification(h))},[n,r]),[c,d]=a.useState(!1),u=a.useCallback(()=>d(!0),[]),[m,p]=a.useState(!0);a.useEffect(()=>{if(n?.getUrlState?.().queryParams.vtaOnboarding==="true"){p(!1);return}t&&p(t==="COMPLETED"||t==="DISMISSED")},[n,t]);let[{fetching:v},f]=Us(H6),y=a.useCallback(async h=>{await f({input:{vtaOnboarding:h?"COMPLETED":"DISMISSED"}}),p(!0),d(!1);let E=new URL(window.location.href);E.searchParams.has("vtaOnboarding")&&(E.searchParams.delete("vtaOnboarding"),window.history.replaceState({},"",E.href))},[f]),k=a.useMemo(()=>(e&&"testsForStatus"in e&&e.testsForStatus?.nodes&&Cn(D0,e.testsForStatus.nodes)||[]).some(h=>h?.status==="PENDING"&&h?.result==="CHANGED"&&h?.story?.storyId===i),[e,i]),b=!o&&!m&&!c;return{showOnboarding:b,showGuidedTour:!b&&!m,completeOnboarding:s,skipOnboarding:a.useCallback(()=>y(!1),[y]),completeWalkthrough:a.useCallback(()=>y(!0),[y]),skipWalkthrough:a.useCallback(()=>y(!1),[y]),startWalkthrough:u,lastBuildHasChangesForStory:k,isUpdating:v}},z6=({isOutdated:e,selectedBuildInfo:t,setSelectedBuildInfo:n,dismissBuildError:r,localBuildProgress:i,setOutdated:o,updateBuildStatus:l,projectId:s,gitInfo:c,storyId:d})=>{let u=mn(),{addNotification:m,setOptions:p,togglePanel:v}=u,f=w7({projectId:s,storyId:d,gitInfo:c,selectedBuildInfo:t}),{account:y,features:k,manageUrl:b,hasData:h,hasProject:g,hasSelectedBuild:E,lastBuildOnBranch:x,lastBuildOnBranchIsReady:B,lastBuildOnBranchIsSelectable:H,selectedBuild:ae,selectedBuildMatchesGit:re,queryError:ve,rerunQuery:Fe,userCanReview:Ze}=f,$e=Y(({onDismiss:C})=>{C(),p({selectedPanel:tn}),v(!0)},[p,v]),Me=j6({buildIsReviewable:!!ae&&ae.id===x?.id,userCanReview:Ze,onReviewSuccess:Fe,onReviewError:(C,M)=>{C instanceof Error&&m({id:"chromatic/errorAccepting",content:{headline:`Failed to ${M.status==="ACCEPTED"?"accept":"unaccept"} changes`,subHeadline:C.message},icon:{name:"cross",color:"red"},duration:8e3,onClick:$e})}});le(()=>o(!re),[re,o]);let _t=x&&"testsForStatus"in x&&x.testsForStatus?.nodes&&Cn(D0,x.testsForStatus.nodes),We=H&&P4(_t||[]);le(()=>{l(C=>({...V6(C),...We}))},[JSON.stringify(We),l]),le(()=>{n(C=>V4(C,{shouldSwitchToLastBuildOnBranch:H&&B,lastBuildOnBranchId:x?.id,storyId:d}))},[H,B,x?.id,n,d]);let Va=Y(()=>x?.id&&H&&n({buildId:x.id,storyId:d}),[n,H,x?.id,d]),{showOnboarding:ni,showGuidedTour:Pn,completeOnboarding:Vn,completeWalkthrough:Wt,skipOnboarding:ai,skipWalkthrough:jn,startWalkthrough:Hn,lastBuildHasChangesForStory:ja}=D6(f);return k&&!k.uiTests?a.createElement(j4,{manageUrl:b}):y?.suspensionReason?a.createElement(o0,{billingUrl:y.billingUrl,suspensionReason:y.suspensionReason}):ni&&g?a.createElement(a.Fragment,null,!h||ve?a.createElement(a.Fragment,null):a.createElement(Oi,{watchState:f},a.createElement(ih,{gitInfo:c,projectId:s,updateBuildStatus:l,dismissBuildError:r,localBuildProgress:i,showInitialBuildScreen:!ae,onComplete:Vn,onSkip:ai,lastBuildHasChangesForStory:ja}))):a.createElement(a.Fragment,null,!ae||!E||!h||ve?a.createElement(P6,{queryError:ve,hasData:h,hasProject:g,hasSelectedBuild:E,branch:c.branch,dismissBuildError:r,isOutdated:e,localBuildProgress:i,...H&&{switchToLastBuildOnBranch:Va}}):a.createElement(fh,{watchState:Me},a.createElement(Oi,{watchState:f},a.createElement(B6,{branch:c.branch,dismissBuildError:r,isOutdated:e,localBuildProgress:i,...x&&{lastBuildOnBranch:x},...H&&{switchToLastBuildOnBranch:Va},userCanReview:Ze,storyId:d}))),Pn&&a.createElement(Oi,{watchState:{selectedBuild:ae}},a.createElement(Z7,{managerApi:u,skipWalkthrough:jn,startWalkthrough:Hn,completeWalkthrough:Wt})))},U6=e=>{let[t,n]=nt("selectedBuildInfo");return a.createElement(z6,{selectedBuildInfo:t,setSelectedBuildInfo:n,...e})},tc=({localBuildProgress:e,accessToken:t})=>{let n=za({}),r=hn(ko),[i,o]=Te(!1),l=Y(()=>{o(!0),n(yd,{accessToken:t}),r?.({action:"startBuild"})},[t,n,r]),s=Y(()=>{o(!1),n(bd),r?.({action:"stopBuild"})},[n,r]);return le(()=>{let c=i&&setTimeout(()=>o(!1),5e3);return()=>{c&&clearTimeout(c)}},[i]),{isRunning:e?!["aborted","complete","error","limited"].includes(e.currentStep):i,startBuild:l,stopBuild:s}},nc=()=>{let[e,t]=Le(X1),{projectId:n,written:r,dismissed:i,configFile:o}=e||{};return{loading:!e,projectId:n,configFile:o,updateProject:Y(l=>t({...e,projectId:l,dismissed:!1}),[e,t]),projectUpdatingFailed:!i&&r===!1,projectIdUpdated:!i&&r===!0,clearProjectIdUpdated:Y(()=>t({...e,dismissed:!0}),[e,t])}},$6=({active:e,api:t})=>{let[n,r]=$s(),i=Y(We=>{r(We),We||j5("authenticationScreen","exchangeParameters")},[r]),{storyId:o}=pn(),[l]=Le(K1),[s]=Le(vd),[c]=Le(J1),[d]=Le(Vi),[u,m]=Le(es),[,p]=Le(Vi),v=za({}),f=Y(We=>t.experimental_updateStatus(U,We),[t]),{loading:y,projectId:k,configFile:b,updateProject:h,projectUpdatingFailed:g,projectIdUpdated:E,clearProjectIdUpdated:x}=nc(),[B,H]=nt("createdProjectId"),[ae,re]=Le(ts),ve=Y(We=>v(wd,We),[v]),{isRunning:Fe,startBuild:Ze,stopBuild:$e}=tc({localBuildProgress:u,accessToken:n}),Me=We=>a.createElement(j2,{key:tn,value:mm},a.createElement(P5,{value:ve},a.createElement(xd,{value:{accessToken:n,setAccessToken:i}},a.createElement(H5,{addonUninstalled:ae,setAddonUninstalled:re},a.createElement(Lu,null,a.createElement(R4,{watchState:{isRunning:Fe,startBuild:Ze,stopBuild:$e}},a.createElement("div",{hidden:!e,style:{containerType:"size",height:"100%"}},We)))))));if(!e)return Me(null);if(window.CONFIG_TYPE!=="DEVELOPMENT")return Me(a.createElement(T4,null));if(ae)return Me(a.createElement(I4,null));if(l?.connected===!1)return Me(a.createElement(Z4,{aborted:l.aborted}));if(!n)return Me(a.createElement(g4,{key:tn,setAccessToken:i,setCreatedProjectId:H,hasProjectId:!!k}));if(y)return e?a.createElement(E5,null):null;if(!k)return Me(a.createElement(A4,{createdProjectId:B,setCreatedProjectId:H,onUpdateProject:h}));if(c||!s)return console.error(c),Me(a.createElement(y4,null));if(g){if(!b)throw new Error("Missing config file after configuration failure");return Me(a.createElement(M4,{projectId:k,configFile:b}))}if(E){if(!b)throw new Error("Missing config file after configuration success");return Me(a.createElement(w4,{projectId:k,configFile:b,goToNext:x}))}let _t=s.branch===u?.branch;return Me(a.createElement(U6,{dismissBuildError:()=>m(void 0),isOutdated:!!d,localBuildProgress:_t?u:void 0,setOutdated:p,updateBuildStatus:f,projectId:k,gitInfo:s,storyId:o}))},Bi=mt(Br()),W6=({api:e})=>{let{addNotification:t,clearNotification:n,setOptions:r,togglePanel:i}=e,{projectId:o}=nc(),[l]=$s(),s=!!l,[c]=Le(Vi),[d]=Le(es),[u]=Le(K1),[m]=Le(go),p=Object.keys(m?.problems||{}).length>0,[v]=Le(J1),f=Ie(d?.currentStep),{status:y}=pn(),k=Object.values(y).filter(H=>H[U]?.status==="warn"),b=Y(()=>{r({selectedPanel:tn}),i(!0)},[r,i]),h=Y(({onDismiss:H})=>{H(),b()},[b]);le(()=>{d?.currentStep!==f.current&&(f.current=d?.currentStep,d?.currentStep==="initialize"&&(t({id:`${U}/build-initialize`,content:{headline:"Build started",subHeadline:"Check the visual test addon to see the progress of your build."},icon:{name:"passed",color:It.positive},duration:8e3,onClick:h}),setTimeout(()=>n(`${U}/build-initialize`),8e3)),d?.currentStep==="aborted"&&(t({id:`${U}/build-aborted`,content:{headline:"Build canceled",subHeadline:"Aborted by user."},icon:{name:"failed",color:It.negative},duration:8e3,onClick:h}),setTimeout(()=>n(`${U}/build-aborted`),8e3)),d?.currentStep==="complete"&&(t({id:`${U}/build-complete`,content:{headline:"Build complete",subHeadline:d.errorCount?`Encountered ${(0,Bi.default)("component error",d.errorCount,!0)}`:k.length?`Found ${(0,Bi.default)("story",k.length,!0)} with ${(0,Bi.default)("change",k.length)}`:"No visual changes detected"},icon:{name:"passed",color:It.positive},duration:8e3,onClick:h}),setTimeout(()=>n(`${U}/build-complete`),8e3)),d?.currentStep==="error"&&t({id:`${U}/build-error`,content:{headline:"Build error",subHeadline:"Check the Storybook process on the command line for more details."},icon:{name:"failed",color:It.negative},onClick:h}),d?.currentStep==="limited"&&t({id:`${U}/build-limited`,content:{headline:"Build limited",subHeadline:"Your account has insufficient snapshots remaining to run this build. Visit your billing page to find out more."},icon:{name:"failed",color:It.negative},onClick:h}))},[t,n,h,d?.currentStep,d?.errorCount,d?.changeCount,k.length]);let{isRunning:g,startBuild:E,stopBuild:x}=tc({localBuildProgress:d,accessToken:l}),B;return u?.connected===!1&&(B="Visual tests locked while waiting for network."),o||(B="Visual tests locked until a project is selected."),s||(B="Visual tests locked until you are logged in."),v&&(B="Visual tests locked due to Git synchronization problem."),p&&(B="Visual tests locked due to configuration problem."),window.CONFIG_TYPE!=="DEVELOPMENT"?null:a.createElement(H7,{isDisabled:!!B,isOutdated:c,isRunning:g,localBuildProgress:d,warning:B,clickWarning:b,startBuild:E,stopBuild:x})},q1;$n.register(U,e=>{$n.add(tn,{type:Ua.PANEL,title:"Visual Tests",match:({viewMode:r})=>r==="story",render:({active:r})=>a.createElement($6,{active:!!r,api:e})}),$n.add(fd,{type:Ua.experimental_SIDEBAR_TOP,render:()=>a.createElement(W6,{api:e})}),$n.add(gd,{type:Ua.experimental_SIDEBAR_BOTTOM,render:()=>a.createElement(d7,{api:e})});let t=e.getChannel();if(!t)return;let n=!1;t.on(`${U}/heartbeat`,()=>{clearTimeout(q1),n&&(n=!1,e.clearNotification(`${U}/connection-lost`)),q1=setTimeout(()=>{n=!0,e.addNotification({id:`${U}/connection-lost`,content:{headline:"Connection lost",subHeadline:"Lost connection to the Storybook server. Try refreshing the page."},icon:{name:"failed",color:It.negative},link:void 0})},3e3)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..01dcab8 --- /dev/null +++ b/storybook/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt @@ -0,0 +1,40 @@ +Bundled license information: + +filesize/dist/filesize.esm.js: + /** + * filesize + * + * @copyright 2024 Jason Mulligan + * @license BSD-3-Clause + * @version 10.1.2 + */ + +@chromatic-com/storybook/dist/manager.mjs: + /*! Bundled license information: + + popper.js/dist/esm/popper.js: + (**! + * @fileOverview Kickass library to create and place poppers near their reference elements. + * @version 1.16.1 + * @license + * Copyright (c) 2016 Federico Zivolo and contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + *) + */ diff --git a/storybook/sb-addons/essentials-actions-4/manager-bundle.js b/storybook/sb-addons/essentials-actions-4/manager-bundle.js new file mode 100644 index 0000000..c1280fe --- /dev/null +++ b/storybook/sb-addons/essentials-actions-4/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var o=__REACT__,{Children:Te,Component:_e,Fragment:ve,Profiler:Jr,PureComponent:qr,StrictMode:Xr,Suspense:Zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Kr,cloneElement:Qr,createContext:Z,createElement:en,createFactory:tn,createRef:rn,forwardRef:Se,isValidElement:nn,lazy:an,memo:j,startTransition:on,unstable_act:sn,useCallback:x,useContext:K,useDebugValue:ln,useDeferredValue:un,useEffect:Re,useId:cn,useImperativeHandle:pn,useInsertionEffect:fn,useLayoutEffect:Ae,useMemo:Ce,useReducer:dn,useRef:we,useState:U,useSyncExternalStore:mn,useTransition:gn,version:bn}=__REACT__;var Tn=__STORYBOOK_API__,{ActiveTabs:_n,Consumer:vn,ManagerContext:Sn,Provider:Rn,RequestResponseError:An,addons:Q,combineParameters:Cn,controlOrMetaKey:wn,controlOrMetaSymbol:Nn,eventMatchesShortcut:xn,eventToShortcut:Ln,experimental_requestResponse:In,isMacLike:Dn,isShortcutTaken:Mn,keyToSymbol:Pn,merge:Bn,mockChannel:Fn,optionOrAltSymbol:zn,shortcutMatchesShortcut:Hn,shortcutToHumanString:jn,types:Ne,useAddonState:xe,useArgTypes:Un,useArgs:kn,useChannel:Le,useGlobalTypes:Gn,useGlobals:Wn,useParameter:Vn,useSharedState:$n,useStoryPrepared:Yn,useStorybookApi:Jn,useStorybookState:qn}=__STORYBOOK_API__;var ea=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:ta,ARGTYPES_INFO_RESPONSE:ra,CHANNEL_CREATED:na,CHANNEL_WS_DISCONNECT:aa,CONFIG_ERROR:oa,CREATE_NEW_STORYFILE_REQUEST:ia,CREATE_NEW_STORYFILE_RESPONSE:sa,CURRENT_STORY_WAS_SET:la,DOCS_PREPARED:ua,DOCS_RENDERED:ca,FILE_COMPONENT_SEARCH_REQUEST:pa,FILE_COMPONENT_SEARCH_RESPONSE:fa,FORCE_REMOUNT:da,FORCE_RE_RENDER:ma,GLOBALS_UPDATED:ga,NAVIGATE_URL:ba,PLAY_FUNCTION_THREW_EXCEPTION:ha,PRELOAD_ENTRIES:Ea,PREVIEW_BUILDER_PROGRESS:ya,PREVIEW_KEYDOWN:Oa,REGISTER_SUBSCRIPTION:Ta,REQUEST_WHATS_NEW_DATA:_a,RESET_STORY_ARGS:va,RESULT_WHATS_NEW_DATA:Sa,SAVE_STORY_REQUEST:Ra,SAVE_STORY_RESPONSE:Aa,SELECT_STORY:Ca,SET_CONFIG:wa,SET_CURRENT_STORY:Na,SET_GLOBALS:xa,SET_INDEX:La,SET_STORIES:Ia,SET_WHATS_NEW_CACHE:Da,SHARED_STATE_CHANGED:Ma,SHARED_STATE_SET:Pa,STORIES_COLLAPSE_ALL:Ba,STORIES_EXPAND_ALL:Fa,STORY_ARGS_UPDATED:za,STORY_CHANGED:k,STORY_ERRORED:Ha,STORY_INDEX_INVALIDATED:ja,STORY_MISSING:Ua,STORY_PREPARED:ka,STORY_RENDERED:Ga,STORY_RENDER_PHASE_CHANGED:Wa,STORY_SPECIFIED:Va,STORY_THREW_EXCEPTION:$a,STORY_UNCHANGED:Ya,TELEMETRY_ERROR:Ja,TOGGLE_WHATS_NEW_NOTIFICATIONS:qa,UNHANDLED_ERRORS_WHILE_PLAYING:Xa,UPDATE_GLOBALS:Za,UPDATE_QUERY_PARAMS:Ka,UPDATE_STORY_ARGS:Qa}=__STORYBOOK_CORE_EVENTS__;var ao=__STORYBOOK_COMPONENTS__,{A:oo,ActionBar:Ie,AddonPanel:io,Badge:De,Bar:so,Blockquote:lo,Button:uo,ClipboardCode:co,Code:po,DL:fo,Div:mo,DocumentWrapper:go,EmptyTabContent:bo,ErrorFormatter:ho,FlexBar:Eo,Form:yo,H1:Oo,H2:To,H3:_o,H4:vo,H5:So,H6:Ro,HR:Ao,IconButton:Co,IconButtonSkeleton:wo,Icons:No,Img:xo,LI:Lo,Link:Io,ListItem:Do,Loader:Mo,Modal:Po,OL:Bo,P:Fo,Placeholder:zo,Pre:Ho,ResetWrapper:jo,ScrollArea:Me,Separator:Uo,Spaced:Pe,Span:ko,StorybookIcon:Go,StorybookLogo:Wo,Symbols:Vo,SyntaxHighlighter:$o,TT:Yo,TabBar:Jo,TabButton:qo,TabWrapper:Xo,Table:Zo,Tabs:Ko,TabsState:Qo,TooltipLinkList:ei,TooltipMessage:ti,TooltipNote:ri,UL:ni,WithTooltip:ai,WithTooltipPure:oi,Zoom:ii,codeCommon:si,components:li,createCopyToClipboardFunction:ui,getStoryHref:ci,icons:pi,interleaveSeparators:fi,nameSpaceClassNames:di,resetComponents:mi,withReset:gi}=__STORYBOOK_COMPONENTS__;var Be=Object.prototype.hasOwnProperty;function Fe(e,t,r){for(r of e.keys())if(L(r,t))return r}function L(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&L(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=Fe(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=Fe(t,a),!a)||!L(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Be.call(e,r)&&++n&&!Be.call(t,r)||!(r in t)||!L(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var Si=__STORYBOOK_THEMING__,{CacheProvider:Ri,ClassNames:Ai,Global:Ci,ThemeProvider:wi,background:Ni,color:xi,convert:Li,create:Ii,createCache:Di,createGlobal:Mi,createReset:Pi,css:Bi,darken:Fi,ensure:zi,ignoreSsrWarning:Hi,isPropValid:ji,jsx:Ui,keyframes:ki,lighten:Gi,styled:B,themes:Wi,typography:Vi,useTheme:$i,withTheme:ze}=__STORYBOOK_THEMING__;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&a<1?(l=i,u=s):a>=1&&a<2?(l=s,u=i):a>=2&&a<3?(u=i,c=s):a>=3&&a<4?(u=s,c=i):a>=4&&a<5?(l=s,c=i):a>=5&&a<6&&(l=i,c=s);var p=r-i/2,d=l+p,f=u+p,E=c+p;return n(d,f,E)}var Ve={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function mt(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ve[t]?"#"+Ve[t]:e}var gt=/^#[a-fA-F0-9]{6}$/,bt=/^#[a-fA-F0-9]{8}$/,ht=/^#[a-fA-F0-9]{3}$/,Et=/^#[a-fA-F0-9]{4}$/,re=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,yt=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ot=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Tt=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function I(e){if(typeof e!="string")throw new _(3);var t=mt(e);if(t.match(gt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(bt)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Et)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=re.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=yt.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Ot.exec(t);if(s){var l=parseInt(""+s[1],10),u=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+F(l,u,c)+")",d=re.exec(p);if(!d)throw new _(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=Tt.exec(t.substring(0,50));if(f){var E=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,O="rgb("+F(E,m,y)+")",N=re.exec(O);if(!N)throw new _(4,t,O);return{red:parseInt(""+N[1],10),green:parseInt(""+N[2],10),blue:parseInt(""+N[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new _(5)}function _t(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l,u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:l=(r-n)/u+(r=1?V(e,t,r):"rgba("+F(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?V(e.hue,e.saturation,e.lightness):"rgba("+F(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new _(2)}function oe(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ae("#"+w(e)+w(t)+w(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ae("#"+w(e.red)+w(e.green)+w(e.blue));throw new _(6)}function $(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=I(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?oe(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?oe(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new _(7)}var Ct=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},wt=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},Nt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},xt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function C(e){if(typeof e!="object")throw new _(8);if(wt(e))return $(e);if(Ct(e))return oe(e);if(xt(e))return At(e);if(Nt(e))return Rt(e);throw new _(8)}function Ye(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ye(e,t,a)}}function v(e){return Ye(e,e.length,[])}function Lt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{hue:r.hue+parseFloat(e)}))}var Ks=v(Lt);function D(e,t,r){return Math.max(e,Math.min(t,r))}function It(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness-parseFloat(e))}))}var Qs=v(It);function Dt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation-parseFloat(e))}))}var el=v(Dt);function Mt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness+parseFloat(e))}))}var tl=v(Mt);function Pt(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=I(t),a=T({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=I(r),s=T({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=a.alpha-s.alpha,u=parseFloat(e)*2-1,c=u*l===-1?u:u+l,p=1+u*l,d=(c/p+1)/2,f=1-d,E={red:Math.floor(a.red*d+s.red*f),green:Math.floor(a.green*d+s.green*f),blue:Math.floor(a.blue*d+s.blue*f),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return $(E)}var Bt=v(Pt),Je=Bt;function Ft(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,(n*100+parseFloat(e)*100)/100)});return $(a)}var zt=v(Ft),qe=zt;function Ht(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation+parseFloat(e))}))}var rl=v(Ht);function jt(e,t){return t==="transparent"?t:C(T({},A(t),{hue:parseFloat(e)}))}var nl=v(jt);function Ut(e,t){return t==="transparent"?t:C(T({},A(t),{lightness:parseFloat(e)}))}var al=v(Ut);function kt(e,t){return t==="transparent"?t:C(T({},A(t),{saturation:parseFloat(e)}))}var ol=v(kt);function Gt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(0, 0, 0)",t)}var il=v(Gt);function Wt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(255, 255, 255)",t)}var sl=v(Wt);function Vt(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return $(a)}var ll=v(Vt);var $t=Object.create,pe=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,Jt=Object.getPrototypeOf,qt=Object.prototype.hasOwnProperty,fe=(e,t)=>function(){return t||(0,e[et(e)[0]])((t={exports:{}}).exports,t),t.exports},Xt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Zt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of et(t))!qt.call(e,a)&&a!==r&&pe(e,a,{get:()=>t[a],enumerable:!(n=Yt(t,a))||n.enumerable});return e},Kt=(e,t,r)=>(r=e!=null?$t(Jt(e)):{},Zt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),Qt=fe({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),er=fe({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),tr=fe({"node_modules/is-dom/index.js"(e,t){var r=Qt(),n=er();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),q={};Xt(q,{chromeDark:()=>rr,chromeLight:()=>nr});var rr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},nr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},tt=Z([{},()=>{}]),ie={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Y=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...ie},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...ie},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...ie}}),se="chromeLight",rt=Z(Y(q[se])),S=e=>K(rt)[e],de=e=>({theme:t=se,...r})=>{let n=Ce(()=>{switch(Object.prototype.toString.call(t)){case"[object String]":return Y(q[t]);case"[object Object]":return Y(t);default:return Y(q[se])}},[t]);return o.createElement(rt.Provider,{value:n},o.createElement(e,{...r}))},ar=({expanded:e,styles:t})=>o.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),or=j(e=>{e={expanded:!0,nodeRenderer:({name:p})=>o.createElement("span",null,p),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:a,title:i,shouldShowArrow:s,shouldShowPlaceholder:l}=e,u=S("TreeNode"),c=a;return o.createElement("li",{"aria-expanded":t,role:"treeitem",style:u.treeNodeBase,title:i},o.createElement("div",{style:u.treeNodePreviewContainer,onClick:r},s||Te.count(n)>0?o.createElement(ar,{expanded:t,styles:u.treeNodeArrow}):l&&o.createElement("span",{style:u.treeNodePlaceholder},"\xA0"),o.createElement(c,{...e})),o.createElement("ol",{role:"group",style:u.treeNodeChildNodesContainer},t?n:void 0))}),X="$",Xe="*";function J(e,t){return!t(e).next().done}var ir=e=>Array.from({length:e},(t,r)=>[X].concat(Array.from({length:r},()=>"*")).join(".")),sr=(e,t,r,n,a)=>{let i=[].concat(ir(n)).concat(r).filter(l=>typeof l=="string"),s=[];return i.forEach(l=>{let u=l.split("."),c=(p,d,f)=>{if(f===u.length){s.push(d);return}let E=u[f];if(f===0)J(p,t)&&(E===X||E===Xe)&&c(p,X,f+1);else if(E===Xe)for(let{name:m,data:y}of t(p))J(y,t)&&c(y,`${d}.${m}`,f+1);else{let m=p[E];J(m,t)&&c(m,`${d}.${E}`,f+1)}};c(e,"",0)}),s.reduce((l,u)=>(l[u]=!0,l),{...a})},nt=j(e=>{let{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,l]=K(tt),u=J(t,r),c=!!s[n],p=x(()=>u&&l(d=>({...d,[n]:!c})),[u,l,n,c]);return o.createElement(or,{expanded:c,onClick:p,shouldShowArrow:u,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},c?[...r(t)].map(({name:d,data:f,...E})=>o.createElement(nt,{name:d,data:f,depth:a+1,path:`${n}.${d}`,key:d,dataIterator:r,nodeRenderer:i,...E})):null)}),at=j(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{let s=S("TreeView"),l=U({}),[,u]=l;return Ae(()=>u(c=>sr(t,r,a,i,c)),[t,r,a,i]),o.createElement(tt.Provider,{value:l},o.createElement("ol",{role:"tree",style:s.treeViewOutline},o.createElement(nt,{name:e,data:t,dataIterator:r,depth:0,path:X,nodeRenderer:n})))}),me=({name:e,dimmed:t=!1,styles:r={}})=>{let n=S("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return o.createElement("span",{style:a},e)},z=({object:e,styles:t})=>{let r=S("ObjectValue"),n=a=>({...r[a],...t});switch(typeof e){case"bigint":return o.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return o.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return o.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return o.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return o.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?o.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?o.createElement("span",null,e.toString()):e instanceof RegExp?o.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?o.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?o.createElement("span",null,`Buffer[${e.length}]`):o.createElement("span",null,e.constructor.name):o.createElement("span",null,"Object");case"function":return o.createElement("span",null,o.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),o.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return o.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return o.createElement("span",null)}},ot=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;function le(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function Ze(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var ue=({data:e})=>{let t=S("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return o.createElement(z,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,a=r.slice(0,n).map((s,l)=>o.createElement(z,{key:l,object:s}));r.length>n&&a.push(o.createElement("span",{key:"ellipsis"},"\u2026"));let i=r.length;return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i===0?"":`(${i})\xA0`),o.createElement("span",{style:t.preview},"[",Ze(a,", "),"]"))}else{let n=t.objectMaxProperties,a=[];for(let s in r)if(ot.call(r,s)){let l;a.length===n-1&&Object.keys(r).length>n&&(l=o.createElement("span",{key:"ellipsis"},"\u2026"));let u=le(r,s);if(a.push(o.createElement("span",{key:s},o.createElement(me,{name:s||'""'}),":\xA0",o.createElement(z,{object:u}),l)),l)break}let i=r.constructor?r.constructor.name:"Object";return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),o.createElement("span",{style:t.preview},"{",Ze(a,", "),"}"))}},ur=({name:e,data:t})=>typeof e=="string"?o.createElement("span",null,o.createElement(me,{name:e}),o.createElement("span",null,": "),o.createElement(ue,{data:t})):o.createElement(ue,{data:t}),cr=({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return o.createElement("span",null,typeof e=="string"?o.createElement(me,{name:e,dimmed:r}):o.createElement(ue,{data:e}),o.createElement("span",null,": "),o.createElement(z,{object:n}))},pr=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;let n=Array.isArray(r);if(!n&&r[Symbol.iterator]){let a=0;for(let i of r){if(Array.isArray(i)&&i.length===2){let[s,l]=i;yield{name:s,data:l}}else yield{name:a.toString(),data:i};a++}}else{let a=Object.getOwnPropertyNames(r);t===!0&&!n?a.sort():typeof t=="function"&&a.sort(t);for(let i of a)if(lr.call(r,i)){let s=le(r,i);yield{name:i||'""',data:s}}else if(e){let s;try{s=le(r,i)}catch{}s!==void 0&&(yield{name:i,data:s,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},fr=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?o.createElement(ur,{name:t,data:r}):o.createElement(cr,{name:t,data:r,isNonenumerable:n}),dr=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let a=pr(e,t),i=r||fr;return o.createElement(at,{nodeRenderer:i,dataIterator:a,...n})},mr=de(dr);function gr(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,a)=>{let i=e[a];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var br=({rows:e,columns:t,rowsData:r})=>{let n=S("TableInspectorDataContainer"),a=S("TableInspectorLeftBorder");return o.createElement("div",{style:n.div},o.createElement("table",{style:n.table},o.createElement("colgroup",null),o.createElement("tbody",null,e.map((i,s)=>o.createElement("tr",{key:i,style:n.tr},o.createElement("td",{style:{...n.td,...a.none}},i),t.map(l=>{let u=r[s];return typeof u=="object"&&u!==null&&ot.call(u,l)?o.createElement("td",{key:l,style:{...n.td,...a.solid}},o.createElement(z,{object:u[l]})):o.createElement("td",{key:l,style:{...n.td,...a.solid}})}))))))},hr=e=>o.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),Er=({sortAscending:e})=>{let t=S("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return o.createElement("div",{style:t},r)},Ke=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:a,...i})=>{let s=S("TableInspectorTH"),[l,u]=U(!1),c=x(()=>u(!0),[]),p=x(()=>u(!1),[]);return o.createElement("th",{...i,style:{...s.base,...n,...l?s.base[":hover"]:{}},onMouseEnter:c,onMouseLeave:p,onClick:r},o.createElement("div",{style:s.div},a),t&&o.createElement(hr,null,o.createElement(Er,{sortAscending:e})))},yr=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:a,sortAscending:i,onTHClick:s,onIndexTHClick:l})=>{let u=S("TableInspectorHeaderContainer"),c=S("TableInspectorLeftBorder");return o.createElement("div",{style:u.base},o.createElement("table",{style:u.table},o.createElement("tbody",null,o.createElement("tr",null,o.createElement(Ke,{borderStyle:c.none,sorted:r&&n,sortAscending:i,onClick:l},e),t.map(p=>o.createElement(Ke,{borderStyle:c.solid,key:p,sorted:r&&a===p,sortAscending:i,onClick:s.bind(null,p)},p))))))},Or=({data:e,columns:t})=>{let r=S("TableInspector"),[{sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s},l]=U({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),u=x(()=>{l(({sortIndexColumn:m,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!y:!0}))},[]),c=x(m=>{l(({sortColumn:y,sortAscending:O})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===y?!O:!0}))},[]);if(typeof e!="object"||e===null)return o.createElement("div",null);let{rowHeaders:p,colHeaders:d}=gr(e);t!==void 0&&(d=t);let f=p.map(m=>e[m]),E;if(i!==void 0?E=f.map((m,y)=>typeof m=="object"&&m!==null?[m[i],y]:[void 0,y]):a&&(E=p.map((m,y)=>[p[y],y])),E!==void 0){let m=(O,N)=>(ut,ct)=>{let ge=O(ut),be=O(ct),he=typeof ge,Ee=typeof be,ye=(P,Oe)=>POe?1:0,M;if(he===Ee)M=ye(ge,be);else{let P={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};M=ye(P[he],P[Ee])}return N||(M=-M),M},y=E.sort(m(O=>O[0],s)).map(O=>O[1]);p=y.map(O=>p[O]),f=y.map(O=>f[O])}return o.createElement("div",{style:r.base},o.createElement(yr,{columns:d,sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s,onTHClick:c,onIndexTHClick:u}),o.createElement(br,{rows:p,columns:d,rowsData:f}))},Tr=de(Or),_r=80,it=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<_r,vr=({tagName:e,attributes:t,styles:r})=>o.createElement("span",{style:r.base},"<",o.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let a=0;a"),Qe=({tagName:e,isChildNode:t=!1,styles:r})=>o.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},""),Sr={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Rr=({isCloseTag:e,data:t,expanded:r})=>{let n=S("DOMNodePreview");if(e)return o.createElement(Qe,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return o.createElement("span",null,o.createElement(vr,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),it(t)?t.textContent:!r&&"\u2026",!r&&o.createElement(Qe,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return o.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return o.createElement("span",null,"");case Node.COMMENT_NODE:return o.createElement("span",{style:n.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return o.createElement("span",{style:n.htmlDoctype},"");case Node.DOCUMENT_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return o.createElement("span",null,t.nodeName);default:return o.createElement("span",null,Sr[t.nodeType])}},Ar=function*(e){if(e&&e.childNodes){if(it(e))return;for(let t=0;to.createElement(at,{nodeRenderer:Rr,dataIterator:Ar,...e}),wr=de(Cr),Nr=Kt(tr()),xr=({table:e=!1,data:t,...r})=>e?o.createElement(Tr,{data:t,...r}):(0,Nr.default)(t)?o.createElement(wr,{data:t,...r}):o.createElement(mr,{data:t,...r}),Lr=B.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),Ir=B.div(({theme:e})=>({backgroundColor:qe(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),Dr=B.div({flex:1,padding:"0 0 0 5px"}),st=Se(({children:e,className:t},r)=>o.createElement(Me,{ref:r,horizontal:!0,vertical:!0,className:t},e));st.displayName="UnstyledWrapped";var Mr=B(st)({margin:0,padding:"10px 5px 20px"}),Pr=ze(({theme:e,...t})=>o.createElement(xr,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),Br=({actions:e,onClear:t})=>{let r=we(null),n=r.current,a=n&&n.scrollHeight-n.scrollTop===n.clientHeight;return Re(()=>{a&&(r.current.scrollTop=r.current.scrollHeight)},[a,e.length]),o.createElement(ve,null,o.createElement(Mr,{ref:r},e.map(i=>o.createElement(Lr,{key:i.id},i.count>1&&o.createElement(Ir,null,i.count),o.createElement(Dr,null,o.createElement(Pr,{sortObjectKeys:!0,showNonenumerable:!1,name:i.data.name,data:i.data.args??i.data}))))),o.createElement(Ie,{actionItems:[{title:"Clear",onClick:t}]}))},Fr="actions",H="storybook/actions",zr=`${H}/panel`,ce=`${H}/action-event`,lt=`${H}/action-clear`,Hr=(e,t)=>{try{return L(e,t)}catch{return!1}},jr=class extends _e{constructor(e){super(e),this.handleStoryChange=()=>{let{actions:t}=this.state;t.length>0&&t[0].options.clearOnStoryChange&&this.clearActions()},this.addAction=t=>{this.setState(r=>{let n=[...r.actions],a=n.length&&n[n.length-1];return a&&Hr(a.data,t.data)?a.count++:(t.count=1,n.push(t)),{actions:n.slice(0,t.options.limit)}})},this.clearActions=()=>{let{api:t}=this.props;t.emit(lt),this.setState({actions:[]})},this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:e}=this.props;e.on(ce,this.addAction),e.on(k,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:e}=this.props;e.off(k,this.handleStoryChange),e.off(ce,this.addAction)}render(){let{actions:e=[]}=this.state,{active:t}=this.props,r={actions:e,onClear:this.clearActions};return t?o.createElement(Br,{...r}):null}};function Ur(){let[{count:e},t]=xe(H,{count:0});return Le({[ce]:()=>{t(r=>({...r,count:r.count+1}))},[k]:()=>{t(r=>({...r,count:0}))},[lt]:()=>{t(r=>({...r,count:0}))}}),o.createElement("div",null,o.createElement(Pe,{col:1},o.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Actions"),e===0?"":o.createElement(De,{status:"neutral"},e)))}Q.register(H,e=>{Q.add(zr,{title:Ur,type:Ne.PANEL,render:({active:t})=>o.createElement(jr,{api:e,active:!!t}),paramKey:Fr})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-backgrounds-5/manager-bundle.js b/storybook/sb-addons/essentials-backgrounds-5/manager-bundle.js new file mode 100644 index 0000000..5b0b898 --- /dev/null +++ b/storybook/sb-addons/essentials-backgrounds-5/manager-bundle.js @@ -0,0 +1,12 @@ +try{ +(()=>{var ne=Object.create;var F=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var E=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,a)=>(typeof require<"u"?require:o)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x=(e,o)=>()=>(e&&(o=e(e=0)),o);var ae=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var se=(e,o,a,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of re(o))!ie.call(e,c)&&c!==a&&F(e,c,{get:()=>o[c],enumerable:!(r=te(o,c))||r.enumerable});return e};var le=(e,o,a)=>(a=e!=null?ne(ce(e)):{},se(o||!e||!e.__esModule?F(a,"default",{value:e,enumerable:!0}):a,e));var I=x(()=>{});var d=x(()=>{});var m=x(()=>{});var V=ae((W,G)=>{I();d();m();(function(e){if(typeof W=="object"&&typeof G<"u")G.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var o;typeof window<"u"||typeof window<"u"?o=window:typeof self<"u"?o=self:o=this,o.memoizerific=e()}})(function(){var e,o,a;return function r(c,h,s){function t(i,f){if(!h[i]){if(!c[i]){var u=typeof E=="function"&&E;if(!f&&u)return u(i,!0);if(n)return n(i,!0);var b=new Error("Cannot find module '"+i+"'");throw b.code="MODULE_NOT_FOUND",b}var p=h[i]={exports:{}};c[i][0].call(p.exports,function(g){var S=c[i][1][g];return t(S||g)},p,p.exports,r,c,h,s)}return h[i].exports}for(var n=typeof E=="function"&&E,l=0;l=0)return this.lastItem=this.list[n],this.list[n].val},s.prototype.set=function(t,n){var l;return this.lastItem&&this.isEqual(this.lastItem.key,t)?(this.lastItem.val=n,this):(l=this.indexOf(t),l>=0?(this.lastItem=this.list[l],this.list[l].val=n,this):(this.lastItem={key:t,val:n},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(t){var n;if(this.lastItem&&this.isEqual(this.lastItem.key,t)&&(this.lastItem=void 0),n=this.indexOf(t),n>=0)return this.size--,this.list.splice(n,1)[0]},s.prototype.has=function(t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,t)?!0:(n=this.indexOf(t),n>=0?(this.lastItem=this.list[n],!0):!1)},s.prototype.forEach=function(t,n){var l;for(l=0;l0&&(B[T]={cacheItem:g,arg:arguments[T]},A?t(u,B):u.push(B),u.length>i&&n(u.shift())),p.wasMemoized=A,p.numArgs=T+1,w};return p.limit=i,p.wasMemoized=!1,p.cache=f,p.lru=u,p}};function t(i,f){var u=i.length,b=f.length,p,g,S;for(g=0;g=0&&(u=i[p],b=u.cacheItem.get(u.arg),!b||!b.size);p--)u.cacheItem.delete(u.arg)}function l(i,f){return i===f||i!==i&&f!==f}},{"map-or-similar":1}]},{},[3])(3)})});I();d();m();I();d();m();I();d();m();I();d();m();var C=__REACT__,{Children:ke,Component:Te,Fragment:R,Profiler:Oe,PureComponent:ve,StrictMode:Ae,Suspense:Ee,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:we,cloneElement:Be,createContext:xe,createElement:Re,createFactory:Le,createRef:Pe,forwardRef:Me,isValidElement:De,lazy:Ge,memo:L,startTransition:He,unstable_act:Ne,useCallback:q,useContext:Ue,useDebugValue:Fe,useDeferredValue:qe,useEffect:ze,useId:Ke,useImperativeHandle:Ye,useInsertionEffect:We,useLayoutEffect:Ve,useMemo:z,useReducer:$e,useRef:je,useState:K,useSyncExternalStore:Ze,useTransition:Je,version:Qe}=__REACT__;I();d();m();var to=__STORYBOOK_API__,{ActiveTabs:ro,Consumer:co,ManagerContext:io,Provider:ao,RequestResponseError:so,addons:P,combineParameters:lo,controlOrMetaKey:uo,controlOrMetaSymbol:Io,eventMatchesShortcut:mo,eventToShortcut:po,experimental_requestResponse:fo,isMacLike:ho,isShortcutTaken:go,keyToSymbol:bo,merge:So,mockChannel:Co,optionOrAltSymbol:yo,shortcutMatchesShortcut:_o,shortcutToHumanString:ko,types:Y,useAddonState:To,useArgTypes:Oo,useArgs:vo,useChannel:Ao,useGlobalTypes:Eo,useGlobals:M,useParameter:D,useSharedState:wo,useStoryPrepared:Bo,useStorybookApi:xo,useStorybookState:Ro}=__STORYBOOK_API__;var U=le(V());I();d();m();var Fo=__STORYBOOK_CLIENT_LOGGER__,{deprecate:qo,logger:H,once:zo,pretty:Ko}=__STORYBOOK_CLIENT_LOGGER__;I();d();m();var jo=__STORYBOOK_COMPONENTS__,{A:Zo,ActionBar:Jo,AddonPanel:Qo,Badge:Xo,Bar:en,Blockquote:on,Button:nn,ClipboardCode:tn,Code:rn,DL:cn,Div:an,DocumentWrapper:sn,EmptyTabContent:ln,ErrorFormatter:un,FlexBar:In,Form:dn,H1:mn,H2:pn,H3:fn,H4:hn,H5:gn,H6:bn,HR:Sn,IconButton:N,IconButtonSkeleton:Cn,Icons:yn,Img:_n,LI:kn,Link:Tn,ListItem:On,Loader:vn,Modal:An,OL:En,P:wn,Placeholder:Bn,Pre:xn,ResetWrapper:Rn,ScrollArea:Ln,Separator:Pn,Spaced:Mn,Span:Dn,StorybookIcon:Gn,StorybookLogo:Hn,Symbols:Nn,SyntaxHighlighter:Un,TT:Fn,TabBar:qn,TabButton:zn,TabWrapper:Kn,Table:Yn,Tabs:Wn,TabsState:Vn,TooltipLinkList:$,TooltipMessage:$n,TooltipNote:jn,UL:Zn,WithTooltip:j,WithTooltipPure:Jn,Zoom:Qn,codeCommon:Xn,components:et,createCopyToClipboardFunction:ot,getStoryHref:nt,icons:tt,interleaveSeparators:rt,nameSpaceClassNames:ct,resetComponents:it,withReset:at}=__STORYBOOK_COMPONENTS__;I();d();m();var dt=__STORYBOOK_ICONS__,{AccessibilityAltIcon:mt,AccessibilityIcon:pt,AddIcon:ft,AdminIcon:ht,AlertAltIcon:gt,AlertIcon:bt,AlignLeftIcon:St,AlignRightIcon:Ct,AppleIcon:yt,ArrowDownIcon:_t,ArrowLeftIcon:kt,ArrowRightIcon:Tt,ArrowSolidDownIcon:Ot,ArrowSolidLeftIcon:vt,ArrowSolidRightIcon:At,ArrowSolidUpIcon:Et,ArrowUpIcon:wt,AzureDevOpsIcon:Bt,BackIcon:xt,BasketIcon:Rt,BatchAcceptIcon:Lt,BatchDenyIcon:Pt,BeakerIcon:Mt,BellIcon:Dt,BitbucketIcon:Gt,BoldIcon:Ht,BookIcon:Nt,BookmarkHollowIcon:Ut,BookmarkIcon:Ft,BottomBarIcon:qt,BottomBarToggleIcon:zt,BoxIcon:Kt,BranchIcon:Yt,BrowserIcon:Wt,ButtonIcon:Vt,CPUIcon:$t,CalendarIcon:jt,CameraIcon:Zt,CategoryIcon:Jt,CertificateIcon:Qt,ChangedIcon:Xt,ChatIcon:er,CheckIcon:or,ChevronDownIcon:nr,ChevronLeftIcon:tr,ChevronRightIcon:rr,ChevronSmallDownIcon:cr,ChevronSmallLeftIcon:ir,ChevronSmallRightIcon:ar,ChevronSmallUpIcon:sr,ChevronUpIcon:lr,ChromaticIcon:ur,ChromeIcon:Ir,CircleHollowIcon:dr,CircleIcon:mr,ClearIcon:pr,CloseAltIcon:fr,CloseIcon:hr,CloudHollowIcon:gr,CloudIcon:br,CogIcon:Sr,CollapseIcon:Cr,CommandIcon:yr,CommentAddIcon:_r,CommentIcon:kr,CommentsIcon:Tr,CommitIcon:Or,CompassIcon:vr,ComponentDrivenIcon:Ar,ComponentIcon:Er,ContrastIcon:wr,ControlsIcon:Br,CopyIcon:xr,CreditIcon:Rr,CrossIcon:Lr,DashboardIcon:Pr,DatabaseIcon:Mr,DeleteIcon:Dr,DiamondIcon:Gr,DirectionIcon:Hr,DiscordIcon:Nr,DocChartIcon:Ur,DocListIcon:Fr,DocumentIcon:qr,DownloadIcon:zr,DragIcon:Kr,EditIcon:Yr,EllipsisIcon:Wr,EmailIcon:Vr,ExpandAltIcon:$r,ExpandIcon:jr,EyeCloseIcon:Zr,EyeIcon:Jr,FaceHappyIcon:Qr,FaceNeutralIcon:Xr,FaceSadIcon:ec,FacebookIcon:oc,FailedIcon:nc,FastForwardIcon:tc,FigmaIcon:rc,FilterIcon:cc,FlagIcon:ic,FolderIcon:ac,FormIcon:sc,GDriveIcon:lc,GithubIcon:uc,GitlabIcon:Ic,GlobeIcon:dc,GoogleIcon:mc,GraphBarIcon:pc,GraphLineIcon:fc,GraphqlIcon:hc,GridAltIcon:gc,GridIcon:Z,GrowIcon:bc,HeartHollowIcon:Sc,HeartIcon:Cc,HomeIcon:yc,HourglassIcon:_c,InfoIcon:kc,ItalicIcon:Tc,JumpToIcon:Oc,KeyIcon:vc,LightningIcon:Ac,LightningOffIcon:Ec,LinkBrokenIcon:wc,LinkIcon:Bc,LinkedinIcon:xc,LinuxIcon:Rc,ListOrderedIcon:Lc,ListUnorderedIcon:Pc,LocationIcon:Mc,LockIcon:Dc,MarkdownIcon:Gc,MarkupIcon:Hc,MediumIcon:Nc,MemoryIcon:Uc,MenuIcon:Fc,MergeIcon:qc,MirrorIcon:zc,MobileIcon:Kc,MoonIcon:Yc,NutIcon:Wc,OutboxIcon:Vc,OutlineIcon:$c,PaintBrushIcon:jc,PaperClipIcon:Zc,ParagraphIcon:Jc,PassedIcon:Qc,PhoneIcon:Xc,PhotoDragIcon:ei,PhotoIcon:J,PinAltIcon:oi,PinIcon:ni,PlayBackIcon:ti,PlayIcon:ri,PlayNextIcon:ci,PlusIcon:ii,PointerDefaultIcon:ai,PointerHandIcon:si,PowerIcon:li,PrintIcon:ui,ProceedIcon:Ii,ProfileIcon:di,PullRequestIcon:mi,QuestionIcon:pi,RSSIcon:fi,RedirectIcon:hi,ReduxIcon:gi,RefreshIcon:bi,ReplyIcon:Si,RepoIcon:Ci,RequestChangeIcon:yi,RewindIcon:_i,RulerIcon:ki,SearchIcon:Ti,ShareAltIcon:Oi,ShareIcon:vi,ShieldIcon:Ai,SideBySideIcon:Ei,SidebarAltIcon:wi,SidebarAltToggleIcon:Bi,SidebarIcon:xi,SidebarToggleIcon:Ri,SpeakerIcon:Li,StackedIcon:Pi,StarHollowIcon:Mi,StarIcon:Di,StickerIcon:Gi,StopAltIcon:Hi,StopIcon:Ni,StorybookIcon:Ui,StructureIcon:Fi,SubtractIcon:qi,SunIcon:zi,SupportIcon:Ki,SwitchAltIcon:Yi,SyncIcon:Wi,TabletIcon:Vi,ThumbsUpIcon:$i,TimeIcon:ji,TimerIcon:Zi,TransferIcon:Ji,TrashIcon:Qi,TwitterIcon:Xi,TypeIcon:ea,UbuntuIcon:oa,UndoIcon:na,UnfoldIcon:ta,UnlockIcon:ra,UnpinIcon:ca,UploadIcon:ia,UserAddIcon:aa,UserAltIcon:sa,UserIcon:la,UsersIcon:ua,VSCodeIcon:Ia,VerifiedIcon:da,VideoIcon:ma,WandIcon:pa,WatchIcon:fa,WindowsIcon:ha,WrenchIcon:ga,YoutubeIcon:ba,ZoomIcon:Sa,ZoomOutIcon:Ca,ZoomResetIcon:ya,iconList:_a}=__STORYBOOK_ICONS__;I();d();m();var Aa=__STORYBOOK_THEMING__,{CacheProvider:Ea,ClassNames:wa,Global:Ba,ThemeProvider:xa,background:Ra,color:La,convert:Pa,create:Ma,createCache:Da,createGlobal:Ga,createReset:Ha,css:Na,darken:Ua,ensure:Fa,ignoreSsrWarning:qa,isPropValid:za,jsx:Ka,keyframes:Ya,lighten:Wa,styled:Q,themes:Va,typography:$a,useTheme:ja,withTheme:Za}=__STORYBOOK_THEMING__;I();d();m();var os=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();I();d();m();function X(e){for(var o=[],a=1;a({borderRadius:"1rem",display:"block",height:"1rem",width:"1rem",background:e}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),Ie=(e,o=[],a)=>{if(e==="transparent")return"transparent";if(o.find(c=>c.value===e))return e;let r=o.find(c=>c.name===a);if(r)return r.value;if(a){let c=o.map(h=>h.name).join(", ");H.warn(X` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${c}. + `)}return"transparent"},oe=(0,U.default)(1e3)((e,o,a,r,c,h)=>({id:e||o,title:o,onClick:()=>{c({selected:a,name:o})},value:a,right:r?C.createElement(ue,{background:a}):void 0,active:h})),de=(0,U.default)(10)((e,o,a)=>{let r=e.map(({name:c,value:h})=>oe(null,c,h,!0,a,h===o));return o!=="transparent"?[oe("reset","Clear background","transparent",null,a,!1),...r]:r}),me={default:null,disable:!0,values:[]},pe=L(function(){let e=D(v,me),[o,a]=K(!1),[r,c]=M(),h=r[v]?.value,s=z(()=>Ie(h,e.values,e.default),[e,h]);Array.isArray(e)&&H.warn("Addon Backgrounds api has changed in Storybook 6.0. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md");let t=q(n=>{c({[v]:{...r[v],value:n}})},[e,r,c]);return e.disable?null:C.createElement(R,null,C.createElement(j,{placement:"top",closeOnOutsideClick:!0,tooltip:({onHide:n})=>C.createElement($,{links:de(e.values,s,({selected:l})=>{s!==l&&t(l),n()})}),onVisibleChange:a},C.createElement(N,{key:"background",title:"Change the background of the preview",active:s!=="transparent"||o},C.createElement(J,null))))}),fe=L(function(){let[e,o]=M(),{grid:a}=D(v,{grid:{disable:!1}});if(a?.disable)return null;let r=e[v]?.grid||!1;return C.createElement(N,{key:"background",active:r,title:"Apply a grid to the preview",onClick:()=>o({[v]:{...e[v],grid:!r}})},C.createElement(Z,null))});P.register(ee,()=>{P.add(ee,{title:"Backgrounds",type:Y.TOOL,match:({viewMode:e,tabId:o})=>!!(e&&e.match(/^(story|docs)$/))&&!o,render:()=>C.createElement(R,null,C.createElement(pe,null),C.createElement(fe,null))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-controls-3/manager-bundle.js b/storybook/sb-addons/essentials-controls-3/manager-bundle.js new file mode 100644 index 0000000..b8e992b --- /dev/null +++ b/storybook/sb-addons/essentials-controls-3/manager-bundle.js @@ -0,0 +1,60 @@ +try{ +(()=>{var Gg=Object.create;var oa=Object.defineProperty;var Wg=Object.getOwnPropertyDescriptor;var Vg=Object.getOwnPropertyNames;var Kg=Object.getPrototypeOf,Yg=Object.prototype.hasOwnProperty;var ir=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var He=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mu=(e,t)=>{for(var r in t)oa(e,r,{get:t[r],enumerable:!0})},Jg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vg(t))!Yg.call(e,a)&&a!==r&&oa(e,a,{get:()=>t[a],enumerable:!(n=Wg(t,a))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?Gg(Kg(e)):{},Jg(t||!e||!e.__esModule?oa(r,"default",{value:e,enumerable:!0}):r,e));var l=He(()=>{});var c=He(()=>{});var d=He(()=>{});var p,ju,et,rP,nP,aP,oP,$u,uP,de,sr,ua,iP,sP,lP,cP,Uu,dP,pP,fP,Ee,Hu,hP,mP,he,yP,gP,bP,zu,ze,EP,Fe,ne,AP,vP,DP,Bt=He(()=>{l();c();d();p=__REACT__,{Children:ju,Component:et,Fragment:rP,Profiler:nP,PureComponent:aP,StrictMode:oP,Suspense:$u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:uP,cloneElement:de,createContext:sr,createElement:ua,createFactory:iP,createRef:sP,forwardRef:lP,isValidElement:cP,lazy:Uu,memo:dP,startTransition:pP,unstable_act:fP,useCallback:Ee,useContext:Hu,useDebugValue:hP,useDeferredValue:mP,useEffect:he,useId:yP,useImperativeHandle:gP,useInsertionEffect:bP,useLayoutEffect:zu,useMemo:ze,useReducer:EP,useRef:Fe,useState:ne,useSyncExternalStore:AP,useTransition:vP,version:DP}=__REACT__});var Zu={};Mu(Zu,{A:()=>Zg,ActionBar:()=>ia,AddonPanel:()=>sa,Badge:()=>la,Bar:()=>ca,Blockquote:()=>e2,Button:()=>Je,ClipboardCode:()=>t2,Code:()=>Vu,DL:()=>r2,Div:()=>n2,DocumentWrapper:()=>a2,EmptyTabContent:()=>da,ErrorFormatter:()=>Ku,FlexBar:()=>pa,Form:()=>ke,H1:()=>o2,H2:()=>fa,H3:()=>Yu,H4:()=>u2,H5:()=>i2,H6:()=>s2,HR:()=>l2,IconButton:()=>qe,IconButtonSkeleton:()=>c2,Icons:()=>d2,Img:()=>p2,LI:()=>f2,Link:()=>ht,ListItem:()=>h2,Loader:()=>Ju,Modal:()=>Ge,OL:()=>m2,P:()=>y2,Placeholder:()=>g2,Pre:()=>b2,ResetWrapper:()=>ha,ScrollArea:()=>E2,Separator:()=>A2,Spaced:()=>ma,Span:()=>v2,StorybookIcon:()=>D2,StorybookLogo:()=>C2,Symbols:()=>x2,SyntaxHighlighter:()=>$r,TT:()=>S2,TabBar:()=>F2,TabButton:()=>w2,TabWrapper:()=>B2,Table:()=>T2,Tabs:()=>I2,TabsState:()=>Xu,TooltipLinkList:()=>_2,TooltipMessage:()=>O2,TooltipNote:()=>mt,UL:()=>R2,WithTooltip:()=>rt,WithTooltipPure:()=>ya,Zoom:()=>ga,codeCommon:()=>Tt,components:()=>ba,createCopyToClipboardFunction:()=>P2,default:()=>Qg,getStoryHref:()=>Qu,icons:()=>k2,interleaveSeparators:()=>N2,nameSpaceClassNames:()=>Ea,resetComponents:()=>L2,withReset:()=>It});var Qg,Zg,ia,sa,la,ca,e2,Je,t2,Vu,r2,n2,a2,da,Ku,pa,ke,o2,fa,Yu,u2,i2,s2,l2,qe,c2,d2,p2,f2,ht,h2,Ju,Ge,m2,y2,g2,b2,ha,E2,A2,ma,v2,D2,C2,x2,$r,S2,F2,w2,B2,T2,I2,Xu,_2,O2,mt,R2,rt,ya,ga,Tt,ba,P2,Qu,k2,N2,Ea,L2,It,lr=He(()=>{l();c();d();Qg=__STORYBOOK_COMPONENTS__,{A:Zg,ActionBar:ia,AddonPanel:sa,Badge:la,Bar:ca,Blockquote:e2,Button:Je,ClipboardCode:t2,Code:Vu,DL:r2,Div:n2,DocumentWrapper:a2,EmptyTabContent:da,ErrorFormatter:Ku,FlexBar:pa,Form:ke,H1:o2,H2:fa,H3:Yu,H4:u2,H5:i2,H6:s2,HR:l2,IconButton:qe,IconButtonSkeleton:c2,Icons:d2,Img:p2,LI:f2,Link:ht,ListItem:h2,Loader:Ju,Modal:Ge,OL:m2,P:y2,Placeholder:g2,Pre:b2,ResetWrapper:ha,ScrollArea:E2,Separator:A2,Spaced:ma,Span:v2,StorybookIcon:D2,StorybookLogo:C2,Symbols:x2,SyntaxHighlighter:$r,TT:S2,TabBar:F2,TabButton:w2,TabWrapper:B2,Table:T2,Tabs:I2,TabsState:Xu,TooltipLinkList:_2,TooltipMessage:O2,TooltipNote:mt,UL:R2,WithTooltip:rt,WithTooltipPure:ya,Zoom:ga,codeCommon:Tt,components:ba,createCopyToClipboardFunction:P2,getStoryHref:Qu,icons:k2,interleaveSeparators:N2,nameSpaceClassNames:Ea,resetComponents:L2,withReset:It}=__STORYBOOK_COMPONENTS__});var Pk,kk,Nk,Lk,ci,qk,zr,di,Mk,jk,$k,Uk,Hk,zk,c1,pi,Gk,Wk,Ca,Vk,L,xa,Kk,Sa,Yk,Gr=He(()=>{l();c();d();Pk=__STORYBOOK_THEMING__,{CacheProvider:kk,ClassNames:Nk,Global:Lk,ThemeProvider:ci,background:qk,color:zr,convert:di,create:Mk,createCache:jk,createGlobal:$k,createReset:Uk,css:Hk,darken:zk,ensure:c1,ignoreSsrWarning:pi,isPropValid:Gk,jsx:Wk,keyframes:Ca,lighten:Vk,styled:L,themes:xa,typography:Kk,useTheme:Sa,withTheme:Yk}=__STORYBOOK_THEMING__});var Be,cr,Fa=He(()=>{l();c();d();Be=e=>`control-${e.replace(/\s+/g,"-")}`,cr=e=>`set-${e.replace(/\s+/g,"-")}`});var vN,DN,CN,Yr,xN,SN,FN,wN,BN,TN,IN,_N,ON,RN,PN,kN,NN,LN,qN,MN,jN,$N,UN,HN,zN,GN,WN,VN,KN,YN,JN,XN,QN,ZN,eL,tL,rL,nL,aL,oL,uL,iL,sL,Ci,xi,lL,Si,Ra,cL,dL,Fi,pL,fL,hL,mL,yL,gL,bL,EL,AL,vL,DL,CL,xL,SL,FL,wL,BL,TL,IL,_L,OL,RL,PL,kL,NL,LL,qL,ML,jL,$L,UL,HL,zL,Jr,GL,WL,VL,KL,YL,JL,XL,wi,Bi,QL,ZL,eq,tq,rq,nq,aq,oq,uq,iq,sq,lq,cq,dq,pq,fq,hq,mq,yq,gq,bq,Eq,Aq,vq,Dq,Cq,xq,Sq,Fq,wq,Bq,Tq,Iq,Ti,_q,Oq,Rq,Pq,kq,Nq,Lq,Ii,qq,Mq,jq,$q,Uq,Hq,zq,Gq,Wq,Vq,Kq,Yq,Jq,Xq,Qq,Zq,eM,tM,rM,nM,aM,oM,uM,iM,sM,lM,cM,dM,pM,fM,hM,mM,yM,gM,bM,EM,AM,vM,DM,CM,xM,SM,FM,wM,BM,TM,IM,_M,OM,RM,PM,kM,NM,LM,qM,MM,jM,$M,_i,UM,HM,zM,GM,WM,VM,KM,YM,JM,XM,QM,ZM,ej,Xr,tj,rj,nj,aj,oj,uj,ij,sj,lj,cj,Oi,dj,pj,fj,hj,mj,Ri,Pi,ki,yj,Qr=He(()=>{l();c();d();vN=__STORYBOOK_ICONS__,{AccessibilityAltIcon:DN,AccessibilityIcon:CN,AddIcon:Yr,AdminIcon:xN,AlertAltIcon:SN,AlertIcon:FN,AlignLeftIcon:wN,AlignRightIcon:BN,AppleIcon:TN,ArrowDownIcon:IN,ArrowLeftIcon:_N,ArrowRightIcon:ON,ArrowSolidDownIcon:RN,ArrowSolidLeftIcon:PN,ArrowSolidRightIcon:kN,ArrowSolidUpIcon:NN,ArrowUpIcon:LN,AzureDevOpsIcon:qN,BackIcon:MN,BasketIcon:jN,BatchAcceptIcon:$N,BatchDenyIcon:UN,BeakerIcon:HN,BellIcon:zN,BitbucketIcon:GN,BoldIcon:WN,BookIcon:VN,BookmarkHollowIcon:KN,BookmarkIcon:YN,BottomBarIcon:JN,BottomBarToggleIcon:XN,BoxIcon:QN,BranchIcon:ZN,BrowserIcon:eL,ButtonIcon:tL,CPUIcon:rL,CalendarIcon:nL,CameraIcon:aL,CategoryIcon:oL,CertificateIcon:uL,ChangedIcon:iL,ChatIcon:sL,CheckIcon:Ci,ChevronDownIcon:xi,ChevronLeftIcon:lL,ChevronRightIcon:Si,ChevronSmallDownIcon:Ra,ChevronSmallLeftIcon:cL,ChevronSmallRightIcon:dL,ChevronSmallUpIcon:Fi,ChevronUpIcon:pL,ChromaticIcon:fL,ChromeIcon:hL,CircleHollowIcon:mL,CircleIcon:yL,ClearIcon:gL,CloseAltIcon:bL,CloseIcon:EL,CloudHollowIcon:AL,CloudIcon:vL,CogIcon:DL,CollapseIcon:CL,CommandIcon:xL,CommentAddIcon:SL,CommentIcon:FL,CommentsIcon:wL,CommitIcon:BL,CompassIcon:TL,ComponentDrivenIcon:IL,ComponentIcon:_L,ContrastIcon:OL,ControlsIcon:RL,CopyIcon:PL,CreditIcon:kL,CrossIcon:NL,DashboardIcon:LL,DatabaseIcon:qL,DeleteIcon:ML,DiamondIcon:jL,DirectionIcon:$L,DiscordIcon:UL,DocChartIcon:HL,DocListIcon:zL,DocumentIcon:Jr,DownloadIcon:GL,DragIcon:WL,EditIcon:VL,EllipsisIcon:KL,EmailIcon:YL,ExpandAltIcon:JL,ExpandIcon:XL,EyeCloseIcon:wi,EyeIcon:Bi,FaceHappyIcon:QL,FaceNeutralIcon:ZL,FaceSadIcon:eq,FacebookIcon:tq,FailedIcon:rq,FastForwardIcon:nq,FigmaIcon:aq,FilterIcon:oq,FlagIcon:uq,FolderIcon:iq,FormIcon:sq,GDriveIcon:lq,GithubIcon:cq,GitlabIcon:dq,GlobeIcon:pq,GoogleIcon:fq,GraphBarIcon:hq,GraphLineIcon:mq,GraphqlIcon:yq,GridAltIcon:gq,GridIcon:bq,GrowIcon:Eq,HeartHollowIcon:Aq,HeartIcon:vq,HomeIcon:Dq,HourglassIcon:Cq,InfoIcon:xq,ItalicIcon:Sq,JumpToIcon:Fq,KeyIcon:wq,LightningIcon:Bq,LightningOffIcon:Tq,LinkBrokenIcon:Iq,LinkIcon:Ti,LinkedinIcon:_q,LinuxIcon:Oq,ListOrderedIcon:Rq,ListUnorderedIcon:Pq,LocationIcon:kq,LockIcon:Nq,MarkdownIcon:Lq,MarkupIcon:Ii,MediumIcon:qq,MemoryIcon:Mq,MenuIcon:jq,MergeIcon:$q,MirrorIcon:Uq,MobileIcon:Hq,MoonIcon:zq,NutIcon:Gq,OutboxIcon:Wq,OutlineIcon:Vq,PaintBrushIcon:Kq,PaperClipIcon:Yq,ParagraphIcon:Jq,PassedIcon:Xq,PhoneIcon:Qq,PhotoDragIcon:Zq,PhotoIcon:eM,PinAltIcon:tM,PinIcon:rM,PlayBackIcon:nM,PlayIcon:aM,PlayNextIcon:oM,PlusIcon:uM,PointerDefaultIcon:iM,PointerHandIcon:sM,PowerIcon:lM,PrintIcon:cM,ProceedIcon:dM,ProfileIcon:pM,PullRequestIcon:fM,QuestionIcon:hM,RSSIcon:mM,RedirectIcon:yM,ReduxIcon:gM,RefreshIcon:bM,ReplyIcon:EM,RepoIcon:AM,RequestChangeIcon:vM,RewindIcon:DM,RulerIcon:CM,SearchIcon:xM,ShareAltIcon:SM,ShareIcon:FM,ShieldIcon:wM,SideBySideIcon:BM,SidebarAltIcon:TM,SidebarAltToggleIcon:IM,SidebarIcon:_M,SidebarToggleIcon:OM,SpeakerIcon:RM,StackedIcon:PM,StarHollowIcon:kM,StarIcon:NM,StickerIcon:LM,StopAltIcon:qM,StopIcon:MM,StorybookIcon:jM,StructureIcon:$M,SubtractIcon:_i,SunIcon:UM,SupportIcon:HM,SwitchAltIcon:zM,SyncIcon:GM,TabletIcon:WM,ThumbsUpIcon:VM,TimeIcon:KM,TimerIcon:YM,TransferIcon:JM,TrashIcon:XM,TwitterIcon:QM,TypeIcon:ZM,UbuntuIcon:ej,UndoIcon:Xr,UnfoldIcon:tj,UnlockIcon:rj,UnpinIcon:nj,UploadIcon:aj,UserAddIcon:oj,UserAltIcon:uj,UserIcon:ij,UsersIcon:sj,VSCodeIcon:lj,VerifiedIcon:cj,VideoIcon:Oi,WandIcon:dj,WatchIcon:pj,WindowsIcon:fj,WrenchIcon:hj,YoutubeIcon:mj,ZoomIcon:Ri,ZoomOutIcon:Pi,ZoomResetIcon:ki,iconList:yj}=__STORYBOOK_ICONS__});var Pa=S((vj,Ni)=>{l();c();d();function Y1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r{l();c();d();function J1(){this.__data__=[],this.size=0}Li.exports=J1});var Zr=S((Tj,Mi)=>{l();c();d();function X1(e,t){return e===t||e!==e&&t!==t}Mi.exports=X1});var fr=S((Rj,ji)=>{l();c();d();var Q1=Zr();function Z1(e,t){for(var r=e.length;r--;)if(Q1(e[r][0],t))return r;return-1}ji.exports=Z1});var Ui=S((Lj,$i)=>{l();c();d();var eb=fr(),tb=Array.prototype,rb=tb.splice;function nb(e){var t=this.__data__,r=eb(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rb.call(t,r,1),--this.size,!0}$i.exports=nb});var zi=S(($j,Hi)=>{l();c();d();var ab=fr();function ob(e){var t=this.__data__,r=ab(t,e);return r<0?void 0:t[r][1]}Hi.exports=ob});var Wi=S((Gj,Gi)=>{l();c();d();var ub=fr();function ib(e){return ub(this.__data__,e)>-1}Gi.exports=ib});var Ki=S((Yj,Vi)=>{l();c();d();var sb=fr();function lb(e,t){var r=this.__data__,n=sb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Vi.exports=lb});var hr=S((Zj,Yi)=>{l();c();d();var cb=qi(),db=Ui(),pb=zi(),fb=Wi(),hb=Ki();function Rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var mb=hr();function yb(){this.__data__=new mb,this.size=0}Ji.exports=yb});var Zi=S((i$,Qi)=>{l();c();d();function gb(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Qi.exports=gb});var ts=S((d$,es)=>{l();c();d();function bb(e){return this.__data__.get(e)}es.exports=bb});var ns=S((m$,rs)=>{l();c();d();function Eb(e){return this.__data__.has(e)}rs.exports=Eb});var ka=S((E$,as)=>{l();c();d();var Ab=typeof window=="object"&&window&&window.Object===Object&&window;as.exports=Ab});var Ne=S((C$,os)=>{l();c();d();var vb=ka(),Db=typeof self=="object"&&self&&self.Object===Object&&self,Cb=vb||Db||Function("return this")();os.exports=Cb});var gt=S((w$,us)=>{l();c();d();var xb=Ne(),Sb=xb.Symbol;us.exports=Sb});var cs=S((_$,ls)=>{l();c();d();var is=gt(),ss=Object.prototype,Fb=ss.hasOwnProperty,wb=ss.toString,mr=is?is.toStringTag:void 0;function Bb(e){var t=Fb.call(e,mr),r=e[mr];try{e[mr]=void 0;var n=!0}catch{}var a=wb.call(e);return n&&(t?e[mr]=r:delete e[mr]),a}ls.exports=Bb});var ps=S((k$,ds)=>{l();c();d();var Tb=Object.prototype,Ib=Tb.toString;function _b(e){return Ib.call(e)}ds.exports=_b});var bt=S((M$,ms)=>{l();c();d();var fs=gt(),Ob=cs(),Rb=ps(),Pb="[object Null]",kb="[object Undefined]",hs=fs?fs.toStringTag:void 0;function Nb(e){return e==null?e===void 0?kb:Pb:hs&&hs in Object(e)?Ob(e):Rb(e)}ms.exports=Nb});var $e=S((H$,ys)=>{l();c();d();function Lb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}ys.exports=Lb});var Na=S((V$,gs)=>{l();c();d();var qb=bt(),Mb=$e(),jb="[object AsyncFunction]",$b="[object Function]",Ub="[object GeneratorFunction]",Hb="[object Proxy]";function zb(e){if(!Mb(e))return!1;var t=qb(e);return t==$b||t==Ub||t==jb||t==Hb}gs.exports=zb});var Es=S((X$,bs)=>{l();c();d();var Gb=Ne(),Wb=Gb["__core-js_shared__"];bs.exports=Wb});var Ds=S((tU,vs)=>{l();c();d();var La=Es(),As=function(){var e=/[^.]+$/.exec(La&&La.keys&&La.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vb(e){return!!As&&As in e}vs.exports=Vb});var qa=S((oU,Cs)=>{l();c();d();var Kb=Function.prototype,Yb=Kb.toString;function Jb(e){if(e!=null){try{return Yb.call(e)}catch{}try{return e+""}catch{}}return""}Cs.exports=Jb});var Ss=S((lU,xs)=>{l();c();d();var Xb=Na(),Qb=Ds(),Zb=$e(),eE=qa(),tE=/[\\^$.*+?()[\]{}|]/g,rE=/^\[object .+?Constructor\]$/,nE=Function.prototype,aE=Object.prototype,oE=nE.toString,uE=aE.hasOwnProperty,iE=RegExp("^"+oE.call(uE).replace(tE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sE(e){if(!Zb(e)||Qb(e))return!1;var t=Xb(e)?iE:rE;return t.test(eE(e))}xs.exports=sE});var ws=S((fU,Fs)=>{l();c();d();function lE(e,t){return e?.[t]}Fs.exports=lE});var it=S((gU,Bs)=>{l();c();d();var cE=Ss(),dE=ws();function pE(e,t){var r=dE(e,t);return cE(r)?r:void 0}Bs.exports=pE});var en=S((vU,Ts)=>{l();c();d();var fE=it(),hE=Ne(),mE=fE(hE,"Map");Ts.exports=mE});var yr=S((SU,Is)=>{l();c();d();var yE=it(),gE=yE(Object,"create");Is.exports=gE});var Rs=S((TU,Os)=>{l();c();d();var _s=yr();function bE(){this.__data__=_s?_s(null):{},this.size=0}Os.exports=bE});var ks=S((RU,Ps)=>{l();c();d();function EE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ps.exports=EE});var Ls=S((LU,Ns)=>{l();c();d();var AE=yr(),vE="__lodash_hash_undefined__",DE=Object.prototype,CE=DE.hasOwnProperty;function xE(e){var t=this.__data__;if(AE){var r=t[e];return r===vE?void 0:r}return CE.call(t,e)?t[e]:void 0}Ns.exports=xE});var Ms=S(($U,qs)=>{l();c();d();var SE=yr(),FE=Object.prototype,wE=FE.hasOwnProperty;function BE(e){var t=this.__data__;return SE?t[e]!==void 0:wE.call(t,e)}qs.exports=BE});var $s=S((GU,js)=>{l();c();d();var TE=yr(),IE="__lodash_hash_undefined__";function _E(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=TE&&t===void 0?IE:t,this}js.exports=_E});var Hs=S((YU,Us)=>{l();c();d();var OE=Rs(),RE=ks(),PE=Ls(),kE=Ms(),NE=$s();function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var zs=Hs(),LE=hr(),qE=en();function ME(){this.size=0,this.__data__={hash:new zs,map:new(qE||LE),string:new zs}}Gs.exports=ME});var Ks=S((nH,Vs)=>{l();c();d();function jE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Vs.exports=jE});var gr=S((iH,Ys)=>{l();c();d();var $E=Ks();function UE(e,t){var r=e.__data__;return $E(t)?r[typeof t=="string"?"string":"hash"]:r.map}Ys.exports=UE});var Xs=S((dH,Js)=>{l();c();d();var HE=gr();function zE(e){var t=HE(this,e).delete(e);return this.size-=t?1:0,t}Js.exports=zE});var Zs=S((mH,Qs)=>{l();c();d();var GE=gr();function WE(e){return GE(this,e).get(e)}Qs.exports=WE});var tl=S((EH,el)=>{l();c();d();var VE=gr();function KE(e){return VE(this,e).has(e)}el.exports=KE});var nl=S((CH,rl)=>{l();c();d();var YE=gr();function JE(e,t){var r=YE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}rl.exports=JE});var tn=S((wH,al)=>{l();c();d();var XE=Ws(),QE=Xs(),ZE=Zs(),eA=tl(),tA=nl();function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var rA=hr(),nA=en(),aA=tn(),oA=200;function uA(e,t){var r=this.__data__;if(r instanceof rA){var n=r.__data__;if(!nA||n.length{l();c();d();var iA=hr(),sA=Xi(),lA=Zi(),cA=ts(),dA=ns(),pA=ul();function Nt(e){var t=this.__data__=new iA(e);this.size=t.size}Nt.prototype.clear=sA;Nt.prototype.delete=lA;Nt.prototype.get=cA;Nt.prototype.has=dA;Nt.prototype.set=pA;il.exports=Nt});var ll=S((MH,sl)=>{l();c();d();var fA="__lodash_hash_undefined__";function hA(e){return this.__data__.set(e,fA),this}sl.exports=hA});var dl=S((HH,cl)=>{l();c();d();function mA(e){return this.__data__.has(e)}cl.exports=mA});var Ma=S((VH,pl)=>{l();c();d();var yA=tn(),gA=ll(),bA=dl();function nn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yA;++t{l();c();d();function EA(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();function AA(e,t){return e.has(t)}ml.exports=AA});var $a=S((oz,yl)=>{l();c();d();var vA=Ma(),DA=hl(),CA=ja(),xA=1,SA=2;function FA(e,t,r,n,a,o){var u=r&xA,i=e.length,s=t.length;if(i!=s&&!(u&&s>i))return!1;var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var E=-1,y=!0,m=r&SA?new vA:void 0;for(o.set(e,t),o.set(t,e);++E{l();c();d();var wA=Ne(),BA=wA.Uint8Array;gl.exports=BA});var El=S((fz,bl)=>{l();c();d();function TA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}bl.exports=TA});var an=S((gz,Al)=>{l();c();d();function IA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}Al.exports=IA});var Sl=S((vz,xl)=>{l();c();d();var vl=gt(),Dl=Ua(),_A=Zr(),OA=$a(),RA=El(),PA=an(),kA=1,NA=2,LA="[object Boolean]",qA="[object Date]",MA="[object Error]",jA="[object Map]",$A="[object Number]",UA="[object RegExp]",HA="[object Set]",zA="[object String]",GA="[object Symbol]",WA="[object ArrayBuffer]",VA="[object DataView]",Cl=vl?vl.prototype:void 0,Ha=Cl?Cl.valueOf:void 0;function KA(e,t,r,n,a,o,u){switch(r){case VA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case WA:return!(e.byteLength!=t.byteLength||!o(new Dl(e),new Dl(t)));case LA:case qA:case $A:return _A(+e,+t);case MA:return e.name==t.name&&e.message==t.message;case UA:case zA:return e==t+"";case jA:var i=RA;case HA:var s=n&kA;if(i||(i=PA),e.size!=t.size&&!s)return!1;var h=u.get(e);if(h)return h==t;n|=NA,u.set(e,t);var g=OA(i(e),i(t),n,a,o,u);return u.delete(e),g;case GA:if(Ha)return Ha.call(e)==Ha.call(t)}return!1}xl.exports=KA});var on=S((Sz,Fl)=>{l();c();d();function YA(e,t){for(var r=-1,n=t.length,a=e.length;++r{l();c();d();var JA=Array.isArray;wl.exports=JA});var za=S((Rz,Bl)=>{l();c();d();var XA=on(),QA=Ue();function ZA(e,t,r){var n=t(e);return QA(e)?n:XA(n,r(e))}Bl.exports=ZA});var Il=S((Lz,Tl)=>{l();c();d();function ev(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r{l();c();d();function tv(){return[]}_l.exports=tv});var un=S((Gz,Rl)=>{l();c();d();var rv=Il(),nv=Ga(),av=Object.prototype,ov=av.propertyIsEnumerable,Ol=Object.getOwnPropertySymbols,uv=Ol?function(e){return e==null?[]:(e=Object(e),rv(Ol(e),function(t){return ov.call(e,t)}))}:nv;Rl.exports=uv});var kl=S((Yz,Pl)=>{l();c();d();function iv(e,t){for(var r=-1,n=Array(e);++r{l();c();d();function sv(e){return e!=null&&typeof e=="object"}Nl.exports=sv});var ql=S((nG,Ll)=>{l();c();d();var lv=bt(),cv=Xe(),dv="[object Arguments]";function pv(e){return cv(e)&&lv(e)==dv}Ll.exports=pv});var sn=S((iG,$l)=>{l();c();d();var Ml=ql(),fv=Xe(),jl=Object.prototype,hv=jl.hasOwnProperty,mv=jl.propertyIsEnumerable,yv=Ml(function(){return arguments}())?Ml:function(e){return fv(e)&&hv.call(e,"callee")&&!mv.call(e,"callee")};$l.exports=yv});var Hl=S((dG,Ul)=>{l();c();d();function gv(){return!1}Ul.exports=gv});var ln=S((br,Lt)=>{l();c();d();var bv=Ne(),Ev=Hl(),Wl=typeof br=="object"&&br&&!br.nodeType&&br,zl=Wl&&typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,Av=zl&&zl.exports===Wl,Gl=Av?bv.Buffer:void 0,vv=Gl?Gl.isBuffer:void 0,Dv=vv||Ev;Lt.exports=Dv});var cn=S((bG,Vl)=>{l();c();d();var Cv=9007199254740991,xv=/^(?:0|[1-9]\d*)$/;function Sv(e,t){var r=typeof e;return t=t??Cv,!!t&&(r=="number"||r!="symbol"&&xv.test(e))&&e>-1&&e%1==0&&e{l();c();d();var Fv=9007199254740991;function wv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fv}Kl.exports=wv});var Jl=S((FG,Yl)=>{l();c();d();var Bv=bt(),Tv=dn(),Iv=Xe(),_v="[object Arguments]",Ov="[object Array]",Rv="[object Boolean]",Pv="[object Date]",kv="[object Error]",Nv="[object Function]",Lv="[object Map]",qv="[object Number]",Mv="[object Object]",jv="[object RegExp]",$v="[object Set]",Uv="[object String]",Hv="[object WeakMap]",zv="[object ArrayBuffer]",Gv="[object DataView]",Wv="[object Float32Array]",Vv="[object Float64Array]",Kv="[object Int8Array]",Yv="[object Int16Array]",Jv="[object Int32Array]",Xv="[object Uint8Array]",Qv="[object Uint8ClampedArray]",Zv="[object Uint16Array]",eD="[object Uint32Array]",le={};le[Wv]=le[Vv]=le[Kv]=le[Yv]=le[Jv]=le[Xv]=le[Qv]=le[Zv]=le[eD]=!0;le[_v]=le[Ov]=le[zv]=le[Rv]=le[Gv]=le[Pv]=le[kv]=le[Nv]=le[Lv]=le[qv]=le[Mv]=le[jv]=le[$v]=le[Uv]=le[Hv]=!1;function tD(e){return Iv(e)&&Tv(e.length)&&!!le[Bv(e)]}Yl.exports=tD});var pn=S((IG,Xl)=>{l();c();d();function rD(e){return function(t){return e(t)}}Xl.exports=rD});var fn=S((Er,qt)=>{l();c();d();var nD=ka(),Ql=typeof Er=="object"&&Er&&!Er.nodeType&&Er,Ar=Ql&&typeof qt=="object"&&qt&&!qt.nodeType&&qt,aD=Ar&&Ar.exports===Ql,Wa=aD&&nD.process,oD=function(){try{var e=Ar&&Ar.require&&Ar.require("util").types;return e||Wa&&Wa.binding&&Wa.binding("util")}catch{}}();qt.exports=oD});var Va=S((LG,tc)=>{l();c();d();var uD=Jl(),iD=pn(),Zl=fn(),ec=Zl&&Zl.isTypedArray,sD=ec?iD(ec):uD;tc.exports=sD});var Ka=S(($G,rc)=>{l();c();d();var lD=kl(),cD=sn(),dD=Ue(),pD=ln(),fD=cn(),hD=Va(),mD=Object.prototype,yD=mD.hasOwnProperty;function gD(e,t){var r=dD(e),n=!r&&cD(e),a=!r&&!n&&pD(e),o=!r&&!n&&!a&&hD(e),u=r||n||a||o,i=u?lD(e.length,String):[],s=i.length;for(var h in e)(t||yD.call(e,h))&&!(u&&(h=="length"||a&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||fD(h,s)))&&i.push(h);return i}rc.exports=gD});var hn=S((GG,nc)=>{l();c();d();var bD=Object.prototype;function ED(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||bD;return e===r}nc.exports=ED});var Ya=S((YG,ac)=>{l();c();d();function AD(e,t){return function(r){return e(t(r))}}ac.exports=AD});var uc=S((ZG,oc)=>{l();c();d();var vD=Ya(),DD=vD(Object.keys,Object);oc.exports=DD});var sc=S((nW,ic)=>{l();c();d();var CD=hn(),xD=uc(),SD=Object.prototype,FD=SD.hasOwnProperty;function wD(e){if(!CD(e))return xD(e);var t=[];for(var r in Object(e))FD.call(e,r)&&r!="constructor"&&t.push(r);return t}ic.exports=wD});var Ja=S((iW,lc)=>{l();c();d();var BD=Na(),TD=dn();function ID(e){return e!=null&&TD(e.length)&&!BD(e)}lc.exports=ID});var Mt=S((dW,cc)=>{l();c();d();var _D=Ka(),OD=sc(),RD=Ja();function PD(e){return RD(e)?_D(e):OD(e)}cc.exports=PD});var Xa=S((mW,dc)=>{l();c();d();var kD=za(),ND=un(),LD=Mt();function qD(e){return kD(e,LD,ND)}dc.exports=qD});var hc=S((EW,fc)=>{l();c();d();var pc=Xa(),MD=1,jD=Object.prototype,$D=jD.hasOwnProperty;function UD(e,t,r,n,a,o){var u=r&MD,i=pc(e),s=i.length,h=pc(t),g=h.length;if(s!=g&&!u)return!1;for(var E=s;E--;){var y=i[E];if(!(u?y in t:$D.call(t,y)))return!1}var m=o.get(e),A=o.get(t);if(m&&A)return m==t&&A==e;var b=!0;o.set(e,t),o.set(t,e);for(var x=u;++E{l();c();d();var HD=it(),zD=Ne(),GD=HD(zD,"DataView");mc.exports=GD});var bc=S((wW,gc)=>{l();c();d();var WD=it(),VD=Ne(),KD=WD(VD,"Promise");gc.exports=KD});var Qa=S((_W,Ec)=>{l();c();d();var YD=it(),JD=Ne(),XD=YD(JD,"Set");Ec.exports=XD});var vc=S((kW,Ac)=>{l();c();d();var QD=it(),ZD=Ne(),eC=QD(ZD,"WeakMap");Ac.exports=eC});var vr=S((MW,Bc)=>{l();c();d();var Za=yc(),eo=en(),to=bc(),ro=Qa(),no=vc(),wc=bt(),jt=qa(),Dc="[object Map]",tC="[object Object]",Cc="[object Promise]",xc="[object Set]",Sc="[object WeakMap]",Fc="[object DataView]",rC=jt(Za),nC=jt(eo),aC=jt(to),oC=jt(ro),uC=jt(no),Et=wc;(Za&&Et(new Za(new ArrayBuffer(1)))!=Fc||eo&&Et(new eo)!=Dc||to&&Et(to.resolve())!=Cc||ro&&Et(new ro)!=xc||no&&Et(new no)!=Sc)&&(Et=function(e){var t=wc(e),r=t==tC?e.constructor:void 0,n=r?jt(r):"";if(n)switch(n){case rC:return Fc;case nC:return Dc;case aC:return Cc;case oC:return xc;case uC:return Sc}return t});Bc.exports=Et});var Nc=S((HW,kc)=>{l();c();d();var ao=rn(),iC=$a(),sC=Sl(),lC=hc(),Tc=vr(),Ic=Ue(),_c=ln(),cC=Va(),dC=1,Oc="[object Arguments]",Rc="[object Array]",mn="[object Object]",pC=Object.prototype,Pc=pC.hasOwnProperty;function fC(e,t,r,n,a,o){var u=Ic(e),i=Ic(t),s=u?Rc:Tc(e),h=i?Rc:Tc(t);s=s==Oc?mn:s,h=h==Oc?mn:h;var g=s==mn,E=h==mn,y=s==h;if(y&&_c(e)){if(!_c(t))return!1;u=!0,g=!1}if(y&&!g)return o||(o=new ao),u||cC(e)?iC(e,t,r,n,a,o):sC(e,t,s,r,n,a,o);if(!(r&dC)){var m=g&&Pc.call(e,"__wrapped__"),A=E&&Pc.call(t,"__wrapped__");if(m||A){var b=m?e.value():e,x=A?t.value():t;return o||(o=new ao),a(b,x,r,n,o)}}return y?(o||(o=new ao),lC(e,t,r,n,a,o)):!1}kc.exports=fC});var oo=S((VW,Mc)=>{l();c();d();var hC=Nc(),Lc=Xe();function qc(e,t,r,n,a){return e===t?!0:e==null||t==null||!Lc(e)&&!Lc(t)?e!==e&&t!==t:hC(e,t,r,n,qc,a)}Mc.exports=qc});var $c=S((XW,jc)=>{l();c();d();var mC=rn(),yC=oo(),gC=1,bC=2;function EC(e,t,r,n){var a=r.length,o=a,u=!n;if(e==null)return!o;for(e=Object(e);a--;){var i=r[a];if(u&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a{l();c();d();var AC=$e();function vC(e){return e===e&&!AC(e)}Uc.exports=vC});var zc=S((oV,Hc)=>{l();c();d();var DC=uo(),CC=Mt();function xC(e){for(var t=CC(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,DC(a)]}return t}Hc.exports=xC});var io=S((lV,Gc)=>{l();c();d();function SC(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Gc.exports=SC});var Vc=S((fV,Wc)=>{l();c();d();var FC=$c(),wC=zc(),BC=io();function TC(e){var t=wC(e);return t.length==1&&t[0][2]?BC(t[0][0],t[0][1]):function(r){return r===e||FC(r,e,t)}}Wc.exports=TC});var Dr=S((gV,Kc)=>{l();c();d();var IC=bt(),_C=Xe(),OC="[object Symbol]";function RC(e){return typeof e=="symbol"||_C(e)&&IC(e)==OC}Kc.exports=RC});var yn=S((vV,Yc)=>{l();c();d();var PC=Ue(),kC=Dr(),NC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LC=/^\w*$/;function qC(e,t){if(PC(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||kC(e)?!0:LC.test(e)||!NC.test(e)||t!=null&&e in Object(t)}Yc.exports=qC});var Qc=S((SV,Xc)=>{l();c();d();var Jc=tn(),MC="Expected a function";function so(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(MC);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var u=e.apply(this,n);return r.cache=o.set(a,u)||o,u};return r.cache=new(so.Cache||Jc),r}so.Cache=Jc;Xc.exports=so});var ed=S((TV,Zc)=>{l();c();d();var jC=Qc(),$C=500;function UC(e){var t=jC(e,function(n){return r.size===$C&&r.clear(),n}),r=t.cache;return t}Zc.exports=UC});var rd=S((RV,td)=>{l();c();d();var HC=ed(),zC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GC=/\\(\\)?/g,WC=HC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zC,function(r,n,a,o){t.push(a?o.replace(GC,"$1"):n||r)}),t});td.exports=WC});var sd=S((LV,id)=>{l();c();d();var nd=gt(),VC=Pa(),KC=Ue(),YC=Dr(),JC=1/0,ad=nd?nd.prototype:void 0,od=ad?ad.toString:void 0;function ud(e){if(typeof e=="string")return e;if(KC(e))return VC(e,ud)+"";if(YC(e))return od?od.call(e):"";var t=e+"";return t=="0"&&1/e==-JC?"-0":t}id.exports=ud});var cd=S(($V,ld)=>{l();c();d();var XC=sd();function QC(e){return e==null?"":XC(e)}ld.exports=QC});var Cr=S((GV,dd)=>{l();c();d();var ZC=Ue(),ex=yn(),tx=rd(),rx=cd();function nx(e,t){return ZC(e)?e:ex(e,t)?[e]:tx(rx(e))}dd.exports=nx});var $t=S((YV,pd)=>{l();c();d();var ax=Dr(),ox=1/0;function ux(e){if(typeof e=="string"||ax(e))return e;var t=e+"";return t=="0"&&1/e==-ox?"-0":t}pd.exports=ux});var gn=S((ZV,fd)=>{l();c();d();var ix=Cr(),sx=$t();function lx(e,t){t=ix(t,e);for(var r=0,n=t.length;e!=null&&r{l();c();d();var cx=gn();function dx(e,t,r){var n=e==null?void 0:cx(e,t);return n===void 0?r:n}hd.exports=dx});var gd=S((iK,yd)=>{l();c();d();function px(e,t){return e!=null&&t in Object(e)}yd.exports=px});var Ed=S((dK,bd)=>{l();c();d();var fx=Cr(),hx=sn(),mx=Ue(),yx=cn(),gx=dn(),bx=$t();function Ex(e,t,r){t=fx(t,e);for(var n=-1,a=t.length,o=!1;++n{l();c();d();var Ax=gd(),vx=Ed();function Dx(e,t){return e!=null&&vx(e,t,Ax)}Ad.exports=Dx});var Dd=S((EK,vd)=>{l();c();d();var Cx=oo(),xx=md(),Sx=lo(),Fx=yn(),wx=uo(),Bx=io(),Tx=$t(),Ix=1,_x=2;function Ox(e,t){return Fx(e)&&wx(t)?Bx(Tx(e),t):function(r){var n=xx(r,e);return n===void 0&&n===t?Sx(r,e):Cx(t,n,Ix|_x)}}vd.exports=Ox});var co=S((CK,Cd)=>{l();c();d();function Rx(e){return e}Cd.exports=Rx});var Sd=S((wK,xd)=>{l();c();d();function Px(e){return function(t){return t?.[e]}}xd.exports=Px});var wd=S((_K,Fd)=>{l();c();d();var kx=gn();function Nx(e){return function(t){return kx(t,e)}}Fd.exports=Nx});var Td=S((kK,Bd)=>{l();c();d();var Lx=Sd(),qx=wd(),Mx=yn(),jx=$t();function $x(e){return Mx(e)?Lx(jx(e)):qx(e)}Bd.exports=$x});var po=S((MK,Id)=>{l();c();d();var Ux=Vc(),Hx=Dd(),zx=co(),Gx=Ue(),Wx=Td();function Vx(e){return typeof e=="function"?e:e==null?zx:typeof e=="object"?Gx(e)?Hx(e[0],e[1]):Ux(e):Wx(e)}Id.exports=Vx});var fo=S((HK,_d)=>{l();c();d();var Kx=it(),Yx=function(){try{var e=Kx(Object,"defineProperty");return e({},"",{}),e}catch{}}();_d.exports=Yx});var bn=S((VK,Rd)=>{l();c();d();var Od=fo();function Jx(e,t,r){t=="__proto__"&&Od?Od(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Rd.exports=Jx});var En=S((XK,Pd)=>{l();c();d();var Xx=bn(),Qx=Zr(),Zx=Object.prototype,eS=Zx.hasOwnProperty;function tS(e,t,r){var n=e[t];(!(eS.call(e,t)&&Qx(n,r))||r===void 0&&!(t in e))&&Xx(e,t,r)}Pd.exports=tS});var Ld=S((tY,Nd)=>{l();c();d();var rS=En(),nS=Cr(),aS=cn(),kd=$e(),oS=$t();function uS(e,t,r,n){if(!kd(e))return e;t=nS(t,e);for(var a=-1,o=t.length,u=o-1,i=e;i!=null&&++a{l();c();d();var iS=gn(),sS=Ld(),lS=Cr();function cS(e,t,r){for(var n=-1,a=t.length,o={};++n{l();c();d();var dS=Ya(),pS=dS(Object.getPrototypeOf,Object);Md.exports=pS});var mo=S((fY,jd)=>{l();c();d();var fS=on(),hS=An(),mS=un(),yS=Ga(),gS=Object.getOwnPropertySymbols,bS=gS?function(e){for(var t=[];e;)fS(t,mS(e)),e=hS(e);return t}:yS;jd.exports=bS});var Ud=S((gY,$d)=>{l();c();d();function ES(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}$d.exports=ES});var zd=S((vY,Hd)=>{l();c();d();var AS=$e(),vS=hn(),DS=Ud(),CS=Object.prototype,xS=CS.hasOwnProperty;function SS(e){if(!AS(e))return DS(e);var t=vS(e),r=[];for(var n in e)n=="constructor"&&(t||!xS.call(e,n))||r.push(n);return r}Hd.exports=SS});var vn=S((SY,Gd)=>{l();c();d();var FS=Ka(),wS=zd(),BS=Ja();function TS(e){return BS(e)?FS(e,!0):wS(e)}Gd.exports=TS});var yo=S((TY,Wd)=>{l();c();d();var IS=za(),_S=mo(),OS=vn();function RS(e){return IS(e,OS,_S)}Wd.exports=RS});var go=S((RY,Vd)=>{l();c();d();var PS=Pa(),kS=po(),NS=ho(),LS=yo();function qS(e,t){if(e==null)return{};var r=PS(LS(e),function(n){return[n]});return t=kS(t),NS(e,r,function(n,a){return t(n,a[0])})}Vd.exports=qS});var Cn=S((Sp,Bo)=>{l();c();d();(function(e){if(typeof Sp=="object"&&typeof Bo<"u")Bo.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(a,o,u){function i(g,E){if(!o[g]){if(!a[g]){var y=typeof ir=="function"&&ir;if(!E&&y)return y(g,!0);if(s)return s(g,!0);var m=new Error("Cannot find module '"+g+"'");throw m.code="MODULE_NOT_FOUND",m}var A=o[g]={exports:{}};a[g][0].call(A.exports,function(b){var x=a[g][1][b];return i(x||b)},A,A.exports,n,a,o,u)}return o[g].exports}for(var s=typeof ir=="function"&&ir,h=0;h=0)return this.lastItem=this.list[s],this.list[s].val},u.prototype.set=function(i,s){var h;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(h=this.indexOf(i),h>=0?(this.lastItem=this.list[h],this.list[h].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},u.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},u.prototype.forEach=function(i,s){var h;for(h=0;h0&&(R[O]={cacheItem:b,arg:arguments[O]},M?i(y,R):y.push(R),y.length>g&&s(y.shift())),A.wasMemoized=M,A.numArgs=O+1,T};return A.limit=g,A.wasMemoized=!1,A.cache=E,A.lru=y,A}};function i(g,E){var y=g.length,m=E.length,A,b,x;for(b=0;b=0&&(y=g[A],m=y.cacheItem.get(y.arg),!m||!m.size);A--)y.cacheItem.delete(y.arg)}function h(g,E){return g===E||g!==g&&E!==E}},{"map-or-similar":1}]},{},[3])(3)})});var wp=S((tJ,Fp)=>{l();c();d();function QF(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o{l();c();d();function ZF(e){return e!==e}Bp.exports=ZF});var _p=S((lJ,Ip)=>{l();c();d();function ew(e,t,r){for(var n=r-1,a=e.length;++n{l();c();d();var tw=wp(),rw=Tp(),nw=_p();function aw(e,t,r){return t===t?nw(e,t,r):tw(e,rw,r)}Op.exports=aw});var kp=S((gJ,Pp)=>{l();c();d();var ow=Rp();function uw(e,t){var r=e==null?0:e.length;return!!r&&ow(e,t,0)>-1}Pp.exports=uw});var Lp=S((vJ,Np)=>{l();c();d();function iw(e,t,r){for(var n=-1,a=e==null?0:e.length;++n{l();c();d();function sw(){}qp.exports=sw});var $p=S((TJ,jp)=>{l();c();d();var To=Qa(),lw=Mp(),cw=an(),dw=1/0,pw=To&&1/cw(new To([,-0]))[1]==dw?function(e){return new To(e)}:lw;jp.exports=pw});var Hp=S((RJ,Up)=>{l();c();d();var fw=Ma(),hw=kp(),mw=Lp(),yw=ja(),gw=$p(),bw=an(),Ew=200;function Aw(e,t,r){var n=-1,a=hw,o=e.length,u=!0,i=[],s=i;if(r)u=!1,a=mw;else if(o>=Ew){var h=t?null:gw(e);if(h)return bw(h);u=!1,a=yw,s=new fw}else s=t?[]:i;e:for(;++n{l();c();d();var vw=Hp();function Dw(e){return e&&e.length?vw(e):[]}zp.exports=Dw});var Vp=S(($J,Wp)=>{l();c();d();function Cw(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();var xw=En(),Sw=bn();function Fw(e,t,r,n){var a=!r;r||(r={});for(var o=-1,u=t.length;++o{l();c();d();var ww=Sr(),Bw=Mt();function Tw(e,t){return e&&ww(t,Bw(t),e)}Yp.exports=Tw});var Qp=S((ZJ,Xp)=>{l();c();d();var Iw=Sr(),_w=vn();function Ow(e,t){return e&&Iw(t,_w(t),e)}Xp.exports=Ow});var nf=S((Fr,Ht)=>{l();c();d();var Rw=Ne(),rf=typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,Zp=rf&&typeof Ht=="object"&&Ht&&!Ht.nodeType&&Ht,Pw=Zp&&Zp.exports===rf,ef=Pw?Rw.Buffer:void 0,tf=ef?ef.allocUnsafe:void 0;function kw(e,t){if(t)return e.slice();var r=e.length,n=tf?tf(r):new e.constructor(r);return e.copy(n),n}Ht.exports=kw});var of=S((uX,af)=>{l();c();d();function Nw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{l();c();d();var Lw=Sr(),qw=un();function Mw(e,t){return Lw(e,qw(e),t)}uf.exports=Mw});var cf=S((hX,lf)=>{l();c();d();var jw=Sr(),$w=mo();function Uw(e,t){return jw(e,$w(e),t)}lf.exports=Uw});var pf=S((bX,df)=>{l();c();d();var Hw=Object.prototype,zw=Hw.hasOwnProperty;function Gw(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&zw.call(e,"index")&&(r.index=e.index,r.input=e.input),r}df.exports=Gw});var xn=S((DX,hf)=>{l();c();d();var ff=Ua();function Ww(e){var t=new e.constructor(e.byteLength);return new ff(t).set(new ff(e)),t}hf.exports=Ww});var yf=S((FX,mf)=>{l();c();d();var Vw=xn();function Kw(e,t){var r=t?Vw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}mf.exports=Kw});var bf=S((IX,gf)=>{l();c();d();var Yw=/\w*$/;function Jw(e){var t=new e.constructor(e.source,Yw.exec(e));return t.lastIndex=e.lastIndex,t}gf.exports=Jw});var Cf=S((PX,Df)=>{l();c();d();var Ef=gt(),Af=Ef?Ef.prototype:void 0,vf=Af?Af.valueOf:void 0;function Xw(e){return vf?Object(vf.call(e)):{}}Df.exports=Xw});var Sf=S((qX,xf)=>{l();c();d();var Qw=xn();function Zw(e,t){var r=t?Qw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}xf.exports=Zw});var wf=S((UX,Ff)=>{l();c();d();var e5=xn(),t5=yf(),r5=bf(),n5=Cf(),a5=Sf(),o5="[object Boolean]",u5="[object Date]",i5="[object Map]",s5="[object Number]",l5="[object RegExp]",c5="[object Set]",d5="[object String]",p5="[object Symbol]",f5="[object ArrayBuffer]",h5="[object DataView]",m5="[object Float32Array]",y5="[object Float64Array]",g5="[object Int8Array]",b5="[object Int16Array]",E5="[object Int32Array]",A5="[object Uint8Array]",v5="[object Uint8ClampedArray]",D5="[object Uint16Array]",C5="[object Uint32Array]";function x5(e,t,r){var n=e.constructor;switch(t){case f5:return e5(e);case o5:case u5:return new n(+e);case h5:return t5(e,r);case m5:case y5:case g5:case b5:case E5:case A5:case v5:case D5:case C5:return a5(e,r);case i5:return new n;case s5:case d5:return new n(e);case l5:return r5(e);case c5:return new n;case p5:return n5(e)}}Ff.exports=x5});var If=S((WX,Tf)=>{l();c();d();var S5=$e(),Bf=Object.create,F5=function(){function e(){}return function(t){if(!S5(t))return{};if(Bf)return Bf(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();Tf.exports=F5});var Of=S((JX,_f)=>{l();c();d();var w5=If(),B5=An(),T5=hn();function I5(e){return typeof e.constructor=="function"&&!T5(e)?w5(B5(e)):{}}_f.exports=I5});var Pf=S((eQ,Rf)=>{l();c();d();var _5=vr(),O5=Xe(),R5="[object Map]";function P5(e){return O5(e)&&_5(e)==R5}Rf.exports=P5});var qf=S((aQ,Lf)=>{l();c();d();var k5=Pf(),N5=pn(),kf=fn(),Nf=kf&&kf.isMap,L5=Nf?N5(Nf):k5;Lf.exports=L5});var jf=S((sQ,Mf)=>{l();c();d();var q5=vr(),M5=Xe(),j5="[object Set]";function $5(e){return M5(e)&&q5(e)==j5}Mf.exports=$5});var zf=S((pQ,Hf)=>{l();c();d();var U5=jf(),H5=pn(),$f=fn(),Uf=$f&&$f.isSet,z5=Uf?H5(Uf):U5;Hf.exports=z5});var Yf=S((yQ,Kf)=>{l();c();d();var G5=rn(),W5=Vp(),V5=En(),K5=Jp(),Y5=Qp(),J5=nf(),X5=of(),Q5=sf(),Z5=cf(),e3=Xa(),t3=yo(),r3=vr(),n3=pf(),a3=wf(),o3=Of(),u3=Ue(),i3=ln(),s3=qf(),l3=$e(),c3=zf(),d3=Mt(),p3=vn(),f3=1,h3=2,m3=4,Gf="[object Arguments]",y3="[object Array]",g3="[object Boolean]",b3="[object Date]",E3="[object Error]",Wf="[object Function]",A3="[object GeneratorFunction]",v3="[object Map]",D3="[object Number]",Vf="[object Object]",C3="[object RegExp]",x3="[object Set]",S3="[object String]",F3="[object Symbol]",w3="[object WeakMap]",B3="[object ArrayBuffer]",T3="[object DataView]",I3="[object Float32Array]",_3="[object Float64Array]",O3="[object Int8Array]",R3="[object Int16Array]",P3="[object Int32Array]",k3="[object Uint8Array]",N3="[object Uint8ClampedArray]",L3="[object Uint16Array]",q3="[object Uint32Array]",ie={};ie[Gf]=ie[y3]=ie[B3]=ie[T3]=ie[g3]=ie[b3]=ie[I3]=ie[_3]=ie[O3]=ie[R3]=ie[P3]=ie[v3]=ie[D3]=ie[Vf]=ie[C3]=ie[x3]=ie[S3]=ie[F3]=ie[k3]=ie[N3]=ie[L3]=ie[q3]=!0;ie[E3]=ie[Wf]=ie[w3]=!1;function Sn(e,t,r,n,a,o){var u,i=t&f3,s=t&h3,h=t&m3;if(r&&(u=a?r(e,n,a,o):r(e)),u!==void 0)return u;if(!l3(e))return e;var g=u3(e);if(g){if(u=n3(e),!i)return X5(e,u)}else{var E=r3(e),y=E==Wf||E==A3;if(i3(e))return J5(e,i);if(E==Vf||E==Gf||y&&!a){if(u=s||y?{}:o3(e),!i)return s?Z5(e,Y5(u,e)):Q5(e,K5(u,e))}else{if(!ie[E])return a?e:{};u=a3(e,E,i)}}o||(o=new G5);var m=o.get(e);if(m)return m;o.set(e,u),c3(e)?e.forEach(function(x){u.add(Sn(x,t,r,x,e,o))}):s3(e)&&e.forEach(function(x,T){u.set(T,Sn(x,t,r,T,e,o))});var A=h?s?t3:e3:s?p3:d3,b=g?void 0:A(e);return W5(b||e,function(x,T){b&&(T=x,x=e[T]),V5(u,T,Sn(x,t,r,T,e,o))}),u}Kf.exports=Sn});var Xf=S((AQ,Jf)=>{l();c();d();var M3=Yf(),j3=1,$3=4;function U3(e){return M3(e,j3|$3)}Jf.exports=U3});var Zf=S((OQ,Qf)=>{l();c();d();function H3(e){return function(t,r,n){for(var a=-1,o=Object(t),u=n(t),i=u.length;i--;){var s=u[e?i:++a];if(r(o[s],s,o)===!1)break}return t}}Qf.exports=H3});var t0=S((NQ,e0)=>{l();c();d();var z3=Zf(),G3=z3();e0.exports=G3});var n0=S((jQ,r0)=>{l();c();d();var W3=t0(),V3=Mt();function K3(e,t){return e&&W3(e,t,V3)}r0.exports=K3});var _o=S((zQ,a0)=>{l();c();d();var Y3=bn(),J3=n0(),X3=po();function Q3(e,t){var r={};return t=X3(t,3),J3(e,function(n,a,o){Y3(r,a,t(n,a,o))}),r}a0.exports=Q3});var u0=S((KQ,o0)=>{l();c();d();var Z3=ho(),eB=lo();function tB(e,t){return Z3(e,t,function(r,n){return eB(e,n)})}o0.exports=tB});var c0=S((QQ,l0)=>{l();c();d();var i0=gt(),rB=sn(),nB=Ue(),s0=i0?i0.isConcatSpreadable:void 0;function aB(e){return nB(e)||rB(e)||!!(s0&&e&&e[s0])}l0.exports=aB});var f0=S((rZ,p0)=>{l();c();d();var oB=on(),uB=c0();function d0(e,t,r,n,a){var o=-1,u=e.length;for(r||(r=uB),a||(a=[]);++o0&&r(i)?t>1?d0(i,t-1,r,n,a):oB(a,i):n||(a[a.length]=i)}return a}p0.exports=d0});var m0=S((uZ,h0)=>{l();c();d();var iB=f0();function sB(e){var t=e==null?0:e.length;return t?iB(e,1):[]}h0.exports=sB});var g0=S((cZ,y0)=>{l();c();d();function lB(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}y0.exports=lB});var A0=S((hZ,E0)=>{l();c();d();var cB=g0(),b0=Math.max;function dB(e,t,r){return t=b0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=b0(n.length-t,0),u=Array(o);++a{l();c();d();function pB(e){return function(){return e}}v0.exports=pB});var S0=S((DZ,x0)=>{l();c();d();var fB=D0(),C0=fo(),hB=co(),mB=C0?function(e,t){return C0(e,"toString",{configurable:!0,enumerable:!1,value:fB(t),writable:!0})}:hB;x0.exports=mB});var w0=S((FZ,F0)=>{l();c();d();var yB=800,gB=16,bB=Date.now;function EB(e){var t=0,r=0;return function(){var n=bB(),a=gB-(n-r);if(r=n,a>0){if(++t>=yB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}F0.exports=EB});var T0=S((IZ,B0)=>{l();c();d();var AB=S0(),vB=w0(),DB=vB(AB);B0.exports=DB});var _0=S((PZ,I0)=>{l();c();d();var CB=m0(),xB=A0(),SB=T0();function FB(e){return SB(xB(e,void 0,CB),e+"")}I0.exports=FB});var R0=S((qZ,O0)=>{l();c();d();var wB=u0(),BB=_0(),TB=BB(function(e,t){return e==null?{}:wB(e,t)});O0.exports=TB});var L0=S((see,N0)=>{l();c();d();var _B=bt(),OB=An(),RB=Xe(),PB="[object Object]",kB=Function.prototype,NB=Object.prototype,k0=kB.toString,LB=NB.hasOwnProperty,qB=k0.call(Object);function MB(e){if(!RB(e)||_B(e)!=PB)return!1;var t=OB(e);if(t===null)return!0;var r=LB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&k0.call(r)==qB}N0.exports=MB});var M0=S((pee,q0)=>{l();c();d();q0.exports=jB;function jB(e,t){if(Ro("noDeprecation"))return e;var r=!1;function n(){if(!r){if(Ro("throwDeprecation"))throw new Error(t);Ro("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function Ro(e){try{if(!window.localStorage)return!1}catch{return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var $0=S((Aee,j0)=>{"use strict";l();c();d();j0.exports=Error});var H0=S((xee,U0)=>{"use strict";l();c();d();U0.exports=EvalError});var G0=S((Bee,z0)=>{"use strict";l();c();d();z0.exports=RangeError});var V0=S((Oee,W0)=>{"use strict";l();c();d();W0.exports=ReferenceError});var Po=S((Nee,K0)=>{"use strict";l();c();d();K0.exports=SyntaxError});var zt=S((jee,Y0)=>{"use strict";l();c();d();Y0.exports=TypeError});var X0=S((zee,J0)=>{"use strict";l();c();d();J0.exports=URIError});var Z0=S((Kee,Q0)=>{"use strict";l();c();d();Q0.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==a||u.enumerable!==!0)return!1}return!0}});var rh=S((Qee,th)=>{"use strict";l();c();d();var eh=typeof Symbol<"u"&&Symbol,$B=Z0();th.exports=function(){return typeof eh!="function"||typeof Symbol!="function"||typeof eh("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$B()}});var ah=S((rte,nh)=>{"use strict";l();c();d();var ko={__proto__:null,foo:{}},UB=Object;nh.exports=function(){return{__proto__:ko}.foo===ko.foo&&!(ko instanceof UB)}});var ih=S((ute,uh)=>{"use strict";l();c();d();var HB="Function.prototype.bind called on incompatible ",zB=Object.prototype.toString,GB=Math.max,WB="[object Function]",oh=function(t,r){for(var n=[],a=0;a{"use strict";l();c();d();var YB=ih();sh.exports=Function.prototype.bind||YB});var ch=S((hte,lh)=>{"use strict";l();c();d();var JB=Function.prototype.call,XB=Object.prototype.hasOwnProperty,QB=Fn();lh.exports=QB.call(JB,XB)});var xt=S((bte,mh)=>{"use strict";l();c();d();var Q,ZB=$0(),eT=H0(),tT=G0(),rT=V0(),Kt=Po(),Vt=zt(),nT=X0(),hh=Function,No=function(e){try{return hh('"use strict"; return ('+e+").constructor;")()}catch{}},Dt=Object.getOwnPropertyDescriptor;if(Dt)try{Dt({},"")}catch{Dt=null}var Lo=function(){throw new Vt},aT=Dt?function(){try{return arguments.callee,Lo}catch{try{return Dt(arguments,"callee").get}catch{return Lo}}}():Lo,Gt=rh()(),oT=ah()(),Ae=Object.getPrototypeOf||(oT?function(e){return e.__proto__}:null),Wt={},uT=typeof Uint8Array>"u"||!Ae?Q:Ae(Uint8Array),Ct={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":Gt&&Ae?Ae([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":Wt,"%AsyncGenerator%":Wt,"%AsyncGeneratorFunction%":Wt,"%AsyncIteratorPrototype%":Wt,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ZB,"%eval%":eval,"%EvalError%":eT,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":hh,"%GeneratorFunction%":Wt,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gt&&Ae?Ae(Ae([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gt||!Ae?Q:Ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":tT,"%ReferenceError%":rT,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gt||!Ae?Q:Ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gt&&Ae?Ae(""[Symbol.iterator]()):Q,"%Symbol%":Gt?Symbol:Q,"%SyntaxError%":Kt,"%ThrowTypeError%":aT,"%TypedArray%":uT,"%TypeError%":Vt,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":nT,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Ae)try{null.error}catch(e){dh=Ae(Ae(e)),Ct["%Error.prototype%"]=dh}var dh,iT=function e(t){var r;if(t==="%AsyncFunction%")r=No("async function () {}");else if(t==="%GeneratorFunction%")r=No("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=No("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ae&&(r=Ae(a.prototype))}return Ct[t]=r,r},ph={__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"]},wr=Fn(),wn=ch(),sT=wr.call(Function.call,Array.prototype.concat),lT=wr.call(Function.apply,Array.prototype.splice),fh=wr.call(Function.call,String.prototype.replace),Bn=wr.call(Function.call,String.prototype.slice),cT=wr.call(Function.call,RegExp.prototype.exec),dT=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pT=/\\(\\)?/g,fT=function(t){var r=Bn(t,0,1),n=Bn(t,-1);if(r==="%"&&n!=="%")throw new Kt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Kt("invalid intrinsic syntax, expected opening `%`");var a=[];return fh(t,dT,function(o,u,i,s){a[a.length]=i?fh(s,pT,"$1"):u||o}),a},hT=function(t,r){var n=t,a;if(wn(ph,n)&&(a=ph[n],n="%"+a[0]+"%"),wn(Ct,n)){var o=Ct[n];if(o===Wt&&(o=iT(n)),typeof o>"u"&&!r)throw new Vt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Kt("intrinsic "+t+" does not exist!")};mh.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Vt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Vt('"allowMissing" argument must be a boolean');if(cT(/^%?[^%]*%?$/,t)===null)throw new Kt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fT(t),a=n.length>0?n[0]:"",o=hT("%"+a+"%",r),u=o.name,i=o.value,s=!1,h=o.alias;h&&(a=h[0],lT(n,sT([0,1],h)));for(var g=1,E=!0;g=n.length){var b=Dt(i,y);E=!!b,E&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[y]}else E=wn(i,y),i=i[y];E&&!s&&(Ct[u]=i)}}return i}});var In=S((Dte,yh)=>{"use strict";l();c();d();var mT=xt(),Tn=mT("%Object.defineProperty%",!0)||!1;if(Tn)try{Tn({},"a",{value:1})}catch{Tn=!1}yh.exports=Tn});var qo=S((Fte,gh)=>{"use strict";l();c();d();var yT=xt(),_n=yT("%Object.getOwnPropertyDescriptor%",!0);if(_n)try{_n([],"length")}catch{_n=null}gh.exports=_n});var vh=S((Ite,Ah)=>{"use strict";l();c();d();var bh=In(),gT=Po(),Yt=zt(),Eh=qo();Ah.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Yt("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Yt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Yt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Yt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Yt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Yt("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,s=!!Eh&&Eh(t,r);if(bh)bh(t,r,{configurable:u===null&&s?s.configurable:!u,enumerable:a===null&&s?s.enumerable:!a,value:n,writable:o===null&&s?s.writable:!o});else if(i||!a&&!o&&!u)t[r]=n;else throw new gT("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var xh=S((Pte,Ch)=>{"use strict";l();c();d();var Mo=In(),Dh=function(){return!!Mo};Dh.hasArrayLengthDefineBug=function(){if(!Mo)return null;try{return Mo([],"length",{value:1}).length!==1}catch{return!0}};Ch.exports=Dh});var Th=S((qte,Bh)=>{"use strict";l();c();d();var bT=xt(),Sh=vh(),ET=xh()(),Fh=qo(),wh=zt(),AT=bT("%Math.floor%");Bh.exports=function(t,r){if(typeof t!="function")throw new wh("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||AT(r)!==r)throw new wh("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Fh){var u=Fh(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(o=!1)}return(a||o||!n)&&(ET?Sh(t,"length",r,!0,!0):Sh(t,"length",r)),t}});var kh=S((Ute,On)=>{"use strict";l();c();d();var jo=Fn(),Rn=xt(),vT=Th(),DT=zt(),Oh=Rn("%Function.prototype.apply%"),Rh=Rn("%Function.prototype.call%"),Ph=Rn("%Reflect.apply%",!0)||jo.call(Rh,Oh),Ih=In(),CT=Rn("%Math.max%");On.exports=function(t){if(typeof t!="function")throw new DT("a function is required");var r=Ph(jo,Rh,arguments);return vT(r,1+CT(0,t.length-(arguments.length-1)),!0)};var _h=function(){return Ph(jo,Oh,arguments)};Ih?Ih(On.exports,"apply",{value:_h}):On.exports.apply=_h});var Mh=S((Wte,qh)=>{"use strict";l();c();d();var Nh=xt(),Lh=kh(),xT=Lh(Nh("String.prototype.indexOf"));qh.exports=function(t,r){var n=Nh(t,!!r);return typeof n=="function"&&xT(t,".prototype.")>-1?Lh(n):n}});var jh=S(()=>{l();c();d()});var um=S((tre,om)=>{l();c();d();var Jo=typeof Map=="function"&&Map.prototype,$o=Object.getOwnPropertyDescriptor&&Jo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,kn=Jo&&$o&&typeof $o.get=="function"?$o.get:null,$h=Jo&&Map.prototype.forEach,Xo=typeof Set=="function"&&Set.prototype,Uo=Object.getOwnPropertyDescriptor&&Xo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nn=Xo&&Uo&&typeof Uo.get=="function"?Uo.get:null,Uh=Xo&&Set.prototype.forEach,ST=typeof WeakMap=="function"&&WeakMap.prototype,Tr=ST?WeakMap.prototype.has:null,FT=typeof WeakSet=="function"&&WeakSet.prototype,Ir=FT?WeakSet.prototype.has:null,wT=typeof WeakRef=="function"&&WeakRef.prototype,Hh=wT?WeakRef.prototype.deref:null,BT=Boolean.prototype.valueOf,TT=Object.prototype.toString,IT=Function.prototype.toString,_T=String.prototype.match,Qo=String.prototype.slice,dt=String.prototype.replace,OT=String.prototype.toUpperCase,zh=String.prototype.toLowerCase,Zh=RegExp.prototype.test,Gh=Array.prototype.concat,We=Array.prototype.join,RT=Array.prototype.slice,Wh=Math.floor,Go=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ho=Object.getOwnPropertySymbols,Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jt||!0)?Symbol.toStringTag:null,em=Object.prototype.propertyIsEnumerable,Vh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Kh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Zh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Wh(-e):Wh(e);if(n!==e){var a=String(n),o=Qo.call(t,a.length+1);return dt.call(a,r,"$&_")+"."+dt.call(dt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dt.call(t,r,"$&_")}var Vo=jh(),Yh=Vo.custom,Jh=rm(Yh)?Yh:null;om.exports=function e(t,r,n,a){var o=r||{};if(ct(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=ct(o,"customInspect")?o.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return am(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return i?Kh(t,s):s}if(typeof t=="bigint"){var h=String(t)+"n";return i?Kh(t,h):h}var g=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=g&&g>0&&typeof t=="object")return Ko(t)?"[Array]":"[Object]";var E=XT(o,n);if(typeof a>"u")a=[];else if(nm(a,t)>=0)return"[Circular]";function y(J,_,B){if(_&&(a=RT.call(a),a.push(_)),B){var j={depth:o.depth};return ct(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(J,j,n+1,a)}return e(J,o,n+1,a)}if(typeof t=="function"&&!Xh(t)){var m=UT(t),A=Pn(t,y);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(A.length>0?" { "+We.call(A,", ")+" }":"")}if(rm(t)){var b=Jt?dt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Wo.call(t);return typeof t=="object"&&!Jt?Br(b):b}if(KT(t)){for(var x="<"+zh.call(String(t.nodeName)),T=t.attributes||[],O=0;O",x}if(Ko(t)){if(t.length===0)return"[]";var R=Pn(t,y);return E&&!JT(R)?"["+Yo(R,E)+"]":"[ "+We.call(R,", ")+" ]"}if(NT(t)){var M=Pn(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!em.call(t,"cause")?"{ ["+String(t)+"] "+We.call(Gh.call("[cause]: "+y(t.cause),M),", ")+" }":M.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+We.call(M,", ")+" }"}if(typeof t=="object"&&u){if(Jh&&typeof t[Jh]=="function"&&Vo)return Vo(t,{depth:g-n});if(u!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(HT(t)){var F=[];return $h&&$h.call(t,function(J,_){F.push(y(_,t,!0)+" => "+y(J,t))}),Qh("Map",kn.call(t),F,E)}if(WT(t)){var q=[];return Uh&&Uh.call(t,function(J){q.push(y(J,t))}),Qh("Set",Nn.call(t),q,E)}if(zT(t))return zo("WeakMap");if(VT(t))return zo("WeakSet");if(GT(t))return zo("WeakRef");if(qT(t))return Br(y(Number(t)));if(jT(t))return Br(y(Go.call(t)));if(MT(t))return Br(BT.call(t));if(LT(t))return Br(y(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===window)return"{ [object globalThis] }";if(!kT(t)&&!Xh(t)){var k=Pn(t,y),H=Vh?Vh(t)===Object.prototype:t instanceof Object||t.constructor===Object,V=t instanceof Object?"":"null prototype",U=!H&&Ce&&Object(t)===t&&Ce in t?Qo.call(pt(t),8,-1):V?"Object":"",se=H||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",te=se+(U||V?"["+We.call(Gh.call([],U||[],V||[]),": ")+"] ":"");return k.length===0?te+"{}":E?te+"{"+Yo(k,E)+"}":te+"{ "+We.call(k,", ")+" }"}return String(t)};function tm(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function PT(e){return dt.call(String(e),/"/g,""")}function Ko(e){return pt(e)==="[object Array]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function kT(e){return pt(e)==="[object Date]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function Xh(e){return pt(e)==="[object RegExp]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function NT(e){return pt(e)==="[object Error]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function LT(e){return pt(e)==="[object String]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function qT(e){return pt(e)==="[object Number]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function MT(e){return pt(e)==="[object Boolean]"&&(!Ce||!(typeof e=="object"&&Ce in e))}function rm(e){if(Jt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Wo)return!1;try{return Wo.call(e),!0}catch{}return!1}function jT(e){if(!e||typeof e!="object"||!Go)return!1;try{return Go.call(e),!0}catch{}return!1}var $T=Object.prototype.hasOwnProperty||function(e){return e in this};function ct(e,t){return $T.call(e,t)}function pt(e){return TT.call(e)}function UT(e){if(e.name)return e.name;var t=_T.call(IT.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function nm(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return am(Qo.call(e,0,t.maxStringLength),t)+n}var a=dt.call(dt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,YT);return tm(a,"single",t)}function YT(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+OT.call(t.toString(16))}function Br(e){return"Object("+e+")"}function zo(e){return e+" { ? }"}function Qh(e,t,r,n){var a=n?Yo(r,n):We.call(r,", ");return e+" ("+t+") {"+a+"}"}function JT(e){for(var t=0;t=0)return!1;return!0}function XT(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=We.call(Array(e.indent+1)," ");else return null;return{base:r,prev:We.call(Array(t+1),r)}}function Yo(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+We.call(e,","+r)+` +`+t.prev}function Pn(e,t){var r=Ko(e),n=[];if(r){n.length=e.length;for(var a=0;a{"use strict";l();c();d();var im=xt(),Xt=Mh(),QT=um(),ZT=zt(),Ln=im("%WeakMap%",!0),qn=im("%Map%",!0),e8=Xt("WeakMap.prototype.get",!0),t8=Xt("WeakMap.prototype.set",!0),r8=Xt("WeakMap.prototype.has",!0),n8=Xt("Map.prototype.get",!0),a8=Xt("Map.prototype.set",!0),o8=Xt("Map.prototype.has",!0),Zo=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},u8=function(e,t){var r=Zo(e,t);return r&&r.value},i8=function(e,t,r){var n=Zo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},s8=function(e,t){return!!Zo(e,t)};sm.exports=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new ZT("Side channel does not contain "+QT(o))},get:function(o){if(Ln&&o&&(typeof o=="object"||typeof o=="function")){if(t)return e8(t,o)}else if(qn){if(r)return n8(r,o)}else if(n)return u8(n,o)},has:function(o){if(Ln&&o&&(typeof o=="object"||typeof o=="function")){if(t)return r8(t,o)}else if(qn){if(r)return o8(r,o)}else if(n)return s8(n,o);return!1},set:function(o,u){Ln&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ln),t8(t,o,u)):qn?(r||(r=new qn),a8(r,o,u)):(n||(n={key:{},next:null}),i8(n,o,u))}};return a}});var Mn=S((lre,cm)=>{"use strict";l();c();d();var l8=String.prototype.replace,c8=/%20/g,eu={RFC1738:"RFC1738",RFC3986:"RFC3986"};cm.exports={default:eu.RFC3986,formatters:{RFC1738:function(e){return l8.call(e,c8,"+")},RFC3986:function(e){return String(e)}},RFC1738:eu.RFC1738,RFC3986:eu.RFC3986}});var nu=S((fre,pm)=>{"use strict";l();c();d();var d8=Mn(),tu=Object.prototype.hasOwnProperty,St=Array.isArray,Ve=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),p8=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(St(n)){for(var a=[],o=0;o=ru?u.slice(s,s+ru):u,g=[],E=0;E=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||o===d8.RFC1738&&(y===40||y===41)){g[g.length]=h.charAt(E);continue}if(y<128){g[g.length]=Ve[y];continue}if(y<2048){g[g.length]=Ve[192|y>>6]+Ve[128|y&63];continue}if(y<55296||y>=57344){g[g.length]=Ve[224|y>>12]+Ve[128|y>>6&63]+Ve[128|y&63];continue}E+=1,y=65536+((y&1023)<<10|h.charCodeAt(E)&1023),g[g.length]=Ve[240|y>>18]+Ve[128|y>>12&63]+Ve[128|y>>6&63]+Ve[128|y&63]}i+=g.join("")}return i},g8=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a{"use strict";l();c();d();var hm=lm(),jn=nu(),_r=Mn(),D8=Object.prototype.hasOwnProperty,mm={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ke=Array.isArray,C8=Array.prototype.push,ym=function(e,t){C8.apply(e,Ke(t)?t:[t])},x8=Date.prototype.toISOString,fm=_r.default,me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:jn.encode,encodeValuesOnly:!1,format:fm,formatter:_r.formatters[fm],indices:!1,serializeDate:function(t){return x8.call(t)},skipNulls:!1,strictNullHandling:!1},S8=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},au={},F8=function e(t,r,n,a,o,u,i,s,h,g,E,y,m,A,b,x,T,O){for(var R=t,M=O,F=0,q=!1;(M=M.get(au))!==void 0&&!q;){var k=M.get(t);if(F+=1,typeof k<"u"){if(k===F)throw new RangeError("Cyclic object value");q=!0}typeof M.get(au)>"u"&&(F=0)}if(typeof g=="function"?R=g(r,R):R instanceof Date?R=m(R):n==="comma"&&Ke(R)&&(R=jn.maybeMap(R,function(ee){return ee instanceof Date?m(ee):ee})),R===null){if(u)return h&&!x?h(r,me.encoder,T,"key",A):r;R=""}if(S8(R)||jn.isBuffer(R)){if(h){var H=x?r:h(r,me.encoder,T,"key",A);return[b(H)+"="+b(h(R,me.encoder,T,"value",A))]}return[b(r)+"="+b(String(R))]}var V=[];if(typeof R>"u")return V;var U;if(n==="comma"&&Ke(R))x&&h&&(R=jn.maybeMap(R,h)),U=[{value:R.length>0?R.join(",")||null:void 0}];else if(Ke(g))U=g;else{var se=Object.keys(R);U=E?se.sort(E):se}var te=s?r.replace(/\./g,"%2E"):r,J=a&&Ke(R)&&R.length===1?te+"[]":te;if(o&&Ke(R)&&R.length===0)return J+"[]";for(var _=0;_"u"?t.encodeDotInKeys===!0?!0:me.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:me.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:me.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:me.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?me.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:me.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:me.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:me.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:me.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:me.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:me.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:me.strictNullHandling}};gm.exports=function(e,t){var r=e,n=w8(t),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Ke(n.filter)&&(o=n.filter,a=o);var u=[];if(typeof r!="object"||r===null)return"";var i=mm[n.arrayFormat],s=i==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var h=hm(),g=0;g0?m+y:""}});var vm=S((vre,Am)=>{"use strict";l();c();d();var Qt=nu(),ou=Object.prototype.hasOwnProperty,B8=Array.isArray,fe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Qt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},T8=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Em=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},I8="utf8=%26%2310003%3B",_8="utf8=%E2%9C%93",O8=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,u=a.split(r.delimiter,o),i=-1,s,h=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(A=B8(A)?[A]:A);var b=ou.call(n,m);b&&r.duplicates==="combine"?n[m]=Qt.combine(n[m],A):(!b||r.duplicates==="last")&&(n[m]=A)}return n},R8=function(e,t,r,n){for(var a=n?t:Em(t,r),o=e.length-1;o>=0;--o){var u,i=e[o];if(i==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&a===""?[]:[].concat(a);else{u=r.plainObjects?Object.create(null):{};var s=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,h=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,g=parseInt(h,10);!r.parseArrays&&h===""?u={0:a}:!isNaN(g)&&i!==h&&String(g)===h&&g>=0&&r.parseArrays&&g<=r.arrayLimit?(u=[],u[g]=a):h!=="__proto__"&&(u[h]=a)}a=u}return a},P8=function(t,r,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.depth>0&&u.exec(o),h=s?o.slice(0,s.index):o,g=[];if(h){if(!n.plainObjects&&ou.call(Object.prototype,h)&&!n.allowPrototypes)return;g.push(h)}for(var E=0;n.depth>0&&(s=i.exec(o))!==null&&E"u"?fe.charset:t.charset,n=typeof t.duplicates>"u"?fe.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:fe.allowDots:!!t.allowDots;return{allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:fe.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:fe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:fe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:fe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:fe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:fe.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:fe.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:fe.decoder,delimiter:typeof t.delimiter=="string"||Qt.isRegExp(t.delimiter)?t.delimiter:fe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:fe.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:fe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:fe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:fe.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:fe.strictNullHandling}};Am.exports=function(e,t){var r=k8(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?O8(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),u=0;u{"use strict";l();c();d();var N8=bm(),L8=vm(),q8=Mn();Dm.exports={formats:q8,parse:L8,stringify:N8}});var Nm=S((bne,km)=>{l();c();d();(function(){"use strict";function e(u){if(u==null)return!1;switch(u.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(u){if(u==null)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(u){if(u==null)return!1;switch(u.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(u){return r(u)||u!=null&&u.type==="FunctionDeclaration"}function a(u){switch(u.type){case"IfStatement":return u.alternate!=null?u.alternate:u.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return u.body}return null}function o(u){var i;if(u.type!=="IfStatement"||u.alternate==null)return!1;i=u.consequent;do{if(i.type==="IfStatement"&&i.alternate==null)return!0;i=a(i)}while(i);return!1}km.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:n,isProblematicIfStatement:o,trailingStatement:a}})()});var su=S((Dne,Lm)=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function u(x){return 48<=x&&x<=57}function i(x){return 48<=x&&x<=57||97<=x&&x<=102||65<=x&&x<=70}function s(x){return x>=48&&x<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function h(x){return x===32||x===9||x===11||x===12||x===160||x>=5760&&r.indexOf(x)>=0}function g(x){return x===10||x===13||x===8232||x===8233}function E(x){if(x<=65535)return String.fromCharCode(x);var T=String.fromCharCode(Math.floor((x-65536)/1024)+55296),O=String.fromCharCode((x-65536)%1024+56320);return T+O}for(n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function y(x){return x<128?n[x]:t.NonAsciiIdentifierStart.test(E(x))}function m(x){return x<128?a[x]:t.NonAsciiIdentifierPart.test(E(x))}function A(x){return x<128?n[x]:e.NonAsciiIdentifierStart.test(E(x))}function b(x){return x<128?a[x]:e.NonAsciiIdentifierPart.test(E(x))}Lm.exports={isDecimalDigit:u,isHexDigit:i,isOctalDigit:s,isWhiteSpace:h,isLineTerminator:g,isIdentifierStartES5:y,isIdentifierPartES5:m,isIdentifierStartES6:A,isIdentifierPartES6:b}})()});var Mm=S((Fne,qm)=>{l();c();d();(function(){"use strict";var e=su();function t(y){switch(y){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(y,m){return!m&&y==="yield"?!1:n(y,m)}function n(y,m){if(m&&t(y))return!0;switch(y.length){case 2:return y==="if"||y==="in"||y==="do";case 3:return y==="var"||y==="for"||y==="new"||y==="try";case 4:return y==="this"||y==="else"||y==="case"||y==="void"||y==="with"||y==="enum";case 5:return y==="while"||y==="break"||y==="catch"||y==="throw"||y==="const"||y==="yield"||y==="class"||y==="super";case 6:return y==="return"||y==="typeof"||y==="delete"||y==="switch"||y==="export"||y==="import";case 7:return y==="default"||y==="finally"||y==="extends";case 8:return y==="function"||y==="continue"||y==="debugger";case 10:return y==="instanceof";default:return!1}}function a(y,m){return y==="null"||y==="true"||y==="false"||r(y,m)}function o(y,m){return y==="null"||y==="true"||y==="false"||n(y,m)}function u(y){return y==="eval"||y==="arguments"}function i(y){var m,A,b;if(y.length===0||(b=y.charCodeAt(0),!e.isIdentifierStartES5(b)))return!1;for(m=1,A=y.length;m=A||(x=y.charCodeAt(m),!(56320<=x&&x<=57343)))return!1;b=s(b,x)}if(!T(b))return!1;T=e.isIdentifierPartES6}return!0}function g(y,m){return i(y)&&!a(y,m)}function E(y,m){return h(y)&&!o(y,m)}qm.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:u,isIdentifierNameES5:i,isIdentifierNameES6:h,isIdentifierES5:g,isIdentifierES6:E}})()});var lu=S(Hn=>{l();c();d();(function(){"use strict";Hn.ast=Nm(),Hn.code=su(),Hn.keyword=Mm()})()});var jm=S((Pne,i6)=>{i6.exports={name:"doctrine",description:"JSDoc parser",homepage:"https://github.com/eslint/doctrine",main:"lib/doctrine.js",version:"3.0.0",engines:{node:">=6.0.0"},directories:{lib:"./lib"},files:["lib"],maintainers:[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:"eslint/doctrine",devDependencies:{coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},license:"Apache-2.0",scripts:{pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},dependencies:{esutils:"^2.0.2"}}});var Um=S((kne,$m)=>{l();c();d();function s6(e,t){if(!e)throw new Error(t||"unknown assertion error")}$m.exports=s6});var cu=S(Rr=>{l();c();d();(function(){"use strict";var e;e=jm().version,Rr.VERSION=e;function t(n){this.name="DoctrineError",this.message=n}t.prototype=function(){var n=function(){};return n.prototype=Error.prototype,new n}(),t.prototype.constructor=t,Rr.DoctrineError=t;function r(n){throw new t(n)}Rr.throwError=r,Rr.assert=Um()})()});var Hm=S(Pr=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o,u,i,s,h,g,E;s=lu(),h=cu(),e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},t={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function y(w){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(w))===-1&&!s.code.isWhiteSpace(w)&&!s.code.isLineTerminator(w)}function m(w,P,N,I){this._previous=w,this._index=P,this._token=N,this._value=I}m.prototype.restore=function(){o=this._previous,a=this._index,u=this._token,i=this._value},m.save=function(){return new m(o,a,u,i)};function A(w,P){return E&&(w.range=[P[0]+g,P[1]+g]),w}function b(){var w=r.charAt(a);return a+=1,w}function x(w){var P,N,I,$=0;for(N=w==="u"?4:2,P=0;P=0&&a=n)return t.ILLEGAL;if(P=r.charCodeAt(a+1),P===60)break}i+=b()}return t.NAME}function M(){var w;for(o=a;a=n)return u=t.EOF,u;switch(w=r.charCodeAt(a),w){case 39:case 34:return u=T(),u;case 58:return b(),u=t.COLON,u;case 44:return b(),u=t.COMMA,u;case 40:return b(),u=t.LPAREN,u;case 41:return b(),u=t.RPAREN,u;case 91:return b(),u=t.LBRACK,u;case 93:return b(),u=t.RBRACK,u;case 123:return b(),u=t.LBRACE,u;case 125:return b(),u=t.RBRACE,u;case 46:if(a+1{l();c();d();(function(){"use strict";var e,t,r,n,a;n=lu(),e=Hm(),t=cu();function o(F,q,k){return F.slice(q,k)}a=function(){var F=Object.prototype.hasOwnProperty;return function(k,H){return F.call(k,H)}}();function u(F){var q={},k;for(k in F)F.hasOwnProperty(k)&&(q[k]=F[k]);return q}function i(F){return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57}function s(F){return F==="param"||F==="argument"||F==="arg"}function h(F){return F==="return"||F==="returns"}function g(F){return F==="property"||F==="prop"}function E(F){return s(F)||g(F)||F==="alias"||F==="this"||F==="mixes"||F==="requires"}function y(F){return E(F)||F==="const"||F==="constant"}function m(F){return g(F)||s(F)}function A(F){return g(F)||s(F)}function b(F){return s(F)||h(F)||F==="define"||F==="enum"||F==="implements"||F==="this"||F==="type"||F==="typedef"||g(F)}function x(F){return b(F)||F==="throws"||F==="const"||F==="constant"||F==="namespace"||F==="member"||F==="var"||F==="module"||F==="constructor"||F==="class"||F==="extends"||F==="augments"||F==="public"||F==="private"||F==="protected"}var T="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",O="("+T+"*(?:\\*"+T+`?)?)(.+|[\r +\u2028\u2029])`;function R(F){return F.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(O,"g"),"$2").replace(/\s*$/,"")}function M(F,q){for(var k=F.replace(/^\/\*\*?/,""),H=0,V=new RegExp(O,"g"),U;U=V.exec(k);)if(H+=U[1].length,U.index+U[0].length>q+H)return q+H+F.length-k.length;return F.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(F){var q,k,H,V,U,se,te,J,_;function B(){var N=U.charCodeAt(k);return k+=1,n.code.isLineTerminator(N)&&!(N===13&&U.charCodeAt(k)===10)&&(H+=1),String.fromCharCode(N)}function j(){var N="";for(B();k=N)return null;if(U.charCodeAt(k)===91)if(I)ce=!0,z=B();else return null;if(z+=K(N),$)for(U.charCodeAt(k)===58&&(z==="module"||z==="external"||z==="event")&&(z+=B(),z+=K(N)),U.charCodeAt(k)===91&&U.charCodeAt(k+1)===93&&(z+=B(),z+=B());U.charCodeAt(k)===46||U.charCodeAt(k)===47||U.charCodeAt(k)===35||U.charCodeAt(k)===45||U.charCodeAt(k)===126;)z+=B(),z+=K(N);if(ce){if(ee(N),U.charCodeAt(k)===61){z+=B(),ee(N);for(var ae,be=1;k=N||U.charCodeAt(k)!==93)return null;z+=B()}return z}function Ie(){for(;k=V?!1:(t.assert(U.charCodeAt(k)===64),!0)}function _e(N){return U===se?N:M(se,N)}function X(N,I){this._options=N,this._title=I.toLowerCase(),this._tag={title:I,description:null},this._options.lineNumbers&&(this._tag.lineNumber=H),this._first=k-I.length-1,this._last=0,this._extra={}}X.prototype.addError=function(I){var $=Array.prototype.slice.call(arguments,1),z=I.replace(/%(\d)/g,function(ce,re){return t.assert(re<$.length,"Message reference must be in range"),$[re]});return this._tag.errors||(this._tag.errors=[]),_&&t.throwError(z),this._tag.errors.push(z),te},X.prototype.parseType=function(){if(b(this._title))try{if(this._tag.type=Y(this._title,this._last,this._options.range),!this._tag.type&&!s(this._title)&&!h(this._title)&&!this.addError("Missing or invalid tag type"))return!1}catch(N){if(this._tag.type=null,!this.addError(N.message))return!1}else if(x(this._title))try{this._tag.type=Y(this._title,this._last,this._options.range)}catch{}return!0},X.prototype._parseNamePath=function(N){var I;return I=oe(this._last,J&&A(this._title),!0),!I&&!N&&!this.addError("Missing or invalid tag name")?!1:(this._tag.name=I,!0)},X.prototype.parseNamePath=function(){return this._parseNamePath(!1)},X.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},X.prototype.parseName=function(){var N,I;if(y(this._title))if(this._tag.name=oe(this._last,J&&A(this._title),m(this._title)),this._tag.name)I=this._tag.name,I.charAt(0)==="["&&I.charAt(I.length-1)==="]"&&(N=I.substring(1,I.length-1).split("="),N.length>1&&(this._tag.default=N.slice(1).join("=")),this._tag.name=N[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!E(this._title))return!0;if(s(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},X.prototype.parseDescription=function(){var I=o(U,k,this._last).trim();return I&&(/^-\s+/.test(I)&&(I=I.substring(2)),this._tag.description=I),!0},X.prototype.parseCaption=function(){var I=o(U,k,this._last).trim(),$="",z="",ce=I.indexOf($),re=I.indexOf(z);return ce>=0&&re>=0?(this._tag.caption=I.substring(ce+$.length,re).trim(),this._tag.description=I.substring(re+z.length).trim()):this._tag.description=I,!0},X.prototype.parseKind=function(){var I,$;return $={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},I=o(U,k,this._last).trim(),this._tag.kind=I,!(!a($,I)&&!this.addError("Invalid kind name '%0'",I))},X.prototype.parseAccess=function(){var I;return I=o(U,k,this._last).trim(),this._tag.access=I,!(I!=="private"&&I!=="protected"&&I!=="public"&&!this.addError("Invalid access name '%0'",I))},X.prototype.parseThis=function(){var I=o(U,k,this._last).trim();if(I&&I.charAt(0)==="{"){var $=this.parseType();return $&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},X.prototype.parseVariation=function(){var I,$;return $=o(U,k,this._last).trim(),I=parseFloat($,10),this._tag.variation=I,!(isNaN(I)&&!this.addError("Invalid variation '%0'",$))},X.prototype.ensureEnd=function(){var N=o(U,k,this._last).trim();return!(N&&!this.addError("Unknown content '%0'",N))},X.prototype.epilogue=function(){var I;return I=this._tag.description,!(A(this._title)&&!this._tag.type&&I&&I.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!J&&!this.addError("Missing or invalid tag name")))},q={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},X.prototype.parse=function(){var I,$,z,ce;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=G(this._title),this._options.range&&(this._tag.range=[this._first,U.slice(0,this._last).replace(/\s*$/,"").length].map(_e)),a(q,this._title)?z=q[this._title]:z=["parseType","parseName","parseDescription","epilogue"],I=0,$=z.length;I<$;++I)if(ce=z[I],!this[ce]())return null;return this._tag};function Le(N){var I,$,z;if(!Ie())return null;for(I=j(),$=new X(N,I),z=$.parse();k<$._last;)B();return z}function w(N){var I="",$,z;for(z=!0;k=0||(a[r]=e[r]);return a}function gu(e){var t=Fe(e),r=Fe(function(n){t.current&&t.current(n)});return t.current=e,r.current}function Cy(e,t,r){var n=gu(r),a=ne(function(){return e.toHsva(t)}),o=a[0],u=a[1],i=Fe({color:t,hsva:o});he(function(){if(!e.equal(t,i.current.color)){var h=e.toHsva(t);i.current={hsva:h,color:t},u(h)}},[t,e]),he(function(){var h;vy(o,i.current.hsva)||e.equal(h=e.fromHsva(o),i.current.color)||(i.current={hsva:o,color:h},n(h))},[o,e,n]);var s=Ee(function(h){u(function(g){return Object.assign({},g,h)})},[]);return[o,s]}var nr,Lr,bu,fy,hy,Du,qr,Cu,ve,oO,uO,Eu,iO,sO,lO,cO,yy,Au,Yn,gy,dO,Kn,pO,by,Ey,Ay,vy,Dy,fO,hO,mO,yO,my,xy,gO,bO,Sy,EO,Fy,AO,wy,vO,By,Ty=He(()=>{l();c();d();Bt();nr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:x.buttons>0)&&a.current?o(fy(a.current,x,i.current)):b(!1)},A=function(){return b(!1)};function b(x){var T=s.current,O=bu(a.current),R=x?O.addEventListener:O.removeEventListener;R(T?"touchmove":"mousemove",m),R(T?"touchend":"mouseup",A)}return[function(x){var T=x.nativeEvent,O=a.current;if(O&&(hy(T),!function(M,F){return F&&!Lr(M)}(T,s.current)&&O)){if(Lr(T)){s.current=!0;var R=T.changedTouches||[];R.length&&(i.current=R[0].identifier)}O.focus(),o(fy(O,T,i.current)),b(!0)}},function(x){var T=x.which||x.keyCode;T<37||T>40||(x.preventDefault(),u({left:T===39?.05:T===37?-.05:0,top:T===40?.05:T===38?-.05:0}))},b]},[u,o]),g=h[0],E=h[1],y=h[2];return he(function(){return y},[y]),p.createElement("div",Ft({},n,{onTouchStart:g,onMouseDown:g,className:"react-colorful__interactive",ref:a,onKeyDown:E,tabIndex:0,role:"slider"}))}),qr=function(e){return e.filter(Boolean).join(" ")},Cu=function(e){var t=e.color,r=e.left,n=e.top,a=n===void 0?.5:n,o=qr(["react-colorful__pointer",e.className]);return p.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},p.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},ve=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},oO={grad:.9,turn:360,rad:360/(2*Math.PI)},uO=function(e){return by(Eu(e))},Eu=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ve(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?ve(parseInt(e.substring(6,8),16)/255,2):1}},iO=function(e,t){return t===void 0&&(t="deg"),Number(e)*(oO[t]||1)},sO=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?lO({h:iO(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},lO=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},cO=function(e){return pO(gy(e))},yy=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:ve(e.h),s:ve(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:ve(a/2),a:ve(n,2)}},Au=function(e){var t=yy(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Yn=function(e){var t=yy(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},gy=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),u=n*(1-r),i=n*(1-(t-o)*r),s=n*(1-(1-t+o)*r),h=o%6;return{r:ve(255*[n,i,u,u,s,n][h]),g:ve(255*[s,n,n,i,u,u][h]),b:ve(255*[u,u,s,n,n,i][h]),a:ve(a,2)}},dO=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?by({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},Kn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},pO=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?Kn(ve(255*a)):"";return"#"+Kn(t)+Kn(r)+Kn(n)+o},by=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),u=o-Math.min(t,r,n),i=u?o===t?(r-n)/u:o===r?2+(n-t)/u:4+(t-r)/u:0;return{h:ve(60*(i<0?i+6:i)),s:ve(o?u/o*100:0),v:ve(o/255*100),a}},Ey=p.memo(function(e){var t=e.hue,r=e.onChange,n=qr(["react-colorful__hue",e.className]);return p.createElement("div",{className:n},p.createElement(Du,{onMove:function(a){r({h:360*a.left})},onKey:function(a){r({h:nr(t+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":ve(t),"aria-valuemax":"360","aria-valuemin":"0"},p.createElement(Cu,{className:"react-colorful__hue-pointer",left:t/360,color:Au({h:t,s:100,v:100,a:1})})))}),Ay=p.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:Au({h:t.h,s:100,v:100,a:1})};return p.createElement("div",{className:"react-colorful__saturation",style:n},p.createElement(Du,{onMove:function(a){r({s:100*a.left,v:100-100*a.top})},onKey:function(a){r({s:nr(t.s+100*a.left,0,100),v:nr(t.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+ve(t.s)+"%, Brightness "+ve(t.v)+"%"},p.createElement(Cu,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Au(t)})))}),vy=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},Dy=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},fO=function(e,t){return e.toLowerCase()===t.toLowerCase()||vy(Eu(e),Eu(t))};mO=typeof window<"u"?zu:he,yO=function(){return hO||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},my=new Map,xy=function(e){mO(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!my.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,my.set(t,r);var n=yO();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},gO=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,u=vu(e,["className","colorModel","color","onChange"]),i=Fe(null);xy(i);var s=Cy(r,a,o),h=s[0],g=s[1],E=qr(["react-colorful",t]);return p.createElement("div",Ft({},u,{ref:i,className:E}),p.createElement(Ay,{hsva:h,onChange:g}),p.createElement(Ey,{hue:h.h,onChange:g,className:"react-colorful__last-control"}))},bO={defaultColor:"000",toHsva:uO,fromHsva:function(e){return cO({h:e.h,s:e.s,v:e.v,a:1})},equal:fO},Sy=function(e){return p.createElement(gO,Ft({},e,{colorModel:bO}))},EO=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+Yn(Object.assign({},r,{a:0}))+", "+Yn(Object.assign({},r,{a:1}))+")"},o=qr(["react-colorful__alpha",t]),u=ve(100*r.a);return p.createElement("div",{className:o},p.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),p.createElement(Du,{onMove:function(i){n({a:i.left})},onKey:function(i){n({a:nr(r.a+i.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},p.createElement(Cu,{className:"react-colorful__alpha-pointer",left:r.a,color:Yn(r)})))},Fy=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,u=vu(e,["className","colorModel","color","onChange"]),i=Fe(null);xy(i);var s=Cy(r,a,o),h=s[0],g=s[1],E=qr(["react-colorful",t]);return p.createElement("div",Ft({},u,{ref:i,className:E}),p.createElement(Ay,{hsva:h,onChange:g}),p.createElement(Ey,{hue:h.h,onChange:g}),p.createElement(EO,{hsva:h,onChange:g,className:"react-colorful__last-control"}))},AO={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:sO,fromHsva:Yn,equal:Dy},wy=function(e){return p.createElement(Fy,Ft({},e,{colorModel:AO}))},vO={defaultColor:"rgba(0, 0, 0, 1)",toHsva:dO,fromHsva:function(e){var t=gy(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Dy},By=function(e){return p.createElement(Fy,Ft({},e,{colorModel:vO}))}});var _y=S((ooe,Iy)=>{"use strict";l();c();d();Iy.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var xu=S((loe,Ry)=>{l();c();d();var Mr=_y(),Oy={};for(let e of Object.keys(Mr))Oy[Mr[e]]=e;var W={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ry.exports=W;for(let e of Object.keys(W)){if(!("channels"in W[e]))throw new Error("missing channels property: "+e);if(!("labels"in W[e]))throw new Error("missing channel labels property: "+e);if(W[e].labels.length!==W[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=W[e];delete W[e].channels,delete W[e].labels,Object.defineProperty(W[e],"channels",{value:t}),Object.defineProperty(W[e],"labels",{value:r})}W.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),u=o-a,i,s;o===a?i=0:t===o?i=(r-n)/u:r===o?i=2+(n-t)/u:n===o&&(i=4+(t-r)/u),i=Math.min(i*60,360),i<0&&(i+=360);let h=(a+o)/2;return o===a?s=0:h<=.5?s=u/(o+a):s=u/(2-o-a),[i,s*100,h*100]};W.rgb.hsv=function(e){let t,r,n,a,o,u=e[0]/255,i=e[1]/255,s=e[2]/255,h=Math.max(u,i,s),g=h-Math.min(u,i,s),E=function(y){return(h-y)/6/g+1/2};return g===0?(a=0,o=0):(o=g/h,t=E(u),r=E(i),n=E(s),u===h?a=n-r:i===h?a=1/3+t-n:s===h&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[a*360,o*100,h*100]};W.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],a=W.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,o*100,n*100]};W.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),o=(1-t-a)/(1-a)||0,u=(1-r-a)/(1-a)||0,i=(1-n-a)/(1-a)||0;return[o*100,u*100,i*100,a*100]};function DO(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}W.rgb.keyword=function(e){let t=Oy[e];if(t)return t;let r=1/0,n;for(let a of Object.keys(Mr)){let o=Mr[a],u=DO(e,o);u.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let a=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,u=t*.0193+r*.1192+n*.9505;return[a*100,o*100,u*100]};W.rgb.lab=function(e){let t=W.rgb.xyz(e),r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*n-16,u=500*(r-n),i=200*(n-a);return[o,u,i]};W.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?a=n*(1+r):a=n+r-n*r;let i=2*n-a,s=[0,0,0];for(let h=0;h<3;h++)o=t+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(a-i)*6*o:2*o<1?u=a:3*o<2?u=i+(a-i)*(2/3-o)*6:u=i,s[h]=u*255;return s};W.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;let u=(n+r)/2,i=n===0?2*a/(o+a):2*r/(n+r);return[t,i*100,u*100]};W.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),u=255*n*(1-r),i=255*n*(1-r*o),s=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,s,u];case 1:return[i,n,u];case 2:return[u,n,s];case 3:return[u,i,n];case 4:return[s,u,n];case 5:return[n,u,i]}};W.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01),o,u;u=(2-r)*n;let i=(2-r)*a;return o=r*a,o/=i<=1?i:2-i,o=o||0,u/=2,[t,o*100,u*100]};W.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a=r+n,o;a>1&&(r/=a,n/=a);let u=Math.floor(6*t),i=1-n;o=6*t-u,u&1&&(o=1-o);let s=r+o*(i-r),h,g,E;switch(u){default:case 6:case 0:h=i,g=s,E=r;break;case 1:h=s,g=i,E=r;break;case 2:h=r,g=i,E=s;break;case 3:h=r,g=s,E=i;break;case 4:h=s,g=r,E=i;break;case 5:h=i,g=r,E=s;break}return[h*255,g*255,E*255]};W.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,o=1-Math.min(1,t*(1-a)+a),u=1-Math.min(1,r*(1-a)+a),i=1-Math.min(1,n*(1-a)+a);return[o*255,u*255,i*255]};W.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a,o,u;return a=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,u=t*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),u=Math.min(Math.max(0,u),1),[a*255,o*255,u*255]};W.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*r-16,o=500*(t-r),u=200*(r-n);return[a,o,u]};W.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],a,o,u;o=(t+16)/116,a=r/500+o,u=o-n/200;let i=o**3,s=a**3,h=u**3;return o=i>.008856?i:(o-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,u=h>.008856?h:(u-16/116)/7.787,a*=95.047,o*=100,u*=108.883,[a,o,u]};W.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);let u=Math.sqrt(r*r+n*n);return[t,u,a]};W.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),u=r*Math.sin(a);return[t,o,u]};W.rgb.ansi16=function(e,t=null){let[r,n,a]=e,o=t===null?W.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let u=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(u+=60),u};W.hsv.ansi16=function(e){return W.rgb.ansi16(W.hsv.rgb(e),e[2])};W.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};W.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,a,o]};W.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};W.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(i=>i+i).join(""));let n=parseInt(r,16),a=n>>16&255,o=n>>8&255,u=n&255;return[a,o,u]};W.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),u=a-o,i,s;return u<1?i=o/(1-u):i=0,u<=0?s=0:a===t?s=(r-n)/u%6:a===r?s=2+(n-t)/u:s=4+(t-r)/u,s/=6,s%=1,[s*360,u*100,i*100]};W.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};W.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};W.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let a=[0,0,0],o=t%1*6,u=o%1,i=1-u,s=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=u,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=u;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=u,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return s=(1-r)*n,[(r*a[0]+s)*255,(r*a[1]+s)*255,(r*a[2]+s)*255]};W.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};W.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};W.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};W.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,a=n-t,o=0;return a<1&&(o=(n-a)/(1-a)),[e[0],a*100,o*100]};W.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};W.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};W.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};W.gray.hsl=function(e){return[0,0,e[0]]};W.gray.hsv=W.gray.hsl;W.gray.hwb=function(e){return[0,100,e[0]]};W.gray.cmyk=function(e){return[0,0,0,e[0]]};W.gray.lab=function(e){return[e[0],0,0]};W.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var ky=S((foe,Py)=>{l();c();d();var Jn=xu();function CO(){let e={},t=Object.keys(Jn);for(let r=t.length,n=0;n{l();c();d();var Su=xu(),wO=ky(),ar={},BO=Object.keys(Su);function TO(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function IO(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let a=e(r);if(typeof a=="object")for(let o=a.length,u=0;u{ar[e]={},Object.defineProperty(ar[e],"channels",{value:Su[e].channels}),Object.defineProperty(ar[e],"labels",{value:Su[e].labels});let t=wO(e);Object.keys(t).forEach(n=>{let a=t[n];ar[e][n]=IO(a),ar[e][n].raw=TO(a)})});Ny.exports=ar});var My=S((voe,qy)=>{l();c();d();var _O=Ne(),OO=function(){return _O.Date.now()};qy.exports=OO});var $y=S((Soe,jy)=>{l();c();d();var RO=/\s/;function PO(e){for(var t=e.length;t--&&RO.test(e.charAt(t)););return t}jy.exports=PO});var Hy=S((Toe,Uy)=>{l();c();d();var kO=$y(),NO=/^\s+/;function LO(e){return e&&e.slice(0,kO(e)+1).replace(NO,"")}Uy.exports=LO});var Vy=S((Roe,Wy)=>{l();c();d();var qO=Hy(),zy=$e(),MO=Dr(),Gy=NaN,jO=/^[-+]0x[0-9a-f]+$/i,$O=/^0b[01]+$/i,UO=/^0o[0-7]+$/i,HO=parseInt;function zO(e){if(typeof e=="number")return e;if(MO(e))return Gy;if(zy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qO(e);var r=$O.test(e);return r||UO.test(e)?HO(e.slice(2),r?2:8):jO.test(e)?Gy:+e}Wy.exports=zO});var Jy=S((Loe,Yy)=>{l();c();d();var GO=$e(),Fu=My(),Ky=Vy(),WO="Expected a function",VO=Math.max,KO=Math.min;function YO(e,t,r){var n,a,o,u,i,s,h=0,g=!1,E=!1,y=!0;if(typeof e!="function")throw new TypeError(WO);t=Ky(t)||0,GO(r)&&(g=!!r.leading,E="maxWait"in r,o=E?VO(Ky(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y);function m(q){var k=n,H=a;return n=a=void 0,h=q,u=e.apply(H,k),u}function A(q){return h=q,i=setTimeout(T,t),g?m(q):u}function b(q){var k=q-s,H=q-h,V=t-k;return E?KO(V,o-H):V}function x(q){var k=q-s,H=q-h;return s===void 0||k>=t||k<0||E&&H>=o}function T(){var q=Fu();if(x(q))return O(q);i=setTimeout(T,b(q))}function O(q){return i=void 0,y&&n?m(q):(n=a=void 0,u)}function R(){i!==void 0&&clearTimeout(i),h=0,n=s=a=i=void 0}function M(){return i===void 0?u:O(Fu())}function F(){var q=Fu(),k=x(q);if(n=arguments,a=this,s=q,k){if(i===void 0)return A(s);if(E)return clearTimeout(i),i=setTimeout(T,t),m(s)}return i===void 0&&(i=setTimeout(T,t)),u}return F.cancel=R,F.flush=M,F}Yy.exports=YO});var Qy=S(($oe,Xy)=>{l();c();d();var JO=Jy(),XO=$e(),QO="Expected a function";function ZO(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(QO);return XO(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),JO(e,t,{leading:n,maxWait:t,trailing:a})}Xy.exports=ZO});var ag={};Mu(ag,{ColorControl:()=>ng,default:()=>g4});var Pe,tg,e4,t4,r4,n4,a4,o4,u4,Zy,i4,s4,rg,Xn,l4,c4,d4,wu,p4,f4,Qn,eg,or,h4,m4,Zn,y4,ng,g4,og=He(()=>{l();c();d();Fa();Bt();Ty();Pe=De(Ly(),1),tg=De(Qy(),1);Gr();lr();Qr();e4=L.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),t4=L(rt)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),r4=L.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),n4=L(mt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),a4=L.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),o4=L.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),u4=`url('data:image/svg+xml;charset=utf-8,')`,Zy=({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${u4}, linear-gradient(#fff, #fff)`;return p.createElement(o4,{...r,style:{...t,backgroundImage:n}})},i4=L(ke.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),s4=L(Ii)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),rg=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(rg||{}),Xn=Object.values(rg),l4=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,c4=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,d4=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,wu=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,p4=/^\s*#?([0-9a-f]{3})\s*$/i,f4={hex:Sy,rgb:By,hsl:wy},Qn={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},eg=e=>{let t=e?.match(l4);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},or=e=>{if(!e)return;let t=!0;if(c4.test(e)){let[u,i,s,h]=eg(e),[g,E,y]=Pe.default.rgb.hsl([u,i,s])||[0,0,0];return{valid:t,value:e,keyword:Pe.default.rgb.keyword([u,i,s]),colorSpace:"rgb",rgb:e,hsl:`hsla(${g}, ${E}%, ${y}%, ${h})`,hex:`#${Pe.default.rgb.hex([u,i,s]).toLowerCase()}`}}if(d4.test(e)){let[u,i,s,h]=eg(e),[g,E,y]=Pe.default.hsl.rgb([u,i,s])||[0,0,0];return{valid:t,value:e,keyword:Pe.default.hsl.keyword([u,i,s]),colorSpace:"hsl",rgb:`rgba(${g}, ${E}, ${y}, ${h})`,hsl:e,hex:`#${Pe.default.hsl.hex([u,i,s]).toLowerCase()}`}}let r=e.replace("#",""),n=Pe.default.keyword.rgb(r)||Pe.default.hex.rgb(r),a=Pe.default.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:wu.test(e)&&(o=`#${r}`),o.startsWith("#"))t=wu.test(o);else try{Pe.default.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:Pe.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},h4=(e,t,r)=>{if(!e||!t?.valid)return Qn[r];if(r!=="hex")return t?.[r]||Qn[r];if(!t.hex.startsWith("#"))try{return`#${Pe.default.keyword.hex(t.hex)}`}catch{return Qn.hex}let n=t.hex.match(p4);if(!n)return wu.test(t.hex)?t.hex:Qn.hex;let[a,o,u]=n[1].split("");return`#${a}${a}${o}${o}${u}${u}`},m4=(e,t)=>{let[r,n]=ne(e||""),[a,o]=ne(()=>or(r)),[u,i]=ne(a?.colorSpace||"hex");he(()=>{let E=e||"",y=or(E);n(E),o(y),i(y?.colorSpace||"hex")},[e]);let s=ze(()=>h4(r,a,u).toLowerCase(),[r,a,u]),h=Ee(E=>{let y=or(E),m=y?.value||E||"";n(m),m===""&&(o(void 0),t(void 0)),y&&(o(y),i(y.colorSpace),t(y.value))},[t]),g=Ee(()=>{let E=Xn.indexOf(u)+1;E>=Xn.length&&(E=0),i(Xn[E]);let y=a?.[Xn[E]]||"";n(y),t(y)},[a,u,t]);return{value:r,realValue:s,updateValue:h,color:a,colorSpace:u,cycleColorSpace:g}},Zn=e=>e.replace(/\s*/,"").toLowerCase(),y4=(e,t,r)=>{let[n,a]=ne(t?.valid?[t]:[]);he(()=>{t===void 0&&a([])},[t]);let o=ze(()=>(e||[]).map(i=>typeof i=="string"?or(i):i.title?{...or(i.color),keyword:i.title}:or(i.color)).concat(n).filter(Boolean).slice(-27),[e,n]),u=Ee(i=>{i?.valid&&(o.some(s=>Zn(s[r])===Zn(i[r]))||a(s=>s.concat(i)))},[r,o]);return{presets:o,addPreset:u}},ng=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:u=!1,argType:i})=>{let s=Ee((0,tg.default)(r,200),[r]),{value:h,realValue:g,updateValue:E,color:y,colorSpace:m,cycleColorSpace:A}=m4(t,s),{presets:b,addPreset:x}=y4(o,y,m),T=f4[m],O=!!i?.table?.readonly;return p.createElement(e4,{"aria-readonly":O},p.createElement(t4,{startOpen:u,trigger:O?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>x(y),tooltip:p.createElement(r4,null,p.createElement(T,{color:g==="transparent"?"#000000":g,onChange:E,onFocus:n,onBlur:a}),b.length>0&&p.createElement(a4,null,b.map((R,M)=>p.createElement(rt,{key:`${R.value}-${M}`,hasChrome:!1,tooltip:p.createElement(n4,{note:R.keyword||R.value})},p.createElement(Zy,{value:R[m],active:y&&Zn(R[m])===Zn(y[m]),onClick:()=>E(R.value)})))))},p.createElement(Zy,{value:g,style:{margin:4}})),p.createElement(i4,{id:Be(e),value:h,onChange:R=>E(R.target.value),onFocus:R=>R.target.select(),readOnly:O,placeholder:"Choose color..."}),h?p.createElement(s4,{onClick:A}):null)},g4=ng});l();c();d();l();c();d();l();c();d();Bt();l();c();d();var Gu=Object.prototype.hasOwnProperty;function Wu(e,t,r){for(r of e.keys())if(tt(r,t))return r}function tt(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&tt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=Wu(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=Wu(t,a),!a)||!tt(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Gu.call(e,r)&&++n&&!Gu.call(t,r)||!(r in t)||!tt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}lr();l();c();d();var RP=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:q2,ARGTYPES_INFO_RESPONSE:M2,CHANNEL_CREATED:PP,CHANNEL_WS_DISCONNECT:kP,CONFIG_ERROR:j2,CREATE_NEW_STORYFILE_REQUEST:NP,CREATE_NEW_STORYFILE_RESPONSE:LP,CURRENT_STORY_WAS_SET:$2,DOCS_PREPARED:U2,DOCS_RENDERED:H2,FILE_COMPONENT_SEARCH_REQUEST:qP,FILE_COMPONENT_SEARCH_RESPONSE:MP,FORCE_REMOUNT:z2,FORCE_RE_RENDER:G2,GLOBALS_UPDATED:ei,NAVIGATE_URL:ti,PLAY_FUNCTION_THREW_EXCEPTION:W2,PRELOAD_ENTRIES:V2,PREVIEW_BUILDER_PROGRESS:jP,PREVIEW_KEYDOWN:K2,REGISTER_SUBSCRIPTION:$P,REQUEST_WHATS_NEW_DATA:UP,RESET_STORY_ARGS:ri,RESULT_WHATS_NEW_DATA:HP,SAVE_STORY_REQUEST:Aa,SAVE_STORY_RESPONSE:Ur,SELECT_STORY:zP,SET_CONFIG:GP,SET_CURRENT_STORY:Y2,SET_GLOBALS:J2,SET_INDEX:WP,SET_STORIES:VP,SET_WHATS_NEW_CACHE:KP,SHARED_STATE_CHANGED:YP,SHARED_STATE_SET:JP,STORIES_COLLAPSE_ALL:XP,STORIES_EXPAND_ALL:QP,STORY_ARGS_UPDATED:ni,STORY_CHANGED:X2,STORY_ERRORED:Q2,STORY_INDEX_INVALIDATED:Z2,STORY_MISSING:e1,STORY_PREPARED:t1,STORY_RENDERED:r1,STORY_RENDER_PHASE_CHANGED:n1,STORY_SPECIFIED:a1,STORY_THREW_EXCEPTION:o1,STORY_UNCHANGED:u1,TELEMETRY_ERROR:ZP,TOGGLE_WHATS_NEW_NOTIFICATIONS:ek,UNHANDLED_ERRORS_WHILE_PLAYING:i1,UPDATE_GLOBALS:s1,UPDATE_QUERY_PARAMS:l1,UPDATE_STORY_ARGS:ai}=__STORYBOOK_CORE_EVENTS__;l();c();d();var ok=__STORYBOOK_API__,{ActiveTabs:uk,Consumer:ik,ManagerContext:sk,Provider:lk,RequestResponseError:ck,addons:Hr,combineParameters:dk,controlOrMetaKey:pk,controlOrMetaSymbol:fk,eventMatchesShortcut:hk,eventToShortcut:mk,experimental_requestResponse:va,isMacLike:yk,isShortcutTaken:gk,keyToSymbol:bk,merge:Ek,mockChannel:Ak,optionOrAltSymbol:vk,shortcutMatchesShortcut:Dk,shortcutToHumanString:Ck,types:oi,useAddonState:xk,useArgTypes:Da,useArgs:ui,useChannel:Sk,useGlobalTypes:Fk,useGlobals:ii,useParameter:si,useSharedState:wk,useStoryPrepared:Bk,useStorybookApi:Tk,useStorybookState:li}=__STORYBOOK_API__;Gr();l();c();d();Fa();Bt();Gr();lr();l();c();d();l();c();d();function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&a<1?(i=o,s=u):a>=1&&a<2?(i=u,s=o):a>=2&&a<3?(s=o,h=u):a>=3&&a<4?(s=u,h=o):a>=4&&a<5?(i=u,h=o):a>=5&&a<6&&(i=o,h=u);var g=r-o/2,E=i+g,y=s+g,m=h+g;return n(E,y,m)}var Ei={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function h1(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ei[t]?"#"+Ei[t]:e}var m1=/^#[a-fA-F0-9]{6}$/,y1=/^#[a-fA-F0-9]{8}$/,g1=/^#[a-fA-F0-9]{3}$/,b1=/^#[a-fA-F0-9]{4}$/,Ta=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,E1=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,A1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,v1=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function _t(e){if(typeof e!="string")throw new Te(3);var t=h1(e);if(t.match(m1))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y1)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(g1))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b1)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Ta.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=E1.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var u=A1.exec(t);if(u){var i=parseInt(""+u[1],10),s=parseInt(""+u[2],10)/100,h=parseInt(""+u[3],10)/100,g="rgb("+dr(i,s,h)+")",E=Ta.exec(g);if(!E)throw new Te(4,t,g);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10)}}var y=v1.exec(t.substring(0,50));if(y){var m=parseInt(""+y[1],10),A=parseInt(""+y[2],10)/100,b=parseInt(""+y[3],10)/100,x="rgb("+dr(m,A,b)+")",T=Ta.exec(x);if(!T)throw new Te(4,t,x);return{red:parseInt(""+T[1],10),green:parseInt(""+T[2],10),blue:parseInt(""+T[3],10),alpha:parseFloat(""+y[4])>1?parseFloat(""+y[4])/100:parseFloat(""+y[4])}}throw new Te(5)}function D1(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),u=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var i,s=a-o,h=u>.5?s/(2-a-o):s/(a+o);switch(a){case t:i=(r-n)/s+(r=1?Kr(e,t,r):"rgba("+dr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Kr(e.hue,e.saturation,e.lightness):"rgba("+dr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Te(2)}function Oa(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return _a("#"+yt(e)+yt(t)+yt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return _a("#"+yt(e.red)+yt(e.green)+yt(e.blue));throw new Te(6)}function Me(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=_t(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Oa(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Oa(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Te(7)}var w1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},B1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},T1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},I1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function ot(e){if(typeof e!="object")throw new Te(8);if(B1(e))return Me(e);if(w1(e))return Oa(e);if(I1(e))return F1(e);if(T1(e))return S1(e);throw new Te(8)}function vi(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):vi(e,t,a)}}function Oe(e){return vi(e,e.length,[])}function _1(e,t){if(t==="transparent")return t;var r=at(t);return ot(we({},r,{hue:r.hue+parseFloat(e)}))}var oN=Oe(_1);function Ot(e,t,r){return Math.max(e,Math.min(t,r))}function O1(e,t){if(t==="transparent")return t;var r=at(t);return ot(we({},r,{lightness:Ot(0,1,r.lightness-parseFloat(e))}))}var R1=Oe(O1),je=R1;function P1(e,t){if(t==="transparent")return t;var r=at(t);return ot(we({},r,{saturation:Ot(0,1,r.saturation-parseFloat(e))}))}var uN=Oe(P1);function k1(e,t){if(t==="transparent")return t;var r=at(t);return ot(we({},r,{lightness:Ot(0,1,r.lightness+parseFloat(e))}))}var N1=Oe(k1),ut=N1;function L1(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=_t(t),a=we({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=_t(r),u=we({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),i=a.alpha-u.alpha,s=parseFloat(e)*2-1,h=s*i===-1?s:s+i,g=1+s*i,E=(h/g+1)/2,y=1-E,m={red:Math.floor(a.red*E+u.red*y),green:Math.floor(a.green*E+u.green*y),blue:Math.floor(a.blue*E+u.blue*y),alpha:a.alpha*parseFloat(e)+u.alpha*(1-parseFloat(e))};return Me(m)}var q1=Oe(L1),Di=q1;function M1(e,t){if(t==="transparent")return t;var r=_t(t),n=typeof r.alpha=="number"?r.alpha:1,a=we({},r,{alpha:Ot(0,1,(n*100+parseFloat(e)*100)/100)});return Me(a)}var j1=Oe(M1),pr=j1;function $1(e,t){if(t==="transparent")return t;var r=at(t);return ot(we({},r,{saturation:Ot(0,1,r.saturation+parseFloat(e))}))}var iN=Oe($1);function U1(e,t){return t==="transparent"?t:ot(we({},at(t),{hue:parseFloat(e)}))}var sN=Oe(U1);function H1(e,t){return t==="transparent"?t:ot(we({},at(t),{lightness:parseFloat(e)}))}var lN=Oe(H1);function z1(e,t){return t==="transparent"?t:ot(we({},at(t),{saturation:parseFloat(e)}))}var cN=Oe(z1);function G1(e,t){return t==="transparent"?t:Di(parseFloat(e),"rgb(0, 0, 0)",t)}var dN=Oe(G1);function W1(e,t){return t==="transparent"?t:Di(parseFloat(e),"rgb(255, 255, 255)",t)}var pN=Oe(W1);function V1(e,t){if(t==="transparent")return t;var r=_t(t),n=typeof r.alpha=="number"?r.alpha:1,a=we({},r,{alpha:Ot(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Me(a)}var K1=Oe(V1),ue=K1;l();c();d();var pe=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();Qr();var bg=De(go(),1);l();c();d();var MS=Object.create,Yd=Object.defineProperty,jS=Object.getOwnPropertyDescriptor,$S=Object.getOwnPropertyNames,US=Object.getPrototypeOf,HS=Object.prototype.hasOwnProperty,zS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),GS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $S(t))!HS.call(e,a)&&a!==r&&Yd(e,a,{get:()=>t[a],enumerable:!(n=jS(t,a))||n.enumerable});return e},WS=(e,t,r)=>(r=e!=null?MS(US(e)):{},GS(t||!e||!e.__esModule?Yd(r,"default",{value:e,enumerable:!0}):r,e)),VS=zS(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,o){return function u(i,s,h){var g,E,y,m=t.call(i),A=t.call(s);if(i===s)return!0;if(i==null||s==null)return!1;if(h.indexOf(i)>-1&&h.indexOf(s)>-1)return!0;if(h.push(i,s),m!=A||(g=n(i),E=n(s),g.length!=E.length||g.some(function(b){return!u(i[b],s[b],h)})))return!1;switch(m.slice(8,-1)){case"Symbol":return i.valueOf()==s.valueOf();case"Date":case"Number":return+i==+s||+i!=+i&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+i==""+s;case"Set":case"Map":g=i.entries(),E=s.entries();do if(!u((y=g.next()).value,E.next().value,h))return!1;while(!y.done);return!0;case"ArrayBuffer":i=new Uint8Array(i),s=new Uint8Array(s);case"DataView":i=new Uint8Array(i.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(i.length!=s.length)return!1;for(y=0;ye.map(t=>typeof t<"u").filter(Boolean).length,KS=(e,t)=>{let{exists:r,eq:n,neq:a,truthy:o}=e;if(Jd([r,n,a,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,Kd.isEqual)(t,n);if(typeof a<"u")return!(0,Kd.isEqual)(t,a);if(typeof r<"u"){let u=typeof t<"u";return r?u:!u}return typeof o>"u"||o?!!t:!t},bo=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(Jd([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let o=n?t[n]:r[a];return KS(e.if,o)};l();c();d();var $Y=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Xd,logger:At,once:Eo,pretty:UY}=__STORYBOOK_CLIENT_LOGGER__;l();c();d();Bt();function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),Zd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},JS=["style","script"],XS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,QS=/mailto:/i,ZS=/\n{2,}$/,op=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,eF=/^ *> ?/gm,tF=/^ {2,}\n/,rF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,up=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,ip=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,nF=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,aF=/^(?:\n *)*\n/,oF=/\r\n?/g,uF=/^\[\^([^\]]+)](:.*)\n/,iF=/^\[\^([^\]]+)]/,sF=/\f/g,lF=/^\s*?\[(x|\s)\]/,sp=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,lp=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,cp=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,xo=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,cF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,dp=/^)/,dF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,So=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,pF=/^\{.*\}$/,fF=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,hF=/^<([^ >]+@[^ >]+)>/,mF=/^<([^ >]+:\/[^ >]+)>/,yF=/-([a-z])?/gi,pp=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,gF=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,bF=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,EF=/^\[([^\]]*)\] ?\[([^\]]*)\]/,AF=/(\[|\])/g,vF=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,DF=/\t/g,CF=/^ *\| */,xF=/(^ *\||\| *$)/g,SF=/ *$/,FF=/^ *:-+: *$/,wF=/^ *:-+ *$/,BF=/^ *-+: *$/,TF=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,IF=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,_F=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,OF=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,RF=/^\\([^0-9A-Za-z\s])/,PF=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,kF=/^\n+/,NF=/^([ \t]*)/,LF=/\\([^\\])/g,ep=/ *\n+$/,qF=/(?:^|\n)( *)$/,Fo="(?:\\d+\\.)",wo="(?:[*+-])";function fp(e){return"( *)("+(e===1?Fo:wo)+") +"}var hp=fp(1),mp=fp(2);function yp(e){return new RegExp("^"+(e===1?hp:mp))}var MF=yp(1),jF=yp(2);function gp(e){return new RegExp("^"+(e===1?hp:mp)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Fo:wo)+" )[^\\n]*)*(\\n|$)","gm")}var bp=gp(1),Ep=gp(2);function Ap(e){let t=e===1?Fo:wo;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var vp=Ap(1),Dp=Ap(2);function tp(e,t){let r=t===1,n=r?vp:Dp,a=r?bp:Ep,o=r?MF:jF;return{t(u,i,s){let h=qF.exec(s);return h&&(i.o||!i._&&!i.u)?n.exec(u=h[1]+u):null},i:Z.HIGH,l(u,i,s){let h=r?+u[2]:void 0,g=u[0].replace(ZS,` +`).match(a),E=!1;return{p:g.map(function(y,m){let A=o.exec(y)[0].length,b=new RegExp("^ {1,"+A+"}","gm"),x=y.replace(b,"").replace(o,""),T=m===g.length-1,O=x.indexOf(` + +`)!==-1||T&&E;E=O;let R=s._,M=s.o,F;s.o=!0,O?(s._=!1,F=x.replace(ep,` + +`)):(s._=!0,F=x.replace(ep,""));let q=i(F,s);return s._=R,s.o=M,q}),m:r,g:h}},h:(u,i,s)=>e(u.m?"ol":"ul",{key:s.k,start:u.g},u.p.map(function(h,g){return e("li",{key:g},i(h,s))}))}}var $F=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,UF=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Cp=[op,up,ip,sp,cp,lp,dp,pp,bp,vp,Ep,Dp],HF=[...Cp,/^[^\n]+(?: \n|\n{2,})/,xo,So];function zF(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function GF(e){return BF.test(e)?"right":FF.test(e)?"center":wF.test(e)?"left":null}function rp(e,t,r){let n=r.$;r.$=!0;let a=t(e.trim(),r);r.$=n;let o=[[]];return a.forEach(function(u,i){u.type==="tableSeparator"?i!==0&&i!==a.length-1&&o.push([]):(u.type!=="text"||a[i+1]!=null&&a[i+1].type!=="tableSeparator"||(u.v=u.v.replace(SF,"")),o[o.length-1].push(u))}),o}function WF(e,t,r){r._=!0;let n=rp(e[1],t,r),a=e[2].replace(xF,"").split("|").map(GF),o=function(u,i,s){return u.trim().split(` +`).map(function(h){return rp(h,i,s)})}(e[3],t,r);return r._=!1,{S:a,A:o,L:n,type:"table"}}function np(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function st(e){return function(t,r){return r._?e.exec(t):null}}function lt(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Qe(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function xr(e){return function(t){return e.exec(t)}}function VF(e,t,r){if(t._||t.u||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(o=>!Cp.some(u=>u.test(o))&&(n+=o+` +`,o.trim()));let a=n.trimEnd();return a==""?null:[n,a]}function Ut(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function ap(e){return e.replace(LF,"$1")}function Dn(e,t,r){let n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function KF(e,t,r){let n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function YF(e,t,r){return r._=!1,e(t,r)}var Ao=(e,t,r)=>({v:Dn(t,e[1],r)});function vo(){return{}}function Do(){return null}function JF(...e){return e.filter(Boolean).join(" ")}function Co(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var Z;function XF(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||zF,t.namedCodesToUnicode=t.namedCodesToUnicode?vt({},Zd,t.namedCodesToUnicode):Zd;let r=t.createElement||ua;function n(m,A,...b){let x=Co(t.overrides,`${m}.props`,{});return r(function(T,O){let R=Co(O,T);return R?typeof R=="function"||typeof R=="object"&&"render"in R?R:Co(O,`${T}.component`,T):T}(m,t.overrides),vt({},A,x,{className:JF(A?.className,x.className)||void 0}),...b)}function a(m){let A=!1;t.forceInline?A=!0:t.forceBlock||(A=vF.test(m)===!1);let b=g(h(A?m:`${m.trimEnd().replace(kF,"")} + +`,{_:A}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;let x=t.wrapper||(A?"span":"div"),T;if(b.length>1||t.forceWrapper)T=b;else{if(b.length===1)return T=b[0],typeof T=="string"?n("span",{key:"outer"},T):T;T=null}return ua(x,{key:"outer"},T)}function o(m){let A=m.match(XS);return A?A.reduce(function(b,x,T){let O=x.indexOf("=");if(O!==-1){let R=function(k){return k.indexOf("-")!==-1&&k.match(dF)===null&&(k=k.replace(yF,function(H,V){return V.toUpperCase()})),k}(x.slice(0,O)).trim(),M=function(k){let H=k[0];return(H==='"'||H==="'")&&k.length>=2&&k[k.length-1]===H?k.slice(1,-1):k}(x.slice(O+1).trim()),F=Qd[R]||R,q=b[F]=function(k,H){return k==="style"?H.split(/;\s?/).reduce(function(V,U){let se=U.slice(0,U.indexOf(":"));return V[se.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=U.slice(se.length+1).trim(),V},{}):k==="href"?Ut(H):(H.match(pF)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(R,M);typeof q=="string"&&(xo.test(q)||So.test(q))&&(b[F]=de(a(q.trim()),{key:T}))}else x!=="style"&&(b[Qd[x]||x]=!0);return b},{}):null}let u=[],i={},s={blockQuote:{t:Qe(op),i:Z.HIGH,l:(m,A,b)=>({v:A(m[0].replace(eF,""),b)}),h:(m,A,b)=>n("blockquote",{key:b.k},A(m.v,b))},breakLine:{t:xr(tF),i:Z.HIGH,l:vo,h:(m,A,b)=>n("br",{key:b.k})},breakThematic:{t:Qe(rF),i:Z.HIGH,l:vo,h:(m,A,b)=>n("hr",{key:b.k})},codeBlock:{t:Qe(ip),i:Z.MAX,l:m=>({v:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(m,A,b)=>n("pre",{key:b.k},n("code",vt({},m.O,{className:m.M?`lang-${m.M}`:""}),m.v))},codeFenced:{t:Qe(up),i:Z.MAX,l:m=>({O:o(m[3]||""),v:m[4],M:m[2]||void 0,type:"codeBlock"})},codeInline:{t:lt(nF),i:Z.LOW,l:m=>({v:m[2]}),h:(m,A,b)=>n("code",{key:b.k},m.v)},footnote:{t:Qe(uF),i:Z.MAX,l:m=>(u.push({I:m[2],j:m[1]}),{}),h:Do},footnoteReference:{t:st(iF),i:Z.HIGH,l:m=>({v:m[1],B:`#${t.slugify(m[1])}`}),h:(m,A,b)=>n("a",{key:b.k,href:Ut(m.B)},n("sup",{key:b.k},m.v))},gfmTask:{t:st(lF),i:Z.HIGH,l:m=>({R:m[1].toLowerCase()==="x"}),h:(m,A,b)=>n("input",{checked:m.R,key:b.k,readOnly:!0,type:"checkbox"})},heading:{t:Qe(t.enforceAtxHeadings?lp:sp),i:Z.HIGH,l:(m,A,b)=>({v:Dn(A,m[2],b),T:t.slugify(m[2]),C:m[1].length}),h:(m,A,b)=>n(`h${m.C}`,{id:m.T,key:b.k},A(m.v,b))},headingSetext:{t:Qe(cp),i:Z.MAX,l:(m,A,b)=>({v:Dn(A,m[1],b),C:m[2]==="="?1:2,type:"heading"})},htmlComment:{t:xr(dp),i:Z.HIGH,l:()=>({}),h:Do},image:{t:lt(UF),i:Z.HIGH,l:m=>({D:m[1],B:ap(m[2]),F:m[3]}),h:(m,A,b)=>n("img",{key:b.k,alt:m.D||void 0,title:m.F||void 0,src:Ut(m.B)})},link:{t:st($F),i:Z.LOW,l:(m,A,b)=>({v:KF(A,m[1],b),B:ap(m[2]),F:m[3]}),h:(m,A,b)=>n("a",{key:b.k,href:Ut(m.B),title:m.F},A(m.v,b))},linkAngleBraceStyleDetector:{t:st(mF),i:Z.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],type:"link"})},linkBareUrlDetector:{t:(m,A)=>A.N?null:st(fF)(m,A),i:Z.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],F:void 0,type:"link"})},linkMailtoDetector:{t:st(hF),i:Z.MAX,l(m){let A=m[1],b=m[1];return QS.test(b)||(b="mailto:"+b),{v:[{v:A.replace("mailto:",""),type:"text"}],B:b,type:"link"}}},orderedList:tp(n,1),unorderedList:tp(n,2),newlineCoalescer:{t:Qe(aF),i:Z.LOW,l:vo,h:()=>` +`},paragraph:{t:VF,i:Z.LOW,l:Ao,h:(m,A,b)=>n("p",{key:b.k},A(m.v,b))},ref:{t:st(gF),i:Z.MAX,l:m=>(i[m[1]]={B:m[2],F:m[4]},{}),h:Do},refImage:{t:lt(bF),i:Z.MAX,l:m=>({D:m[1]||void 0,P:m[2]}),h:(m,A,b)=>n("img",{key:b.k,alt:m.D,src:Ut(i[m.P].B),title:i[m.P].F})},refLink:{t:st(EF),i:Z.MAX,l:(m,A,b)=>({v:A(m[1],b),Z:A(m[0].replace(AF,"\\$1"),b),P:m[2]}),h:(m,A,b)=>i[m.P]?n("a",{key:b.k,href:Ut(i[m.P].B),title:i[m.P].F},A(m.v,b)):n("span",{key:b.k},A(m.Z,b))},table:{t:Qe(pp),i:Z.HIGH,l:WF,h:(m,A,b)=>n("table",{key:b.k},n("thead",null,n("tr",null,m.L.map(function(x,T){return n("th",{key:T,style:np(m,T)},A(x,b))}))),n("tbody",null,m.A.map(function(x,T){return n("tr",{key:T},x.map(function(O,R){return n("td",{key:R,style:np(m,R)},A(O,b))}))})))},tableSeparator:{t:function(m,A){return A.$?(A._=!0,CF.exec(m)):null},i:Z.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:xr(PF),i:Z.MIN,l:m=>({v:m[0].replace(cF,(A,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:A)}),h:m=>m.v},textBolded:{t:lt(TF),i:Z.MED,l:(m,A,b)=>({v:A(m[2],b)}),h:(m,A,b)=>n("strong",{key:b.k},A(m.v,b))},textEmphasized:{t:lt(IF),i:Z.LOW,l:(m,A,b)=>({v:A(m[2],b)}),h:(m,A,b)=>n("em",{key:b.k},A(m.v,b))},textEscaped:{t:lt(RF),i:Z.HIGH,l:m=>({v:m[1],type:"text"})},textMarked:{t:lt(_F),i:Z.LOW,l:Ao,h:(m,A,b)=>n("mark",{key:b.k},A(m.v,b))},textStrikethroughed:{t:lt(OF),i:Z.LOW,l:Ao,h:(m,A,b)=>n("del",{key:b.k},A(m.v,b))}};t.disableParsingRawHTML!==!0&&(s.htmlBlock={t:xr(xo),i:Z.HIGH,l(m,A,b){let[,x]=m[3].match(NF),T=new RegExp(`^${x}`,"gm"),O=m[3].replace(T,""),R=(M=O,HF.some(H=>H.test(M))?YF:Dn);var M;let F=m[1].toLowerCase(),q=JS.indexOf(F)!==-1;b.N=b.N||F==="a";let k=q?m[3]:R(A,O,b);return b.N=!1,{O:o(m[2]),v:k,G:q,H:q?F:m[1]}},h:(m,A,b)=>n(m.H,vt({key:b.k},m.O),m.G?m.v:A(m.v,b))},s.htmlSelfClosing={t:xr(So),i:Z.HIGH,l:m=>({O:o(m[2]||""),H:m[1]}),h:(m,A,b)=>n(m.H,vt({},m.O,{key:b.k}))});let h=function(m){let A=Object.keys(m);function b(x,T){let O=[],R="";for(;x;){let M=0;for(;M{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var u,i,s={},h=Object.keys(a);for(i=0;i=0||(s[u]=a[u]);return s}(e,YS);return de(XF(t,r),n)};var Eg=De(Cn(),1),Ag=De(Gp(),1),vg=De(Xf(),1);l();c();d();l();c();d();var xQ=__STORYBOOK_CHANNELS__,{Channel:Io,PostMessageTransport:SQ,WebsocketTransport:FQ,createBrowserChannel:wQ}=__STORYBOOK_CHANNELS__;var wm=De(Cn(),1),Or=De(_o(),1),M8=De(R0(),1);l();c();d();l();c();d();l();c();d();l();c();d();function Oo(e){for(var t=[],r=1;r(e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e))(IB||{});var $n=De(L0(),1);var Bm=De(M0(),1),Tm=De(go(),1);l();c();d();var j8=De(Cm(),1),$8=Object.create,Im=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,_m=Object.getOwnPropertyNames,H8=Object.getPrototypeOf,z8=Object.prototype.hasOwnProperty,Ze=(e,t)=>function(){return t||(0,e[_m(e)[0]])((t={exports:{}}).exports,t),t.exports},G8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _m(t))!z8.call(e,a)&&a!==r&&Im(e,a,{get:()=>t[a],enumerable:!(n=U8(t,a))||n.enumerable});return e},W8=(e,t,r)=>(r=e!=null?$8(H8(e)):{},G8(t||!e||!e.__esModule?Im(r,"default",{value:e,enumerable:!0}):r,e)),Om=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),V8=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),Rm=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),K8=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),Y8=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(K8()),n=String.fromCodePoint||function(o){var u="";return o>65535&&(o-=65536,u+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),u+=String.fromCharCode(o),u};function a(o){return o>=55296&&o<=57343||o>1114111?"\uFFFD":(o in r.default&&(o=r.default[o]),n(o))}e.default=a}}),xm=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Om()),n=t(V8()),a=t(Rm()),o=t(Y8()),u=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=i(a.default),e.decodeHTMLStrict=i(r.default);function i(g){var E=h(g);return function(y){return String(y).replace(u,E)}}var s=function(g,E){return g1?E(O):O.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(O,R){return function(M){return M.replace(R,function(F){return O[F]}).replace(g,y)}}var A=new RegExp(a.source+"|"+g.source,"g");function b(O){return O.replace(A,y)}e.escape=b;function x(O){return O.replace(a,y)}e.escapeUTF8=x;function T(O){return function(R){return R.replace(A,function(M){return O[M]||y(M)})}}}}),J8=Ze({"../../node_modules/ansi-to-html/node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=xm(),r=Sm();function n(s,h){return(!h||h<=0?t.decodeXML:t.decodeHTML)(s)}e.decode=n;function a(s,h){return(!h||h<=0?t.decodeXML:t.decodeHTMLStrict)(s)}e.decodeStrict=a;function o(s,h){return(!h||h<=0?r.encodeXML:r.encodeHTML)(s)}e.encode=o;var u=Sm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var i=xm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return i.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return i.decodeXML}})}}),X8=Ze({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(_,B){if(!(_ instanceof B))throw new TypeError("Cannot call a class as a function")}function n(_,B){for(var j=0;j"u"||_[Symbol.iterator]==null){if(Array.isArray(_)||(_=u(_))){var B=0,j=function(){};return{s:j,n:function(){return B>=_.length?{done:!0}:{done:!1,value:_[B++]}},e:function(oe){throw oe},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,Y=!0,K=!1,ee;return{s:function(){G=_[Symbol.iterator]()},n:function(){var oe=G.next();return Y=oe.done,oe},e:function(oe){K=!0,ee=oe},f:function(){try{!Y&&G.return!=null&&G.return()}finally{if(K)throw ee}}}}function u(_,B){if(_){if(typeof _=="string")return i(_,B);var j=Object.prototype.toString.call(_).slice(8,-1);if(j==="Object"&&_.constructor&&(j=_.constructor.name),j==="Map"||j==="Set")return Array.from(j);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return i(_,B)}}function i(_,B){(B==null||B>_.length)&&(B=_.length);for(var j=0,G=new Array(B);j0?_*40+55:0,ee=B>0?B*40+55:0,oe=j>0?j*40+55:0;G[Y]=m([K,ee,oe])}function y(_){for(var B=_.toString(16);B.length<2;)B="0"+B;return B}function m(_){var B=[],j=o(_),G;try{for(j.s();!(G=j.n()).done;){var Y=G.value;B.push(y(Y))}}catch(K){j.e(K)}finally{j.f()}return"#"+B.join("")}function A(_,B,j,G){var Y;return B==="text"?Y=F(j,G):B==="display"?Y=x(_,j,G):B==="xterm256"?Y=H(_,G.colors[j]):B==="rgb"&&(Y=b(_,j)),Y}function b(_,B){B=B.substring(2).slice(0,-1);var j=+B.substr(0,2),G=B.substring(5).split(";"),Y=G.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return k(_,(j===38?"color:#":"background-color:#")+Y)}function x(_,B,j){B=parseInt(B,10);var G={"-1":function(){return"
"},0:function(){return _.length&&T(_)},1:function(){return q(_,"b")},3:function(){return q(_,"i")},4:function(){return q(_,"u")},8:function(){return k(_,"display:none")},9:function(){return q(_,"strike")},22:function(){return k(_,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return U(_,"i")},24:function(){return U(_,"u")},39:function(){return H(_,j.fg)},49:function(){return V(_,j.bg)},53:function(){return k(_,"text-decoration:overline")}},Y;return G[B]?Y=G[B]():4"}).join("")}function O(_,B){for(var j=[],G=_;G<=B;G++)j.push(G);return j}function R(_){return function(B){return(_===null||B.category!==_)&&_!=="all"}}function M(_){_=parseInt(_,10);var B=null;return _===0?B="all":_===1?B="bold":2<_&&_<5?B="underline":4<_&&_<7?B="blink":_===8?B="hide":_===9?B="strike":29<_&&_<38||_===39||89<_&&_<98?B="foreground-color":(39<_&&_<48||_===49||99<_&&_<108)&&(B="background-color"),B}function F(_,B){return B.escapeXML?s.encodeXML(_):_}function q(_,B,j){return j||(j=""),_.push(B),"<".concat(B).concat(j?' style="'.concat(j,'"'):"",">")}function k(_,B){return q(_,"span",B)}function H(_,B){return q(_,"span","color:"+B)}function V(_,B){return q(_,"span","background-color:"+B)}function U(_,B){var j;if(_.slice(-1)[0]===B&&(j=_.pop()),j)return""}function se(_,B,j){var G=!1,Y=3;function K(){return""}function ee(ae,be){return j("xterm256",be),""}function oe(ae){return B.newline?j("display",-1):j("text",ae),""}function Ie(ae,be){G=!0,be.trim().length===0&&(be="0"),be=be.trimRight(";").split(";");var jr=o(be),qu;try{for(jr.s();!(qu=jr.n()).done;){var Hg=qu.value;j("display",Hg)}}catch(zg){jr.e(zg)}finally{jr.f()}return""}function _e(ae){return j("text",ae),""}function X(ae){return j("rgb",ae),""}var Le=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:X},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ee},{pattern:/^\n/,sub:oe},{pattern:/^\r+\n/,sub:oe},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Ie},{pattern:/^\x1b\[\d?J/,sub:K},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:K},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:K},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:_e}];function w(ae,be){be>Y&&G||(G=!1,_=_.replace(ae.pattern,ae.sub))}var P=[],N=_,I=N.length;e:for(;I>0;){for(var $=0,z=0,ce=Le.length;z{},send:()=>{}};return new Io({transport:e})}var Z8=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Q8();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},uu="__STORYBOOK_ADDONS_PREVIEW";function e6(){return pe[uu]||(pe[uu]=new Z8),pe[uu]}var ene=e6();var tne=(0,wm.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var rne=Symbol("incompatible");var nne=Symbol("Deeply equal");var t6=Oo` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`,ane=(0,Bm.default)(()=>{},t6);var Un=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([u,i])=>{let s=a[u];Array.isArray(i)||typeof s>"u"?a[u]=i:(0,$n.default)(i)&&(0,$n.default)(s)?t[u]=!0:typeof i<"u"&&(a[u]=i)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(u=>u[a]).filter(u=>typeof u<"u");o.every(u=>(0,$n.default)(u))?n[a]=Un(...o):n[a]=o[o.length-1]}),n};var iu=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(At.warn(Oo` + We've detected a cycle in arg '${t}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?iu(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Or.default)(e,a=>iu(a,t,new Set(r)))}):{name:"object",value:{}}},r6=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,a=(0,Or.default)(n,(u,i)=>({name:i,type:iu(u,`${t}.${i}`,new Set)})),o=(0,Or.default)(r,(u,i)=>({name:i}));return Un(a,o,r)};r6.secondPass=!0;var Fm=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),Pm=(e,t,r)=>!t&&!r?e:e&&(0,Tm.default)(e,(n,a)=>{let o=n.name||a;return(!t||Fm(o,t))&&(!r||!Fm(o,r))}),n6=(e,t,r)=>{let{type:n,options:a}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&At.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:a?"select":"object"}}}}},a6=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:a=null,matchers:o={}}={}}}=e;if(!r)return t;let u=Pm(t,n,a),i=(0,Or.default)(u,(s,h)=>s?.type&&n6(s,h,o));return Un(i,u)};a6.secondPass=!0;var one=new Error("prepareAborted"),{AbortController:une}=globalThis;var{fetch:ine}=pe;var{history:sne,document:lne}=pe;var o6=W8(X8()),{document:cne}=pe;var u6=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(u6||{});var dne=new o6.default({escapeXML:!0});var{document:pne}=pe;l();c();d();var l6=De(_o(),1),c6=De(zm(),1);var d6=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(d6||{});var Gm="storybook/docs",eae=`${Gm}/panel`;var p6=`${Gm}/snippet-rendered`,Wm=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Wm||{});l();c();d();l();c();d();var f6=Object.create,Vm=Object.defineProperty,h6=Object.getOwnPropertyDescriptor,Km=Object.getOwnPropertyNames,m6=Object.getPrototypeOf,y6=Object.prototype.hasOwnProperty,Re=(e,t)=>function(){return t||(0,e[Km(e)[0]])((t={exports:{}}).exports,t),t.exports},g6=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Km(t))!y6.call(e,a)&&a!==r&&Vm(e,a,{get:()=>t[a],enumerable:!(n=h6(t,a))||n.enumerable});return e},zn=(e,t,r)=>(r=e!=null?f6(m6(e)):{},g6(t||!e||!e.__esModule?Vm(r,"default",{value:e,enumerable:!0}):r,e)),b6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],E6=["detail"];function Ym(e){let t=b6.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&E6.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var cy=De(Cn(),1),ty=Re({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var u=42;n[a]=u;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var i=Object.getOwnPropertySymbols(n);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,a);if(s.value!==u||s.enumerable!==!0)return!1}return!0}}}),ry=Re({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,n=ty();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),A6=Re({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var h=n.call(arguments,1),g,E=function(){if(this instanceof g){var x=s.apply(this,h.concat(n.call(arguments)));return Object(x)===x?x:this}else return s.apply(i,h.concat(n.call(arguments)))},y=Math.max(0,s.length-h.length),m=[],A=0;A"u"?r:E(Uint8Array),A={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g?E([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?E(E([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g?r:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g?r:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?E(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":h,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},b=function te(J){var _;if(J==="%AsyncFunction%")_=u("async function () {}");else if(J==="%GeneratorFunction%")_=u("function* () {}");else if(J==="%AsyncGeneratorFunction%")_=u("async function* () {}");else if(J==="%AsyncGenerator%"){var B=te("%AsyncGeneratorFunction%");B&&(_=B.prototype)}else if(J==="%AsyncIteratorPrototype%"){var j=te("%AsyncGenerator%");j&&(_=E(j.prototype))}return A[J]=_,_},x={"%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"]},T=pu(),O=v6(),R=T.call(Function.call,Array.prototype.concat),M=T.call(Function.apply,Array.prototype.splice),F=T.call(Function.call,String.prototype.replace),q=T.call(Function.call,String.prototype.slice),k=T.call(Function.call,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,U=function(J){var _=q(J,0,1),B=q(J,-1);if(_==="%"&&B!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(B==="%"&&_!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var j=[];return F(J,H,function(G,Y,K,ee){j[j.length]=K?F(ee,V,"$1"):Y||G}),j},se=function(J,_){var B=J,j;if(O(x,B)&&(j=x[B],B="%"+j[0]+"%"),O(A,B)){var G=A[B];if(G===y&&(G=b(B)),typeof G>"u"&&!_)throw new o("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:j,name:B,value:G}}throw new n("intrinsic "+J+" does not exist!")};t.exports=function(J,_){if(typeof J!="string"||J.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,J)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=U(J),j=B.length>0?B[0]:"",G=se("%"+j+"%",_),Y=G.name,K=G.value,ee=!1,oe=G.alias;oe&&(j=oe[0],M(B,R([0,1],oe)));for(var Ie=1,_e=!0;Ie=B.length){var P=i(K,X);_e=!!P,_e&&"get"in P&&!("originalValue"in P.get)?K=P.get:K=K[X]}else _e=O(K,X),K=K[X];_e&&!ee&&(A[Y]=K)}}return K}}}),D6=Re({"node_modules/call-bind/index.js"(e,t){"use strict";var r=pu(),n=ny(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||r.call(o,a),i=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),h=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(y){var m=u(r,o,arguments);if(i&&s){var A=i(m,"length");A.configurable&&s(m,"length",{value:1+h(0,y.length-(arguments.length-1))})}return m};var g=function(){return u(r,a,arguments)};s?s(t.exports,"apply",{value:g}):t.exports.apply=g}}),C6=Re({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=ny(),n=D6(),a=n(r("String.prototype.indexOf"));t.exports=function(u,i){var s=r(u,!!i);return typeof s=="function"&&a(u,".prototype.")>-1?n(s):s}}}),x6=Re({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=ty();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),S6=Re({"node_modules/is-regex/index.js"(e,t){"use strict";var r=C6(),n=x6()(),a,o,u,i;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),u={},s=function(){throw u},i={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(i[Symbol.toPrimitive]=s));var s,h=r("Object.prototype.toString"),g=Object.getOwnPropertyDescriptor,E="[object RegExp]";t.exports=n?function(m){if(!m||typeof m!="object")return!1;var A=g(m,"lastIndex"),b=A&&a(A,"value");if(!b)return!1;try{o(m,i)}catch(x){return x===u}}:function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:h(m)===E}}}),F6=Re({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),w6=Re({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,n=ry()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,u=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return u(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,u}}),B6=zn(S6()),T6=zn(F6()),I6=zn(w6());function _6(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var O6=typeof window=="object"&&window&&window.Object===Object&&window,R6=O6,P6=typeof self=="object"&&self&&self.Object===Object&&self,k6=R6||P6||Function("return this")(),fu=k6,N6=fu.Symbol,Zt=N6,ay=Object.prototype,L6=ay.hasOwnProperty,q6=ay.toString,kr=Zt?Zt.toStringTag:void 0;function M6(e){var t=L6.call(e,kr),r=e[kr];try{e[kr]=void 0;var n=!0}catch{}var a=q6.call(e);return n&&(t?e[kr]=r:delete e[kr]),a}var j6=M6,$6=Object.prototype,U6=$6.toString;function H6(e){return U6.call(e)}var z6=H6,G6="[object Null]",W6="[object Undefined]",Jm=Zt?Zt.toStringTag:void 0;function V6(e){return e==null?e===void 0?W6:G6:Jm&&Jm in Object(e)?j6(e):z6(e)}var oy=V6;function K6(e){return e!=null&&typeof e=="object"}var Y6=K6,J6="[object Symbol]";function X6(e){return typeof e=="symbol"||Y6(e)&&oy(e)==J6}var hu=X6;function Q6(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r-1}var s_=i_;function l_(e,t){var r=this.__data__,n=Wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var c_=l_;function tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let u=0;uV_(e).replace(/\n\s*/g,"").trim()),Y_=function(t,r){let n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let o=n;return o=o.replace(t,"function"),o+a},J_=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,X_=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function dy(e){if(!Gn(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Ym(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Q_=function(t){let r,n,a,o;return function(i,s){try{if(i==="")return o=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;let h=n.get(this)||this;for(;a.length&&h!==a[0];)a.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return J_.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,B6.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,T6.default)(s)){if(!t.allowFunction)return;let{name:E}=s,y=s.toString();return y.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${E}|${(()=>{}).toString()}`:`_function_${E}|${K_(Y_(i,y))}`}if((0,I6.default)(s)){if(!t.allowSymbol)return;let E=Symbol.keyFor(s);return E!==void 0?`_gsymbol_${E}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;let g=r.get(s);if(!g){let E=Array.isArray(s)?s:dy(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(E,{"_constructor-name_":s.constructor.name})}catch{}return o.push(i),a.unshift(E),r.set(s,JSON.stringify(o)),s!==E&&n.set(s,E),E}return`_duplicate_${g}`}catch{return}}},Z_=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=X_(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=W_(root,n)})),key==="_constructor-name_")return value;if(Gn(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(Gn(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},py={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},eO=(e,t={})=>{let r={...py,...t};return JSON.stringify(dy(e),Q_(r),t.space)},tO=()=>{let e=new Map;return function t(r){Gn(r)&&Object.entries(r).forEach(([n,a])=>{a==="_undefined_"?r[n]=void 0:e.get(a)||(e.set(a,!0),t(a))}),Array.isArray(r)&&r.forEach((n,a)=>{n==="_undefined_"?(e.set(n,!0),r[a]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},cae=(e,t={})=>{let r={...py,...t},n=JSON.parse(e,Z_(r));return tO()(n),n};l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();var b4=L.div(It,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ue(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Dg=e=>p.createElement(b4,{...e,className:"docblock-emptyblock sb-unstyled"}),E4=L($r)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),A4=L.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),ea=L.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${pi}`]:{margin:0}})),v4=()=>p.createElement(A4,null,p.createElement(ea,null),p.createElement(ea,{style:{width:"80%"}}),p.createElement(ea,{style:{width:"30%"}}),p.createElement(ea,{style:{width:"80%"}})),D4=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...u})=>{let{typography:i}=Sa();if(e)return p.createElement(v4,null);if(t)return p.createElement(Dg,null,t);let s=p.createElement(E4,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...u},n);if(typeof a>"u")return s;let h=a?xa.dark:xa.light;return p.createElement(ci,{theme:di({...h,fontCode:i.fonts.mono,fontBase:i.fonts.base})},s)},ye=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Pu=600,Eue=L.h1(It,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Pu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Aue=L.h2(It,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Pu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ue(.25,e.color.defaultText)})),vue=L.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ue(.1,e.color.defaultText):ue(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ye("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ye("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ye("div")]:t,[ye("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ye("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ye("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ye("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ye("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ye("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ye("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ye("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ye("img")]:{maxWidth:"100%"},[ye("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ye("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ye("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ye("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ye("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ye("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ye("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Due=L.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Pu}px)`]:{}}));var na=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),C4=L(pa)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),x4=L.div({display:"flex",alignItems:"center",gap:4}),S4=L.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),F4=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>p.createElement(C4,{...o},p.createElement(x4,{key:"left"},e?[1,2,3].map(u=>p.createElement(S4,{key:u})):p.createElement(p.Fragment,null,p.createElement(qe,{key:"zoomin",onClick:u=>{u.preventDefault(),n(.8)},title:"Zoom in"},p.createElement(Ri,null)),p.createElement(qe,{key:"zoomout",onClick:u=>{u.preventDefault(),n(1.25)},title:"Zoom out"},p.createElement(Pi,null)),p.createElement(qe,{key:"zoomreset",onClick:u=>{u.preventDefault(),a()},title:"Reset zoom"},p.createElement(ki,null))))),w4=sr({scale:1}),{window:Cue}=pe;var{PREVIEW_URL:xue}=pe;var B4=L.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),ug=L(D4)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":je(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":je(.05,e.background.content)}})),T4=L.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...na(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),I4=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:p.createElement(ug,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:p.createElement(ug,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function _4(e){if(ju.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var O4=L(F4)({position:"absolute",top:0,left:0,right:0,height:40}),R4=L.div({overflow:"hidden",position:"relative"}),P4=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:u=!1,additionalActions:i,className:s,layout:h="padded",...g})=>{let[E,y]=ne(u),{source:m,actionItem:A}=I4(a,E,y),[b,x]=ne(1),T=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),O=a?[A]:[],[R,M]=ne(i?[...i]:[]),F=[...O,...R],{window:q}=pe,k=Ee(async V=>{let{createCopyToClipboardFunction:U}=await Promise.resolve().then(()=>(lr(),Zu));U()},[]),H=V=>{let U=q.getSelection();U&&U.type==="Range"||(V.preventDefault(),R.filter(se=>se.title==="Copied").length===0&&k(m.props.code).then(()=>{M([...R,{title:"Copied",onClick:()=>{}}]),q.setTimeout(()=>M(R.filter(se=>se.title!=="Copied")),1500)}))};return p.createElement(T4,{withSource:a,withToolbar:o,...g,className:T.join(" ")},o&&p.createElement(O4,{isLoading:e,border:!0,zoom:V=>x(b*V),resetZoom:()=>x(1),storyId:_4(n),baseUrl:"./iframe.html"}),p.createElement(w4.Provider,{value:{scale:b}},p.createElement(R4,{className:"docs-story",onCopyCapture:a&&H},p.createElement(B4,{isColumn:t||!Array.isArray(n),columns:r,layout:h},p.createElement(ga.Element,{scale:b},Array.isArray(n)?n.map((V,U)=>p.createElement("div",{key:U},V)):p.createElement("div",null,n))),p.createElement(ia,{actionItems:F}))),a&&E&&m)};L(P4)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var k4=L.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Tt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),N4=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:p.createElement(p.Fragment,null,p.createElement(k4,null,p.createElement("tbody",null,n&&p.createElement("tr",{key:"deprecated"},p.createElement("td",{colSpan:2},p.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>p.createElement("tr",{key:o.name},p.createElement("td",null,p.createElement("code",null,o.name)),p.createElement("td",null,o.description))),a&&p.createElement("tr",{key:"returns"},p.createElement("td",null,p.createElement("code",null,"Returns")),p.createElement("td",null,e.returns.description)))))},_u=8,ig=L.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),L4=L.span(Tt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),q4=L.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),M4=L.div(Tt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),j4=L.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),$4=L(Fi)({marginLeft:4}),U4=L(Ra)({marginLeft:4}),H4=()=>p.createElement("span",null,"-"),Cg=({text:e,simple:t})=>p.createElement(L4,{simple:t},e),z4=(0,Eg.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),G4=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return(0,Ag.default)(t)},sg=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,_u)),r.map(n=>p.createElement(Cg,{key:n,text:n===""?'""':n}))},W4=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=ne(!1),[u,i]=ne(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return p.createElement(Cg,{text:s});let h=G4(s),g=h.length;return g>_u?p.createElement(ig,{isExpanded:u},sg(h,u),p.createElement(q4,{onClick:()=>i(!u)},u?"Show less...":`Show ${g-_u} more...`)):p.createElement(ig,null,sg(h))}return p.createElement(ya,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:h=>{o(h)},tooltip:p.createElement(j4,{width:z4(n)},p.createElement($r,{language:"jsx",format:!1},n))},p.createElement(M4,{className:"sbdocs-expandable"},p.createElement("span",null,s),a?p.createElement($4,null):p.createElement(U4,null)))},Bu=({value:e,initialExpandedArgs:t})=>e==null?p.createElement(H4,null):p.createElement(W4,{value:e,initialExpandedArgs:t}),V4=L.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ue(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${pr(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${pr(.05,e.appBorderColor)} 0 0 0 2px inset`,color:pr(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${pr(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),K4=e=>e==="true",Y4=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{let u=Ee(()=>r(!1),[r]),i=!!o?.table?.readonly;if(t===void 0)return p.createElement(Je,{variant:"outline",size:"medium",id:cr(e),onClick:u,disabled:i},"Set boolean");let s=Be(e),h=typeof t=="string"?K4(t):t;return p.createElement(V4,{"aria-disabled":i,htmlFor:s,"aria-label":e},p.createElement("input",{id:s,type:"checkbox",onChange:g=>r(g.target.checked),checked:h,role:"switch",disabled:i,name:e,onBlur:n,onFocus:a}),p.createElement("span",{"aria-hidden":"true"},"False"),p.createElement("span",{"aria-hidden":"true"},"True"))},J4=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},X4=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Q4=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},Z4=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},lg=L(ke.Input)(({readOnly:e})=>({opacity:e?.5:1})),e9=L.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),t9=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{let[u,i]=ne(!0),s=Fe(),h=Fe(),g=!!o?.table?.readonly;he(()=>{u!==!1&&(s&&s.current&&(s.current.value=Q4(t)),h&&h.current&&(h.current.value=Z4(t)))},[t]);let E=A=>{let b=J4(A.target.value),x=new Date(t);x.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let T=x.getTime();T&&r(T),i(!!T)},y=A=>{let b=X4(A.target.value),x=new Date(t);x.setHours(b.getHours()),x.setMinutes(b.getMinutes());let T=x.getTime();T&&r(T),i(!!T)},m=Be(e);return p.createElement(e9,null,p.createElement(lg,{type:"date",max:"9999-12-31",ref:s,id:`${m}-date`,name:`${m}-date`,readOnly:g,onChange:E,onFocus:n,onBlur:a}),p.createElement(lg,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:h,onChange:y,readOnly:g,onFocus:n,onBlur:a}),u?null:p.createElement("div",null,"invalid"))},r9=L.label({display:"flex"}),n9=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t};var a9=L(ke.Input)(({readOnly:e})=>({opacity:e?.5:1})),o9=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:u,onFocus:i,argType:s})=>{let[h,g]=ne(typeof t=="number"?t:""),[E,y]=ne(!1),[m,A]=ne(null),b=!!s?.table?.readonly,x=Ee(R=>{g(R.target.value);let M=parseFloat(R.target.value);Number.isNaN(M)?A(new Error(`'${R.target.value}' is not a number`)):(r(M),A(null))},[r,A]),T=Ee(()=>{g("0"),r(0),y(!0)},[y]),O=Fe(null);return he(()=>{E&&O.current&&O.current.select()},[E]),he(()=>{h!==(typeof t=="number"?t:"")&&g(t)},[t]),t===void 0?p.createElement(Je,{variant:"outline",size:"medium",id:cr(e),onClick:T,disabled:b},"Set number"):p.createElement(r9,null,p.createElement(a9,{ref:O,id:Be(e),type:"number",onChange:x,size:"flex",placeholder:"Edit number...",value:h,valid:m?"error":null,autoFocus:E,readOnly:b,name:e,min:n,max:a,step:o,onFocus:i,onBlur:u}))},xg=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Ou=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Sg=(e,t)=>e&&t&&e.map(r=>t[r]),u9=L.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),i9=L.span({"[aria-readonly=true] &":{opacity:.5}}),s9=L.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),cg=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return At.warn(`Checkbox with no options: ${e}`),p.createElement(p.Fragment,null,"-");let u=Ou(r,t),[i,s]=ne(u),h=!!o?.table?.readonly,g=y=>{let m=y.target.value,A=[...i];A.includes(m)?A.splice(A.indexOf(m),1):A.push(m),n(Sg(A,t)),s(A)};he(()=>{s(Ou(r,t))},[r]);let E=Be(e);return p.createElement(u9,{"aria-readonly":h,isInline:a},Object.keys(t).map((y,m)=>{let A=`${E}-${m}`;return p.createElement(s9,{key:A,htmlFor:A},p.createElement("input",{type:"checkbox",disabled:h,id:A,name:A,value:y,onChange:g,checked:i?.includes(y)}),p.createElement(i9,null,y))}))},l9=L.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),c9=L.span({"[aria-readonly=true] &":{opacity:.5}}),d9=L.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),dg=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return At.warn(`Radio with no options: ${e}`),p.createElement(p.Fragment,null,"-");let u=xg(r,t),i=Be(e),s=!!o?.table?.readonly;return p.createElement(l9,{"aria-readonly":s,isInline:a},Object.keys(t).map((h,g)=>{let E=`${i}-${g}`;return p.createElement(d9,{key:E,htmlFor:E},p.createElement("input",{type:"radio",id:E,name:E,disabled:s,value:h,onChange:y=>n(t[y.currentTarget.value]),checked:h===u}),p.createElement(c9,null,h))}))},p9={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Fg=L.select(p9,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),wg=L.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),pg="Choose option...",f9=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=h=>{n(r[h.currentTarget.value])},u=xg(t,r)||pg,i=Be(e),s=!!a?.table?.readonly;return p.createElement(wg,null,p.createElement(Ra,null),p.createElement(Fg,{disabled:s,id:i,value:u,onChange:o},p.createElement("option",{key:"no-selection",disabled:!0},pg),Object.keys(r).map(h=>p.createElement("option",{key:h,value:h},h))))},h9=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=h=>{let g=Array.from(h.currentTarget.options).filter(E=>E.selected).map(E=>E.value);n(Sg(g,r))},u=Ou(t,r),i=Be(e),s=!!a?.table?.readonly;return p.createElement(wg,null,p.createElement(Fg,{disabled:s,id:i,multiple:!0,value:u,onChange:o},Object.keys(r).map(h=>p.createElement("option",{key:h,value:h},h))))},fg=e=>{let{name:t,options:r}=e;return r?e.isMulti?p.createElement(h9,{...e}):p.createElement(f9,{...e}):(At.warn(`Select with no options: ${t}`),p.createElement(p.Fragment,null,"-"))},m9=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,y9={check:cg,"inline-check":cg,radio:dg,"inline-radio":dg,select:fg,"multi-select":fg},ur=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?m9(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=y9[t];if(o)return p.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},ku="value",g9="key",b9="Error",E9="Object",A9="Array",v9="String",D9="Number",C9="Boolean",x9="Date",S9="Null",F9="Undefined",w9="Function",B9="Symbol",Bg="ADD_DELTA_TYPE",Tg="REMOVE_DELTA_TYPE",Ig="UPDATE_DELTA_TYPE";function wt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function _g(e,t){let r=wt(e),n=wt(t);return(r==="Function"||n==="Function")&&n!==r}var Nu=class extends et{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:u}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,n,a,i.key,u.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:u}=this.props,i=de(r,{onClick:this.onSubmit}),s=de(n,{onClick:e}),h=a(ku,o,u),g=de(h,{placeholder:"Value",ref:this.refInputValue}),E=null;if(!t){let y=a(g9,o,u);E=de(y,{placeholder:"Key",ref:this.refInputKey})}return p.createElement("span",{className:"rejt-add-value-node"},E,g,s,i)}};Nu.defaultProps={onlyValue:!1,addButtonElement:p.createElement("button",null,"+"),cancelButtonElement:p.createElement("button",null,"c")};var Og=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,u=n[e];t(e,a,o,u).then(()=>{let i={keyPath:a,deep:o,key:e,oldValue:u,type:Tg};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:h}=this.props;s(a[a.length-1],n),h(i)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let u=[...t,e];this.setState({data:u}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:s}=this.props;i(r[r.length-1],u),s({type:Bg,keyPath:r,deep:n,key:u.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:u,nextDeep:i}=this.state,s=o[e];a(e,u,i,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:h,onDeltaUpdate:g}=this.props;h(u[u.length-1],o),g({type:Ig,keyPath:u,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:u,dataType:i,minusMenuElement:s}=this.props,{minus:h,collapsed:g}=u(e,t,r,n,i),E=o(e,t,r,n,i),y=de(s,{onClick:a,className:"rejt-minus-menu",style:h});return p.createElement("span",{className:"rejt-collapsed"},p.createElement("span",{className:"rejt-collapsed-text",style:g,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!E&&y)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:u,handleRemove:i,onDeltaUpdate:s,readOnly:h,getStyle:g,dataType:E,addButtonElement:y,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:T,plusMenuElement:O,beforeRemoveAction:R,beforeAddAction:M,beforeUpdateAction:F,logger:q,onSubmitValueParser:k}=this.props,{minus:H,plus:V,delimiter:U,ul:se,addForm:te}=g(e,t,r,n,E),J=h(e,t,r,n,E),_=de(O,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:V}),B=de(T,{onClick:i,className:"rejt-minus-menu",style:H});return p.createElement("span",{className:"rejt-not-collapsed"},p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},"["),!a&&_,p.createElement("ul",{className:"rejt-not-collapsed-list",style:se},t.map((j,G)=>p.createElement(aa,{key:G,name:G.toString(),data:j,keyPath:r,deep:o,isCollapsed:u,handleRemove:this.handleRemoveItem(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:h,getStyle:g,addButtonElement:y,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:T,plusMenuElement:O,beforeRemoveAction:R,beforeAddAction:M,beforeUpdateAction:F,logger:q,onSubmitValueParser:k}))),!J&&a&&p.createElement("div",{className:"rejt-add-form",style:te},p.createElement(Nu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:y,cancelButtonElement:m,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:k})),p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},"]"),!J&&B)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:u}=this.props,i=t?this.renderCollapsed():this.renderNotCollapsed(),s=u(e,r,n,a,o);return p.createElement("div",{className:"rejt-array-node"},p.createElement("span",{onClick:this.handleCollapseMode},p.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),i)}};Og.defaultProps={keyPath:[],deep:0,minusMenuElement:p.createElement("span",null," - "),plusMenuElement:p.createElement("span",null," + ")};var Rg=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:u,dataType:i}=this.props,s=u(r,n,a,o,i);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:u,deep:i}=this.state;if(!o)return;let s=n(!0,a,i,u,o.value);e({value:s,key:u}).then(()=>{_g(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:u,readOnly:i,dataType:s,getStyle:h,editButtonElement:g,cancelButtonElement:E,textareaElementGenerator:y,minusMenuElement:m,keyPath:A}=this.props,b=h(e,u,n,a,s),x=null,T=null,O=i(e,u,n,a,s);if(r&&!O){let R=y(ku,A,a,e,u,s),M=de(g,{onClick:this.handleEdit}),F=de(E,{onClick:this.handleCancelEdit}),q=de(R,{ref:this.refInput,defaultValue:u});x=p.createElement("span",{className:"rejt-edit-form",style:b.editForm},q," ",F,M),T=null}else{x=p.createElement("span",{className:"rejt-value",style:b.value,onClick:O?null:this.handleEditMode},t);let R=de(m,{onClick:o,className:"rejt-minus-menu",style:b.minus});T=O?null:R}return p.createElement("li",{className:"rejt-function-value-node",style:b.li},p.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),x,T)}};Rg.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:p.createElement("button",null,"e"),cancelButtonElement:p.createElement("button",null,"c"),minusMenuElement:p.createElement("span",null," - ")};var aa=class extends et{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:u,onUpdate:i,onDeltaUpdate:s,readOnly:h,getStyle:g,addButtonElement:E,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:T,beforeRemoveAction:O,beforeAddAction:R,beforeUpdateAction:M,logger:F,onSubmitValueParser:q}=this.props,k=()=>!0,H=wt(e);switch(H){case b9:return p.createElement(Ru,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:k,dataType:H,getStyle:g,addButtonElement:E,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:T,beforeRemoveAction:O,beforeAddAction:R,beforeUpdateAction:M,logger:F,onSubmitValueParser:q});case E9:return p.createElement(Ru,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:h,dataType:H,getStyle:g,addButtonElement:E,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:T,beforeRemoveAction:O,beforeAddAction:R,beforeUpdateAction:M,logger:F,onSubmitValueParser:q});case A9:return p.createElement(Og,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:h,dataType:H,getStyle:g,addButtonElement:E,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:T,beforeRemoveAction:O,beforeAddAction:R,beforeUpdateAction:M,logger:F,onSubmitValueParser:q});case v9:return p.createElement(ft,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case D9:return p.createElement(ft,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case C9:return p.createElement(ft,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case x9:return p.createElement(ft,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:k,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case S9:return p.createElement(ft,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case F9:return p.createElement(ft,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});case w9:return p.createElement(Rg,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:h,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,textareaElementGenerator:b,minusMenuElement:x,logger:F,onSubmitValueParser:q});case B9:return p.createElement(ft,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:k,dataType:H,getStyle:g,cancelButtonElement:y,editButtonElement:m,inputElementGenerator:A,minusMenuElement:x,logger:F,onSubmitValueParser:q});default:return null}}};aa.defaultProps={keyPath:[],deep:0};var Ru=class extends et{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:u}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:s}=this.props;i(n[n.length-1],r),s({type:Bg,keyPath:n,deep:a,key:e,newValue:t})}).catch(u.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,u=n[e];t(e,a,o,u).then(()=>{let i={keyPath:a,deep:o,key:e,oldValue:u,type:Tg};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:h}=this.props;s(a[a.length-1],n),h(i)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:u,nextDeep:i}=this.state,s=o[e];a(e,u,i,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:h,onDeltaUpdate:g}=this.props;h(u[u.length-1],o),g({type:Ig,keyPath:u,deep:i,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:u,getStyle:i,minusMenuElement:s}=this.props,{minus:h,collapsed:g}=i(e,n,t,r,u),E=Object.getOwnPropertyNames(n),y=o(e,n,t,r,u),m=de(s,{onClick:a,className:"rejt-minus-menu",style:h});return p.createElement("span",{className:"rejt-collapsed"},p.createElement("span",{className:"rejt-collapsed-text",style:g,onClick:this.handleCollapseMode},"{...}"," ",E.length," ",E.length===1?"key":"keys"),!y&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:u,handleRemove:i,onDeltaUpdate:s,readOnly:h,getStyle:g,dataType:E,addButtonElement:y,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:T,plusMenuElement:O,beforeRemoveAction:R,beforeAddAction:M,beforeUpdateAction:F,logger:q,onSubmitValueParser:k}=this.props,{minus:H,plus:V,addForm:U,ul:se,delimiter:te}=g(e,t,r,n,E),J=Object.getOwnPropertyNames(t),_=h(e,t,r,n,E),B=de(O,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:V}),j=de(T,{onClick:i,className:"rejt-minus-menu",style:H}),G=J.map(Y=>p.createElement(aa,{key:Y,name:Y,data:t[Y],keyPath:r,deep:a,isCollapsed:u,handleRemove:this.handleRemoveValue(Y),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:h,getStyle:g,addButtonElement:y,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:T,plusMenuElement:O,beforeRemoveAction:R,beforeAddAction:M,beforeUpdateAction:F,logger:q,onSubmitValueParser:k}));return p.createElement("span",{className:"rejt-not-collapsed"},p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:te},"{"),!_&&B,p.createElement("ul",{className:"rejt-not-collapsed-list",style:se},G),!_&&o&&p.createElement("div",{className:"rejt-add-form",style:U},p.createElement(Nu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:y,cancelButtonElement:m,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:k})),p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:te},"}"),!_&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:u}=this.props,i=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,u);return p.createElement("div",{className:"rejt-object-node"},p.createElement("span",{onClick:this.handleCollapseMode},p.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),i)}};Ru.defaultProps={keyPath:[],deep:0,minusMenuElement:p.createElement("span",null," - "),plusMenuElement:p.createElement("span",null," + ")};var ft=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:u,dataType:i}=this.props,s=u(r,n,a,o,i);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:u,deep:i}=this.state;if(!o)return;let s=n(!0,a,i,u,o.value);e({value:s,key:u}).then(()=>{_g(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:u,readOnly:i,dataType:s,getStyle:h,editButtonElement:g,cancelButtonElement:E,inputElementGenerator:y,minusMenuElement:m,keyPath:A}=this.props,b=h(e,u,n,a,s),x=i(e,u,n,a,s),T=r&&!x,O=y(ku,A,a,e,u,s),R=de(g,{onClick:this.handleEdit}),M=de(E,{onClick:this.handleCancelEdit}),F=de(O,{ref:this.refInput,defaultValue:JSON.stringify(u)}),q=de(m,{onClick:o,className:"rejt-minus-menu",style:b.minus});return p.createElement("li",{className:"rejt-value-node",style:b.li},p.createElement("span",{className:"rejt-name",style:b.name},e," : "),T?p.createElement("span",{className:"rejt-edit-form",style:b.editForm},F," ",M,R):p.createElement("span",{className:"rejt-value",style:b.value,onClick:x?null:this.handleEditMode},String(t)),!x&&!T&&q)}};ft.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:p.createElement("button",null,"e"),cancelButtonElement:p.createElement("button",null,"c"),minusMenuElement:p.createElement("span",null," - ")};var T9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},I9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},_9={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function O9(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Pg=class extends et{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:u,cancelButtonElement:i,editButtonElement:s,inputElement:h,textareaElement:g,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:m,beforeAddAction:A,beforeUpdateAction:b,logger:x,onSubmitValueParser:T,fallback:O=null}=this.props,R=wt(e),M=a;wt(a)==="Boolean"&&(M=()=>a);let F=h;h&&wt(h)!=="Function"&&(F=()=>h);let q=g;return g&&wt(g)!=="Function"&&(q=()=>g),R==="Object"||R==="Array"?p.createElement("div",{className:"rejt-tree"},p.createElement(aa,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:M,getStyle:o,addButtonElement:u,cancelButtonElement:i,editButtonElement:s,inputElementGenerator:F,textareaElementGenerator:q,minusMenuElement:E,plusMenuElement:y,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:A,beforeUpdateAction:b,logger:x,onSubmitValueParser:T})):O}};Pg.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return T9;case"Array":return I9;default:return _9}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>O9(a),inputElement:()=>p.createElement("input",null),textareaElement:()=>p.createElement("textarea",null),fallback:null};var{window:R9}=pe,P9=L.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Tu=L.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),k9=L(Yr)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),N9=L(_i)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),hg=L.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),L9=L(qe)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),q9=L(ke.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),M9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},j9=e=>{e.currentTarget.dispatchEvent(new R9.KeyboardEvent("keydown",M9))},$9=e=>{e.currentTarget.select()},U9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),mg=({name:e,value:t,onChange:r,argType:n})=>{let a=Sa(),o=ze(()=>t&&(0,vg.default)(t),[t]),u=o!=null,[i,s]=ne(!u),[h,g]=ne(null),E=!!n?.table?.readonly,y=Ee(R=>{try{R&&r(JSON.parse(R)),g(void 0)}catch(M){g(M)}},[r]),[m,A]=ne(!1),b=Ee(()=>{r({}),A(!0)},[A]),x=Fe(null);if(he(()=>{m&&x.current&&x.current.select()},[m]),!u)return p.createElement(Je,{disabled:E,id:cr(e),onClick:b},"Set object");let T=p.createElement(q9,{ref:x,id:Be(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:R=>y(R.target.value),placeholder:"Edit JSON string...",autoFocus:m,valid:h?"error":null,readOnly:E}),O=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return p.createElement(P9,{"aria-readonly":E},O&&p.createElement(L9,{onClick:R=>{R.preventDefault(),s(M=>!M)}},i?p.createElement(wi,null):p.createElement(Bi,null),p.createElement("span",null,"RAW")),i?T:p.createElement(Pg,{readOnly:E||!O,isCollapsed:O?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:U9(a),cancelButtonElement:p.createElement(Tu,{type:"button"},"Cancel"),editButtonElement:p.createElement(Tu,{type:"submit"},"Save"),addButtonElement:p.createElement(Tu,{type:"submit",primary:!0},"Save"),plusMenuElement:p.createElement(k9,null),minusMenuElement:p.createElement(N9,null),inputElement:(R,M,F,q)=>q?p.createElement(hg,{onFocus:$9,onBlur:j9}):p.createElement(hg,null),fallback:T}))},H9=L.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Me(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Me(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${je(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:a?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Me(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Me(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Me(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${je(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${je(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${ut(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Me(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),kg=L.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),z9=L(kg)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),G9=L.div({display:"flex",alignItems:"center",width:"100%"});function W9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var V9=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:u,onFocus:i,argType:s})=>{let h=m=>{r(n9(m.target.value))},g=t!==void 0,E=ze(()=>W9(o),[o]),y=!!s?.table?.readonly;return p.createElement(G9,{"aria-readonly":y},p.createElement(kg,null,n),p.createElement(H9,{id:Be(e),type:"range",disabled:y,onChange:h,name:e,value:t,min:n,max:a,step:o,onFocus:i,onBlur:u}),p.createElement(z9,{numberOFDecimalsPlaces:E,max:a},g?t.toFixed(E):"--"," / ",a))},K9=L.label({display:"flex"}),Y9=L.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),J9=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:u})=>{let i=m=>{r(m.target.value)},s=!!u?.table?.readonly,[h,g]=ne(!1),E=Ee(()=>{r(""),g(!0)},[g]);if(t===void 0)return p.createElement(Je,{variant:"outline",size:"medium",disabled:s,id:cr(e),onClick:E},"Set string");let y=typeof t=="string";return p.createElement(K9,null,p.createElement(ke.Textarea,{id:Be(e),maxLength:o,onChange:i,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:h,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:a}),o&&p.createElement(Y9,{isMaxed:t?.length===o},t?.length??0," / ",o))},X9=L(ke.Input)({padding:10});function Q9(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Z9=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let o=Fe(null),u=a?.control?.readOnly;function i(s){if(!s.target.files)return;let h=Array.from(s.target.files).map(g=>URL.createObjectURL(g));e(h),Q9(n)}return he(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),p.createElement(X9,{ref:o,id:Be(t),type:"file",name:t,multiple:!0,disabled:u,onChange:i,accept:r,size:"flex"})},eR=Uu(()=>Promise.resolve().then(()=>(og(),ag))),tR=e=>p.createElement($u,{fallback:p.createElement("div",null)},p.createElement(eR,{...e})),rR={array:mg,object:mg,boolean:Y4,color:tR,date:t9,number:o9,check:ur,"inline-check":ur,radio:ur,"inline-radio":ur,select:ur,"multi-select":ur,range:V9,text:J9,file:Z9},yg=()=>p.createElement(p.Fragment,null,"-"),nR=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[u,i]=ne(!1),[s,h]=ne({value:t});he(()=>{u||h({value:t})},[u,t]);let g=Ee(b=>(h({value:b}),r({[a]:b}),b),[r,a]),E=Ee(()=>i(!1),[]),y=Ee(()=>i(!0),[]);if(!o||o.disable){let b=o?.disable!==!0&&e?.type?.name!=="function";return n&&b?p.createElement(ht,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):p.createElement(yg,null)}let m={name:a,argType:e,value:s.value,onChange:g,onBlur:E,onFocus:y},A=rR[o.type]||yg;return p.createElement(A,{...m,...o,controlType:o.type})},aR=L.span({fontWeight:"bold"}),oR=L.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),uR=L.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Tt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),iR=L.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?4:0})),sR=L.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),lR=L.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),cR=e=>e&&{summary:typeof e=="string"?e:e.name},ta=e=>{let[t,r]=ne(!1),{row:n,updateArgs:a,compact:o,expandable:u,initialExpandedArgs:i}=e,{name:s,description:h}=n,g=n.table||{},E=g.type||cR(n.type),y=g.defaultValue||n.defaultValue,m=n.type?.required,A=h!=null&&h!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(lR,{expandable:u},p.createElement(aR,null,s),m?p.createElement(oR,{title:"Required"},"*"):null),o?null:p.createElement("td",null,A&&p.createElement(uR,null,p.createElement(xp,null,h)),g.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(sR,{hasDescription:A},p.createElement(Bu,{value:E,initialExpandedArgs:i})),p.createElement(N4,{tags:g.jsDocTags})):p.createElement(iR,{hasDescription:A},p.createElement(Bu,{value:E,initialExpandedArgs:i}))),o?null:p.createElement("td",null,p.createElement(Bu,{value:y,initialExpandedArgs:i})),a?p.createElement("td",null,p.createElement(nR,{...e,isHovered:t})):null)},dR=L(xi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),pR=L(Si)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),fR=L.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),hR=L.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),mR=L.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),yR=L.td(()=>({position:"relative"})),gR=L.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${ut(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),gg=L.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Iu=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,u]=ne(n),i=e==="subsection"?mR:hR,s=r?.length||0,h=e==="subsection"?`${s} item${s!==1?"s":""}`:"",g=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(gR,{title:g},p.createElement(i,{colSpan:1},p.createElement(gg,{onClick:E=>u(!o),tabIndex:0},g),p.createElement(fR,null,o?p.createElement(dR,null):p.createElement(pR,null),t)),p.createElement(yR,{colSpan:a-1},p.createElement(gg,{onClick:E=>u(!o),tabIndex:-1,style:{outline:"none"}},g),o?null:h)),o?r:null)},ra=L.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),xe=L.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ge=L.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Se=[2,4,2,2],bR=()=>p.createElement(p.Fragment,null,p.createElement(ra,null,p.createElement(xe,{numColumn:Se[0]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[1]},p.createElement(ge,{width:"30%"})),p.createElement(xe,{numColumn:Se[2]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[3]},p.createElement(ge,{width:"60%"}))),p.createElement(ra,null,p.createElement(xe,{numColumn:Se[0]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[1]},p.createElement(ge,{width:"80%"}),p.createElement(ge,{width:"30%"})),p.createElement(xe,{numColumn:Se[2]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[3]},p.createElement(ge,{width:"60%"}))),p.createElement(ra,null,p.createElement(xe,{numColumn:Se[0]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[1]},p.createElement(ge,{width:"80%"}),p.createElement(ge,{width:"30%"})),p.createElement(xe,{numColumn:Se[2]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[3]},p.createElement(ge,{width:"60%"}))),p.createElement(ra,null,p.createElement(xe,{numColumn:Se[0]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[1]},p.createElement(ge,{width:"80%"}),p.createElement(ge,{width:"30%"})),p.createElement(xe,{numColumn:Se[2]},p.createElement(ge,{width:"60%"})),p.createElement(xe,{numColumn:Se[3]},p.createElement(ge,{width:"60%"})))),ER=L.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),AR=L.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),vR=L.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),DR=({inAddonPanel:e})=>{let[t,r]=ne(!0);return he(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(ER,{inAddonPanel:e},p.createElement(da,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(AR,null,e&&p.createElement(p.Fragment,null,p.createElement(ht,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},p.createElement(Oi,null)," Watch 5m video"),p.createElement(vR,null),p.createElement(ht,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Jr,null)," Read docs")),!e&&p.createElement(ht,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Jr,null)," Learn how to set that up"))}))},CR=L.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ue(.25,e.color.defaultText):ue(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),xR=L(qe)(({theme:e})=>({margin:"-4px -12px -4px 0"})),SR=L.span({display:"flex",justifyContent:"space-between"}),FR={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},wR=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,u])=>{let{category:i,subcategory:s}=u?.table||{};if(i){let h=r.sections[i]||{ungrouped:[],subsections:{}};if(!s)h.ungrouped.push({key:o,...u});else{let g=h.subsections[s]||[];g.push({key:o,...u}),h.subsections[s]=g}r.sections[i]=h}else if(s){let h=r.ungroupedSubsections[s]||[];h.push({key:o,...u}),r.ungroupedSubsections[s]=h}else r.ungrouped.push({key:o,...u})});let n=FR[t],a=o=>n?Object.keys(o).reduce((u,i)=>({...u,[i]:o[i].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,u)=>({...o,[u]:{ungrouped:r.sections[u].ungrouped.sort(n),subsections:a(r.sections[u].subsections)}}),{})}},BR=(e,t,r)=>{try{return bo(e,t,r)}catch(n){return Eo.warn(n.message),!1}},Ng=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:u="none",isLoading:i}=e;if("error"in e){let{error:O}=e;return p.createElement(Dg,null,O,"\xA0",p.createElement(ht,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},p.createElement(Jr,null)," Read the docs"))}if(i)return p.createElement(bR,null);let{rows:s,args:h,globals:g}="rows"in e&&e,E=wR((0,bg.default)(s,O=>!O?.table?.disable&&BR(O,h||{},g||{})),u),y=E.ungrouped.length===0,m=Object.entries(E.sections).length===0,A=Object.entries(E.ungroupedSubsections).length===0;if(y&&m&&A)return p.createElement(DR,{inAddonPanel:a});let b=1;t&&(b+=1),n||(b+=2);let x=Object.keys(E.sections).length>0,T={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return p.createElement(ha,null,p.createElement(CR,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement(SR,null,"Control"," ",!i&&r&&p.createElement(xR,{onClick:()=>r(),title:"Reset controls"},p.createElement(Xr,{"aria-hidden":!0})))):null)),p.createElement("tbody",{className:"docblock-argstable-body"},E.ungrouped.map(O=>p.createElement(ta,{key:O.key,row:O,arg:h&&h[O.key],...T})),Object.entries(E.ungroupedSubsections).map(([O,R])=>p.createElement(Iu,{key:O,label:O,level:"subsection",colSpan:b},R.map(M=>p.createElement(ta,{key:M.key,row:M,arg:h&&h[M.key],expandable:x,...T})))),Object.entries(E.sections).map(([O,R])=>p.createElement(Iu,{key:O,label:O,level:"section",colSpan:b},R.ungrouped.map(M=>p.createElement(ta,{key:M.key,row:M,arg:h&&h[M.key],...T})),Object.entries(R.subsections).map(([M,F])=>p.createElement(Iu,{key:M,label:M,level:"subsection",colSpan:b},F.map(q=>p.createElement(ta,{key:q.key,row:q,arg:h&&h[q.key],expandable:x,...T})))))))))};var Sue=L.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText)})),Fue=L.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),wue=L.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Bue=L.div(It,({theme:e})=>({...na(e),margin:"25px 0 40px",padding:"30px 20px"}));var Tue=L.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),Iue=L.div(({theme:e})=>({color:e.base==="light"?ue(.2,e.color.defaultText):ue(.6,e.color.defaultText)})),_ue=L.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),Oue=L.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),Rue=L.div({display:"flex",flexDirection:"row"}),Pue=L.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),kue=L.div(({theme:e})=>({...na(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),Nue=L.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Lue=L.div({flex:1,display:"flex",flexDirection:"row"}),que=L.div({display:"flex",alignItems:"flex-start"}),Mue=L.div({flex:"0 0 30%"}),jue=L.div({flex:1}),$ue=L.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText)})),Uue=L.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var Hue=L.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2})),zue=L.div(({theme:e})=>({...na(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),Gue=L.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),Wue=L.div({display:"flex",flexFlow:"row wrap"});pe&&pe.__DOCS_CONTEXT__===void 0&&(pe.__DOCS_CONTEXT__=sr(null),pe.__DOCS_CONTEXT__.displayName="DocsContext");var TR=pe?pe.__DOCS_CONTEXT__:sr(null);var Vue=sr({sources:{}});var{document:IR}=pe;function _R(e,t){e.channel.emit(ti,t)}var Kue=ba.a;var Lg=["h1","h2","h3","h4","h5","h6"],OR=Lg.reduce((e,t)=>({...e,[t]:L(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),RR=L.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),PR=({as:e,id:t,children:r,...n})=>{let a=Hu(TR),o=OR[e],u=`#${t}`;return p.createElement(o,{id:t,...n},p.createElement(RR,{"aria-hidden":"true",href:u,tabIndex:-1,target:"_self",onClick:i=>{IR.getElementById(t)&&_R(a,u)}},p.createElement(Ti,null)),r)},qg=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return p.createElement(PR,{as:t,id:r,...a},n);let o=t,{as:u,...i}=e;return p.createElement(o,{...Ea(i,t)})},Yue=Lg.reduce((e,t)=>({...e,[t]:r=>p.createElement(qg,{as:t,...r})}),{});var kR=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(kR||{});var Jue=L.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Xue=L.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),Que=L.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var{document:Zue,window:eie}=pe;var NR=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return p.createElement(fa,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return p.createElement(qg,{as:"h2",id:n,...r},e)},tie=L(NR)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));Qr();var LR=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})(),Mg="addon-controls",Ug="controls",qR=Ca({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),MR=Ca({from:{background:"var(--highlight-bg-color)"},to:{}}),jR=L.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),$R=L(ca)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${qR} 300ms, ${MR} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),UR=L.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),HR=L.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),Lu=L.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),zR=L(ke.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),GR=({saveStory:e,createStory:t,resetArgs:r})=>{let n=p.useRef(null),[a,o]=p.useState(!1),[u,i]=p.useState(!1),[s,h]=p.useState(""),[g,E]=p.useState(null),y=async()=>{a||(o(!0),await e().catch(()=>{}),o(!1))},m=()=>{i(!0),h(""),setTimeout(()=>n.current?.focus(),0)},A=b=>{let x=b.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,T=>T.toUpperCase().replace(/[-_ ]/g,""));h(x.charAt(0).toUpperCase()+x.slice(1))};return p.createElement(jR,null,p.createElement($R,null,p.createElement(HR,null,p.createElement(rt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:p.createElement(mt,{note:"Save changes to story"})},p.createElement(qe,{"aria-label":"Save changes to story",disabled:a,onClick:y},p.createElement(Ci,null),p.createElement(Lu,{"data-short-label":"Save"},"Update story"))),p.createElement(rt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:p.createElement(mt,{note:"Create new story with these settings"})},p.createElement(qe,{"aria-label":"Create new story with these settings",onClick:m},p.createElement(Yr,null),p.createElement(Lu,{"data-short-label":"New"},"Create new story"))),p.createElement(rt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:p.createElement(mt,{note:"Reset changes"})},p.createElement(qe,{"aria-label":"Reset changes",onClick:()=>r()},p.createElement(Xr,null),p.createElement("span",null,"Reset")))),p.createElement(UR,null,p.createElement(Lu,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),p.createElement(Ge,{width:350,open:u,onOpenChange:i},p.createElement(ke,{onSubmit:async b=>{if(b.preventDefault(),!a)try{E(null),o(!0),await t(s.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),i(!1),o(!1)}catch(x){E(x.message),o(!1)}}},p.createElement(Ge.Content,null,p.createElement(Ge.Header,null,p.createElement(Ge.Title,null,"Create new story"),p.createElement(Ge.Description,null,"This will add a new story to your existing stories file.")),p.createElement(zR,{onChange:A,placeholder:"Story export name",readOnly:a,ref:n,value:s}),p.createElement(Ge.Actions,null,p.createElement(Je,{disabled:a||!s,size:"medium",type:"submit",variant:"solid"},"Create"),p.createElement(Ge.Dialog.Close,{asChild:!0},p.createElement(Je,{disabled:a,size:"medium",type:"reset"},"Cancel"))))),g&&p.createElement(Ge.Error,null,g))))},jg=e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),WR=L.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),VR=({saveStory:e,createStory:t})=>{let[r,n]=ne(!0),[a,o,u,i]=ui(),[s]=ii(),h=Da(),{expanded:g,sort:E,presetColors:y}=si(Ug,{}),{path:m,previewInitialized:A}=li();he(()=>{A&&n(!1)},[A]);let b=Object.values(h).some(O=>O?.control),x=Object.entries(h).reduce((O,[R,M])=>{let F=M?.control;return typeof F!="object"||F?.type!=="color"||F?.presetColors?O[R]=M:O[R]={...M,control:{...F,presetColors:y}},O},{}),T=ze(()=>!!a&&!!i&&!tt(jg(a),jg(i)),[a,i]);return p.createElement(WR,null,p.createElement(Ng,{key:m,compact:!g&&b,rows:x,args:a,globals:s,updateArgs:o,resetArgs:u,inAddonPanel:!0,sort:E,isLoading:r}),b&&T&&LR.CONFIG_TYPE==="DEVELOPMENT"&&p.createElement(GR,{resetArgs:u,saveStory:e,createStory:t}))};function KR(){let e=Da(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return p.createElement("div",null,p.createElement(ma,{col:1},p.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":p.createElement(la,{status:"neutral"},t)))}var $g=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r);Hr.register(Mg,e=>{let t=Hr.getChannel(),r=async()=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");try{let o=await va(t,Aa,Ur,{args:$g(Object.entries(a.args||{}).reduce((u,[i,s])=>(tt(s,a.initialArgs?.[i])||(u[i]=s),u),{})),csfId:a.id,importPath:a.importPath});e.addNotification({id:"save-story-success",icon:{name:"passed",color:zr.positive},content:{headline:"Story saved",subHeadline:p.createElement(p.Fragment,null,"Updated story ",p.createElement("b",null,o.sourceStoryName),".")},duration:8e3})}catch(o){throw e.addNotification({id:"save-story-error",icon:{name:"failed",color:zr.negative},content:{headline:"Failed to save story",subHeadline:o?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),o}},n=async a=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");let u=await va(t,Aa,Ur,{args:o.args&&$g(o.args),csfId:o.id,importPath:o.importPath,name:a});e.addNotification({id:"save-story-success",icon:{name:"passed",color:zr.positive},content:{headline:"Story created",subHeadline:p.createElement(p.Fragment,null,"Added story ",p.createElement("b",null,u.newStoryName)," based on ",p.createElement("b",null,u.sourceStoryName),".")},duration:8e3,onClick:({onDismiss:i})=>{i(),e.selectStory(u.newStoryId)}})};Hr.add(Mg,{title:KR,type:oi.PANEL,paramKey:Ug,render:({active:a})=>!a||!e.getCurrentStoryData()?null:p.createElement(sa,{active:a},p.createElement(VR,{saveStory:r,createStory:n}))}),t.on(Ur,a=>{if(!a.success)return;let o=e.getCurrentStoryData();o.type==="story"&&(e.resetStoryArgs(o),a.payload.newStoryId&&e.selectStory(a.payload.newStoryId))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..cfea3e7 --- /dev/null +++ b/storybook/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt @@ -0,0 +1,18 @@ +Bundled license information: + +telejson/dist/index.mjs: + /*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + /** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/storybook/sb-addons/essentials-measure-8/manager-bundle.js b/storybook/sb-addons/essentials-measure-8/manager-bundle.js new file mode 100644 index 0000000..a7d02dc --- /dev/null +++ b/storybook/sb-addons/essentials-measure-8/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:B,Component:f,Fragment:R,Profiler:P,PureComponent:L,StrictMode:E,Suspense:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:w,cloneElement:M,createContext:x,createElement:v,createFactory:H,createRef:U,forwardRef:F,isValidElement:N,lazy:G,memo:W,startTransition:K,unstable_act:Y,useCallback:u,useContext:q,useDebugValue:V,useDeferredValue:Z,useEffect:d,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:mo,Provider:po,RequestResponseError:So,addons:l,combineParameters:Co,controlOrMetaKey:ho,controlOrMetaSymbol:bo,eventMatchesShortcut:To,eventToShortcut:_o,experimental_requestResponse:Ao,isMacLike:go,isShortcutTaken:yo,keyToSymbol:Oo,merge:ko,mockChannel:Bo,optionOrAltSymbol:fo,shortcutMatchesShortcut:Ro,shortcutToHumanString:Po,types:m,useAddonState:Lo,useArgTypes:Eo,useArgs:Do,useChannel:wo,useGlobalTypes:Mo,useGlobals:p,useParameter:xo,useSharedState:vo,useStoryPrepared:Ho,useStorybookApi:S,useStorybookState:Uo}=__STORYBOOK_API__;var Ko=__STORYBOOK_COMPONENTS__,{A:Yo,ActionBar:qo,AddonPanel:Vo,Badge:Zo,Bar:zo,Blockquote:Jo,Button:Qo,ClipboardCode:$o,Code:jo,DL:Xo,Div:on,DocumentWrapper:nn,EmptyTabContent:en,ErrorFormatter:cn,FlexBar:tn,Form:rn,H1:In,H2:an,H3:ln,H4:sn,H5:un,H6:dn,HR:mn,IconButton:C,IconButtonSkeleton:pn,Icons:Sn,Img:Cn,LI:hn,Link:bn,ListItem:Tn,Loader:_n,Modal:An,OL:gn,P:yn,Placeholder:On,Pre:kn,ResetWrapper:Bn,ScrollArea:fn,Separator:Rn,Spaced:Pn,Span:Ln,StorybookIcon:En,StorybookLogo:Dn,Symbols:wn,SyntaxHighlighter:Mn,TT:xn,TabBar:vn,TabButton:Hn,TabWrapper:Un,Table:Fn,Tabs:Nn,TabsState:Gn,TooltipLinkList:Wn,TooltipMessage:Kn,TooltipNote:Yn,UL:qn,WithTooltip:Vn,WithTooltipPure:Zn,Zoom:zn,codeCommon:Jn,components:Qn,createCopyToClipboardFunction:$n,getStoryHref:jn,icons:Xn,interleaveSeparators:oe,nameSpaceClassNames:ne,resetComponents:ee,withReset:ce}=__STORYBOOK_COMPONENTS__;var le=__STORYBOOK_ICONS__,{AccessibilityAltIcon:ie,AccessibilityIcon:se,AddIcon:ue,AdminIcon:de,AlertAltIcon:me,AlertIcon:pe,AlignLeftIcon:Se,AlignRightIcon:Ce,AppleIcon:he,ArrowDownIcon:be,ArrowLeftIcon:Te,ArrowRightIcon:_e,ArrowSolidDownIcon:Ae,ArrowSolidLeftIcon:ge,ArrowSolidRightIcon:ye,ArrowSolidUpIcon:Oe,ArrowUpIcon:ke,AzureDevOpsIcon:Be,BackIcon:fe,BasketIcon:Re,BatchAcceptIcon:Pe,BatchDenyIcon:Le,BeakerIcon:Ee,BellIcon:De,BitbucketIcon:we,BoldIcon:Me,BookIcon:xe,BookmarkHollowIcon:ve,BookmarkIcon:He,BottomBarIcon:Ue,BottomBarToggleIcon:Fe,BoxIcon:Ne,BranchIcon:Ge,BrowserIcon:We,ButtonIcon:Ke,CPUIcon:Ye,CalendarIcon:qe,CameraIcon:Ve,CategoryIcon:Ze,CertificateIcon:ze,ChangedIcon:Je,ChatIcon:Qe,CheckIcon:$e,ChevronDownIcon:je,ChevronLeftIcon:Xe,ChevronRightIcon:oc,ChevronSmallDownIcon:nc,ChevronSmallLeftIcon:ec,ChevronSmallRightIcon:cc,ChevronSmallUpIcon:tc,ChevronUpIcon:rc,ChromaticIcon:Ic,ChromeIcon:ac,CircleHollowIcon:lc,CircleIcon:ic,ClearIcon:sc,CloseAltIcon:uc,CloseIcon:dc,CloudHollowIcon:mc,CloudIcon:pc,CogIcon:Sc,CollapseIcon:Cc,CommandIcon:hc,CommentAddIcon:bc,CommentIcon:Tc,CommentsIcon:_c,CommitIcon:Ac,CompassIcon:gc,ComponentDrivenIcon:yc,ComponentIcon:Oc,ContrastIcon:kc,ControlsIcon:Bc,CopyIcon:fc,CreditIcon:Rc,CrossIcon:Pc,DashboardIcon:Lc,DatabaseIcon:Ec,DeleteIcon:Dc,DiamondIcon:wc,DirectionIcon:Mc,DiscordIcon:xc,DocChartIcon:vc,DocListIcon:Hc,DocumentIcon:Uc,DownloadIcon:Fc,DragIcon:Nc,EditIcon:Gc,EllipsisIcon:Wc,EmailIcon:Kc,ExpandAltIcon:Yc,ExpandIcon:qc,EyeCloseIcon:Vc,EyeIcon:Zc,FaceHappyIcon:zc,FaceNeutralIcon:Jc,FaceSadIcon:Qc,FacebookIcon:$c,FailedIcon:jc,FastForwardIcon:Xc,FigmaIcon:ot,FilterIcon:nt,FlagIcon:et,FolderIcon:ct,FormIcon:tt,GDriveIcon:rt,GithubIcon:It,GitlabIcon:at,GlobeIcon:lt,GoogleIcon:it,GraphBarIcon:st,GraphLineIcon:ut,GraphqlIcon:dt,GridAltIcon:mt,GridIcon:pt,GrowIcon:St,HeartHollowIcon:Ct,HeartIcon:ht,HomeIcon:bt,HourglassIcon:Tt,InfoIcon:_t,ItalicIcon:At,JumpToIcon:gt,KeyIcon:yt,LightningIcon:Ot,LightningOffIcon:kt,LinkBrokenIcon:Bt,LinkIcon:ft,LinkedinIcon:Rt,LinuxIcon:Pt,ListOrderedIcon:Lt,ListUnorderedIcon:Et,LocationIcon:Dt,LockIcon:wt,MarkdownIcon:Mt,MarkupIcon:xt,MediumIcon:vt,MemoryIcon:Ht,MenuIcon:Ut,MergeIcon:Ft,MirrorIcon:Nt,MobileIcon:Gt,MoonIcon:Wt,NutIcon:Kt,OutboxIcon:Yt,OutlineIcon:qt,PaintBrushIcon:Vt,PaperClipIcon:Zt,ParagraphIcon:zt,PassedIcon:Jt,PhoneIcon:Qt,PhotoDragIcon:$t,PhotoIcon:jt,PinAltIcon:Xt,PinIcon:or,PlayBackIcon:nr,PlayIcon:er,PlayNextIcon:cr,PlusIcon:tr,PointerDefaultIcon:rr,PointerHandIcon:Ir,PowerIcon:ar,PrintIcon:lr,ProceedIcon:ir,ProfileIcon:sr,PullRequestIcon:ur,QuestionIcon:dr,RSSIcon:mr,RedirectIcon:pr,ReduxIcon:Sr,RefreshIcon:Cr,ReplyIcon:hr,RepoIcon:br,RequestChangeIcon:Tr,RewindIcon:_r,RulerIcon:h,SearchIcon:Ar,ShareAltIcon:gr,ShareIcon:yr,ShieldIcon:Or,SideBySideIcon:kr,SidebarAltIcon:Br,SidebarAltToggleIcon:fr,SidebarIcon:Rr,SidebarToggleIcon:Pr,SpeakerIcon:Lr,StackedIcon:Er,StarHollowIcon:Dr,StarIcon:wr,StickerIcon:Mr,StopAltIcon:xr,StopIcon:vr,StorybookIcon:Hr,StructureIcon:Ur,SubtractIcon:Fr,SunIcon:Nr,SupportIcon:Gr,SwitchAltIcon:Wr,SyncIcon:Kr,TabletIcon:Yr,ThumbsUpIcon:qr,TimeIcon:Vr,TimerIcon:Zr,TransferIcon:zr,TrashIcon:Jr,TwitterIcon:Qr,TypeIcon:$r,UbuntuIcon:jr,UndoIcon:Xr,UnfoldIcon:oI,UnlockIcon:nI,UnpinIcon:eI,UploadIcon:cI,UserAddIcon:tI,UserAltIcon:rI,UserIcon:II,UsersIcon:aI,VSCodeIcon:lI,VerifiedIcon:iI,VideoIcon:sI,WandIcon:uI,WatchIcon:dI,WindowsIcon:mI,WrenchIcon:pI,YoutubeIcon:SI,ZoomIcon:CI,ZoomOutIcon:hI,ZoomResetIcon:bI,iconList:TI}=__STORYBOOK_ICONS__;var i="storybook/measure-addon",b=`${i}/tool`,T=()=>{let[r,c]=p(),{measureEnabled:I}=r,s=S(),a=u(()=>c({measureEnabled:!I}),[c,I]);return d(()=>{s.setAddonShortcut(i,{label:"Toggle Measure [M]",defaultShortcut:["M"],actionName:"measure",showInMenu:!1,action:a})},[a,s]),t.createElement(C,{key:b,active:I,title:"Enable measure",onClick:a},t.createElement(h,null))};l.register(i,()=>{l.add(b,{type:m.TOOL,title:"Measure",match:({viewMode:r,tabId:c})=>r==="story"&&!c,render:()=>t.createElement(T,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-outline-9/manager-bundle.js b/storybook/sb-addons/essentials-outline-9/manager-bundle.js new file mode 100644 index 0000000..71ce95b --- /dev/null +++ b/storybook/sb-addons/essentials-outline-9/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:f,Component:R,Fragment:P,Profiler:L,PureComponent:E,StrictMode:D,Suspense:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:v,cloneElement:x,createContext:H,createElement:M,createFactory:U,createRef:F,forwardRef:N,isValidElement:G,lazy:W,memo:u,startTransition:K,unstable_act:Y,useCallback:d,useContext:q,useDebugValue:V,useDeferredValue:Z,useEffect:p,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:po,Provider:mo,RequestResponseError:So,addons:l,combineParameters:Co,controlOrMetaKey:ho,controlOrMetaSymbol:Ao,eventMatchesShortcut:_o,eventToShortcut:bo,experimental_requestResponse:To,isMacLike:go,isShortcutTaken:yo,keyToSymbol:Oo,merge:ko,mockChannel:Bo,optionOrAltSymbol:fo,shortcutMatchesShortcut:Ro,shortcutToHumanString:Po,types:m,useAddonState:Lo,useArgTypes:Eo,useArgs:Do,useChannel:wo,useGlobalTypes:vo,useGlobals:S,useParameter:xo,useSharedState:Ho,useStoryPrepared:Mo,useStorybookApi:C,useStorybookState:Uo}=__STORYBOOK_API__;var Ko=__STORYBOOK_COMPONENTS__,{A:Yo,ActionBar:qo,AddonPanel:Vo,Badge:Zo,Bar:zo,Blockquote:Jo,Button:Qo,ClipboardCode:$o,Code:jo,DL:Xo,Div:on,DocumentWrapper:nn,EmptyTabContent:en,ErrorFormatter:cn,FlexBar:tn,Form:rn,H1:In,H2:an,H3:ln,H4:sn,H5:un,H6:dn,HR:pn,IconButton:h,IconButtonSkeleton:mn,Icons:Sn,Img:Cn,LI:hn,Link:An,ListItem:_n,Loader:bn,Modal:Tn,OL:gn,P:yn,Placeholder:On,Pre:kn,ResetWrapper:Bn,ScrollArea:fn,Separator:Rn,Spaced:Pn,Span:Ln,StorybookIcon:En,StorybookLogo:Dn,Symbols:wn,SyntaxHighlighter:vn,TT:xn,TabBar:Hn,TabButton:Mn,TabWrapper:Un,Table:Fn,Tabs:Nn,TabsState:Gn,TooltipLinkList:Wn,TooltipMessage:Kn,TooltipNote:Yn,UL:qn,WithTooltip:Vn,WithTooltipPure:Zn,Zoom:zn,codeCommon:Jn,components:Qn,createCopyToClipboardFunction:$n,getStoryHref:jn,icons:Xn,interleaveSeparators:oe,nameSpaceClassNames:ne,resetComponents:ee,withReset:ce}=__STORYBOOK_COMPONENTS__;var le=__STORYBOOK_ICONS__,{AccessibilityAltIcon:ie,AccessibilityIcon:se,AddIcon:ue,AdminIcon:de,AlertAltIcon:pe,AlertIcon:me,AlignLeftIcon:Se,AlignRightIcon:Ce,AppleIcon:he,ArrowDownIcon:Ae,ArrowLeftIcon:_e,ArrowRightIcon:be,ArrowSolidDownIcon:Te,ArrowSolidLeftIcon:ge,ArrowSolidRightIcon:ye,ArrowSolidUpIcon:Oe,ArrowUpIcon:ke,AzureDevOpsIcon:Be,BackIcon:fe,BasketIcon:Re,BatchAcceptIcon:Pe,BatchDenyIcon:Le,BeakerIcon:Ee,BellIcon:De,BitbucketIcon:we,BoldIcon:ve,BookIcon:xe,BookmarkHollowIcon:He,BookmarkIcon:Me,BottomBarIcon:Ue,BottomBarToggleIcon:Fe,BoxIcon:Ne,BranchIcon:Ge,BrowserIcon:We,ButtonIcon:Ke,CPUIcon:Ye,CalendarIcon:qe,CameraIcon:Ve,CategoryIcon:Ze,CertificateIcon:ze,ChangedIcon:Je,ChatIcon:Qe,CheckIcon:$e,ChevronDownIcon:je,ChevronLeftIcon:Xe,ChevronRightIcon:oc,ChevronSmallDownIcon:nc,ChevronSmallLeftIcon:ec,ChevronSmallRightIcon:cc,ChevronSmallUpIcon:tc,ChevronUpIcon:rc,ChromaticIcon:Ic,ChromeIcon:ac,CircleHollowIcon:lc,CircleIcon:ic,ClearIcon:sc,CloseAltIcon:uc,CloseIcon:dc,CloudHollowIcon:pc,CloudIcon:mc,CogIcon:Sc,CollapseIcon:Cc,CommandIcon:hc,CommentAddIcon:Ac,CommentIcon:_c,CommentsIcon:bc,CommitIcon:Tc,CompassIcon:gc,ComponentDrivenIcon:yc,ComponentIcon:Oc,ContrastIcon:kc,ControlsIcon:Bc,CopyIcon:fc,CreditIcon:Rc,CrossIcon:Pc,DashboardIcon:Lc,DatabaseIcon:Ec,DeleteIcon:Dc,DiamondIcon:wc,DirectionIcon:vc,DiscordIcon:xc,DocChartIcon:Hc,DocListIcon:Mc,DocumentIcon:Uc,DownloadIcon:Fc,DragIcon:Nc,EditIcon:Gc,EllipsisIcon:Wc,EmailIcon:Kc,ExpandAltIcon:Yc,ExpandIcon:qc,EyeCloseIcon:Vc,EyeIcon:Zc,FaceHappyIcon:zc,FaceNeutralIcon:Jc,FaceSadIcon:Qc,FacebookIcon:$c,FailedIcon:jc,FastForwardIcon:Xc,FigmaIcon:ot,FilterIcon:nt,FlagIcon:et,FolderIcon:ct,FormIcon:tt,GDriveIcon:rt,GithubIcon:It,GitlabIcon:at,GlobeIcon:lt,GoogleIcon:it,GraphBarIcon:st,GraphLineIcon:ut,GraphqlIcon:dt,GridAltIcon:pt,GridIcon:mt,GrowIcon:St,HeartHollowIcon:Ct,HeartIcon:ht,HomeIcon:At,HourglassIcon:_t,InfoIcon:bt,ItalicIcon:Tt,JumpToIcon:gt,KeyIcon:yt,LightningIcon:Ot,LightningOffIcon:kt,LinkBrokenIcon:Bt,LinkIcon:ft,LinkedinIcon:Rt,LinuxIcon:Pt,ListOrderedIcon:Lt,ListUnorderedIcon:Et,LocationIcon:Dt,LockIcon:wt,MarkdownIcon:vt,MarkupIcon:xt,MediumIcon:Ht,MemoryIcon:Mt,MenuIcon:Ut,MergeIcon:Ft,MirrorIcon:Nt,MobileIcon:Gt,MoonIcon:Wt,NutIcon:Kt,OutboxIcon:Yt,OutlineIcon:A,PaintBrushIcon:qt,PaperClipIcon:Vt,ParagraphIcon:Zt,PassedIcon:zt,PhoneIcon:Jt,PhotoDragIcon:Qt,PhotoIcon:$t,PinAltIcon:jt,PinIcon:Xt,PlayBackIcon:or,PlayIcon:nr,PlayNextIcon:er,PlusIcon:cr,PointerDefaultIcon:tr,PointerHandIcon:rr,PowerIcon:Ir,PrintIcon:ar,ProceedIcon:lr,ProfileIcon:ir,PullRequestIcon:sr,QuestionIcon:ur,RSSIcon:dr,RedirectIcon:pr,ReduxIcon:mr,RefreshIcon:Sr,ReplyIcon:Cr,RepoIcon:hr,RequestChangeIcon:Ar,RewindIcon:_r,RulerIcon:br,SearchIcon:Tr,ShareAltIcon:gr,ShareIcon:yr,ShieldIcon:Or,SideBySideIcon:kr,SidebarAltIcon:Br,SidebarAltToggleIcon:fr,SidebarIcon:Rr,SidebarToggleIcon:Pr,SpeakerIcon:Lr,StackedIcon:Er,StarHollowIcon:Dr,StarIcon:wr,StickerIcon:vr,StopAltIcon:xr,StopIcon:Hr,StorybookIcon:Mr,StructureIcon:Ur,SubtractIcon:Fr,SunIcon:Nr,SupportIcon:Gr,SwitchAltIcon:Wr,SyncIcon:Kr,TabletIcon:Yr,ThumbsUpIcon:qr,TimeIcon:Vr,TimerIcon:Zr,TransferIcon:zr,TrashIcon:Jr,TwitterIcon:Qr,TypeIcon:$r,UbuntuIcon:jr,UndoIcon:Xr,UnfoldIcon:oI,UnlockIcon:nI,UnpinIcon:eI,UploadIcon:cI,UserAddIcon:tI,UserAltIcon:rI,UserIcon:II,UsersIcon:aI,VSCodeIcon:lI,VerifiedIcon:iI,VideoIcon:sI,WandIcon:uI,WatchIcon:dI,WindowsIcon:pI,WrenchIcon:mI,YoutubeIcon:SI,ZoomIcon:CI,ZoomOutIcon:hI,ZoomResetIcon:AI,iconList:_I}=__STORYBOOK_ICONS__;var i="storybook/outline",_="outline",b=u(function(){let[c,r]=S(),s=C(),I=[!0,"true"].includes(c[_]),a=d(()=>r({[_]:!I}),[I]);return p(()=>{s.setAddonShortcut(i,{label:"Toggle Outline",defaultShortcut:["alt","O"],actionName:"outline",showInMenu:!1,action:a})},[a,s]),t.createElement(h,{key:"outline",active:I,title:"Apply outlines to the preview",onClick:a},t.createElement(A,null))});l.register(i,()=>{l.add(i,{title:"Outline",type:m.TOOL,match:({viewMode:c,tabId:r})=>!!(c&&c.match(/^(story|docs)$/))&&!r,render:()=>t.createElement(b,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-toolbars-7/manager-bundle.js b/storybook/sb-addons/essentials-toolbars-7/manager-bundle.js new file mode 100644 index 0000000..3cd68cf --- /dev/null +++ b/storybook/sb-addons/essentials-toolbars-7/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var n=__REACT__,{Children:le,Component:ne,Fragment:se,Profiler:ie,PureComponent:ue,StrictMode:ce,Suspense:pe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:me,cloneElement:de,createContext:be,createElement:Se,createFactory:Te,createRef:ye,forwardRef:_e,isValidElement:fe,lazy:Ce,memo:Ie,startTransition:ve,unstable_act:Oe,useCallback:I,useContext:Ee,useDebugValue:xe,useDeferredValue:ge,useEffect:x,useId:he,useImperativeHandle:ke,useInsertionEffect:Ae,useLayoutEffect:Re,useMemo:Le,useReducer:Be,useRef:R,useState:L,useSyncExternalStore:Me,useTransition:Pe,version:Ne}=__REACT__;var Fe=__STORYBOOK_API__,{ActiveTabs:We,Consumer:Ge,ManagerContext:Ke,Provider:Ye,RequestResponseError:$e,addons:g,combineParameters:qe,controlOrMetaKey:ze,controlOrMetaSymbol:Ue,eventMatchesShortcut:je,eventToShortcut:Ze,experimental_requestResponse:Je,isMacLike:Qe,isShortcutTaken:Xe,keyToSymbol:et,merge:tt,mockChannel:ot,optionOrAltSymbol:rt,shortcutMatchesShortcut:at,shortcutToHumanString:lt,types:B,useAddonState:nt,useArgTypes:st,useArgs:it,useChannel:ut,useGlobalTypes:M,useGlobals:h,useParameter:ct,useSharedState:pt,useStoryPrepared:mt,useStorybookApi:P,useStorybookState:dt}=__STORYBOOK_API__;var _t=__STORYBOOK_COMPONENTS__,{A:ft,ActionBar:Ct,AddonPanel:It,Badge:vt,Bar:Ot,Blockquote:Et,Button:xt,ClipboardCode:gt,Code:ht,DL:kt,Div:At,DocumentWrapper:Rt,EmptyTabContent:Lt,ErrorFormatter:Bt,FlexBar:Mt,Form:Pt,H1:Nt,H2:wt,H3:Vt,H4:Dt,H5:Ht,H6:Ft,HR:Wt,IconButton:N,IconButtonSkeleton:Gt,Icons:k,Img:Kt,LI:Yt,Link:$t,ListItem:qt,Loader:zt,Modal:Ut,OL:jt,P:Zt,Placeholder:Jt,Pre:Qt,ResetWrapper:Xt,ScrollArea:eo,Separator:w,Spaced:to,Span:oo,StorybookIcon:ro,StorybookLogo:ao,Symbols:lo,SyntaxHighlighter:no,TT:so,TabBar:io,TabButton:uo,TabWrapper:co,Table:po,Tabs:mo,TabsState:bo,TooltipLinkList:V,TooltipMessage:So,TooltipNote:To,UL:yo,WithTooltip:D,WithTooltipPure:_o,Zoom:fo,codeCommon:Co,components:Io,createCopyToClipboardFunction:vo,getStoryHref:Oo,icons:Eo,interleaveSeparators:xo,nameSpaceClassNames:go,resetComponents:ho,withReset:ko}=__STORYBOOK_COMPONENTS__;var W=({active:o,title:t,icon:e,description:r,onClick:a})=>n.createElement(N,{active:o,title:r,onClick:a},e&&n.createElement(k,{icon:e,__suppressDeprecationWarning:!0}),t?`\xA0${t}`:null),G=["reset"],K=o=>o.filter(t=>!G.includes(t.type)).map(t=>t.value),b="addon-toolbars",Y=async(o,t,e)=>{e&&e.next&&await o.setAddonShortcut(b,{label:e.next.label,defaultShortcut:e.next.keys,actionName:`${t}:next`,action:e.next.action}),e&&e.previous&&await o.setAddonShortcut(b,{label:e.previous.label,defaultShortcut:e.previous.keys,actionName:`${t}:previous`,action:e.previous.action}),e&&e.reset&&await o.setAddonShortcut(b,{label:e.reset.label,defaultShortcut:e.reset.keys,actionName:`${t}:reset`,action:e.reset.action})},$=o=>t=>{let{id:e,toolbar:{items:r,shortcuts:a}}=t,d=P(),[S,s]=h(),l=R([]),p=S[e],v=I(()=>{s({[e]:""})},[s]),O=I(()=>{let m=l.current,i=m.indexOf(p),c=i===m.length-1?0:i+1,T=l.current[c];s({[e]:T})},[l,p,s]),u=I(()=>{let m=l.current,i=m.indexOf(p),c=i>-1?i:0,T=c===0?m.length-1:c-1,y=l.current[T];s({[e]:y})},[l,p,s]);return x(()=>{a&&Y(d,e,{next:{...a.next,action:O},previous:{...a.previous,action:u},reset:{...a.reset,action:v}})},[d,e,a,O,u,v]),x(()=>{l.current=K(r)},[]),n.createElement(o,{cycleValues:l.current,...t})},H=({currentValue:o,items:t})=>o!=null&&t.find(e=>e.value===o&&e.type!=="reset"),q=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.icon},z=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.title},U=({right:o,title:t,value:e,icon:r,hideIcon:a,onClick:d,currentValue:S})=>{let s=r&&n.createElement(k,{style:{opacity:1},icon:r}),l={id:e??"_reset",active:S===e,right:o,title:t,icon:r,onClick:d};return r&&!a&&(l.icon=s),l},j=$(({id:o,name:t,description:e,toolbar:{icon:r,items:a,title:d,preventDynamicIcon:S,dynamicTitle:s}})=>{let[l,p]=h(),[v,O]=L(!1),u=l[o],m=!!u,i=r,c=d;S||(i=q({currentValue:u,items:a})||i),s&&(c=z({currentValue:u,items:a})||c),!c&&!i&&console.warn(`Toolbar '${t}' has no title or icon`);let T=I(y=>{p({[o]:y})},[u,p]);return n.createElement(D,{placement:"top",tooltip:({onHide:y})=>{let F=a.filter(({type:E})=>{let A=!0;return E==="reset"&&!u&&(A=!1),A}).map(E=>U({...E,currentValue:u,onClick:()=>{T(E.value),y()}}));return n.createElement(V,{links:F})},closeOnOutsideClick:!0,onVisibleChange:O},n.createElement(W,{active:v||m,description:e||"",icon:i,title:c||""}))}),Z={type:"item",value:""},J=(o,t)=>({...t,name:t.name||o,description:t.description||o,toolbar:{...t.toolbar,items:t.toolbar.items.map(e=>{let r=typeof e=="string"?{value:e,title:e}:e;return r.type==="reset"&&t.toolbar.icon&&(r.icon=t.toolbar.icon,r.hideIcon=!0),{...Z,...r}})}}),Q=()=>{let o=M(),t=Object.keys(o).filter(e=>!!o[e].toolbar);return t.length?n.createElement(n.Fragment,null,n.createElement(w,null),t.map(e=>{let r=J(e,o[e]);return n.createElement(j,{key:e,id:e,...r})})):null};g.register(b,()=>g.add(b,{title:b,type:B.TOOL,match:({tabId:o})=>!o,render:()=>n.createElement(Q,null)}));})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-viewport-6/manager-bundle.js b/storybook/sb-addons/essentials-viewport-6/manager-bundle.js new file mode 100644 index 0000000..664e4d4 --- /dev/null +++ b/storybook/sb-addons/essentials-viewport-6/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var ie=Object.create;var H=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var se=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty;var O=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ue=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ae(t))!le.call(e,a)&&a!==r&&H(e,a,{get:()=>t[a],enumerable:!(s=ce(t,a))||s.enumerable});return e};var pe=(e,t,r)=>(r=e!=null?ie(se(e)):{},ue(t||!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e));var d=P(()=>{});var h=P(()=>{});var m=P(()=>{});var $=Ie((Z,D)=>{d();h();m();(function(e){if(typeof Z=="object"&&typeof D<"u")D.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function s(a,S,u){function i(c,I){if(!S[c]){if(!a[c]){var l=typeof O=="function"&&O;if(!I&&l)return l(c,!0);if(o)return o(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var n=S[c]={exports:{}};a[c][0].call(n.exports,function(p){var b=a[c][1][p];return i(b||p)},n,n.exports,s,a,S,u)}return S[c].exports}for(var o=typeof O=="function"&&O,f=0;f=0)return this.lastItem=this.list[o],this.list[o].val},u.prototype.set=function(i,o){var f;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(f=this.indexOf(i),f>=0?(this.lastItem=this.list[f],this.list[f].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},u.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},u.prototype.forEach=function(i,o){var f;for(f=0;f0&&(E[y]={cacheItem:p,arg:arguments[y]},x?i(l,E):l.push(E),l.length>c&&o(l.shift())),n.wasMemoized=x,n.numArgs=y+1,R};return n.limit=c,n.wasMemoized=!1,n.cache=I,n.lru=l,n}};function i(c,I){var l=c.length,g=I.length,n,p,b;for(p=0;p=0&&(l=c[n],g=l.cacheItem.get(l.arg),!g||!g.size);n--)l.cacheItem.delete(l.arg)}function f(c,I){return c===I||c!==c&&I!==I}},{"map-or-similar":1}]},{},[3])(3)})});d();h();m();d();h();m();d();h();m();d();h();m();var w=__REACT__,{Children:De,Component:Ve,Fragment:U,Profiler:Ne,PureComponent:He,StrictMode:Ue,Suspense:ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fe,cloneElement:qe,createContext:Ge,createElement:z,createFactory:We,createRef:Ye,forwardRef:je,isValidElement:Ke,lazy:Ze,memo:F,startTransition:$e,unstable_act:Je,useCallback:Qe,useContext:Xe,useDebugValue:et,useDeferredValue:tt,useEffect:L,useId:ot,useImperativeHandle:nt,useInsertionEffect:rt,useLayoutEffect:it,useMemo:ct,useReducer:at,useRef:q,useState:G,useSyncExternalStore:st,useTransition:lt,version:It}=__REACT__;d();h();m();var ht=__STORYBOOK_API__,{ActiveTabs:mt,Consumer:ft,ManagerContext:gt,Provider:St,RequestResponseError:wt,addons:M,combineParameters:bt,controlOrMetaKey:yt,controlOrMetaSymbol:Ct,eventMatchesShortcut:vt,eventToShortcut:_t,experimental_requestResponse:Tt,isMacLike:xt,isShortcutTaken:Ot,keyToSymbol:At,merge:kt,mockChannel:Rt,optionOrAltSymbol:Et,shortcutMatchesShortcut:Lt,shortcutToHumanString:Bt,types:W,useAddonState:Pt,useArgTypes:Mt,useArgs:Dt,useChannel:Vt,useGlobalTypes:Nt,useGlobals:Y,useParameter:j,useSharedState:Ht,useStoryPrepared:Ut,useStorybookApi:K,useStorybookState:zt}=__STORYBOOK_API__;var N=pe($());d();h();m();var $t=__STORYBOOK_THEMING__,{CacheProvider:Jt,ClassNames:Qt,Global:J,ThemeProvider:Xt,background:eo,color:to,convert:oo,create:no,createCache:ro,createGlobal:io,createReset:co,css:ao,darken:so,ensure:lo,ignoreSsrWarning:Io,isPropValid:uo,jsx:po,keyframes:ho,lighten:mo,styled:A,themes:fo,typography:go,useTheme:So,withTheme:Q}=__STORYBOOK_THEMING__;d();h();m();var vo=__STORYBOOK_COMPONENTS__,{A:_o,ActionBar:To,AddonPanel:xo,Badge:Oo,Bar:Ao,Blockquote:ko,Button:Ro,ClipboardCode:Eo,Code:Lo,DL:Bo,Div:Po,DocumentWrapper:Mo,EmptyTabContent:Do,ErrorFormatter:Vo,FlexBar:No,Form:Ho,H1:Uo,H2:zo,H3:Fo,H4:qo,H5:Go,H6:Wo,HR:Yo,IconButton:V,IconButtonSkeleton:jo,Icons:Ko,Img:Zo,LI:$o,Link:Jo,ListItem:Qo,Loader:Xo,Modal:en,OL:tn,P:on,Placeholder:nn,Pre:rn,ResetWrapper:cn,ScrollArea:an,Separator:sn,Spaced:ln,Span:In,StorybookIcon:un,StorybookLogo:pn,Symbols:dn,SyntaxHighlighter:hn,TT:mn,TabBar:fn,TabButton:gn,TabWrapper:Sn,Table:wn,Tabs:bn,TabsState:yn,TooltipLinkList:X,TooltipMessage:Cn,TooltipNote:vn,UL:_n,WithTooltip:ee,WithTooltipPure:Tn,Zoom:xn,codeCommon:On,components:An,createCopyToClipboardFunction:kn,getStoryHref:Rn,icons:En,interleaveSeparators:Ln,nameSpaceClassNames:Bn,resetComponents:Pn,withReset:Mn}=__STORYBOOK_COMPONENTS__;d();h();m();var Un=__STORYBOOK_ICONS__,{AccessibilityAltIcon:zn,AccessibilityIcon:Fn,AddIcon:qn,AdminIcon:Gn,AlertAltIcon:Wn,AlertIcon:Yn,AlignLeftIcon:jn,AlignRightIcon:Kn,AppleIcon:Zn,ArrowDownIcon:$n,ArrowLeftIcon:Jn,ArrowRightIcon:Qn,ArrowSolidDownIcon:Xn,ArrowSolidLeftIcon:er,ArrowSolidRightIcon:tr,ArrowSolidUpIcon:or,ArrowUpIcon:nr,AzureDevOpsIcon:rr,BackIcon:ir,BasketIcon:cr,BatchAcceptIcon:ar,BatchDenyIcon:sr,BeakerIcon:lr,BellIcon:Ir,BitbucketIcon:ur,BoldIcon:pr,BookIcon:dr,BookmarkHollowIcon:hr,BookmarkIcon:mr,BottomBarIcon:fr,BottomBarToggleIcon:gr,BoxIcon:Sr,BranchIcon:wr,BrowserIcon:br,ButtonIcon:yr,CPUIcon:Cr,CalendarIcon:vr,CameraIcon:_r,CategoryIcon:Tr,CertificateIcon:xr,ChangedIcon:Or,ChatIcon:Ar,CheckIcon:kr,ChevronDownIcon:Rr,ChevronLeftIcon:Er,ChevronRightIcon:Lr,ChevronSmallDownIcon:Br,ChevronSmallLeftIcon:Pr,ChevronSmallRightIcon:Mr,ChevronSmallUpIcon:Dr,ChevronUpIcon:Vr,ChromaticIcon:Nr,ChromeIcon:Hr,CircleHollowIcon:Ur,CircleIcon:zr,ClearIcon:Fr,CloseAltIcon:qr,CloseIcon:Gr,CloudHollowIcon:Wr,CloudIcon:Yr,CogIcon:jr,CollapseIcon:Kr,CommandIcon:Zr,CommentAddIcon:$r,CommentIcon:Jr,CommentsIcon:Qr,CommitIcon:Xr,CompassIcon:ei,ComponentDrivenIcon:ti,ComponentIcon:oi,ContrastIcon:ni,ControlsIcon:ri,CopyIcon:ii,CreditIcon:ci,CrossIcon:ai,DashboardIcon:si,DatabaseIcon:li,DeleteIcon:Ii,DiamondIcon:ui,DirectionIcon:pi,DiscordIcon:di,DocChartIcon:hi,DocListIcon:mi,DocumentIcon:fi,DownloadIcon:gi,DragIcon:Si,EditIcon:wi,EllipsisIcon:bi,EmailIcon:yi,ExpandAltIcon:Ci,ExpandIcon:vi,EyeCloseIcon:_i,EyeIcon:Ti,FaceHappyIcon:xi,FaceNeutralIcon:Oi,FaceSadIcon:Ai,FacebookIcon:ki,FailedIcon:Ri,FastForwardIcon:Ei,FigmaIcon:Li,FilterIcon:Bi,FlagIcon:Pi,FolderIcon:Mi,FormIcon:Di,GDriveIcon:Vi,GithubIcon:Ni,GitlabIcon:Hi,GlobeIcon:Ui,GoogleIcon:zi,GraphBarIcon:Fi,GraphLineIcon:qi,GraphqlIcon:Gi,GridAltIcon:Wi,GridIcon:Yi,GrowIcon:te,HeartHollowIcon:ji,HeartIcon:Ki,HomeIcon:Zi,HourglassIcon:$i,InfoIcon:Ji,ItalicIcon:Qi,JumpToIcon:Xi,KeyIcon:ec,LightningIcon:tc,LightningOffIcon:oc,LinkBrokenIcon:nc,LinkIcon:rc,LinkedinIcon:ic,LinuxIcon:cc,ListOrderedIcon:ac,ListUnorderedIcon:sc,LocationIcon:lc,LockIcon:Ic,MarkdownIcon:uc,MarkupIcon:pc,MediumIcon:dc,MemoryIcon:hc,MenuIcon:mc,MergeIcon:fc,MirrorIcon:gc,MobileIcon:Sc,MoonIcon:wc,NutIcon:bc,OutboxIcon:yc,OutlineIcon:Cc,PaintBrushIcon:vc,PaperClipIcon:_c,ParagraphIcon:Tc,PassedIcon:xc,PhoneIcon:Oc,PhotoDragIcon:Ac,PhotoIcon:kc,PinAltIcon:Rc,PinIcon:Ec,PlayBackIcon:Lc,PlayIcon:Bc,PlayNextIcon:Pc,PlusIcon:Mc,PointerDefaultIcon:Dc,PointerHandIcon:Vc,PowerIcon:Nc,PrintIcon:Hc,ProceedIcon:Uc,ProfileIcon:zc,PullRequestIcon:Fc,QuestionIcon:qc,RSSIcon:Gc,RedirectIcon:Wc,ReduxIcon:Yc,RefreshIcon:jc,ReplyIcon:Kc,RepoIcon:Zc,RequestChangeIcon:$c,RewindIcon:Jc,RulerIcon:Qc,SearchIcon:Xc,ShareAltIcon:ea,ShareIcon:ta,ShieldIcon:oa,SideBySideIcon:na,SidebarAltIcon:ra,SidebarAltToggleIcon:ia,SidebarIcon:ca,SidebarToggleIcon:aa,SpeakerIcon:sa,StackedIcon:la,StarHollowIcon:Ia,StarIcon:ua,StickerIcon:pa,StopAltIcon:da,StopIcon:ha,StorybookIcon:ma,StructureIcon:fa,SubtractIcon:ga,SunIcon:Sa,SupportIcon:wa,SwitchAltIcon:ba,SyncIcon:ya,TabletIcon:Ca,ThumbsUpIcon:va,TimeIcon:_a,TimerIcon:Ta,TransferIcon:oe,TrashIcon:xa,TwitterIcon:Oa,TypeIcon:Aa,UbuntuIcon:ka,UndoIcon:Ra,UnfoldIcon:Ea,UnlockIcon:La,UnpinIcon:Ba,UploadIcon:Pa,UserAddIcon:Ma,UserAltIcon:Da,UserIcon:Va,UsersIcon:Na,VSCodeIcon:Ha,VerifiedIcon:Ua,VideoIcon:za,WandIcon:Fa,WatchIcon:qa,WindowsIcon:Ga,WrenchIcon:Wa,YoutubeIcon:Ya,ZoomIcon:ja,ZoomOutIcon:Ka,ZoomResetIcon:Za,iconList:$a}=__STORYBOOK_ICONS__;var k="storybook/viewport",he="viewport",me={viewport:"reset",viewportRotated:!1},re=(e,t)=>e.indexOf(t),fe=(e,t)=>{let r=re(e,t);return r===e.length-1?e[0]:e[r+1]},ge=(e,t)=>{let r=re(e,t);return r<1?e[e.length-1]:e[r-1]},Se=async(e,t,r,s)=>{await e.setAddonShortcut(k,{label:"Previous viewport",defaultShortcut:["alt","shift","V"],actionName:"previous",action:()=>{r({viewport:ge(s,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Next viewport",defaultShortcut:["alt","V"],actionName:"next",action:()=>{r({viewport:fe(s,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Reset viewport",defaultShortcut:["alt","control","V"],actionName:"reset",action:()=>{r(me)}})},we={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"}},be=(0,N.default)(50)(e=>[...ye,...Object.entries(e).map(([t,{name:r,...s}])=>({...s,id:t,title:r}))]),B={id:"reset",title:"Reset viewport",styles:null,type:"other"},ye=[B],Ce=(0,N.default)(50)((e,t,r,s)=>e.filter(a=>a.id!==B.id||t.id!==a.id).map(a=>({...a,onClick:()=>{r({viewport:a.id}),s()}}))),ve=({width:e,height:t,...r})=>({...r,height:e,width:t}),_e=A.div(()=>({display:"inline-flex",alignItems:"center"})),ne=A.div(({theme:e})=>({display:"inline-block",textDecoration:"none",padding:10,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,lineHeight:"1",height:40,border:"none",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",background:"transparent"})),Te=A(V)(()=>({display:"inline-flex",alignItems:"center"})),xe=A.div(({theme:e})=>({fontSize:e.typography.size.s2-1,marginLeft:10})),Oe=(e,t,r)=>{if(t===null)return;let s=typeof t=="function"?t(e):t;return r?ve(s):s},Ae=F(Q(({theme:e})=>{let[t,r]=Y(),{viewports:s=we,defaultOrientation:a,defaultViewport:S,disable:u}=j(he,{}),i=be(s),o=K(),[f,c]=G(!1);S&&!i.find(n=>n.id===S)&&console.warn(`Cannot find "defaultViewport" of "${S}" in addon-viewport configs, please check the "viewports" setting in the configuration.`),L(()=>{Se(o,t,r,Object.keys(s))},[s,t,t.viewport,r,o]),L(()=>{let n=a==="landscape";(S&&t.viewport!==S||a&&t.viewportRotated!==n)&&r({viewport:S,viewportRotated:n})},[a,S,r]);let I=i.find(n=>n.id===t.viewport)||i.find(n=>n.id===S)||i.find(n=>n.default)||B,l=q(),g=Oe(l.current,I.styles,t.viewportRotated);return L(()=>{l.current=g},[I]),u||Object.entries(s).length===0?null:w.createElement(U,null,w.createElement(ee,{placement:"top",tooltip:({onHide:n})=>w.createElement(X,{links:Ce(i,I,r,n)}),closeOnOutsideClick:!0,onVisibleChange:c},w.createElement(Te,{key:"viewport",title:"Change the size of the preview",active:f||!!g,onDoubleClick:()=>{r({viewport:B.id})}},w.createElement(te,null),g?w.createElement(xe,null,t.viewportRotated?`${I.title} (L)`:`${I.title} (P)`):null)),g?w.createElement(_e,null,w.createElement(J,{styles:{'iframe[data-is-storybook="true"]':{...g||{width:"100%",height:"100%"}}}}),w.createElement(ne,{title:"Viewport width"},g.width.replace("px","")),w.createElement(V,{key:"viewport-rotate",title:"Rotate viewport",onClick:()=>{r({viewportRotated:!t.viewportRotated})}},w.createElement(oe,null)),w.createElement(ne,{title:"Viewport height"},g.height.replace("px",""))):null)}));M.register(k,()=>{M.add(k,{title:"viewport / media-queries",type:W.TOOL,match:({viewMode:e,tabId:t})=>e==="story"&&!t,render:()=>z(Ae,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/interactions-11/manager-bundle.js b/storybook/sb-addons/interactions-11/manager-bundle.js new file mode 100644 index 0000000..fc17b60 --- /dev/null +++ b/storybook/sb-addons/interactions-11/manager-bundle.js @@ -0,0 +1,33 @@ +try{ +(()=>{var Wd=Object.create;var sa=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Vd=Object.getOwnPropertyNames;var Yd=Object.getPrototypeOf,Kd=Object.prototype.hasOwnProperty;var je=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var pn=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Xd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vd(t))!Kd.call(e,o)&&o!==r&&sa(e,o,{get:()=>t[o],enumerable:!(n=Gd(t,o))||n.enumerable});return e};var st=(e,t,r)=>(r=e!=null?Wd(Yd(e)):{},Xd(t||!e||!e.__esModule?sa(r,"default",{value:e,enumerable:!0}):r,e));var u=pn(()=>{});var s=pn(()=>{});var l=pn(()=>{});var Ta=O((xa,Sn)=>{u();s();l();(function(e){if(typeof xa=="object"&&typeof Sn<"u")Sn.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(o,a,i){function c(h,m){if(!a[h]){if(!o[h]){var f=typeof je=="function"&&je;if(!m&&f)return f(h,!0);if(p)return p(h,!0);var w=new Error("Cannot find module '"+h+"'");throw w.code="MODULE_NOT_FOUND",w}var g=a[h]={exports:{}};o[h][0].call(g.exports,function(A){var x=o[h][1][A];return c(x||A)},g,g.exports,n,o,a,i)}return a[h].exports}for(var p=typeof je=="function"&&je,d=0;d=0)return this.lastItem=this.list[p],this.list[p].val},i.prototype.set=function(c,p){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=p,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=p,this):(this.lastItem={key:c,val:p},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(c){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),p=this.indexOf(c),p>=0)return this.size--,this.list.splice(p,1)[0]},i.prototype.has=function(c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],!0):!1)},i.prototype.forEach=function(c,p){var d;for(d=0;d0&&(F[D]={cacheItem:A,arg:arguments[D]},M?c(f,F):f.push(F),f.length>h&&p(f.shift())),g.wasMemoized=M,g.numArgs=D+1,P};return g.limit=h,g.wasMemoized=!1,g.cache=m,g.lru=f,g}};function c(h,m){var f=h.length,w=m.length,g,A,x;for(A=0;A=0&&(f=h[g],w=f.cacheItem.get(f.arg),!w||!w.size);g--)f.cacheItem.delete(f.arg)}function d(h,m){return h===m||h!==h&&m!==m}},{"map-or-similar":1}]},{},[3])(3)})});var An=O((KT,Ia)=>{u();s();l();var wh=typeof window=="object"&&window&&window.Object===Object&&window;Ia.exports=wh});var ze=O((ZT,Da)=>{u();s();l();var Ch=An(),_h=typeof self=="object"&&self&&self.Object===Object&&self,Oh=Ch||_h||Function("return this")();Da.exports=Oh});var At=O((nI,Ra)=>{u();s();l();var xh=ze(),Th=xh.Symbol;Ra.exports=Th});var Na=O((uI,Ba)=>{u();s();l();var Pa=At(),Fa=Object.prototype,Ih=Fa.hasOwnProperty,Dh=Fa.toString,Gt=Pa?Pa.toStringTag:void 0;function Rh(e){var t=Ih.call(e,Gt),r=e[Gt];try{e[Gt]=void 0;var n=!0}catch{}var o=Dh.call(e);return n&&(t?e[Gt]=r:delete e[Gt]),o}Ba.exports=Rh});var Ma=O((pI,qa)=>{u();s();l();var Ph=Object.prototype,Fh=Ph.toString;function Bh(e){return Fh.call(e)}qa.exports=Bh});var ct=O((mI,ka)=>{u();s();l();var ja=At(),Nh=Na(),qh=Ma(),Mh="[object Null]",jh="[object Undefined]",La=ja?ja.toStringTag:void 0;function Lh(e){return e==null?e===void 0?jh:Mh:La&&La in Object(e)?Nh(e):qh(e)}ka.exports=Lh});var wt=O((EI,$a)=>{u();s();l();function kh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}$a.exports=kh});var wn=O((wI,za)=>{u();s();l();var $h=ct(),zh=wt(),Uh="[object AsyncFunction]",Hh="[object Function]",Wh="[object GeneratorFunction]",Gh="[object Proxy]";function Vh(e){if(!zh(e))return!1;var t=$h(e);return t==Hh||t==Wh||t==Uh||t==Gh}za.exports=Vh});var Ha=O((xI,Ua)=>{u();s();l();var Yh=ze(),Kh=Yh["__core-js_shared__"];Ua.exports=Kh});var Va=O((RI,Ga)=>{u();s();l();var Cn=Ha(),Wa=function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xh(e){return!!Wa&&Wa in e}Ga.exports=Xh});var _n=O((NI,Ya)=>{u();s();l();var Jh=Function.prototype,Qh=Jh.toString;function Zh(e){if(e!=null){try{return Qh.call(e)}catch{}try{return e+""}catch{}}return""}Ya.exports=Zh});var Xa=O((LI,Ka)=>{u();s();l();var em=wn(),tm=Va(),rm=wt(),nm=_n(),om=/[\\^$.*+?()[\]{}|]/g,am=/^\[object .+?Constructor\]$/,im=Function.prototype,um=Object.prototype,sm=im.toString,lm=um.hasOwnProperty,cm=RegExp("^"+sm.call(lm).replace(om,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pm(e){if(!rm(e)||tm(e))return!1;var t=em(e)?cm:am;return t.test(nm(e))}Ka.exports=pm});var Qa=O((UI,Ja)=>{u();s();l();function fm(e,t){return e?.[t]}Ja.exports=fm});var Ze=O((VI,Za)=>{u();s();l();var dm=Xa(),hm=Qa();function mm(e,t){var r=hm(e,t);return dm(r)?r:void 0}Za.exports=mm});var On=O((JI,ei)=>{u();s();l();var ym=Ze(),gm=function(){try{var e=ym(Object,"defineProperty");return e({},"",{}),e}catch{}}();ei.exports=gm});var xn=O((tD,ri)=>{u();s();l();var ti=On();function bm(e,t,r){t=="__proto__"&&ti?ti(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}ri.exports=bm});var oi=O((aD,ni)=>{u();s();l();function Em(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),c=i.length;c--;){var p=i[e?c:++o];if(r(a[p],p,a)===!1)break}return t}}ni.exports=Em});var ii=O((lD,ai)=>{u();s();l();var vm=oi(),Sm=vm();ai.exports=Sm});var si=O((dD,ui)=>{u();s();l();function Am(e,t){for(var r=-1,n=Array(e);++r{u();s();l();function wm(e){return e!=null&&typeof e=="object"}li.exports=wm});var pi=O((SD,ci)=>{u();s();l();var Cm=ct(),_m=pt(),Om="[object Arguments]";function xm(e){return _m(e)&&Cm(e)==Om}ci.exports=xm});var vr=O((_D,hi)=>{u();s();l();var fi=pi(),Tm=pt(),di=Object.prototype,Im=di.hasOwnProperty,Dm=di.propertyIsEnumerable,Rm=fi(function(){return arguments}())?fi:function(e){return Tm(e)&&Im.call(e,"callee")&&!Dm.call(e,"callee")};hi.exports=Rm});var Ue=O((ID,mi)=>{u();s();l();var Pm=Array.isArray;mi.exports=Pm});var gi=O((FD,yi)=>{u();s();l();function Fm(){return!1}yi.exports=Fm});var Tn=O((Vt,Ct)=>{u();s();l();var Bm=ze(),Nm=gi(),vi=typeof Vt=="object"&&Vt&&!Vt.nodeType&&Vt,bi=vi&&typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,qm=bi&&bi.exports===vi,Ei=qm?Bm.Buffer:void 0,Mm=Ei?Ei.isBuffer:void 0,jm=Mm||Nm;Ct.exports=jm});var Sr=O((kD,Si)=>{u();s();l();var Lm=9007199254740991,km=/^(?:0|[1-9]\d*)$/;function $m(e,t){var r=typeof e;return t=t??Lm,!!t&&(r=="number"||r!="symbol"&&km.test(e))&&e>-1&&e%1==0&&e{u();s();l();var zm=9007199254740991;function Um(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zm}Ai.exports=Um});var Ci=O((YD,wi)=>{u();s();l();var Hm=ct(),Wm=Ar(),Gm=pt(),Vm="[object Arguments]",Ym="[object Array]",Km="[object Boolean]",Xm="[object Date]",Jm="[object Error]",Qm="[object Function]",Zm="[object Map]",ey="[object Number]",ty="[object Object]",ry="[object RegExp]",ny="[object Set]",oy="[object String]",ay="[object WeakMap]",iy="[object ArrayBuffer]",uy="[object DataView]",sy="[object Float32Array]",ly="[object Float64Array]",cy="[object Int8Array]",py="[object Int16Array]",fy="[object Int32Array]",dy="[object Uint8Array]",hy="[object Uint8ClampedArray]",my="[object Uint16Array]",yy="[object Uint32Array]",de={};de[sy]=de[ly]=de[cy]=de[py]=de[fy]=de[dy]=de[hy]=de[my]=de[yy]=!0;de[Vm]=de[Ym]=de[iy]=de[Km]=de[uy]=de[Xm]=de[Jm]=de[Qm]=de[Zm]=de[ey]=de[ty]=de[ry]=de[ny]=de[oy]=de[ay]=!1;function gy(e){return Gm(e)&&Wm(e.length)&&!!de[Hm(e)]}wi.exports=gy});var Oi=O((QD,_i)=>{u();s();l();function by(e){return function(t){return e(t)}}_i.exports=by});var Ti=O((Yt,_t)=>{u();s();l();var Ey=An(),xi=typeof Yt=="object"&&Yt&&!Yt.nodeType&&Yt,Kt=xi&&typeof _t=="object"&&_t&&!_t.nodeType&&_t,vy=Kt&&Kt.exports===xi,In=vy&&Ey.process,Sy=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||In&&In.binding&&In.binding("util")}catch{}}();_t.exports=Sy});var Dn=O((aR,Ri)=>{u();s();l();var Ay=Ci(),wy=Oi(),Ii=Ti(),Di=Ii&&Ii.isTypedArray,Cy=Di?wy(Di):Ay;Ri.exports=Cy});var Rn=O((lR,Pi)=>{u();s();l();var _y=si(),Oy=vr(),xy=Ue(),Ty=Tn(),Iy=Sr(),Dy=Dn(),Ry=Object.prototype,Py=Ry.hasOwnProperty;function Fy(e,t){var r=xy(e),n=!r&&Oy(e),o=!r&&!n&&Ty(e),a=!r&&!n&&!o&&Dy(e),i=r||n||o||a,c=i?_y(e.length,String):[],p=c.length;for(var d in e)(t||Py.call(e,d))&&!(i&&(d=="length"||o&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Iy(d,p)))&&c.push(d);return c}Pi.exports=Fy});var Pn=O((dR,Fi)=>{u();s();l();var By=Object.prototype;function Ny(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||By;return e===r}Fi.exports=Ny});var Fn=O((gR,Bi)=>{u();s();l();function qy(e,t){return function(r){return e(t(r))}}Bi.exports=qy});var qi=O((SR,Ni)=>{u();s();l();var My=Fn(),jy=My(Object.keys,Object);Ni.exports=jy});var ji=O((_R,Mi)=>{u();s();l();var Ly=Pn(),ky=qi(),$y=Object.prototype,zy=$y.hasOwnProperty;function Uy(e){if(!Ly(e))return ky(e);var t=[];for(var r in Object(e))zy.call(e,r)&&r!="constructor"&&t.push(r);return t}Mi.exports=Uy});var Bn=O((IR,Li)=>{u();s();l();var Hy=wn(),Wy=Ar();function Gy(e){return e!=null&&Wy(e.length)&&!Hy(e)}Li.exports=Gy});var wr=O((FR,ki)=>{u();s();l();var Vy=Rn(),Yy=ji(),Ky=Bn();function Xy(e){return Ky(e)?Vy(e):Yy(e)}ki.exports=Xy});var zi=O((MR,$i)=>{u();s();l();var Jy=ii(),Qy=wr();function Zy(e,t){return e&&Jy(e,t,Qy)}$i.exports=Zy});var Hi=O(($R,Ui)=>{u();s();l();function eg(){this.__data__=[],this.size=0}Ui.exports=eg});var Cr=O((WR,Wi)=>{u();s();l();function tg(e,t){return e===t||e!==e&&t!==t}Wi.exports=tg});var Xt=O((KR,Gi)=>{u();s();l();var rg=Cr();function ng(e,t){for(var r=e.length;r--;)if(rg(e[r][0],t))return r;return-1}Gi.exports=ng});var Yi=O((ZR,Vi)=>{u();s();l();var og=Xt(),ag=Array.prototype,ig=ag.splice;function ug(e){var t=this.__data__,r=og(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ig.call(t,r,1),--this.size,!0}Vi.exports=ug});var Xi=O((nP,Ki)=>{u();s();l();var sg=Xt();function lg(e){var t=this.__data__,r=sg(t,e);return r<0?void 0:t[r][1]}Ki.exports=lg});var Qi=O((uP,Ji)=>{u();s();l();var cg=Xt();function pg(e){return cg(this.__data__,e)>-1}Ji.exports=pg});var eu=O((pP,Zi)=>{u();s();l();var fg=Xt();function dg(e,t){var r=this.__data__,n=fg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Zi.exports=dg});var Jt=O((mP,tu)=>{u();s();l();var hg=Hi(),mg=Yi(),yg=Xi(),gg=Qi(),bg=eu();function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{u();s();l();var Eg=Jt();function vg(){this.__data__=new Eg,this.size=0}ru.exports=vg});var au=O((wP,ou)=>{u();s();l();function Sg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}ou.exports=Sg});var uu=O((xP,iu)=>{u();s();l();function Ag(e){return this.__data__.get(e)}iu.exports=Ag});var lu=O((RP,su)=>{u();s();l();function wg(e){return this.__data__.has(e)}su.exports=wg});var _r=O((NP,cu)=>{u();s();l();var Cg=Ze(),_g=ze(),Og=Cg(_g,"Map");cu.exports=Og});var Qt=O((LP,pu)=>{u();s();l();var xg=Ze(),Tg=xg(Object,"create");pu.exports=Tg});var hu=O((UP,du)=>{u();s();l();var fu=Qt();function Ig(){this.__data__=fu?fu(null):{},this.size=0}du.exports=Ig});var yu=O((VP,mu)=>{u();s();l();function Dg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}mu.exports=Dg});var bu=O((JP,gu)=>{u();s();l();var Rg=Qt(),Pg="__lodash_hash_undefined__",Fg=Object.prototype,Bg=Fg.hasOwnProperty;function Ng(e){var t=this.__data__;if(Rg){var r=t[e];return r===Pg?void 0:r}return Bg.call(t,e)?t[e]:void 0}gu.exports=Ng});var vu=O((tF,Eu)=>{u();s();l();var qg=Qt(),Mg=Object.prototype,jg=Mg.hasOwnProperty;function Lg(e){var t=this.__data__;return qg?t[e]!==void 0:jg.call(t,e)}Eu.exports=Lg});var Au=O((aF,Su)=>{u();s();l();var kg=Qt(),$g="__lodash_hash_undefined__";function zg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kg&&t===void 0?$g:t,this}Su.exports=zg});var Cu=O((lF,wu)=>{u();s();l();var Ug=hu(),Hg=yu(),Wg=bu(),Gg=vu(),Vg=Au();function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{u();s();l();var _u=Cu(),Yg=Jt(),Kg=_r();function Xg(){this.size=0,this.__data__={hash:new _u,map:new(Kg||Yg),string:new _u}}Ou.exports=Xg});var Iu=O((gF,Tu)=>{u();s();l();function Jg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Tu.exports=Jg});var Zt=O((SF,Du)=>{u();s();l();var Qg=Iu();function Zg(e,t){var r=e.__data__;return Qg(t)?r[typeof t=="string"?"string":"hash"]:r.map}Du.exports=Zg});var Pu=O((_F,Ru)=>{u();s();l();var e2=Zt();function t2(e){var t=e2(this,e).delete(e);return this.size-=t?1:0,t}Ru.exports=t2});var Bu=O((IF,Fu)=>{u();s();l();var r2=Zt();function n2(e){return r2(this,e).get(e)}Fu.exports=n2});var qu=O((FF,Nu)=>{u();s();l();var o2=Zt();function a2(e){return o2(this,e).has(e)}Nu.exports=a2});var ju=O((MF,Mu)=>{u();s();l();var i2=Zt();function u2(e,t){var r=i2(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Mu.exports=u2});var Or=O(($F,Lu)=>{u();s();l();var s2=xu(),l2=Pu(),c2=Bu(),p2=qu(),f2=ju();function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{u();s();l();var d2=Jt(),h2=_r(),m2=Or(),y2=200;function g2(e,t){var r=this.__data__;if(r instanceof d2){var n=r.__data__;if(!h2||n.length{u();s();l();var b2=Jt(),E2=nu(),v2=au(),S2=uu(),A2=lu(),w2=$u();function It(e){var t=this.__data__=new b2(e);this.size=t.size}It.prototype.clear=E2;It.prototype.delete=v2;It.prototype.get=S2;It.prototype.has=A2;It.prototype.set=w2;zu.exports=It});var Hu=O((ZF,Uu)=>{u();s();l();var C2="__lodash_hash_undefined__";function _2(e){return this.__data__.set(e,C2),this}Uu.exports=_2});var Gu=O((n3,Wu)=>{u();s();l();function O2(e){return this.__data__.has(e)}Wu.exports=O2});var Yu=O((u3,Vu)=>{u();s();l();var x2=Or(),T2=Hu(),I2=Gu();function xr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new x2;++t{u();s();l();function D2(e,t){for(var r=-1,n=e==null?0:e.length;++r{u();s();l();function R2(e,t){return e.has(t)}Ju.exports=R2});var qn=O((E3,Zu)=>{u();s();l();var P2=Yu(),F2=Xu(),B2=Qu(),N2=1,q2=2;function M2(e,t,r,n,o,a){var i=r&N2,c=e.length,p=t.length;if(c!=p&&!(i&&p>c))return!1;var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var m=-1,f=!0,w=r&q2?new P2:void 0;for(a.set(e,t),a.set(t,e);++m{u();s();l();var j2=ze(),L2=j2.Uint8Array;es.exports=L2});var ns=O((x3,rs)=>{u();s();l();function k2(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}rs.exports=k2});var as=O((R3,os)=>{u();s();l();function $2(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}os.exports=$2});var cs=O((N3,ls)=>{u();s();l();var is=At(),us=ts(),z2=Cr(),U2=qn(),H2=ns(),W2=as(),G2=1,V2=2,Y2="[object Boolean]",K2="[object Date]",X2="[object Error]",J2="[object Map]",Q2="[object Number]",Z2="[object RegExp]",e0="[object Set]",t0="[object String]",r0="[object Symbol]",n0="[object ArrayBuffer]",o0="[object DataView]",ss=is?is.prototype:void 0,Mn=ss?ss.valueOf:void 0;function a0(e,t,r,n,o,a,i){switch(r){case o0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case n0:return!(e.byteLength!=t.byteLength||!a(new us(e),new us(t)));case Y2:case K2:case Q2:return z2(+e,+t);case X2:return e.name==t.name&&e.message==t.message;case Z2:case t0:return e==t+"";case J2:var c=H2;case e0:var p=n&G2;if(c||(c=W2),e.size!=t.size&&!p)return!1;var d=i.get(e);if(d)return d==t;n|=V2,i.set(e,t);var h=U2(c(e),c(t),n,o,a,i);return i.delete(e),h;case r0:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}ls.exports=a0});var Tr=O((L3,ps)=>{u();s();l();function i0(e,t){for(var r=-1,n=t.length,o=e.length;++r{u();s();l();var u0=Tr(),s0=Ue();function l0(e,t,r){var n=t(e);return s0(e)?n:u0(n,r(e))}fs.exports=l0});var hs=O((V3,ds)=>{u();s();l();function c0(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r{u();s();l();function p0(){return[]}ms.exports=p0});var kn=O((t5,gs)=>{u();s();l();var f0=hs(),d0=Ln(),h0=Object.prototype,m0=h0.propertyIsEnumerable,ys=Object.getOwnPropertySymbols,y0=ys?function(e){return e==null?[]:(e=Object(e),f0(ys(e),function(t){return m0.call(e,t)}))}:d0;gs.exports=y0});var Es=O((a5,bs)=>{u();s();l();var g0=jn(),b0=kn(),E0=wr();function v0(e){return g0(e,E0,b0)}bs.exports=v0});var As=O((l5,Ss)=>{u();s();l();var vs=Es(),S0=1,A0=Object.prototype,w0=A0.hasOwnProperty;function C0(e,t,r,n,o,a){var i=r&S0,c=vs(e),p=c.length,d=vs(t),h=d.length;if(p!=h&&!i)return!1;for(var m=p;m--;){var f=c[m];if(!(i?f in t:w0.call(t,f)))return!1}var w=a.get(e),g=a.get(t);if(w&&g)return w==t&&g==e;var A=!0;a.set(e,t),a.set(t,e);for(var x=i;++m{u();s();l();var _0=Ze(),O0=ze(),x0=_0(O0,"DataView");ws.exports=x0});var Os=O((g5,_s)=>{u();s();l();var T0=Ze(),I0=ze(),D0=T0(I0,"Promise");_s.exports=D0});var Ts=O((S5,xs)=>{u();s();l();var R0=Ze(),P0=ze(),F0=R0(P0,"Set");xs.exports=F0});var Ds=O((_5,Is)=>{u();s();l();var B0=Ze(),N0=ze(),q0=B0(N0,"WeakMap");Is.exports=q0});var js=O((I5,Ms)=>{u();s();l();var $n=Cs(),zn=_r(),Un=Os(),Hn=Ts(),Wn=Ds(),qs=ct(),Dt=_n(),Rs="[object Map]",M0="[object Object]",Ps="[object Promise]",Fs="[object Set]",Bs="[object WeakMap]",Ns="[object DataView]",j0=Dt($n),L0=Dt(zn),k0=Dt(Un),$0=Dt(Hn),z0=Dt(Wn),ft=qs;($n&&ft(new $n(new ArrayBuffer(1)))!=Ns||zn&&ft(new zn)!=Rs||Un&&ft(Un.resolve())!=Ps||Hn&&ft(new Hn)!=Fs||Wn&&ft(new Wn)!=Bs)&&(ft=function(e){var t=qs(e),r=t==M0?e.constructor:void 0,n=r?Dt(r):"";if(n)switch(n){case j0:return Ns;case L0:return Rs;case k0:return Ps;case $0:return Fs;case z0:return Bs}return t});Ms.exports=ft});var Gs=O((F5,Ws)=>{u();s();l();var Gn=Nn(),U0=qn(),H0=cs(),W0=As(),Ls=js(),ks=Ue(),$s=Tn(),G0=Dn(),V0=1,zs="[object Arguments]",Us="[object Array]",Ir="[object Object]",Y0=Object.prototype,Hs=Y0.hasOwnProperty;function K0(e,t,r,n,o,a){var i=ks(e),c=ks(t),p=i?Us:Ls(e),d=c?Us:Ls(t);p=p==zs?Ir:p,d=d==zs?Ir:d;var h=p==Ir,m=d==Ir,f=p==d;if(f&&$s(e)){if(!$s(t))return!1;i=!0,h=!1}if(f&&!h)return a||(a=new Gn),i||G0(e)?U0(e,t,r,n,o,a):H0(e,t,p,r,n,o,a);if(!(r&V0)){var w=h&&Hs.call(e,"__wrapped__"),g=m&&Hs.call(t,"__wrapped__");if(w||g){var A=w?e.value():e,x=g?t.value():t;return a||(a=new Gn),o(A,x,r,n,a)}}return f?(a||(a=new Gn),W0(e,t,r,n,o,a)):!1}Ws.exports=K0});var Vn=O((M5,Ks)=>{u();s();l();var X0=Gs(),Vs=pt();function Ys(e,t,r,n,o){return e===t?!0:e==null||t==null||!Vs(e)&&!Vs(t)?e!==e&&t!==t:X0(e,t,r,n,Ys,o)}Ks.exports=Ys});var Js=O(($5,Xs)=>{u();s();l();var J0=Nn(),Q0=Vn(),Z0=1,eb=2;function tb(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var c=r[o];if(i&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o{u();s();l();var rb=wt();function nb(e){return e===e&&!rb(e)}Qs.exports=nb});var el=O((K5,Zs)=>{u();s();l();var ob=Yn(),ab=wr();function ib(e){for(var t=ab(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ob(o)]}return t}Zs.exports=ib});var Kn=O((Z5,tl)=>{u();s();l();function ub(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}tl.exports=ub});var nl=O((nB,rl)=>{u();s();l();var sb=Js(),lb=el(),cb=Kn();function pb(e){var t=lb(e);return t.length==1&&t[0][2]?cb(t[0][0],t[0][1]):function(r){return r===e||sb(r,e,t)}}rl.exports=pb});var Dr=O((uB,ol)=>{u();s();l();var fb=ct(),db=pt(),hb="[object Symbol]";function mb(e){return typeof e=="symbol"||db(e)&&fb(e)==hb}ol.exports=mb});var Rr=O((pB,al)=>{u();s();l();var yb=Ue(),gb=Dr(),bb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eb=/^\w*$/;function vb(e,t){if(yb(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gb(e)?!0:Eb.test(e)||!bb.test(e)||t!=null&&e in Object(t)}al.exports=vb});var sl=O((mB,ul)=>{u();s();l();var il=Or(),Sb="Expected a function";function Xn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sb);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Xn.Cache||il),r}Xn.Cache=il;ul.exports=Xn});var cl=O((EB,ll)=>{u();s();l();var Ab=sl(),wb=500;function Cb(e){var t=Ab(e,function(n){return r.size===wb&&r.clear(),n}),r=t.cache;return t}ll.exports=Cb});var fl=O((wB,pl)=>{u();s();l();var _b=cl(),Ob=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xb=/\\(\\)?/g,Tb=_b(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ob,function(r,n,o,a){t.push(o?a.replace(xb,"$1"):n||r)}),t});pl.exports=Tb});var Jn=O((xB,dl)=>{u();s();l();function Ib(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r{u();s();l();var hl=At(),Db=Jn(),Rb=Ue(),Pb=Dr(),Fb=1/0,ml=hl?hl.prototype:void 0,yl=ml?ml.toString:void 0;function gl(e){if(typeof e=="string")return e;if(Rb(e))return Db(e,gl)+"";if(Pb(e))return yl?yl.call(e):"";var t=e+"";return t=="0"&&1/e==-Fb?"-0":t}bl.exports=gl});var Sl=O((NB,vl)=>{u();s();l();var Bb=El();function Nb(e){return e==null?"":Bb(e)}vl.exports=Nb});var er=O((LB,Al)=>{u();s();l();var qb=Ue(),Mb=Rr(),jb=fl(),Lb=Sl();function kb(e,t){return qb(e)?e:Mb(e,t)?[e]:jb(Lb(e))}Al.exports=kb});var Rt=O((UB,wl)=>{u();s();l();var $b=Dr(),zb=1/0;function Ub(e){if(typeof e=="string"||$b(e))return e;var t=e+"";return t=="0"&&1/e==-zb?"-0":t}wl.exports=Ub});var Pr=O((VB,Cl)=>{u();s();l();var Hb=er(),Wb=Rt();function Gb(e,t){t=Hb(t,e);for(var r=0,n=t.length;e!=null&&r{u();s();l();var Vb=Pr();function Yb(e,t,r){var n=e==null?void 0:Vb(e,t);return n===void 0?r:n}_l.exports=Yb});var Tl=O((tN,xl)=>{u();s();l();function Kb(e,t){return e!=null&&t in Object(e)}xl.exports=Kb});var Dl=O((aN,Il)=>{u();s();l();var Xb=er(),Jb=vr(),Qb=Ue(),Zb=Sr(),e1=Ar(),t1=Rt();function r1(e,t,r){t=Xb(t,e);for(var n=-1,o=t.length,a=!1;++n{u();s();l();var n1=Tl(),o1=Dl();function a1(e,t){return e!=null&&o1(e,t,n1)}Rl.exports=a1});var Fl=O((dN,Pl)=>{u();s();l();var i1=Vn(),u1=Ol(),s1=Qn(),l1=Rr(),c1=Yn(),p1=Kn(),f1=Rt(),d1=1,h1=2;function m1(e,t){return l1(e)&&c1(t)?p1(f1(e),t):function(r){var n=u1(r,e);return n===void 0&&n===t?s1(r,e):i1(t,n,d1|h1)}}Pl.exports=m1});var Zn=O((gN,Bl)=>{u();s();l();function y1(e){return e}Bl.exports=y1});var ql=O((SN,Nl)=>{u();s();l();function g1(e){return function(t){return t?.[e]}}Nl.exports=g1});var jl=O((_N,Ml)=>{u();s();l();var b1=Pr();function E1(e){return function(t){return b1(t,e)}}Ml.exports=E1});var kl=O((IN,Ll)=>{u();s();l();var v1=ql(),S1=jl(),A1=Rr(),w1=Rt();function C1(e){return A1(e)?v1(w1(e)):S1(e)}Ll.exports=C1});var eo=O((FN,$l)=>{u();s();l();var _1=nl(),O1=Fl(),x1=Zn(),T1=Ue(),I1=kl();function D1(e){return typeof e=="function"?e:e==null?x1:typeof e=="object"?T1(e)?O1(e[0],e[1]):_1(e):I1(e)}$l.exports=D1});var Ul=O((MN,zl)=>{u();s();l();var R1=xn(),P1=zi(),F1=eo();function B1(e,t){var r={};return t=F1(t,3),P1(e,function(n,o,a){R1(r,o,t(n,o,a))}),r}zl.exports=B1});var Wl=O(($N,Hl)=>{u();s();l();var N1=xn(),q1=Cr(),M1=Object.prototype,j1=M1.hasOwnProperty;function L1(e,t,r){var n=e[t];(!(j1.call(e,t)&&q1(n,r))||r===void 0&&!(t in e))&&N1(e,t,r)}Hl.exports=L1});var Yl=O((WN,Vl)=>{u();s();l();var k1=Wl(),$1=er(),z1=Sr(),Gl=wt(),U1=Rt();function H1(e,t,r,n){if(!Gl(e))return e;t=$1(t,e);for(var o=-1,a=t.length,i=a-1,c=e;c!=null&&++o{u();s();l();var W1=Pr(),G1=Yl(),V1=er();function Y1(e,t,r){for(var n=-1,o=t.length,a={};++n{u();s();l();var K1=to(),X1=Qn();function J1(e,t){return K1(e,t,function(r,n){return X1(e,n)})}Xl.exports=J1});var tc=O((n4,ec)=>{u();s();l();var Ql=At(),Q1=vr(),Z1=Ue(),Zl=Ql?Ql.isConcatSpreadable:void 0;function eE(e){return Z1(e)||Q1(e)||!!(Zl&&e&&e[Zl])}ec.exports=eE});var oc=O((u4,nc)=>{u();s();l();var tE=Tr(),rE=tc();function rc(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=rE),o||(o=[]);++a0&&r(c)?t>1?rc(c,t-1,r,n,o):tE(o,c):n||(o[o.length]=c)}return o}nc.exports=rc});var ic=O((p4,ac)=>{u();s();l();var nE=oc();function oE(e){var t=e==null?0:e.length;return t?nE(e,1):[]}ac.exports=oE});var sc=O((m4,uc)=>{u();s();l();function aE(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}uc.exports=aE});var pc=O((E4,cc)=>{u();s();l();var iE=sc(),lc=Math.max;function uE(e,t,r){return t=lc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=lc(n.length-t,0),i=Array(a);++o{u();s();l();function sE(e){return function(){return e}}fc.exports=sE});var yc=O((x4,mc)=>{u();s();l();var lE=dc(),hc=On(),cE=Zn(),pE=hc?function(e,t){return hc(e,"toString",{configurable:!0,enumerable:!1,value:lE(t),writable:!0})}:cE;mc.exports=pE});var bc=O((R4,gc)=>{u();s();l();var fE=800,dE=16,hE=Date.now;function mE(e){var t=0,r=0;return function(){var n=hE(),o=dE-(n-r);if(r=n,o>0){if(++t>=fE)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}gc.exports=mE});var vc=O((N4,Ec)=>{u();s();l();var yE=yc(),gE=bc(),bE=gE(yE);Ec.exports=bE});var Ac=O((L4,Sc)=>{u();s();l();var EE=ic(),vE=pc(),SE=vc();function AE(e){return SE(vE(e,void 0,EE),e+"")}Sc.exports=AE});var Cc=O((U4,wc)=>{u();s();l();var wE=Jl(),CE=Ac(),_E=CE(function(e,t){return e==null?{}:wE(e,t)});wc.exports=_E});var no=O((g9,_c)=>{u();s();l();var TE=Fn(),IE=TE(Object.getPrototypeOf,Object);_c.exports=IE});var Tc=O((S9,xc)=>{u();s();l();var DE=ct(),RE=no(),PE=pt(),FE="[object Object]",BE=Function.prototype,NE=Object.prototype,Oc=BE.toString,qE=NE.hasOwnProperty,ME=Oc.call(Object);function jE(e){if(!PE(e)||DE(e)!=FE)return!1;var t=RE(e);if(t===null)return!0;var r=qE.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Oc.call(r)==ME}xc.exports=jE});var Rc=O((D9,Dc)=>{u();s();l();Dc.exports=YE;function YE(e,t){if(oo("noDeprecation"))return e;var r=!1;function n(){if(!r){if(oo("throwDeprecation"))throw new Error(t);oo("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function oo(e){try{if(!window.localStorage)return!1}catch{return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Fc=O((B9,Pc)=>{u();s();l();var KE=Tr(),XE=no(),JE=kn(),QE=Ln(),ZE=Object.getOwnPropertySymbols,ev=ZE?function(e){for(var t=[];e;)KE(t,JE(e)),e=XE(e);return t}:QE;Pc.exports=ev});var Nc=O((j9,Bc)=>{u();s();l();function tv(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}Bc.exports=tv});var Mc=O((z9,qc)=>{u();s();l();var rv=wt(),nv=Pn(),ov=Nc(),av=Object.prototype,iv=av.hasOwnProperty;function uv(e){if(!rv(e))return ov(e);var t=nv(e),r=[];for(var n in e)n=="constructor"&&(t||!iv.call(e,n))||r.push(n);return r}qc.exports=uv});var Lc=O((G9,jc)=>{u();s();l();var sv=Rn(),lv=Mc(),cv=Bn();function pv(e){return cv(e)?sv(e,!0):lv(e)}jc.exports=pv});var $c=O((X9,kc)=>{u();s();l();var fv=jn(),dv=Fc(),hv=Lc();function mv(e){return fv(e,hv,dv)}kc.exports=mv});var Uc=O((eq,zc)=>{u();s();l();var yv=Jn(),gv=eo(),bv=to(),Ev=$c();function vv(e,t){if(e==null)return{};var r=yv(Ev(e),function(n){return[n]});return t=gv(t),bv(e,r,function(n,o){return t(n,o[0])})}zc.exports=vv});var Wc=O((sq,Hc)=>{"use strict";u();s();l();Hc.exports=Error});var Vc=O((fq,Gc)=>{"use strict";u();s();l();Gc.exports=EvalError});var Kc=O((yq,Yc)=>{"use strict";u();s();l();Yc.exports=RangeError});var Jc=O((vq,Xc)=>{"use strict";u();s();l();Xc.exports=ReferenceError});var ao=O((Cq,Qc)=>{"use strict";u();s();l();Qc.exports=SyntaxError});var Pt=O((Tq,Zc)=>{"use strict";u();s();l();Zc.exports=TypeError});var tp=O((Pq,ep)=>{"use strict";u();s();l();ep.exports=URIError});var np=O((qq,rp)=>{"use strict";u();s();l();rp.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var ip=O((kq,ap)=>{"use strict";u();s();l();var op=typeof Symbol<"u"&&Symbol,Sv=np();ap.exports=function(){return typeof op!="function"||typeof Symbol!="function"||typeof op("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sv()}});var sp=O((Hq,up)=>{"use strict";u();s();l();var io={__proto__:null,foo:{}},Av=Object;up.exports=function(){return{__proto__:io}.foo===io.foo&&!(io instanceof Av)}});var pp=O((Yq,cp)=>{"use strict";u();s();l();var wv="Function.prototype.bind called on incompatible ",Cv=Object.prototype.toString,_v=Math.max,Ov="[object Function]",lp=function(t,r){for(var n=[],o=0;o{"use strict";u();s();l();var Iv=pp();fp.exports=Function.prototype.bind||Iv});var hp=O((rM,dp)=>{"use strict";u();s();l();var Dv=Function.prototype.call,Rv=Object.prototype.hasOwnProperty,Pv=Fr();dp.exports=Pv.call(Dv,Rv)});var mt=O((iM,Ep)=>{"use strict";u();s();l();var oe,Fv=Wc(),Bv=Vc(),Nv=Kc(),qv=Jc(),qt=ao(),Nt=Pt(),Mv=tp(),bp=Function,uo=function(e){try{return bp('"use strict"; return ('+e+").constructor;")()}catch{}},dt=Object.getOwnPropertyDescriptor;if(dt)try{dt({},"")}catch{dt=null}var so=function(){throw new Nt},jv=dt?function(){try{return arguments.callee,so}catch{try{return dt(arguments,"callee").get}catch{return so}}}():so,Ft=ip()(),Lv=sp()(),we=Object.getPrototypeOf||(Lv?function(e){return e.__proto__}:null),Bt={},kv=typeof Uint8Array>"u"||!we?oe:we(Uint8Array),ht={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?oe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?oe:ArrayBuffer,"%ArrayIteratorPrototype%":Ft&&we?we([][Symbol.iterator]()):oe,"%AsyncFromSyncIteratorPrototype%":oe,"%AsyncFunction%":Bt,"%AsyncGenerator%":Bt,"%AsyncGeneratorFunction%":Bt,"%AsyncIteratorPrototype%":Bt,"%Atomics%":typeof Atomics>"u"?oe:Atomics,"%BigInt%":typeof BigInt>"u"?oe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?oe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?oe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?oe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Fv,"%eval%":eval,"%EvalError%":Bv,"%Float32Array%":typeof Float32Array>"u"?oe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?oe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?oe:FinalizationRegistry,"%Function%":bp,"%GeneratorFunction%":Bt,"%Int8Array%":typeof Int8Array>"u"?oe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?oe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?oe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ft&&we?we(we([][Symbol.iterator]())):oe,"%JSON%":typeof JSON=="object"?JSON:oe,"%Map%":typeof Map>"u"?oe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ft||!we?oe:we(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?oe:Promise,"%Proxy%":typeof Proxy>"u"?oe:Proxy,"%RangeError%":Nv,"%ReferenceError%":qv,"%Reflect%":typeof Reflect>"u"?oe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?oe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ft||!we?oe:we(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?oe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ft&&we?we(""[Symbol.iterator]()):oe,"%Symbol%":Ft?Symbol:oe,"%SyntaxError%":qt,"%ThrowTypeError%":jv,"%TypedArray%":kv,"%TypeError%":Nt,"%Uint8Array%":typeof Uint8Array>"u"?oe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?oe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?oe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?oe:Uint32Array,"%URIError%":Mv,"%WeakMap%":typeof WeakMap>"u"?oe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?oe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?oe:WeakSet};if(we)try{null.error}catch(e){mp=we(we(e)),ht["%Error.prototype%"]=mp}var mp,$v=function e(t){var r;if(t==="%AsyncFunction%")r=uo("async function () {}");else if(t==="%GeneratorFunction%")r=uo("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=uo("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&we&&(r=we(o.prototype))}return ht[t]=r,r},yp={__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"]},tr=Fr(),Br=hp(),zv=tr.call(Function.call,Array.prototype.concat),Uv=tr.call(Function.apply,Array.prototype.splice),gp=tr.call(Function.call,String.prototype.replace),Nr=tr.call(Function.call,String.prototype.slice),Hv=tr.call(Function.call,RegExp.prototype.exec),Wv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gv=/\\(\\)?/g,Vv=function(t){var r=Nr(t,0,1),n=Nr(t,-1);if(r==="%"&&n!=="%")throw new qt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new qt("invalid intrinsic syntax, expected opening `%`");var o=[];return gp(t,Wv,function(a,i,c,p){o[o.length]=c?gp(p,Gv,"$1"):i||a}),o},Yv=function(t,r){var n=t,o;if(Br(yp,n)&&(o=yp[n],n="%"+o[0]+"%"),Br(ht,n)){var a=ht[n];if(a===Bt&&(a=$v(n)),typeof a>"u"&&!r)throw new Nt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new qt("intrinsic "+t+" does not exist!")};Ep.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Nt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nt('"allowMissing" argument must be a boolean');if(Hv(/^%?[^%]*%?$/,t)===null)throw new qt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Vv(t),o=n.length>0?n[0]:"",a=Yv("%"+o+"%",r),i=a.name,c=a.value,p=!1,d=a.alias;d&&(o=d[0],Uv(n,zv([0,1],d)));for(var h=1,m=!0;h=n.length){var A=dt(c,f);m=!!A,m&&"get"in A&&!("originalValue"in A.get)?c=A.get:c=c[f]}else m=Br(c,f),c=c[f];m&&!p&&(ht[i]=c)}}return c}});var Mr=O((cM,vp)=>{"use strict";u();s();l();var Kv=mt(),qr=Kv("%Object.defineProperty%",!0)||!1;if(qr)try{qr({},"a",{value:1})}catch{qr=!1}vp.exports=qr});var lo=O((hM,Sp)=>{"use strict";u();s();l();var Xv=mt(),jr=Xv("%Object.getOwnPropertyDescriptor%",!0);if(jr)try{jr([],"length")}catch{jr=null}Sp.exports=jr});var _p=O((bM,Cp)=>{"use strict";u();s();l();var Ap=Mr(),Jv=ao(),Mt=Pt(),wp=lo();Cp.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Mt("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Mt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Mt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Mt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Mt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Mt("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,p=!!wp&&wp(t,r);if(Ap)Ap(t,r,{configurable:i===null&&p?p.configurable:!i,enumerable:o===null&&p?p.enumerable:!o,value:n,writable:a===null&&p?p.writable:!a});else if(c||!o&&!a&&!i)t[r]=n;else throw new Jv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Tp=O((AM,xp)=>{"use strict";u();s();l();var co=Mr(),Op=function(){return!!co};Op.hasArrayLengthDefineBug=function(){if(!co)return null;try{return co([],"length",{value:1}).length!==1}catch{return!0}};xp.exports=Op});var Fp=O((OM,Pp)=>{"use strict";u();s();l();var Qv=mt(),Ip=_p(),Zv=Tp()(),Dp=lo(),Rp=Pt(),eS=Qv("%Math.floor%");Pp.exports=function(t,r){if(typeof t!="function")throw new Rp("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||eS(r)!==r)throw new Rp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Dp){var i=Dp(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(Zv?Ip(t,"length",r,!0,!0):Ip(t,"length",r)),t}});var Lp=O((DM,Lr)=>{"use strict";u();s();l();var po=Fr(),kr=mt(),tS=Fp(),rS=Pt(),qp=kr("%Function.prototype.apply%"),Mp=kr("%Function.prototype.call%"),jp=kr("%Reflect.apply%",!0)||po.call(Mp,qp),Bp=Mr(),nS=kr("%Math.max%");Lr.exports=function(t){if(typeof t!="function")throw new rS("a function is required");var r=jp(po,Mp,arguments);return tS(r,1+nS(0,t.length-(arguments.length-1)),!0)};var Np=function(){return jp(po,qp,arguments)};Bp?Bp(Lr.exports,"apply",{value:Np}):Lr.exports.apply=Np});var Up=O((BM,zp)=>{"use strict";u();s();l();var kp=mt(),$p=Lp(),oS=$p(kp("String.prototype.indexOf"));zp.exports=function(t,r){var n=kp(t,!!r);return typeof n=="function"&&oS(t,".prototype.")>-1?$p(n):n}});var Hp=O(()=>{u();s();l()});var pf=O((UM,cf)=>{u();s();l();var Ao=typeof Map=="function"&&Map.prototype,fo=Object.getOwnPropertyDescriptor&&Ao?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zr=Ao&&fo&&typeof fo.get=="function"?fo.get:null,Wp=Ao&&Map.prototype.forEach,wo=typeof Set=="function"&&Set.prototype,ho=Object.getOwnPropertyDescriptor&&wo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ur=wo&&ho&&typeof ho.get=="function"?ho.get:null,Gp=wo&&Set.prototype.forEach,aS=typeof WeakMap=="function"&&WeakMap.prototype,nr=aS?WeakMap.prototype.has:null,iS=typeof WeakSet=="function"&&WeakSet.prototype,or=iS?WeakSet.prototype.has:null,uS=typeof WeakRef=="function"&&WeakRef.prototype,Vp=uS?WeakRef.prototype.deref:null,sS=Boolean.prototype.valueOf,lS=Object.prototype.toString,cS=Function.prototype.toString,pS=String.prototype.match,Co=String.prototype.slice,tt=String.prototype.replace,fS=String.prototype.toUpperCase,Yp=String.prototype.toLowerCase,nf=RegExp.prototype.test,Kp=Array.prototype.concat,He=Array.prototype.join,dS=Array.prototype.slice,Xp=Math.floor,go=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mo=Object.getOwnPropertySymbols,bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,jt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===jt||!0)?Symbol.toStringTag:null,of=Object.prototype.propertyIsEnumerable,Jp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Qp(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||nf.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Xp(-e):Xp(e);if(n!==e){var o=String(n),a=Co.call(t,o.length+1);return tt.call(o,r,"$&_")+"."+tt.call(tt.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tt.call(t,r,"$&_")}var Eo=Hp(),Zp=Eo.custom,ef=uf(Zp)?Zp:null;cf.exports=function e(t,r,n,o){var a=r||{};if(et(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(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 i=et(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(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(et(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return lf(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var p=String(t);return c?Qp(t,p):p}if(typeof t=="bigint"){var d=String(t)+"n";return c?Qp(t,d):d}var h=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof t=="object")return vo(t)?"[Array]":"[Object]";var m=RS(a,n);if(typeof o>"u")o=[];else if(sf(o,t)>=0)return"[Circular]";function f(X,_,R){if(_&&(o=dS.call(o),o.push(_)),R){var B={depth:a.depth};return et(a,"quoteStyle")&&(B.quoteStyle=a.quoteStyle),e(X,B,n+1,o)}return e(X,a,n+1,o)}if(typeof t=="function"&&!tf(t)){var w=AS(t),g=$r(t,f);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+He.call(g,", ")+" }":"")}if(uf(t)){var A=jt?tt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bo.call(t);return typeof t=="object"&&!jt?rr(A):A}if(TS(t)){for(var x="<"+Yp.call(String(t.nodeName)),P=t.attributes||[],D=0;D",x}if(vo(t)){if(t.length===0)return"[]";var F=$r(t,f);return m&&!DS(F)?"["+So(F,m)+"]":"[ "+He.call(F,", ")+" ]"}if(yS(t)){var M=$r(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!of.call(t,"cause")?"{ ["+String(t)+"] "+He.call(Kp.call("[cause]: "+f(t.cause),M),", ")+" }":M.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+He.call(M,", ")+" }"}if(typeof t=="object"&&i){if(ef&&typeof t[ef]=="function"&&Eo)return Eo(t,{depth:h-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wS(t)){var j=[];return Wp&&Wp.call(t,function(X,_){j.push(f(_,t,!0)+" => "+f(X,t))}),rf("Map",zr.call(t),j,m)}if(OS(t)){var H=[];return Gp&&Gp.call(t,function(X){H.push(f(X,t))}),rf("Set",Ur.call(t),H,m)}if(CS(t))return yo("WeakMap");if(xS(t))return yo("WeakSet");if(_S(t))return yo("WeakRef");if(bS(t))return rr(f(Number(t)));if(vS(t))return rr(f(go.call(t)));if(ES(t))return rr(sS.call(t));if(gS(t))return rr(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===window)return"{ [object globalThis] }";if(!mS(t)&&!tf(t)){var W=$r(t,f),I=Jp?Jp(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",V=!I&&Oe&&Object(t)===t&&Oe in t?Co.call(rt(t),8,-1):L?"Object":"",J=I||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Q=J+(V||L?"["+He.call(Kp.call([],V||[],L||[]),": ")+"] ":"");return W.length===0?Q+"{}":m?Q+"{"+So(W,m)+"}":Q+"{ "+He.call(W,", ")+" }"}return String(t)};function af(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function hS(e){return tt.call(String(e),/"/g,""")}function vo(e){return rt(e)==="[object Array]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function mS(e){return rt(e)==="[object Date]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function tf(e){return rt(e)==="[object RegExp]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function yS(e){return rt(e)==="[object Error]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function gS(e){return rt(e)==="[object String]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function bS(e){return rt(e)==="[object Number]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function ES(e){return rt(e)==="[object Boolean]"&&(!Oe||!(typeof e=="object"&&Oe in e))}function uf(e){if(jt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!bo)return!1;try{return bo.call(e),!0}catch{}return!1}function vS(e){if(!e||typeof e!="object"||!go)return!1;try{return go.call(e),!0}catch{}return!1}var SS=Object.prototype.hasOwnProperty||function(e){return e in this};function et(e,t){return SS.call(e,t)}function rt(e){return lS.call(e)}function AS(e){if(e.name)return e.name;var t=pS.call(cS.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function sf(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return lf(Co.call(e,0,t.maxStringLength),t)+n}var o=tt.call(tt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,IS);return af(o,"single",t)}function IS(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+fS.call(t.toString(16))}function rr(e){return"Object("+e+")"}function yo(e){return e+" { ? }"}function rf(e,t,r,n){var o=n?So(r,n):He.call(r,", ");return e+" ("+t+") {"+o+"}"}function DS(e){for(var t=0;t=0)return!1;return!0}function RS(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=He.call(Array(e.indent+1)," ");else return null;return{base:r,prev:He.call(Array(t+1),r)}}function So(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+He.call(e,","+r)+` +`+t.prev}function $r(e,t){var r=vo(e),n=[];if(r){n.length=e.length;for(var o=0;o{"use strict";u();s();l();var ff=mt(),Lt=Up(),PS=pf(),FS=Pt(),Hr=ff("%WeakMap%",!0),Wr=ff("%Map%",!0),BS=Lt("WeakMap.prototype.get",!0),NS=Lt("WeakMap.prototype.set",!0),qS=Lt("WeakMap.prototype.has",!0),MS=Lt("Map.prototype.get",!0),jS=Lt("Map.prototype.set",!0),LS=Lt("Map.prototype.has",!0),_o=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},kS=function(e,t){var r=_o(e,t);return r&&r.value},$S=function(e,t,r){var n=_o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},zS=function(e,t){return!!_o(e,t)};df.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new FS("Side channel does not contain "+PS(a))},get:function(a){if(Hr&&a&&(typeof a=="object"||typeof a=="function")){if(t)return BS(t,a)}else if(Wr){if(r)return MS(r,a)}else if(n)return kS(n,a)},has:function(a){if(Hr&&a&&(typeof a=="object"||typeof a=="function")){if(t)return qS(t,a)}else if(Wr){if(r)return LS(r,a)}else if(n)return zS(n,a);return!1},set:function(a,i){Hr&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Hr),NS(t,a,i)):Wr?(r||(r=new Wr),jS(r,a,i)):(n||(n={key:{},next:null}),$S(n,a,i))}};return o}});var Gr=O((JM,mf)=>{"use strict";u();s();l();var US=String.prototype.replace,HS=/%20/g,Oo={RFC1738:"RFC1738",RFC3986:"RFC3986"};mf.exports={default:Oo.RFC3986,formatters:{RFC1738:function(e){return US.call(e,HS,"+")},RFC3986:function(e){return String(e)}},RFC1738:Oo.RFC1738,RFC3986:Oo.RFC3986}});var Io=O((tj,gf)=>{"use strict";u();s();l();var WS=Gr(),xo=Object.prototype.hasOwnProperty,yt=Array.isArray,We=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),GS=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(yt(n)){for(var o=[],a=0;a=To?i.slice(p,p+To):i,h=[],m=0;m=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===WS.RFC1738&&(f===40||f===41)){h[h.length]=d.charAt(m);continue}if(f<128){h[h.length]=We[f];continue}if(f<2048){h[h.length]=We[192|f>>6]+We[128|f&63];continue}if(f<55296||f>=57344){h[h.length]=We[224|f>>12]+We[128|f>>6&63]+We[128|f&63];continue}m+=1,f=65536+((f&1023)<<10|d.charCodeAt(m)&1023),h[h.length]=We[240|f>>18]+We[128|f>>12&63]+We[128|f>>6&63]+We[128|f&63]}c+=h.join("")}return c},JS=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o{"use strict";u();s();l();var Ef=hf(),Vr=Io(),ar=Gr(),rA=Object.prototype.hasOwnProperty,vf={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ge=Array.isArray,nA=Array.prototype.push,Sf=function(e,t){nA.apply(e,Ge(t)?t:[t])},oA=Date.prototype.toISOString,bf=ar.default,Ae={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Vr.encode,encodeValuesOnly:!1,format:bf,formatter:ar.formatters[bf],indices:!1,serializeDate:function(t){return oA.call(t)},skipNulls:!1,strictNullHandling:!1},aA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Do={},iA=function e(t,r,n,o,a,i,c,p,d,h,m,f,w,g,A,x,P,D){for(var F=t,M=D,j=0,H=!1;(M=M.get(Do))!==void 0&&!H;){var W=M.get(t);if(j+=1,typeof W<"u"){if(W===j)throw new RangeError("Cyclic object value");H=!0}typeof M.get(Do)>"u"&&(j=0)}if(typeof h=="function"?F=h(r,F):F instanceof Date?F=w(F):n==="comma"&&Ge(F)&&(F=Vr.maybeMap(F,function(U){return U instanceof Date?w(U):U})),F===null){if(i)return d&&!x?d(r,Ae.encoder,P,"key",g):r;F=""}if(aA(F)||Vr.isBuffer(F)){if(d){var I=x?r:d(r,Ae.encoder,P,"key",g);return[A(I)+"="+A(d(F,Ae.encoder,P,"value",g))]}return[A(r)+"="+A(String(F))]}var L=[];if(typeof F>"u")return L;var V;if(n==="comma"&&Ge(F))x&&d&&(F=Vr.maybeMap(F,d)),V=[{value:F.length>0?F.join(",")||null:void 0}];else if(Ge(h))V=h;else{var J=Object.keys(F);V=m?J.sort(m):J}var Q=p?r.replace(/\./g,"%2E"):r,X=o&&Ge(F)&&F.length===1?Q+"[]":Q;if(a&&Ge(F)&&F.length===0)return X+"[]";for(var _=0;_"u"?t.encodeDotInKeys===!0?!0:Ae.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ae.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ae.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ae.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ae.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ae.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ae.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ae.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ae.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ae.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ae.strictNullHandling}};Af.exports=function(e,t){var r=e,n=uA(t),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Ge(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var c=vf[n.arrayFormat],p=c==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var d=Ef(),h=0;h0?w+f:""}});var Of=O((lj,_f)=>{"use strict";u();s();l();var kt=Io(),Ro=Object.prototype.hasOwnProperty,sA=Array.isArray,be={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:kt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},lA=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Cf=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},cA="utf8=%26%2310003%3B",pA="utf8=%E2%9C%93",fA=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,a),c=-1,p,d=r.charset;if(r.charsetSentinel)for(p=0;p-1&&(g=sA(g)?[g]:g);var A=Ro.call(n,w);A&&r.duplicates==="combine"?n[w]=kt.combine(n[w],g):(!A||r.duplicates==="last")&&(n[w]=g)}return n},dA=function(e,t,r,n){for(var o=n?t:Cf(t,r),a=e.length-1;a>=0;--a){var i,c=e[a];if(c==="[]"&&r.parseArrays)i=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{i=r.plainObjects?Object.create(null):{};var p=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,d=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(d,10);!r.parseArrays&&d===""?i={0:o}:!isNaN(h)&&c!==d&&String(h)===d&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(i=[],i[h]=o):d!=="__proto__"&&(i[d]=o)}o=i}return o},hA=function(t,r,n,o){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,p=n.depth>0&&i.exec(a),d=p?a.slice(0,p.index):a,h=[];if(d){if(!n.plainObjects&&Ro.call(Object.prototype,d)&&!n.allowPrototypes)return;h.push(d)}for(var m=0;n.depth>0&&(p=c.exec(a))!==null&&m"u"?be.charset:t.charset,n=typeof t.duplicates>"u"?be.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:be.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:be.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:be.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:be.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:be.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:be.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:be.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:be.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:be.decoder,delimiter:typeof t.delimiter=="string"||kt.isRegExp(t.delimiter)?t.delimiter:be.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:be.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:be.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:be.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:be.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:be.strictNullHandling}};_f.exports=function(e,t){var r=mA(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?fA(e,r):e,o=r.plainObjects?Object.create(null):{},a=Object.keys(n),i=0;i{"use strict";u();s();l();var yA=wf(),gA=Of(),bA=Gr();xf.exports={formats:bA,parse:gA,stringify:yA}});u();s();l();u();s();l();u();s();l();var y=__REACT__,{Children:L_,Component:k_,Fragment:Je,Profiler:$_,PureComponent:z_,StrictMode:U_,Suspense:H_,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:W_,cloneElement:G_,createContext:V_,createElement:ee,createFactory:Y_,createRef:K_,forwardRef:X_,isValidElement:J_,lazy:Q_,memo:yr,startTransition:Z_,unstable_act:eO,useCallback:la,useContext:tO,useDebugValue:rO,useDeferredValue:nO,useEffect:Qe,useId:oO,useImperativeHandle:aO,useInsertionEffect:iO,useLayoutEffect:uO,useMemo:ca,useReducer:sO,useRef:gr,useState:ke,useSyncExternalStore:lO,useTransition:cO,version:pO}=__REACT__;u();s();l();var mO=__STORYBOOK_API__,{ActiveTabs:yO,Consumer:pa,ManagerContext:gO,Provider:bO,RequestResponseError:EO,addons:fn,combineParameters:vO,controlOrMetaKey:SO,controlOrMetaSymbol:AO,eventMatchesShortcut:wO,eventToShortcut:CO,experimental_requestResponse:_O,isMacLike:OO,isShortcutTaken:xO,keyToSymbol:TO,merge:IO,mockChannel:DO,optionOrAltSymbol:RO,shortcutMatchesShortcut:PO,shortcutToHumanString:FO,types:fa,useAddonState:dn,useArgTypes:BO,useArgs:NO,useChannel:da,useGlobalTypes:qO,useGlobals:MO,useParameter:ha,useSharedState:jO,useStoryPrepared:LO,useStorybookApi:ma,useStorybookState:kO}=__STORYBOOK_API__;u();s();l();var WO=__STORYBOOK_COMPONENTS__,{A:GO,ActionBar:VO,AddonPanel:ya,Badge:ga,Bar:ba,Blockquote:YO,Button:Ea,ClipboardCode:KO,Code:XO,DL:JO,Div:QO,DocumentWrapper:ZO,EmptyTabContent:va,ErrorFormatter:ex,FlexBar:tx,Form:rx,H1:nx,H2:ox,H3:ax,H4:ix,H5:ux,H6:sx,HR:lx,IconButton:hn,IconButtonSkeleton:cx,Icons:px,Img:fx,LI:dx,Link:mn,ListItem:hx,Loader:mx,Modal:yx,OL:gx,P:Sa,Placeholder:bx,Pre:Ex,ResetWrapper:vx,ScrollArea:Sx,Separator:Aa,Spaced:wa,Span:Ax,StorybookIcon:wx,StorybookLogo:Cx,Symbols:_x,SyntaxHighlighter:Ox,TT:xx,TabBar:Tx,TabButton:Ix,TabWrapper:Dx,Table:Rx,Tabs:Px,TabsState:Fx,TooltipLinkList:Bx,TooltipMessage:Nx,TooltipNote:yn,UL:qx,WithTooltip:lt,WithTooltipPure:Mx,Zoom:jx,codeCommon:Lx,components:kx,createCopyToClipboardFunction:$x,getStoryHref:zx,icons:Ux,interleaveSeparators:Hx,nameSpaceClassNames:Wx,resetComponents:Gx,withReset:Vx}=__STORYBOOK_COMPONENTS__;u();s();l();u();s();l();u();s();l();var Ne=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();u();s();l();var rT=__STORYBOOK_CHANNELS__,{Channel:Ca,PostMessageTransport:nT,WebsocketTransport:oT,createBrowserChannel:aT}=__STORYBOOK_CHANNELS__;u();s();l();var cT=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Qd,logger:gn,once:_a,pretty:pT}=__STORYBOOK_CLIENT_LOGGER__;u();s();l();var yT=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Zd,ARGTYPES_INFO_RESPONSE:eh,CHANNEL_CREATED:gT,CHANNEL_WS_DISCONNECT:bT,CONFIG_ERROR:th,CREATE_NEW_STORYFILE_REQUEST:ET,CREATE_NEW_STORYFILE_RESPONSE:vT,CURRENT_STORY_WAS_SET:rh,DOCS_PREPARED:nh,DOCS_RENDERED:oh,FILE_COMPONENT_SEARCH_REQUEST:ST,FILE_COMPONENT_SEARCH_RESPONSE:AT,FORCE_REMOUNT:br,FORCE_RE_RENDER:ah,GLOBALS_UPDATED:ih,NAVIGATE_URL:wT,PLAY_FUNCTION_THREW_EXCEPTION:bn,PRELOAD_ENTRIES:uh,PREVIEW_BUILDER_PROGRESS:CT,PREVIEW_KEYDOWN:sh,REGISTER_SUBSCRIPTION:_T,REQUEST_WHATS_NEW_DATA:OT,RESET_STORY_ARGS:lh,RESULT_WHATS_NEW_DATA:xT,SAVE_STORY_REQUEST:TT,SAVE_STORY_RESPONSE:IT,SELECT_STORY:DT,SET_CONFIG:RT,SET_CURRENT_STORY:Oa,SET_GLOBALS:ch,SET_INDEX:PT,SET_STORIES:FT,SET_WHATS_NEW_CACHE:BT,SHARED_STATE_CHANGED:NT,SHARED_STATE_SET:qT,STORIES_COLLAPSE_ALL:MT,STORIES_EXPAND_ALL:jT,STORY_ARGS_UPDATED:ph,STORY_CHANGED:fh,STORY_ERRORED:dh,STORY_INDEX_INVALIDATED:hh,STORY_MISSING:mh,STORY_PREPARED:yh,STORY_RENDERED:gh,STORY_RENDER_PHASE_CHANGED:Er,STORY_SPECIFIED:bh,STORY_THREW_EXCEPTION:En,STORY_UNCHANGED:Eh,TELEMETRY_ERROR:LT,TOGGLE_WHATS_NEW_NOTIFICATIONS:kT,UNHANDLED_ERRORS_WHILE_PLAYING:vn,UPDATE_GLOBALS:vh,UPDATE_QUERY_PARAMS:Sh,UPDATE_STORY_ARGS:Ah}=__STORYBOOK_CORE_EVENTS__;var Pf=st(Ta(),1),ir=st(Ul(),1),EA=st(Cc(),1);u();s();l();u();s();l();u();s();l();u();s();l();function ro(e){for(var t=[],r=1;r(e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e))(xE||{});u();s();l();var Yr=st(Tc(),1);u();s();l();var LE=Object.create,Ic=Object.defineProperty,kE=Object.getOwnPropertyDescriptor,$E=Object.getOwnPropertyNames,zE=Object.getPrototypeOf,UE=Object.prototype.hasOwnProperty,HE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),WE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $E(t))!UE.call(e,o)&&o!==r&&Ic(e,o,{get:()=>t[o],enumerable:!(n=kE(t,o))||n.enumerable});return e},GE=(e,t,r)=>(r=e!=null?LE(zE(e)):{},WE(t||!e||!e.__esModule?Ic(r,"default",{value:e,enumerable:!0}):r,e)),VE=HE(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(c,p,d){var h,m,f,w=t.call(c),g=t.call(p);if(c===p)return!0;if(c==null||p==null)return!1;if(d.indexOf(c)>-1&&d.indexOf(p)>-1)return!0;if(d.push(c,p),w!=g||(h=n(c),m=n(p),h.length!=m.length||h.some(function(A){return!i(c[A],p[A],d)})))return!1;switch(w.slice(8,-1)){case"Symbol":return c.valueOf()==p.valueOf();case"Date":case"Number":return+c==+p||+c!=+c&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+c==""+p;case"Set":case"Map":h=c.entries(),m=p.entries();do if(!i((f=h.next()).value,m.next().value,d))return!1;while(!f.done);return!0;case"ArrayBuffer":c=new Uint8Array(c),p=new Uint8Array(p);case"DataView":c=new Uint8Array(c.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(c.length!=p.length)return!1;for(f=0;ffunction(){return t||(0,e[qf(e)[0]])((t={exports:{}}).exports,t),t.exports},_A=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qf(t))!CA.call(e,o)&&o!==r&&Nf(e,o,{get:()=>t[o],enumerable:!(n=AA(t,o))||n.enumerable});return e},OA=(e,t,r)=>(r=e!=null?SA(wA(e)):{},_A(t||!e||!e.__esModule?Nf(r,"default",{value:e,enumerable:!0}):r,e)),Mf=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),xA=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),jf=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),TA=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),IA=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(TA()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}e.default=o}}),If=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Mf()),n=t(xA()),o=t(jf()),a=t(IA()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=c(o.default),e.decodeHTMLStrict=c(r.default);function c(h){var m=d(h);return function(f){return String(f).replace(i,m)}}var p=function(h,m){return h1?m(D):D.charCodeAt(0)).toString(16).toUpperCase()+";"}function w(D,F){return function(M){return M.replace(F,function(j){return D[j]}).replace(h,f)}}var g=new RegExp(o.source+"|"+h.source,"g");function A(D){return D.replace(g,f)}e.escape=A;function x(D){return D.replace(o,f)}e.escapeUTF8=x;function P(D){return function(F){return F.replace(g,function(M){return D[M]||f(M)})}}}}),DA=Ke({"../../node_modules/ansi-to-html/node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=If(),r=Df();function n(p,d){return(!d||d<=0?t.decodeXML:t.decodeHTML)(p)}e.decode=n;function o(p,d){return(!d||d<=0?t.decodeXML:t.decodeHTMLStrict)(p)}e.decodeStrict=o;function a(p,d){return(!d||d<=0?r.encodeXML:r.encodeHTML)(p)}e.encode=a;var i=Df();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var c=If();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return c.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return c.decodeXML}})}}),RA=Ke({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}function n(_,R){for(var B=0;B"u"||_[Symbol.iterator]==null){if(Array.isArray(_)||(_=i(_))){var R=0,B=function(){};return{s:B,n:function(){return R>=_.length?{done:!0}:{done:!1,value:_[R++]}},e:function(Z){throw Z},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $,N=!0,z=!1,U;return{s:function(){$=_[Symbol.iterator]()},n:function(){var Z=$.next();return N=Z.done,Z},e:function(Z){z=!0,U=Z},f:function(){try{!N&&$.return!=null&&$.return()}finally{if(z)throw U}}}}function i(_,R){if(_){if(typeof _=="string")return c(_,R);var B=Object.prototype.toString.call(_).slice(8,-1);if(B==="Object"&&_.constructor&&(B=_.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return c(_,R)}}function c(_,R){(R==null||R>_.length)&&(R=_.length);for(var B=0,$=new Array(R);B0?_*40+55:0,U=R>0?R*40+55:0,Z=B>0?B*40+55:0;$[N]=w([z,U,Z])}function f(_){for(var R=_.toString(16);R.length<2;)R="0"+R;return R}function w(_){var R=[],B=a(_),$;try{for(B.s();!($=B.n()).done;){var N=$.value;R.push(f(N))}}catch(z){B.e(z)}finally{B.f()}return"#"+R.join("")}function g(_,R,B,$){var N;return R==="text"?N=j(B,$):R==="display"?N=x(_,B,$):R==="xterm256"?N=I(_,$.colors[B]):R==="rgb"&&(N=A(_,B)),N}function A(_,R){R=R.substring(2).slice(0,-1);var B=+R.substr(0,2),$=R.substring(5).split(";"),N=$.map(function(z){return("0"+Number(z).toString(16)).substr(-2)}).join("");return W(_,(B===38?"color:#":"background-color:#")+N)}function x(_,R,B){R=parseInt(R,10);var $={"-1":function(){return"
"},0:function(){return _.length&&P(_)},1:function(){return H(_,"b")},3:function(){return H(_,"i")},4:function(){return H(_,"u")},8:function(){return W(_,"display:none")},9:function(){return H(_,"strike")},22:function(){return W(_,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return V(_,"i")},24:function(){return V(_,"u")},39:function(){return I(_,B.fg)},49:function(){return L(_,B.bg)},53:function(){return W(_,"text-decoration:overline")}},N;return $[R]?N=$[R]():4"}).join("")}function D(_,R){for(var B=[],$=_;$<=R;$++)B.push($);return B}function F(_){return function(R){return(_===null||R.category!==_)&&_!=="all"}}function M(_){_=parseInt(_,10);var R=null;return _===0?R="all":_===1?R="bold":2<_&&_<5?R="underline":4<_&&_<7?R="blink":_===8?R="hide":_===9?R="strike":29<_&&_<38||_===39||89<_&&_<98?R="foreground-color":(39<_&&_<48||_===49||99<_&&_<108)&&(R="background-color"),R}function j(_,R){return R.escapeXML?p.encodeXML(_):_}function H(_,R,B){return B||(B=""),_.push(R),"<".concat(R).concat(B?' style="'.concat(B,'"'):"",">")}function W(_,R){return H(_,"span",R)}function I(_,R){return H(_,"span","color:"+R)}function L(_,R){return H(_,"span","background-color:"+R)}function V(_,R){var B;if(_.slice(-1)[0]===R&&(B=_.pop()),B)return""}function J(_,R,B){var $=!1,N=3;function z(){return""}function U(re,k){return B("xterm256",k),""}function Z(re){return R.newline?B("display",-1):B("text",re),""}function ae(re,k){$=!0,k.trim().length===0&&(k="0"),k=k.trimRight(";").split(";");var le=a(k),me;try{for(le.s();!(me=le.n()).done;){var Re=me.value;B("display",Re)}}catch(un){le.e(un)}finally{le.f()}return""}function he(re){return B("text",re),""}function Ee(re){return B("rgb",re),""}var ye=[{pattern:/^\x08+/,sub:z},{pattern:/^\x1b\[[012]?K/,sub:z},{pattern:/^\x1b\[\(B/,sub:z},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ee},{pattern:/^\x1b\[38;5;(\d+)m/,sub:U},{pattern:/^\n/,sub:Z},{pattern:/^\r+\n/,sub:Z},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ae},{pattern:/^\x1b\[\d?J/,sub:z},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:z},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:z},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:he}];function ve(re,k){k>N&&$||($=!1,_=_.replace(re.pattern,re.sub))}var ge=[],xe=_,Se=xe.length;e:for(;Se>0;){for(var T=0,Y=0,te=ye.length;Y{},send:()=>{}};return new Ca({transport:e})}var FA=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=PA();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Po="__STORYBOOK_ADDONS_PREVIEW";function BA(){return Ne[Po]||(Ne[Po]=new FA),Ne[Po]}var NA=BA();var Hj=(0,Pf.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var Wj=Symbol("incompatible");var Gj=Symbol("Deeply equal");var qA=ro` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`,Vj=(0,Ff.default)(()=>{},qA);var Bo=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,c])=>{let p=o[i];Array.isArray(c)||typeof p>"u"?o[i]=c:(0,Yr.default)(c)&&(0,Yr.default)(p)?t[i]=!0:typeof c<"u"&&(o[i]=c)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>(0,Yr.default)(i))?n[o]=Bo(...a):n[o]=a[a.length-1]}),n};var Fo=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(gn.warn(ro` + We've detected a cycle in arg '${t}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Fo(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,ir.default)(e,o=>Fo(o,t,new Set(r)))}):{name:"object",value:{}}},MA=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=(0,ir.default)(n,(i,c)=>({name:c,type:Fo(i,`${t}.${c}`,new Set)})),a=(0,ir.default)(r,(i,c)=>({name:c}));return Bo(o,a,r)};MA.secondPass=!0;var Rf=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),jA=(e,t,r)=>!t&&!r?e:e&&(0,Bf.default)(e,(n,o)=>{let a=n.name||o;return(!t||Rf(a,t))&&(!r||!Rf(a,r))}),LA=(e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&gn.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},kA=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=jA(t,n,o),c=(0,ir.default)(i,(p,d)=>p?.type&&LA(p,d,a));return Bo(c,i)};kA.secondPass=!0;var Yj=new Error("prepareAborted"),{AbortController:Kj}=globalThis;var{fetch:Xj}=Ne;var{history:Jj,document:Qj}=Ne;var $A=OA(RA()),{document:Zj}=Ne;var zA=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(zA||{});var eL=new $A.default({escapeXML:!0});var{document:tL}=Ne;var UA=Object.create,Lf=Object.defineProperty,HA=Object.getOwnPropertyDescriptor,kf=Object.getOwnPropertyNames,WA=Object.getPrototypeOf,GA=Object.prototype.hasOwnProperty,VA=(e=>typeof je<"u"?je:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof je<"u"?je:t)[r]}):e)(function(e){if(typeof je<"u")return je.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ie=(e,t)=>function(){return t||(0,e[kf(e)[0]])((t={exports:{}}).exports,t),t.exports},YA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kf(t))!GA.call(e,o)&&o!==r&&Lf(e,o,{get:()=>t[o],enumerable:!(n=HA(t,o))||n.enumerable});return e},gt=(e,t,r)=>(r=e!=null?UA(WA(e)):{},YA(t||!e||!e.__esModule?Lf(r,"default",{value:e,enumerable:!0}):r,e)),KA=Ie({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,c,p)=>`\x1B[${38+a};2;${i};${c};${p}m`;function o(){let a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[c,p]of Object.entries(i)){for(let[d,h]of Object.entries(p))i[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},p[d]=i[d],a.set(h[0],h[1]);Object.defineProperty(i,c,{value:p,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(c,p,d)=>c===p&&p===d?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(p/255*5)+Math.round(d/255*5),enumerable:!1},hexToRgb:{value:c=>{let p=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(c.toString(16));if(!p)return[0,0,0];let{colorString:d}=p.groups;d.length===3&&(d=d.split("").map(m=>m+m).join(""));let h=Number.parseInt(d,16);return[h>>16&255,h>>8&255,h&255]},enumerable:!1},hexToAnsi256:{value:c=>i.rgbToAnsi256(...i.hexToRgb(c)),enumerable:!1}}),i}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),Kr=Ie({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=a;var t=(i,c)=>{let p=Object.keys(i),d=c!==null?p.sort(c):p;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(h=>{Object.getOwnPropertyDescriptor(i,h).enumerable&&d.push(h)}),d};function r(i,c,p,d,h,m,f=": "){let w="",g=0,A=i.next();if(!A.done){w+=c.spacingOuter;let x=p+c.indent;for(;!A.done;){if(w+=x,g++===c.maxWidth){w+="\u2026";break}let P=m(A.value[0],c,x,d,h),D=m(A.value[1],c,x,d,h);w+=P+f+D,A=i.next(),A.done?c.min||(w+=","):w+=`,${c.spacingInner}`}w+=c.spacingOuter+p}return w}function n(i,c,p,d,h,m){let f="",w=0,g=i.next();if(!g.done){f+=c.spacingOuter;let A=p+c.indent;for(;!g.done;){if(f+=A,w++===c.maxWidth){f+="\u2026";break}f+=m(g.value,c,A,d,h),g=i.next(),g.done?c.min||(f+=","):f+=`,${c.spacingInner}`}f+=c.spacingOuter+p}return f}function o(i,c,p,d,h,m){let f="";if(i.length){f+=c.spacingOuter;let w=p+c.indent;for(let g=0;g{let A=d.toString();if(A==="ArrayContaining"||A==="ArrayNotContaining")return++f>h.maxDepth?`[${A}]`:`${A+o}[${(0,t.printListItems)(d.sample,h,m,f,w,g)}]`;if(A==="ObjectContaining"||A==="ObjectNotContaining")return++f>h.maxDepth?`[${A}]`:`${A+o}{${(0,t.printObjectProperties)(d.sample,h,m,f,w,g)}}`;if(A==="StringMatching"||A==="StringNotMatching"||A==="StringContaining"||A==="StringNotContaining")return A+o+g(d.sample,h,m,f,w);if(typeof d.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${d.constructor.name} does not implement toAsymmetricMatcher()`);return d.toAsymmetricMatcher()};e.serialize=a;var i=d=>d&&d.$$typeof===n;e.test=i;var c={serialize:a,test:i},p=c;e.default=p}}),JA=Ie({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Kr(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,a=m=>n.indexOf(m)!==-1||o.test(m),i=m=>m&&m.constructor&&!!m.constructor.name&&a(m.constructor.name);e.test=i;var c=m=>m.constructor.name==="NamedNodeMap",p=(m,f,w,g,A,x)=>{let P=m.constructor.name;return++g>f.maxDepth?`[${P}]`:(f.min?"":P+r)+(n.indexOf(P)!==-1?`{${(0,t.printObjectProperties)(c(m)?Array.from(m).reduce((D,F)=>(D[F.name]=F.value,D),{}):{...m},f,w,g,A,x)}}`:`[${(0,t.printListItems)(Array.from(m),f,w,g,A,x)}]`)};e.serialize=p;var d={serialize:p,test:i},h=d;e.default=h}}),QA=Ie({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(//g,">")}}}),No=Ie({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(QA());function r(d){return d&&d.__esModule?d:{default:d}}var n=(d,h,m,f,w,g,A)=>{let x=f+m.indent,P=m.colors;return d.map(D=>{let F=h[D],M=A(F,m,x,w,g);return typeof F!="string"&&(M.indexOf(` +`)!==-1&&(M=m.spacingOuter+x+M+m.spacingOuter+f),M=`{${M}}`),`${m.spacingInner+f+P.prop.open+D+P.prop.close}=${P.value.open}${M}${P.value.close}`}).join("")};e.printProps=n;var o=(d,h,m,f,w,g)=>d.map(A=>h.spacingOuter+m+(typeof A=="string"?a(A,h):g(A,h,m,f,w))).join("");e.printChildren=o;var a=(d,h)=>{let m=h.colors.content;return m.open+(0,t.default)(d)+m.close};e.printText=a;var i=(d,h)=>{let m=h.colors.comment;return`${m.open}${m.close}`};e.printComment=i;var c=(d,h,m,f,w)=>{let g=f.colors.tag;return`${g.open}<${d}${h&&g.close+h+f.spacingOuter+w+g.open}${m?`>${g.close}${m}${f.spacingOuter}${w}${g.open}${g.close}`};e.printElement=c;var p=(d,h)=>{let m=h.colors.tag;return`${m.open}<${d}${m.close} \u2026${m.open} />${m.close}`};e.printElementAsLeaf=p}}),ZA=Ie({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=No(),r=1,n=3,o=8,a=11,i=/^((HTML|SVG)\w*)?Element$/,c=x=>{try{return typeof x.hasAttribute=="function"&&x.hasAttribute("is")}catch{return!1}},p=x=>{let P=x.constructor.name,{nodeType:D,tagName:F}=x,M=typeof F=="string"&&F.includes("-")||c(x);return D===r&&(i.test(P)||M)||D===n&&P==="Text"||D===o&&P==="Comment"||D===a&&P==="DocumentFragment"},d=x=>x?.constructor?.name&&p(x);e.test=d;function h(x){return x.nodeType===n}function m(x){return x.nodeType===o}function f(x){return x.nodeType===a}var w=(x,P,D,F,M,j)=>{if(h(x))return(0,t.printText)(x.data,P);if(m(x))return(0,t.printComment)(x.data,P);let H=f(x)?"DocumentFragment":x.tagName.toLowerCase();return++F>P.maxDepth?(0,t.printElementAsLeaf)(H,P):(0,t.printElement)(H,(0,t.printProps)(f(x)?[]:Array.from(x.attributes,W=>W.name).sort(),f(x)?{}:Array.from(x.attributes).reduce((W,I)=>(W[I.name]=I.value,W),{}),P,D+P.indent,F,M,j),(0,t.printChildren)(Array.prototype.slice.call(x.childNodes||x.children),P,D+P.indent,F,M,j),P,D)};e.serialize=w;var g={serialize:w,test:d},A=g;e.default=A}}),ew=Ie({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Kr(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",c="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",d="@@__IMMUTABLE_SET__@@",h="@@__IMMUTABLE_STACK__@@",m=I=>`Immutable.${I}`,f=I=>`[${I}]`,w=" ",g="\u2026",A=(I,L,V,J,Q,X,_)=>++J>L.maxDepth?f(m(_)):`${m(_)+w}{${(0,t.printIteratorEntries)(I.entries(),L,V,J,Q,X)}}`;function x(I){let L=0;return{next(){if(L{let _=m(I._name||"Record");return++J>L.maxDepth?f(_):`${_+w}{${(0,t.printIteratorEntries)(x(I),L,V,J,Q,X)}}`},D=(I,L,V,J,Q,X)=>{let _=m("Seq");return++J>L.maxDepth?f(_):I[o]?`${_+w}{${I._iter||I._object?(0,t.printIteratorEntries)(I.entries(),L,V,J,Q,X):g}}`:`${_+w}[${I._iter||I._array||I._collection||I._iterable?(0,t.printIteratorValues)(I.values(),L,V,J,Q,X):g}]`},F=(I,L,V,J,Q,X,_)=>++J>L.maxDepth?f(m(_)):`${m(_)+w}[${(0,t.printIteratorValues)(I.values(),L,V,J,Q,X)}]`,M=(I,L,V,J,Q,X)=>I[a]?A(I,L,V,J,Q,X,I[i]?"OrderedMap":"Map"):I[n]?F(I,L,V,J,Q,X,"List"):I[d]?F(I,L,V,J,Q,X,I[i]?"OrderedSet":"Set"):I[h]?F(I,L,V,J,Q,X,"Stack"):I[p]?D(I,L,V,J,Q,X):P(I,L,V,J,Q,X);e.serialize=M;var j=I=>I&&(I[r]===!0||I[c]===!0);e.test=j;var H={serialize:M,test:j},W=H;e.default=W}}),tw=Ie({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),A=!1,x=!1,P=!1,D=!1,F=!1,M;M=Symbol.for("react.module.reference");function j(k){return!!(typeof k=="string"||typeof k=="function"||k===n||k===a||F||k===o||k===h||k===m||D||k===g||A||x||P||typeof k=="object"&&k!==null&&(k.$$typeof===w||k.$$typeof===f||k.$$typeof===i||k.$$typeof===c||k.$$typeof===d||k.$$typeof===M||k.getModuleId!==void 0))}function H(k){if(typeof k=="object"&&k!==null){var le=k.$$typeof;switch(le){case t:var me=k.type;switch(me){case n:case a:case o:case h:case m:return me;default:var Re=me&&me.$$typeof;switch(Re){case p:case c:case d:case w:case f:case i:return Re;default:return le}}case r:return le}}}var W=c,I=i,L=t,V=d,J=n,Q=w,X=f,_=r,R=a,B=o,$=h,N=m,z=!1,U=!1;function Z(k){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(k){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function he(k){return H(k)===c}function Ee(k){return H(k)===i}function ye(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ve(k){return H(k)===d}function ge(k){return H(k)===n}function xe(k){return H(k)===w}function Se(k){return H(k)===f}function T(k){return H(k)===r}function Y(k){return H(k)===a}function te(k){return H(k)===o}function ue(k){return H(k)===h}function re(k){return H(k)===m}e.ContextConsumer=W,e.ContextProvider=I,e.Element=L,e.ForwardRef=V,e.Fragment=J,e.Lazy=Q,e.Memo=X,e.Portal=_,e.Profiler=R,e.StrictMode=B,e.Suspense=$,e.SuspenseList=N,e.isAsyncMode=Z,e.isConcurrentMode=ae,e.isContextConsumer=he,e.isContextProvider=Ee,e.isElement=ye,e.isForwardRef=ve,e.isFragment=ge,e.isLazy=xe,e.isMemo=Se,e.isPortal=T,e.isProfiler=Y,e.isStrictMode=te,e.isSuspense=ue,e.isSuspenseList=re,e.isValidElementType=j,e.typeOf=H})()}}),rw=Ie({"../../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=tw()}}),nw=Ie({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(rw()),r=No();function n(f){if(typeof WeakMap!="function")return null;var w=new WeakMap,g=new WeakMap;return(n=function(A){return A?g:w})(f)}function o(f,w){if(!w&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var g=n(w);if(g&&g.has(f))return g.get(f);var A={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in f)if(P!=="default"&&Object.prototype.hasOwnProperty.call(f,P)){var D=x?Object.getOwnPropertyDescriptor(f,P):null;D&&(D.get||D.set)?Object.defineProperty(A,P,D):A[P]=f[P]}return A.default=f,g&&g.set(f,A),A}var a=(f,w=[])=>(Array.isArray(f)?f.forEach(g=>{a(g,w)}):f!=null&&f!==!1&&w.push(f),w),i=f=>{let w=f.type;if(typeof w=="string")return w;if(typeof w=="function")return w.displayName||w.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof w=="object"&&w!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(w.displayName)return w.displayName;let g=w.render.displayName||w.render.name||"";return g!==""?`ForwardRef(${g})`:"ForwardRef"}if(t.isMemo(f)){let g=w.displayName||w.type.displayName||w.type.name||"";return g!==""?`Memo(${g})`:"Memo"}}return"UNDEFINED"},c=f=>{let{props:w}=f;return Object.keys(w).filter(g=>g!=="children"&&w[g]!==void 0).sort()},p=(f,w,g,A,x,P)=>++A>w.maxDepth?(0,r.printElementAsLeaf)(i(f),w):(0,r.printElement)(i(f),(0,r.printProps)(c(f),f.props,w,g+w.indent,A,x,P),(0,r.printChildren)(a(f.props.children),w,g+w.indent,A,x,P),w,g);e.serialize=p;var d=f=>f!=null&&t.isElement(f);e.test=d;var h={serialize:p,test:d},m=h;e.default=m}}),ow=Ie({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=No(),r=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=d=>{let{props:h}=d;return h?Object.keys(h).filter(m=>h[m]!==void 0).sort():[]},a=(d,h,m,f,w,g)=>++f>h.maxDepth?(0,t.printElementAsLeaf)(d.type,h):(0,t.printElement)(d.type,d.props?(0,t.printProps)(o(d),d.props,h,m+h.indent,f,w,g):"",d.children?(0,t.printChildren)(d.children,h,m+h.indent,f,w,g):"",h,m);e.serialize=a;var i=d=>d&&d.$$typeof===n;e.test=i;var c={serialize:a,test:i},p=c;e.default=p}}),qo=Ie({"../../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ge,e.plugins=void 0;var t=d(KA()),r=Kr(),n=d(XA()),o=d(JA()),a=d(ZA()),i=d(ew()),c=d(nw()),p=d(ow());function d(T){return T&&T.__esModule?T:{default:T}}var h=Object.prototype.toString,m=Date.prototype.toISOString,f=Error.prototype.toString,w=RegExp.prototype.toString,g=T=>typeof T.constructor=="function"&&T.constructor.name||"Object",A=T=>typeof window<"u"&&T===window,x=/^Symbol\((.*)\)(.*)$/,P=/\n/gi,D=class extends Error{constructor(T,Y){super(T),this.stack=Y,this.name=this.constructor.name}};function F(T){return T==="[object Array]"||T==="[object ArrayBuffer]"||T==="[object DataView]"||T==="[object Float32Array]"||T==="[object Float64Array]"||T==="[object Int8Array]"||T==="[object Int16Array]"||T==="[object Int32Array]"||T==="[object Uint8Array]"||T==="[object Uint8ClampedArray]"||T==="[object Uint16Array]"||T==="[object Uint32Array]"}function M(T){return Object.is(T,-0)?"-0":String(T)}function j(T){return`${T}n`}function H(T,Y){return Y?`[Function ${T.name||"anonymous"}]`:"[Function]"}function W(T){return String(T).replace(x,"Symbol($1)")}function I(T){return`[${f.call(T)}]`}function L(T,Y,te,ue){if(T===!0||T===!1)return`${T}`;if(T===void 0)return"undefined";if(T===null)return"null";let re=typeof T;if(re==="number")return M(T);if(re==="bigint")return j(T);if(re==="string")return ue?`"${T.replace(/"|\\/g,"\\$&")}"`:`"${T}"`;if(re==="function")return H(T,Y);if(re==="symbol")return W(T);let k=h.call(T);return k==="[object WeakMap]"?"WeakMap {}":k==="[object WeakSet]"?"WeakSet {}":k==="[object Function]"||k==="[object GeneratorFunction]"?H(T,Y):k==="[object Symbol]"?W(T):k==="[object Date]"?isNaN(+T)?"Date { NaN }":m.call(T):k==="[object Error]"?I(T):k==="[object RegExp]"?te?w.call(T).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):w.call(T):T instanceof Error?I(T):null}function V(T,Y,te,ue,re,k){if(re.indexOf(T)!==-1)return"[Circular]";re=re.slice(),re.push(T);let le=++ue>Y.maxDepth,me=Y.min;if(Y.callToJSON&&!le&&T.toJSON&&typeof T.toJSON=="function"&&!k)return _(T.toJSON(),Y,te,ue,re,!0);let Re=h.call(T);return Re==="[object Arguments]"?le?"[Arguments]":`${me?"":"Arguments "}[${(0,r.printListItems)(T,Y,te,ue,re,_)}]`:F(Re)?le?`[${T.constructor.name}]`:`${me||!Y.printBasicPrototype&&T.constructor.name==="Array"?"":`${T.constructor.name} `}[${(0,r.printListItems)(T,Y,te,ue,re,_)}]`:Re==="[object Map]"?le?"[Map]":`Map {${(0,r.printIteratorEntries)(T.entries(),Y,te,ue,re,_," => ")}}`:Re==="[object Set]"?le?"[Set]":`Set {${(0,r.printIteratorValues)(T.values(),Y,te,ue,re,_)}}`:le||A(T)?`[${g(T)}]`:`${me||!Y.printBasicPrototype&&g(T)==="Object"?"":`${g(T)} `}{${(0,r.printObjectProperties)(T,Y,te,ue,re,_)}}`}function J(T){return T.serialize!=null}function Q(T,Y,te,ue,re,k){let le;try{le=J(T)?T.serialize(Y,te,ue,re,k,_):T.print(Y,me=>_(me,te,ue,re,k),me=>{let Re=ue+te.indent;return Re+me.replace(P,` +${Re}`)},{edgeSpacing:te.spacingOuter,min:te.min,spacing:te.spacingInner},te.colors)}catch(me){throw new D(me.message,me.stack)}if(typeof le!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof le}".`);return le}function X(T,Y){for(let te=0;teT,N=$({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:R});e.DEFAULT_OPTIONS=N;function z(T){if(Object.keys(T).forEach(Y=>{if(!Object.prototype.hasOwnProperty.call(N,Y))throw new Error(`pretty-format: Unknown option "${Y}".`)}),T.min&&T.indent!==void 0&&T.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(T.theme!==void 0){if(T.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof T.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof T.theme}".`)}}var U=T=>B.reduce((Y,te)=>{let ue=T.theme&&T.theme[te]!==void 0?T.theme[te]:R[te],re=ue&&t.default[ue];if(re&&typeof re.close=="string"&&typeof re.open=="string")Y[te]=re;else throw new Error(`pretty-format: Option "theme" has a key "${te}" whose value "${ue}" is undefined in ansi-styles.`);return Y},Object.create(null)),Z=()=>B.reduce((T,Y)=>(T[Y]={close:"",open:""},T),Object.create(null)),ae=T=>T?.printFunctionName??N.printFunctionName,he=T=>T?.escapeRegex??N.escapeRegex,Ee=T=>T?.escapeString??N.escapeString,ye=T=>({callToJSON:T?.callToJSON??N.callToJSON,colors:T?.highlight?U(T):Z(),compareKeys:typeof T?.compareKeys=="function"||T?.compareKeys===null?T.compareKeys:N.compareKeys,escapeRegex:he(T),escapeString:Ee(T),indent:T?.min?"":ve(T?.indent??N.indent),maxDepth:T?.maxDepth??N.maxDepth,maxWidth:T?.maxWidth??N.maxWidth,min:T?.min??N.min,plugins:T?.plugins??N.plugins,printBasicPrototype:T?.printBasicPrototype??!0,printFunctionName:ae(T),spacingInner:T?.min?" ":` +`,spacingOuter:T?.min?"":` +`});function ve(T){return new Array(T+1).join(" ")}function ge(T,Y){if(Y&&(z(Y),Y.plugins)){let ue=X(Y.plugins,T);if(ue!==null)return Q(ue,T,ye(Y),"",0,[])}let te=L(T,ae(Y),he(Y),Ee(Y));return te!==null?te:V(T,ye(Y),"",0,[])}var xe={AsymmetricMatcher:n.default,DOMCollection:o.default,DOMElement:a.default,Immutable:i.default,ReactElement:c.default,ReactTestComponent:p.default};e.plugins=xe;var Se=ge;e.default=Se}}),$f=Ie({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=w;var t="diff-sequences",r=0,n=(g,A,x,P,D)=>{let F=0;for(;g{let F=0;for(;g<=A&&x<=P&&D(A,P);)A-=1,P-=1,F+=1;return F},a=(g,A,x,P,D,F,M)=>{let j=0,H=-g,W=F[j],I=W;F[j]+=n(W+1,A,P+W-H+1,x,D);let L=g{let j=0,H=g,W=F[j],I=W;F[j]-=o(A,W-1,x,P+W-H-1,D);let L=g{let L=P-A,V=x-A,J=D-P-V,Q=-J-(g-1),X=-J+(g-1),_=r,R=g{let L=D-x,V=x-A,J=D-P-V,Q=J-g,X=J+g,_=r,R=g{let W=P-A,I=D-x,L=x-A,V=D-P,J=V-L,Q=L,X=L;if(M[0]=A-1,j[0]=x,J%2===0){let _=(g||J)/2,R=(L+V)/2;for(let B=1;B<=R;B+=1)if(Q=a(B,x,D,W,F,M,Q),B<_)X=i(B,A,P,I,F,j,X);else if(p(B,A,x,P,D,F,M,Q,j,X,H))return}else{let _=((g||J)+1)/2,R=(L+V+1)/2,B=1;for(Q=a(B,x,D,W,F,M,Q),B+=1;B<=R;B+=1)if(X=i(B-1,A,P,I,F,j,X),B<_)Q=a(B,x,D,W,F,M,Q);else if(c(B,A,x,P,D,F,M,Q,j,X,H))return}throw new Error(`${t}: no overlap aStart=${A} aEnd=${x} bStart=${P} bEnd=${D}`)},h=(g,A,x,P,D,F,M,j,H,W)=>{if(D-P{Ee(ve,xe,ge)},isCommon:(ve,ge)=>ye(ge,ve)}}let ae=A,he=x;A=P,x=D,P=ae,D=he}let{foundSubsequence:I,isCommon:L}=M[F?1:0];d(g,A,x,P,D,L,j,H,W);let{nChangePreceding:V,aEndPreceding:J,bEndPreceding:Q,nCommonPreceding:X,aCommonPreceding:_,bCommonPreceding:R,nCommonFollowing:B,aCommonFollowing:$,bCommonFollowing:N,nChangeFollowing:z,aStartFollowing:U,bStartFollowing:Z}=W;A{if(typeof A!="number")throw new TypeError(`${t}: ${g} typeof ${typeof A} is not a number`);if(!Number.isSafeInteger(A))throw new RangeError(`${t}: ${g} value ${A} is not a safe integer`);if(A<0)throw new RangeError(`${t}: ${g} value ${A} is a negative integer`)},f=(g,A)=>{let x=typeof A;if(x!=="function")throw new TypeError(`${t}: ${g} typeof ${x} is not a function`)};function w(g,A,x,P){m("aLength",g),m("bLength",A),f("isCommon",x),f("foundSubsequence",P);let D=n(0,g,0,A,x);if(D!==0&&P(D,0,0),g!==D||A!==D){let F=D,M=D,j=o(F,g-1,M,A-1,x),H=g-j,W=A-j,I=D+j;g!==I&&A!==I&&h(0,F,H,M,W,!1,[{foundSubsequence:P,isCommon:x}],[r],[r],{aCommonFollowing:r,aCommonPreceding:r,aEndPreceding:r,aStartFollowing:r,bCommonFollowing:r,bCommonPreceding:r,bEndPreceding:r,bStartFollowing:r,nChangeFollowing:r,nChangePreceding:r,nCommonFollowing:r,nCommonPreceding:r}),j!==0&&P(j,H,W)}}}}),zf=Ie({"../../node_modules/loupe/loupe.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.loupe={}))})(e,function(r){function n(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(C){return typeof C}:n=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},n(b)}function o(b,C){return a(b)||i(b,C)||c(b,C)||d()}function a(b){if(Array.isArray(b))return b}function i(b,C){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(b)))){var q=[],G=!0,K=!1,ne=void 0;try{for(var ce=b[Symbol.iterator](),fe;!(G=(fe=ce.next()).done)&&(q.push(fe.value),!(C&&q.length===C));G=!0);}catch(Te){K=!0,ne=Te}finally{try{!G&&ce.return!=null&&ce.return()}finally{if(K)throw ne}}return q}}function c(b,C){if(b){if(typeof b=="string")return p(b,C);var q=Object.prototype.toString.call(b).slice(8,-1);if(q==="Object"&&b.constructor&&(q=b.constructor.name),q==="Map"||q==="Set")return Array.from(b);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return p(b,C)}}function p(b,C){(C==null||C>b.length)&&(C=b.length);for(var q=0,G=new Array(C);q0&&arguments[0]!==void 0?arguments[0]:{},C=b.showHidden,q=C===void 0?!1:C,G=b.depth,K=G===void 0?2:G,ne=b.colors,ce=ne===void 0?!1:ne,fe=b.customInspect,Te=fe===void 0?!0:fe,_e=b.showProxy,Me=_e===void 0?!1:_e,ut=b.maxArrayLength,ln=ut===void 0?1/0:ut,Ht=b.breakLength,St=Ht===void 0?1/0:Ht,Wt=b.seen,zd=Wt===void 0?[]:Wt,ia=b.truncate,Ud=ia===void 0?1/0:ia,ua=b.stylize,Hd=ua===void 0?String:ua,cn={showHidden:!!q,depth:Number(K),colors:!!ce,customInspect:!!Te,showProxy:!!Me,maxArrayLength:Number(ln),breakLength:Number(St),truncate:Number(Ud),seen:zd,stylize:Hd};return cn.colors&&(cn.stylize=w),cn}function A(b,C){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f;b=String(b);var G=q.length,K=b.length;return G>C&&K>G?q:K>C&&K>G?"".concat(b.slice(0,C-G)).concat(q):b}function x(b,C,q){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";q=q||C.inspect;var K=b.length;if(K===0)return"";for(var ne=C.truncate,ce="",fe="",Te="",_e=0;_ene&&ce.length+Te.length<=ne||!Me&&!ut&&Wt>ne||(fe=Me?"":q(b[_e+1],C)+(ut?"":G),!Me&&ut&&Wt>ne&&St+fe.length>ne))break;if(ce+=Ht,!Me&&!ut&&St+fe.length>=ne){Te="".concat(f,"(").concat(b.length-_e-1,")");break}Te=""}return"".concat(ce).concat(Te)}function P(b){return b.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?b:JSON.stringify(b).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function D(b,C){var q=o(b,2),G=q[0],K=q[1];return C.truncate-=2,typeof G=="string"?G=P(G):typeof G!="number"&&(G="[".concat(C.inspect(G,C),"]")),C.truncate-=G.length,K=C.inspect(K,C),"".concat(G,": ").concat(K)}function F(b,C){var q=Object.keys(b).slice(b.length);if(!b.length&&!q.length)return"[]";C.truncate-=4;var G=x(b,C);C.truncate-=G.length;var K="";return q.length&&(K=x(q.map(function(ne){return[ne,b[ne]]}),C,D)),"[ ".concat(G).concat(K?", ".concat(K):""," ]")}var M=Function.prototype.toString,j=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,H=512;function W(b){if(typeof b!="function")return null;var C="";if(typeof Function.prototype.name>"u"&&typeof b.name>"u"){var q=M.call(b);if(q.indexOf("(")>H)return C;var G=q.match(j);G&&(C=G[1])}else C=b.name;return C}var I=W,L=function(b){return typeof Buffer=="function"&&b instanceof Buffer?"Buffer":b[Symbol.toStringTag]?b[Symbol.toStringTag]:I(b.constructor)};function V(b,C){var q=L(b);C.truncate-=q.length+4;var G=Object.keys(b).slice(b.length);if(!b.length&&!G.length)return"".concat(q,"[]");for(var K="",ne=0;ne ").concat(K)}function _(b){var C=[];return b.forEach(function(q,G){C.push([G,q])}),C}function R(b,C){var q=b.size-1;return q<=0?"Map{}":(C.truncate-=7,"Map{ ".concat(x(_(b),C,X)," }"))}var B=Number.isNaN||function(b){return b!==b};function $(b,C){return B(b)?C.stylize("NaN","number"):b===1/0?C.stylize("Infinity","number"):b===-1/0?C.stylize("-Infinity","number"):b===0?C.stylize(1/b===1/0?"+0":"-0","number"):C.stylize(A(b,C.truncate),"number")}function N(b,C){var q=A(b.toString(),C.truncate-1);return q!==f&&(q+="n"),C.stylize(q,"bigint")}function z(b,C){var q=b.toString().split("/")[2],G=C.truncate-(2+q.length),K=b.source;return C.stylize("/".concat(A(K,G),"/").concat(q),"regexp")}function U(b){var C=[];return b.forEach(function(q){C.push(q)}),C}function Z(b,C){return b.size===0?"Set{}":(C.truncate-=7,"Set{ ".concat(x(U(b),C)," }"))}var ae=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),he={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Ee=16,ye=4;function ve(b){return he[b]||"\\u".concat("0000".concat(b.charCodeAt(0).toString(Ee)).slice(-ye))}function ge(b,C){return ae.test(b)&&(b=b.replace(ae,ve)),C.stylize("'".concat(A(b,C.truncate-2),"'"),"string")}function xe(b){return"description"in Symbol.prototype?b.description?"Symbol(".concat(b.description,")"):"Symbol()":b.toString()}var Se=function(){return"Promise{\u2026}"};try{var T=process.binding("util"),Y=T.getPromiseDetails,te=T.kPending,ue=T.kRejected;Array.isArray(Y(Promise.resolve()))&&(Se=function(b,C){var q=Y(b),G=o(q,2),K=G[0],ne=G[1];return K===te?"Promise{}":"Promise".concat(K===ue?"!":"","{").concat(C.inspect(ne,C),"}")})}catch{}var re=Se;function k(b,C){var q=Object.getOwnPropertyNames(b),G=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b):[];if(q.length===0&&G.length===0)return"{}";if(C.truncate-=4,C.seen=C.seen||[],C.seen.indexOf(b)>=0)return"[Circular]";C.seen.push(b);var K=x(q.map(function(fe){return[fe,b[fe]]}),C,D),ne=x(G.map(function(fe){return[fe,b[fe]]}),C,D);C.seen.pop();var ce="";return K&&ne&&(ce=", "),"{ ".concat(K).concat(ce).concat(ne," }")}var le=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function me(b,C){var q="";return le&&le in b&&(q=b[le]),q=q||I(b.constructor),(!q||q==="_class")&&(q=""),C.truncate-=q.length,"".concat(q).concat(k(b,C))}function Re(b,C){return b.length===0?"Arguments[]":(C.truncate-=13,"Arguments[ ".concat(x(b,C)," ]"))}var un=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function Bd(b,C){var q=Object.getOwnPropertyNames(b).filter(function(ce){return un.indexOf(ce)===-1}),G=b.name;C.truncate-=G.length;var K="";typeof b.message=="string"?K=A(b.message,C.truncate):q.unshift("message"),K=K?": ".concat(K):"",C.truncate-=K.length+5;var ne=x(q.map(function(ce){return[ce,b[ce]]}),C,D);return"".concat(G).concat(K).concat(ne?" { ".concat(ne," }"):"")}function Nd(b,C){var q=o(b,2),G=q[0],K=q[1];return C.truncate-=3,K?"".concat(C.stylize(G,"yellow"),"=").concat(C.stylize('"'.concat(K,'"'),"string")):"".concat(C.stylize(G,"yellow"))}function sn(b,C){return x(b,C,ra,` +`)}function ra(b,C){var q=b.getAttributeNames(),G=b.tagName.toLowerCase(),K=C.stylize("<".concat(G),"special"),ne=C.stylize(">","special"),ce=C.stylize(""),"special");C.truncate-=G.length*2+5;var fe="";q.length>0&&(fe+=" ",fe+=x(q.map(function(Me){return[Me,b.getAttribute(Me)]}),C,Nd," ")),C.truncate-=fe.length;var Te=C.truncate,_e=sn(b.children,C);return _e&&_e.length>Te&&(_e="".concat(f,"(").concat(b.children.length,")")),"".concat(K).concat(fe).concat(ne).concat(_e).concat(ce)}var qd=typeof Symbol=="function"&&typeof Symbol.for=="function",fr=qd?Symbol.for("chai/inspect"):"@@chai/inspect",vt=!1;try{var na=VA("util");vt=na.inspect?na.inspect.custom:!1}catch{vt=!1}function oa(){this.key="chai/loupe__"+Math.random()+Date.now()}oa.prototype={get:function(b){return b[this.key]},has:function(b){return this.key in b},set:function(b,C){Object.isExtensible(b)&&Object.defineProperty(b,this.key,{value:C,configurable:!0})}};var dr=new(typeof WeakMap=="function"?WeakMap:oa),hr={},aa={undefined:function(b,C){return C.stylize("undefined","undefined")},null:function(b,C){return C.stylize(null,"null")},boolean:function(b,C){return C.stylize(b,"boolean")},Boolean:function(b,C){return C.stylize(b,"boolean")},number:$,Number:$,bigint:N,BigInt:N,string:ge,String:ge,function:Q,Function:Q,symbol:xe,Symbol:xe,Array:F,Date:J,Map:R,Set:Z,RegExp:z,Promise:re,WeakSet:function(b,C){return C.stylize("WeakSet{\u2026}","special")},WeakMap:function(b,C){return C.stylize("WeakMap{\u2026}","special")},Arguments:Re,Int8Array:V,Uint8Array:V,Uint8ClampedArray:V,Int16Array:V,Uint16Array:V,Int32Array:V,Uint32Array:V,Float32Array:V,Float64Array:V,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:Bd,HTMLCollection:sn,NodeList:sn},Md=function(b,C,q){return fr in b&&typeof b[fr]=="function"?b[fr](C):vt&&vt in b&&typeof b[vt]=="function"?b[vt](C.depth,C):"inspect"in b&&typeof b.inspect=="function"?b.inspect(C.depth,C):"constructor"in b&&dr.has(b.constructor)?dr.get(b.constructor)(b,C):hr[q]?hr[q](b,C):""},jd=Object.prototype.toString;function mr(b,C){C=g(C),C.inspect=mr;var q=C,G=q.customInspect,K=b===null?"null":n(b);if(K==="object"&&(K=jd.call(b).slice(8,-1)),aa[K])return aa[K](b,C);if(G&&b){var ne=Md(b,C,K);if(ne)return typeof ne=="string"?ne:mr(ne,C)}var ce=b?Object.getPrototypeOf(b):!1;return ce===Object.prototype||ce===null?k(b,C):b&&typeof HTMLElement=="function"&&b instanceof HTMLElement?ra(b,C):"constructor"in b?b.constructor!==Object?me(b,C):k(b,C):b===Object(b)?k(b,C):C.stylize(String(b),K)}function Ld(b,C){return dr.has(b)?!1:(dr.set(b,C),!0)}function kd(b,C){return b in hr?!1:(hr[b]=C,!0)}var $d=fr;r.custom=$d,r.default=mr,r.inspect=mr,r.registerConstructor=Ld,r.registerStringTag=kd,Object.defineProperty(r,"__esModule",{value:!0})})}}),aw=gt(qo(),1),pL=gt($f(),1),fL=Symbol("vitest:SAFE_COLORS"),iw={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},uw=Object.entries(iw);function Mo(e){return String(e)}Mo.open="";Mo.close="";var dL=uw.reduce((e,[t])=>(e[t]=Mo,e),{isColorSupported:!1});var{AsymmetricMatcher:hL,DOMCollection:mL,DOMElement:yL,Immutable:gL,ReactElement:bL,ReactTestComponent:EL}=aw.plugins;var sw=gt(qo(),1),vL=gt(zf(),1),{AsymmetricMatcher:SL,DOMCollection:AL,DOMElement:wL,Immutable:CL,ReactElement:_L,ReactTestComponent:OL}=sw.plugins;gt(qo(),1);gt($f(),1);gt(zf(),1);var xL=Object.getPrototypeOf({});var se=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(se||{}),nt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"};var TL=new Error("This function ran after the play function completed. Did you forget to `await` it?");u();s();l();var NL=__STORYBOOK_THEMING__,{CacheProvider:qL,ClassNames:ML,Global:jL,ThemeProvider:LL,background:kL,color:$L,convert:zL,create:UL,createCache:HL,createGlobal:WL,createReset:GL,css:VL,darken:YL,ensure:KL,ignoreSsrWarning:XL,isPropValid:JL,jsx:QL,keyframes:ZL,lighten:e6,styled:ie,themes:t6,typography:Xe,useTheme:ur,withTheme:r6}=__STORYBOOK_THEMING__;u();s();l();u();s();l();function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&o<1?(c=a,p=i):o>=1&&o<2?(c=i,p=a):o>=2&&o<3?(p=a,d=i):o>=3&&o<4?(p=i,d=a):o>=4&&o<5?(c=i,d=a):o>=5&&o<6&&(c=a,d=i);var h=r-a/2,m=c+h,f=p+h,w=d+h;return n(m,f,w)}var Kf={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function fw(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Kf[t]?"#"+Kf[t]:e}var dw=/^#[a-fA-F0-9]{6}$/,hw=/^#[a-fA-F0-9]{8}$/,mw=/^#[a-fA-F0-9]{3}$/,yw=/^#[a-fA-F0-9]{4}$/,ko=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gw=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,bw=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ew=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $t(e){if(typeof e!="string")throw new Pe(3);var t=fw(e);if(t.match(dw))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hw)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(mw))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(yw)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=ko.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=gw.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=bw.exec(t);if(i){var c=parseInt(""+i[1],10),p=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,h="rgb("+sr(c,p,d)+")",m=ko.exec(h);if(!m)throw new Pe(4,t,h);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=Ew.exec(t.substring(0,50));if(f){var w=parseInt(""+f[1],10),g=parseInt(""+f[2],10)/100,A=parseInt(""+f[3],10)/100,x="rgb("+sr(w,g,A)+")",P=ko.exec(x);if(!P)throw new Pe(4,t,x);return{red:parseInt(""+P[1],10),green:parseInt(""+P[2],10),blue:parseInt(""+P[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Pe(5)}function vw(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,p=o-a,d=i>.5?p/(2-o-a):p/(o+a);switch(o){case t:c=(r-n)/p+(r=1?Qr(e,t,r):"rgba("+sr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Qr(e.hue,e.saturation,e.lightness):"rgba("+sr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Pe(2)}function Uo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return zo("#"+bt(e)+bt(t)+bt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return zo("#"+bt(e.red)+bt(e.green)+bt(e.blue));throw new Pe(6)}function Zr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=$t(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Uo(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Uo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Pe(7)}var _w=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},Ow=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},xw=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},Tw=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function it(e){if(typeof e!="object")throw new Pe(8);if(Ow(e))return Zr(e);if(_w(e))return Uo(e);if(Tw(e))return Cw(e);if(xw(e))return ww(e);throw new Pe(8)}function Jf(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):Jf(e,t,o)}}function qe(e){return Jf(e,e.length,[])}function Iw(e,t){if(t==="transparent")return t;var r=at(t);return it(De({},r,{hue:r.hue+parseFloat(e)}))}var s8=qe(Iw);function zt(e,t,r){return Math.max(e,Math.min(t,r))}function Dw(e,t){if(t==="transparent")return t;var r=at(t);return it(De({},r,{lightness:zt(0,1,r.lightness-parseFloat(e))}))}var l8=qe(Dw);function Rw(e,t){if(t==="transparent")return t;var r=at(t);return it(De({},r,{saturation:zt(0,1,r.saturation-parseFloat(e))}))}var c8=qe(Rw);function Pw(e,t){if(t==="transparent")return t;var r=at(t);return it(De({},r,{lightness:zt(0,1,r.lightness+parseFloat(e))}))}var p8=qe(Pw);function Fw(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=$t(t),o=De({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=$t(r),i=De({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),c=o.alpha-i.alpha,p=parseFloat(e)*2-1,d=p*c===-1?p:p+c,h=1+p*c,m=(d/h+1)/2,f=1-m,w={red:Math.floor(o.red*m+i.red*f),green:Math.floor(o.green*m+i.green*f),blue:Math.floor(o.blue*m+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Zr(w)}var Bw=qe(Fw),Qf=Bw;function Nw(e,t){if(t==="transparent")return t;var r=$t(t),n=typeof r.alpha=="number"?r.alpha:1,o=De({},r,{alpha:zt(0,1,(n*100+parseFloat(e)*100)/100)});return Zr(o)}var f8=qe(Nw);function qw(e,t){if(t==="transparent")return t;var r=at(t);return it(De({},r,{saturation:zt(0,1,r.saturation+parseFloat(e))}))}var d8=qe(qw);function Mw(e,t){return t==="transparent"?t:it(De({},at(t),{hue:parseFloat(e)}))}var h8=qe(Mw);function jw(e,t){return t==="transparent"?t:it(De({},at(t),{lightness:parseFloat(e)}))}var m8=qe(jw);function Lw(e,t){return t==="transparent"?t:it(De({},at(t),{saturation:parseFloat(e)}))}var y8=qe(Lw);function kw(e,t){return t==="transparent"?t:Qf(parseFloat(e),"rgb(0, 0, 0)",t)}var g8=qe(kw);function $w(e,t){return t==="transparent"?t:Qf(parseFloat(e),"rgb(255, 255, 255)",t)}var b8=qe($w);function zw(e,t){if(t==="transparent")return t;var r=$t(t),n=typeof r.alpha=="number"?r.alpha:1,o=De({},r,{alpha:zt(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Zr(o)}var Uw=qe(zw),en=Uw;u();s();l();var w8=__STORYBOOK_ICONS__,{AccessibilityAltIcon:C8,AccessibilityIcon:_8,AddIcon:O8,AdminIcon:x8,AlertAltIcon:T8,AlertIcon:I8,AlignLeftIcon:D8,AlignRightIcon:R8,AppleIcon:P8,ArrowDownIcon:F8,ArrowLeftIcon:B8,ArrowRightIcon:N8,ArrowSolidDownIcon:q8,ArrowSolidLeftIcon:M8,ArrowSolidRightIcon:j8,ArrowSolidUpIcon:L8,ArrowUpIcon:k8,AzureDevOpsIcon:$8,BackIcon:z8,BasketIcon:U8,BatchAcceptIcon:H8,BatchDenyIcon:W8,BeakerIcon:G8,BellIcon:V8,BitbucketIcon:Y8,BoldIcon:K8,BookIcon:X8,BookmarkHollowIcon:J8,BookmarkIcon:Q8,BottomBarIcon:Z8,BottomBarToggleIcon:ek,BoxIcon:tk,BranchIcon:rk,BrowserIcon:nk,ButtonIcon:ok,CPUIcon:ak,CalendarIcon:ik,CameraIcon:uk,CategoryIcon:sk,CertificateIcon:lk,ChangedIcon:ck,ChatIcon:pk,CheckIcon:Zf,ChevronDownIcon:fk,ChevronLeftIcon:dk,ChevronRightIcon:hk,ChevronSmallDownIcon:mk,ChevronSmallLeftIcon:yk,ChevronSmallRightIcon:gk,ChevronSmallUpIcon:bk,ChevronUpIcon:Ek,ChromaticIcon:vk,ChromeIcon:Sk,CircleHollowIcon:Ak,CircleIcon:ed,ClearIcon:wk,CloseAltIcon:Ck,CloseIcon:_k,CloudHollowIcon:Ok,CloudIcon:xk,CogIcon:Tk,CollapseIcon:Ik,CommandIcon:Dk,CommentAddIcon:Rk,CommentIcon:Pk,CommentsIcon:Fk,CommitIcon:Bk,CompassIcon:Nk,ComponentDrivenIcon:qk,ComponentIcon:Mk,ContrastIcon:jk,ControlsIcon:Lk,CopyIcon:kk,CreditIcon:$k,CrossIcon:zk,DashboardIcon:Uk,DatabaseIcon:Hk,DeleteIcon:Wk,DiamondIcon:Gk,DirectionIcon:Vk,DiscordIcon:Yk,DocChartIcon:Kk,DocListIcon:Xk,DocumentIcon:td,DownloadIcon:Jk,DragIcon:Qk,EditIcon:Zk,EllipsisIcon:e$,EmailIcon:t$,ExpandAltIcon:r$,ExpandIcon:n$,EyeCloseIcon:o$,EyeIcon:a$,FaceHappyIcon:i$,FaceNeutralIcon:u$,FaceSadIcon:s$,FacebookIcon:l$,FailedIcon:c$,FastForwardIcon:rd,FigmaIcon:p$,FilterIcon:f$,FlagIcon:d$,FolderIcon:h$,FormIcon:m$,GDriveIcon:y$,GithubIcon:g$,GitlabIcon:b$,GlobeIcon:E$,GoogleIcon:v$,GraphBarIcon:S$,GraphLineIcon:A$,GraphqlIcon:w$,GridAltIcon:C$,GridIcon:_$,GrowIcon:O$,HeartHollowIcon:x$,HeartIcon:T$,HomeIcon:I$,HourglassIcon:D$,InfoIcon:R$,ItalicIcon:P$,JumpToIcon:F$,KeyIcon:B$,LightningIcon:N$,LightningOffIcon:q$,LinkBrokenIcon:M$,LinkIcon:j$,LinkedinIcon:L$,LinuxIcon:k$,ListOrderedIcon:$$,ListUnorderedIcon:nd,LocationIcon:z$,LockIcon:U$,MarkdownIcon:H$,MarkupIcon:W$,MediumIcon:G$,MemoryIcon:V$,MenuIcon:Y$,MergeIcon:K$,MirrorIcon:X$,MobileIcon:J$,MoonIcon:Q$,NutIcon:Z$,OutboxIcon:e7,OutlineIcon:t7,PaintBrushIcon:r7,PaperClipIcon:n7,ParagraphIcon:o7,PassedIcon:a7,PhoneIcon:i7,PhotoDragIcon:u7,PhotoIcon:s7,PinAltIcon:l7,PinIcon:c7,PlayBackIcon:od,PlayIcon:ad,PlayNextIcon:id,PlusIcon:p7,PointerDefaultIcon:f7,PointerHandIcon:d7,PowerIcon:h7,PrintIcon:m7,ProceedIcon:y7,ProfileIcon:g7,PullRequestIcon:b7,QuestionIcon:E7,RSSIcon:v7,RedirectIcon:S7,ReduxIcon:A7,RefreshIcon:w7,ReplyIcon:C7,RepoIcon:_7,RequestChangeIcon:O7,RewindIcon:ud,RulerIcon:x7,SearchIcon:T7,ShareAltIcon:I7,ShareIcon:D7,ShieldIcon:R7,SideBySideIcon:P7,SidebarAltIcon:F7,SidebarAltToggleIcon:B7,SidebarIcon:N7,SidebarToggleIcon:q7,SpeakerIcon:M7,StackedIcon:j7,StarHollowIcon:L7,StarIcon:k7,StickerIcon:$7,StopAltIcon:sd,StopIcon:z7,StorybookIcon:U7,StructureIcon:H7,SubtractIcon:W7,SunIcon:G7,SupportIcon:V7,SwitchAltIcon:Y7,SyncIcon:ld,TabletIcon:K7,ThumbsUpIcon:X7,TimeIcon:J7,TimerIcon:Q7,TransferIcon:Z7,TrashIcon:ez,TwitterIcon:tz,TypeIcon:rz,UbuntuIcon:nz,UndoIcon:oz,UnfoldIcon:az,UnlockIcon:iz,UnpinIcon:uz,UploadIcon:sz,UserAddIcon:lz,UserAltIcon:cz,UserIcon:pz,UsersIcon:fz,VSCodeIcon:dz,VerifiedIcon:hz,VideoIcon:cd,WandIcon:mz,WatchIcon:yz,WindowsIcon:gz,WrenchIcon:bz,YoutubeIcon:Ez,ZoomIcon:vz,ZoomOutIcon:Sz,ZoomResetIcon:Az,iconList:wz}=__STORYBOOK_ICONS__;var Hw=Object.create,Ad=Object.defineProperty,Ww=Object.getOwnPropertyDescriptor,wd=Object.getOwnPropertyNames,Gw=Object.getPrototypeOf,Vw=Object.prototype.hasOwnProperty,Le=(e,t)=>function(){return t||(0,e[wd(e)[0]])((t={exports:{}}).exports,t),t.exports},Yw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wd(t))!Vw.call(e,o)&&o!==r&&Ad(e,o,{get:()=>t[o],enumerable:!(n=Ww(t,o))||n.enumerable});return e},$e=(e,t,r)=>(r=e!=null?Hw(Gw(e)):{},Yw(t||!e||!e.__esModule?Ad(r,"default",{value:e,enumerable:!0}):r,e)),Jo=Le({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js"(e,t){function r(){return t.exports=r=Object.assign||function(n){for(var o=1;o=0)&&(a[c]=n[c]);return a}t.exports=r}}),Qo=Le({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(e,t){var r=Kw();function n(o,a){if(o==null)return{};var i=r(o,a),c,p;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);for(p=0;p=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(i[c]=o[c])}return i}t.exports=n}}),Xw=Le({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js"(e,t){function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}t.exports=r}}),Jw=Le({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js"(e,t){var r=Xw();function n(a,i){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);i&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),c.push.apply(c,p)}return c}function o(a){for(var i=1;i=0)&&(a[c]=n[c]);return a}t.exports=r}}),Zw=Le({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(e,t){var r=Qw();function n(o,a){if(o==null)return{};var i=r(o,a),c,p;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);for(p=0;p=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(i[c]=o[c])}return i}t.exports=n}}),eC=Le({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js"(e,t){function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}t.exports=r}}),tC=Le({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js"(e,t){var r=eC();function n(a,i){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);i&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),c.push.apply(c,p)}return c}function o(a){for(var i=1;i=0)&&(a[c]=n[c]);return a}t.exports=r}}),oC=Le({"../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(e,t){var r=nC();function n(o,a){if(o==null)return{};var i=r(o,a),c,p;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);for(p=0;p=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(i[c]=o[c])}return i}t.exports=n}}),on="storybook/interactions",aC=`${on}/panel`,iC="https://youtu.be/Waht9qq7AoA",uC="writing-tests/interaction-testing",sC=ie.div(({theme:e,status:t})=>({padding:"4px 6px 4px 8px;",borderRadius:"4px",backgroundColor:{[se.DONE]:e.color.positive,[se.ERROR]:e.color.negative,[se.ACTIVE]:e.color.warning,[se.WAITING]:e.color.warning}[t],color:"white",fontFamily:Xe.fonts.base,textTransform:"uppercase",fontSize:Xe.size.s1,letterSpacing:3,fontWeight:Xe.weight.bold,width:65,textAlign:"center"})),lC=({status:e})=>{let t={[se.DONE]:"Pass",[se.ERROR]:"Fail",[se.ACTIVE]:"Runs",[se.WAITING]:"Runs"}[e];return y.createElement(sC,{"aria-label":"Status of the test run",status:e},t)},cC=ie.div(({theme:e})=>({background:e.background.app,borderBottom:`1px solid ${e.appBorderColor}`,position:"sticky",top:0,zIndex:1})),pC=ie.nav(({theme:e})=>({height:40,display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:15})),fC=ie(Ea)(({theme:e})=>({borderRadius:4,padding:6,color:e.textMutedColor,"&:not(:disabled)":{"&:hover,&:focus-visible":{color:e.color.secondary}}})),lr=ie(yn)(({theme:e})=>({fontFamily:e.typography.fonts.base})),cr=ie(hn)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),dC=ie(Aa)({marginTop:0}),hC=ie(Sa)(({theme:e})=>({color:e.textMutedColor,justifyContent:"flex-end",textAlign:"right",whiteSpace:"nowrap",marginTop:"auto",marginBottom:1,paddingRight:15,fontSize:13})),pd=ie.div({display:"flex",alignItems:"center"}),mC=ie(cr)({marginLeft:9}),yC=ie(fC)({marginLeft:9,marginRight:9,marginBottom:1,lineHeight:"12px"}),gC=ie(cr)(({theme:e,animating:t,disabled:r})=>({opacity:r?.5:1,svg:{animation:t&&`${e.animation.rotate360} 200ms ease-out`}})),bC=({controls:e,controlStates:t,status:r,storyFileName:n,onScrollToEnd:o})=>{let a=r===se.ERROR?"Scroll to error":"Scroll to end";return y.createElement(cC,null,y.createElement(ba,null,y.createElement(pC,null,y.createElement(pd,null,y.createElement(lC,{status:r}),y.createElement(yC,{onClick:o,disabled:!o},a),y.createElement(dC,null),y.createElement(lt,{trigger:"hover",hasChrome:!1,tooltip:y.createElement(lr,{note:"Go to start"})},y.createElement(mC,{"aria-label":"Go to start",containsIcon:!0,onClick:e.start,disabled:!t.start},y.createElement(ud,null))),y.createElement(lt,{trigger:"hover",hasChrome:!1,tooltip:y.createElement(lr,{note:"Go back"})},y.createElement(cr,{"aria-label":"Go back",containsIcon:!0,onClick:e.back,disabled:!t.back},y.createElement(od,null))),y.createElement(lt,{trigger:"hover",hasChrome:!1,tooltip:y.createElement(lr,{note:"Go forward"})},y.createElement(cr,{"aria-label":"Go forward",containsIcon:!0,onClick:e.next,disabled:!t.next},y.createElement(id,null))),y.createElement(lt,{trigger:"hover",hasChrome:!1,tooltip:y.createElement(lr,{note:"Go to end"})},y.createElement(cr,{"aria-label":"Go to end",containsIcon:!0,onClick:e.end,disabled:!t.end},y.createElement(rd,null))),y.createElement(lt,{trigger:"hover",hasChrome:!1,tooltip:y.createElement(lr,{note:"Rerun"})},y.createElement(gC,{"aria-label":"Rerun",containsIcon:!0,onClick:e.rerun},y.createElement(ld,null)))),n&&y.createElement(pd,null,y.createElement(hC,null,n)))))},EC=$e(Jo()),vC=$e(Qo());function Ko(e){var t,r,n="";if(e)if(typeof e=="object")if(Array.isArray(e))for(t=0;tArray.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView),Cd=e=>e!==null&&typeof e=="object"&&!Zo(e)&&!(e instanceof Date)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet),SC=e=>Cd(e)||Zo(e)||typeof e=="function"||e instanceof Promise,_d=e=>{let t=/unique/;return Promise.race([e,t]).then(r=>r===t?["pending"]:["fulfilled",r],r=>["rejected",r])},Ve=async(e,t,r,n,o,a)=>{let i={key:e,depth:r,value:t,type:"value",parent:void 0};if(t&&SC(t)&&r<100){let c=[],p="object";if(Zo(t)){for(let d=0;d{let h=await Ve(d.toString(),t[d],r+1,n);return h.parent=i,h});p="array"}else{let d=Object.getOwnPropertyNames(t);n&&d.sort();for(let h=0;h{let f=await Ve(d[h],m,r+1,n);return f.parent=i,f})}if(typeof t=="function"&&(p="function"),t instanceof Promise){let[h,m]=await _d(t);c.push(async()=>{let f=await Ve("",h,r+1,n);return f.parent=i,f}),h!=="pending"&&c.push(async()=>{let f=await Ve("",m,r+1,n);return f.parent=i,f}),p="promise"}if(t instanceof Map){let h=Array.from(t.entries()).map(m=>{let[f,w]=m;return{"":f,"":w}});c.push(async()=>{let m=await Ve("",h,r+1,n);return m.parent=i,m}),c.push(async()=>{let m=await Ve("size",t.size,r+1,n);return m.parent=i,m}),p="map"}if(t instanceof Set){let h=Array.from(t.entries()).map(m=>m[1]);c.push(async()=>{let m=await Ve("",h,r+1,n);return m.parent=i,m}),c.push(async()=>{let m=await Ve("size",t.size,r+1,n);return m.parent=i,m}),p="set"}}t!==Object.prototype&&a&&c.push(async()=>{let d=await Ve("",Object.getPrototypeOf(t),r+1,n,!0);return d.parent=i,d}),i.type=p,i.children=c,i.isPrototype=o}return i},AC=(e,t,r)=>Ve("root",e,0,t===!1?t:!0,void 0,r===!1?r:!0),fd=$e(Jw()),wC=$e(Zw()),CC=["children"],Xo=y.createContext({theme:"chrome",colorScheme:"light"}),_C=e=>{let{children:t}=e,r=(0,wC.default)(e,CC),n=y.useContext(Xo);return y.createElement(Xo.Provider,{value:(0,fd.default)((0,fd.default)({},n),r)},t)},an=(e,t={})=>{let r=y.useContext(Xo),n=e.theme||r.theme||"chrome",o=e.colorScheme||r.colorScheme||"light",a=Ye(t[n],t[o]);return{currentColorScheme:o,currentTheme:n,themeClass:a}},dd=$e(tC()),Ho=$e(rC()),OC=$e(oC()),xC=y.createContext({isChild:!1,depth:0,hasHover:!0}),Wo=xC,Fe={tree:"Tree-tree-fbbbe38",item:"Tree-item-353d6f3",group:"Tree-group-d3c3d8a",label:"Tree-label-d819155",focusWhite:"Tree-focusWhite-f1e00c2",arrow:"Tree-arrow-03ab2e7",hover:"Tree-hover-3cc4e5d",open:"Tree-open-3f1a336",dark:"Tree-dark-1b4aa00",chrome:"Tree-chrome-bcbcac6",light:"Tree-light-09174ee"},TC=["theme","hover","colorScheme","children","label","className","onUpdate","onSelect","open"],nn=e=>{let{theme:t,hover:r,colorScheme:n,children:o,label:a,className:i,onUpdate:c,onSelect:p,open:d}=e,h=(0,OC.default)(e,TC),{themeClass:m,currentTheme:f}=an({theme:t,colorScheme:n},Fe),[w,g]=ke(d);Qe(()=>{g(d)},[d]);let A=N=>{g(N),c&&c(N)},x=y.Children.count(o)>0,P=(N,z)=>{if(N.isSameNode(z||null))return;N.querySelector('[tabindex="-1"]')?.focus(),N.setAttribute("aria-selected","true"),z?.removeAttribute("aria-selected")},D=(N,z)=>{let U=N;for(;U&&U.parentElement;){if(U.getAttribute("role")===z)return U;U=U.parentElement}return null},F=N=>{let z=D(N,"tree");return z?Array.from(z.querySelectorAll("li")):[]},M=N=>{let z=D(N,"group"),U=z?.previousElementSibling;if(U&&U.getAttribute("tabindex")==="-1"){let Z=U.parentElement,ae=N.parentElement;P(Z,ae)}},j=(N,z)=>{let U=F(N);U.forEach(Z=>{Z.removeAttribute("aria-selected")}),z==="start"&&U[0]&&P(U[0]),z==="end"&&U[U.length-1]&&P(U[U.length-1])},H=(N,z)=>{let U=F(N)||[];for(let Z=0;Z{let U=N.target;(N.key==="Enter"||N.key===" ")&&A(!w),N.key==="ArrowRight"&&w&&!z?H(U,"down"):N.key==="ArrowRight"&&A(!0),N.key==="ArrowLeft"&&(!w||z)?M(U):N.key==="ArrowLeft"&&A(!1),N.key==="ArrowDown"&&H(U,"down"),N.key==="ArrowUp"&&H(U,"up"),N.key==="Home"&&j(U,"start"),N.key==="End"&&j(U,"end")},I=(N,z)=>{let U=N.target,Z=D(U,"treeitem"),ae=F(U)||[],he=!1;for(let Ee=0;Ee{let z=N.currentTarget;!z.contains(document.activeElement)&&z.getAttribute("role")==="tree"&&z.setAttribute("tabindex","0")},V=N=>{let z=N.target;if(z.getAttribute("role")==="tree"){let U=z.querySelector('[aria-selected="true"]');U?P(U):H(z,"down"),z.setAttribute("tabindex","-1")}},J=()=>{p?.()},Q=N=>{let z=N*.9+.3;return{paddingLeft:`${z}em`,width:`calc(100% - ${z}em)`}},{isChild:X,depth:_,hasHover:R}=y.useContext(Wo),B=R?r:!1;if(!X)return y.createElement("ul",(0,Ho.default)({role:"tree",tabIndex:0,className:Ye(Fe.tree,Fe.group,m,i),onFocus:V,onBlur:L},h),y.createElement(Wo.Provider,{value:{isChild:!0,depth:0,hasHover:B}},y.createElement(nn,e)));if(!x)return y.createElement("li",(0,Ho.default)({role:"treeitem",className:Fe.item},h),y.createElement("div",{role:"button",className:Ye(Fe.label,{[Fe.hover]:B,[Fe.focusWhite]:f==="firefox"}),tabIndex:-1,style:Q(_),onKeyDown:N=>{W(N,X)},onClick:N=>I(N,!0),onFocus:J},y.createElement("span",null,a)));let $=Ye(Fe.arrow,{[Fe.open]:w});return y.createElement("li",{role:"treeitem","aria-expanded":w,className:Fe.item},y.createElement("div",{role:"button",tabIndex:-1,className:Ye(Fe.label,{[Fe.hover]:B,[Fe.focusWhite]:f==="firefox"}),style:Q(_),onClick:N=>I(N),onKeyDown:N=>W(N),onFocus:J},y.createElement("span",null,y.createElement("span",{"aria-hidden":!0,className:$}),y.createElement("span",null,a))),y.createElement("ul",(0,Ho.default)({role:"group",className:Ye(i,Fe.group)},h),w&&y.Children.map(o,N=>y.createElement(Wo.Provider,{value:{isChild:!0,depth:_+1,hasHover:B}},N))))};nn.defaultProps={open:!1,hover:!0};var IC=$e(Jo()),DC=$e(Qo()),pe={"object-inspector":"ObjectInspector-object-inspector-0c33e82",objectInspector:"ObjectInspector-object-inspector-0c33e82","object-label":"ObjectInspector-object-label-b81482b",objectLabel:"ObjectInspector-object-label-b81482b",text:"ObjectInspector-text-25f57f3",key:"ObjectInspector-key-4f712bb",value:"ObjectInspector-value-f7ec2e5",string:"ObjectInspector-string-c496000",regex:"ObjectInspector-regex-59d45a3",error:"ObjectInspector-error-b818698",boolean:"ObjectInspector-boolean-2dd1642",number:"ObjectInspector-number-a6daabb",undefined:"ObjectInspector-undefined-3a68263",null:"ObjectInspector-null-74acb50",function:"ObjectInspector-function-07bbdcd","function-decorator":"ObjectInspector-function-decorator-3d22c24",functionDecorator:"ObjectInspector-function-decorator-3d22c24",prototype:"ObjectInspector-prototype-f2449ee",dark:"ObjectInspector-dark-0c96c97",chrome:"ObjectInspector-chrome-2f3ca98",light:"ObjectInspector-light-78bef54"},RC=["ast","theme","showKey","colorScheme","className"],Be=(e,t,r,n,o)=>{let a=e.includes("-")?`"${e}"`:e,i=o<=0;return y.createElement("span",{className:pe.text},!i&&n&&y.createElement(y.Fragment,null,y.createElement("span",{className:pe.key},a),y.createElement("span",null,":\xA0")),y.createElement("span",{className:r},t))},Od=e=>{let{ast:t,theme:r,showKey:n,colorScheme:o,className:a}=e,i=(0,DC.default)(e,RC),{themeClass:c}=an({theme:r,colorScheme:o},pe),[p,d]=ke(y.createElement("span",null)),h=y.createElement("span",null);return Qe(()=>{t.value instanceof Promise&&(async m=>{d(Be(t.key,`Promise { "${await _d(m)}" }`,pe.key,n,t.depth))})(t.value)},[t,n]),typeof t.value=="number"||typeof t.value=="bigint"?h=Be(t.key,String(t.value),pe.number,n,t.depth):typeof t.value=="boolean"?h=Be(t.key,String(t.value),pe.boolean,n,t.depth):typeof t.value=="string"?h=Be(t.key,`"${t.value}"`,pe.string,n,t.depth):typeof t.value>"u"?h=Be(t.key,"undefined",pe.undefined,n,t.depth):typeof t.value=="symbol"?h=Be(t.key,t.value.toString(),pe.string,n,t.depth):typeof t.value=="function"?h=Be(t.key,`${t.value.name}()`,pe.key,n,t.depth):typeof t.value=="object"&&(t.value===null?h=Be(t.key,"null",pe.null,n,t.depth):Array.isArray(t.value)?h=Be(t.key,`Array(${t.value.length})`,pe.key,n,t.depth):t.value instanceof Date?h=Be(t.key,`Date ${t.value.toString()}`,pe.value,n,t.depth):t.value instanceof RegExp?h=Be(t.key,t.value.toString(),pe.regex,n,t.depth):t.value instanceof Error?h=Be(t.key,t.value.toString(),pe.error,n,t.depth):Cd(t.value)?h=Be(t.key,"{\u2026}",pe.key,n,t.depth):h=Be(t.key,t.value.constructor.name,pe.key,n,t.depth)),y.createElement("span",(0,IC.default)({className:Ye(c,a)},i),p,h)};Od.defaultProps={showKey:!0};var xd=Od,Ut=$e(Jo()),PC=$e(Qo()),FC=["ast","theme","previewMax","open","colorScheme","className"],pr=(e,t,r)=>{let n=[];for(let o=0;ot){n.push("\u2026 ");break}}return n},BC=(e,t,r,n)=>{let o=e.value.length;return t?y.createElement("span",null,"Array(",o,")"):y.createElement(y.Fragment,null,y.createElement("span",null,`${n==="firefox"?"Array":""}(${o}) [ `),pr(e.children,r,!1),y.createElement("span",null,"]"))},NC=(e,t,r,n)=>e.isPrototype?y.createElement("span",null,`Object ${n==="firefox"?"{ \u2026 }":""}`):t?y.createElement("span",null,"{\u2026}"):y.createElement(y.Fragment,null,y.createElement("span",null,`${n==="firefox"?"Object ":""}{ `),pr(e.children,r,!0),y.createElement("span",null,"}")),qC=(e,t,r)=>t?y.createElement("span",null,`Promise { "${String(e.children[0].value)}" }`):y.createElement(y.Fragment,null,y.createElement("span",null,"Promise { "),pr(e.children,r,!0),y.createElement("span",null,"}")),MC=(e,t,r,n)=>{let{size:o}=e.value;return t?y.createElement("span",null,`Map(${o})`):y.createElement(y.Fragment,null,y.createElement("span",null,`Map${n==="chrome"?`(${o})`:""} { `),pr(e.children,r,!0),y.createElement("span",null,"}"))},jC=(e,t,r)=>{let{size:n}=e.value;return t?y.createElement("span",null,"Set(",n,")"):y.createElement(y.Fragment,null,y.createElement("span",null,`Set(${e.value.size}) {`),pr(e.children,r,!0),y.createElement("span",null,"}"))},Td=e=>{let{ast:t,theme:r,previewMax:n,open:o,colorScheme:a,className:i}=e,c=(0,PC.default)(e,FC),{themeClass:p,currentTheme:d}=an({theme:r,colorScheme:a},pe),h=t.isPrototype||!1,m=Ye(pe.objectLabel,p,i,{[pe.prototype]:h}),f=t.depth<=0,w=()=>y.createElement("span",{className:h?pe.prototype:pe.key},f?"":`${t.key}: `);return t.type==="array"?y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),BC(t,o,n,d)):t.type==="function"?y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),d==="chrome"&&y.createElement("span",{className:pe.functionDecorator},"\u0192 "),y.createElement("span",{className:Ye({[pe.function]:!h})},`${t.value.name}()`)):t.type==="promise"?y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),qC(t,o,n)):t.type==="map"?y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),MC(t,o,n,d)):t.type==="set"?y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),jC(t,o,n)):y.createElement("span",(0,Ut.default)({className:m},c),y.createElement(w,null),NC(t,o,n,d))};Td.defaultProps={previewMax:8,open:!1};var LC=Td,ea=e=>{let{ast:t,expandLevel:r,depth:n}=e,[o,a]=ke(),[i,c]=ke(n{(async()=>{if(t.type!=="value"){let p=t.children.map(m=>m()),d=await Promise.all(p),h=(0,dd.default)((0,dd.default)({},t),{},{children:d});a(h)}})()},[t]),o?y.createElement(nn,{hover:!1,open:i,label:y.createElement(LC,{open:i,ast:o}),onSelect:()=>{var p;(p=e.onSelect)===null||p===void 0||p.call(e,t)},onUpdate:p=>{c(p)}},o.children.map(p=>y.createElement(ea,{key:p.key,ast:p,depth:n+1,expandLevel:r,onSelect:e.onSelect}))):y.createElement(nn,{hover:!1,label:y.createElement(xd,{ast:t}),onSelect:()=>{var p;(p=e.onSelect)===null||p===void 0||p.call(e,t)}})};ea.defaultProps={expandLevel:0,depth:0};var kC=ea,$C=["data","expandLevel","sortKeys","includePrototypes","className","theme","colorScheme","onSelect"],Id=e=>{let{data:t,expandLevel:r,sortKeys:n,includePrototypes:o,className:a,theme:i,colorScheme:c,onSelect:p}=e,d=(0,vC.default)(e,$C),[h,m]=ke(void 0),{themeClass:f,currentTheme:w,currentColorScheme:g}=an({theme:i,colorScheme:c},pe);return Qe(()=>{(async()=>m(await AC(t,n,o)))()},[t,n,o]),y.createElement("div",(0,EC.default)({className:Ye(pe.objectInspector,a,f)},d),h&&y.createElement(_C,{theme:w,colorScheme:g},y.createElement(kC,{ast:h,expandLevel:r,onSelect:p})))};Id.defaultProps={expandLevel:0,sortKeys:!0,includePrototypes:!0};var zC={base:"#444",nullish:"#7D99AA",string:"#16B242",number:"#5D40D0",boolean:"#f41840",objectkey:"#698394",instance:"#A15C20",function:"#EA7509",muted:"#7D99AA",tag:{name:"#6F2CAC",suffix:"#1F99E5"},date:"#459D9C",error:{name:"#D43900",message:"#444"},regex:{source:"#A15C20",flags:"#EA7509"},meta:"#EA7509",method:"#0271B6"},UC={base:"#eee",nullish:"#aaa",string:"#5FE584",number:"#6ba5ff",boolean:"#ff4191",objectkey:"#accfe6",instance:"#E3B551",function:"#E3B551",muted:"#aaa",tag:{name:"#f57bff",suffix:"#8EB5FF"},date:"#70D4D3",error:{name:"#f40",message:"#eee"},regex:{source:"#FAD483",flags:"#E3B551"},meta:"#FAD483",method:"#5EC1FF"},Ce=()=>{let{base:e}=ur();return e==="dark"?UC:zC},HC=/[^A-Z0-9]/i,hd=/[\s.,…]+$/gm,Dd=(e,t)=>{if(e.length<=t)return e;for(let r=t-1;r>=0;r-=1)if(HC.test(e[r])&&r>10)return`${e.slice(0,r).replace(hd,"")}\u2026`;return`${e.slice(0,t).replace(hd,"")}\u2026`},WC=e=>{try{return JSON.stringify(e,null,1)}catch{return String(e)}},Rd=(e,t)=>e.flatMap((r,n)=>n===e.length-1?[r]:[r,y.cloneElement(t,{key:`sep${n}`})]),Et=({value:e,nested:t,showObjectInspector:r,callsById:n,...o})=>{switch(!0){case e===null:return y.createElement(GC,{...o});case e===void 0:return y.createElement(VC,{...o});case Array.isArray(e):return y.createElement(JC,{...o,value:e,callsById:n});case typeof e=="string":return y.createElement(YC,{...o,value:e});case typeof e=="number":return y.createElement(KC,{...o,value:e});case typeof e=="boolean":return y.createElement(XC,{...o,value:e});case Object.prototype.hasOwnProperty.call(e,"__date__"):return y.createElement(r_,{...o,...e.__date__});case Object.prototype.hasOwnProperty.call(e,"__error__"):return y.createElement(n_,{...o,...e.__error__});case Object.prototype.hasOwnProperty.call(e,"__regexp__"):return y.createElement(o_,{...o,...e.__regexp__});case Object.prototype.hasOwnProperty.call(e,"__function__"):return y.createElement(e_,{...o,...e.__function__});case Object.prototype.hasOwnProperty.call(e,"__symbol__"):return y.createElement(a_,{...o,...e.__symbol__});case Object.prototype.hasOwnProperty.call(e,"__element__"):return y.createElement(t_,{...o,...e.__element__});case Object.prototype.hasOwnProperty.call(e,"__class__"):return y.createElement(ZC,{...o,...e.__class__});case Object.prototype.hasOwnProperty.call(e,"__callId__"):return y.createElement(ta,{call:n.get(e.__callId__),callsById:n});case Object.prototype.toString.call(e)==="[object Object]":return y.createElement(QC,{value:e,showInspector:r,callsById:n,...o});default:return y.createElement(i_,{value:e,...o})}},GC=e=>{let t=Ce();return y.createElement("span",{style:{color:t.nullish},...e},"null")},VC=e=>{let t=Ce();return y.createElement("span",{style:{color:t.nullish},...e},"undefined")},YC=({value:e,...t})=>{let r=Ce();return y.createElement("span",{style:{color:r.string},...t},JSON.stringify(Dd(e,50)))},KC=({value:e,...t})=>{let r=Ce();return y.createElement("span",{style:{color:r.number},...t},e)},XC=({value:e,...t})=>{let r=Ce();return y.createElement("span",{style:{color:r.boolean},...t},String(e))},JC=({value:e,nested:t=!1,callsById:r})=>{let n=Ce();if(t)return y.createElement("span",{style:{color:n.base}},"[\u2026]");let o=e.slice(0,3).map(i=>y.createElement(Et,{key:JSON.stringify(i),value:i,nested:!0,callsById:r})),a=Rd(o,y.createElement("span",null,", "));return e.length<=3?y.createElement("span",{style:{color:n.base}},"[",a,"]"):y.createElement("span",{style:{color:n.base}},"(",e.length,") [",a,", \u2026]")},QC=({showInspector:e,value:t,callsById:r,nested:n=!1})=>{let o=ur().base==="dark",a=Ce();if(e)return y.createElement(y.Fragment,null,y.createElement(Id,{id:"interactions-object-inspector",data:t,includePrototypes:!1,colorScheme:o?"dark":"light"}));if(n)return y.createElement("span",{style:{color:a.base}},"{\u2026}");let i=Rd(Object.entries(t).slice(0,2).map(([c,p])=>y.createElement(Je,{key:c},y.createElement("span",{style:{color:a.objectkey}},c,": "),y.createElement(Et,{value:p,callsById:r,nested:!0}))),y.createElement("span",null,", "));return Object.keys(t).length<=2?y.createElement("span",{style:{color:a.base}},"{ ",i," }"):y.createElement("span",{style:{color:a.base}},"(",Object.keys(t).length,") ","{ ",i,", \u2026 }")},ZC=({name:e})=>{let t=Ce();return y.createElement("span",{style:{color:t.instance}},e)},e_=({name:e})=>{let t=Ce();return e?y.createElement("span",{style:{color:t.function}},e):y.createElement("span",{style:{color:t.nullish,fontStyle:"italic"}},"anonymous")},t_=({prefix:e,localName:t,id:r,classNames:n=[],innerText:o})=>{let a=e?`${e}:${t}`:t,i=Ce();return y.createElement("span",{style:{wordBreak:"keep-all"}},y.createElement("span",{key:`${a}_lt`,style:{color:i.muted}},"<"),y.createElement("span",{key:`${a}_tag`,style:{color:i.tag.name}},a),y.createElement("span",{key:`${a}_suffix`,style:{color:i.tag.suffix}},r?`#${r}`:n.reduce((c,p)=>`${c}.${p}`,"")),y.createElement("span",{key:`${a}_gt`,style:{color:i.muted}},">"),!r&&n.length===0&&o&&y.createElement(y.Fragment,null,y.createElement("span",{key:`${a}_text`},o),y.createElement("span",{key:`${a}_close_lt`,style:{color:i.muted}},"<"),y.createElement("span",{key:`${a}_close_tag`,style:{color:i.tag.name}},"/",a),y.createElement("span",{key:`${a}_close_gt`,style:{color:i.muted}},">")))},r_=({value:e})=>{let[t,r,n]=e.split(/[T.Z]/),o=Ce();return y.createElement("span",{style:{whiteSpace:"nowrap",color:o.date}},t,y.createElement("span",{style:{opacity:.7}},"T"),r==="00:00:00"?y.createElement("span",{style:{opacity:.7}},r):r,n==="000"?y.createElement("span",{style:{opacity:.7}},".",n):`.${n}`,y.createElement("span",{style:{opacity:.7}},"Z"))},n_=({name:e,message:t})=>{let r=Ce();return y.createElement("span",{style:{color:r.error.name}},e,t&&": ",t&&y.createElement("span",{style:{color:r.error.message},title:t.length>50?t:""},Dd(t,50)))},o_=({flags:e,source:t})=>{let r=Ce();return y.createElement("span",{style:{whiteSpace:"nowrap",color:r.regex.flags}},"/",y.createElement("span",{style:{color:r.regex.source}},t),"/",e)},a_=({description:e})=>{let t=Ce();return y.createElement("span",{style:{whiteSpace:"nowrap",color:t.instance}},"Symbol(",e&&y.createElement("span",{style:{color:t.meta}},'"',e,'"'),")")},i_=({value:e})=>{let t=Ce();return y.createElement("span",{style:{color:t.meta}},WC(e))},u_=({label:e})=>{let t=Ce(),{typography:r}=ur();return y.createElement("span",{style:{color:t.base,fontFamily:r.fonts.base,fontSize:r.size.s2-1}},e)},ta=({call:e,callsById:t})=>{if(!e)return null;if(e.method==="step"&&e.path.length===0)return y.createElement(u_,{label:e.args[0]});let r=e.path.flatMap((a,i)=>{let c=a.__callId__;return[c?y.createElement(ta,{key:`elem${i}`,call:t.get(c),callsById:t}):y.createElement("span",{key:`elem${i}`},a),y.createElement("wbr",{key:`wbr${i}`}),y.createElement("span",{key:`dot${i}`},".")]}),n=e.args.flatMap((a,i,c)=>{let p=y.createElement(Et,{key:`node${i}`,value:a,callsById:t});return i{for(let r=t,n=1;r{try{return e==="undefined"?void 0:JSON.parse(e)}catch{return e}},s_=ie.span(({theme:e})=>({color:e.base==="light"?e.color.positiveText:e.color.positive})),l_=ie.span(({theme:e})=>({color:e.base==="light"?e.color.negativeText:e.color.negative})),tn=({value:e,parsed:t})=>t?y.createElement(Et,{showObjectInspector:!0,value:e,style:{color:"#D43900"}}):y.createElement(l_,null,e),rn=({value:e,parsed:t})=>t?typeof e=="string"&&e.startsWith("called with")?y.createElement(y.Fragment,null,e):y.createElement(Et,{showObjectInspector:!0,value:e,style:{color:"#16B242"}}):y.createElement(s_,null,e),yd=({message:e,style:t={}})=>{let r=e.split(` +`);return y.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:Xe.size.s1,...t}},r.flatMap((n,o)=>{if(n.startsWith("expect(")){let h=md(n,7),m=h&&7+h.length,f=h&&n.slice(m).match(/\.(to|last|nth)[A-Z]\w+\(/);if(f){let w=m+f.index+f[0].length,g=md(n,w);if(g)return["expect(",y.createElement(tn,{key:`received_${h}`,value:h}),n.slice(m,w),y.createElement(rn,{key:`expected_${g}`,value:g}),n.slice(w+g.length),y.createElement("br",{key:`br${o}`})]}}if(n.match(/^\s*- /))return[y.createElement(rn,{key:n+o,value:n}),y.createElement("br",{key:`br${o}`})];if(n.match(/^\s*\+ /))return[y.createElement(tn,{key:n+o,value:n}),y.createElement("br",{key:`br${o}`})];let[,a,i]=n.match(/^(Expected|Received): (.*)$/)||[];if(a&&i)return a==="Expected"?["Expected: ",y.createElement(rn,{key:n+o,value:Go(i),parsed:!0}),y.createElement("br",{key:`br${o}`})]:["Received: ",y.createElement(tn,{key:n+o,value:Go(i),parsed:!0}),y.createElement("br",{key:`br${o}`})];let[,c,p]=n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&p)return[`${c} of calls: `,y.createElement(Et,{key:n+o,value:Number(p)}),y.createElement("br",{key:`br${o}`})];let[,d]=n.match(/^Received has value: (.+)$/)||[];return d?["Received has value: ",y.createElement(Et,{key:n+o,value:Go(d)}),y.createElement("br",{key:`br${o}`})]:[y.createElement("span",{key:n+o},n),y.createElement("br",{key:`br${o}`})]}))},c_=ie.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),Pd=({status:e})=>{let t=ur();switch(e){case se.DONE:return y.createElement(Zf,{color:t.color.positive,"data-testid":"icon-done"});case se.ERROR:return y.createElement(sd,{color:t.color.negative,"data-testid":"icon-error"});case se.ACTIVE:return y.createElement(ad,{color:t.color.secondary,"data-testid":"icon-active"});case se.WAITING:return y.createElement(c_,{"data-testid":"icon-waiting"},y.createElement(ed,{color:en(.5,"#CCCCCC"),size:6}));default:return null}};function p_(e){return f_(e)||Fd(e)}function f_(e){return e&&typeof e=="object"&&"name"in e&&typeof e.name=="string"&&e.name==="AssertionError"}function Fd(e){return e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&e.message.startsWith("expect(")}var d_=ie.div(()=>({fontFamily:Xe.fonts.mono,fontSize:Xe.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),h_=ie("div",{shouldForwardProp:e=>!["call","pausedAt"].includes(e.toString())})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:Xe.fonts.base,fontSize:13,...t.status===se.ERROR&&{backgroundColor:e.base==="dark"?en(.93,e.color.negative):e.background.warning},paddingLeft:t.ancestors.length*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),m_=ie.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),y_=ie("button",{shouldForwardProp:e=>!["call"].includes(e.toString())})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status===se.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===se.ERROR?e.color.warning:e.color.secondary}`,background:r.status===se.ERROR?"transparent":e.background.hoverable},"& > div":{opacity:r.status===se.WAITING?.5:1}})),g_=ie.div({padding:6}),b_=ie(hn)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),E_=ie(yn)(({theme:e})=>({fontFamily:e.typography.fonts.base})),v_=ie("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:Xe.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),S_=({exception:e})=>{if(Fd(e))return ee(yd,{...e});let t=e.message.split(` + +`),r=t.length>1;return ee(v_,null,ee("pre",null,t[0]),e.showDiff&&e.diff?ee(Je,null,ee("br",null),ee(yd,{message:e.diff,style:{padding:0}})):ee("pre",null,ee("br",null),e.expected&&ee(Je,null,"Expected: ",ee(rn,{value:e.expected}),ee("br",null)),e.actual&&ee(Je,null,"Received: ",ee(tn,{value:e.actual}),ee("br",null))),r&&ee("p",null,"See the full stack trace in the browser console."))},A_=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:c,pausedAt:p})=>{let[d,h]=ke(!1),m=!n.goto||!e.interceptable||!!e.ancestors.length;return a?null:ee(h_,{call:e,pausedAt:p},ee(m_,{isInteractive:m},ee(y_,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:m,onMouseEnter:()=>n.goto&&h(!0),onMouseLeave:()=>n.goto&&h(!1)},ee(Pd,{status:d?se.ACTIVE:e.status}),ee(d_,{style:{marginLeft:6,marginBottom:1}},ee(ta,{call:e,callsById:t}))),ee(g_,null,o?.length>0&&ee(lt,{hasChrome:!1,tooltip:ee(E_,{note:`${i?"Show":"Hide"} interactions`})},ee(b_,{containsIcon:!0,onClick:c},ee(nd,null))))),e.status===se.ERROR&&e.exception?.callId===e.id&&ee(S_,{exception:e.exception}))},w_=ie.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),C_=ie.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),__=()=>{let[e,t]=ke(!0),r=ma().getDocsUrl({subpath:uC,versioned:!0,renderer:!0});return Qe(()=>{let n=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(n)},[]),e?null:y.createElement(va,{title:"Interaction testing",description:y.createElement(y.Fragment,null,"Interaction tests allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:y.createElement(w_,null,y.createElement(mn,{href:iC,target:"_blank",withArrow:!0},y.createElement(cd,null)," Watch 8m video"),y.createElement(C_,null),y.createElement(mn,{href:r,target:"_blank",withArrow:!0},y.createElement(td,null)," Read docs"))})},O_=ie.div(({theme:e})=>({height:"100%",background:e.background.content})),gd=ie.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,backgroundColor:e.base==="dark"?en(.93,e.color.negative):e.background.warning,padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Vo=ie.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${e.appBorderColor}`,borderRadius:3})),bd=ie.div({paddingBottom:4,fontWeight:"bold"}),x_=ie.p({margin:0,padding:"0 0 20px"}),Ed=ie.pre(({theme:e})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:e.typography.size.s1-1})),T_=yr(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:o,hasException:a,caughtException:i,unhandledErrors:c,isPlaying:p,pausedAt:d,onScrollToEnd:h,endRef:m}){return ee(O_,null,(n.length>0||a)&&ee(bC,{controls:t,controlStates:r,status:p?se.ACTIVE:a?se.ERROR:se.DONE,storyFileName:o,onScrollToEnd:h}),ee("div",{"aria-label":"Interactions list"},n.map(f=>ee(A_,{key:f.id,call:f,callsById:e,controls:t,controlStates:r,childCallIds:f.childCallIds,isHidden:f.isHidden,isCollapsed:f.isCollapsed,toggleCollapsed:f.toggleCollapsed,pausedAt:d}))),i&&!p_(i)&&ee(gd,null,ee(bd,null,"Caught exception in ",ee(Vo,null,"play")," function"),ee(Ed,{"data-chromatic":"ignore"},vd(i))),c&&ee(gd,null,ee(bd,null,"Unhandled Errors"),ee(x_,null,"Found ",c.length," unhandled error",c.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",ee(Vo,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",ee(Vo,null,"true"),"."),c.map((f,w)=>ee(Ed,{key:w,"data-chromatic":"ignore"},vd(f)))),ee("div",{ref:m}),!p&&!i&&n.length===0&&ee(__,null))});function vd(e){return e.stack||`${e.name}: ${e.message}`}var Yo={start:!1,back:!1,goto:!1,next:!1,end:!1},Sd=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return e.map(({callId:i,ancestors:c,status:p})=>{let d=!1;return c.forEach(h=>{r.has(h)&&(d=!0),a.set(h,(a.get(h)||[]).concat(i))}),{...t.get(i),status:p,isHidden:d}}).map(i=>{let c=i.status===se.ERROR&&o.get(i.ancestors.slice(-1)[0])?.status===se.ACTIVE?se.ACTIVE:i.status;return o.set(i.id,{...i,status:c}),{...i,status:c,childCallIds:a.get(i.id),isCollapsed:r.has(i.id),toggleCollapsed:()=>n(p=>(p.has(i.id)?p.delete(i.id):p.add(i.id),new Set(p)))}})},I_=yr(function({storyId:e}){let[t,r]=dn(on,{controlStates:Yo,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0,unhandledErrors:void 0}),[n,o]=ke(void 0),[a,i]=ke(new Set),{controlStates:c=Yo,isErrored:p=!1,pausedAt:d=void 0,interactions:h=[],isPlaying:m=!1,caughtException:f=void 0,unhandledErrors:w=void 0}=t,g=gr([]),A=gr(new Map),x=({status:I,...L})=>A.current.set(L.id,L),P=gr();Qe(()=>{let I;return Ne.IntersectionObserver&&(I=new Ne.IntersectionObserver(([L])=>o(L.isIntersecting?void 0:L.target),{root:Ne.document.querySelector("#panel-tab-content")}),P.current&&I.observe(P.current)),()=>I?.disconnect()},[]);let D=da({[nt.CALL]:x,[nt.SYNC]:I=>{r(L=>{let V=Sd({log:I.logItems,calls:A.current,collapsed:a,setCollapsed:i});return{...L,controlStates:I.controlStates,pausedAt:I.pausedAt,interactions:V,interactionsCount:V.filter(({method:J})=>J!=="step").length}}),g.current=I.logItems},[Er]:I=>{if(I.newPhase==="preparing"){r({controlStates:Yo,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0,unhandledErrors:void 0});return}r(L=>({...L,isPlaying:I.newPhase==="playing",pausedAt:void 0,...I.newPhase==="rendering"?{isErrored:!1,caughtException:void 0}:{}}))},[En]:()=>{r(I=>({...I,isErrored:!0}))},[bn]:I=>{r(L=>({...L,caughtException:I}))},[vn]:I=>{r(L=>({...L,unhandledErrors:I}))}},[a]);Qe(()=>{r(I=>{let L=Sd({log:g.current,calls:A.current,collapsed:a,setCollapsed:i});return{...I,interactions:L,interactionsCount:L.filter(({method:V})=>V!=="step").length}})},[a]);let F=ca(()=>({start:()=>D(nt.START,{storyId:e}),back:()=>D(nt.BACK,{storyId:e}),goto:I=>D(nt.GOTO,{storyId:e,callId:I}),next:()=>D(nt.NEXT,{storyId:e}),end:()=>D(nt.END,{storyId:e}),rerun:()=>{D(br,{storyId:e})}}),[e]),M=ha("fileName",""),[j]=M.toString().split("/").slice(-1),H=()=>n?.scrollIntoView({behavior:"smooth",block:"end"}),W=!!f||!!w||h.some(I=>I.status===se.ERROR);return p?y.createElement(Je,{key:"interactions"}):y.createElement(Je,{key:"interactions"},y.createElement(T_,{calls:A.current,controls:F,controlStates:c,interactions:h,fileName:j,hasException:W,caughtException:f,unhandledErrors:w,isPlaying:m,pausedAt:d,endRef:P,onScrollToEnd:n&&H}))}),D_=ie(Pd)({marginLeft:5});function R_(){let[e={}]=dn(on),{hasException:t,interactionsCount:r}=e;return y.createElement("div",null,y.createElement(wa,{col:1},y.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Interactions"),r&&!t?y.createElement(ga,{status:"neutral"},r):null,t?y.createElement(D_,{status:se.ERROR}):null))}fn.register(on,e=>{fn.add(aC,{type:fa.PANEL,title:R_,match:({viewMode:t})=>t==="story",render:({active:t})=>{let r=la(({state:n})=>({storyId:n.storyId}),[]);return y.createElement(ya,{active:t},y.createElement(pa,{filter:r},({storyId:n})=>y.createElement(I_,{storyId:n})))}})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/links-2/manager-bundle.js b/storybook/sb-addons/links-2/manager-bundle.js new file mode 100644 index 0000000..2372992 --- /dev/null +++ b/storybook/sb-addons/links-2/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var E=__STORYBOOK_API__,{ActiveTabs:T,Consumer:h,ManagerContext:p,Provider:A,RequestResponseError:b,addons:a,combineParameters:O,controlOrMetaKey:R,controlOrMetaSymbol:k,eventMatchesShortcut:v,eventToShortcut:g,experimental_requestResponse:I,isMacLike:C,isShortcutTaken:M,keyToSymbol:P,merge:x,mockChannel:f,optionOrAltSymbol:q,shortcutMatchesShortcut:D,shortcutToHumanString:G,types:K,useAddonState:V,useArgTypes:$,useArgs:B,useChannel:N,useGlobalTypes:Q,useGlobals:U,useParameter:Y,useSharedState:H,useStoryPrepared:L,useStorybookApi:j,useStorybookState:w}=__STORYBOOK_API__;var e="storybook/links",n={NAVIGATE:`${e}/navigate`,REQUEST:`${e}/request`,RECEIVE:`${e}/receive`};a.register(e,t=>{t.on(n.REQUEST,({kind:u,name:S})=>{let c=t.storyId(u,S);t.emit(n.RECEIVE,c)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/links-2/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/links-2/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/onboarding-1/manager-bundle.js b/storybook/sb-addons/onboarding-1/manager-bundle.js new file mode 100644 index 0000000..f0c036a --- /dev/null +++ b/storybook/sb-addons/onboarding-1/manager-bundle.js @@ -0,0 +1,433 @@ +try{ +(()=>{var yu=Object.create;var Ir=Object.defineProperty;var vu=Object.getOwnPropertyDescriptor;var bu=Object.getOwnPropertyNames;var xu=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty;var Ne=(e,t)=>()=>(e&&(t=e(e=0)),t);var Tu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ti=(e,t)=>{for(var r in t)Ir(e,r,{get:t[r],enumerable:!0})},ri=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bu(t))!wu.call(e,i)&&i!==r&&Ir(e,i,{get:()=>t[i],enumerable:!(n=vu(t,i))||n.enumerable});return e};var Eu=(e,t,r)=>(r=e!=null?yu(xu(e)):{},ri(t||!e||!e.__esModule?Ir(r,"default",{value:e,enumerable:!0}):r,e)),ni=e=>ri(Ir({},"__esModule",{value:!0}),e);var oe=Ne(()=>{});var ie=Ne(()=>{});var ae=Ne(()=>{});var yt,fv,Kt,mv,gv,yv,vv,bv,xv,oi,wv,ii,Tv,kr=Ne(()=>{oe();ie();ae();yt=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fv,createPortal:Kt,createRoot:mv,findDOMNode:gv,flushSync:yv,hydrate:vv,hydrateRoot:bv,render:xv,unmountComponentAtNode:oi,unstable_batchedUpdates:wv,unstable_renderSubtreeIntoContainer:ii,version:Tv}=__REACT_DOM__});var Lr={};ti(Lr,{Children:()=>Pu,Component:()=>nt,Fragment:()=>Mr,Profiler:()=>Ou,PureComponent:()=>Cu,StrictMode:()=>Au,Suspense:()=>Tn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Ru,cloneElement:()=>Iu,createContext:()=>ot,createElement:()=>J,createFactory:()=>ku,createRef:()=>En,default:()=>m,forwardRef:()=>Qt,isValidElement:()=>Sn,lazy:()=>Pn,memo:()=>Mu,startTransition:()=>Du,unstable_act:()=>Lu,useCallback:()=>Rt,useContext:()=>be,useDebugValue:()=>ju,useDeferredValue:()=>Nu,useEffect:()=>de,useId:()=>On,useImperativeHandle:()=>Vu,useInsertionEffect:()=>Cn,useLayoutEffect:()=>Dr,useMemo:()=>Ke,useReducer:()=>Fu,useRef:()=>vt,useState:()=>Pe,useSyncExternalStore:()=>Bu,useTransition:()=>zu,version:()=>_u});var m,Pu,nt,Mr,Ou,Cu,Au,Tn,Ru,Iu,ot,J,ku,En,Qt,Sn,Pn,Mu,Du,Lu,Rt,be,ju,Nu,de,On,Vu,Cn,Dr,Ke,Fu,vt,Pe,Bu,zu,_u,It=Ne(()=>{oe();ie();ae();m=__REACT__,{Children:Pu,Component:nt,Fragment:Mr,Profiler:Ou,PureComponent:Cu,StrictMode:Au,Suspense:Tn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ru,cloneElement:Iu,createContext:ot,createElement:J,createFactory:ku,createRef:En,forwardRef:Qt,isValidElement:Sn,lazy:Pn,memo:Mu,startTransition:Du,unstable_act:Lu,useCallback:Rt,useContext:be,useDebugValue:ju,useDeferredValue:Nu,useEffect:de,useId:On,useImperativeHandle:Vu,useInsertionEffect:Cn,useLayoutEffect:Dr,useMemo:Ke,useReducer:Fu,useRef:vt,useState:Pe,useSyncExternalStore:Bu,useTransition:zu,version:_u}=__REACT__});var Rv,Iv,kv,Mv,Dv,Lv,jr,jv,Nv,Vv,Fv,Bv,zv,_v,Hv,Uv,Wv,qv,Yv,Gv,Xv,Kv,Qv,Jv,Zv,$v,e0,t0,r0,n0,o0,i0,a0,An=Ne(()=>{oe();ie();ae();Rv=__STORYBOOK_API__,{ActiveTabs:Iv,Consumer:kv,ManagerContext:Mv,Provider:Dv,RequestResponseError:Lv,addons:jr,combineParameters:jv,controlOrMetaKey:Nv,controlOrMetaSymbol:Vv,eventMatchesShortcut:Fv,eventToShortcut:Bv,experimental_requestResponse:zv,isMacLike:_v,isShortcutTaken:Hv,keyToSymbol:Uv,merge:Wv,mockChannel:qv,optionOrAltSymbol:Yv,shortcutMatchesShortcut:Gv,shortcutToHumanString:Xv,types:Kv,useAddonState:Qv,useArgTypes:Jv,useArgs:Zv,useChannel:$v,useGlobalTypes:e0,useGlobals:t0,useParameter:r0,useSharedState:n0,useStoryPrepared:o0,useStorybookApi:i0,useStorybookState:a0}=__STORYBOOK_API__});var p0,d0,h0,f0,m0,g0,y0,v0,b0,x0,w0,T0,E0,S0,P0,O0,C0,A0,R0,I0,k0,M0,D0,L0,j0,N0,V0,F0,B0,z0,_0,H0,U0,W0,q0,Y0,G0,X0,K0,Q0,J0,Rn,Z0,$0,ai,eb,si,tb,rb,nb,ob,ib,ab,sb,li,In=Ne(()=>{oe();ie();ae();p0=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:d0,ARGTYPES_INFO_RESPONSE:h0,CHANNEL_CREATED:f0,CHANNEL_WS_DISCONNECT:m0,CONFIG_ERROR:g0,CREATE_NEW_STORYFILE_REQUEST:y0,CREATE_NEW_STORYFILE_RESPONSE:v0,CURRENT_STORY_WAS_SET:b0,DOCS_PREPARED:x0,DOCS_RENDERED:w0,FILE_COMPONENT_SEARCH_REQUEST:T0,FILE_COMPONENT_SEARCH_RESPONSE:E0,FORCE_REMOUNT:S0,FORCE_RE_RENDER:P0,GLOBALS_UPDATED:O0,NAVIGATE_URL:C0,PLAY_FUNCTION_THREW_EXCEPTION:A0,PRELOAD_ENTRIES:R0,PREVIEW_BUILDER_PROGRESS:I0,PREVIEW_KEYDOWN:k0,REGISTER_SUBSCRIPTION:M0,REQUEST_WHATS_NEW_DATA:D0,RESET_STORY_ARGS:L0,RESULT_WHATS_NEW_DATA:j0,SAVE_STORY_REQUEST:N0,SAVE_STORY_RESPONSE:V0,SELECT_STORY:F0,SET_CONFIG:B0,SET_CURRENT_STORY:z0,SET_GLOBALS:_0,SET_INDEX:H0,SET_STORIES:U0,SET_WHATS_NEW_CACHE:W0,SHARED_STATE_CHANGED:q0,SHARED_STATE_SET:Y0,STORIES_COLLAPSE_ALL:G0,STORIES_EXPAND_ALL:X0,STORY_ARGS_UPDATED:K0,STORY_CHANGED:Q0,STORY_ERRORED:J0,STORY_INDEX_INVALIDATED:Rn,STORY_MISSING:Z0,STORY_PREPARED:$0,STORY_RENDERED:ai,STORY_RENDER_PHASE_CHANGED:eb,STORY_SPECIFIED:si,STORY_THREW_EXCEPTION:tb,STORY_UNCHANGED:rb,TELEMETRY_ERROR:nb,TOGGLE_WHATS_NEW_NOTIFICATIONS:ob,UNHANDLED_ERRORS_WHILE_PLAYING:ib,UPDATE_GLOBALS:ab,UPDATE_QUERY_PARAMS:sb,UPDATE_STORY_ARGS:li}=__STORYBOOK_CORE_EVENTS__});var db,hb,fb,mb,kn,gb,yb,ui,vb,bb,xb,wb,Tb,Eb,ci,Sb,Pb,Ob,bt,Cb,U,pi,Ab,Mn,Rb,di=Ne(()=>{oe();ie();ae();db=__STORYBOOK_THEMING__,{CacheProvider:hb,ClassNames:fb,Global:mb,ThemeProvider:kn,background:gb,color:yb,convert:ui,create:vb,createCache:bb,createGlobal:xb,createReset:wb,css:Tb,darken:Eb,ensure:ci,ignoreSsrWarning:Sb,isPropValid:Pb,jsx:Ob,keyframes:bt,lighten:Cb,styled:U,themes:pi,typography:Ab,useTheme:Mn,withTheme:Rb}=__STORYBOOK_THEMING__});var hi=Tu((Jt,Dn)=>{oe();ie();ae();(function(e,t){typeof Jt=="object"&&typeof Dn=="object"?Dn.exports=t((It(),ni(Lr))):typeof define=="function"&&define.amd?define(["react"],t):typeof Jt=="object"?Jt.ReactConfetti=t((It(),ni(Lr))):e.ReactConfetti=t(e.React)})(typeof self<"u"?self:Jt,function(e){return function(t){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(i,o,a){n.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:a})},n.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n.t=function(i,o){if(1&o&&(i=n(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)n.d(a,s,(function(u){return i[u]}).bind(null,s));return a},n.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},n.p="",n(n.s=2)}([function(t,r){t.exports=e},function(t,r,n){"use strict";var i={linear:function(o,a,s,u){return(s-a)*o/u+a},easeInQuad:function(o,a,s,u){return(s-a)*(o/=u)*o+a},easeOutQuad:function(o,a,s,u){return-(s-a)*(o/=u)*(o-2)+a},easeInOutQuad:function(o,a,s,u){var l=s-a;return(o/=u/2)<1?l/2*o*o+a:-l/2*(--o*(o-2)-1)+a},easeInCubic:function(o,a,s,u){return(s-a)*(o/=u)*o*o+a},easeOutCubic:function(o,a,s,u){return(s-a)*((o=o/u-1)*o*o+1)+a},easeInOutCubic:function(o,a,s,u){var l=s-a;return(o/=u/2)<1?l/2*o*o*o+a:l/2*((o-=2)*o*o+2)+a},easeInQuart:function(o,a,s,u){return(s-a)*(o/=u)*o*o*o+a},easeOutQuart:function(o,a,s,u){return-(s-a)*((o=o/u-1)*o*o*o-1)+a},easeInOutQuart:function(o,a,s,u){var l=s-a;return(o/=u/2)<1?l/2*o*o*o*o+a:-l/2*((o-=2)*o*o*o-2)+a},easeInQuint:function(o,a,s,u){return(s-a)*(o/=u)*o*o*o*o+a},easeOutQuint:function(o,a,s,u){return(s-a)*((o=o/u-1)*o*o*o*o+1)+a},easeInOutQuint:function(o,a,s,u){var l=s-a;return(o/=u/2)<1?l/2*o*o*o*o*o+a:l/2*((o-=2)*o*o*o*o+2)+a},easeInSine:function(o,a,s,u){var l=s-a;return-l*Math.cos(o/u*(Math.PI/2))+l+a},easeOutSine:function(o,a,s,u){return(s-a)*Math.sin(o/u*(Math.PI/2))+a},easeInOutSine:function(o,a,s,u){return-(s-a)/2*(Math.cos(Math.PI*o/u)-1)+a},easeInExpo:function(o,a,s,u){return o==0?a:(s-a)*Math.pow(2,10*(o/u-1))+a},easeOutExpo:function(o,a,s,u){var l=s-a;return o==u?a+l:l*(1-Math.pow(2,-10*o/u))+a},easeInOutExpo:function(o,a,s,u){var l=s-a;return o===0?a:o===u?a+l:(o/=u/2)<1?l/2*Math.pow(2,10*(o-1))+a:l/2*(2-Math.pow(2,-10*--o))+a},easeInCirc:function(o,a,s,u){return-(s-a)*(Math.sqrt(1-(o/=u)*o)-1)+a},easeOutCirc:function(o,a,s,u){return(s-a)*Math.sqrt(1-(o=o/u-1)*o)+a},easeInOutCirc:function(o,a,s,u){var l=s-a;return(o/=u/2)<1?-l/2*(Math.sqrt(1-o*o)-1)+a:l/2*(Math.sqrt(1-(o-=2)*o)+1)+a},easeInElastic:function(o,a,s,u){var l,c,p,d=s-a;return p=1.70158,o===0?a:(o/=u)==1?a+d:((c=0)||(c=.3*u),(l=d)=1&&this.rotationDirection===o.Positive?this.rotationDirection=o.Negative:this.rotateY<=-1&&this.rotationDirection===o.Negative&&(this.rotationDirection=o.Positive);var pe=.1*this.rotationDirection;if(this.rotateY+=pe,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=G,this.context.lineCap="round",this.context.lineWidth=2,K&&typeof K=="function")K.call(this,this.context);else switch(this.shape){case i.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case i.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case i.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&p(w.prototype,E),T&&p(w,T),g}();function f(g,w,E){return w in g?Object.defineProperty(g,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):g[w]=E,g}var v=function g(w,E){var T=this;(function(k,R){if(!(k instanceof R))throw new TypeError("Cannot call a class as a function")})(this,g),f(this,"canvas",void 0),f(this,"context",void 0),f(this,"getOptions",void 0),f(this,"x",0),f(this,"y",0),f(this,"w",0),f(this,"h",0),f(this,"lastNumberOfPieces",0),f(this,"tweenInitTime",Date.now()),f(this,"particles",[]),f(this,"particlesGenerated",0),f(this,"removeParticleAt",function(k){T.particles.splice(k,1)}),f(this,"getParticle",function(){var k=c(T.x,T.w+T.x),R=c(T.y,T.h+T.y);return new h(T.context,T.getOptions,k,R)}),f(this,"animate",function(){var k=T.canvas,R=T.context,C=T.particlesGenerated,G=T.lastNumberOfPieces,K=T.getOptions(),pe=K.run,rt=K.recycle,Se=K.numberOfPieces,At=K.debug,bn=K.tweenFunction,Yt=K.tweenDuration;if(!pe)return!1;var xn=T.particles.length,Gt=rt?xn:C,wn=Date.now();if(GtYt?Yt:Math.max(0,wn-Jo),Gt,Se,Yt),Zo=Math.round(gu-Gt),$o=0;$ok.height||Xt.y<-100||Xt.x>k.width+100||Xt.x<-100)&&(rt&&Gt<=Se?T.particles[ei]=T.getParticle():T.removeParticleAt(ei))}),xn>0||Gt0&&pe.call(R,R),R._options.run=!1)}),y(this,"reset",function(){R.generator&&R.generator.particlesGenerated>0&&(R.generator.particlesGenerated=0,R.generator.particles=[],R.generator.lastNumberOfPieces=0)}),y(this,"stop",function(){R.options={run:!1},R.rafId&&(cancelAnimationFrame(R.rafId),R.rafId=void 0)}),this.canvas=M;var C=this.canvas.getContext("2d");if(!C)throw new Error("Could not get canvas context");this.context=C,this.generator=new v(this.canvas,function(){return R.options}),this.options=k,this.update()}var w,E,T;return w=g,(E=[{key:"options",get:function(){return this._options},set:function(M){var k=this._options&&this._options.run,R=this._options&&this._options.recycle;this.setOptionsWithDefaults(M),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof M.recycle=="boolean"&&M.recycle&&R===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof M.run=="boolean"&&M.run&&k===!1&&this.update()}}])&&b(w.prototype,E),T&&b(w,T),g}();function W(g){return function(w){if(Array.isArray(w))return ye(w)}(g)||function(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}(g)||Te(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(g){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function z(){return(z=Object.assign||function(g){for(var w=1;w"u"||!(Symbol.iterator in Object(E)))){var M=[],k=!0,R=!1,C=void 0;try{for(var G,K=E[Symbol.iterator]();!(k=(G=K.next()).done)&&(M.push(G.value),!T||M.length!==T);k=!0);}catch(pe){R=!0,C=pe}finally{try{k||K.return==null||K.return()}finally{if(R)throw C}}return M}}(g,w)||Te(g,w)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Te(g,w){if(g){if(typeof g=="string")return ye(g,w);var E=Object.prototype.toString.call(g).slice(8,-1);return E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set"?Array.from(g):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?ye(g,w):void 0}}function ye(g,w){(w==null||w>g.length)&&(w=g.length);for(var E=0,T=new Array(w);E"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}}();return function(){var E,T=_e(g);if(w){var M=_e(this).constructor;E=Reflect.construct(T,arguments,M)}else E=T.apply(this,arguments);return ge(this,E)}}function ge(g,w){return!w||B(w)!=="object"&&typeof w!="function"?Ee(g):w}function Ee(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function _e(g){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}function Z(g,w,E){return w in g?Object.defineProperty(g,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):g[w]=E,g}var A=s.a.createRef(),D=function(g){(function(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),C&&me(R,C)})(k,g);var w,E,T,M=ke(k);function k(R){var C;ue(this,k);for(var G=arguments.length,K=new Array(G>1?G-1:0),pe=1;pe{oe();ie();ae();Vb=__STORYBOOK_COMPONENTS__,{A:Fb,ActionBar:Bb,AddonPanel:zb,Badge:_b,Bar:Hb,Blockquote:Ub,Button:Wb,ClipboardCode:qb,Code:Yb,DL:Gb,Div:Xb,DocumentWrapper:Kb,EmptyTabContent:Qb,ErrorFormatter:Jb,FlexBar:Zb,Form:$b,H1:e1,H2:t1,H3:r1,H4:n1,H5:o1,H6:i1,HR:a1,IconButton:s1,IconButtonSkeleton:l1,Icons:u1,Img:c1,LI:p1,Link:d1,ListItem:h1,Loader:f1,Modal:kt,OL:m1,P:g1,Placeholder:y1,Pre:v1,ResetWrapper:b1,ScrollArea:x1,Separator:w1,Spaced:T1,Span:E1,StorybookIcon:S1,StorybookLogo:P1,Symbols:O1,SyntaxHighlighter:Zt,TT:C1,TabBar:A1,TabButton:R1,TabWrapper:I1,Table:k1,Tabs:M1,TabsState:D1,TooltipLinkList:L1,TooltipMessage:j1,TooltipNote:N1,UL:V1,WithTooltip:F1,WithTooltipPure:B1,Zoom:z1,codeCommon:_1,components:H1,createCopyToClipboardFunction:U1,getStoryHref:W1,icons:q1,interleaveSeparators:Y1,nameSpaceClassNames:G1,resetComponents:X1,withReset:K1}=__STORYBOOK_COMPONENTS__});var ex,tx,rx,nx,ox,ix,ax,sx,lx,ux,cx,px,mi,dx,hx,fx,mx,gx,yx,vx,bx,xx,wx,Tx,Ex,Sx,Px,Ox,gi,Cx,Ax,Rx,Ix,kx,Mx,Dx,Lx,jx,Nx,Vx,Fx,Bx,zx,yi,_x,Hx,Ux,Wx,qx,Yx,Gx,Xx,Kx,Qx,Jx,Zx,$x,ew,tw,rw,nw,ow,iw,aw,sw,lw,uw,cw,pw,dw,hw,fw,mw,gw,yw,vi,vw,bw,xw,ww,Tw,Ew,Sw,Pw,Ow,Cw,Aw,Rw,Iw,kw,Mw,Dw,Lw,jw,Nw,Vw,Fw,Bw,zw,_w,Hw,Uw,Ww,qw,Yw,Gw,Xw,Kw,Qw,Jw,Zw,$w,eT,tT,rT,nT,oT,iT,aT,sT,lT,uT,cT,pT,dT,hT,fT,mT,gT,yT,vT,bT,xT,wT,TT,ET,ST,PT,OT,CT,AT,RT,IT,kT,MT,DT,LT,jT,NT,VT,FT,BT,zT,_T,HT,UT,WT,qT,YT,GT,XT,KT,QT,JT,ZT,$T,eE,tE,rE,nE,oE,iE,aE,sE,lE,uE,cE,pE,dE,hE,fE,mE,gE,yE,vE,bE,xE,wE,TE,EE,SE,PE,OE,CE,AE,RE,IE,kE,ME,DE,LE,jE,NE,VE,FE,BE,zE,_E,HE,UE,WE,qE,YE,GE,XE,KE,QE,JE,ZE,$E,eS,tS,rS,nS,oS,iS,aS,sS,lS,bi=Ne(()=>{oe();ie();ae();ex=__STORYBOOK_ICONS__,{AccessibilityAltIcon:tx,AccessibilityIcon:rx,AddIcon:nx,AdminIcon:ox,AlertAltIcon:ix,AlertIcon:ax,AlignLeftIcon:sx,AlignRightIcon:lx,AppleIcon:ux,ArrowDownIcon:cx,ArrowLeftIcon:px,ArrowRightIcon:mi,ArrowSolidDownIcon:dx,ArrowSolidLeftIcon:hx,ArrowSolidRightIcon:fx,ArrowSolidUpIcon:mx,ArrowUpIcon:gx,AzureDevOpsIcon:yx,BackIcon:vx,BasketIcon:bx,BatchAcceptIcon:xx,BatchDenyIcon:wx,BeakerIcon:Tx,BellIcon:Ex,BitbucketIcon:Sx,BoldIcon:Px,BookIcon:Ox,BookmarkHollowIcon:gi,BookmarkIcon:Cx,BottomBarIcon:Ax,BottomBarToggleIcon:Rx,BoxIcon:Ix,BranchIcon:kx,BrowserIcon:Mx,ButtonIcon:Dx,CPUIcon:Lx,CalendarIcon:jx,CameraIcon:Nx,CategoryIcon:Vx,CertificateIcon:Fx,ChangedIcon:Bx,ChatIcon:zx,CheckIcon:yi,ChevronDownIcon:_x,ChevronLeftIcon:Hx,ChevronRightIcon:Ux,ChevronSmallDownIcon:Wx,ChevronSmallLeftIcon:qx,ChevronSmallRightIcon:Yx,ChevronSmallUpIcon:Gx,ChevronUpIcon:Xx,ChromaticIcon:Kx,ChromeIcon:Qx,CircleHollowIcon:Jx,CircleIcon:Zx,ClearIcon:$x,CloseAltIcon:ew,CloseIcon:tw,CloudHollowIcon:rw,CloudIcon:nw,CogIcon:ow,CollapseIcon:iw,CommandIcon:aw,CommentAddIcon:sw,CommentIcon:lw,CommentsIcon:uw,CommitIcon:cw,CompassIcon:pw,ComponentDrivenIcon:dw,ComponentIcon:hw,ContrastIcon:fw,ControlsIcon:mw,CopyIcon:gw,CreditIcon:yw,CrossIcon:vi,DashboardIcon:vw,DatabaseIcon:bw,DeleteIcon:xw,DiamondIcon:ww,DirectionIcon:Tw,DiscordIcon:Ew,DocChartIcon:Sw,DocListIcon:Pw,DocumentIcon:Ow,DownloadIcon:Cw,DragIcon:Aw,EditIcon:Rw,EllipsisIcon:Iw,EmailIcon:kw,ExpandAltIcon:Mw,ExpandIcon:Dw,EyeCloseIcon:Lw,EyeIcon:jw,FaceHappyIcon:Nw,FaceNeutralIcon:Vw,FaceSadIcon:Fw,FacebookIcon:Bw,FailedIcon:zw,FastForwardIcon:_w,FigmaIcon:Hw,FilterIcon:Uw,FlagIcon:Ww,FolderIcon:qw,FormIcon:Yw,GDriveIcon:Gw,GithubIcon:Xw,GitlabIcon:Kw,GlobeIcon:Qw,GoogleIcon:Jw,GraphBarIcon:Zw,GraphLineIcon:$w,GraphqlIcon:eT,GridAltIcon:tT,GridIcon:rT,GrowIcon:nT,HeartHollowIcon:oT,HeartIcon:iT,HomeIcon:aT,HourglassIcon:sT,InfoIcon:lT,ItalicIcon:uT,JumpToIcon:cT,KeyIcon:pT,LightningIcon:dT,LightningOffIcon:hT,LinkBrokenIcon:fT,LinkIcon:mT,LinkedinIcon:gT,LinuxIcon:yT,ListOrderedIcon:vT,ListUnorderedIcon:bT,LocationIcon:xT,LockIcon:wT,MarkdownIcon:TT,MarkupIcon:ET,MediumIcon:ST,MemoryIcon:PT,MenuIcon:OT,MergeIcon:CT,MirrorIcon:AT,MobileIcon:RT,MoonIcon:IT,NutIcon:kT,OutboxIcon:MT,OutlineIcon:DT,PaintBrushIcon:LT,PaperClipIcon:jT,ParagraphIcon:NT,PassedIcon:VT,PhoneIcon:FT,PhotoDragIcon:BT,PhotoIcon:zT,PinAltIcon:_T,PinIcon:HT,PlayBackIcon:UT,PlayIcon:WT,PlayNextIcon:qT,PlusIcon:YT,PointerDefaultIcon:GT,PointerHandIcon:XT,PowerIcon:KT,PrintIcon:QT,ProceedIcon:JT,ProfileIcon:ZT,PullRequestIcon:$T,QuestionIcon:eE,RSSIcon:tE,RedirectIcon:rE,ReduxIcon:nE,RefreshIcon:oE,ReplyIcon:iE,RepoIcon:aE,RequestChangeIcon:sE,RewindIcon:lE,RulerIcon:uE,SearchIcon:cE,ShareAltIcon:pE,ShareIcon:dE,ShieldIcon:hE,SideBySideIcon:fE,SidebarAltIcon:mE,SidebarAltToggleIcon:gE,SidebarIcon:yE,SidebarToggleIcon:vE,SpeakerIcon:bE,StackedIcon:xE,StarHollowIcon:wE,StarIcon:TE,StickerIcon:EE,StopAltIcon:SE,StopIcon:PE,StorybookIcon:OE,StructureIcon:CE,SubtractIcon:AE,SunIcon:RE,SupportIcon:IE,SwitchAltIcon:kE,SyncIcon:ME,TabletIcon:DE,ThumbsUpIcon:LE,TimeIcon:jE,TimerIcon:NE,TransferIcon:VE,TrashIcon:FE,TwitterIcon:BE,TypeIcon:zE,UbuntuIcon:_E,UndoIcon:HE,UnfoldIcon:UE,UnlockIcon:WE,UnpinIcon:qE,UploadIcon:YE,UserAddIcon:GE,UserAltIcon:XE,UserIcon:KE,UsersIcon:QE,VSCodeIcon:JE,VerifiedIcon:ZE,VideoIcon:$E,WandIcon:eS,WatchIcon:tS,WindowsIcon:rS,WrenchIcon:nS,YoutubeIcon:oS,ZoomIcon:iS,ZoomOutIcon:aS,ZoomResetIcon:sS,iconList:lS}=__STORYBOOK_ICONS__});var fu={};ti(fu,{default:()=>iv});function nc(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function fs(e){return t=>typeof t===e}function uc(e,t){let{length:r}=e;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!Oe(e[n],t[n]))return!1;return!0}function cc(e,t){if(e.byteLength!==t.byteLength)return!1;let r=new DataView(e.buffer),n=new DataView(t.buffer),i=e.byteLength;for(;i--;)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function pc(e,t){if(e.size!==t.size)return!1;for(let r of e.entries())if(!t.has(r[0]))return!1;for(let r of e.entries())if(!Oe(r[1],t.get(r[0])))return!1;return!0}function dc(e,t){if(e.size!==t.size)return!1;for(let r of e.entries())if(!t.has(r[0]))return!1;return!0}function Oe(e,t){if(e===t)return!0;if(e&&Ei(e)&&t&&Ei(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return uc(e,t);if(e instanceof Map&&t instanceof Map)return pc(e,t);if(e instanceof Set&&t instanceof Set)return dc(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return cc(e,t);if(Ti(e)&&Ti(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=r.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[i]))return!1;for(let i=r.length;i--!==0;){let o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!Oe(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function un(e){let t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(mc(t))return t}function Be(e){return t=>un(t)===e}function mc(e){return hc.includes(e)}function _t(e){return t=>typeof t===e}function gc(e){return fc.includes(e)}function L(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return L.array(e)?"Array":L.plainFunction(e)?"Function":un(e)||"Object"}function vc(...e){return e.every(t=>N.string(t)||N.array(t)||N.plainObject(t))}function bc(e,t,r){return ms(e,t)?[e,t].every(N.array)?!e.some(Ai(r))&&t.some(Ai(r)):[e,t].every(N.plainObject)?!Object.entries(e).some(Ci(r))&&Object.entries(t).some(Ci(r)):t===r:!1}function Si(e,t,r){let{actual:n,key:i,previous:o,type:a}=r,s=Ye(e,i),u=Ye(t,i),l=[s,u].every(N.number)&&(a==="increased"?su);return N.undefined(n)||(l=l&&u===n),N.undefined(o)||(l=l&&s===o),l}function Pi(e,t,r){let{key:n,type:i,value:o}=r,a=Ye(e,n),s=Ye(t,n),u=i==="added"?a:s,l=i==="added"?s:a;if(!N.nullOrUndefined(o)){if(N.defined(u)){if(N.array(u)||N.plainObject(u))return bc(u,l,o)}else return Oe(l,o);return!1}return[a,s].every(N.array)?!l.every(bo(u)):[a,s].every(N.plainObject)?xc(Object.keys(u),Object.keys(l)):![a,s].every(c=>N.primitive(c)&&N.defined(c))&&(i==="added"?!N.defined(a)&&N.defined(s):N.defined(a)&&!N.defined(s))}function Oi(e,t,{key:r}={}){let n=Ye(e,r),i=Ye(t,r);if(!ms(n,i))throw new TypeError("Inputs have different types");if(!vc(n,i))throw new TypeError("Inputs don't have length");return[n,i].every(N.plainObject)&&(n=Object.keys(n),i=Object.keys(i)),[n,i]}function Ci(e){return([t,r])=>N.array(e)?Oe(e,r)||e.some(n=>Oe(n,r)||N.array(r)&&bo(r)(n)):N.plainObject(e)&&e[t]?!!e[t]&&Oe(e[t],r):Oe(e,r)}function xc(e,t){return t.some(r=>!e.includes(r))}function Ai(e){return t=>N.array(e)?e.some(r=>Oe(r,t)||N.array(t)&&bo(t)(r)):Oe(e,t)}function $t(e,t){return N.array(e)?e.some(r=>Oe(r,t)):Oe(e,t)}function bo(e){return t=>e.some(r=>Oe(r,t))}function ms(...e){return e.every(N.array)||e.every(N.number)||e.every(N.plainObject)||e.every(N.string)}function Ye(e,t){return N.plainObject(e)||N.array(e)?N.string(t)?t.split(".").reduce((r,n)=>r&&r[n],e):N.number(t)?e[t]:e:e}function Xr(e,t){if([e,t].some(N.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(r=>N.plainObject(r)||N.array(r)))throw new Error("Expected plain objects or array");return{added:(r,n)=>{try{return Pi(e,t,{key:r,type:"added",value:n})}catch{return!1}},changed:(r,n,i)=>{try{let o=Ye(e,r),a=Ye(t,r),s=N.defined(n),u=N.defined(i);if(s||u){let l=u?$t(i,o):!$t(n,o),c=$t(n,a);return l&&c}return[o,a].every(N.array)||[o,a].every(N.plainObject)?!Oe(o,a):o!==a}catch{return!1}},changedFrom:(r,n,i)=>{if(!N.defined(r))return!1;try{let o=Ye(e,r),a=Ye(t,r),s=N.defined(i);return $t(n,o)&&(s?$t(i,a):!s)}catch{return!1}},decreased:(r,n,i)=>{if(!N.defined(r))return!1;try{return Si(e,t,{key:r,actual:n,previous:i,type:"decreased"})}catch{return!1}},emptied:r=>{try{let[n,i]=Oi(e,t,{key:r});return!!n.length&&!i.length}catch{return!1}},filled:r=>{try{let[n,i]=Oi(e,t,{key:r});return!n.length&&!!i.length}catch{return!1}},increased:(r,n,i)=>{if(!N.defined(r))return!1;try{return Si(e,t,{key:r,actual:n,previous:i,type:"increased"})}catch{return!1}},removed:(r,n)=>{try{return Pi(e,t,{key:r,type:"removed",value:n})}catch{return!1}}}}function Tc(e){return Object.keys(e)}function ys(e,...t){if(!N.plainObject(e))throw new TypeError("Expected an object");let r={};for(let n in e)({}).hasOwnProperty.call(e,n)&&(t.includes(n)||(r[n]=e[n]));return r}function Ec(e,...t){if(!N.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;let r={};for(let n in e)({}).hasOwnProperty.call(e,n)&&t.includes(n)&&(r[n]=e[n]);return r}function Pc(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Oc(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Sc))}}function vs(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ot(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function xo(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function vr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ot(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:vr(xo(e))}function bs(e){return e&&e.referenceNode?e.referenceNode:e}function Ht(e){return e===11?Ri:e===10?Ii:Ri||Ii}function Nt(e){if(!e)return document.documentElement;for(var t=Ht(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Ot(r,"position")==="static"?Nt(r):r}function Rc(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Nt(e.firstElementChild)===e}function Jn(e){return e.parentNode!==null?Jn(e.parentNode):e}function Kr(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,o=document.createRange();o.setStart(n,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||n.contains(i))return Rc(a)?a:Nt(a);var s=Jn(e);return s.host?Kr(s.host,t):Kr(e,Jn(t).host)}function Vt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[r]}return e[r]}function Ic(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Vt(t,"top"),i=Vt(t,"left"),o=r?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=i*o,e.right+=i*o,e}function ki(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function Mi(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Ht(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function xs(e){var t=e.body,r=e.documentElement,n=Ht(10)&&getComputedStyle(r);return{height:Mi("Height",t,r,n),width:Mi("Width",t,r,n)}}function pt(e){return je({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zn(e){var t={};try{if(Ht(10)){t=e.getBoundingClientRect();var r=Vt(e,"top"),n=Vt(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?xs(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,u=e.offsetWidth-a,l=e.offsetHeight-s;if(u||l){var c=Ot(e);u-=ki(c,"x"),l-=ki(c,"y"),i.width-=u,i.height-=l}return pt(i)}function wo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Ht(10),i=t.nodeName==="HTML",o=Zn(e),a=Zn(t),s=vr(e),u=Ot(t),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);r&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=pt({top:o.top-a.top-l,left:o.left-a.left-c,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!n&&i){var d=parseFloat(u.marginTop),h=parseFloat(u.marginLeft);p.top-=l-d,p.bottom-=l-d,p.left-=c-h,p.right-=c-h,p.marginTop=d,p.marginLeft=h}return(n&&!r?t.contains(s):t===s&&s.nodeName!=="BODY")&&(p=Ic(p,t)),p}function Dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=wo(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),o=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:Vt(r),s=t?0:Vt(r,"left"),u={top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:o};return pt(u)}function ws(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ot(e,"position")==="fixed")return!0;var r=xo(e);return r?ws(r):!1}function Ts(e){if(!e||!e.parentElement||Ht())return document.documentElement;for(var t=e.parentElement;t&&Ot(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function To(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?Ts(e):Kr(e,bs(t));if(n==="viewport")o=Dc(a,i);else{var s=void 0;n==="scrollParent"?(s=vr(xo(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):n==="window"?s=e.ownerDocument.documentElement:s=n;var u=wo(s,a,i);if(s.nodeName==="HTML"&&!ws(a)){var l=xs(e.ownerDocument),c=l.height,p=l.width;o.top+=u.top-u.marginTop,o.bottom=c+u.top,o.left+=u.left-u.marginLeft,o.right=p+u.left}else o=u}r=r||0;var d=typeof r=="number";return o.left+=d?r:r.left||0,o.top+=d?r:r.top||0,o.right-=d?r:r.right||0,o.bottom-=d?r:r.bottom||0,o}function Lc(e){var t=e.width,r=e.height;return t*r}function Es(e,t,r,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=To(r,n,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(d){return je({key:d},s[d],{area:Lc(s[d])})}).sort(function(d,h){return h.area-d.area}),l=u.filter(function(d){var h=d.width,f=d.height;return h>=r.clientWidth&&f>=r.clientHeight}),c=l.length>0?l[0].key:u[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function Ss(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?Ts(t):Kr(t,bs(r));return wo(r,i,n)}function Ps(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+n};return o}function Qr(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function Os(e,t,r){r=r.split("-")[0];var n=Ps(e),i={width:n.width,height:n.height},o=["right","left"].indexOf(r)!==-1,a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-n[u]/2,r===s?i[s]=t[s]-n[l]:i[s]=t[Qr(s)],i}function br(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function jc(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=br(e,function(i){return i[t]===r});return e.indexOf(n)}function Cs(e,t,r){var n=r===void 0?e:e.slice(0,jc(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&vs(o)&&(t.offsets.popper=pt(t.offsets.popper),t.offsets.reference=pt(t.offsets.reference),t=o(t,i))}),t}function Nc(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ss(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Es(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Os(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Cs(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function As(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function Eo(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;na[h]&&(e.offsets.popper[p]+=s[p]+f-a[h]),e.offsets.popper=pt(e.offsets.popper);var v=s[p]+s[l]/2-f/2,S=Ot(e.instance.popper),x=parseFloat(S["margin"+c]),b=parseFloat(S["border"+c+"Width"]),y=v-e.offsets.popper[p]-x-b;return y=Math.max(Math.min(a[l]-f,y),0),e.arrowElement=n,e.offsets.arrow=(r={},Ft(r,p,Math.round(y)),Ft(r,d,""),r),e}function Kc(e){return e==="end"?"start":e==="start"?"end":e}function Di(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=jn.indexOf(e),n=jn.slice(r+1).concat(jn.slice(0,r));return t?n.reverse():n}function Qc(e,t){if(As(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=To(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Qr(n),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Nn.FLIP:a=[n,i];break;case Nn.CLOCKWISE:a=Di(n);break;case Nn.COUNTERCLOCKWISE:a=Di(n,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(n!==s||a.length===u+1)return e;n=e.placement.split("-")[0],i=Qr(n);var l=e.offsets.popper,c=e.offsets.reference,p=Math.floor,d=n==="left"&&p(l.right)>p(c.left)||n==="right"&&p(l.left)p(c.top)||n==="bottom"&&p(l.top)p(r.right),v=p(l.top)p(r.bottom),x=n==="left"&&h||n==="right"&&f||n==="top"&&v||n==="bottom"&&S,b=["top","bottom"].indexOf(n)!==-1,y=!!t.flipVariations&&(b&&o==="start"&&h||b&&o==="end"&&f||!b&&o==="start"&&v||!b&&o==="end"&&S),P=!!t.flipVariationsByContent&&(b&&o==="start"&&f||b&&o==="end"&&h||!b&&o==="start"&&S||!b&&o==="end"&&v),O=y||P;(d||x||O)&&(e.flipped=!0,(d||x)&&(n=a[u+1]),O&&(o=Kc(o)),e.placement=n+(o?"-"+o:""),e.offsets.popper=je({},e.offsets.popper,Os(e.instance.popper,e.offsets.reference,e.placement)),e=Cs(e.instance.modifiers,e,"flip"))}),e}function Jc(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return r[s]o(n[s])&&(e.offsets.popper[u]=o(n[s])),e}function Zc(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=r;break;case"%":case"%r":default:s=n}var u=pt(s);return u[t]/100*o}else if(a==="vh"||a==="vw"){var l=void 0;return a==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}else return o}function $c(e,t,r,n){var i=[0,0],o=["right","left"].indexOf(n)!==-1,a=e.split(/(\+|\-)/).map(function(c){return c.trim()}),s=a.indexOf(br(a,function(c){return c.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=s!==-1?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map(function(c,p){var d=(p===1?!o:o)?"height":"width",h=!1;return c.reduce(function(f,v){return f[f.length-1]===""&&["+","-"].indexOf(v)!==-1?(f[f.length-1]=v,h=!0,f):h?(f[f.length-1]+=v,h=!1,f):f.concat(v)},[]).map(function(f){return Zc(f,d,t,r)})}),l.forEach(function(c,p){c.forEach(function(d,h){So(d)&&(i[p]+=d*(c[h-1]==="-"?-1:1))})}),i}function ep(e,t){var r=t.offset,n=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=n.split("-")[0],u=void 0;return So(+r)?u=[+r,0]:u=$c(r,o,a,s),s==="left"?(o.top+=u[0],o.left-=u[1]):s==="right"?(o.top+=u[0],o.left+=u[1]):s==="top"?(o.left+=u[0],o.top-=u[1]):s==="bottom"&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e}function tp(e,t){var r=t.boundariesElement||Nt(e.instance.popper);e.instance.reference===r&&(r=Nt(r));var n=Eo("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n];i.top="",i.left="",i[n]="";var u=To(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=o,i.left=a,i[n]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,p={primary:function(d){var h=c[d];return c[d]u[d]&&!t.escapeWithReference&&(f=Math.min(c[h],u[d]-(d==="right"?c.width:c.height))),Ft({},h,f)}};return l.forEach(function(d){var h=["left","top"].indexOf(d)!==-1?"primary":"secondary";c=je({},c,p[h](d))}),e.offsets.popper=c,e}function rp(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,o=i.reference,a=i.popper,s=["bottom","top"].indexOf(r)!==-1,u=s?"left":"top",l=s?"width":"height",c={start:Ft({},u,o[u]),end:Ft({},u,o[u]+o[l]-a[l])};e.offsets.popper=je({},a,c[n])}return e}function np(e){if(!ks(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=br(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottomr.right||t.top>r.bottom||t.rightu);return F.undefined(n)||(l=l&&u===n),F.undefined(o)||(l=l&&s===o),l}function Fi(e,t,r){var n=r.key,i=r.type,o=r.value,a=Ge(e,n),s=Ge(t,n),u=i==="added"?a:s,l=i==="added"?s:a;if(!F.nullOrUndefined(o)){if(F.defined(u)){if(F.array(u)||F.plainObject(u))return xp(u,l,o)}else return Ce(l,o);return!1}return[a,s].every(F.array)?!l.every(Po(u)):[a,s].every(F.plainObject)?wp(Object.keys(u),Object.keys(l)):![a,s].every(function(c){return F.primitive(c)&&F.defined(c)})&&(i==="added"?!F.defined(a)&&F.defined(s):F.defined(a)&&!F.defined(s))}function Bi(e,t,r){var n=r===void 0?{}:r,i=n.key,o=Ge(e,i),a=Ge(t,i);if(!Ls(o,a))throw new TypeError("Inputs have different types");if(!bp(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(F.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function zi(e){return function(t){var r=t[0],n=t[1];return F.array(e)?Ce(e,n)||e.some(function(i){return Ce(i,n)||F.array(n)&&Po(n)(i)}):F.plainObject(e)&&e[r]?!!e[r]&&Ce(e[r],n):Ce(e,n)}}function wp(e,t){return t.some(function(r){return!e.includes(r)})}function _i(e){return function(t){return F.array(e)?e.some(function(r){return Ce(r,t)||F.array(t)&&Po(t)(r)}):Ce(e,t)}}function er(e,t){return F.array(e)?e.some(function(r){return Ce(r,t)}):Ce(e,t)}function Po(e){return function(t){return e.some(function(r){return Ce(r,t)})}}function Ls(){for(var e=[],t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function js(e,t){if(e==null)return{};var r=Sp(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pp(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qe(e)}function Er(e){var t=Ep();return function(){var r=Jr(e),n;if(t){var i=Jr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Pp(this,n)}}function Op(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ns(e){var t=Op(e,"string");return typeof t=="symbol"?t:String(t)}function Ip(e,t,r,n){return typeof e=="boolean"?e:typeof e=="function"?e(t,r,n):e?!!e:!1}function kp(e,t){return Object.hasOwnProperty.call(e,t)}function Mp(e,t,r,n){return n?new Error(n):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}function Dp(e,t){if(typeof e!="function")throw new TypeError(Ap);if(t&&typeof t!="string")throw new TypeError(Rp)}function Wi(e,t,r){return Dp(e,r),function(n,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),u=3;u3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,n)}function jp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,n)}function Np(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){r(o),jp(e,t,i)},Lp(e,t,i,n)}function qi(){}function Bs(e){var t=e.handleClick,r=e.styles,n=r.color,i=r.height,o=r.width,a=js(r,Vp);return m.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},m.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},m.createElement("g",null,m.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}function zs(e){var t=e.content,r=e.footer,n=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,s=e.title,u=e.styles,l={content:m.isValidElement(t)?t:m.createElement("div",{className:"__floater__content",style:u.content},t)};return s&&(l.title=m.isValidElement(s)?s:m.createElement("div",{className:"__floater__title",style:u.title},s)),r&&(l.footer=m.isValidElement(r)?r:m.createElement("div",{className:"__floater__footer",style:u.footer},r)),(a||o)&&!F.boolean(i)&&(l.close=m.createElement(Bs,{styles:u.close,handleClick:n})),m.createElement("div",{className:"__floater__container",style:u.container},l.close,l.title,l.content,l.footer)}function Bp(e){var t=(0,eo.default)(Fp,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}function st(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Us(e){return e?e.getBoundingClientRect():null}function qp(){let{body:e,documentElement:t}=document;return!e||!t?0:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}function ut(e){return typeof e=="string"?document.querySelector(e):e}function Yp(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function dn(e,t,r){if(!e)return Et();let n=(0,gs.default)(e);if(n){if(n.isSameNode(Et()))return r?document:Et();if(!(n.scrollHeight>n.offsetHeight)&&!t)return n.style.overflow="initial",Et()}return n}function Sr(e,t){if(!e)return!1;let r=dn(e,t);return r?!r.isSameNode(Et()):!1}function Gp(e){return e.offsetParent!==document.body}function hr(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;let{nodeName:r}=e,n=Yp(e);return r==="BODY"||r==="HTML"?!1:n&&n.position===t?!0:e.parentNode?hr(e.parentNode,t):!1}function Xp(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){let{display:n,visibility:i}=getComputedStyle(r);if(n==="none"||i==="hidden")return!1}r=(t=r.parentElement)!=null?t:null}return!0}function Kp(e,t,r){var n;let i=Us(e),o=dn(e,r),a=Sr(e,r),s=0,u=(n=i?.top)!=null?n:0;return o instanceof HTMLElement&&(s=o.scrollTop,!a&&!hr(e)&&(u+=s),o.isSameNode(Et())||(u+=Et().scrollTop)),Math.floor(u-t)}function Qp(e,t,r){var n;if(!e)return 0;let{offsetTop:i=0,scrollTop:o=0}=(n=(0,gs.default)(e))!=null?n:{},a=e.getBoundingClientRect().top+o;i&&(Sr(e,r)||Gp(e))&&(a-=i);let s=Math.floor(a-t);return s<0?0:s}function Et(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Jp(e,t){let{duration:r,element:n}=t;return new Promise((i,o)=>{let{scrollTop:a}=n,s=e>a?e-a:a-e;wc.default.top(n,e,{duration:s<100?50:r},u=>u&&u.message!=="Element already at target scroll position"?o(u):i())})}function Ws(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function lt(e){let t=[],r=n=>{if(typeof n=="string"||typeof n=="number")t.push(n);else if(Array.isArray(n))n.forEach(i=>r(i));else if(Sn(n)){let{children:i}=n.props;Array.isArray(i)?i.forEach(o=>r(o)):r(i)}};return r(e),t.join(" ").trim()}function Zp(e,t){return!N.plainObject(e)||!N.array(t)?!1:Object.keys(e).every(r=>t.includes(r))}function $p(e){let t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(i,o,a,s)=>o+o+a+a+s+s),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Yi(e){return e.disableBeacon||e.placement==="center"}function Gi(){return!["chrome","safari","firefox","opera"].includes(Ws())}function dt({data:e,debug:t=!1,title:r,warn:n=!1}){let i=n?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{N.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function ed(e){let{isFirstStep:t,lifecycle:r,previousLifecycle:n,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||r===X.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!hr(a))&&n!==r&&[X.BEACON,X.TOOLTIP].includes(r)}function id(e,t){var r,n,i,o;let{floaterProps:a,styles:s}=e,u=(0,Ln.default)(s??{},(r=t?.styles)!=null?r:{}),l=(0,Ln.default)(od,u.options||{}),{width:c}=l;window.innerWidth>480&&(c=380),"width"in l&&(c=typeof l.width=="number"&&window.innerWidthYs(r,t)):(dt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}function ld(e){return new sd(e)}function pd({styles:e}){return J("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}function md({styles:e,...t}){let{color:r,height:n,width:i,...o}=e;return m.createElement("button",{style:o,type:"button",...t},m.createElement("svg",{height:typeof n=="number"?`${n}px`:n,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",null,m.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}function yd(e){let{backProps:t,closeProps:r,continuous:n,index:i,isLastStep:o,primaryProps:a,size:s,skipProps:u,step:l,tooltipProps:c}=e,{content:p,hideBackButton:d,hideCloseButton:h,hideFooter:f,locale:v,showProgress:S,showSkipButton:x,styles:b,title:y}=l,{back:P,close:O,last:W,next:B,skip:z}=v,H={primary:O};return n&&(H.primary=o?W:B,S&&(H.primary=J("span",null,H.primary," (",i+1,"/",s,")"))),x&&!o&&(H.skip=J("button",{"aria-live":"off","data-test-id":"button-skip",style:b.buttonSkip,type:"button",...u},z)),!d&&i>0&&(H.back=J("button",{"data-test-id":"button-back",style:b.buttonBack,type:"button",...t},P)),H.close=!h&&J(gd,{"data-test-id":"button-close",styles:b.buttonClose,...r}),J("div",{key:"JoyrideTooltip","aria-label":lt(y)||lt(p),className:"react-joyride__tooltip",style:b.tooltip,...c},J("div",{style:b.tooltipContainer},y&&J("h1",{"aria-label":lt(y),style:b.tooltipTitle},y),J("div",{style:b.tooltipContent},p)),!f&&J("div",{style:b.tooltipFooter},J("div",{style:b.tooltipFooterSpacer},H.skip),H.back,J("button",{"data-test-id":"button-primary",style:b.buttonNext,type:"button",...a},H.primary)),H.close)}function Td({targetSelector:e}){return de(()=>{let t=document.querySelector(e);if(t){t.style.animation="pulsate 3s infinite",t.style.transformOrigin="center",t.style.animationTimingFunction="ease-in-out";let r=` + @keyframes pulsate { + 0% { + box-shadow: 0 0 0 0 rgba(2, 156, 253, 0.7), 0 0 0 0 rgba(2, 156, 253, 0.4); + } + 50% { + box-shadow: 0 0 0 20px rgba(2, 156, 253, 0), 0 0 0 40px rgba(2, 156, 253, 0); + } + 100% { + box-shadow: 0 0 0 0 rgba(2, 156, 253, 0), 0 0 0 0 rgba(2, 156, 253, 0); + } + } + `,n=document.createElement("style");n.id="sb-onboarding-pulsating-effect",n.innerHTML=r,document.head.appendChild(n)}return()=>{let r=document.querySelector("#sb-onboarding-pulsating-effect");r&&r.remove(),t&&(t.style.animation="auto")}},[e]),null}function Ks({top:e=0,left:t=0,width:r=window.innerWidth,height:n=window.innerHeight,colors:i=["#CA90FF","#FC521F","#66BF3C","#FF4785","#FFAE00","#1EA7FD"],...o}){let[a]=Pe(()=>{let s=document.createElement("div");return s.setAttribute("id","confetti-container"),s.setAttribute("style","position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999;"),s});return de(()=>(document.body.appendChild(a),()=>{document.body.removeChild(a)}),[]),Kt(m.createElement(Ed,{top:e,left:t,width:r,height:n},m.createElement(is.default,{colors:i,drawShape:Pd,...o})),a)}function Sd(e,t){return Math.floor(Math.random()*(t-e))+e}function Pd(e){switch(this.shape=this.shape||Sd(1,6),this.shape){case 2:{let t=this.w/2,r=this.h/2;e.moveTo(-t+2,-r),e.lineTo(t-2,-r),e.arcTo(t,-r,t,-r+2,2),e.lineTo(t,r-2),e.arcTo(t,r,t-2,r,2),e.lineTo(-t+2,r),e.arcTo(-t,r,-t,r-2,2),e.lineTo(-t,-r+2),e.arcTo(-t,-r,-t+2,-r,2);break}case 3:{e.rect(-4,-4,8,16),e.rect(-12,-4,24,8);break}case 4:{e.rect(-4,-4,8,16),e.rect(-4,-4,24,8);break}case 1:{e.arc(0,0,this.radius,0,2*Math.PI);break}case 5:{e.moveTo(16,4),e.lineTo(4,24),e.lineTo(24,24);break}case 6:{e.arc(4,-4,4,-Math.PI/2,0),e.lineTo(4,0);break}}e.closePath(),e.fill()}function Gd({api:e,isFinalStep:t,onFirstTourDone:r,onLastTourDone:n,codeSnippets:i}){let[o,a]=Pe(),s=Mn();de(()=>{e.once(li,()=>{a(3)})},[]);let u=Ke(()=>document.querySelector("#root div[role=main]")||document.querySelector("#storybook-panel-root"),[]),l=t?[{target:"#example-button--warning",title:"Congratulations!",content:m.createElement(m.Fragment,null,"You just created your first story. Continue setting up your project to write stories for your own components."),placement:"right",disableOverlay:!0,disableBeacon:!0,floaterProps:{disableAnimation:!0},onNextButtonClick(){n()}}]:[{target:"#storybook-explorer-tree > div",title:"Storybook is built from stories",content:m.createElement(m.Fragment,null,"Storybook stories represent the key states of each of your components.",m.createElement("br",null),m.createElement("br",null),i?.filename&&m.createElement(m.Fragment,null,"We automatically added four stories for this Button component in this example file:",m.createElement("br",null),m.createElement(Wr,null,i.filename))),placement:"right",disableBeacon:!0,styles:{spotlight:{transform:"translateY(30px)"}},floaterProps:{disableAnimation:!0}},{target:"#storybook-preview-iframe",title:"Storybook previews are interactive",content:"Whenever you modify code or stories, Storybook automatically updates how it previews your components.",placement:"bottom",styles:{spotlight:{borderRadius:0}}},{target:u,title:"Interactive story playground",content:m.createElement(m.Fragment,null,"See how a story renders with different data and state without touching code.",m.createElement("br",null),m.createElement("br",null),"Try it out by pressing this button.",m.createElement(Td,{targetSelector:"#control-primary"})),placement:"right",spotlightClicks:!0,floaterProps:{target:"#control-primary",options:{preventOverflow:{boundariesElement:"window"}}},hideNextButton:!0},{target:"#control-primary",title:"Congratulations!",content:m.createElement(m.Fragment,null,"You learned how to control your stories interactively. Now let's explore how to write your first story.",m.createElement(Ks,{numberOfPieces:800,recycle:!1,tweenDuration:2e4})),placement:"right",floaterProps:{options:{preventOverflow:{boundariesElement:"window"}}},disableOverlay:!0}];return m.createElement(wd,{steps:l,continuous:!0,stepIndex:o,spotlightPadding:0,hideBackButton:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,callback:c=>{!t&&c.status===Q.FINISHED&&r()},floaterProps:{options:{offset:{offset:"0, 6"}},styles:{floater:{padding:0,paddingLeft:8,paddingTop:8,filter:s.base==="light"?"drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1))":"drop-shadow(#fff5 0px 0px 0.5px) drop-shadow(#fff5 0px 0px 0.5px)"}}},tooltipComponent:Md,styles:{overlay:{mixBlendMode:"unset",backgroundColor:"none"},spotlight:{backgroundColor:"none",border:`solid 2px ${s.color.secondary}`,boxShadow:"0px 0px 0px 9999px rgba(0,0,0,0.4)"},options:{zIndex:1e4,primaryColor:s.color.secondary,arrowColor:s.base==="dark"?"#292A2C":s.color.lightest}}})}function Xd(){return m.createElement("svg",{width:"32px",height:"40px",viewBox:"0 0 256 319",preserveAspectRatio:"xMidYMid"},m.createElement("defs",null,m.createElement("path",{d:"M9.87245893,293.324145 L0.0114611411,30.5732167 C-0.314208957,21.8955842 6.33948896,14.5413918 15.0063196,13.9997149 L238.494389,0.0317105427 C247.316188,-0.519651867 254.914637,6.18486163 255.466,15.0066607 C255.486773,15.339032 255.497167,15.6719708 255.497167,16.0049907 L255.497167,302.318596 C255.497167,311.157608 248.331732,318.323043 239.492719,318.323043 C239.253266,318.323043 239.013844,318.317669 238.774632,318.306926 L25.1475605,308.712253 C16.8276309,308.338578 10.1847994,301.646603 9.87245893,293.324145 L9.87245893,293.324145 Z",id:"path-1"})),m.createElement("g",null,m.createElement("mask",{id:"mask-2",fill:"white"},m.createElement("use",{xlinkHref:"#path-1"})),m.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#path-1"}),m.createElement("path",{d:"M188.665358,39.126973 L190.191903,2.41148534 L220.883535,0 L222.205755,37.8634126 C222.251771,39.1811466 221.22084,40.2866846 219.903106,40.3327009 C219.338869,40.3524045 218.785907,40.1715096 218.342409,39.8221376 L206.506729,30.4984116 L192.493574,41.1282444 C191.443077,41.9251106 189.945493,41.7195021 189.148627,40.6690048 C188.813185,40.2267976 188.6423,39.6815326 188.665358,39.126973 Z M149.413703,119.980309 C149.413703,126.206975 191.355678,123.222696 196.986019,118.848893 C196.986019,76.4467826 174.234041,54.1651411 132.57133,54.1651411 C90.9086182,54.1651411 67.5656805,76.7934542 67.5656805,110.735941 C67.5656805,169.85244 147.345341,170.983856 147.345341,203.229219 C147.345341,212.280549 142.913138,217.654777 133.162291,217.654777 C120.456641,217.654777 115.433477,211.165914 116.024438,189.103298 C116.024438,184.317101 67.5656805,182.824962 66.0882793,189.103298 C62.3262146,242.56887 95.6363019,257.990394 133.753251,257.990394 C170.688279,257.990394 199.645341,238.303123 199.645341,202.663511 C199.645341,139.304202 118.683759,141.001326 118.683759,109.604526 C118.683759,96.8760922 128.139127,95.178968 133.753251,95.178968 C139.662855,95.178968 150.300143,96.2205679 149.413703,119.980309 Z",fill:"#FFFFFF",fillRule:"nonzero",mask:"url(#mask-2)"})))}function ch(e){let{debounce:t,scroll:r,polyfill:n,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e,o=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[a,s]=Pe({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=vt({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,p=vt(!1);de(()=>(p.current=!0,()=>void(p.current=!1)));let[d,h,f]=Ke(()=>{let b=()=>{if(!u.current.element)return;let{left:y,top:P,width:O,height:W,bottom:B,right:z,x:H,y:te}=u.current.element.getBoundingClientRect(),ce={left:y,top:P,width:O,height:W,bottom:B,right:z,x:H,y:te};u.current.element instanceof HTMLElement&&i&&(ce.height=u.current.element.offsetHeight,ce.width=u.current.element.offsetWidth),Object.freeze(ce),p.current&&!fh(u.current.lastBounds,ce)&&s(u.current.lastBounds=ce)};return[b,c?(0,Ji.default)(b,c):b,l?(0,Ji.default)(b,l):b]},[s,i,l,c]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(b=>b.removeEventListener("scroll",f,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function S(){u.current.element&&(u.current.resizeObserver=new o(f),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(b=>b.addEventListener("scroll",f,{capture:!0,passive:!0})))}let x=b=>{!b||b===u.current.element||(v(),u.current.element=b,u.current.scrollContainers=Qs(b),S())};return dh(f,!!r),ph(h),de(()=>{v(),S()},[r,f,h]),de(()=>v,[]),[x,a,d]}function ph(e){de(()=>{let t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function dh(e,t){de(()=>{if(t){let r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t])}function Qs(e){let t=[];if(!e||e===document.body)return t;let{overflow:r,overflowX:n,overflowY:i}=window.getComputedStyle(e);return[r,n,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...Qs(e.parentElement)]}function yh(e){let t=new Zi,r=new Zi,n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{let p=c&&i,d=p?t:r;return l&&a.add(u),d.add(u)&&p&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l(l[c]=yh(()=>r=!0),l),{}),a=l=>{o[l].process(i)},s=()=>{let l=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(l-i.timestamp,vh),1),i.timestamp=l,i.isProcessing=!0,Br.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:Br.reduce((l,c)=>{let p=o[c];return l[c]=(d,h=!1,f=!1)=>(r||u(),p.schedule(d,h,f)),l},{}),cancel:l=>Br.forEach(c=>o[c].cancel(l)),state:i,steps:o}}function bh(e,t,r,n){let{visualElement:i}=be(hn),o=be(Zs),a=be(Co),s=be(Js).reducedMotion,u=vt();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let l=u.current;Cn(()=>{l&&l.update(r,a)});let c=vt(!!(r[$s]&&!window.HandoffComplete));return mh(()=>{l&&(Ro.postRender(l.render),c.current&&l.animationState&&l.animationState.animateChanges())}),de(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),l}function Mt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xh(e,t,r){return Rt(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Mt(r)&&(r.current=n))},[t])}function fr(e){return typeof e=="string"||Array.isArray(e)}function mn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gn(e){return mn(e.animate)||ko.some(t=>fr(e[t]))}function rl(e){return!!(gn(e)||e.variants)}function wh(e,t){if(gn(e)){let{initial:r,animate:n}=e;return{initial:r===!1||fr(r)?r:void 0,animate:fr(n)?n:void 0}}return e.inherit!==!1?t:{}}function Th(e){let{initial:t,animate:r}=wh(e,be(hn));return Ke(()=>({initial:t,animate:r}),[$i(t),$i(r)])}function $i(e){return Array.isArray(e)?e.join(" "):e}function Eh(e){for(let t in e)mr[t]={...mr[t],...e[t]}}function Ph({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Eh(e);function o(s,u){let l,c={...be(Js),...s,layoutId:Oh(s)},{isStatic:p}=c,d=Th(s),h=n(s,p);if(!p&&fn){d.visualElement=bh(i,h,c,t);let f=be(ol),v=be(Zs).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,v,e,f))}return J(hn.Provider,{value:d},l&&d.visualElement?J(l,{visualElement:d.visualElement,...c}):null,r(i,s,xh(h,d.visualElement,u),h,p,d.visualElement))}let a=Qt(o);return a[Sh]=i,a}function Oh({layoutId:e}){let t=be(nl).id;return t&&e!==void 0?t+"-"+e:e}function Ch(e){function t(n,i={}){return Ph(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}function Mo(e){return typeof e!="string"||e.includes("-")?!1:!!(Ah.indexOf(e)>-1||/[A-Z]/.test(e))}function Rh(e){Object.assign(Zr,e)}function il(e,{layout:t,layoutId:r}){return Ct.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Zr[e]||e==="opacity")}function Mh(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a{let n=jo();return Lo(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function _h(e,t,r){let n=e.style||{},i={};return ul(i,n,e),Object.assign(i,zh(e,t,r)),i}function Hh(e,t,r){let n={},i=_h(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}function en(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Uh.has(e)}function Wh(e){e&&(cl=t=>t.startsWith("on")?!en(t):e(t))}function qh(e,t,r){let n={};for(let i in e)i==="values"&&typeof e.values=="object"||(cl(i)||r===!0&&en(i)||!t&&!en(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function na(e,t,r){return typeof e=="string"?e:_.transform(t+r*e)}function Yh(e,t,r){let n=na(t,e.x,e.width),i=na(r,e.y,e.height);return`${n} ${i}`}function Kh(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?Gh:Xh;e[o.offset]=_.transform(-n);let a=_.transform(t),s=_.transform(r);e[o.array]=`${a} ${s}`}function No(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,p,d){if(Lo(e,l,c,d),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:v}=e;h.transform&&(v&&(f.transform=h.transform),delete h.transform),v&&(i!==void 0||o!==void 0||f.transform)&&(f.transformOrigin=Yh(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&Kh(h,a,s,u,!1)}function Qh(e,t,r,n){let i=Ke(()=>{let o=pl();return No(o,t,{enableHardwareAcceleration:!1},Vo(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};ul(o,e.style,e),i.style={...o,...i.style}}return i}function Jh(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=(Mo(t)?Qh:Hh)(r,i,o,t),s=qh(r,typeof t=="string",e),u=t!==Mr?{...s,...a,ref:n}:{},{children:l}=r,c=Ke(()=>Ae(l)?l.get():l,[l]);return J(t,{...u,children:c})}}function dl(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}function fl(e,t,r,n){dl(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(hl.has(i)?i:Ao(i),t.attrs[i])}function Fo(e,t){let{style:r}=e,n={};for(let i in r)(Ae(r[i])||t.style&&Ae(t.style[i])||il(i,e))&&(n[i]=r[i]);return n}function ml(e,t){let r=Fo(e,t);for(let n in e)if(Ae(e[n])||Ae(t[n])){let i=Pr.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Bo(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Zh(e){let t=vt(null);return t.current===null&&(t.current=e()),t.current}function qr(e){let t=Ae(e)?e.get():e;return $h(t)?t.toValue():t}function tf({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:rf(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}function rf(e,t,r,n){let i={},o=n(e,{});for(let d in o)i[d]=qr(o[d]);let{initial:a,animate:s}=e,u=gn(e),l=rl(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;let p=c?s:a;return p&&typeof p!="boolean"&&!mn(p)&&(Array.isArray(p)?p:[p]).forEach(d=>{let h=Bo(e,d);if(!h)return;let{transitionEnd:f,transition:v,...S}=h;for(let x in S){let b=S[x];if(Array.isArray(b)){let y=c?b.length-1:0;b=b[y]}b!==null&&(i[x]=b)}for(let x in f)i[x]=f[x]}),i}function af(e,{forwardMotionProps:t=!1},r,n){return{...Mo(e)?nf:of,preloadedFeatures:r,useRender:Jh(t),createVisualElement:n,Component:e}}function Je(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function yn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Ze(e,t,r,n){return Je(e,t,sf(r),n)}function vl(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}function bl(e){let t=!1;if(e==="y")t=ia();else if(e==="x")t=oa();else{let r=oa(),n=ia();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function xl(){let e=bl(!0);return e?(e(),!1):!0}function aa(e,t){let r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||xl())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&le.update(()=>s[n](o,a))};return Ze(e.current,r,i,{passive:!e.getProps()[n]})}function zn(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,yn(r))}function ff({root:e,...t}){let r=e||document;_n.has(r)||_n.set(r,{});let n=_n.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hf,{root:e,...t})),n[i]}function mf(e,t,r){let n=ff(t);return no.set(e,r),n.observe(e),()=>{no.delete(e),n.unobserve(e)}}function vf({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}function Tl(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function wf(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function vn(e,t,r){let n=e.getProps();return Bo(n,t,r!==void 0?r:n.custom,xf(e),wf(e))}function Sl(e){return!!(!e||typeof e=="string"&&Pl[e]||El(e)||Array.isArray(e)&&e.every(Sl))}function Ol(e){if(e)return El(e)?sr(e):Array.isArray(e)?e.map(Ol):Pl[e]}function Ef(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){let l={[t]:r};u&&(l.offset=u);let c=Ol(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function Sf(e,{repeat:t,repeatType:r="loop"}){let n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}function Cf(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Cl(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Pf&&++sCf(o,0,1,e,r);return o=>o===0||o===1?o:Cl(i(o),t,n)}function Hn(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Lf({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Hn(u,s,e+1/3),o=Hn(u,s,e),a=Hn(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}function Nf(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}function ua(e){let t=Ff(e);Fe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Dt&&(r=Lf(r)),r}function Bf(e){var t,r;return isNaN(e)&&Or(e)&&(((t=e.match(Do))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Nh))===null||r===void 0?void 0:r.length)||0)>0}function rn(e){let t=e.toString(),r=t.match(da)||[],n=[],i={color:[],number:[],var:[]},o=[];for(let s=0;s{let o="";for(let a=0;ar>0?t:e}function Wf(e,t){return r=>se(e,t,r)}function Uo(e){return typeof e=="number"?Wf:typeof e=="string"?$r(e)?io:xe.test(e)?ca:Gf:Array.isArray(e)?Fl:typeof e=="object"?xe.test(e)?ca:qf:io}function Fl(e,t){let r=[...e],n=r.length,i=e.map((o,a)=>Uo(o)(o,t[a]));return o=>{for(let a=0;a{for(let o in n)r[o]=n[o](i);return r}}function Yf(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;ot[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=Xf(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;cu(ht(e[0],e[o-1],l)):u}function Qf(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=gr(0,t,n);e.push(se(r,1,i))}}function Jf(e){let t=[0];return Qf(t,e.length-1),t}function Zf(e,t){return e.map(r=>r*t)}function $f(e,t){return e.map(()=>t||Al).splice(0,e.length-1)}function nn({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=If(n)?n.map(la):la(n),o={done:!1,value:t[0]},a=Zf(r&&r.length===t.length?r:Jf(t),e),s=Kf(a,t,{ease:Array.isArray(i)?i:$f(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function zl(e,t){return t?e*(1e3/t):0}function _l(e,t,r){let n=Math.max(t-em,0);return zl(r-e(n),t-n)}function om({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Ar(e<=ct(ha),"Spring duration must be 10 seconds or less");let a=1-t;a=ht(rm,nm,a),e=ht(tm,ha,et(e)),a<1?(i=l=>{let c=l*a,p=c*e,d=c-r,h=ao(l,a),f=Math.exp(-p);return qn-d/h*f},o=l=>{let c=l*a*e,p=c*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,h=Math.exp(-c),f=ao(Math.pow(l,2),a);return(-i(l)+qn>0?-1:1)*((p-d)*h)/f}):(i=l=>{let c=Math.exp(-l*e),p=(l-r)*e+1;return-qn+c*p},o=l=>{let c=Math.exp(-l*e),p=(r-l)*(e*e);return c*p});let s=5/e,u=am(i,o,s);if(e=ct(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}function am(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function um(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fa(e,lm)&&fa(e,sm)){let r=om(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Hl({keyframes:e,restDelta:t,restSpeed:r,...n}){let i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,duration:c,velocity:p,isResolvedFromDuration:d}=um({...n,velocity:-et(n.velocity||0)}),h=p||0,f=u/(2*Math.sqrt(s*l)),v=o-i,S=et(Math.sqrt(s/l)),x=Math.abs(v)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(f<1){let y=ao(S,f);b=P=>{let O=Math.exp(-f*S*P);return o-O*((h+f*S*v)/y*Math.sin(y*P)+v*Math.cos(y*P))}}else if(f===1)b=y=>o-Math.exp(-S*y)*(v+(h+S*v)*y);else{let y=S*Math.sqrt(f*f-1);b=P=>{let O=Math.exp(-f*S*P),W=Math.min(y*P,300);return o-O*((h+f*S*v)*Math.sinh(W)+y*v*Math.cosh(W))/y}}return{calculatedDuration:d&&c||null,next:y=>{let P=b(y);if(d)a.done=y>=c;else{let O=h;y!==0&&(f<1?O=_l(b,y,P):O=0);let W=Math.abs(O)<=r,B=Math.abs(o-P)<=t;a.done=W&&B}return a.value=a.done?o:P,a}}}function ma({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){let p=e[0],d={done:!1,value:p},h=z=>s!==void 0&&zu,f=z=>s===void 0?u:u===void 0||Math.abs(s-z)-v*Math.exp(-z/n),y=z=>x+b(z),P=z=>{let H=b(z),te=y(z);d.done=Math.abs(H)<=l,d.value=d.done?x:te},O,W,B=z=>{h(d.value)&&(O=z,W=Hl({keyframes:[d.value,f(d.value)],velocity:_l(y,z,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return B(0),{calculatedDuration:null,next:z=>{let H=!1;return!W&&O===void 0&&(H=!0,P(z),B(z)),O!==void 0&&z>O?W.next(z-O):(!H&&P(z),d)}}}function cm(){Yr=void 0}function ga(e){let t=0,r=50,n=e.next(t);for(;!n.done&&t<2e4;)t+=r,n=e.next(t);return t>=2e4?1/0:t}function on({autoplay:e=!0,delay:t=0,driver:r=pm,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:p,...d}){let h=1,f=!1,v,S,x=()=>{S=new Promise(Z=>{v=Z})};x();let b,y=dm[i]||nn,P;y!==nn&&typeof n[0]!="number"&&(Fe(n.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${n}`),P=$e(hm,Bl(n[0],n[1])),n=[0,100]);let O=y({...d,keyframes:n}),W;s==="mirror"&&(W=y({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let B="idle",z=null,H=null,te=null;O.calculatedDuration===null&&o&&(O.calculatedDuration=ga(O));let{calculatedDuration:ce}=O,Te=1/0,ye=1/0;ce!==null&&(Te=ce+a,ye=Te*(o+1)-a);let ue=0,re=Z=>{if(H===null)return;h>0&&(H=Math.min(H,Z)),h<0&&(H=Math.min(Z-ye/h,H)),z!==null?ue=z:ue=Math.round(Z-H)*h;let A=ue-t*(h>=0?1:-1),D=h>=0?A<0:A>ye;ue=Math.max(A,0),B==="finished"&&z===null&&(ue=ye);let q=ue,Y=O;if(o){let T=Math.min(ue,ye)/Te,M=Math.floor(T),k=T%1;!k&&T>=1&&(k=1),k===1&&M--,M=Math.min(M,o+1),M%2&&(s==="reverse"?(k=1-k,a&&(k-=a/Te)):s==="mirror"&&(Y=W)),q=ht(0,1,k)*Te}let g=D?{done:!1,value:n[0]}:Y.next(q);P&&(g.value=P(g.value));let{done:w}=g;!D&&ce!==null&&(w=h>=0?ue>=ye:ue<=0);let E=z===null&&(B==="finished"||B==="running"&&w);return p&&p(g.value),E&&ge(),g},me=()=>{b&&b.stop(),b=void 0},ke=()=>{B="idle",me(),v(),x(),H=te=null},ge=()=>{B="finished",c&&c(),me(),v()},Ee=()=>{if(f)return;b||(b=r(re));let Z=b.now();u&&u(),z!==null?H=Z-z:(!H||B==="finished")&&(H=Z),B==="finished"&&x(),te=H,z=null,B="running",b.start()};e&&Ee();let _e={then(Z,A){return S.then(Z,A)},get time(){return et(ue)},set time(Z){Z=ct(Z),ue=Z,z!==null||!b||h===0?z=Z:H=b.now()-Z/h},get duration(){let Z=O.calculatedDuration===null?ga(O):O.calculatedDuration;return et(Z)},get speed(){return h},set speed(Z){Z===h||!b||(h=Z,_e.time=et(ue))},get state(){return B},play:Ee,pause:()=>{B="paused",z=ue},stop:()=>{f=!0,B!=="idle"&&(B="idle",l&&l(),ke())},cancel:()=>{te!==null&&re(te),ke()},complete:()=>{B="finished"},sample:Z=>(H=0,re(Z))};return _e}function fm(e){let t;return()=>(t===void 0&&(t=e()),t)}function bm(e,t,{onUpdate:r,onComplete:n,...i}){if(!(mm()&&gm.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,s,u=!1,l=()=>{s=new Promise(x=>{a=x})};l();let{keyframes:c,duration:p=300,ease:d,times:h}=i;if(vm(t,i)){let x=on({...i,repeat:0,delay:0}),b={done:!1,value:c[0]},y=[],P=0;for(;!b.done&&P{u=!1,f.cancel()},S=()=>{u=!0,le.update(v),a(),l()};return f.onfinish=()=>{u||(e.set(Sf(c,i)),n&&n(),S())},{then(x,b){return s.then(x,b)},attachTimeline(x){return f.timeline=x,f.onfinish=null,fe},get time(){return et(f.currentTime||0)},set time(x){f.currentTime=ct(x)},get speed(){return f.playbackRate},set speed(x){f.playbackRate=x},get duration(){return et(p)},play:()=>{o||(f.play(),tt(v))},pause:()=>f.pause(),stop:()=>{if(o=!0,f.playState==="idle")return;let{currentTime:x}=f;if(x){let b=on({...i,autoplay:!1});e.setWithVelocity(b.sample(x-_r).value,b.sample(x).value,_r)}S()},complete:()=>{u||f.finish()},cancel:S}}function xm({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:fe,pause:fe,stop:fe,then:o=>(o(),Promise.resolve()),cancel:fe,complete:fe});return t?on({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}function Cm(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Do)||[];if(!n)return e;let i=r.replace(n,""),o=Om.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}function Ul(e,t){let r=Wo(e);return r!==lo&&(r=ft),r.getAnimatableNone?r.getAnimatableNone(t):void 0}function Im(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Wl(e)}function km(e,t,r,n){let i=so(t,r),o;Array.isArray(r)?o=[...r]:o=[null,r];let a=n.from!==void 0?n.from:e.get(),s,u=[];for(let l=0;l-1&&e.splice(r,1)}function Qo(e,t,r){e||ya.has(t)||(console.warn(t),r&&console.warn(r),ya.add(t))}function Bt(e,t){return new Lm(e,t)}function Fm(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Bt(r))}function Bm(e,t){let r=vn(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(let a in o){let s=ef(o[a]);Fm(e,a,s)}}function zm(e,t,r){var n,i;let o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;su.remove(p))),l.push(S)}return a&&Promise.all(l).then(()=>{a&&Bm(e,a)}),l}function uo(e,t,r={}){let n=vn(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(Xl(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:l=0,staggerChildren:c,staggerDirection:p}=i;return qm(e,t,l+u,c,p,r)}:()=>Promise.resolve(),{when:s}=i;if(s){let[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function qm(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(Ym).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(uo(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function Ym(e,t){return e.sortNodePosition(t)}function Gm(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>uo(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=uo(e,t,r);else{let i=typeof t=="function"?vn(e,t,r.custom):t;n=Promise.all(Xl(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}function Qm(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Gm(e,r,n)))}function Jm(e){let t=Qm(e),r=$m(),n=!0,i=(u,l)=>{let c=vn(e,l);if(c){let{transition:p,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){let c=e.getProps(),p=e.getVariantContext(!0)||{},d=[],h=new Set,f={},v=1/0;for(let x=0;xv&&O,H=!1,te=Array.isArray(P)?P:[P],ce=te.reduce(i,{});W===!1&&(ce={});let{prevResolvedValues:Te={}}=y,ye={...Te,...ce},ue=re=>{z=!0,h.has(re)&&(H=!0,h.delete(re)),y.needsAnimating[re]=!0};for(let re in ye){let me=ce[re],ke=Te[re];if(f.hasOwnProperty(re))continue;let ge=!1;tn(me)&&tn(ke)?ge=!Tl(me,ke):ge=me!==ke,ge?me!==void 0?ue(re):h.add(re):me!==void 0&&h.has(re)?ue(re):y.protectedKeys[re]=!0}y.prevProp=P,y.prevResolvedValues=ce,y.isActive&&(f={...f,...ce}),n&&e.blockInitialAnimation&&(z=!1),z&&(!B||H)&&d.push(...te.map(re=>({animation:re,options:{type:b,...u}})))}if(h.size){let x={};h.forEach(b=>{let y=e.getBaseTarget(b);y!==void 0&&(x[b]=y)}),d.push({animation:x})}let S=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),n=!1,S?t(d):Promise.resolve()}function s(u,l,c){var p;if(r[u].isActive===l)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(h=>{var f;return(f=h.animationState)===null||f===void 0?void 0:f.setActive(u,l)}),r[u].isActive=l;let d=a(c,u);for(let h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function Zm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Tl(t,e):!1}function xt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $m(){return{animate:xt(!0),whileInView:xt(),whileHover:xt(),whileTap:xt(),whileDrag:xt(),whileFocus:xt(),exit:xt()}}function og(e,t){let r=ba(e.x,t.x),n=ba(e.y,t.y);return Math.sqrt(r**2+n**2)}function Yn(e,t){return t?{point:t(e.point)}:e}function xa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gn({point:e},t){return{point:e,delta:xa(e,Ql(t)),offset:xa(e,ig(t)),velocity:ag(t,.1)}}function ig(e){return e[0]}function Ql(e){return e[e.length-1]}function ag(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=Ql(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ct(t)));)r--;if(!n)return{x:0,y:0};let o=et(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Re(e){return e.max-e.min}function co(e,t=0,r=.01){return Math.abs(e-t)<=r}function wa(e,t,r,n=.5){e.origin=n,e.originPoint=se(t.min,t.max,e.origin),e.scale=Re(r)/Re(t),(co(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=se(r.min,r.max,e.origin)-e.originPoint,(co(e.translate)||isNaN(e.translate))&&(e.translate=0)}function pr(e,t,r,n){wa(e.x,t.x,r.x,n?n.originX:void 0),wa(e.y,t.y,r.y,n?n.originY:void 0)}function Ta(e,t,r){e.min=r.min+t.min,e.max=e.min+Re(t)}function sg(e,t,r){Ta(e.x,t.x,r.x),Ta(e.y,t.y,r.y)}function Ea(e,t,r){e.min=t.min-r.min,e.max=e.min+Re(t)}function dr(e,t,r){Ea(e.x,t.x,r.x),Ea(e.y,t.y,r.y)}function lg(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?se(r,e,n.max):Math.min(e,r)),e}function Sa(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ug(e,{top:t,left:r,bottom:n,right:i}){return{x:Sa(e.x,r,i),y:Sa(e.y,t,n)}}function Pa(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=gr(t.min,t.max-n,e.min):n>i&&(r=gr(e.min,e.max-i,t.min)),ht(0,1,r)}function dg(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}function hg(e=po){return e===!1?e=0:e===!0&&(e=po),{x:Oa(e,"left","right"),y:Oa(e,"top","bottom")}}function Oa(e,t,r){return{min:Ca(e,t),max:Ca(e,r)}}function Ca(e,t){return typeof e=="number"?e:e[t]||0}function Le(e){return[e("x"),e("y")]}function Jl({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function fg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mg(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Xn(e){return e===void 0||e===1}function ho({scale:e,scaleX:t,scaleY:r}){return!Xn(e)||!Xn(t)||!Xn(r)}function wt(e){return ho(e)||Zl(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Zl(e){return Ia(e.x)||Ia(e.y)}function Ia(e){return e&&e!=="0%"}function sn(e,t,r){let n=e-r,i=t*n;return r+i}function ka(e,t,r,n,i){return i!==void 0&&(e=sn(e,i,n)),sn(e,r,n)+t}function fo(e,t=0,r=1,n,i){e.min=ka(e.min,t,r,n,i),e.max=ka(e.max,t,r,n,i)}function $l(e,{x:t,y:r}){fo(e.x,t.translate,t.scale,t.originPoint),fo(e.y,r.translate,r.scale,r.originPoint)}function gg(e,t,r,n=!1){let i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function at(e,t){e.min=e.min+t,e.max=e.max+t}function Da(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,a=se(e.min,e.max,o);fo(e,t[r],t[n],a,t.scale)}function jt(e,t){Da(e.x,t,yg),Da(e.y,t,vg)}function eu(e,t){return Jl(mg(e.getBoundingClientRect(),t))}function bg(e,t,r){let n=eu(e,r),{scroll:i}=t;return i&&(at(n.x,i.offset.x),at(n.y,i.offset.y)),n}function Hr(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Tg(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Pg(){let e=be(Co);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=On();return de(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function ja(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}function ru(e){let[t,r]=Pg(),n=be(nl);return m.createElement(Cg,{...e,layoutGroup:n,switchLayoutGroup:be(ol),isPresent:t,safeToRemove:r})}function Ig(e,t,r,n,i,o){i?(e.opacity=se(0,r.opacity!==void 0?r.opacity:1,kg(n)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,Mg(n))):o&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(gr(e,t,n))}function Ba(e,t){e.min=t.min,e.max=t.max}function Me(e,t){Ba(e.x,t.x),Ba(e.y,t.y)}function za(e,t,r,n,i){return e-=t,e=sn(e,1/r,n),i!==void 0&&(e=sn(e,1/i,n)),e}function Dg(e,t=0,r=1,n=.5,i,o=e,a=e){if(Xe.test(t)&&(t=parseFloat(t),t=se(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=se(o.min,o.max,n);e===o&&(s-=t),e.min=za(e.min,t,r,s,i),e.max=za(e.max,t,r,s,i)}function _a(e,t,[r,n,i],o,a){Dg(e,t[r],t[n],t[i],t.scale,o,a)}function Ha(e,t,r,n){_a(e.x,t,Lg,r?r.x:void 0,n?n.x:void 0),_a(e.y,t,jg,r?r.y:void 0,n?n.y:void 0)}function Ua(e){return e.translate===0&&e.scale===1}function iu(e){return Ua(e.x)&&Ua(e.y)}function Ng(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function au(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Wa(e){return Re(e.x)/Re(e.y)}function qa(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}function zg(e,t){let r=Pt.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(tt(n),e(o-t))};return le.read(n,!0),()=>tt(n)}function _g(e){window.MotionDebug&&window.MotionDebug.record(e)}function Hg(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Ug(e,t,r){let n=Ae(e)?e:Bt(e);return n.start(Yo("",n,t,r)),n.animation}function su({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=t?.()){this.id=qg++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tt.totalNodes=Tt.resolvedTargetDeltas=Tt.recalculatedProjection=0,this.nodes.forEach(Xg),this.nodes.forEach($g),this.nodes.forEach(ey),this.nodes.forEach(Kg),_g(Tt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let s=0;sthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=zg(p,250),Gr.hasAnimatedSinceResize&&(Gr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ka))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&l&&(s||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:p,hasRelativeTargetChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||l.getDefaultTransition()||iy,{onLayoutAnimationStart:v,onLayoutAnimationComplete:S}=l.getProps(),x=!this.targetLayout||!au(this.targetLayout,h)||d,b=!p&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||p&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,b);let y={...qo(f,"layout"),onPlay:v,onComplete:S};(l.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y)}else p||Ka(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tt(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(ty),this.animationId++)}getTransformTemplate(){let{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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;lthis.update()))}clearAllSnapshots(){this.nodes.forEach(Qg),this.sharedNodes.forEach(ry)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{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 s=0;s{let P=y/1e3;Qa(c.x,o.x,P),Qa(c.y,o.y,P),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(dr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ny(this.relativeTarget,this.relativeTargetOrigin,p,P),b&&Ng(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=he()),Me(b,this.relativeTarget)),f&&(this.animationValues=l,Ig(l,u,this.latestValues,P,x,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Gr.hasAnimatedSinceResize=!0,this.currentAnimation=Ug(0,Ga,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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);let o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ga),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let o=this.getLead(),{targetWithTransforms:a,target:s,layout:u,latestValues:l}=o;if(!(!a||!s||!u)){if(this!==o&&this.layout&&u&&lu(this.options.animationType,this.layout.layoutBox,u.layoutBox)){s=this.target||he();let c=Re(this.layout.layoutBox.x);s.x.min=o.target.x.min,s.x.max=s.x.min+c;let p=Re(this.layout.layoutBox.y);s.y.min=o.target.y.min,s.y.max=s.y.min+p}Me(a,s),jt(a,l),pr(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Vg),this.sharedNodes.get(o).add(a);let s=a.options.initialPromotionConfig;a.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(a):void 0})}isLead(){let o=this.getStack();return o?o.lead===this:!0}getLead(){var o;let{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;let{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){let{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:s}={}){let u=this.getStack();u&&u.promote(this,s),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let o=this.getStack();return o?o.relegate(this):!1}resetRotation(){let{visualElement:o}=this.options;if(!o)return;let a=!1,{latestValues:s}=o;if((s.rotate||s.rotateX||s.rotateY||s.rotateZ)&&(a=!0),!a)return;let u={};for(let l=0;l{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Xa),this.root.sharedNodes.clear()}}}function Yg(e){e.updateLayout()}function Gg(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Le(p=>{let d=a?r.measuredBox[p]:r.layoutBox[p],h=Re(d);d.min=n[p].min,d.max=d.min+h}):lu(o,r.layoutBox,n)&&Le(p=>{let d=a?r.measuredBox[p]:r.layoutBox[p],h=Re(n[p]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+h)});let s=Lt();pr(s,n,r.layoutBox);let u=Lt();a?pr(u,e.applyTransform(i,!0),r.measuredBox):pr(u,n,r.layoutBox);let l=!iu(s),c=!1;if(!e.resumeFrom){let p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:d,layout:h}=p;if(d&&h){let f=he();dr(f,r.layoutBox,d.layoutBox);let v=he();dr(v,n,h.layoutBox),au(f,v)||(c=!0),p.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=f,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Xg(e){Tt.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Kg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Qg(e){e.clearSnapshot()}function Xa(e){e.clearMeasurements()}function Jg(e){e.isLayoutDirty=!1}function Zg(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ka(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $g(e){e.resolveTargetDelta()}function ey(e){e.calcProjection()}function ty(e){e.resetRotation()}function ry(e){e.removeLeadSnapshot()}function Qa(e,t,r){e.translate=se(t.translate,0,r),e.scale=se(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ja(e,t,r,n){e.min=se(t.min,r.min,n),e.max=se(t.max,r.max,n)}function ny(e,t,r,n){Ja(e.x,t.x,r.x,n),Ja(e.y,t.y,r.y,n)}function oy(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function es(e){e.min=$a(e.min),e.max=$a(e.max)}function ay(e){es(e.x),es(e.y)}function lu(e,t,r){return e==="position"||e==="preserve-aspect"&&!co(Wa(t),Wa(r),.2)}function cy(e){let t=uy.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}function mo(e,t,r=1){Fe(r<=py,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=cy(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let a=o.trim();return ql(a)?parseFloat(a):a}else return $r(i)?mo(i,t,r+1):i}function dy(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{let o=i.get();if(!$r(o))return;let a=mo(o,n);a&&i.set(a)});for(let i in t){let o=t[i];if(!$r(o))continue;let a=mo(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}function yy(e){let t=[];return gy.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}function xy(e,t,r,n){return fy(t)?by(e,t,r,n):{target:t,transitionEnd:n}}function Ty(){if(pu.current=!0,!!fn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>go.current=e.matches;e.addListener(t),t()}else go.current=!1}function Ey(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(Ae(o))e.addValue(i,o),an(n)&&n.add(i),Qo(o.version==="11.0.6",`Attempting to mix Framer Motion versions ${o.version} with 11.0.6 may not work as expected.`);else if(Ae(a))e.addValue(i,Bt(o,{owner:e})),an(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){let s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{let s=e.getStaticValue(i);e.addValue(i,Bt(s!==void 0?s:o,{owner:e}))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}function Cy(e){return window.getComputedStyle(e)}function Yy(){let[e,t]=Pe(null);return de(()=>{(async()=>{try{let r=(await(await fetch("/index.json")).json()).entries["example-button--primary"].importPath;t({data:r,error:null})}catch(r){t({data:null,error:r})}})()},[]),e}function nv(){let[e,t]=Pe({data:null,error:null});return de(()=>{(async()=>{try{let r=(await(await fetch("/project.json")).json())?.language==="javascript"?ev:rv;t({data:r,error:null})}catch(r){t({data:null,error:r})}})()},[]),e}function iv({api:e}){let[t,r]=Pe(!0),[n,i]=Pe(!1),[o,a]=Pe("1:Welcome"),{data:s}=nv(),u=Rt(()=>{let l=new URL(window.location.href),c=decodeURIComponent(l.searchParams.get("path"));l.search=`?path=${c}&onboarding=false`,history.replaceState({},"",l.href),e.setQueryParams({onboarding:"false"}),r(!1)},[r,e]);return de(()=>{e.emit(lr,{step:"1:Welcome",type:"telemetry"})},[]),de(()=>{o!=="1:Welcome"&&e.emit(lr,{step:o,type:"telemetry"})},[e,o]),de(()=>{let l;return o==="4:VisitNewStory"&&(i(!0),l=window.setTimeout(()=>{a("5:ConfigureYourProject")},2e3)),()=>{clearTimeout(l)}},[o]),de(()=>{let l=e.getCurrentStoryData()?.id;if(e.setQueryParams({onboarding:"true"}),l!=="example-button--primary")try{e.selectStory("example-button--primary",void 0,{ref:void 0})}catch{}},[]),t?m.createElement(kn,{theme:ov},t&&n&&m.createElement(Ks,{numberOfPieces:800,recycle:!1,tweenDuration:2e4,onConfettiComplete:l=>{l?.reset(),i(!1)}}),t&&o==="1:Welcome"&&m.createElement(uh,{onProceed:()=>{a("2:StorybookTour")},skipOnboarding:()=>{u(),e.emit(lr,{step:"X:SkippedOnboarding",where:"WelcomeModal",type:"telemetry"})}}),t&&(o==="2:StorybookTour"||o==="5:ConfigureYourProject")&&m.createElement(Gd,{api:e,isFinalStep:o==="5:ConfigureYourProject",onFirstTourDone:()=>{a("3:WriteYourStory")},codeSnippets:s||void 0,onLastTourDone:()=>{try{e.selectStory("configure-your-project--docs")}catch{}e.emit(lr,{step:"6:FinishedOnboarding",type:"telemetry"}),u()}}),t&&o==="3:WriteYourStory"&&s&&m.createElement(Zy,{api:e,codeSnippets:s,addonsStore:jr,onFinish:()=>{e.selectStory("example-button--warning"),a("4:VisitNewStory")},skipOnboarding:u})):null}var is,Hu,ln,Uu,yo,Wu,qu,as,Ie,Yu,ss,mt,Gu,Xu,Ku,vo,Qu,ls,Ju,us,cs,Zu,$u,ec,tc,rc,ps,oc,ds,xi,wi,hs,ic,ac,sc,Ti,Ei,lc,hc,fc,yc,N,wc,gs,Nr,Ln,I,yr,Sc,Cc,Ac,Ri,Ii,kc,Mc,Ft,je,Yc,Ms,jn,Nn,ip,ap,cn,Li,eo,sp,lp,up,F,dp,hp,ji,Ni,fp,to,Cp,Ap,Rp,$,tr,Vs,Fs,Vp,_s,Hs,Fp,zp,_p,Oo,Hp,Up,Wp,V,ee,Ve,X,Q,rr,td,qs,rd,nd,od,nr,Xi,Gs,Qi,sd,ud,cd,dd,hd,fd,gd,vd,bd,xd,Xs,wd,Ed,Od,De,Cd,Ad,Rd,Id,kd,Md,Dd,Ld,jd,Nd,Vd,Fd,Wr,Fn,Bd,zd,_d,Hd,Ud,Wd,qd,Fr,Yd,Kd,Qd,Jd,Zd,$d,eh,th,rh,nh,oh,ih,ah,sh,lh,uh,Ji,hh,fh,Js,hn,Co,fn,mh,Zs,Ao,gh,$s,el,Zi,Br,vh,Ro,xS,Io,ko,ea,mr,nl,ol,Sh,Ah,Zr,Pr,Ct,Ae,Ih,kh,al,sl,Dh,$r,Lh,jh,ht,Wt,ur,zr,cr,Do,Nh,Vh,Cr,it,Xe,_,Fh,Bh,ta,ra,ll,jo,Uh,cl,Gh,Xh,pl,Vo,hl,tn,$h,ef,gl,fe,le,tt,ve,Bn,nf,of,yl,sf,lf,$e,oa,ia,gt,uf,cf,wl,pf,no,_n,df,hf,gf,yf,bf,Ar,Fe,ct,et,Tf,El,sr,Pl,Cl,Pf,Of,Af,Rf,Al,If,Rl,Il,zo,kl,kf,Ml,_o,Mf,Df,sa,la,gr,se,Ho,Dl,jf,Un,St,oo,Dt,Wn,Vf,Ff,ca,xe,Ll,jl,zf,_f,pa,da,Hf,ft,Gf,em,qn,tm,ha,rm,nm,im,sm,lm,Yr,Pt,pm,dm,hm,mm,gm,_r,ym,vm,wm,Tm,Em,Sm,Pm,so,Om,Am,lo,Rm,Wo,Wl,Yo,ql,Ko,ya,va,Dm,Lm,Yl,jm,Gl,ir,Nm,Vm,Xm,Km,eg,tg,rg,ng,ba,Kl,po,Aa,Lt,Ra,he,yg,vg,tu,xg,wg,Eg,La,Sg,Gr,ar,Og,Cg,Ag,nu,Rg,Na,Va,kg,Mg,Lg,jg,Vg,Fg,Bg,Ya,Wg,Ga,qg,Tt,iy,Za,$a,sy,Kn,uu,ly,uy,py,hy,cu,fy,Ur,ts,rs,my,gy,zt,vy,by,wy,go,pu,ns,du,Sy,os,Py,Oy,hu,Ay,Ry,Iy,ky,My,qt,Dy,Ly,jy,Ny,Vy,Fy,By,zy,_y,Hy,Uy,Wy,qy,Qn,Gy,Xy,Ky,Qy,Jy,lr,Zy,$y,ev,tv,rv,ov,mu=Ne(()=>{oe();ie();ae();It();It();di();An();kr();kr();In();is=Eu(hi());fi();bi();Hu=Object.create,ln=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyNames,Wu=Object.getPrototypeOf,qu=Object.prototype.hasOwnProperty,as=(e,t)=>function(){return e&&(t=(0,e[yo(e)[0]])(e=0)),t},Ie=(e,t)=>function(){return t||(0,e[yo(e)[0]])((t={exports:{}}).exports,t),t.exports},Yu=(e,t)=>{for(var r in t)ln(e,r,{get:t[r],enumerable:!0})},ss=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yo(t))!qu.call(e,i)&&i!==r&&ln(e,i,{get:()=>t[i],enumerable:!(n=Uu(t,i))||n.enumerable});return e},mt=(e,t,r)=>(r=e!=null?Hu(Wu(e)):{},ss(t||!e||!e.__esModule?ln(r,"default",{value:e,enumerable:!0}):r,e)),Gu=e=>ss(ln({},"__esModule",{value:!0}),e),Xu=Ie({"../../node_modules/scroll/index.js"(e,t){var r=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),i=Math.min,o=Date.now;t.exports={left:a("scrollLeft"),top:a("scrollTop")};function a(l){return function(c,p,d,h){d=d||{},typeof d=="function"&&(h=d,d={}),typeof h!="function"&&(h=u);var f=o(),v=c[l],S=d.ease||s,x=isNaN(d.duration)?350:+d.duration,b=!1;return v===p?h(r,c[l]):requestAnimationFrame(P),y;function y(){b=!0}function P(O){if(b)return h(n,c[l]);var W=o(),B=i(1,(W-f)/x),z=S(B);c[l]=z*(p-v)+v,B<1?requestAnimationFrame(P):requestAnimationFrame(function(){h(null,c[l])})}}}function s(l){return .5*(1-Math.cos(Math.PI*l))}function u(){}}}),Ku=Ie({"../../node_modules/scrollparent/scrollparent.js"(e,t){(function(r,n){typeof define=="function"&&define.amd?define([],n):typeof t=="object"&&t.exports?t.exports=n():r.Scrollparent=n()})(e,function(){function r(i){var o=getComputedStyle(i,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function n(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var o=i.parentNode;o.parentNode;){if(r(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return n})}}),vo=Ie({"../../node_modules/deepmerge/dist/cjs.js"(e,t){var r=function(y){return n(y)&&!i(y)};function n(y){return!!y&&typeof y=="object"}function i(y){var P=Object.prototype.toString.call(y);return P==="[object RegExp]"||P==="[object Date]"||s(y)}var o=typeof Symbol=="function"&&Symbol.for,a=o?Symbol.for("react.element"):60103;function s(y){return y.$$typeof===a}function u(y){return Array.isArray(y)?[]:{}}function l(y,P){return P.clone!==!1&&P.isMergeableObject(y)?x(u(y),y,P):y}function c(y,P,O){return y.concat(P).map(function(W){return l(W,O)})}function p(y,P){if(!P.customMerge)return x;var O=P.customMerge(y);return typeof O=="function"?O:x}function d(y){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(y).filter(function(P){return Object.propertyIsEnumerable.call(y,P)}):[]}function h(y){return Object.keys(y).concat(d(y))}function f(y,P){try{return P in y}catch{return!1}}function v(y,P){return f(y,P)&&!(Object.hasOwnProperty.call(y,P)&&Object.propertyIsEnumerable.call(y,P))}function S(y,P,O){var W={};return O.isMergeableObject(y)&&h(y).forEach(function(B){W[B]=l(y[B],O)}),h(P).forEach(function(B){v(y,B)||(f(y,B)&&O.isMergeableObject(P[B])?W[B]=p(B,O)(y[B],P[B],O):W[B]=l(P[B],O))}),W}function x(y,P,O){O=O||{},O.arrayMerge=O.arrayMerge||c,O.isMergeableObject=O.isMergeableObject||r,O.cloneUnlessOtherwiseSpecified=l;var W=Array.isArray(P),B=Array.isArray(y),z=W===B;return z?W?O.arrayMerge(y,P,O):S(y,P,O):l(P,O)}x.all=function(y,P){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(O,W){return x(O,W,P)},{})};var b=x;t.exports=b}}),Qu=Ie({"../../node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function P(C){return typeof C=="string"||typeof C=="function"||C===i||C===c||C===a||C===o||C===d||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===f||C.$$typeof===s||C.$$typeof===u||C.$$typeof===p||C.$$typeof===x||C.$$typeof===b||C.$$typeof===y||C.$$typeof===S)}function O(C){if(typeof C=="object"&&C!==null){var G=C.$$typeof;switch(G){case r:var K=C.type;switch(K){case l:case c:case i:case a:case o:case d:return K;default:var pe=K&&K.$$typeof;switch(pe){case u:case p:case v:case f:case s:return pe;default:return G}}case n:return G}}}var W=l,B=c,z=u,H=s,te=r,ce=p,Te=i,ye=v,ue=f,re=n,me=a,ke=o,ge=d,Ee=!1;function _e(C){return Ee||(Ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(C)||O(C)===l}function Z(C){return O(C)===c}function A(C){return O(C)===u}function D(C){return O(C)===s}function q(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function Y(C){return O(C)===p}function g(C){return O(C)===i}function w(C){return O(C)===v}function E(C){return O(C)===f}function T(C){return O(C)===n}function M(C){return O(C)===a}function k(C){return O(C)===o}function R(C){return O(C)===d}e.AsyncMode=W,e.ConcurrentMode=B,e.ContextConsumer=z,e.ContextProvider=H,e.Element=te,e.ForwardRef=ce,e.Fragment=Te,e.Lazy=ye,e.Memo=ue,e.Portal=re,e.Profiler=me,e.StrictMode=ke,e.Suspense=ge,e.isAsyncMode=_e,e.isConcurrentMode=Z,e.isContextConsumer=A,e.isContextProvider=D,e.isElement=q,e.isForwardRef=Y,e.isFragment=g,e.isLazy=w,e.isMemo=E,e.isPortal=T,e.isProfiler=M,e.isStrictMode=k,e.isSuspense=R,e.isValidElementType=P,e.typeOf=O})()}}),ls=Ie({"../../node_modules/react-is/index.js"(e,t){t.exports=Qu()}}),Ju=Ie({"../../node_modules/object-assign/index.js"(e,t){var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(u).map(function(d){return u[d]});if(c.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(d){p[d]=d}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}t.exports=a()?Object.assign:function(s,u){for(var l,c=o(s),p,d=1;d1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array."),u;function D(q,Y,g,w,E){for(var T=q[Y],M=0;M0?", expected one of type ["+k.join(", ")+"]":"";return new x("Invalid "+T+" `"+M+"` supplied to "+("`"+E+"`"+K+"."))}return b(Y)}function Te(){function A(D,q,Y,g,w){return me(D[q])?null:new x("Invalid "+g+" `"+w+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return b(A)}function ye(A,D,q,Y,g){return new x((A||"React class")+": "+D+" type `"+q+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+g+"`.")}function ue(A){function D(q,Y,g,w,E){var T=q[Y],M=ge(T);if(M!=="object")return new x("Invalid "+w+" `"+E+"` of type `"+M+"` "+("supplied to `"+g+"`, expected `object`."));for(var k in A){var R=A[k];if(typeof R!="function")return ye(g,w,E,k,Ee(R));var C=R(T,k,g,w,E+"."+k,i);if(C)return C}return null}return b(D)}function re(A){function D(q,Y,g,w,E){var T=q[Y],M=ge(T);if(M!=="object")return new x("Invalid "+w+" `"+E+"` of type `"+M+"` "+("supplied to `"+g+"`, expected `object`."));var k=n({},q[Y],A);for(var R in k){var C=A[R];if(o(A,R)&&typeof C!="function")return ye(g,w,E,R,Ee(C));if(!C)return new x("Invalid "+w+" `"+E+"` key `"+R+"` supplied to `"+g+"`.\nBad object: "+JSON.stringify(q[Y],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=C(T,R,g,w,E+"."+R,i);if(G)return G}return null}return b(D)}function me(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(me);if(A===null||l(A))return!0;var D=h(A);if(D){var q=D.call(A),Y;if(D!==A.entries){for(;!(Y=q.next()).done;)if(!me(Y.value))return!1}else for(;!(Y=q.next()).done;){var g=Y.value;if(g&&!me(g[1]))return!1}}else return!1;return!0;default:return!1}}function ke(A,D){return A==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function ge(A){var D=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":ke(D,A)?"symbol":D}function Ee(A){if(typeof A>"u"||A===null)return""+A;var D=ge(A);if(D==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return D}function _e(A){var D=Ee(A);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Z(A){return!A.constructor||!A.constructor.name?f:A.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v}}}),ec=Ie({"../../node_modules/prop-types/index.js"(e,t){r=ls(),n=!0,t.exports=$u()(r.isElement,n);var r,n}}),tc=Ie({"../../node_modules/react-innertext/index.js"(e,t){var r=function(o){return Object.prototype.hasOwnProperty.call(o,"props")},n=function(o,a){return o+i(a)},i=function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(n,""):r(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?i(o.props.children):""};i.default=i,t.exports=i}}),rc=Ie({"../../node_modules/debounce/index.js"(e,t){function r(n,i,o){var a,s,u,l,c;i==null&&(i=100);function p(){var h=Date.now()-l;h=0?a=setTimeout(p,i-h):(a=null,o||(c=n.apply(u,s),u=s=null))}var d=function(){u=this,s=arguments,l=Date.now();var h=o&&!a;return a||(a=setTimeout(p,i)),h&&(c=n.apply(u,s),u=s=null),c};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.flush=function(){a&&(c=n.apply(u,s),u=s=null,clearTimeout(a),a=null)},d}r.debounce=r,t.exports=r}});oc=as({"../../node_modules/framer-motion/node_modules/@emotion/memoize/dist/memoize.browser.esm.js"(){ps=nc}}),ds={};Yu(ds,{default:()=>hs});ic=as({"../../node_modules/framer-motion/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"(){oc(),xi=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wi=ps(function(e){return xi.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hs=wi}});ac=fs("function"),sc=e=>e===null,Ti=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Ei=e=>!lc(e)&&!sc(e)&&(ac(e)||typeof e=="object"),lc=fs("undefined");hc=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],fc=["bigint","boolean","null","number","string","symbol","undefined"];yc=["innerHTML","ownerDocument","style","attributes","nodeValue"];L.array=Array.isArray;L.arrayOf=(e,t)=>!L.array(e)&&!L.function(t)?!1:e.every(r=>t(r));L.asyncGeneratorFunction=e=>un(e)==="AsyncGeneratorFunction";L.asyncFunction=Be("AsyncFunction");L.bigint=_t("bigint");L.boolean=e=>e===!0||e===!1;L.date=Be("Date");L.defined=e=>!L.undefined(e);L.domElement=e=>L.object(e)&&!L.plainObject(e)&&e.nodeType===1&&L.string(e.nodeName)&&yc.every(t=>t in e);L.empty=e=>L.string(e)&&e.length===0||L.array(e)&&e.length===0||L.object(e)&&!L.map(e)&&!L.set(e)&&Object.keys(e).length===0||L.set(e)&&e.size===0||L.map(e)&&e.size===0;L.error=Be("Error");L.function=_t("function");L.generator=e=>L.iterable(e)&&L.function(e.next)&&L.function(e.throw);L.generatorFunction=Be("GeneratorFunction");L.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;L.iterable=e=>!L.nullOrUndefined(e)&&L.function(e[Symbol.iterator]);L.map=Be("Map");L.nan=e=>Number.isNaN(e);L.null=e=>e===null;L.nullOrUndefined=e=>L.null(e)||L.undefined(e);L.number=e=>_t("number")(e)&&!L.nan(e);L.numericString=e=>L.string(e)&&e.length>0&&!Number.isNaN(Number(e));L.object=e=>!L.nullOrUndefined(e)&&(L.function(e)||typeof e=="object");L.oneOf=(e,t)=>L.array(e)?e.indexOf(t)>-1:!1;L.plainFunction=Be("Function");L.plainObject=e=>{if(un(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};L.primitive=e=>L.null(e)||gc(typeof e);L.promise=Be("Promise");L.propertyOf=(e,t,r)=>{if(!L.object(e)||!t)return!1;let n=e[t];return L.function(r)?r(n):L.defined(n)};L.regexp=Be("RegExp");L.set=Be("Set");L.string=_t("string");L.symbol=_t("symbol");L.undefined=_t("undefined");L.weakMap=Be("WeakMap");L.weakSet=Be("WeakSet");N=L;wc=mt(Xu(),1),gs=mt(Ku(),1);Nr=mt(vo(),1),Ln=mt(vo(),1),I=mt(ec()),yr=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Sc=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();Cc=yr&&window.Promise,Ac=Cc?Pc:Oc;Ri=yr&&!!(window.MSInputMethodContext&&document.documentMode),Ii=yr&&/MSIE 10/.test(navigator.userAgent);kc=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Mc=function(){function e(t,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:{};kc(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Ac(this.update.bind(this)),this.options=je({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(je({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){n.options.modifiers[a]=je({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return je({name:a},n.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&vs(a.onLoad)&&a.onLoad(n.reference,n.popper,n.options,a,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Mc(e,[{key:"update",value:function(){return Nc.call(this)}},{key:"destroy",value:function(){return Vc.call(this)}},{key:"enableEventListeners",value:function(){return Bc.call(this)}},{key:"disableEventListeners",value:function(){return _c.call(this)}}]),e}();cn.Utils=window.PopperUtils;cn.placements=Ms;cn.Defaults=ap;Li=cn,eo=mt(vo()),sp=["innerHTML","ownerDocument","style","attributes","nodeValue"],lp=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],up=["bigint","boolean","null","number","string","symbol","undefined"];j.array=Array.isArray;j.arrayOf=function(e,t){return!j.array(e)&&!j.function(t)?!1:e.every(function(r){return t(r)})};j.asyncGeneratorFunction=function(e){return pn(e)==="AsyncGeneratorFunction"};j.asyncFunction=ze("AsyncFunction");j.bigint=Ut("bigint");j.boolean=function(e){return e===!0||e===!1};j.date=ze("Date");j.defined=function(e){return!j.undefined(e)};j.domElement=function(e){return j.object(e)&&!j.plainObject(e)&&e.nodeType===1&&j.string(e.nodeName)&&sp.every(function(t){return t in e})};j.empty=function(e){return j.string(e)&&e.length===0||j.array(e)&&e.length===0||j.object(e)&&!j.map(e)&&!j.set(e)&&Object.keys(e).length===0||j.set(e)&&e.size===0||j.map(e)&&e.size===0};j.error=ze("Error");j.function=Ut("function");j.generator=function(e){return j.iterable(e)&&j.function(e.next)&&j.function(e.throw)};j.generatorFunction=ze("GeneratorFunction");j.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};j.iterable=function(e){return!j.nullOrUndefined(e)&&j.function(e[Symbol.iterator])};j.map=ze("Map");j.nan=function(e){return Number.isNaN(e)};j.null=function(e){return e===null};j.nullOrUndefined=function(e){return j.null(e)||j.undefined(e)};j.number=function(e){return Ut("number")(e)&&!j.nan(e)};j.numericString=function(e){return j.string(e)&&e.length>0&&!Number.isNaN(Number(e))};j.object=function(e){return!j.nullOrUndefined(e)&&(j.function(e)||typeof e=="object")};j.oneOf=function(e,t){return j.array(e)?e.indexOf(t)>-1:!1};j.plainFunction=ze("Function");j.plainObject=function(e){if(pn(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};j.primitive=function(e){return j.null(e)||pp(typeof e)};j.promise=ze("Promise");j.propertyOf=function(e,t,r){if(!j.object(e)||!t)return!1;var n=e[t];return j.function(r)?r(n):j.defined(n)};j.regexp=ze("RegExp");j.set=ze("Set");j.string=Ut("string");j.symbol=Ut("symbol");j.undefined=Ut("undefined");j.weakMap=ze("WeakMap");j.weakSet=ze("WeakSet");F=j;dp=Ds("function"),hp=function(e){return e===null},ji=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Ni=function(e){return!fp(e)&&!hp(e)&&(dp(e)||typeof e=="object")},fp=Ds("undefined"),to=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Cp={flip:{padding:20},preventOverflow:{padding:10}},Ap="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Rp="The error message is optional, but must be a string if provided.";$={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},tr=yt.createPortal!==void 0;Vs=function(e){Tr(r,e);var t=Er(r);function r(){return xr(this,r),t.apply(this,arguments)}return wr(r,[{key:"componentDidMount",value:function(){qe()&&(this.node||this.appendNode(),tr||this.renderPortal())}},{key:"componentDidUpdate",value:function(){qe()&&(tr||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!qe()||!this.node||(tr||yt.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var n=this.props,i=n.id,o=n.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!qe())return null;var n=this.props,i=n.children,o=n.setRef;if(this.node||this.appendNode(),tr)return yt.createPortal(i,this.node);var a=yt.unstable_renderSubtreeIntoContainer(this,i.length>1?m.createElement("div",null,i):i[0],this.node);return o(a),null}},{key:"renderReact16",value:function(){var n=this.props,i=n.hasChildren,o=n.placement,a=n.target;return i?this.renderPortal():a||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return tr?this.renderReact16():null}}]),r}(m.Component);we(Vs,"propTypes",{children:I.default.oneOfType([I.default.element,I.default.array]),hasChildren:I.default.bool,id:I.default.oneOfType([I.default.string,I.default.number]),placement:I.default.string,setRef:I.default.func.isRequired,target:I.default.oneOfType([I.default.object,I.default.string]),zIndex:I.default.number});Fs=function(e){Tr(r,e);var t=Er(r);function r(){return xr(this,r),t.apply(this,arguments)}return wr(r,[{key:"parentStyle",get:function(){var n=this.props,i=n.placement,o=n.styles,a=o.arrow.length,s={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(s.bottom=0,s.left=0,s.right=0,s.height=a):i.startsWith("bottom")?(s.left=0,s.right=0,s.top=0,s.height=a):i.startsWith("left")?(s.right=0,s.top=0,s.bottom=0):i.startsWith("right")&&(s.left=0,s.top=0),s}},{key:"render",value:function(){var n=this.props,i=n.placement,o=n.setArrowRef,a=n.styles,s=a.arrow,u=s.color,l=s.display,c=s.length,p=s.margin,d=s.position,h=s.spread,f={display:l,position:d},v,S=h,x=c;return i.startsWith("top")?(v="0,0 ".concat(S/2,",").concat(x," ").concat(S,",0"),f.bottom=0,f.marginLeft=p,f.marginRight=p):i.startsWith("bottom")?(v="".concat(S,",").concat(x," ").concat(S/2,",0 0,").concat(x),f.top=0,f.marginLeft=p,f.marginRight=p):i.startsWith("left")?(x=h,S=c,v="0,0 ".concat(S,",").concat(x/2," 0,").concat(x),f.right=0,f.marginTop=p,f.marginBottom=p):i.startsWith("right")&&(x=h,S=c,v="".concat(S,",").concat(x," ").concat(S,",0 0,").concat(x/2),f.left=0,f.marginTop=p,f.marginBottom=p),m.createElement("div",{className:"__floater__arrow",style:this.parentStyle},m.createElement("span",{ref:o,style:f},m.createElement("svg",{width:S,height:x,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m.createElement("polygon",{points:v,fill:u}))))}}]),r}(m.Component);we(Fs,"propTypes",{placement:I.default.string.isRequired,setArrowRef:I.default.func.isRequired,styles:I.default.object.isRequired});Vp=["color","height","width"];Bs.propTypes={handleClick:I.default.func.isRequired,styles:I.default.object.isRequired};zs.propTypes={content:I.default.node.isRequired,footer:I.default.node,handleClick:I.default.func.isRequired,open:I.default.bool,positionWrapper:I.default.bool.isRequired,showCloseButton:I.default.bool.isRequired,styles:I.default.object.isRequired,title:I.default.node};_s=function(e){Tr(r,e);var t=Er(r);function r(){return xr(this,r),t.apply(this,arguments)}return wr(r,[{key:"style",get:function(){var n=this.props,i=n.disableAnimation,o=n.component,a=n.placement,s=n.hideArrow,u=n.status,l=n.styles,c=l.arrow.length,p=l.floater,d=l.floaterCentered,h=l.floaterClosing,f=l.floaterOpening,v=l.floaterWithAnimation,S=l.floaterWithComponent,x={};return s||(a.startsWith("top")?x.padding="0 0 ".concat(c,"px"):a.startsWith("bottom")?x.padding="".concat(c,"px 0 0"):a.startsWith("left")?x.padding="0 ".concat(c,"px 0 0"):a.startsWith("right")&&(x.padding="0 0 0 ".concat(c,"px"))),[$.OPENING,$.OPEN].indexOf(u)!==-1&&(x=ne(ne({},x),f)),u===$.CLOSING&&(x=ne(ne({},x),h)),u===$.OPEN&&!i&&(x=ne(ne({},x),v)),a==="center"&&(x=ne(ne({},x),d)),o&&(x=ne(ne({},x),S)),ne(ne({},p),x)}},{key:"render",value:function(){var n=this.props,i=n.component,o=n.handleClick,a=n.hideArrow,s=n.setFloaterRef,u=n.status,l={},c=["__floater"];return i?m.isValidElement(i)?l.content=m.cloneElement(i,{closeFn:o}):l.content=i({closeFn:o}):l.content=m.createElement(zs,this.props),u===$.OPEN&&c.push("__floater__open"),a||(l.arrow=m.createElement(Fs,this.props)),m.createElement("div",{ref:s,className:c.join(" "),style:this.style},m.createElement("div",{className:"__floater__body"},l.content,l.arrow))}}]),r}(m.Component);we(_s,"propTypes",{component:I.default.oneOfType([I.default.func,I.default.element]),content:I.default.node,disableAnimation:I.default.bool.isRequired,footer:I.default.node,handleClick:I.default.func.isRequired,hideArrow:I.default.bool.isRequired,open:I.default.bool,placement:I.default.string.isRequired,positionWrapper:I.default.bool.isRequired,setArrowRef:I.default.func.isRequired,setFloaterRef:I.default.func.isRequired,showCloseButton:I.default.bool,status:I.default.string.isRequired,styles:I.default.object.isRequired,title:I.default.node});Hs=function(e){Tr(r,e);var t=Er(r);function r(){return xr(this,r),t.apply(this,arguments)}return wr(r,[{key:"render",value:function(){var n=this.props,i=n.children,o=n.handleClick,a=n.handleMouseEnter,s=n.handleMouseLeave,u=n.setChildRef,l=n.setWrapperRef,c=n.style,p=n.styles,d;if(i)if(m.Children.count(i)===1)if(!m.isValidElement(i))d=m.createElement("span",null,i);else{var h=F.function(i.type)?"innerRef":"ref";d=m.cloneElement(m.Children.only(i),we({},h,u))}else d=i;return d?m.createElement("span",{ref:l,style:ne(ne({},p),c),onClick:o,onMouseEnter:a,onMouseLeave:s},d):null}}]),r}(m.Component);we(Hs,"propTypes",{children:I.default.node,handleClick:I.default.func.isRequired,handleMouseEnter:I.default.func.isRequired,handleMouseLeave:I.default.func.isRequired,setChildRef:I.default.func.isRequired,setWrapperRef:I.default.func.isRequired,style:I.default.object,styles:I.default.object.isRequired});Fp={zIndex:100};zp=["arrow","flip","offset"],_p=["position","top","right","bottom","left"],Oo=function(e){Tr(r,e);var t=Er(r);function r(n){var i;return xr(this,r),i=t.call(this,n),we(Qe(i),"setArrowRef",function(o){i.arrowRef=o}),we(Qe(i),"setChildRef",function(o){i.childRef=o}),we(Qe(i),"setFloaterRef",function(o){i.floaterRef=o}),we(Qe(i),"setWrapperRef",function(o){i.wrapperRef=o}),we(Qe(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===$.OPENING?$.OPEN:$.IDLE},function(){var s=i.state.status;a(s===$.OPEN?"open":"close",i.props)})}),we(Qe(i),"handleClick",function(){var o=i.props,a=o.event,s=o.open;if(!F.boolean(s)){var u=i.state,l=u.positionWrapper,c=u.status;(i.event==="click"||i.event==="hover"&&l)&&(Vr({title:"click",data:[{event:a,status:c===$.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),we(Qe(i),"handleMouseEnter",function(){var o=i.props,a=o.event,s=o.open;if(!(F.boolean(s)||Vn())){var u=i.state.status;i.event==="hover"&&u===$.IDLE&&(Vr({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),we(Qe(i),"handleMouseLeave",function(){var o=i.props,a=o.event,s=o.eventDelay,u=o.open;if(!(F.boolean(u)||Vn())){var l=i.state,c=l.status,p=l.positionWrapper;i.event==="hover"&&(Vr({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),s?[$.OPENING,$.OPEN].indexOf(c)!==-1&&!p&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle($.IDLE))}}),i.state={currentPlacement:n.placement,needsUpdate:!1,positionWrapper:n.wrapperOptions.position&&!!n.target,status:$.INIT,statusWrapper:$.INIT},i._isMounted=!1,i.hasMounted=!1,qe()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return wr(r,[{key:"componentDidMount",value:function(){if(qe()){var n=this.state.positionWrapper,i=this.props,o=i.children,a=i.open,s=i.target;this._isMounted=!0,Vr({title:"init",data:{hasChildren:!!o,hasTarget:!!s,isControlled:F.boolean(a),positionWrapper:n,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&s&&F.boolean(a)}}},{key:"componentDidUpdate",value:function(n,i){if(qe()){var o=this.props,a=o.autoOpen,s=o.open,u=o.target,l=o.wrapperOptions,c=Tp(i,this.state),p=c.changedFrom,d=c.changed;if(n.open!==s){var h;F.boolean(s)&&(h=s?$.OPENING:$.CLOSING),this.toggle(h)}(n.wrapperOptions.position!==l.position||n.target!==u)&&this.changeWrapperPosition(this.props),d("status",$.IDLE)&&s?this.toggle($.OPEN):p("status",$.INIT,$.IDLE)&&a&&this.toggle($.OPEN),this.popper&&d("status",$.OPENING)&&this.popper.instance.update(),this.floaterRef&&(d("status",$.OPENING)||d("status",$.CLOSING))&&Np(this.floaterRef,"transitionend",this.handleTransitionEnd),d("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){qe()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,a=this.props,s=a.disableFlip,u=a.getPopper,l=a.hideArrow,c=a.offset,p=a.placement,d=a.wrapperOptions,h=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:$.IDLE});else if(i&&this.floaterRef){var f=this.options,v=f.arrow,S=f.flip,x=f.offset,b=js(f,zp);new Li(i,this.floaterRef,{placement:p,modifiers:ne({arrow:ne({enabled:!l,element:this.arrowRef},v),flip:ne({enabled:!s,behavior:h},S),offset:ne({offset:"0, ".concat(c,"px")},x)},b),onCreate:function(P){var O;if(n.popper=P,!((O=n.floaterRef)!==null&&O!==void 0&&O.isConnected)){n.setState({needsUpdate:!0});return}u(P,"floater"),n._isMounted&&n.setState({currentPlacement:P.placement,status:$.IDLE}),p!==P.placement&&setTimeout(function(){P.instance.update()},1)},onUpdate:function(P){n.popper=P;var O=n.state.currentPlacement;n._isMounted&&P.placement!==O&&n.setState({currentPlacement:P.placement})}})}if(o){var y=F.undefined(d.offset)?0:d.offset;new Li(this.target,this.wrapperRef,{placement:d.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(y,"px")},flip:{enabled:!1}},onCreate:function(P){n.wrapperPopper=P,n._isMounted&&n.setState({statusWrapper:$.IDLE}),u(P,"wrapper"),p!==P.placement&&setTimeout(function(){P.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var n=this;this.floaterRefInterval=setInterval(function(){var i;(i=n.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(n.floaterRefInterval),n.setState({needsUpdate:!1}),n.initPopper())},50)}},{key:"changeWrapperPosition",value:function(n){var i=n.target,o=n.wrapperOptions;this.setState({positionWrapper:o.position&&!!i})}},{key:"toggle",value:function(n){var i=this.state.status,o=i===$.OPEN?$.CLOSING:$.OPENING;F.undefined(n)||(o=n),this.setState({status:o})}},{key:"debug",get:function(){var n=this.props.debug;return n||qe()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var n=this.props,i=n.disableHoverToClick,o=n.event;return o==="hover"&&Vn()&&!i?"click":o}},{key:"options",get:function(){var n=this.props.options;return(0,eo.default)(Cp,n||{})}},{key:"styles",get:function(){var n=this,i=this.state,o=i.status,a=i.positionWrapper,s=i.statusWrapper,u=this.props.styles,l=(0,eo.default)(Bp(u),u);if(a){var c;[$.IDLE].indexOf(o)===-1||[$.IDLE].indexOf(s)===-1?c=l.wrapperPosition:c=this.wrapperPopper.styles,l.wrapper=ne(ne({},l.wrapper),c)}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=ne(ne({},l.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},a||(_p.forEach(function(d){n.wrapperStyles[d]=p[d]}),l.wrapper=ne(ne({},l.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!qe())return null;var n=this.props.target;return n?F.domElement(n)?n:document.querySelector(n):this.childRef||this.wrapperRef}},{key:"render",value:function(){var n=this.state,i=n.currentPlacement,o=n.positionWrapper,a=n.status,s=this.props,u=s.children,l=s.component,c=s.content,p=s.disableAnimation,d=s.footer,h=s.hideArrow,f=s.id,v=s.open,S=s.showCloseButton,x=s.style,b=s.target,y=s.title,P=m.createElement(Hs,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:x,styles:this.styles.wrapper},u),O={};return o?O.wrapperInPortal=P:O.wrapperAsChildren=P,m.createElement("span",null,m.createElement(Vs,{hasChildren:!!u,id:f,placement:i,setRef:this.setFloaterRef,target:b,zIndex:this.styles.options.zIndex},m.createElement(_s,{component:l,content:c,disableAnimation:p,footer:d,handleClick:this.handleClick,hideArrow:h||i==="center",open:v,placement:i,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:a,styles:this.styles,title:y}),O.wrapperInPortal),O.wrapperAsChildren)}}]),r}(m.Component);we(Oo,"propTypes",{autoOpen:I.default.bool,callback:I.default.func,children:I.default.node,component:Wi(I.default.oneOfType([I.default.func,I.default.element]),function(e){return!e.content}),content:Wi(I.default.node,function(e){return!e.component}),debug:I.default.bool,disableAnimation:I.default.bool,disableFlip:I.default.bool,disableHoverToClick:I.default.bool,event:I.default.oneOf(["hover","click"]),eventDelay:I.default.number,footer:I.default.node,getPopper:I.default.func,hideArrow:I.default.bool,id:I.default.oneOfType([I.default.string,I.default.number]),offset:I.default.number,open:I.default.bool,options:I.default.object,placement:I.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:I.default.bool,style:I.default.object,styles:I.default.object,target:I.default.oneOfType([I.default.object,I.default.string]),title:I.default.node,wrapperOptions:I.default.shape({offset:I.default.number,placement:I.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:I.default.bool})});we(Oo,"defaultProps",{autoOpen:!1,callback:qi,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:qi,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});Hp=mt(tc(),1),Up=Object.defineProperty,Wp=(e,t,r)=>t in e?Up(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t,r)=>(Wp(e,typeof t!="symbol"?t+"":t,r),r),ee={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ve={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},X={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Q={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};rr=Kt!==void 0;td={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},qs={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},rd={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:qs,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},nd={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},od={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},nr={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Xi={borderRadius:4,position:"absolute"};Gs={action:"init",controlled:!1,index:0,lifecycle:X.INIT,origin:null,size:0,status:Q.IDLE},Qi=Tc(ys(Gs,"controlled","size")),sd=class{constructor(e){V(this,"beaconPopper"),V(this,"tooltipPopper"),V(this,"data",new Map),V(this,"listener"),V(this,"store",new Map),V(this,"addListener",i=>{this.listener=i}),V(this,"setSteps",i=>{let{size:o,status:a}=this.getState(),s={size:i.length,status:a};this.data.set("steps",i),a===Q.WAITING&&!o&&i.length&&(s.status=Q.RUNNING),this.setState(s)}),V(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),V(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),V(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),V(this,"close",(i=null)=>{let{index:o,status:a}=this.getState();a===Q.RUNNING&&this.setState({...this.getNextState({action:ee.CLOSE,index:o+1,origin:i})})}),V(this,"go",i=>{let{controlled:o,status:a}=this.getState();if(o||a!==Q.RUNNING)return;let s=this.getSteps()[i];this.setState({...this.getNextState({action:ee.GO,index:i}),status:s?a:Q.FINISHED})}),V(this,"info",()=>this.getState()),V(this,"next",()=>{let{index:i,status:o}=this.getState();o===Q.RUNNING&&this.setState(this.getNextState({action:ee.NEXT,index:i+1}))}),V(this,"open",()=>{let{status:i}=this.getState();i===Q.RUNNING&&this.setState({...this.getNextState({action:ee.UPDATE,lifecycle:X.TOOLTIP})})}),V(this,"prev",()=>{let{index:i,status:o}=this.getState();o===Q.RUNNING&&this.setState({...this.getNextState({action:ee.PREV,index:i-1})})}),V(this,"reset",(i=!1)=>{let{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:ee.RESET,index:0}),status:i?Q.RUNNING:Q.READY})}),V(this,"skip",()=>{let{status:i}=this.getState();i===Q.RUNNING&&this.setState({action:ee.SKIP,lifecycle:X.INIT,status:Q.SKIPPED})}),V(this,"start",i=>{let{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:ee.START,index:N.number(i)?i:o},!0),status:a?Q.RUNNING:Q.WAITING})}),V(this,"stop",(i=!1)=>{let{index:o,status:a}=this.getState();[Q.FINISHED,Q.SKIPPED].includes(a)||this.setState({...this.getNextState({action:ee.STOP,index:o+(i?1:0)}),status:Q.PAUSED})}),V(this,"update",i=>{var o,a;if(!Zp(i,Qi))throw new Error(`State is not valid. Valid keys: ${Qi.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:ee.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});let{continuous:t=!1,stepIndex:r,steps:n=[]}=e??{};this.setState({action:ee.INIT,controlled:N.number(r),continuous:t,index:N.number(r)?r:0,lifecycle:X.INIT,origin:null,status:n.length?Q.READY:Q.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(n)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Gs}}getNextState(e,t=!1){var r,n,i,o,a;let{action:s,controlled:u,index:l,size:c,status:p}=this.getState(),d=N.number(e.index)?e.index:l,h=u&&!t?l:Math.min(Math.max(d,0),c);return{action:(r=e.action)!=null?r:s,controlled:u,index:h,lifecycle:(n=e.lifecycle)!=null?n:X.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:c,status:h===c?Q.FINISHED:(a=e.status)!=null?a:p}}getSteps(){let e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){let t=JSON.stringify(e),r=JSON.stringify(this.getState());return t!==r}setState(e,t=!1){let r=this.getState(),{action:n,index:i,lifecycle:o,origin:a=null,size:s,status:u}={...r,...e};this.store.set("action",n),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",u),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};ud=class{constructor(e,t){if(V(this,"element"),V(this,"options"),V(this,"canBeTabbed",r=>{let{tabIndex:n}=r;return n===null||n<0?!1:this.canHaveFocus(r)}),V(this,"canHaveFocus",r=>{let n=/input|select|textarea|button|object/,i=r.nodeName.toLowerCase();return(n.test(i)&&!r.getAttribute("disabled")||i==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),V(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),V(this,"handleKeyDown",r=>{let{code:n="Tab"}=this.options;r.code===n&&this.interceptTab(r)}),V(this,"interceptTab",r=>{r.preventDefault();let n=this.findValidTabElements(),{shiftKey:i}=r;if(!n.length)return;let o=document.activeElement?n.indexOf(document.activeElement):0;o===-1||!i&&o+1===n.length?o=0:i&&o===0?o=n.length-1:o+=i?-1:1,n[o].focus()}),V(this,"isHidden",r=>{let n=r.offsetWidth<=0&&r.offsetHeight<=0,i=window.getComputedStyle(r);return n&&!r.innerHTML?!0:n&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),V(this,"isVisible",r=>{let n=r;for(;n;)if(n instanceof HTMLElement){if(n===document.body)break;if(this.isHidden(n))return!1;n=n.parentNode}return!0}),V(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),V(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)))}),V(this,"setFocus",()=>{let{selector:r}=this.options;if(!r)return;let n=this.element.querySelector(r);n&&window.requestAnimationFrame(()=>this.checkFocus(n))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},cd=class extends nt{constructor(e){if(super(e),V(this,"beacon",null),V(this,"setBeaconRef",n=>{this.beacon=n}),e.beaconComponent)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode(` + @keyframes joyride-beacon-inner { + 20% { + opacity: 0.9; + } + + 90% { + opacity: 0.7; + } + } + + @keyframes joyride-beacon-outer { + 0% { + transform: scale(1); + } + + 45% { + opacity: 0.7; + transform: scale(0.75); + } + + 100% { + opacity: 0.9; + transform: scale(1); + } + } + `)),t.appendChild(r)}componentDidMount(){let{shouldFocus:e}=this.props;N.domElement(this.beacon)||console.warn("beacon is not a valid DOM element"),setTimeout(()=>{N.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){let e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){let{beaconComponent:e,continuous:t,index:r,isLastStep:n,locale:i,onClickOrHover:o,size:a,step:s,styles:u}=this.props,l=N.string(i.open)?i.open:(0,Hp.default)(i.open),c={"aria-label":l,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:l},p;return e?p=J(e,{continuous:t,index:r,isLastStep:n,size:a,step:s,...c}):p=J("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:u.beacon,type:"button",...c},J("span",{style:u.beaconInner}),J("span",{style:u.beaconOuter})),p}};dd=pd,hd=class extends nt{constructor(){super(...arguments),V(this,"isActive",!1),V(this,"resizeTimeout"),V(this,"scrollTimeout"),V(this,"scrollParent"),V(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),V(this,"handleMouseMove",e=>{let{mouseOverSpotlight:t}=this.state,{height:r,left:n,position:i,top:o,width:a}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,u=i==="fixed"?e.clientX:e.pageX,l=s>=o&&s<=o+r,c=u>=n&&u<=n+a&&l;c!==t&&this.updateState({mouseOverSpotlight:c})}),V(this,"handleScroll",()=>{let{target:e}=this.props,t=ut(e);if(this.scrollParent!==document){let{isScrolling:r}=this.state;r||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else hr(t,"sticky")&&this.updateState({})}),V(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){let{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:n}=this.props,i=ut(n);this.scrollParent=dn(i??document.body,r,!0),this.isActive=!0,!t&&Sr(i,!0)&&dt({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;let{lifecycle:r,spotlightClicks:n}=this.props,{changed:i}=Xr(e,this.props);i("lifecycle",X.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{let{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(n&&r===X.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==X.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get spotlightStyles(){var e,t,r;let{showSpotlight:n}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:s,target:u}=this.props,l=ut(u),c=Us(l),p=hr(l),d=Kp(l,a,i);return{...Gi()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=c?.height)!=null?e:0)+a*2),left:Math.round(((t=c?.left)!=null?t:0)-a),opacity:n?1:0,pointerEvents:o?"none":"auto",position:p?"fixed":"absolute",top:d,transition:"opacity 0.2s",width:Math.round(((r=c?.width)!=null?r:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){let{mouseOverSpotlight:e,showSpotlight:t}=this.state,{disableOverlay:r,disableOverlayClose:n,lifecycle:i,onClickOverlay:o,placement:a,styles:s}=this.props;if(r||i!==X.TOOLTIP)return null;let u=s.overlay;Gi()&&(u=a==="center"?s.overlayLegacyCenter:s.overlayLegacy);let l={cursor:n?"default":"pointer",height:qp(),pointerEvents:e?"none":"auto",...u},c=a!=="center"&&t&&J(dd,{styles:this.spotlightStyles});if(Ws()==="safari"){let{mixBlendMode:p,zIndex:d,...h}=l;c=J("div",{style:{...h}},c),delete l.backgroundColor}return J("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:o,role:"presentation",style:l},c)}},fd=class extends nt{constructor(){super(...arguments),V(this,"node",null)}componentDidMount(){let{id:e}=this.props;st()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),rr||this.renderReact15())}componentDidUpdate(){st()&&(rr||this.renderReact15())}componentWillUnmount(){!st()||!this.node||(rr||oi(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!st())return;let{children:e}=this.props;this.node&&ii(this,e,this.node)}renderReact16(){if(!st()||!rr)return null;let{children:e}=this.props;return this.node?Kt(e,this.node):null}render(){return rr?this.renderReact16():null}};gd=md;vd=yd,bd=class extends nt{constructor(){super(...arguments),V(this,"handleClickBack",e=>{e.preventDefault();let{helpers:t}=this.props;t.prev()}),V(this,"handleClickClose",e=>{e.preventDefault();let{helpers:t}=this.props;t.close("button_close")}),V(this,"handleClickPrimary",e=>{e.preventDefault();let{continuous:t,helpers:r}=this.props;if(!t){r.close("button_primary");return}r.next()}),V(this,"handleClickSkip",e=>{e.preventDefault();let{helpers:t}=this.props;t.skip()}),V(this,"getElementsProps",()=>{let{continuous:e,isLastStep:t,setTooltipRef:r,step:n}=this.props,i=lt(n.locale.back),o=lt(n.locale.close),a=lt(n.locale.last),s=lt(n.locale.next),u=lt(n.locale.skip),l=e?s:o;return t&&(l=a),{backProps:{"aria-label":i,"data-action":"back",onClick:this.handleClickBack,role:"button",title:i},closeProps:{"aria-label":o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:o},primaryProps:{"aria-label":l,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:l},skipProps:{"aria-label":u,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){let{continuous:e,index:t,isLastStep:r,setTooltipRef:n,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:s,...u}=o,l;if(s){let c={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:i,step:u,setTooltipRef:n};l=J(s,{...c})}else l=J(vd,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:i,step:o});return l}},xd=class extends nt{constructor(){super(...arguments),V(this,"scope",null),V(this,"tooltip",null),V(this,"handleClickHoverBeacon",e=>{let{step:t,store:r}=this.props;e.type==="mouseenter"&&t.event!=="hover"||r.update({lifecycle:X.TOOLTIP})}),V(this,"handleClickOverlay",()=>{let{helpers:e,step:t}=this.props;t.disableOverlayClose||e.close("overlay")}),V(this,"setTooltipRef",e=>{this.tooltip=e}),V(this,"setPopper",(e,t)=>{var r;let{action:n,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&a.getPopper("tooltip")&&i===X.INIT&&a.update({action:n,lifecycle:X.READY}),(r=o.floaterProps)!=null&&r.getPopper&&o.floaterProps.getPopper(e,t)}),V(this,"renderTooltip",e=>{let{continuous:t,helpers:r,index:n,size:i,step:o}=this.props;return J(bd,{continuous:t,helpers:r,index:n,isLastStep:n+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){let{debug:e,index:t}=this.props;dt({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;let{action:r,callback:n,continuous:i,controlled:o,debug:a,helpers:s,index:u,lifecycle:l,status:c,step:p,store:d}=this.props,{changed:h,changedFrom:f}=Xr(e,this.props),v=s.info(),S=i&&r!==ee.CLOSE&&(u>0||r===ee.PREV),x=h("action")||h("index")||h("lifecycle")||h("status"),b=f("lifecycle",[X.TOOLTIP,X.INIT],X.INIT),y=h("action",[ee.NEXT,ee.PREV,ee.SKIP,ee.CLOSE]),P=o&&u===e.index;if(y&&(b||P)&&n({...v,index:e.index,lifecycle:X.COMPLETE,step:e.step,type:Ve.STEP_AFTER}),p.placement==="center"&&c===Q.RUNNING&&h("index")&&r!==ee.START&&l===X.INIT&&d.update({lifecycle:X.READY}),x){let O=ut(p.target),W=!!O;W&&Xp(O)?(f("status",Q.READY,Q.RUNNING)||f("lifecycle",X.INIT,X.READY))&&n({...v,step:p,type:Ve.STEP_BEFORE}):(console.warn(W?"Target not visible":"Target not mounted",p),n({...v,type:Ve.TARGET_NOT_FOUND,step:p}),o||d.update({index:u+(r===ee.PREV?-1:1)}))}f("lifecycle",X.INIT,X.READY)&&d.update({lifecycle:Yi(p)||S?X.TOOLTIP:X.BEACON}),h("index")&&dt({title:`step:${l}`,data:[{key:"props",value:this.props}],debug:a}),h("lifecycle",X.BEACON)&&n({...v,step:p,type:Ve.BEACON}),h("lifecycle",X.TOOLTIP)&&(n({...v,step:p,type:Ve.TOOLTIP}),this.tooltip&&(this.scope=new ud(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),f("lifecycle",[X.TOOLTIP,X.INIT],X.INIT)&&((t=this.scope)==null||t.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){let{lifecycle:e,step:t}=this.props;return Yi(t)||e===X.TOOLTIP}render(){let{continuous:e,debug:t,index:r,lifecycle:n,nonce:i,shouldScroll:o,size:a,step:s}=this.props,u=ut(s.target);return!Ys(s)||!N.domElement(u)?null:J("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},J(fd,{id:"react-joyride-portal"},J(hd,{...s,debug:t,lifecycle:n,onClickOverlay:this.handleClickOverlay})),J(Oo,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:s.placement,target:s.target},J(cd,{beaconComponent:s.beaconComponent,continuous:e,index:r,isLastStep:r+1===a,locale:s.locale,nonce:i,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:a,step:s,styles:s.styles})))}},Xs=class extends nt{constructor(e){super(e),V(this,"helpers"),V(this,"store"),V(this,"callback",a=>{let{callback:s}=this.props;N.function(s)&&s(a)}),V(this,"handleKeyboard",a=>{let{index:s,lifecycle:u}=this.state,{steps:l}=this.props,c=l[s];u===X.TOOLTIP&&a.code==="Escape"&&c&&!c.disableCloseOnEsc&&this.store.close("keyboard")}),V(this,"syncState",a=>{this.setState(a)});let{debug:t,getHelpers:r,run:n,stepIndex:i}=e;this.store=ld({...e,controlled:n&&N.number(i)}),this.helpers=this.store.getHelpers();let{addListener:o}=this.store;dt({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!st())return;let{debug:e,disableCloseOnEsc:t,run:r,steps:n}=this.props,{start:i}=this.store;Ki(n,e)&&r&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!st())return;let{action:r,controlled:n,index:i,lifecycle:o,status:a}=this.state,{debug:s,run:u,stepIndex:l,steps:c}=this.props,{stepIndex:p,steps:d}=e,{reset:h,setSteps:f,start:v,stop:S,update:x}=this.store,{changed:b}=Xr(e,this.props),{changed:y,changedFrom:P}=Xr(t,this.state),O=or(c[i],this.props),W=!Oe(d,c),B=N.number(l)&&b("stepIndex"),z=ut(O.target);if(W&&(Ki(c,s)?f(c):console.warn("Steps are not valid",c)),b("run")&&(u?v(l):S()),B){let te=N.number(p)&&p=0?v:0,n===Q.RUNNING&&Jp(v,{element:f,duration:a}).then(()=>{setTimeout(()=>{var b;(b=this.store.getPopper("tooltip"))==null||b.instance.update()},10)})}}render(){if(!st())return null;let{index:e,status:t}=this.state,{continuous:r=!1,debug:n=!1,nonce:i,scrollToFirstStep:o=!1,steps:a}=this.props,s;if(t===Q.RUNNING&&a[e]){let u=or(a[e],this.props);s=J(xd,{...this.state,callback:this.callback,continuous:r,debug:n,helpers:this.helpers,nonce:i,shouldScroll:!u.disableScrolling&&(e!==0||o),step:u,store:this.store})}return J("div",{className:"react-joyride"},s)}};V(Xs,"defaultProps",nd);wd=Xs;Ed=U.div(({width:e,height:t,left:r,top:n})=>({width:`${e}px`,height:`${t}px`,left:`${r}px`,top:`${n}px`,position:"relative",overflow:"hidden"}));Od=U.button` + all: unset; + box-sizing: border-box; + border: 0; + border-radius: 0.25rem; + cursor: pointer; + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0 0.75rem; + background: ${({theme:e,variant:t})=>t==="primary"?e.color.secondary:t==="secondary"?e.color.lighter:t==="outline"?"transparent":e.color.secondary}; + color: ${({theme:e,variant:t})=>t==="primary"?e.color.lightest:t==="secondary"||t==="outline"?e.darkest:e.color.lightest}; + box-shadow: ${({variant:e})=>e==="primary"?"none":e==="secondary"||e==="outline"?"#D9E8F2 0 0 0 1px inset":"none"}; + height: 32px; + font-size: 0.8125rem; + font-weight: 700; + font-family: ${({theme:e})=>e.typography.fonts.base}; + transition: background-color, box-shadow, opacity; + transition-duration: 0.16s; + transition-timing-function: ease-in-out; + text-decoration: none; + + &:hover { + background-color: ${({variant:e})=>e==="primary"?"#0b94eb":e==="secondary"?"#eef4f9":e==="outline"?"transparent":"#0b94eb"}; + } + + &:focus { + box-shadow: ${({variant:e})=>e==="primary"?"inset 0 0 0 1px rgba(0, 0, 0, 0.2)":e==="secondary"||e==="outline"?"inset 0 0 0 1px #0b94eb":"inset 0 0 0 2px rgba(0, 0, 0, 0.1)"}; + } +`,De=Qt(function({children:e,onClick:t,variant:r="primary",...n},i){return m.createElement(Od,{ref:i,onClick:t,variant:r,...n},e)}),Cd=U.div` + background: ${({theme:e})=>e.base==="dark"?"#292A2C":e.color.lightest}; + width: 260px; + padding: 15px; + border-radius: 5px; +`,Ad=U.div` + display: flex; + flex-direction: column; + align-items: flex-start; +`,Rd=U.div` + font-size: 13px; + line-height: 18px; + font-weight: 700; + color: ${({theme:e})=>e.color.defaultText}; +`,Id=U.p` + font-size: 13px; + line-height: 18px; + text-align: start; + color: ${({theme:e})=>e.color.defaultText}; + margin: 0; + margin-top: 5px; +`,kd=U.div` + display: flex; + justify-content: flex-end; + margin-top: 15px; +`,Md=({step:e,primaryProps:t,tooltipProps:r})=>m.createElement(Cd,{...r},m.createElement(Ad,null,e.title&&m.createElement(Rd,null,e.title),m.createElement(Id,null,e.content)),!e.hideNextButton&&m.createElement(kd,{id:"buttonNext"},m.createElement(De,{...t,...e.onNextButtonClick?{onClick:e.onNextButtonClick}:{}},"Next"))),Dd=U(kt)``,Ld=U.div` + display: flex; + flex-direction: row; + height: 100%; + max-height: 85vh; + + &:focus-visible { + outline: none; + } +`,jd=U.div` + position: relative; + flex: 1; + display: flex; + flex-direction: column; + background: white; + font-family: ${({theme:e})=>e.typography.fonts.base}; +`,Nd=U.div` + position: relative; + z-index: 1; + box-sizing: border-box; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 15px; + border-bottom: 1px solid rgba(0, 0, 0, 0.1); + height: 44px; +`,Vd=U.div` + display: flex; + align-items: center; + gap: 5px; + font-size: 13px; + line-height: 18px; + font-weight: bold; + color: ${({theme:e})=>e.color.darkest}; +`,Fd=U.div` + font-size: 13px; + line-height: 18px; + padding: 15px; + flex: 1; + display: flex; + flex-direction: column; + align-items: flex-end; + justify-content: space-between; + color: ${({theme:e})=>e.color.darker}; + + h3 { + font-size: 13px; + line-height: 18px; + font-weight: bold; + padding: 0; + margin: 0; + } +`,Wr=U.span(({theme:e})=>({display:"inline-flex",borderRadius:3,padding:"0 5px",marginBottom:-2,opacity:.8,fontFamily:e.typography.fonts.mono,fontSize:11,border:e.base==="dark"?e.color.darkest:e.color.lightest,color:e.base==="dark"?e.color.lightest:e.color.darkest,backgroundColor:e.base==="dark"?"black":e.color.light,boxSizing:"border-box",lineHeight:"17px"})),Fn=U.img` + max-width: 100%; + margin-top: 1em; +`,Bd=U.div` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 0; + overflow: hidden; + z-index: 0; + pointer-events: none; +`,zd=bt` + 0% { transform: translate(0px, 0px) } + 50% { transform: translate(120px, 0px) } + 100% { transform: translate(0px, 0px) } +`,_d=U.div` + position: absolute; + width: 350px; + height: 350px; + left: -160px; + top: -260px; + background: radial-gradient( + circle at center, + rgba(255, 119, 119, 1) 0%, + rgba(255, 119, 119, 0) 70% + ); + animation: ${zd} 8s linear infinite; + animation-timing-function: ease-in-out; + z-index: 2; +`,Hd=bt` + 0% { transform: translate(0px, 0px) } + 33% { transform: translate(-64px, 0px) } + 66% { transform: translate(120px, 0px) } + 100% { transform: translate(0px, 0px) } +`,Ud=U.div` + position: absolute; + width: 350px; + height: 350px; + left: -54px; + top: -250px; + background: radial-gradient( + circle at center, + rgba(253, 255, 147, 1) 0%, + rgba(253, 255, 147, 0) 70% + ); + animation: ${Hd} 12s linear infinite; + animation-timing-function: ease-in-out; + z-index: 3; +`,Wd=bt` + 0% { transform: translate(0px, 0px) } + 50% { transform: translate(-120px, 0px) } + 100% { transform: translate(0px, 0px) } +`,qd=U.div` + position: absolute; + width: 350px; + height: 350px; + left: 150px; + top: -220px; + background: radial-gradient( + circle at center, + rgba(119, 255, 247, 0.8) 0%, + rgba(119, 255, 247, 0) 70% + ); + animation: ${Wd} 4s linear infinite; + animation-timing-function: ease-in-out; + z-index: 4; +`,Fr=U.div` + box-sizing: border-box; + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin-top: 4px; +`,Yd=U.div` + margin-bottom: 4px; +`;Kd=U(kt)` + background: white; +`,Qd=U.div` + border-radius: 5px; + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + justify-content: space-between; +`,Jd=U.div` + display: flex; + flex: 1; + flex-direction: column; + align-items: center; + justify-content: center; +`,Zd=U.h1` + margin: 0; + margin-top: 20px; + margin-bottom: 5px; + color: ${({theme:e})=>e.color.darkest}; + font-weight: ${({theme:e})=>e.typography.weight.bold}; + font-size: ${({theme:e})=>e.typography.size.m1}px; + line-height: ${({theme:e})=>e.typography.size.m3}px; +`,$d=U.p` + margin: 0; + margin-bottom: 20px; + max-width: 320px; + text-align: center; + font-size: ${({theme:e})=>e.typography.size.s2}px; + font-weight: ${({theme:e})=>e.typography.weight.regular}; + line-height: ${({theme:e})=>e.typography.size.m1}px; + color: ${({theme:e})=>e.color.darker}; +`,eh=U.button` + all: unset; + cursor: pointer; + font-size: 13px; + color: #798186; + padding-bottom: 20px; + + &:focus-visible { + outline: auto; + } +`,th=U(mi)` + margin-left: 2px; + height: 10px; +`,rh=U.div` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + overflow: hidden; +`,nh=bt` + 0% { transform: translate(0px, 0px) } + 50% { transform: translate(-200px, 0px) } + 100% { transform: translate(0px, 0px) } +`,oh=U.div` + position: absolute; + width: 1200px; + height: 1200px; + left: -200px; + top: -900px; + background: radial-gradient( + circle at center, + rgba(253, 255, 147, 1) 0%, + rgba(253, 255, 147, 0) 70% + ); + animation: ${nh} 4s linear infinite; + animation-timing-function: ease-in-out; + z-index: 3; +`,ih=bt` + 0% { transform: translate(0px, 0px) } + 50% { transform: translate(400px, 0px) } + 100% { transform: translate(0px, 0px) } +`,ah=U.div` + position: absolute; + width: 1200px; + height: 1200px; + left: -600px; + top: -840px; + background: radial-gradient( + circle at center, + rgba(255, 119, 119, 1) 0%, + rgba(255, 119, 119, 0) 70% + ); + animation: ${ih} 6s linear infinite; + animation-timing-function: ease-in-out; + z-index: 2; +`,sh=bt` + 0% { transform: translate(600px, -40px) } + 50% { transform: translate(600px, -200px) } + 100% { transform: translate(600px, -40px) } +`,lh=U.div` + position: absolute; + width: 1200px; + height: 1200px; + left: -600px; + top: -840px; + background: radial-gradient( + circle at center, + rgba(119, 255, 247, 0.8) 0%, + rgba(119, 255, 247, 0) 70% + ); + animation: ${sh} 4s linear infinite; + animation-timing-function: ease-in-out; + z-index: 4; +`;U.h2` + color: #000; + font-weight: 700; + font-size: 20px; + line-height: 20px; +`;U.p` + font-size: 14px; + font-weight: 400; + line-height: 20px; + color: #454e54; +`;uh=({onProceed:e,skipOnboarding:t,container:r})=>m.createElement("div",{style:{zIndex:10}},m.createElement(Kd,{width:540,height:430,defaultOpen:!0,container:r},m.createElement(Qd,{"data-chromatic":"ignore"},m.createElement(Jd,null,m.createElement(Xd,null),m.createElement(Zd,null,"Welcome to Storybook"),m.createElement($d,null,"Storybook helps you develop UI components faster. Learn the basics in a few simple steps."),m.createElement(De,{style:{marginTop:4},onClick:e},"Start your 3 minute tour")),m.createElement(eh,{onClick:t},"Skip tour",m.createElement(th,null)),m.createElement(rh,null,m.createElement(oh,null),m.createElement(ah,null),m.createElement(lh,null))))),Ji=mt(rc());hh=["x","y","top","bottom","left","right","width","height"],fh=(e,t)=>hh.every(r=>e[r]===t[r]),Js=ot({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),hn=ot({}),Co=ot(null),fn=typeof document<"u",mh=fn?Dr:de,Zs=ot({strict:!1}),Ao=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),gh="framerAppearId",$s="data-"+Ao(gh),el={skipAnimations:!1,useManualTiming:!1},Zi=class{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);t!==-1&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};Br=["prepare","read","update","preRender","render","postRender"],vh=40;({schedule:Ro,cancel:xS}=tl(queueMicrotask,!1));Io=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...Io];ea={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},mr={};for(let e in ea)mr[e]={isEnabled:t=>ea[e].some(r=>!!t[r])};nl=ot({}),ol=ot({}),Sh=Symbol.for("motionComponentSymbol");Ah=["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"];Zr={};Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ct=new Set(Pr);Ae=e=>!!(e&&e.getVelocity),Ih={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kh=Pr.length;al=e=>t=>typeof t=="string"&&t.startsWith(e),sl=al("--"),Dh=al("var(--"),$r=e=>Dh(e)&&Lh.test(e),Lh=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,jh=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ht=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},ur={...Wt,transform:e=>ht(0,1,e)},zr={...Wt,default:1},cr=e=>Math.round(e*1e5)/1e5,Do=/(-)?([\d]*\.?[\d])+/g,Nh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Vh=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;Cr=e=>({test:t=>Or(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),it=Cr("deg"),Xe=Cr("%"),_=Cr("px"),Fh=Cr("vh"),Bh=Cr("vw"),ta={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(e*100)},ra={...Wt,transform:Math.round},ll={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:zr,scaleX:zr,scaleY:zr,scaleZ:zr,skew:it,skewX:it,skewY:it,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:ur,originX:ta,originY:ta,originZ:_,zIndex:ra,fillOpacity:ur,strokeOpacity:ur,numOctaves:ra};jo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});Uh=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"]);cl=e=>!en(e);try{Wh((ic(),Gu(ds)).default)}catch{}Gh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xh={offset:"strokeDashoffset",array:"strokeDasharray"};pl=()=>({...jo(),attrs:{}}),Vo=e=>typeof e=="string"&&e.toLowerCase()==="svg";hl=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"]);tn=e=>Array.isArray(e),$h=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ef=e=>tn(e)?e[e.length-1]||0:e;gl=e=>(t,r)=>{let n=be(hn),i=be(Co),o=()=>tf(e,t,n,i);return r?o():Zh(o)};fe=e=>e,{schedule:le,cancel:tt,state:ve,steps:Bn}=tl(typeof requestAnimationFrame<"u"?requestAnimationFrame:fe,!0),nf={useVisualState:gl({scrapeMotionValuesFromProps:ml,createRenderState:pl,onMount:(e,t,{renderState:r,latestValues:n})=>{le.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{No(r,n,{enableHardwareAcceleration:!1},Vo(t.tagName),e.transformTemplate),fl(t,r)})}})},of={useVisualState:gl({scrapeMotionValuesFromProps:Fo,createRenderState:jo})};yl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;sf=e=>t=>yl(t)&&e(t,yn(t));lf=(e,t)=>r=>t(e(r)),$e=(...e)=>e.reduce(lf);oa=vl("dragHorizontal"),ia=vl("dragVertical");gt=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};uf=class extends gt{mount(){this.unmount=$e(aa(this.node,!0),aa(this.node,!1))}unmount(){}},cf=class extends gt{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=$e(Je(this.node.current,"focus",()=>this.onFocus()),Je(this.node.current,"blur",()=>this.onBlur()))}unmount(){}},wl=(e,t)=>t?e===t?!0:wl(e,t.parentElement):!1;pf=class extends gt{constructor(){super(...arguments),this.removeStartListeners=fe,this.removeEndListeners=fe,this.removeAccessibleListeners=fe,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=Ze(window,"pointerup",(o,a)=>{if(!this.checkPressEnd())return;let{onTap:s,onTapCancel:u,globalTapTarget:l}=this.node.getProps();le.update(()=>{!l&&!wl(this.node.current,o.target)?u&&u(o,a):s&&s(o,a)})},{passive:!(r.onTap||r.onPointerUp)}),i=Ze(window,"pointercancel",(o,a)=>this.cancelPress(o,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=$e(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=i=>{if(i.key!=="Enter"||this.isPressing)return;let o=a=>{a.key!=="Enter"||!this.checkPressEnd()||zn("up",(s,u)=>{let{onTap:l}=this.node.getProps();l&&le.update(()=>l(s,u))})};this.removeEndListeners(),this.removeEndListeners=Je(this.node.current,"keyup",o),zn("down",(a,s)=>{this.startPress(a,s)})},t=Je(this.node.current,"keydown",e),r=()=>{this.isPressing&&zn("cancel",(i,o)=>this.cancelPress(i,o))},n=Je(this.node.current,"blur",r);this.removeAccessibleListeners=$e(t,n)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&le.update(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xl()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&le.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=Ze(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Je(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$e(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}},no=new WeakMap,_n=new WeakMap,df=e=>{let t=no.get(e.target);t&&t(e)},hf=e=>{e.forEach(df)};gf={some:0,all:1},yf=class extends gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:gf[n]},a=s=>{let{isIntersecting:u}=s;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:l,onViewportLeave:c}=this.node.getProps(),p=u?l:c;p&&p(s)};return mf(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(vf(e,t))&&this.startObserver()}unmount(){}};bf={inView:{Feature:yf},tap:{Feature:pf},focus:{Feature:cf},hover:{Feature:uf}};Ar=fe,Fe=fe;Ar=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Fe=(e,t)=>{if(!e)throw new Error(t)};ct=e=>e*1e3,et=e=>e/1e3,Tf={current:!1},El=e=>Array.isArray(e)&&typeof e[0]=="number";sr=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Pl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sr([0,.65,.55,1]),circOut:sr([.55,0,1,.45]),backIn:sr([.31,.01,.66,-.59]),backOut:sr([.33,1.53,.69,.99])};Cl=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Pf=1e-7,Of=12;Af=Rr(.42,0,1,1),Rf=Rr(0,0,.58,1),Al=Rr(.42,0,.58,1),If=e=>Array.isArray(e)&&typeof e[0]!="number",Rl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Il=e=>t=>1-e(1-t),zo=e=>1-Math.sin(Math.acos(e)),kl=Il(zo),kf=Rl(zo),Ml=Rr(.33,1.53,.69,.99),_o=Il(Ml),Mf=Rl(_o),Df=e=>(e*=2)<1?.5*_o(e):.5*(2-Math.pow(2,-10*(e-1))),sa={linear:fe,easeIn:Af,easeInOut:Al,easeOut:Rf,circIn:zo,circInOut:kf,circOut:kl,backIn:_o,backInOut:Mf,backOut:Ml,anticipate:Df},la=e=>{if(Array.isArray(e)){Fe(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Rr(t,r,n,i)}else if(typeof e=="string")return Fe(sa[e]!==void 0,`Invalid easing type '${e}'`),sa[e];return e},gr=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n},se=(e,t,r)=>e+(t-e)*r;Ho=(e,t)=>r=>!!(Or(r)&&Vh.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Dl=(e,t,r)=>n=>{if(!Or(n))return n;let[i,o,a,s]=n.match(Do);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},jf=e=>ht(0,255,e),Un={...Wt,transform:e=>Math.round(jf(e))},St={test:Ho("rgb","red"),parse:Dl("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Un.transform(e)+", "+Un.transform(t)+", "+Un.transform(r)+", "+cr(ur.transform(n))+")"};oo={test:Ho("#"),parse:Nf,transform:St.transform},Dt={test:Ho("hsl","hue"),parse:Dl("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Xe.transform(cr(t))+", "+Xe.transform(cr(r))+", "+cr(ur.transform(n))+")"},Wn=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Vf=[oo,St,Dt],Ff=e=>Vf.find(t=>t.test(e));ca=(e,t)=>{let r=ua(e),n=ua(t),i={...r};return o=>(i.red=Wn(r.red,n.red,o),i.green=Wn(r.green,n.green,o),i.blue=Wn(r.blue,n.blue,o),i.alpha=se(r.alpha,n.alpha,o),St.transform(i))},xe={test:e=>St.test(e)||oo.test(e)||Dt.test(e),parse:e=>St.test(e)?St.parse(e):Dt.test(e)?Dt.parse(e):oo.parse(e),transform:e=>Or(e)?e:e.hasOwnProperty("red")?St.transform(e):Dt.transform(e)};Ll="number",jl="color",zf="var",_f="var(",pa="${}",da=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;Hf=e=>typeof e=="number"?0:e;ft={test:Bf,parse:Nl,createTransformer:Vl,getAnimatableNone:Uf};Gf=(e,t)=>{let r=ft.createTransformer(t),n=rn(e),i=rn(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?$e(Fl(Yf(n,i),i.values),r):(Ar(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),io(e,t))};em=5;qn=.001,tm=.01,ha=10,rm=.05,nm=1;im=12;sm=["duration","bounce"],lm=["stiffness","damping","mass"];Pt={now:()=>(Yr===void 0&&Pt.set(ve.isProcessing||el.useManualTiming?ve.timestamp:performance.now()),Yr),set:e=>{Yr=e,queueMicrotask(cm)}},pm=e=>{let t=({timestamp:r})=>e(r);return{start:()=>le.update(t,!0),stop:()=>tt(t),now:()=>ve.isProcessing?ve.timestamp:Pt.now()}};dm={decay:ma,inertia:ma,tween:nn,keyframes:nn,spring:Hl},hm=e=>e/100;mm=fm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gm=new Set(["opacity","clipPath","filter","transform"]),_r=10,ym=2e4,vm=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Sl(t.ease);wm={type:"spring",stiffness:500,damping:25,restSpeed:10},Tm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Em={type:"keyframes",duration:.8},Sm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pm=(e,{keyframes:t})=>t.length>2?Em:Ct.has(e)?e.startsWith("scale")?Tm(t[1]):wm:Sm,so=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url(")),Om=new Set(["brightness","contrast","saturate","opacity"]);Am=/([a-z-]*)\(.*?\)/g,lo={...ft,getAnimatableNone:e=>{let t=e.match(Am);return t?t.map(Cm).join(" "):e}},Rm={...ll,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:lo,WebkitFilter:lo},Wo=e=>Rm[e];Wl=e=>/^0[^.\s]+$/.test(e);Yo=(e,t,r,n={})=>i=>{let o=qo(n,e)||{},a=o.delay||n.delay||0,{elapsed:s=0}=n;s=s-ct(a);let u=km(t,e,r,o),l=u[0],c=u[u.length-1],p=so(e,l),d=so(e,c);Ar(p===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Mm(o)||(h={...h,...Pm(e,h)}),h.duration&&(h.duration=ct(h.duration)),h.repeatDelay&&(h.repeatDelay=ct(h.repeatDelay)),!p||!d||Tf.current||o.type===!1||el.skipAnimations)return xm(h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let f=bm(t,e,h);if(f)return f}return on(h)};ql=e=>/^\-?\d*\.?\d+$/.test(e);Ko=class{constructor(){this.subscriptions=[]}add(e){return Go(this.subscriptions,e),()=>Xo(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,t,r);else for(let i=0;i!isNaN(parseFloat(e)),Lm=class{constructor(e,t={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,n=!0)=>{let i=Pt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=Dm(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Pt.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return Qo(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ko);let r=this.events[e].add(t);return e==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=Pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>va)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,va);return zl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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()}};Yl=e=>t=>t.test(e),jm={test:e=>e==="auto",parse:e=>e},Gl=[Wt,_,Xe,it,Bh,Fh,jm],ir=e=>Gl.find(Yl(e)),Nm=[...Gl,xe,ft],Vm=e=>Nm.find(Yl(e));Xm=[...Io].reverse(),Km=Io.length;eg=class extends gt{constructor(e){super(e),e.animationState||(e.animationState=Jm(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),mn(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}},tg=0,rg=class extends gt{constructor(){super(...arguments),this.id=tg++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}},ng={animation:{Feature:eg},exit:{Feature:rg}},ba=(e,t)=>Math.abs(e-t);Kl=class{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=Gn(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,d=og(c.offset,{x:0,y:0})>=3;if(!p&&!d)return;let{point:h}=c,{timestamp:f}=ve;this.history.push({...h,timestamp:f});let{onStart:v,onMove:S}=this.handlers;p||(v&&v(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,c)},this.handlePointerMove=(c,p)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Yn(p,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(c,p)=>{this.end();let{onEnd:d,onSessionEnd:h,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=Gn(c.type==="pointercancel"?this.lastMoveEventInfo:Yn(p,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,v),h&&h(c,v)},!yl(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=yn(e),a=Yn(o,this.transformPagePoint),{point:s}=a,{timestamp:u}=ve;this.history=[{...s,timestamp:u}];let{onSessionStart:l}=t;l&&l(e,Gn(a,this.history)),this.removeListeners=$e(Ze(this.contextWindow,"pointermove",this.handlePointerMove),Ze(this.contextWindow,"pointerup",this.handlePointerUp),Ze(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tt(this.updatePoint)}};po=.35;Aa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lt=()=>({x:Aa(),y:Aa()}),Ra=()=>({min:0,max:0}),he=()=>({x:Ra(),y:Ra()});yg=["x","scaleX","originX"],vg=["y","scaleY","originY"];tu=({current:e})=>e?e.ownerDocument.defaultView:null,xg=new WeakMap,wg=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=l=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(yn(l,"page").point)},i=(l,c)=>{let{drag:p,dragPropagation:d,onDragStart:h}=this.getProps();if(p&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bl(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Le(v=>{let S=this.getAxisMotionValue(v).get()||0;if(Xe.test(S)){let{projection:x}=this.visualElement;if(x&&x.layout){let b=x.layout.layoutBox[v];b&&(S=Re(b)*(parseFloat(S)/100))}}this.originPoint[v]=S}),h&&le.update(()=>h(l,c),!1,!0);let{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},o=(l,c)=>{let{dragPropagation:p,dragDirectionLock:d,onDirectionLock:h,onDrag:f}=this.getProps();if(!p&&!this.openGlobalLock)return;let{offset:v}=c;if(d&&this.currentDirection===null){this.currentDirection=Tg(v),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),f&&f(l,c)},a=(l,c)=>this.stop(l,c),s=()=>Le(l=>{var c;return this.getAnimationState(l)==="paused"&&((c=this.getAxisMotionValue(l).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Kl(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:tu(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&le.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!Hr(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=lg(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,i=this.constraints;t&&Mt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ug(n.layoutBox,t):this.constraints=!1,this.elastic=hg(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Le(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=dg(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Mt(e))return!1;let r=e.current;Fe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let i=bg(r,n.root,this.visualElement.getTransformPagePoint()),o=cg(n.layout.layoutBox,i);if(t){let a=t(fg(o));this.hasMutatedConstraints=!!a,a&&(o=Jl(a))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},u=Le(l=>{if(!Hr(l,t,this.currentDirection))return;let c=s&&s[l]||{};o&&(c={min:0,max:0});let p=n?200:1e6,d=n?40:1e7,h={type:"inertia",velocity:r?e[l]:0,bounceStiffness:p,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(l,h)});return Promise.all(u).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(Yo(e,r,0,t))}stopAnimation(){Le(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Le(e=>{var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Le(t=>{let{drag:r}=this.getProps();if(!Hr(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:o,max:a}=n.layout.layoutBox[t];i.set(e[t]-se(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Mt(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Le(o=>{let a=this.getAxisMotionValue(o);if(a){let s=a.get();n[o]=pg({min:s,max:s},this.constraints[o])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Le(o=>{if(!Hr(o,e,null))return;let a=this.getAxisMotionValue(o),{min:s,max:u}=this.constraints[o];a.set(se(s,u,n[o]))})}addListeners(){if(!this.visualElement.current)return;xg.set(this.visualElement,this);let e=this.visualElement.current,t=Ze(e,"pointerdown",s=>{let{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(s)}),r=()=>{let{dragConstraints:s}=this.getProps();Mt(s)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let o=Je(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:s,hasLayoutChanged:u})=>{this.isDragging&&u&&(Le(l=>{let c=this.getAxisMotionValue(l);c&&(this.originPoint[l]+=s[l].translate,c.set(c.get()+s[l].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=po,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}};Eg=class extends gt{constructor(e){super(e),this.removeGroupControls=fe,this.removeListeners=fe,this.controls=new wg(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fe}unmount(){this.removeGroupControls(),this.removeListeners()}},La=e=>(t,r)=>{e&&le.update(()=>e(t,r))},Sg=class extends gt{constructor(){super(...arguments),this.removePointerDownListener=fe}onPointerDown(e){this.session=new Kl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tu(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:La(e),onStart:La(t),onMove:r,onEnd:(i,o)=>{delete this.session,n&&le.update(()=>n(i,o))}}}mount(){this.removePointerDownListener=Ze(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};Gr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};ar={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;let r=ja(e,t.target.x),n=ja(e,t.target.y);return`${r}% ${n}%`}},Og={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=ft.parse(e);if(i.length>5)return n;let o=ft.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;let l=se(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}},Cg=class extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Rh(Ag),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Gr.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||t===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||le.postRender(()=>{let a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ro.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};Ag={borderRadius:{...ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ar,borderTopRightRadius:ar,borderBottomLeftRadius:ar,borderBottomRightRadius:ar,boxShadow:Og},nu=["TopLeft","TopRight","BottomLeft","BottomRight"],Rg=nu.length,Na=e=>typeof e=="string"?parseFloat(e):e,Va=e=>typeof e=="number"||_.test(e);kg=ou(0,.5,kl),Mg=ou(.5,.95,fe);Lg=["x","scaleX","originX"],jg=["y","scaleY","originY"];Vg=class{constructor(){this.members=[]}add(e){Go(this.members,e),e.scheduleRender()}remove(e){if(Xo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){let t=this.members.findIndex(n=>e===n);if(t===0)return!1;let r;for(let n=t;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};Fg=(e,t)=>e.depth-t.depth,Bg=class{constructor(){this.children=[],this.isDirty=!1}add(e){Go(this.children,e),this.isDirty=!0}remove(e){Xo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fg),this.isDirty=!1,this.children.forEach(e)}};Ya=["","X","Y","Z"],Wg={visibility:"hidden"},Ga=1e3,qg=0,Tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};iy={duration:.45,ease:[.4,0,.1,1]},Za=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$a=Za("applewebkit/")&&!Za("chrome/")?Math.round:fe;sy=su({attachResizeListener:(e,t)=>Je(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kn={current:void 0},uu=su({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kn.current){let e=new sy({});e.mount(window),e.setOptions({layoutScroll:!0}),Kn.current=e}return Kn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ly={pan:{Feature:Sg},drag:{Feature:Eg,ProjectionNode:uu,MeasureLayout:ru}},uy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;py=4;hy=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cu=e=>hy.has(e),fy=e=>Object.keys(e).some(cu),Ur=e=>e===Wt||e===_,ts=(e,t)=>parseFloat(e.split(", ")[t]),rs=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return ts(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?ts(o[1],e):0}},my=new Set(["x","y","z"]),gy=Pr.filter(e=>!my.has(e));zt={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rs(4,13),y:rs(5,14)};zt.translateX=zt.x;zt.translateY=zt.y;vy=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=zt[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let c=t.getValue(l);c&&c.jump(s[l]),e[l]=zt[l](u,o)}),e},by=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(cu),o=[],a=!1,s=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],p=ir(c),d=t[u],h;if(tn(d)){let f=d.length,v=d[0]===null?1:0;c=d[v],p=ir(c);for(let S=v;S=0?window.pageYOffset:null,l=vy(t,e,s);return o.length&&o.forEach(([c,p])=>{e.getValue(c).set(p)}),e.render(),fn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};wy=(e,t,r,n)=>{let i=dy(e,t,n);return t=i.target,n=i.transitionEnd,xy(e,t,r,n)},go={current:null},pu={current:!1};ns=new WeakMap,du=Object.keys(mr),Sy=du.length,os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Py=ko.length,Oy=class{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>le.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=gn(t),this.isVariantNode=rl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...l}=this.scrapeMotionValuesFromProps(t,{});for(let c in l){let p=l[c];a[c]!==void 0&&Ae(p)&&(p.set(a[c],!1),an(u)&&u.add(c))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ns.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,r)=>this.bindToMotionValue(r,t)),pu.current||Ty(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:go.current,Qo(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ns.delete(this.current),this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=Ct.has(e),n=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&le.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...t},r,n,i){let o,a;if(n&&r){let s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ar(!1,s):Fe(!1,s)}for(let s=0;sthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:d})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&t!==void 0&&(r=Bt(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(t=this.getBaseTargetFromProps(this.props,e))!==null&&t!==void 0?t:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n=typeof r=="string"||typeof r=="object"?(t=Bo(this.props,r))===null||t===void 0?void 0:t[e]:void 0;if(r&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Ae(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ko),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},hu=class extends Oy{sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},n){let i=Hm(r,e||{},this);if(n){zm(this,r,i);let o=wy(this,r,i,t);t=o.transitionEnd,r=o.target}return{transition:e,transitionEnd:t,...r}}};Ay=class extends hu{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(Ct.has(t)){let r=Wo(t);return r&&r.default||0}else{let r=Cy(e),n=(sl(t)?r.getPropertyValue(t):r[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return eu(e,t)}build(e,t,r,n){Lo(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Fo(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Ae(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(e,t,r,n){dl(e,t,r,n)}},Ry=class extends hu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ct.has(t)){let r=Wo(t);return r&&r.default||0}return t=hl.has(t)?t:Ao(t),e.getAttribute(t)}measureInstanceViewportBox(){return he()}scrapeMotionValuesFromProps(e,t){return ml(e,t)}build(e,t,r,n){No(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){fl(e,t,r,n)}mount(e){this.isSVGTag=Vo(e.tagName),super.mount(e)}},Iy=(e,t)=>Mo(e)?new Ry(t,{enableHardwareAcceleration:!1}):new Ay(t,{enableHardwareAcceleration:!0}),ky={layout:{ProjectionNode:uu,MeasureLayout:ru}},My={...ng,...bf,...ly,...ky},qt=Ch((e,t)=>af(e,t,My,Iy)),Dy=U(qt.div)` + position: relative; + z-index: 2; +`,Ly=U(qt.div)` + position: relative; + padding-top: 10px; + padding-bottom: 10px; +`;U(qt.div)` + position: relative; + padding-top: 12px; + padding-bottom: 12px; +`;jy=U.div` + position: relative; + box-sizing: border-box; + background: #171c23; + width: ${({width:e})=>e}px; + height: 100%; + overflow: hidden; + padding-left: 15px; + padding-right: 15px; + padding-top: 4px; + border-left: ${({theme:e})=>e.base==="dark"?1:0}px solid #fff2; + border-bottom: ${({theme:e})=>e.base==="dark"?1:0}px solid #fff2; + border-top: ${({theme:e})=>e.base==="dark"?1:0}px solid #fff2; + border-radius: 6px 0 0 6px; + overflow: hidden; + + && { + pre { + background: transparent !important; + margin: 0 !important; + padding: 0 !important; + } + } +`,Ny=U(qt.div)` + background: #143046; + position: absolute; + z-index: 1; + left: 0; + top: 44px; + width: 100%; + height: 81px; +`,Vy=U(qt.div)` + position: relative; + padding-top: 12px; + padding-bottom: 12px; + min-height: 57px; +`,Fy={default:{filter:"grayscale(1)",opacity:.5},active:{filter:"grayscale(0)",opacity:1}},By=Qt(function({active:e,content:t,open:r},n){let i={fontSize:"0.8125rem",lineHeight:"1.1875rem"};return m.createElement(Vy,{ref:n,initial:"default",animate:e?"active":"default","aria-hidden":!e,variants:Fy,transition:{ease:"easeInOut",duration:.6}},t.map(({toggle:o,snippet:a},s)=>m.createElement(Mr,{key:s},o===void 0&&m.createElement(Zt,{language:"typescript",customStyle:i},a),o&&!r&&m.createElement(Zt,{language:"typescript",customStyle:i}," // ..."),o&&r&&m.createElement(qt.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4}},m.createElement(Zt,{language:"typescript",customStyle:i,codeTagProps:{style:{paddingLeft:"15px"}}},a)))))}),zy=({activeStep:e,data:t,width:r,filename:n})=>{let[i,o]=Pe([]),a=Ke(()=>t.map(()=>En()),[t]),s=c=>{let p=0;for(let d=0;d{let c=t.flatMap((p,d)=>{let h=a[d].current.getBoundingClientRect().height,f=[{yPos:s(d),backdropHeight:h,index:d,open:!1}];return p.length>1&&f.push({yPos:s(d),backdropHeight:h,index:d,open:!0}),f});o(c)},[t]);Dr(()=>{let c=new ResizeObserver(()=>{u()});return a.forEach(p=>{c.observe(p.current)}),()=>{c.disconnect()}},[]);let l={fontSize:"0.8125rem",lineHeight:"1.1875rem"};return m.createElement(jy,{width:r},m.createElement(kn,{theme:ci(pi.dark)},m.createElement(Dy,{animate:{y:i[e]?.yPos??0},transition:{ease:"easeInOut",duration:.4}},m.createElement(Ly,null,m.createElement(Zt,{language:"typescript",customStyle:l},"// "+n)),t.map((c,p)=>m.createElement(By,{key:p,ref:a[p],active:i[e]?.index===p,open:i[e]?.index>p?!0:i[e]?.open??!1,content:c})))),m.createElement(Ny,{initial:{height:81},animate:{height:i[e]?.backdropHeight??81},transition:{ease:"easeInOut",duration:.4},className:"syntax-highlighter-backdrop"}))},_y=U.ul(()=>({display:"flex",flexDirection:"column",rowGap:16,padding:0,margin:0})),Hy=({children:e})=>m.createElement(_y,null,e),Uy=U.li(()=>({display:"flex",alignItems:"flex-start",columnGap:12})),Wy=U.div` + font-family: ${({theme:e})=>e.typography.fonts.base}; + color: ${({theme:e})=>e.color.darker}; + font-size: 13px; + line-height: 18px; + margin-top: 2px; +`,qy=U.div(({isCompleted:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",border:`1px solid ${e?"transparent":t.color.medium}`,width:20,height:20,flexShrink:0,borderRadius:"50%",backgroundColor:e?t.color.green:"white",fontFamily:t.typography.fonts.base,fontSize:10,fontWeight:600,color:t.color.dark})),Qn=({children:e,index:t,isCompleted:r})=>m.createElement(Uy,null,m.createElement(qy,{"aria-label":r?"complete":"not complete",isCompleted:r},r?m.createElement(yi,{width:10,height:10,color:"white"}):t),m.createElement(Wy,null,e));Gy=(e,t,r)=>{let[n,i]=Pe(null);return de(()=>{if(e){let o=()=>{r.getChannel().once(ai,()=>{let s=t.getData("example-button--warning");i(s?{data:!0,error:null}:{data:!1,error:null})})},a=r.getChannel();return t.getData("example-button--warning")?i({data:!0,error:null}):a.on(Rn,o),()=>{a.off(Rn,o)}}},[e]),n},Xy=(e,t)=>{let[r,n]=Pe(null),i=document.querySelector(`.${e}`);return de(()=>{if(t){let o=new ResizeObserver(()=>{i&&n({top:i.offsetTop,left:i.offsetLeft,height:i.offsetHeight,width:i.offsetWidth})});return o.observe(i),()=>{o.disconnect()}}},[e,t]),r},Ky="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZgAAAECCAMAAAD0GDFCAAAB0VBMVEUAAABzgo3d5eno8PFzgoxzgotzgoze5upzhIze5up0g4t2gI/s9Pnt8/ns9Prs9Pnf5+ve5ut0g4zf5upygo3e5uvf5+vf3+f////3+vzs9Pne5urq7/Lmlk33+flzgozV1teEkpouNDj6+/voo2NanTvz4dDl5ubqr3n17ebx1br19fXq6+u5wcXc4OKWmZvu7/Hf4OHuyKT9/f7a29zL0NTZ8P/s9//LzM2oy5vx8/PT7f/Y2dnl9f/nnVjM7P/39/dBtf3v8PCws7Tsu47z+//wz6+Woal8gILy8vOAzf7o6On3+Pjj4+SNmqL29PHl6OrQ48x8ipP059unsbe817O/5v+VwIPj7uTpqW6BtGtiZ2qEkZvP48tITlECnP3CyM3y28U7QUUkqv3y9fXtwprrtYS9v8Gip6vd3t/T2NuJlZ728/GUv4Pl7O/U2dvvyKTtwpluqVNko0fg9P/W7//s7O25wMbsu4+i2//t9fDuyKXrtYPc8v/t7e2xub6JjI9VWl5cv/7N1Nna6djGzNCXoqqy0advdHZITVH5/f8So/3G3cB3rl/v+f/p7vGCkJiJjY+LuneQ1P7c4eXF3cCwub+exo9wx/6stbs7QUSS4OMQAAAAGHRSTlMA34AgmXvv3yifQBDv77+vf+/Kv2BbQBAH3mwLAAAPmUlEQVR42uyZO2/bMBCADXTtY5aB20iC5KhNCyeCq2qohiMDAarBWuoCfixG4q1uszQoEDQI+m/Lh2TKiRrHboPSrb4h4ZGyadzn05l2r/fi9at+x+G8edF7Vl50Wo7k5fOaedPvRx1H0O+/7j0nnZejzbzsNejEBEO/32vQiQmGTkygdGICpRMTKJ2YQOnEBEonJlA6MYHSiQmUTkygdGIC5a+KOVuMWmY/Ys0wOgwGwNwoIxUsOgrQoF8vT0m23YRFfwgO8JfFXI03TTF4XA8346Qefk2S8W+IoVDBo6OI4/gxMRwu9V8ElrxNjaR+nNL5aYj5iAeN6CLZ5v8cN4sn+S0xkltYdCyPiUGCWTEzztUaRNpyBTRfFj1FMZpnEONL5RnEcJAu+cTtpf4FMfoedY1HSZJ8deWicfnfJMkIX+vwyovxVXUzHp1Xwdv37z8fIobHbjK2/8llSemEuYWspBmTVJnHxsV0QilvE0MkpYo1s84aYmKrScVuE2XHsYBYk5nnjeeATOC6kyppaTZxO+oXowIR8xFXjFyD0bgeM8QViwdihku8XGCcuOjThw9fDhFDAJl7zQwmNgCBBNhlCjnSkQ6JWaBIIIDVQzErACQAsZ2C8WJy4Dbwj0KNDkegxr5CsyG4CiJQ2h3LMMT4W5lv/ntuZWfL5UD/vcaDPWJSztNaTBlbTKCMkswlOpuZ/BZCpOaiIpKw1kvSJjCfRiwHdV/MBOjUPEneLBj3f8K5ojbNXsyjt7I1TOwml1aMMIGArLqM8xMTM9IDd6EXswcKFVXEmenXHgmFmWYRB+0OqBXDbLboPTEM0NQ9hNQVKOvkW9bsyWKYW85AmOdxwRx4KOeYQ8Us8e25YYlt+O3797f7xcyJxVUSEqXv0ExPr4Cbi6KIm3mUmzS5ihCQ7orhUBLDJUzq5yZ18hUhhQTEniqGw9rXHHEBh/hExZzhLWfRXlo/lRHQWXUoAYZaDDEDhHyp5MB2xcyhRvo0N3uMAvpUMTHE3i0BeepiloOK6EgxbCtmBkgRQmSLmHWds10xEuTOtwgrILtiUoD/U8wFXvrJo8QwJPJqQrhWM28Rk7dVjE9ms014MQYA9kQxCiZhi7k9qMcs8CZq8P3dux+HiSlB2ebvc0RbxAj39he7zd/d4zwr4PfEMIDUBKlp615M2iKmAFo3shDFXOGkXcxGDz3DWlOCb1zpnPtPZYeImYF0pxmb99Qmo0UM2LOhvvZBj3cDkvqCaS7MbK2VNli5ZRfWeNmpgKzqSiGKGWA8qk7+V0lyhxdJkgyq2hj7k//FAt+MRmbhGi+ubod3y9EBYnJq4fZdzOzda2IXUFFcAmoRg0SsV4BtbzuolPPIKlsVhaLAfMFYkN1EgMhsfpHiK2TFuHASx2bBbbo9UiFlNiFBiom+XmPtxpmoSFz13Czdyd9F4+qr/4s7bBgPDz/HxBGrz4P27JiuAUCouEWMnJmlwhcagurYkYNGyNR0KxQ1xBjQnG0/vSFfULPcf7fNpNCBmxZukzDFHMFgsLmI/giMZNOWaQLSLbXB6o9kSsv9FRnJoidASHYaP5QFghGzH4TYo+v/0i+YgWDEBEcnphMTLCknUXB0Yn6ycycnAAIBEARX9OnxN/9AzWFhocGqFJr5TpQwUcJECRMlTJQwUcJECRMlTNTiMKcwzTC3ycx2ecZK+/ky5Vp9WPa8TGS59wEAAADAvxzHoGjbBkXCRAkTJUyUMFHCRAkTJUyUMFHCRAkTJUyUMB/7dIwCIAxEQbSwkHSxkcBPl/vtVbyylSJq7X5h3hWGMUUYU4QxRRhTH4RZyyycljJ5hKlSdBy2kKpDmKoYDRcjVPPDTIqGm9CaHqaIXx6GSnqYhWFexJweRlvDQ1d+mN5AmL8gjCnCmCKMKcKYIowpwpgizM5+Hes4CkNRGH6N0x1ZW2Pdxs1W6dyw0chy6YIyotkyZap9hXneHZuQcEFDRppMBAl/eUVS8MlcWGgbzELbYBbaBrPQNpiFtsEstA1moa0OxpuuE7pkb47INca0KPVzi2EH0+Dc3ryhz5T2UdBnjRGozLkGn/fyMIZBwaAhs4CQRwxypNeiDDv1iy7m/wtkuFhZUqAifwTGnZ4LxkEXaXZ5nsaAtAqmlxOjYVw5X/RzMBb3z6VDfGqYOtHjnUn0gfEV4wgmlEsqTmHgGB4M45IgxmeGwVug52hs2NaBOwWTipQwhSlMSz4CRrsAMa4Q5s/fS7+Hd/xQ5QTXGo4WDCwTENXQsykgkc5MYOrD/KMsVrkd7pcX5E7t+mB+/avOWXUUuoazOozvpacDLMNOjRp6CBM0zN57H8h2DqZLcKvXeCvrZSwUTHQ5wbV3jl7BhJRicdRWe9pIp2G6vMUczNHl5k7MK8GcZeytHePIKgwNEEnzUWDQMJaBCSOYRkRqAN/cMa8EU2QsbsBIRlHfJsJLTsHAl8umOwYPhxGUalklzIeMxTxM/wVzoJHrgfEoVfTjtRPxBRgruZ+EqZMrPGaFy181Wf7xumCC9F8zXXLBqwOtgindhumy4+Vf4X7Jf3bsmLVtIArgeAW2MdYWMrxN6Dpois6LQUOHGi1yh2BK8aIigzLIeM7iKY2mlEAgZMnHzbMS5+kcgy/DwZPz/oPtJ529/EBnbiszDifdfJRZnJWtdyclcRhOdpcu4a2b8B3wT7im34gJGi+bzcO3YjdnZSSDLh3dY0668d/fk65u/qfdOO7sv7IvnMAwTWCYJjBMEximCQzTBIZpAsM0gWGawDBNYJgmMEwTGKYJDNMEhmkCwzSBYZrAME1gmCYwTLOAORsYo8DY5R6mF/jtUWDscg/TD0btUWDscg8zCvrtUWDcRjBHGxibjMC4jWA++SwTGMvcw/iDM2N2BDO++QmSBQzVd7jLEMw6uDwus6inu+praBclTRGcRlYwvhcMaXIFAxcfZL7DXtfLerPZPC/x5Wl69QCttHqtfJzBCYQwFg0HHsk4gTksM4/BrK4BWyyb4X5jwqQJVmUqh71WeQRYklfQmRDGpvOAZJzAHJaZX+zJTH8RDA4mTARNmUrALHu9laoUOhPBHJOhfcYVDMkQDMlYw6Rq9YVgvg29wDun0QUMyRAMyVjDVKoCiHQC2ExXkOpb9U/rlb5Tdxrn7c0sS5vViY5mODAEI5hj+b0g8Hoj3yEMyRCMKTOtF9jTcrHt6jBMXuKHRGnAIpVBVpSqKIoc38qieNyuLG9z9f9H86VViXdwFbde2rmX1iaiKIDjvl87FfFCRY69i7uYiF7mkoi9JXEk4DgdcOWmEMEKNS5c2YCLFt1pBR+4ET+t58xkMomjeaHmTD3/xXjntemPeTT2BmHm7typ4zh198zxP9znzzfGw+8QGYOh7o7BfNjBPjzZoZ78BPP8Pvam99SrCZjJWxn98zbGPb3vcfYqt0uW+FhiFsIs0oXTpy79a5hH897Khr0z02G2ca044hbux3bxscQshFlx1VvZ1gTMo8WeMfH93nszFaZ4nV5/SyfdKZCYxQ0mcylhyGUxGPopv5kGQ5uyeu8FZjZM1SWDQZeFYdTT7Wkw8fq74WFyxcwDU3UhGHSZ6OG9EubVh8e/hlkvYe5UYBDkvcrN3gnMnDDkMv2zso87O/jx5c6Te9iHb6oKQwO6lRnUwd5lMG+KH/+bbD/5kNZ9gZkJU7rM6vXDYV/peqm+Lt/C31BM9u714M7uNi6zn/v757u7Kn66/mX3vop761/wIzVUEpi5YF6Qy+KVMFlP396KFWa2cWXbIwzt663TO5jv4f5YmQd03C0lMPPB3L6JLn+w2MTlijHDf+J8F/v/tmEEIwlMDRIYpgkM0wSGaQLDNIFhmsAwTWCYJjBMEximCQzTBIZpAsM0gWGawDBNYJgmMEwTGKYJDNMEhmkCwzSBYVrdYLr7G8P2Xh2q8XQQVoZTCph/2wNvmLDi0t5stVqv2i1abkzsbkBQDA1oNSuwinW8YXRHTbb/KudR1EZLYCr9I5i7P8k0N0sYXBGYSv8K5m5HYFbQbBiUWRpGN1Kb5ERBkloTq3xsrAkKmMjYNMq2NrRO0kBxiT/MhExzv4VttlvU3nSYyHuTOE+np+DT1MFBvtMbC40MRvfBJikk2emJ932BWQDmWTgGs5HVzpc/wZjGsD7BaEjpROtCNAoU1vc0BINL7TKYNGOLIKLT0Y1R/GHQZc5b2Vh6dD8LygtpAMjg/HCzpUWiKGvpdF5TZtjDoMtyzxjf11nQUFSo9QEeEYLNVyHDiDVlPI353MbqAIMuS8JAEcJ0Ug9UoHRxYThLxxUJzIIw6LI0TKqKtHcxbonGYQBhEjouS2AWhAnVZJt74QjmsN2dBmO9KorhYHSEd4raAktSkcAsA1Mt3Gg3m829fLGppsE0hg+XgABoGDo6IskxDMGE3mXyYUdgloQp67aKumoqjLJg4iCy0EESHwVx39IR2oHBrc5ZRWJuEESJTwVmFszyDVxQDBOnMyoHAJa2agvgD2KXjQ2O09CmargDfCOk0wWmCvO3CnU4GlUeXeUKx442TI0TGKYJDNMEhmkCwzSBYZrAME1gmCYwTBMYpgkM0wSGaQLDNIFhmsAwTWCYJjBMEximCQzTBIZpAsM0gWGawDCtbjAfmxtF+4dqvE5ExQHPPxM7YjBhxaW92e12W+0uVpnnP8wcCRreMNPn+e+1JmFijQWG+3zkIwGzzDx/w+zPw48mzBLz/GNoqPrHHmbxef4BwQSN1NpouMHQMDJhsZJoxT7+MAvP848gwhWfGgs23+FN6lwKxGHANhLn+MvUAGZynn8zn1FGtX8J03FeqyCiYUKbOuB0Ni6nmWnH//2AP8z88/ytwfpQTqzcggO6Rjo0Dj3BDEUGwP6Vmj3MAvP8HTV6gIQ6yOZe9v1o/h9KJZqK+b+4cYdZYp4/pY0H8I5gnCthAhgmMH94nv/+nDDODzSePn7FWLpieH1fTI1hqvP8D0cw3d/N8yeRdPTinOTbNSBMWJ9PBXjDVAqb7Q0sW/x+nn8BkBKM9k7jlr4HXX4qwP5OVjeY8Xn+h6oKU5SACWKbwajIQ78PxgD5ODBRlDinuFc7mHnm+ROTA9/YcgMa64FJAoUwNDYOwNfgV/+jAzMrC6pO/Qcw+eXRYfZFcQKjHaSNhvE1+Hzs/4JROrLOuRo8Vv43mHomMEwTGKYJDNMEhmkCwzSBYZrAME1gmMYA5uInJVV6uXqYy2vs/2RlBT26fGzVnVh7pqSferZ25diqu3pWZKouZ4+tvpNn165tXZdGbb1cO3vyGINOnl+TJrrMwoVorpyQRl25egz7AYGGi8bk2+PGAAAAAElFTkSuQmCC",Qy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXwAAAEICAMAAABrir8vAAAB3VBMVEUAAABzgo3d5enp8fNzgox+ipjt9Pl0hItzgozf6Ovp8fZygoze5urs9Prf5+ve5ut0g4xzgoze5uve5urf5erf5uvd5+rd5erf5Or////3+vzs9Pne5urq7/L7/PxzgowuNDigZsaEkprmlk3V1tfl5ubLzM18gIKWmZu5wcX6+/vs5/Xh1e/y8vNITVHc4OLWw+jvyKTt7/Gws7TLsOH19farec22i9P39/jq6uvoo2Psu47f4OHx1br17ebz4dBBtf2WoanY2dnRueXy8fnBndrL0NPqr3nt+P/m6OljZ2r9/f47QUXa8f/U7v+Azf58ipPU2dtiZ2q/5v/Gp97a29y7lNfM6//L0NSnsbfl9f/Andqlb8k31dPDyc6lcMqkpqjnnFjz+//v8PG1i9Ob6unj4+SJjI9VWl4CnP3m+vnn3vL29PHczOtp396NmaIiqf3MsOGxgtC+v8FS29m9v8Dwzq+NmqG07+/059uxs7TtwppvdHbx9PTl7O/t7e25wMb28/GXmpvg9P+g2v/y28Wxub7rtYRcv/47QUQSo/1E19afqbDm5+iQ1P7h1e7Antqwub9wdHfpqW5wx/4xr/33+fna9/fN9fSo7eyP5+brtYPm9f+w4P/A8vFZOmLPAAAAGXRSTlMA34AghxXvOu86s2bfv3/PyqXv759wn59gUVCBVgAAD1BJREFUeNrsmT+Lo0AUwBcOrji4L/BSPV45FgqioKiFil8gpLmACOkSi6RYCKlShJR7sOV92Xszo8luJnvrwf6R7PyKxJl5M+7+5vmMyd3dt5/fJ5an/Ph290F8s+oNvn+U/R+TCVieMZn8vPsYrHuTyffrrqz8D2Ayue7Kyjex8m8JK384Vv4tYeUPx8q/Jaz84Vj5t4SVPxwr/5aw8odj5X8caSbZwnWi6uvKd0L3vdfySBHdwzUo+rryXfTfey2PqiS5j4mu2vfurfx3lR8Ds6MGnnEDNd8tw+5q9/0CGOHnstsv3FlYClAU61k4c0HT+kK2pwKWvj/D0Pd5hokz5fndnPw0vfBdyOXkPijkEdl46NdyX5C/Ikrlm5dAFlfHRA0xOvO33nZXJeBV8Ypb+2R3lCGazNvuvWO1SznqAIrESz9fvthgHdQYFNIQlsDMUKoMsUQemC9VVMBRiFNQ/EI3QMYHFzsCMFhzb8BBUviTkwhchBjw2DmoVkE+dixekA9EW35NqfJIorqYSNukKCI6Ng3tuFWRakarboH7iJgYVvQIkpSiEWT+DKeF/MfDk/a1dhwiOgC5lhSgr3Yg7+QHCx5z3X+VnTUGjhzO1YSwAPiNoZKPm0Ku1cpdwUDI9HeHlJ0t0Up7I28PaQyak/wYMmr20Mi2l+xVofK6BR6jDCDjVkWZ7kk+X76DG9CqhXQRzIWQCaozX785MirQwWEv//WaH6CAHtSrz7Fg+bqR41StOBtc89OIKmDS/sZ7KT+BVEYcCXpW3ZhHUQqaA+2AiSj9fPlTnDqSEl1glrgJagG99V6S30lhe1p+/qowBxfG8QxdKX+j+0qQjbkYIr+JVBFJtfwGrsrPYCXlx9rrfptlWdOcd0+zapoVQEZ/RnDDDbHHB+0a835kqX2Uqsifs1k2nVeE6Xk9Lc66nc5VzT/L51KEm9IVQ+T/4Vqj5VcvyQeKO/lpRZq+5kPPTh7HdBiF/NzRaAHrs3wtuu3l91fDcPnGsY/+pXxwFzXivB1QdpjB8tOI4gNnfkRwWeEzqjj9ozF81FRazwgMuOwbmc8p+xaZzycz5DPLXzh/Y/lJN4NM+VDRiofHIF+W9DOC7TqnG25+qu+5NiWkJFN+CQYq1jjeoGPI7zf1TeX3trNr8u/Jqygdg/xi3iV6V0/8036EGHbbwVGootZYmvKXKs4kxLUeV8etigzgQn4h9B+B/SUSvo18FgzM0ZCvb7lUjeMJN8egbN11iEru7JzzIdZh6270TkwxyNsp1sKUDwHOjCdcvW1l2+YbX5meT9t1je6lfKcuc4dPUvapINdyh8tPPM+jhl8Oz+SzYIqzpIrMms/siJJxyAf9sFpPVcEXStt8vpTyH+TIb1D4yATcbcoXi9p4wtX9as7D6SR1DpfyxUafvHi61mK4/Io64ufy4RBxZ5VelZ9RsxqJfICl44hrZUOA4xTQUTjOEv4T8WRhnl7AFQo18A68/ANAQvFovlg7Ycq/TSrKrPxPYZvt6HE8Xyl/LfkVUZSOXr7jFnCDZMlhP6IfUyxW/v9g5d8SVv5fdu4YBWEgiqLohATBYKYQwcJxq1m7jQTEwl/IRD/nLOHy6hcnfibix4mfifhx4mfSLf5B/P3iL6b/3n4un7h8efrfy5cyzjde0i9jAQAAAAAA4PdNU2Evw1AIEj8T8ePEz0T8OPEzET9O/EzEjxM/ky/FP15Ojc35OvaLX1tb72zW1mqv+LU92LFjF7dhKI7jQ6dCt5bCg9z94G3uItDkVUsgm7xJi8euN97UkClTlvuPa1t2zrKvOUET4yjvS8ggnAQ+UZ5F9s8kjXreN/qL4H/Z7EmatN98XQT/50b2/aznzY9F8L/Lxv+g/bdF8DdPJM162gh+aoKfU4KfnuDnlOCnJ/g5JfjpCX5OCX56gp9Tgp+e4OeU4Kcn+Dkl+Ok9Br7h0JFC+oUP1FYzV9Q1rCsad+Ka+l54R0Pc9eo1DSlmTVHcV9O/ewh8ho3wqQZUiw0caJQDDI0zsGX0ihBgmW3zvDvjAxN84Cb47nh/+FuK8+CyXefplwQV4Q/fjuYYf9v9TmAu4Su6fo5P/u7xS27g3sCRmIMp4Cf4trukwByftrAL4zvW5P2949POopF1k8uq0qKM8Bm+m09s5/gVsCR+sKdGf6X4v6tzf8aqp6Jt7FMjGvgdIBP5aNGg7tA9HM/wy9PlseOLtpKulwmfcazWif+rLvpUtKVD47XSTr0MXKtoy/HStm6ENZhi/FdjjAWqS/ghTZ+U0Wln0FcU4ftt2xjiDZOjjQ5QBocIn16gPFyMHzKKLuEftm2Xdn5u+L2++mzmO6Cw0YjxADdZ2BhfwYJpgl9rrTvW/5v5ueF3+oo+wdcNfHx21zjnInwy3WXzmU+L42vqKvVq8Rt9RZfxhxP+aXTW9MMQKmBifAVPCfhKt90Sv2RHTZpXesP9OEbIvw98q4fTfkgz3PlOrCL8phT8kJrecAu6Xppd97TesZPw307FXAczZjcsvVLfkT31ea7e3+Mdn2d7b8d96nb/7QT95rHimZ91mq1b8w0377Ra9WnngRP89AQ/pwQ/PcHPKcH/yw4d0wAAADAM8u96FnY3IIGf/BL5P/kl8n/yS+T/5JfI/8kvkf+TXyL/J79E/k9+ifyf/BL5P/kl8seOHauoDkRhHH+OrzvNZGYvzNwiLxCs1jAgTF4gXZJOkDTibdQi18Ji2S3vu96TUdEECRvYZUfJvzAcZ2x+kSHk8034z1SI+FmTXGp2uE1EPoHn6Ofxf6HXrmr2+/17xR/HZPmKmxSdsoXGE/Tz+PPf6NY04LLKD4d9Fz+OuJUkh165E+Ait8LDFAD+S08/WVzxeejiC/gkRegmT0sxxXiYQsBn/bH4MeUT/pfgs/5Y/BWtAKEicFrViFVJhVK5eqON4hkQWyljvztSQvMQ4E0JA7+jnzQZd6yyto/7+M4KViUFTpCENJaMMY4v1pgC2JItUzIz/6PcmtSQRGgFgv/y5wb/sOQO1bKt6uHnMVcYO0MHv3/sxFRqQJi/GlBENYCUIgRWIPjzzx475zZiGD/l6bJD+XWsKEdghYE/H3fm67UxYhCfHHxUAoqiy40IrCDw5xiF7yWLAXz/lc+YCX8Yf47R+LBuCF/TBj47/fOH8Xv2WCRX/N0hu49PV/yoj89ZgzZBmwl/1Lud1+UySZKPKuEO77iLv6WipXXg3jx+cSEuThvX4CStJ/wWf0T/FueOGXDnUVM5MgJASjKqnSPpbU1e19CWijqGNlREtaQCE/4A/qgU+WypNDiR8uBmHh/KEJXAjC9WQ8h2n8KE7/G/JS30dRDifNGnpeBf+z84/mP3n537d00eCAM4TkCJ4KLjTXe8cCYdkqEunR1DlmYXQkEMDm8HlYo4Obwgbu/SH8P7t753Z/AhtbVPGzzk8nyhoU3O5UNIIvWR8PERvksRPj7CdynCx0f4LkX4+AjfpQgfH+G7FOHjI3yXInx8hO9ShF8jC/i9DuFDlvH7vE34kF38LvcJH7KL7/MW4ess4kOdDuFDlvFb3Cd8yC5+u9Ozi3/754592MOq7B9zIYWPOfW7VvHv+dPH+pP94tCYuRAKv+1x3yY+u/lEf/KbmWaAX5mOHlV2Xv2nphQ+Ir/jta3hgz4ePxCH0i2D4usbBELiV+tyz7eHD/p4/HygWhcigJ1J7Aa+0ucta/igj8fXztc59obAR1z3va49fNDH41/p2FsNfNBvce61/LYlfNDH45cfBB+Fo2i7mbN5GDG9GQTZVLIoDzbD6LBoutmoPaphztRRs1IXhWtmJcBH8/c9znnH+0G/fhLnT9/GH4q1+gnTNF6rnVIfCcw4tCzSJBaZFo5FnCRiNzK3BT0tHeUiLF99tfgqv9XvWcR//C6+jIVUhMJ8JUyJX6htLoqN2vXXLJvqjUwzjb8zN+Uo3R2HF60F+PgsXnYe7/D4WaDKUhEyhR8wBvhrrSuEfHdHKLR3IpYMplf0aN3ZGoNv7PH4sSnQhkNNDPij4zkNo0GRlIkw+OXfIitfcL6G4Jf2p/iz1blr/nEcFPDle/xllgoV4JtfIiYRJ34j8Ev7U/znxf6tHv5QFANp3AHfHBl+/R6hEfil/Sn+aj+ZLRYvdfDNhQjwy5Idiwv2ZQ3AB/tqk/H4lbHZYl8L36yVooqfiy3mOdN9/Huwr/a6f2G6txr4ahMPZB5nVfwoFYjnzAbg39589s+UB3bouQY+m+s56WUA+KYQMyTdAPyLJyU7KcE8ZxL+JcI9ZxL+BcK+wSL8ixTFG8QqwncnwsdH+C5F+PgI36UIHx/huxTh4yN8lyL8/+3cMYvbMBTA8XBHhysHBy0HfeBmeloEHgU2aNJkI+xNGDLGoG+Rerg56039sJUcx40TSEV65/OJ9xsU2ZaWf4JIloSj+DGh+OEofkwofjiKHxOKH47ix4Tih6P4MaH44Sh+TJYYf1vVRy9rOMWFnk6vExks2sfH1xftm01RFC9N4cd68jhHAQOGHP4FJSzax8fnGUxVL4e3ALy6oPjvGT/NzuJvxvj+guK/a/w0o/gTs8ZPs5vj89zKkoMnSitZCj3BJBPH+C2Ttu3v5pyXVsBSLCP+pH5VFc7vpvDq6/FbpVhplN9uUVlrsDs8VExi3sfnEmVpcd9v3yslKf5Z/J0+id/UTuNGpzmLz/KB9PE5Wr9RGje2fVSp/BSZG7np41uVgb/V+u3YwYIsI/5Ohx47J/h49ggUMOjQpTZquC39sAdPSr99WX9/tIj4O33jma8M72EOnua8cyvWw1nfv+aYco8pP1/OkbOU+K79jfFx4ONnVqEngCODnpF+3RHFv8Rd+5vjWzjiyqQcoD2NjxKg9Ot6FP8S1zC1qfUYf91sr8WXCo5S7MYVyoCX+fgtthQfgum6qapqGDZwLX4+HPbCRe6n2vgV5SE48/HXymhwdEbxg2yLoy1cjQ8SWSpaiRmsjWpFKqVfwQ0yd9cY2X/JNJ1oS2Up/v/pzFhvbzg4uUFEKQ4/plB1qennzM2tlhaGB6hy7bdT/LeluR5n8BfX04sl+vzxPzGKH47ix4Tih6P4MaH44Sh+TCh+OIofE4ofjuLHhOKHo/gxofjhKH5MKH44ih+TmeI/JUAu/HpazeEu2QE5I5Ifqzl8eUw4kAmePN6vZvHwPfn5uiaj113y7WE1k/unhEx8vV/N5+H5joye+4/9H9E5eAp4eScvAAAAAElFTkSuQmCC",Jy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfoAAADkCAMAAABHYBYkAAACClBMVEUAAAAsLCxzgo10g4wkJCSCgpDt9Pl0gYvv9/dwgI/Q0NbT1dd0g43b4+Xe5urT1tjd4uXe5uvs9Prs9PnZ3d7X2ty+wMTV2Nrd5enR1ddzg4x0gI/Q0tTV2dva3d7f5ura3N/W2NvS1dZzg4xzg43V19rQ09bZ3N3Nz9LV19j3+vz////Z3N7s9Pne5uru8vRanTv/AADmlk3Y293X2tzV2Nqoy5tFTlS817PQ48wuNDiDiIuVwIPz4dDU19nR09X17eaBtGtuqVPqr3nj7uRko0ft9fBzgozoo2PeDRGvsrTS1dfuBwnuyKSy0aeJlZ7O0dPsu45uqFPo6eqipqnLzM309fWexo/P0tT29PHq7fCYnJ/Jy83w1bp0en+LundcZGnj7+TMz9Hl5ubJzM53r1+jp6q5vb+Nk5Xa3N3wz6/059vDx8nF3cDFyMrd3+GLkJT29/hRWV/m6Ontwpr5+vra6djy28Xw8fLm7O/ByM2IjZDIy8yOk5XnnFizt7ljZ2rw9vmWmp3rtYT8/Py9wcRqcHXpqW7x1bqmr7aXoqrnnVjq7Ozb4eW5vL/Z6NjG3cDvyKTlQkXiKy/mCg32AwXuyKXh6OvN1NmfqbCpra98ipOAhYpVWl3G3b+vuL798PDi6e374eHvhoh8gIM7QUXgDBDx1LqEkZuEkprzpKbzpKU7QUTZ6dd0VV5XAAAAKnRSTlMABd/PBxDvgCAQEYJ/IN9if8+/r+/gJJFg1FAg8O/Pv7+hUr+vwLKvwcA/a0FOAAAWL0lEQVR42uzWwWrCMBzH8eYiokhFa2UHxyaMgUlOMde8gMdBX6CnnUSGsKvgsQ+9JP+W7ra6ptCW3ydNTKm3r1EjAAAAAAAAAAAAAAAAAAAAeABj9FLd0gIjx6xy5wajbfWKz8AIMYpuw9JK6X11WhF9jFg17JZQ7HJPq7+QfyyothtN0Lv9tGsD09VEDtN6GvXKLN6+bxLRgnLTOnpaazcrxg3jprtx6MYO2voHm7dtnDY7/tOhhrcmPWo/W76I9pQSvryPXzfXJ3MydLnFM25Dl0WPLe36P8Vpg3/9a3k7DNRNrqKemC0TEYJybPg6u9F5kV15Y/fLd65s/tc0Yn+kl/IwWHIS9YMNH7C8V4Y/Z3f+uEsutJ4zxsabXkZ9sHgOF16o31/254z/07U4mk1q4yN9h+JEhFIeek3tRcZbuOZ6t8ep79JShC3v21vmfOftfBg9R/pab8srry7/xVu7uB98pO/IXgROT+WNLjgP0j6OGEP6DiwSEYz6VCrcmSfZaZcynPofds7tN2koDOBTY4y37MVpvMa7sW3iCds62kK5jCKBDLu5OZCQZZQBbizGOCeRIGQTL1GjvvhgMp/0zT/S73Baa7V4ih4MGn7q6Tk9p3358Z1bW/vBGMuBXiAxD+7VCZ4Rt1PHh+pNBnOgF8bhj+UeeMCz4q4K6/uhetYcFthhiccxr97kmfFAPX1gqJ455wRW3LE27ycx4zxDbqoHh+pHRgY36MG7YG3gpmo8Q55A2P+x+vTcOjdQ9E/9yX176Y1GBTeKVRPBRq8Wab29tbBzn+NNLnxjku8RIwVh/4fqReTn+sDGdHjg1J+4vofu3n3rvqIQGoJNUslR1MNfgKg3+J9oyd9o9b7Au/TH6iVxk+sD077BUz+yj+7+sNBFfaOE+dCTesA0P5Fy2bqvt1qtHVnegUOd75VJ9cCAjvUDqd6D+9Fu6ksk07N6a6jn3VmQ5QX+dzBSo7vo6sV0XFyK+OOk9FaM4eLicifkARL1af/HpcDy5lLkLS5J6UCENCE34KRAZMkPrURyl2URCsCjR4+ucT+Rn5lJ+DZmZmaCZjGbfT89nYcfw+pMluPwgcNkV7ent/MM1LNzf4yuvlguVy31pNwuWjVV1eneWtqlhF+rrxkGX0tO8HAADKPWOSTbxi+2dY55iHoUXUFzGooSawHkjyJAxE4RQCTORTUNrUTnEIJmMYQ0uAKlrRv4ESbGLZqtA+bxxo0bt91C3mTGLAYTuASSE7gzwAechhO+l1CxzUA9M/dnaeqbdQVo6JZ6PdcpF0F8BWeajqC33KeMX6tPylNbslw3SEmWk/BraMlAvetOfujyyC66ehSNYVuiaS26IkHw+53TvDkQG0GLXBqXY6LEQappcXIDLboYh5MxTkIRDohrUc5WT+nwIZ/YXuOyz4NO9ZC+z3LhWd97BupZuR/79VjfFpL1UrNZUXKW+pKyVW6XKrqgV5QP7XJFqTrfyTOj/j5N/Rd56mnye/U78k57YUfe6ra8C42Bebp6CesyRQas8P9BfRSqoOEmEjkLK8aRfW4F4Yv9KNCbepJxqs/7ZnE++/hxloF6Ru6FbuoJSUFXoVhVFKIe17QhVfFvoNSpmRdszGkeRP1tmvqO4+/Ut+WpGoT+5y98F/TTntSb1t4Q9WnOTX0E8qA+ZlpdliRp0WyKUMxuLkIawbfCvH79mvOg/rmLeji9GsRM+9b6pf7CbheuX9/zG+pzZUwRLFfL5aai6Kb6nNJIVnXIbCmlMq5puD2wDdHV15zq6/JOEpiSjW7qVU9jvT0+k9Cmqk9rqINodvicRVyD/DJa6WWGD25d1ENike+X+ous1DvH+noD1DvG+nnVXvq7vKCjelDPO9V/kk0WuqlP9UV9GkXTEPUkxMkNLJaQBNX+3tSH3dXng4S/2uEfur5nf/faIxT1uqI0VaFI1G8JGLXahGEemjTdHtzhoAf1r3pVX6dt8+jqLs/qQZpX9VHSw7upl9Airv4z9T6s/pndGTBQz8I8MEZRD9JVGOaJ+jpki2SdV4J/DRWyuuoIeqJ+MmTQ1WM6Q34J1OOKSbzqm+i2nZcZ8zTDj0MKwt54U2//WGz1Npq2Dk1MXrx44T7N23ZXT7LhjvoN3yoD9SzNA1co6tU6rN8+1LH6KnTuOaHS+IDLZUGFVcB8Kacknet6c3F315t6WNA9bcmfQT3/CbKfPn3uFvu1zFUvHT5ahHQdBHpVTxYDm8hNvYg0fAfKDH8WvLqoJ6ffddQHfQlyPsxAPRPz9C0dsnqvt7F6HPuKkKxAWm/ieC8pQK5qX2Vv5KZC3tQbU7L8eX4Kq+e3IC9PzfPuGKFjntSjwLqoYcdO9cuiKEbQEqRxh3rIRP1wxYqb+jiCIk09eH08S3bziHr79Gp+NkHW9e98idWH+Y2X0wzUMzIPG7lUikXVzKlVnTzBU80y5Nze1AD1hQe8NyYmanZ+weC7MR4a9TTNE8G+luZ+VC8hi5hTfTzQucDvpp6LIJGmHnj+zNzNc477G3A2sQbqMasJKIF/BuqZmAcOCIywg34cP7jL3OSZ8qCQOuptmheTpDjXC90voEzyaISDa5zNWjAY/nsPbWnmyU4uW/nWFH+cZ8qrwvERDF09Q/BerpN/51UNME/jIEvzgqke9/g1niWhzOhfVh+X1qM/LOr/HfWeOHCEddSTwT4zyTboQ0d3/V31krXDZ/OfqWcb9vZj2xDTsM9kznl6D9//ll3U+/2bnJP/TT2EPUu+vaGlZ57wrDBgkjf8BAMY3LD/7v/TUEOFuzwj7hUzB4ff3PWDMyzdC1g9cb/wipF5vTD88MqFQfvcEv5az+z1wi2eAU9ShVNHhx9Z94dR9j0+uJ8IFVi4fxIqhM4Pv6//yt7d9aQNxXEcL5lPkYACM+rGxbaLZWkVCQuIiQjMsZEQtAhzddZNz7oYZ9KYgVMMl0vmhffbre90fw92rfGxiqztfh/aI22JN9+0hpqcWjnyz/2WGZ9/uVfrd77aM6b4BR/SG5zanrJbv91nWeuOM6p80Jjs92FWjXv07GHH59UgcyVZk4/ucMqXVBYd8mEunXsVGOng3dyJ0/TJuZLCWqwq3cr+VkuTx+ku3lX6kN5BF33rDLk8vsq2jmxe93/sfy7pqhz19/iEK4XdPFFqRHCIwNPO/vOW1iTFL2VlprZ0tUTz7NBC68mLe0nMffwHP5Zkuq6+Y1H/oA/TI3dHYKgDt3d4Q8uJzy/7CmOaqmkqadFystKg0Urv6EXao8YHjTHlxfXhefvIpDv1hR1Uvl1/9MlIJ674xtzYyfZlv0T5s1lFkWlVZL4oWRqz7b2ywkfaJ8tydPz56FAvHojgDT7S00PLjdCHEd47Tmqaz73hBMHYYxymFQ9A8Rozp9GaXuZ+nzHimWfeh7MbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgswbCLp5X46/IgNB9g8OhmOOFxrw4oco/nlwlEIw1pxyvGQsGhAtF3DuN0tkplcJCtwWPdyUX2D0ODnpu3jyryT6hy8ZirihP7WPD3k4/KXRZqCm5RDOE9B0Vm5JcYiqG9EiP9EiP9EjvfkiP9JdBeqRHeqRHetETkB7pL4P0V6dPxUlaPC9/6ZPol+JEvF4ukciJhszXSmONb1YSJCOaR4oN8bx5+ohFhn7XvaZ/3N/7v6WfSaXyNtMvpFIFm+lXGglum97vlcs/z6RPVByQ/tHbB723Sr+8WavpdYlsTtBQz9Ylk65LNnQ5PUnZTE+WbKavJIqZ3PZhMWNsWrrmynsOSC/0U3v76Zd3prkdCj5dox01Gk0f16Wb8Wz6tUSx/W7FTG/lhPS8vd30y+vTq1VJqta+rZ6m13d0V6afWZjN599vGOnTn/KztMGl6Uj6ovS/Dg60a9JTx0PRZE2fKxPzrN+rzM83cmb6lXI51630vL3N9KuUm6tWeXrOjelfx+OFpUI8vtBOPxunjcJ3kWx84UdevTmf/vfi4p92zqS3aSAKwAjEKoRYLggOHODkCBgs4cRSosRO7KQVGEKihKTKdogQqVJKWlqJQw8gWkpV9kUIxCqxiv/Imxm7DsSoTjIpSfs+qfbYnvHl85t547jzYB31BSh4qwelQNppkJLlFPzFHPWFJfmlgKgX4d5bfctVa6vPZXh3cCOa4+r5c7Ee/119XqVbg5hMPT1tcd11kjdpxXA36gulUsH2tiB1qPdI81LyLDSIpR318Cg02u41aPXcfTfqo8HxP9SzU1HYjrdg/H87w9U/DE77NPbfx3p+rHHPLP1/RzSJH5j+1bvMyyk/6ktuNaYezH/d2Hk9d+9f/XhwylN9lmYA0XIG1Ps0PwTqa6qq5onCNDclwCJ5ScqTvEoJk1CH+uLq6qt11Jf8qb/rZgQsPaDmB6j+5HYPkskd/tWD4qin+mrZHevhMfDh6r+rtwzC4OpVCXhHKrTsoHhm+GKiHgK9XT3QGKT6U/2rv+Yd9Xwc4OrpZE844tWHiK48VlWFKO7kTiUaLVsqJ9GL+kl5wZ/6WLv6lfmFhckN7vD3J3fs7X+sn4I/TjkYLAfEI159ndu2/ox6GPIr0Pnb9KK+sCDHfHX483/O6xtyqrCh6rl5/+pzrbK3+oejFvVEZ7uKrd6SgDzdKUT5W73pFFeXl9+v/37m5V/q5z3UP+G1XPVQb1aAeiHmvSd3WSfsZ3KgfsJWnwtOt431orI88ep5n84wSA22c85YX4etqZMEbA0DrgC/JE6FqH4zfG6Xd90xO/gboLRTfUxeiLF9wVFfgExPgHpB5r3f5mVnYJdtQWy3yk6ad4c9EeM5UA+7Ic7wQa8WDqs0uPVQUzHqtnpDa4ZgQs/HAD3fDCmavva0GJVw2Ld6CGg5XWpQnc4IcDfNpu/wLi8tL8F2ktVKpedLsyv2vJ4/MzEB6sWYd9W7ZOAdfqsKI3qGOq4u5pj6XDm4WG61oqCeJYNvcwJ0ilcPJDT7h9swAZSQM9brcBQ2eQaoE8CgF/hxHQ79qgdgpgbEHY+xuP3DrexQaqtlRz1/ZpYEqBdh3ls9yB+fmBi/wRP+iQn4IS9Di1PZiXHwHZ1iVa5FxRgVr94loaqm5KKqNclhjh70wWQkUhBQa4A/2u7dYr/Xjy6iP9XYu9U+1Rhd8AMtVP8vUD2qR/WoHtVLmwJUj+r/BapH9age1aN6aVOA6lH9v0D1qJ6Ci6cBu1B9jxwcnSUTvZfJPbxZFko9sm2D2TciC6Xe/HgAl0duA5dHpu6PnB59dh0G8xvP0VFYFP3gvm0IgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIsoXZc3iTrKvhgyN7xC6pcvDEmaHnECyks7kXVPG77AouqLLGkc2xjJLfxZYOC1R/4NVoLKP06sC+Tb1unj9O7xK4kM6Zm4GR4NaZg6geVtfbkksmnkD1oB4XSkX1qB7Vo/otAapH9age1aP6LQKqR/XC1X/4/HTsD57+CAwLqH6Q6j89G3t+4Q+ejz37FBgOUP0g1T/78uLcX7z48uxDYCjwpZ7okg/CJCSJJUTC0jqk5IuSL0pOxYgs96r++O6dXan/MQbmO9yPfQ4MBai+C/XHkjt2dqP+6fNzHjx/6tbIRRk3vOXMRHNiLBdfo/p+1AO7wX0X6scueKm/MObWiAY5VU/52WBGjPrLb1B9f+q5e7HqpzLAVLU1M0j1r/uIelOpaCGTHahWWNPyNclGpUdqm3pLSTBtFS1cewxlimLRehV2nd4q3JQocwprqCpztIFi0jr2jWmx6ag/e/v27bPrqi9dLMRm4/FSgQlOx+ONGBR4OT0pRD13L1R9lO0zwYmBqC9eZrs3sLt8szf1dXLFIDp1nyDEgDKxJIqpEXLlCiEJR70ZJooE5Am00DWi2jcIEYBWqxnQnpA8j2pWV2HPjEbyhN5Y5VdouW6rL166dKm4rvq4HFmRgRKU07KcWpFTzP0TVk4LUc/di1YPVN/ysZ+55iUR6i99o9sbyWIg8O1BT+qJngC1TESChXjCICaP9IpJzznqzTq3GbJbOOoNPW9KCdoH6LRCQiehTvV1lT4yFSjXWEOFrK9+vjTpql+5G5MK9yOSNCvHIfYb8hKcjskrEerfUV8olfpQz92LV9+i6qPlYJCH/wyUWtm+1b//VqS725dgU3zzvhf1zI1pGLzLd3WpRDfbx3puHtDsFo56OM15RzSJNdQ61PMmxICtxZ1r66pvJw6mAWY7VZBY7EfopkHLS6BexLyeuxetPht8SA8mMoFodQLMV6vRTHSx2qf6e0meQTxY5rF/uxf13Kctsqaqap5ZU+jWVW+Bec8WtKvn8HZgmJgd6h9JwBXitrOcsX51dVXyoX5+LaW7G6G8lGepc9YvzPak/uR2D5LJHeLUl6eBcjBLO/1FfioXuMOc51r9qT9vu76ZPM/2t5M3es3weR5nGYTCrFVIs109kGfFhNPCUW+0TwO44USH+sSa+jp55GT4/okzx1yzQ5pmA6wHaPSk/tTA1S+Wy+VgawrK1yHyKbArL7LSnX7Uu2F+PnnTVn++L/UwiiuPVVXxVG/pRPVUr3enHq72oj5ml9JyOsKBMwsy7wmEdfj7kzv2iu3wM60yK3NAfbUsIsN3wnyZJ3gzyXs9dPgQtI7oOrdiEcUR6Vq16OBfg6LptPineqOtw8+LiXpX/cV2zSl++qIY9dy86DRvPDhFo/5ahpFjXT/Qf5r3pkjTfBb8xe+9pXlghQtxLFaYNYvl465VqlFjArlzvUO9xYeEGjHcNE/rUM9uBTtnrF9eXi52oT4ix93Td+V5thOjnpsXnuFXqzC0w4Bv87aVY7u+J3cPvoNzHvvfL/U0uWO+mkygQWhYzxGitKXwNXPNV51YrA+vMM8d6hPEqLHr4bU8v0Y61NsX9C4z/Jgb6RH+DLApXpwl/ULUc/PC1cN+HIb2FnWU47k+lB4G+1Z/87L9Fhd2xZ7UGyTctAxmSCF6qKkYdi5vEbgSUgx7Xs9n/HPwTOikruRJvUM9dAu61QwT1sKE+4YsXe9QDwfwLk83elUfgQRvfr7BzhRSUG6kFkSo5+aFqwfKEOe5RZrvt6o52tVXp8vVaVAv/C2uf/XuyzjDchN5hfXVQEgngOZEPWCxuX4iTBt0pHnMPVB/xMpzOq2ldKpPVOhdld7UA5NLMrCSLtCAT0Ex3hCgnpsXqX4ma8u9kaURPzUxPX0NzLNSNnc1C+W+eXO5D/WAqaqm02e7RaaPHnpRc9K8zlvVOm7bwZw6J/VDjKX3nMnIpJBPNY6BeSE/2m4or4vdqheBTqRRwP+nGmC+C/WfvT/V+BkYCgalPhyqSbU8pIejwKA+0Prg/YFWYDgYlPorhFKRRgL8LFOkevOxpViqNBoIV+/y8++PsT8PyUeZ+EUu/gsGqkf1qB7VS1sIVI/qUT2qR/VbBFSP6gVwYnQWTzu0zYtdqL5HDp4ZicUy4af8M97L5B7eWgulHhG4OPKBVyOxXCYslIrLI+PyyH+5P3J6q7DrMJgXydFDZ4aeEwf3bfPkN1yBOqAk6i9ZAAAAAElFTkSuQmCC",lr="STORYBOOK_ADDON_ONBOARDING_CHANNEL",Zy=({onFinish:e,api:t,addonsStore:r,skipOnboarding:n,codeSnippets:i,container:o})=>{let[a,s]=Pe("imports"),u=Mn(),l={imports:0,meta:1,story:2,args:3,customStory:4},[c,p]=Pe(!1),[d,h]=ch(),f=Yy(),v=Gy(a==="customStory",t,r),S=Xy("syntax-highlighter-backdrop",a==="customStory"),x=i?.language==="javascript",b=()=>{let P=i.code[3][0].snippet;navigator.clipboard.writeText(P.replace("// Copy the code below","")),p(!0)},y=Rt(()=>{t.emit(lr,{step:"X:SkippedOnboarding",where:`HowToWriteAStoryModal:${a}`,type:"telemetry"})},[t,a]);return m.createElement(Dd,{width:740,height:430,container:o,defaultOpen:!0},m.createElement(Ld,null,i?m.createElement(zy,{activeStep:l[a]||0,data:i.code,width:480,filename:i.filename}):null,a==="customStory"&&S&&!v?.data&&m.createElement(De,{ref:d,onClick:()=>b(),style:{position:"absolute",opacity:h.width?1:0,top:S.top+S.height-45,left:S.left+S.width-(h.width??0)-10,zIndex:1e3}},c?"Copied to clipboard":"Copy code"),m.createElement(jd,null,m.createElement(Bd,null,m.createElement(_d,null),m.createElement(Ud,null),m.createElement(qd,null)),m.createElement(Nd,null,m.createElement(kt.Title,{asChild:!0},m.createElement(Vd,null,m.createElement(gi,{width:13}),m.createElement("span",null,"How to write a story"))),m.createElement(kt.Dialog.Close,{onClick:y,asChild:!0},m.createElement(vi,{style:{cursor:"pointer"},width:13,onClick:n,color:u.color.darkest}))),m.createElement(kt.Description,{asChild:!0},m.createElement(Fd,null,a==="imports"&&m.createElement(m.Fragment,null,m.createElement("div",null,m.createElement("h3",null,"Imports"),x?m.createElement("p",null,"Import a component. In this case, the Button component."):m.createElement(m.Fragment,null,m.createElement("p",null,"First, import ",m.createElement(Wr,null,"Meta")," and"," ",m.createElement(Wr,null,"StoryObj")," for type safety and autocompletion in TypeScript stories."),m.createElement("p",null,"Next, import a component. In this case, the Button component."))),m.createElement(De,{style:{marginTop:4},onClick:()=>{s("meta")}},"Next")),a==="meta"&&m.createElement(m.Fragment,null,m.createElement("div",null,m.createElement("h3",null,"Meta"),m.createElement("p",null,"The default export, Meta, contains metadata about this component's stories. The title field (optional) controls where stories appear in the sidebar."),m.createElement(Fn,{width:"204",alt:"Title property pointing to Storybook's sidebar",src:Ky})),m.createElement(Fr,null,m.createElement(De,{variant:"secondary",onClick:()=>s("imports")},"Previous"),m.createElement(De,{onClick:()=>s("story")},"Next"))),a==="story"&&m.createElement(m.Fragment,null,m.createElement("div",null,m.createElement("h3",null,"Story"),m.createElement("p",null,"Each named export is a story. Its contents specify how the story is rendered in addition to other configuration options."),m.createElement(Fn,{width:"190",alt:"Story export pointing to the sidebar entry of the story",src:Qy})),m.createElement(Fr,null,m.createElement(De,{variant:"secondary",onClick:()=>s("meta")},"Previous"),m.createElement(De,{onClick:()=>s("args")},"Next"))),a==="args"&&m.createElement(m.Fragment,null,m.createElement("div",null,m.createElement("h3",null,"Args"),m.createElement("p",null,"Args are inputs that are passed to the component, which Storybook uses to render the component in different states. In React, args = props. They also specify the initial control values for the story."),m.createElement(Fn,{alt:"Args mapped to their controls in Storybook",width:"253",src:Jy})),m.createElement(Fr,null,m.createElement(De,{variant:"secondary",onClick:()=>s("story")},"Previous"),m.createElement(De,{onClick:()=>s("customStory")},"Next"))),a==="customStory"&&(v?.error?null:m.createElement(m.Fragment,null,m.createElement("div",null,m.createElement("h3",null,"Create your first story"),m.createElement("p",null,"Now it's your turn. See how easy it is to create your first story by following these steps below."),m.createElement(Hy,null,m.createElement(Qn,{isCompleted:c||!!v?.data,index:1},"Copy the Warning story."),m.createElement(Qn,{isCompleted:!!v?.data,index:2},m.createElement(Yd,null,"Open the Button story in your current working directory."),f?.data&&m.createElement(Wr,null,f.data.replaceAll("/","/\u200B").replaceAll("\\","\\\u200B"))),m.createElement(Qn,{isCompleted:!!v?.data,index:3},"Paste it at the bottom of the file and save."))),m.createElement(Fr,null,m.createElement(De,{variant:"secondary",onClick:()=>s("args")},"Previous"),v?.data?m.createElement(De,{onClick:()=>e()},"Go to story"):null))))))))},$y={filename:"Button.stories.js",language:"typescript",code:[[{snippet:"import { Button } from './Button';"}],[{snippet:`export default { + title: 'Example/Button', + component: Button, + // ... + };`}],[{snippet:"export const Primary = {"},{snippet:`args: { + primary: true, + label: 'Click', + background: 'red' + }`,toggle:!0},{snippet:"};"}],[{snippet:`// Copy the code below +export const Warning = { + args: { + primary: true, + label: 'Delete now', + backgroundColor: 'red', + } +};`}]]},ev=$y,tv={filename:"Button.stories.ts",language:"typescript",code:[[{snippet:`import type { Meta, StoryObj } from '@storybook/react'; + + import { Button } from './Button';`}],[{snippet:`const meta: Meta = { + title: 'Example/Button', + component: Button, + // ... + }; + + export default meta;`}],[{snippet:`type Story = StoryObj