diff --git a/assets/index-59331e98.js b/assets/index-59331e98.js deleted file mode 100644 index 93edc4d..0000000 --- a/assets/index-59331e98.js +++ /dev/null @@ -1,974 +0,0 @@ -(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))t(j);new MutationObserver(j=>{for(const b of j)if(b.type==="childList")for(const c of b.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function v(j){const b={};return j.integrity&&(b.integrity=j.integrity),j.referrerPolicy&&(b.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?b.credentials="include":j.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function t(j){if(j.ep)return;j.ep=!0;const b=v(j);fetch(j.href,b)}})();var Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $p(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var mr={},Zp={get exports(){return mr},set exports(r){mr=r}},Ni={},nr={},Kp={get exports(){return nr},set exports(r){nr=r}},dt={};/** - * @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 Es=Symbol.for("react.element"),Jp=Symbol.for("react.portal"),eh=Symbol.for("react.fragment"),th=Symbol.for("react.strict_mode"),rh=Symbol.for("react.profiler"),nh=Symbol.for("react.provider"),oh=Symbol.for("react.context"),sh=Symbol.for("react.forward_ref"),ih=Symbol.for("react.suspense"),ah=Symbol.for("react.memo"),lh=Symbol.for("react.lazy"),sc=Symbol.iterator;function uh(r){return r===null||typeof r!="object"?null:(r=sc&&r[sc]||r["@@iterator"],typeof r=="function"?r:null)}var vd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bd=Object.assign,_d={};function ko(r,a,v){this.props=r,this.context=a,this.refs=_d,this.updater=v||vd}ko.prototype.isReactComponent={};ko.prototype.setState=function(r,a){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,a,"setState")};ko.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function xd(){}xd.prototype=ko.prototype;function Cl(r,a,v){this.props=r,this.context=a,this.refs=_d,this.updater=v||vd}var kl=Cl.prototype=new xd;kl.constructor=Cl;bd(kl,ko.prototype);kl.isPureReactComponent=!0;var ic=Array.isArray,wd=Object.prototype.hasOwnProperty,Ol={current:null},jd={key:!0,ref:!0,__self:!0,__source:!0};function Sd(r,a,v){var t,j={},b=null,c=null;if(a!=null)for(t in a.ref!==void 0&&(c=a.ref),a.key!==void 0&&(b=""+a.key),a)wd.call(a,t)&&!jd.hasOwnProperty(t)&&(j[t]=a[t]);var l=arguments.length-2;if(l===1)j.children=v;else if(1>>1,se=V[Z];if(0>>1;Zj(B,W))qj(te,B)?(V[Z]=te,V[q]=W,Z=q):(V[Z]=B,V[D]=W,Z=D);else if(qj(te,W))V[Z]=te,V[q]=W,Z=q;else break e}}return H}function j(V,H){var W=V.sortIndex-H.sortIndex;return W!==0?W:V.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var b=performance;r.unstable_now=function(){return b.now()}}else{var c=Date,l=c.now();r.unstable_now=function(){return c.now()-l}}var n=[],u=[],f=1,p=null,s=3,i=!1,o=!1,d=!1,y=typeof setTimeout=="function"?setTimeout:null,m=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 _(V){for(var H=v(u);H!==null;){if(H.callback===null)t(u);else if(H.startTime<=V)t(u),H.sortIndex=H.expirationTime,a(n,H);else break;H=v(u)}}function S(V){if(d=!1,_(V),!o)if(v(n)!==null)o=!0,Q(x);else{var H=v(u);H!==null&&$(S,H.startTime-V)}}function x(V,H){o=!1,d&&(d=!1,m(k),k=-1),i=!0;var W=s;try{for(_(H),p=v(n);p!==null&&(!(p.expirationTime>H)||V&&!A());){var Z=p.callback;if(typeof Z=="function"){p.callback=null,s=p.priorityLevel;var se=Z(p.expirationTime<=H);H=r.unstable_now(),typeof se=="function"?p.callback=se:p===v(n)&&t(n),_(H)}else t(n);p=v(n)}if(p!==null)var O=!0;else{var D=v(u);D!==null&&$(S,D.startTime-H),O=!1}return O}finally{p=null,s=W,i=!1}}var C=!1,T=null,k=-1,R=5,L=-1;function A(){return!(r.unstable_now()-LV||125Z?(V.sortIndex=W,a(u,V),v(n)===null&&V===v(u)&&(d?(m(k),k=-1):d=!0,$(S,W-Z))):(V.sortIndex=se,a(n,V),o||i||(o=!0,Q(x))),V},r.unstable_shouldYield=A,r.unstable_wrapCallback=function(V){var H=s;return function(){var W=s;s=H;try{return V.apply(this,arguments)}finally{s=W}}}})(Md);(function(r){r.exports=Md})(xh);/** - * @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 Td=nr,Cr=Ra;function Be(r){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+r,v=1;v"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Aa=Object.prototype.hasOwnProperty,wh=/^[: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]*$/,lc={},uc={};function jh(r){return Aa.call(uc,r)?!0:Aa.call(lc,r)?!1:wh.test(r)?uc[r]=!0:(lc[r]=!0,!1)}function Sh(r,a,v,t){if(v!==null&&v.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return t?!1:v!==null?!v.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function Eh(r,a,v,t){if(a===null||typeof a>"u"||Sh(r,a,v,t))return!0;if(t)return!1;if(v!==null)switch(v.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function vr(r,a,v,t,j,b,c){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=t,this.attributeNamespace=j,this.mustUseProperty=v,this.propertyName=r,this.type=a,this.sanitizeURL=b,this.removeEmptyString=c}var sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){sr[r]=new vr(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0];sr[a]=new vr(a,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){sr[r]=new vr(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){sr[r]=new vr(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){sr[r]=new vr(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){sr[r]=new vr(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){sr[r]=new vr(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){sr[r]=new vr(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){sr[r]=new vr(r,5,!1,r.toLowerCase(),null,!1,!1)});var Ll=/[\-:]([a-z])/g;function Rl(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var a=r.replace(Ll,Rl);sr[a]=new vr(a,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var a=r.replace(Ll,Rl);sr[a]=new vr(a,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(Ll,Rl);sr[a]=new vr(a,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){sr[r]=new vr(r,1,!1,r.toLowerCase(),null,!1,!1)});sr.xlinkHref=new vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){sr[r]=new vr(r,1,!1,r.toLowerCase(),null,!0,!0)});function Al(r,a,v,t){var j=sr.hasOwnProperty(a)?sr[a]:null;(j!==null?j.type!==0:t||!(2l||j[c]!==b[l]){var n=` -`+j[c].replace(" at new "," at ");return r.displayName&&n.includes("")&&(n=n.replace("",r.displayName)),n}while(1<=c&&0<=l);break}}}finally{la=!1,Error.prepareStackTrace=v}return(r=r?r.displayName||r.name:"")?Qo(r):""}function Mh(r){switch(r.tag){case 5:return Qo(r.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return r=ua(r.type,!1),r;case 11:return r=ua(r.type.render,!1),r;case 1:return r=ua(r.type,!0),r;default:return""}}function Ua(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case oo:return"Fragment";case no:return"Portal";case Da:return"Profiler";case Dl:return"StrictMode";case Ia:return"Suspense";case Na:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Od:return(r.displayName||"Context")+".Consumer";case kd:return(r._context.displayName||"Context")+".Provider";case Il:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Nl:return a=r.displayName||null,a!==null?a:Ua(r.type)||"Memo";case bn:a=r._payload,r=r._init;try{return Ua(r(a))}catch{}}return null}function Th(r){var a=r.type;switch(r.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=a.render,r=r.displayName||r.name||"",a.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ua(a);case 8:return a===Dl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Rn(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ld(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ch(r){var a=Ld(r)?"checked":"value",v=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),t=""+r[a];if(!r.hasOwnProperty(a)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var j=v.get,b=v.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return j.call(this)},set:function(c){t=""+c,b.call(this,c)}}),Object.defineProperty(r,a,{enumerable:v.enumerable}),{getValue:function(){return t},setValue:function(c){t=""+c},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Fs(r){r._valueTracker||(r._valueTracker=Ch(r))}function Rd(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var v=a.getValue(),t="";return r&&(t=Ld(r)?r.checked?"true":"false":r.value),r=t,r!==v?(a.setValue(r),!0):!1}function pi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fa(r,a){var v=a.checked;return At({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??r._wrapperState.initialChecked})}function dc(r,a){var v=a.defaultValue==null?"":a.defaultValue,t=a.checked!=null?a.checked:a.defaultChecked;v=Rn(a.value!=null?a.value:v),r._wrapperState={initialChecked:t,initialValue:v,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ad(r,a){a=a.checked,a!=null&&Al(r,"checked",a,!1)}function Ba(r,a){Ad(r,a);var v=Rn(a.value),t=a.type;if(v!=null)t==="number"?(v===0&&r.value===""||r.value!=v)&&(r.value=""+v):r.value!==""+v&&(r.value=""+v);else if(t==="submit"||t==="reset"){r.removeAttribute("value");return}a.hasOwnProperty("value")?Ga(r,a.type,v):a.hasOwnProperty("defaultValue")&&Ga(r,a.type,Rn(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(r.defaultChecked=!!a.defaultChecked)}function fc(r,a,v){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var t=a.type;if(!(t!=="submit"&&t!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+r._wrapperState.initialValue,v||a===r.value||(r.value=a),r.defaultValue=a}v=r.name,v!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,v!==""&&(r.name=v)}function Ga(r,a,v){(a!=="number"||pi(r.ownerDocument)!==r)&&(v==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+v&&(r.defaultValue=""+v))}var $o=Array.isArray;function yo(r,a,v,t){if(r=r.options,a){a={};for(var j=0;j"+a.valueOf().toString()+"",a=Bs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;a.firstChild;)r.appendChild(a.firstChild)}});function us(r,a){if(a){var v=r.firstChild;if(v&&v===r.lastChild&&v.nodeType===3){v.nodeValue=a;return}}r.textContent=a}var Jo={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},kh=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(r){kh.forEach(function(a){a=a+r.charAt(0).toUpperCase()+r.substring(1),Jo[a]=Jo[r]})});function Ud(r,a,v){return a==null||typeof a=="boolean"||a===""?"":v||typeof a!="number"||a===0||Jo.hasOwnProperty(r)&&Jo[r]?(""+a).trim():a+"px"}function Fd(r,a){r=r.style;for(var v in a)if(a.hasOwnProperty(v)){var t=v.indexOf("--")===0,j=Ud(v,a[v],t);v==="float"&&(v="cssFloat"),t?r.setProperty(v,j):r[v]=j}}var Oh=At({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 Ha(r,a){if(a){if(Oh[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(Be(137,r));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(Be(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(Be(61))}if(a.style!=null&&typeof a.style!="object")throw Error(Be(62))}}function Wa(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qa=null;function Ul(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Xa=null,go=null,vo=null;function mc(r){if(r=Cs(r)){if(typeof Xa!="function")throw Error(Be(280));var a=r.stateNode;a&&(a=zi(a),Xa(r.stateNode,r.type,a))}}function Bd(r){go?vo?vo.push(r):vo=[r]:go=r}function Gd(){if(go){var r=go,a=vo;if(vo=go=null,mc(r),a)for(r=0;r>>=0,r===0?32:31-(Gh(r)/zh|0)|0}var Gs=64,zs=4194304;function Zo(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function gi(r,a){var v=r.pendingLanes;if(v===0)return 0;var t=0,j=r.suspendedLanes,b=r.pingedLanes,c=v&268435455;if(c!==0){var l=c&~j;l!==0?t=Zo(l):(b&=c,b!==0&&(t=Zo(b)))}else c=v&~j,c!==0?t=Zo(c):b!==0&&(t=Zo(b));if(t===0)return 0;if(a!==0&&a!==t&&!(a&j)&&(j=t&-t,b=a&-a,j>=b||j===16&&(b&4194240)!==0))return a;if(t&4&&(t|=v&16),a=r.entangledLanes,a!==0)for(r=r.entanglements,a&=t;0v;v++)a.push(r);return a}function Ms(r,a,v){r.pendingLanes|=a,a!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,a=31-Hr(a),r[a]=v}function qh(r,a){var v=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a,a=r.entanglements;var t=r.eventTimes;for(r=r.expirationTimes;0=ts),Sc=String.fromCharCode(32),Ec=!1;function lf(r,a){switch(r){case"keyup":return _m.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uf(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var so=!1;function wm(r,a){switch(r){case"compositionend":return uf(a);case"keypress":return a.which!==32?null:(Ec=!0,Sc);case"textInput":return r=a.data,r===Sc&&Ec?null:r;default:return null}}function jm(r,a){if(so)return r==="compositionend"||!ql&&lf(r,a)?(r=sf(),oi=Vl=jn=null,so=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:v,offset:a-r};r=t}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=kc(v)}}function pf(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?pf(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function hf(){for(var r=window,a=pi();a instanceof r.HTMLIFrameElement;){try{var v=typeof a.contentWindow.location.href=="string"}catch{v=!1}if(v)r=a.contentWindow;else break;a=pi(r.document)}return a}function Xl(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Lm(r){var a=hf(),v=r.focusedElem,t=r.selectionRange;if(a!==v&&v&&v.ownerDocument&&pf(v.ownerDocument.documentElement,v)){if(t!==null&&Xl(v)){if(a=t.start,r=t.end,r===void 0&&(r=a),"selectionStart"in v)v.selectionStart=a,v.selectionEnd=Math.min(r,v.value.length);else if(r=(a=v.ownerDocument||document)&&a.defaultView||window,r.getSelection){r=r.getSelection();var j=v.textContent.length,b=Math.min(t.start,j);t=t.end===void 0?b:Math.min(t.end,j),!r.extend&&b>t&&(j=t,t=b,b=j),j=Oc(v,b);var c=Oc(v,t);j&&c&&(r.rangeCount!==1||r.anchorNode!==j.node||r.anchorOffset!==j.offset||r.focusNode!==c.node||r.focusOffset!==c.offset)&&(a=a.createRange(),a.setStart(j.node,j.offset),r.removeAllRanges(),b>t?(r.addRange(a),r.extend(c.node,c.offset)):(a.setEnd(c.node,c.offset),r.addRange(a)))}}for(a=[],r=v;r=r.parentNode;)r.nodeType===1&&a.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v=document.documentMode,io=null,Ja=null,ns=null,el=!1;function Pc(r,a,v){var t=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;el||io==null||io!==pi(t)||(t=io,"selectionStart"in t&&Xl(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),ns&&ms(ns,t)||(ns=t,t=_i(Ja,"onSelect"),0uo||(r.current=il[uo],il[uo]=null,uo--)}function St(r,a){uo++,il[uo]=r.current,r.current=a}var An={},pr=In(An),xr=In(!1),Wn=An;function jo(r,a){var v=r.type.contextTypes;if(!v)return An;var t=r.stateNode;if(t&&t.__reactInternalMemoizedUnmaskedChildContext===a)return t.__reactInternalMemoizedMaskedChildContext;var j={},b;for(b in v)j[b]=a[b];return t&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=a,r.__reactInternalMemoizedMaskedChildContext=j),j}function wr(r){return r=r.childContextTypes,r!=null}function wi(){kt(xr),kt(pr)}function Uc(r,a,v){if(pr.current!==An)throw Error(Be(168));St(pr,a),St(xr,v)}function jf(r,a,v){var t=r.stateNode;if(a=a.childContextTypes,typeof t.getChildContext!="function")return v;t=t.getChildContext();for(var j in t)if(!(j in a))throw Error(Be(108,Th(r)||"Unknown",j));return At({},v,t)}function ji(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||An,Wn=pr.current,St(pr,r),St(xr,xr.current),!0}function Fc(r,a,v){var t=r.stateNode;if(!t)throw Error(Be(169));v?(r=jf(r,a,Wn),t.__reactInternalMemoizedMergedChildContext=r,kt(xr),kt(pr),St(pr,r)):kt(xr),St(xr,v)}var sn=null,Vi=!1,ja=!1;function Sf(r){sn===null?sn=[r]:sn.push(r)}function Hm(r){Vi=!0,Sf(r)}function Nn(){if(!ja&&sn!==null){ja=!0;var r=0,a=vt;try{var v=sn;for(vt=1;r>=c,j-=c,an=1<<32-Hr(a)+j|v<k?(R=T,T=null):R=T.sibling;var L=s(m,T,_[k],S);if(L===null){T===null&&(T=R);break}r&&T&&L.alternate===null&&a(m,T),g=b(L,g,k),C===null?x=L:C.sibling=L,C=L,T=R}if(k===_.length)return v(m,T),Ot&&Un(m,k),x;if(T===null){for(;k<_.length;k++)T=p(m,_[k],S),T!==null&&(g=b(T,g,k),C===null?x=T:C.sibling=T,C=T);return Ot&&Un(m,k),x}for(T=t(m,T);k<_.length;k++)R=i(T,m,k,_[k],S),R!==null&&(r&&R.alternate!==null&&T.delete(R.key===null?k:R.key),g=b(R,g,k),C===null?x=R:C.sibling=R,C=R);return r&&T.forEach(function(A){return a(m,A)}),Ot&&Un(m,k),x}function d(m,g,_,S){var x=Go(_);if(typeof x!="function")throw Error(Be(150));if(_=x.call(_),_==null)throw Error(Be(151));for(var C=x=null,T=g,k=g=0,R=null,L=_.next();T!==null&&!L.done;k++,L=_.next()){T.index>k?(R=T,T=null):R=T.sibling;var A=s(m,T,L.value,S);if(A===null){T===null&&(T=R);break}r&&T&&A.alternate===null&&a(m,T),g=b(A,g,k),C===null?x=A:C.sibling=A,C=A,T=R}if(L.done)return v(m,T),Ot&&Un(m,k),x;if(T===null){for(;!L.done;k++,L=_.next())L=p(m,L.value,S),L!==null&&(g=b(L,g,k),C===null?x=L:C.sibling=L,C=L);return Ot&&Un(m,k),x}for(T=t(m,T);!L.done;k++,L=_.next())L=i(T,m,k,L.value,S),L!==null&&(r&&L.alternate!==null&&T.delete(L.key===null?k:L.key),g=b(L,g,k),C===null?x=L:C.sibling=L,C=L);return r&&T.forEach(function(U){return a(m,U)}),Ot&&Un(m,k),x}function y(m,g,_,S){if(typeof _=="object"&&_!==null&&_.type===oo&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Us:e:{for(var x=_.key,C=g;C!==null;){if(C.key===x){if(x=_.type,x===oo){if(C.tag===7){v(m,C.sibling),g=j(C,_.props.children),g.return=m,m=g;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===bn&&qc(x)===C.type){v(m,C.sibling),g=j(C,_.props),g.ref=qo(m,C,_),g.return=m,m=g;break e}v(m,C);break}else a(m,C);C=C.sibling}_.type===oo?(g=Hn(_.props.children,m.mode,S,_.key),g.return=m,m=g):(S=fi(_.type,_.key,_.props,null,m.mode,S),S.ref=qo(m,g,_),S.return=m,m=S)}return c(m);case no:e:{for(C=_.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){v(m,g.sibling),g=j(g,_.children||[]),g.return=m,m=g;break e}else{v(m,g);break}else a(m,g);g=g.sibling}g=Pa(_,m.mode,S),g.return=m,m=g}return c(m);case bn:return C=_._init,y(m,g,C(_._payload),S)}if($o(_))return o(m,g,_,S);if(Go(_))return d(m,g,_,S);Qs(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(v(m,g.sibling),g=j(g,_),g.return=m,m=g):(v(m,g),g=Oa(_,m.mode,S),g.return=m,m=g),c(m)):v(m,g)}return y}var Eo=Lf(!0),Rf=Lf(!1),ks={},tn=In(ks),bs=In(ks),_s=In(ks);function zn(r){if(r===ks)throw Error(Be(174));return r}function ru(r,a){switch(St(_s,a),St(bs,r),St(tn,ks),r=a.nodeType,r){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Va(null,"");break;default:r=r===8?a.parentNode:a,a=r.namespaceURI||null,r=r.tagName,a=Va(a,r)}kt(tn),St(tn,a)}function Mo(){kt(tn),kt(bs),kt(_s)}function Af(r){zn(_s.current);var a=zn(tn.current),v=Va(a,r.type);a!==v&&(St(bs,r),St(tn,v))}function nu(r){bs.current===r&&(kt(tn),kt(bs))}var Lt=In(0);function ki(r){for(var a=r;a!==null;){if(a.tag===13){var v=a.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Sa=[];function ou(){for(var r=0;rv?v:4,r(!0);var t=Ea.transition;Ea.transition={};try{r(!1),a()}finally{vt=v,Ea.transition=t}}function $f(){return Ir().memoizedState}function Ym(r,a,v){var t=Pn(r);if(v={lane:t,action:v,hasEagerState:!1,eagerState:null,next:null},Zf(r))Kf(a,v);else if(v=Cf(r,a,v,t),v!==null){var j=yr();Wr(v,r,t,j),Jf(v,a,t)}}function Qm(r,a,v){var t=Pn(r),j={lane:t,action:v,hasEagerState:!1,eagerState:null,next:null};if(Zf(r))Kf(a,j);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var c=a.lastRenderedState,l=b(c,v);if(j.hasEagerState=!0,j.eagerState=l,qr(l,c)){var n=a.interleaved;n===null?(j.next=j,eu(a)):(j.next=n.next,n.next=j),a.interleaved=j;return}}catch{}finally{}v=Cf(r,a,j,t),v!==null&&(j=yr(),Wr(v,r,t,j),Jf(v,a,t))}}function Zf(r){var a=r.alternate;return r===Rt||a!==null&&a===Rt}function Kf(r,a){os=Oi=!0;var v=r.pending;v===null?a.next=a:(a.next=v.next,v.next=a),r.pending=a}function Jf(r,a,v){if(v&4194240){var t=a.lanes;t&=r.pendingLanes,v|=t,a.lanes=v,Bl(r,v)}}var Pi={readContext:Dr,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},$m={readContext:Dr,useCallback:function(r,a){return Kr().memoizedState=[r,a===void 0?null:a],r},useContext:Dr,useEffect:Yc,useImperativeHandle:function(r,a,v){return v=v!=null?v.concat([r]):null,li(4194308,4,Wf.bind(null,a,r),v)},useLayoutEffect:function(r,a){return li(4194308,4,r,a)},useInsertionEffect:function(r,a){return li(4,2,r,a)},useMemo:function(r,a){var v=Kr();return a=a===void 0?null:a,r=r(),v.memoizedState=[r,a],r},useReducer:function(r,a,v){var t=Kr();return a=v!==void 0?v(a):a,t.memoizedState=t.baseState=a,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:a},t.queue=r,r=r.dispatch=Ym.bind(null,Rt,r),[t.memoizedState,r]},useRef:function(r){var a=Kr();return r={current:r},a.memoizedState=r},useState:Xc,useDebugValue:uu,useDeferredValue:function(r){return Kr().memoizedState=r},useTransition:function(){var r=Xc(!1),a=r[0];return r=Xm.bind(null,r[1]),Kr().memoizedState=r,[a,r]},useMutableSource:function(){},useSyncExternalStore:function(r,a,v){var t=Rt,j=Kr();if(Ot){if(v===void 0)throw Error(Be(407));v=v()}else{if(v=a(),Kt===null)throw Error(Be(349));Xn&30||Nf(t,a,v)}j.memoizedState=v;var b={value:v,getSnapshot:a};return j.queue=b,Yc(Ff.bind(null,t,b,r),[r]),t.flags|=2048,js(9,Uf.bind(null,t,b,v,a),void 0,null),v},useId:function(){var r=Kr(),a=Kt.identifierPrefix;if(Ot){var v=ln,t=an;v=(t&~(1<<32-Hr(t)-1)).toString(32)+v,a=":"+a+"R"+v,v=xs++,0<\/script>",r=r.removeChild(r.firstChild)):typeof t.is=="string"?r=c.createElement(v,{is:t.is}):(r=c.createElement(v),v==="select"&&(c=r,t.multiple?c.multiple=!0:t.size&&(c.size=t.size))):r=c.createElementNS(r,v),r[Jr]=a,r[vs]=t,lp(r,a,!1,!1),a.stateNode=r;e:{switch(c=Wa(v,t),v){case"dialog":Ct("cancel",r),Ct("close",r),j=t;break;case"iframe":case"object":case"embed":Ct("load",r),j=t;break;case"video":case"audio":for(j=0;jCo&&(a.flags|=128,t=!0,Xo(b,!1),a.lanes=4194304)}else{if(!t)if(r=ki(c),r!==null){if(a.flags|=128,t=!0,v=r.updateQueue,v!==null&&(a.updateQueue=v,a.flags|=4),Xo(b,!0),b.tail===null&&b.tailMode==="hidden"&&!c.alternate&&!Ot)return dr(a),null}else 2*Ft()-b.renderingStartTime>Co&&v!==1073741824&&(a.flags|=128,t=!0,Xo(b,!1),a.lanes=4194304);b.isBackwards?(c.sibling=a.child,a.child=c):(v=b.last,v!==null?v.sibling=c:a.child=c,b.last=c)}return b.tail!==null?(a=b.tail,b.rendering=a,b.tail=a.sibling,b.renderingStartTime=Ft(),a.sibling=null,v=Lt.current,St(Lt,t?v&1|2:v&1),a):(dr(a),null);case 22:case 23:return mu(),t=a.memoizedState!==null,r!==null&&r.memoizedState!==null!==t&&(a.flags|=8192),t&&a.mode&1?Er&1073741824&&(dr(a),a.subtreeFlags&6&&(a.flags|=8192)):dr(a),null;case 24:return null;case 25:return null}throw Error(Be(156,a.tag))}function oy(r,a){switch(Ql(a),a.tag){case 1:return wr(a.type)&&wi(),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Mo(),kt(xr),kt(pr),ou(),r=a.flags,r&65536&&!(r&128)?(a.flags=r&-65537|128,a):null;case 5:return nu(a),null;case 13:if(kt(Lt),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(Be(340));So()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return kt(Lt),null;case 4:return Mo(),null;case 10:return Jl(a.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var Zs=!1,fr=!1,sy=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function ho(r,a){var v=r.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(t){Nt(r,a,t)}else v.current=null}function vl(r,a,v){try{v()}catch(t){Nt(r,a,t)}}var nd=!1;function iy(r,a){if(tl=vi,r=hf(),Xl(r)){if("selectionStart"in r)var v={start:r.selectionStart,end:r.selectionEnd};else e:{v=(v=r.ownerDocument)&&v.defaultView||window;var t=v.getSelection&&v.getSelection();if(t&&t.rangeCount!==0){v=t.anchorNode;var j=t.anchorOffset,b=t.focusNode;t=t.focusOffset;try{v.nodeType,b.nodeType}catch{v=null;break e}var c=0,l=-1,n=-1,u=0,f=0,p=r,s=null;t:for(;;){for(var i;p!==v||j!==0&&p.nodeType!==3||(l=c+j),p!==b||t!==0&&p.nodeType!==3||(n=c+t),p.nodeType===3&&(c+=p.nodeValue.length),(i=p.firstChild)!==null;)s=p,p=i;for(;;){if(p===r)break t;if(s===v&&++u===j&&(l=c),s===b&&++f===t&&(n=c),(i=p.nextSibling)!==null)break;p=s,s=p.parentNode}p=i}v=l===-1||n===-1?null:{start:l,end:n}}else v=null}v=v||{start:0,end:0}}else v=null;for(rl={focusedElem:r,selectionRange:v},vi=!1,Ze=a;Ze!==null;)if(a=Ze,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Ze=r;else for(;Ze!==null;){a=Ze;try{var o=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var d=o.memoizedProps,y=o.memoizedState,m=a.stateNode,g=m.getSnapshotBeforeUpdate(a.elementType===a.type?d:Gr(a.type,d),y);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=a.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Be(163))}}catch(S){Nt(a,a.return,S)}if(r=a.sibling,r!==null){r.return=a.return,Ze=r;break}Ze=a.return}return o=nd,nd=!1,o}function ss(r,a,v){var t=a.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var j=t=t.next;do{if((j.tag&r)===r){var b=j.destroy;j.destroy=void 0,b!==void 0&&vl(a,v,b)}j=j.next}while(j!==t)}}function qi(r,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var v=a=a.next;do{if((v.tag&r)===r){var t=v.create;v.destroy=t()}v=v.next}while(v!==a)}}function bl(r){var a=r.ref;if(a!==null){var v=r.stateNode;switch(r.tag){case 5:r=v;break;default:r=v}typeof a=="function"?a(r):a.current=r}}function dp(r){var a=r.alternate;a!==null&&(r.alternate=null,dp(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&(delete a[Jr],delete a[vs],delete a[sl],delete a[zm],delete a[Vm])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function fp(r){return r.tag===5||r.tag===3||r.tag===4}function od(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fp(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function _l(r,a,v){var t=r.tag;if(t===5||t===6)r=r.stateNode,a?v.nodeType===8?v.parentNode.insertBefore(r,a):v.insertBefore(r,a):(v.nodeType===8?(a=v.parentNode,a.insertBefore(r,v)):(a=v,a.appendChild(r)),v=v._reactRootContainer,v!=null||a.onclick!==null||(a.onclick=xi));else if(t!==4&&(r=r.child,r!==null))for(_l(r,a,v),r=r.sibling;r!==null;)_l(r,a,v),r=r.sibling}function xl(r,a,v){var t=r.tag;if(t===5||t===6)r=r.stateNode,a?v.insertBefore(r,a):v.appendChild(r);else if(t!==4&&(r=r.child,r!==null))for(xl(r,a,v),r=r.sibling;r!==null;)xl(r,a,v),r=r.sibling}var rr=null,zr=!1;function vn(r,a,v){for(v=v.child;v!==null;)pp(r,a,v),v=v.sibling}function pp(r,a,v){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ui,v)}catch{}switch(v.tag){case 5:fr||ho(v,a);case 6:var t=rr,j=zr;rr=null,vn(r,a,v),rr=t,zr=j,rr!==null&&(zr?(r=rr,v=v.stateNode,r.nodeType===8?r.parentNode.removeChild(v):r.removeChild(v)):rr.removeChild(v.stateNode));break;case 18:rr!==null&&(zr?(r=rr,v=v.stateNode,r.nodeType===8?wa(r.parentNode,v):r.nodeType===1&&wa(r,v),ps(r)):wa(rr,v.stateNode));break;case 4:t=rr,j=zr,rr=v.stateNode.containerInfo,zr=!0,vn(r,a,v),rr=t,zr=j;break;case 0:case 11:case 14:case 15:if(!fr&&(t=v.updateQueue,t!==null&&(t=t.lastEffect,t!==null))){j=t=t.next;do{var b=j,c=b.destroy;b=b.tag,c!==void 0&&(b&2||b&4)&&vl(v,a,c),j=j.next}while(j!==t)}vn(r,a,v);break;case 1:if(!fr&&(ho(v,a),t=v.stateNode,typeof t.componentWillUnmount=="function"))try{t.props=v.memoizedProps,t.state=v.memoizedState,t.componentWillUnmount()}catch(l){Nt(v,a,l)}vn(r,a,v);break;case 21:vn(r,a,v);break;case 22:v.mode&1?(fr=(t=fr)||v.memoizedState!==null,vn(r,a,v),fr=t):vn(r,a,v);break;default:vn(r,a,v)}}function sd(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var v=r.stateNode;v===null&&(v=r.stateNode=new sy),a.forEach(function(t){var j=my.bind(null,r,t);v.has(t)||(v.add(t),t.then(j,j))})}}function Br(r,a){var v=a.deletions;if(v!==null)for(var t=0;tj&&(j=c),t&=~b}if(t=j,t=Ft()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*ly(t/1960))-t,10r?16:r,Sn===null)var t=!1;else{if(r=Sn,Sn=null,Ai=0,mt&6)throw Error(Be(331));var j=mt;for(mt|=4,Ze=r.current;Ze!==null;){var b=Ze,c=b.child;if(Ze.flags&16){var l=b.deletions;if(l!==null){for(var n=0;nFt()-pu?Vn(r,0):fu|=v),jr(r,a)}function xp(r,a){a===0&&(r.mode&1?(a=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):a=1);var v=yr();r=fn(r,a),r!==null&&(Ms(r,a,v),jr(r,v))}function hy(r){var a=r.memoizedState,v=0;a!==null&&(v=a.retryLane),xp(r,v)}function my(r,a){var v=0;switch(r.tag){case 13:var t=r.stateNode,j=r.memoizedState;j!==null&&(v=j.retryLane);break;case 19:t=r.stateNode;break;default:throw Error(Be(314))}t!==null&&t.delete(a),xp(r,v)}var wp;wp=function(r,a,v){if(r!==null)if(r.memoizedProps!==a.pendingProps||xr.current)_r=!0;else{if(!(r.lanes&v)&&!(a.flags&128))return _r=!1,ry(r,a,v);_r=!!(r.flags&131072)}else _r=!1,Ot&&a.flags&1048576&&Ef(a,Ei,a.index);switch(a.lanes=0,a.tag){case 2:var t=a.type;ui(r,a),r=a.pendingProps;var j=jo(a,pr.current);_o(a,v),j=iu(null,a,t,r,j,v);var b=au();return a.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,wr(t)?(b=!0,ji(a)):b=!1,a.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,tu(a),j.updater=Hi,a.stateNode=j,j._reactInternals=a,dl(a,t,r,v),a=hl(null,a,t,!0,b,v)):(a.tag=0,Ot&&b&&Yl(a),hr(null,a,j,v),a=a.child),a;case 16:t=a.elementType;e:{switch(ui(r,a),r=a.pendingProps,j=t._init,t=j(t._payload),a.type=t,j=a.tag=gy(t),r=Gr(t,r),j){case 0:a=pl(null,a,t,r,v);break e;case 1:a=ed(null,a,t,r,v);break e;case 11:a=Kc(null,a,t,r,v);break e;case 14:a=Jc(null,a,t,Gr(t.type,r),v);break e}throw Error(Be(306,t,""))}return a;case 0:return t=a.type,j=a.pendingProps,j=a.elementType===t?j:Gr(t,j),pl(r,a,t,j,v);case 1:return t=a.type,j=a.pendingProps,j=a.elementType===t?j:Gr(t,j),ed(r,a,t,j,v);case 3:e:{if(sp(a),r===null)throw Error(Be(387));t=a.pendingProps,b=a.memoizedState,j=b.element,kf(r,a),Ci(a,t,null,v);var c=a.memoizedState;if(t=c.element,b.isDehydrated)if(b={element:t,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){j=To(Error(Be(423)),a),a=td(r,a,t,v,j);break e}else if(t!==j){j=To(Error(Be(424)),a),a=td(r,a,t,v,j);break e}else for(Mr=Cn(a.stateNode.containerInfo.firstChild),Tr=a,Ot=!0,Vr=null,v=Rf(a,null,t,v),a.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(So(),t===j){a=pn(r,a,v);break e}hr(r,a,t,v)}a=a.child}return a;case 5:return Af(a),r===null&&ll(a),t=a.type,j=a.pendingProps,b=r!==null?r.memoizedProps:null,c=j.children,nl(t,j)?c=null:b!==null&&nl(t,b)&&(a.flags|=32),op(r,a),hr(r,a,c,v),a.child;case 6:return r===null&&ll(a),null;case 13:return ip(r,a,v);case 4:return ru(a,a.stateNode.containerInfo),t=a.pendingProps,r===null?a.child=Eo(a,null,t,v):hr(r,a,t,v),a.child;case 11:return t=a.type,j=a.pendingProps,j=a.elementType===t?j:Gr(t,j),Kc(r,a,t,j,v);case 7:return hr(r,a,a.pendingProps,v),a.child;case 8:return hr(r,a,a.pendingProps.children,v),a.child;case 12:return hr(r,a,a.pendingProps.children,v),a.child;case 10:e:{if(t=a.type._context,j=a.pendingProps,b=a.memoizedProps,c=j.value,St(Mi,t._currentValue),t._currentValue=c,b!==null)if(qr(b.value,c)){if(b.children===j.children&&!xr.current){a=pn(r,a,v);break e}}else for(b=a.child,b!==null&&(b.return=a);b!==null;){var l=b.dependencies;if(l!==null){c=b.child;for(var n=l.firstContext;n!==null;){if(n.context===t){if(b.tag===1){n=un(-1,v&-v),n.tag=2;var u=b.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n}}b.lanes|=v,n=b.alternate,n!==null&&(n.lanes|=v),ul(b.return,v,a),l.lanes|=v;break}n=n.next}}else if(b.tag===10)c=b.type===a.type?null:b.child;else if(b.tag===18){if(c=b.return,c===null)throw Error(Be(341));c.lanes|=v,l=c.alternate,l!==null&&(l.lanes|=v),ul(c,v,a),c=b.sibling}else c=b.child;if(c!==null)c.return=b;else for(c=b;c!==null;){if(c===a){c=null;break}if(b=c.sibling,b!==null){b.return=c.return,c=b;break}c=c.return}b=c}hr(r,a,j.children,v),a=a.child}return a;case 9:return j=a.type,t=a.pendingProps.children,_o(a,v),j=Dr(j),t=t(j),a.flags|=1,hr(r,a,t,v),a.child;case 14:return t=a.type,j=Gr(t,a.pendingProps),j=Gr(t.type,j),Jc(r,a,t,j,v);case 15:return rp(r,a,a.type,a.pendingProps,v);case 17:return t=a.type,j=a.pendingProps,j=a.elementType===t?j:Gr(t,j),ui(r,a),a.tag=1,wr(t)?(r=!0,ji(a)):r=!1,_o(a,v),Pf(a,t,j),dl(a,t,j,v),hl(null,a,t,!0,r,v);case 19:return ap(r,a,v);case 22:return np(r,a,v)}throw Error(Be(156,a.tag))};function jp(r,a){return Yd(r,a)}function yy(r,a,v,t){this.tag=r,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=t,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rr(r,a,v,t){return new yy(r,a,v,t)}function gu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function gy(r){if(typeof r=="function")return gu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Il)return 11;if(r===Nl)return 14}return 2}function Ln(r,a){var v=r.alternate;return v===null?(v=Rr(r.tag,a,r.key,r.mode),v.elementType=r.elementType,v.type=r.type,v.stateNode=r.stateNode,v.alternate=r,r.alternate=v):(v.pendingProps=a,v.type=r.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=r.flags&14680064,v.childLanes=r.childLanes,v.lanes=r.lanes,v.child=r.child,v.memoizedProps=r.memoizedProps,v.memoizedState=r.memoizedState,v.updateQueue=r.updateQueue,a=r.dependencies,v.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},v.sibling=r.sibling,v.index=r.index,v.ref=r.ref,v}function fi(r,a,v,t,j,b){var c=2;if(t=r,typeof r=="function")gu(r)&&(c=1);else if(typeof r=="string")c=5;else e:switch(r){case oo:return Hn(v.children,j,b,a);case Dl:c=8,j|=8;break;case Da:return r=Rr(12,v,a,j|2),r.elementType=Da,r.lanes=b,r;case Ia:return r=Rr(13,v,a,j),r.elementType=Ia,r.lanes=b,r;case Na:return r=Rr(19,v,a,j),r.elementType=Na,r.lanes=b,r;case Pd:return Yi(v,j,b,a);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case kd:c=10;break e;case Od:c=9;break e;case Il:c=11;break e;case Nl:c=14;break e;case bn:c=16,t=null;break e}throw Error(Be(130,r==null?r:typeof r,""))}return a=Rr(c,v,a,j),a.elementType=r,a.type=t,a.lanes=b,a}function Hn(r,a,v,t){return r=Rr(7,r,t,a),r.lanes=v,r}function Yi(r,a,v,t){return r=Rr(22,r,t,a),r.elementType=Pd,r.lanes=v,r.stateNode={isHidden:!1},r}function Oa(r,a,v){return r=Rr(6,r,null,a),r.lanes=v,r}function Pa(r,a,v){return a=Rr(4,r.children!==null?r.children:[],r.key,a),a.lanes=v,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function vy(r,a,v,t,j){this.tag=a,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=t,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function vu(r,a,v,t,j,b,c,l,n){return r=new vy(r,a,v,l,n),a===1?(a=1,b===!0&&(a|=8)):a=0,b=Rr(3,null,null,a),r.current=b,b.stateNode=r,b.memoizedState={element:t,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},tu(b),r}function by(r,a,v){var t=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(v){console.error(v)}}a(),r.exports=kr})(_h);var Tp,pd=La;Tp=pd.createRoot,pd.hydrateRoot;function Ml(r){let a=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=v=>{v.rotation&&(a=v.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-35,0),r.rotateY(a),r.rotateX(-.9),r.box(100),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(400,r.height*.35,-200),r.sphere(300),r.pop()}}const hd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Ml},Symbol.toStringTag,{value:"Module"}));function Cp(r){let a=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=v=>{v.rotation&&(a=v.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.push(),r.rotateZ(a),r.rotateX(a),r.rotateY(a),r.plane(100),r.pop()}}const md=Object.freeze(Object.defineProperty({__proto__:null,sketch:Cp},Symbol.toStringTag,{value:"Module"}));function kp(r){let a=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=v=>{v.rotation&&(a=(v.rotation/4+10)*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-30,0),r.rotateY(a),r.rotateX(-.9),r.torus(70,20),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(300,r.height*.5,-500),r.cone(100,100),r.pop()}}const yd=Object.freeze(Object.defineProperty({__proto__:null,sketch:kp},Symbol.toStringTag,{value:"Module"})),Sy={Date:!0,RegExp:!0,String:!0,Number:!0};function Op(r,a,v={cyclesFix:!0},t=[]){var l,n;let j=[];const b=Array.isArray(r);for(const u in r){const f=r[u],p=b?+u:u;if(!(u in a)){j.push({type:"REMOVE",path:[p],oldValue:r[u]});continue}const s=a[u],i=typeof f=="object"&&typeof s=="object";if(f&&s&&i&&!Sy[(n=(l=Object.getPrototypeOf(f))==null?void 0:l.constructor)==null?void 0:n.name]&&(!v.cyclesFix||!t.includes(f))){const o=Op(f,s,v,v.cyclesFix?t.concat([f]):[]);j.push.apply(j,o.map(d=>(d.path.unshift(p),d)))}else f!==s&&!(i&&(isNaN(f)?f+""==s+"":+f==+s))&&j.push({path:[p],type:"CHANGE",value:s,oldValue:f})}const c=Array.isArray(a);for(const u in a)u in r||j.push({type:"CREATE",path:[c?+u:u],value:a[u]});return j}function Ey(r,a){return Op(r,a).length===0}const My="react-p5-wrapper";function ei(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tl={},Ty={get exports(){return Tl},set exports(r){Tl=r}};/*! p5.js v1.6.0 February 22, 2023 */(function(r,a){(function(v){r.exports=v()})(function(){var v;return function t(j,b,c){function l(f,p){if(!b[f]){if(!j[f]){var s=typeof ei=="function"&&ei;if(!p&&s)return s(f,!0);if(n)return n(f,!0);throw(p=new Error("Cannot find module '"+f+"'")).code="MODULE_NOT_FOUND",p}s=b[f]={exports:{}},j[f][0].call(s.exports,function(i){return l(j[f][1][i]||i)},s,s.exports,t,j,b,c)}return b[f].exports}for(var n=typeof ei=="function"&&ei,u=0;u>16&255,g[_++]=o>>8&255,g[_++]=255&o;return m===2&&(o=l[i.charCodeAt(d)]<<2|l[i.charCodeAt(d+1)]>>4,g[_++]=255&o),m===1&&(o=l[i.charCodeAt(d)]<<10|l[i.charCodeAt(d+1)]<<4|l[i.charCodeAt(d+2)]>>2,g[_++]=o>>8&255,g[_++]=255&o),g},b.fromByteArray=function(i){for(var o,d=i.length,y=d%3,m=[],g=0,_=d-y;g<_;g+=16383)m.push(function(S,x,C){for(var T,k=[],R=x;R>18&63]+c[L>>12&63]+c[L>>6&63]+c[63&L]}(T));return k.join("")}(i,g,_>2]+c[o<<4&63]+"==")):y==2&&(o=(i[d-2]<<8)+i[d-1],m.push(c[o>>10]+c[o>>4&63]+c[o<<2&63]+"=")),m.join("")};for(var c=[],l=[],n=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=u.length;f>>1;case"base64":return V(O).length;default:if(te)return q?-1:$(O).length;D=(""+D).toLowerCase(),te=!0}}function _(O,D,B){var q,te=!1;if((D=D===void 0||D<0?0:D)>this.length||(B=B===void 0||B>this.length?this.length:B)<=0||(B>>>=0)<=(D>>>=0))return"";for(O=O||"utf8";;)switch(O){case"hex":var le=this,me=D,ue=B,ve=le.length;(!ue||ue<0||ve=O.length){if(te)return-1;B=O.length-1}else if(B<0){if(!te)return-1;B=0}if(typeof D=="string"&&(D=s.from(D,q)),s.isBuffer(D))return D.length===0?-1:C(O,D,B,q,te);if(typeof D=="number")return D&=255,typeof Uint8Array.prototype.indexOf=="function"?(te?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(O,D,B):C(O,[D],B,q,te);throw new TypeError("val must be string, number or Buffer")}function C(O,D,B,q,te){var le=1,ue=O.length,fe=D.length;if(q!==void 0&&((q=String(q).toLowerCase())==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(O.length<2||D.length<2)return-1;ue/=le=2,fe/=2,B/=2}function ie(ge,_e){return le===1?ge[_e]:ge.readUInt16BE(_e*le)}if(te)for(var ae=-1,ve=B;ve>8,fe=fe%256,ie.push(fe),ie.push(ue);return ie}(D,O.length-B),O,B,q)}function R(O,D,B){B=Math.min(O.length,B);for(var q=[],te=D;te>>10&1023|55296),ve=56320|1023&ve),q.push(ve),te+=ee}var pe=q,ge=pe.length;if(ge<=L)return String.fromCharCode.apply(String,pe);for(var _e="",me=0;me"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=i,Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(O,D,B){return D=D,B=B,o(O=O),!(O<=0)&&D!==void 0?typeof B=="string"?p(O).fill(D,B):p(O).fill(D):p(O)},s.allocUnsafe=d,s.allocUnsafeSlow=d,s.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==s.prototype},s.compare=function(O,D){if(W(O,Uint8Array)&&(O=s.from(O,O.offset,O.byteLength)),W(D,Uint8Array)&&(D=s.from(D,D.offset,D.byteLength)),!s.isBuffer(O)||!s.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===D)return 0;for(var B=O.length,q=D.length,te=0,le=Math.min(B,q);teO&&(D+=" ... "),""},u&&(s.prototype[u]=s.prototype.inspect),s.prototype.compare=function(O,D,B,q,te){if(W(O,Uint8Array)&&(O=s.from(O,O.offset,O.byteLength)),!s.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(B===void 0&&(B=O?O.length:0),q===void 0&&(q=0),te===void 0&&(te=this.length),(D=D===void 0?0:D)<0||B>O.length||q<0||te>this.length)throw new RangeError("out of range index");if(te<=q&&B<=D)return 0;if(te<=q)return-1;if(B<=D)return 1;if(this===O)return 0;for(var le=(te>>>=0)-(q>>>=0),ue=(B>>>=0)-(D>>>=0),fe=Math.min(le,ue),ie=this.slice(q,te),ae=O.slice(D,B),ve=0;ve>>=0,isFinite(B)?(B>>>=0,q===void 0&&(q="utf8")):(q=B,B=void 0)}var te=this.length-D;if((B===void 0||tethis.length)throw new RangeError("Attempt to write outside buffer bounds");q=q||"utf8";for(var le,ue,fe,ie=!1;;)switch(q){case"hex":var ae=this,ve=O,ee=D,pe=B,ge=(ee=Number(ee)||0,ae.length-ee);(!pe||ge<(pe=Number(pe)))&&(pe=ge),(ge=ve.length)/2O.length)throw new RangeError("Index out of range")}function N(O,D,B,q){if(B+q>O.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function G(O,D,B,q,te){return D=+D,B>>>=0,te||N(O,0,B,4),n.write(O,D,B,q,23,4),B+4}function X(O,D,B,q,te){return D=+D,B>>>=0,te||N(O,0,B,8),n.write(O,D,B,q,52,8),B+8}s.prototype.slice=function(O,D){var B=this.length,B=((O=~~O)<0?(O+=B)<0&&(O=0):B>>=0,D>>>=0,B||A(O,D,this.length);for(var q=this[O],te=1,le=0;++le>>=0,D>>>=0,B||A(O,D,this.length);for(var q=this[O+--D],te=1;0>>=0,D||A(O,1,this.length),this[O]},s.prototype.readUInt16LE=function(O,D){return O>>>=0,D||A(O,2,this.length),this[O]|this[O+1]<<8},s.prototype.readUInt16BE=function(O,D){return O>>>=0,D||A(O,2,this.length),this[O]<<8|this[O+1]},s.prototype.readUInt32LE=function(O,D){return O>>>=0,D||A(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},s.prototype.readUInt32BE=function(O,D){return O>>>=0,D||A(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},s.prototype.readIntLE=function(O,D,B){O>>>=0,D>>>=0,B||A(O,D,this.length);for(var q=this[O],te=1,le=0;++le>>=0,D>>>=0,B||A(O,D,this.length);for(var q=D,te=1,le=this[O+--q];0>>=0,D||A(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},s.prototype.readInt16LE=function(O,D){return O>>>=0,D||A(O,2,this.length),D=this[O]|this[O+1]<<8,32768&D?4294901760|D:D},s.prototype.readInt16BE=function(O,D){return O>>>=0,D||A(O,2,this.length),D=this[O+1]|this[O]<<8,32768&D?4294901760|D:D},s.prototype.readInt32LE=function(O,D){return O>>>=0,D||A(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},s.prototype.readInt32BE=function(O,D){return O>>>=0,D||A(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},s.prototype.readFloatLE=function(O,D){return O>>>=0,D||A(O,4,this.length),n.read(this,O,!0,23,4)},s.prototype.readFloatBE=function(O,D){return O>>>=0,D||A(O,4,this.length),n.read(this,O,!1,23,4)},s.prototype.readDoubleLE=function(O,D){return O>>>=0,D||A(O,8,this.length),n.read(this,O,!0,52,8)},s.prototype.readDoubleBE=function(O,D){return O>>>=0,D||A(O,8,this.length),n.read(this,O,!1,52,8)},s.prototype.writeUIntLE=function(O,D,B,q){O=+O,D>>>=0,B>>>=0,q||U(this,O,D,B,Math.pow(2,8*B)-1,0);var te=1,le=0;for(this[D]=255&O;++le>>=0,B>>>=0,q||U(this,O,D,B,Math.pow(2,8*B)-1,0);var te=B-1,le=1;for(this[D+te]=255&O;0<=--te&&(le*=256);)this[D+te]=O/le&255;return D+B},s.prototype.writeUInt8=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,1,255,0),this[D]=255&O,D+1},s.prototype.writeUInt16LE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,2,65535,0),this[D]=255&O,this[D+1]=O>>>8,D+2},s.prototype.writeUInt16BE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,2,65535,0),this[D]=O>>>8,this[D+1]=255&O,D+2},s.prototype.writeUInt32LE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,4,4294967295,0),this[D+3]=O>>>24,this[D+2]=O>>>16,this[D+1]=O>>>8,this[D]=255&O,D+4},s.prototype.writeUInt32BE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,4,4294967295,0),this[D]=O>>>24,this[D+1]=O>>>16,this[D+2]=O>>>8,this[D+3]=255&O,D+4},s.prototype.writeIntLE=function(O,D,B,q){O=+O,D>>>=0,q||U(this,O,D,B,(q=Math.pow(2,8*B-1))-1,-q);var te=0,le=1,ue=0;for(this[D]=255&O;++te>0)-ue&255;return D+B},s.prototype.writeIntBE=function(O,D,B,q){O=+O,D>>>=0,q||U(this,O,D,B,(q=Math.pow(2,8*B-1))-1,-q);var te=B-1,le=1,ue=0;for(this[D+te]=255&O;0<=--te&&(le*=256);)O<0&&ue===0&&this[D+te+1]!==0&&(ue=1),this[D+te]=(O/le>>0)-ue&255;return D+B},s.prototype.writeInt8=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,1,127,-128),this[D]=255&(O=O<0?255+O+1:O),D+1},s.prototype.writeInt16LE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,2,32767,-32768),this[D]=255&O,this[D+1]=O>>>8,D+2},s.prototype.writeInt16BE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,2,32767,-32768),this[D]=O>>>8,this[D+1]=255&O,D+2},s.prototype.writeInt32LE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,4,2147483647,-2147483648),this[D]=255&O,this[D+1]=O>>>8,this[D+2]=O>>>16,this[D+3]=O>>>24,D+4},s.prototype.writeInt32BE=function(O,D,B){return O=+O,D>>>=0,B||U(this,O,D,4,2147483647,-2147483648),this[D]=(O=O<0?4294967295+O+1:O)>>>24,this[D+1]=O>>>16,this[D+2]=O>>>8,this[D+3]=255&O,D+4},s.prototype.writeFloatLE=function(O,D,B){return G(this,O,D,!0,B)},s.prototype.writeFloatBE=function(O,D,B){return G(this,O,D,!1,B)},s.prototype.writeDoubleLE=function(O,D,B){return X(this,O,D,!0,B)},s.prototype.writeDoubleBE=function(O,D,B){return X(this,O,D,!1,B)},s.prototype.copy=function(O,D,B,q){if(!s.isBuffer(O))throw new TypeError("argument should be a Buffer");if(B=B||0,q||q===0||(q=this.length),D>=O.length&&(D=O.length),(q=0=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length);var te=(q=O.length-D>>=0,B=B===void 0?this.length:B>>>0,typeof(O=O||0)=="number")for(le=D;le>6|192,63&B|128)}else if(B<65536){if((D-=3)<0)break;le.push(B>>12|224,B>>6&63|128,63&B|128)}else{if(!(B<1114112))throw new Error("Invalid code point");if((D-=4)<0)break;le.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}}return le}function V(O){return l.toByteArray(function(D){if((D=(D=D.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;D.length%4!=0;)D+="=";return D}(O))}function H(O,D,B,q){for(var te=0;te=D.length||te>=O.length);++te)D[te+B]=O[te];return te}function W(O,D){return O instanceof D||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===D.name}function Z(O){return O!=O}var se=function(){for(var O="0123456789abcdef",D=new Array(256),B=0;B<16;++B)for(var q=16*B,te=0;te<16;++te)D[q+te]=O[B]+O[te];return D}()}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:238}],5:[function(t,j,b){j.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},{}],6:[function(t,j,b){var c=t("../internals/is-object");j.exports=function(l){if(c(l)||l===null)return l;throw TypeError("Can't set "+String(l)+" as a prototype")}},{"../internals/is-object":74}],7:[function(n,j,b){var c=n("../internals/well-known-symbol"),l=n("../internals/object-create"),n=n("../internals/object-define-property"),u=c("unscopables"),f=Array.prototype;f[u]==null&&n.f(f,u,{configurable:!0,value:l(null)}),j.exports=function(p){f[u][p]=!0}},{"../internals/object-create":90,"../internals/object-define-property":92,"../internals/well-known-symbol":146}],8:[function(t,j,b){var c=t("../internals/string-multibyte").charAt;j.exports=function(l,n,u){return n+(u?c(l,n).length:1)}},{"../internals/string-multibyte":123}],9:[function(t,j,b){j.exports=function(c,l,n){if(c instanceof l)return c;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},{}],10:[function(t,j,b){var c=t("../internals/is-object");j.exports=function(l){if(c(l))return l;throw TypeError(String(l)+" is not an object")}},{"../internals/is-object":74}],11:[function(t,j,b){j.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(N,j,b){function c(X){return p(X)&&s(G,i(X))}var l,n=N("../internals/array-buffer-native"),u=N("../internals/descriptors"),f=N("../internals/global"),p=N("../internals/is-object"),s=N("../internals/has"),i=N("../internals/classof"),o=N("../internals/create-non-enumerable-property"),d=N("../internals/redefine"),y=N("../internals/object-define-property").f,m=N("../internals/object-get-prototype-of"),g=N("../internals/object-set-prototype-of"),L=N("../internals/well-known-symbol"),N=N("../internals/uid"),_=f.Int8Array,S=_&&_.prototype,x=f.Uint8ClampedArray,x=x&&x.prototype,C=_&&m(_),T=S&&m(S),k=Object.prototype,R=k.isPrototypeOf,L=L("toStringTag"),A=N("TYPED_ARRAY_TAG"),U=n&&!!g&&i(f.opera)!=="Opera",N=!1,G={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(l in G)f[l]||(U=!1);if((!U||typeof C!="function"||C===Function.prototype)&&(C=function(){throw TypeError("Incorrect invocation")},U))for(l in G)f[l]&&g(f[l],C);if((!U||!T||T===k)&&(T=C.prototype,U))for(l in G)f[l]&&g(f[l].prototype,T);if(U&&m(x)!==T&&g(x,T),u&&!s(T,L))for(l in N=!0,y(T,L,{get:function(){return p(this)?this[A]:void 0}}),G)f[l]&&o(f[l],A,l);j.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:N&&A,aTypedArray:function(X){if(c(X))return X;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(X){if(g){if(R.call(C,X))return X}else for(var Q in G)if(s(G,l)&&(Q=f[Q],Q&&(X===Q||R.call(Q,X))))return X;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(X,Q,$){if(u){if($)for(var V in G)V=f[V],V&&s(V.prototype,X)&&delete V.prototype[X];T[X]&&!$||d(T,X,!$&&U&&S[X]||Q)}},exportTypedArrayStaticMethod:function(X,Q,$){var V,H;if(u){if(g){if($)for(V in G)(H=f[V])&&s(H,X)&&delete H[X];if(C[X]&&!$)return;try{return d(C,X,!$&&U&&_[X]||Q)}catch{}}for(V in G)!(H=f[V])||H[X]&&!$||d(H,X,Q)}},isView:function(X){return X=i(X),X==="DataView"||s(G,X)},isTypedArray:c,TypedArray:C,TypedArrayPrototype:T}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":59,"../internals/has":60,"../internals/is-object":74,"../internals/object-define-property":92,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/uid":143,"../internals/well-known-symbol":146}],13:[function(B,j,b){function c(ee){return[255&ee]}function l(ee){return[255&ee,ee>>8&255]}function n(ee){return[255&ee,ee>>8&255,ee>>16&255,ee>>24&255]}function u(ee){return ee[3]<<24|ee[2]<<16|ee[1]<<8|ee[0]}function f(ee){return le(ee,23,4)}function p(ee){return le(ee,52,8)}function s(ee,pe){N(ee[W],pe,{get:function(){return Q(this)[pe]}})}function i(ke,pe,Le,_e){if(Le=k(Le),ke=Q(ke),Le+pe>ke.byteLength)throw te(Z);var me=Q(ke.buffer).bytes,Le=Le+ke.byteOffset,ke=me.slice(Le,Le+pe);return _e?ke:ke.reverse()}function o(ee,pe,ge,_e,me,Le){if(ge=k(ge),ee=Q(ee),ge+pe>ee.byteLength)throw te(Z);for(var ke=Q(ee.buffer).bytes,Ae=ge+ee.byteOffset,Te=_e(+me),ze=0;zeae;)(fe=ie[ae++])in O||g(O,fe,se[fe]);d.constructor=O}A&&L(B)!==q&&A(B,q);var R=new D(new O(2)),ve=B.setInt8;R.setInt8(0,2147483648),R.setInt8(1,2147483649),!R.getInt8(0)&&R.getInt8(1)||_(B,{setInt8:function(pe,ge){ve.call(this,pe,ge<<24>>24)},setUint8:function(pe,ge){ve.call(this,pe,ge<<24>>24)}},{unsafe:!0})}else O=function(ee){x(this,O,V),ee=k(ee),$(this,{bytes:G.call(new Array(ee),0),byteLength:ee}),y||(this.byteLength=ee)},D=function(ee,me,ge){x(this,D,H),x(ee,O,H);var _e=Q(ee).byteLength,me=C(me);if(me<0||_e>24},getUint8:function(ee){return i(this,1,ee)[0]},getInt16:function(ee){return ee=i(this,2,ee,1>16},getUint16:function(ee){return ee=i(this,2,ee,1>>0},getFloat32:function(ee){return ue(i(this,4,ee,1"+s+""}},{"../internals/require-object-coercible":113}],37:[function(t,j,b){function c(){return this}var l=t("../internals/iterators-core").IteratorPrototype,n=t("../internals/object-create"),u=t("../internals/create-property-descriptor"),f=t("../internals/set-to-string-tag"),p=t("../internals/iterators");j.exports=function(s,i,o){return i+=" Iterator",s.prototype=n(l,{next:u(1,o)}),f(s,i,!1,!0),p[i]=c,s}},{"../internals/create-property-descriptor":39,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-create":90,"../internals/set-to-string-tag":117}],38:[function(t,j,b){var c=t("../internals/descriptors"),l=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");j.exports=c?function(u,f,p){return l.f(u,f,n(1,p))}:function(u,f,p){return u[f]=p,u}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":92}],39:[function(t,j,b){j.exports=function(c,l){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:l}}},{}],40:[function(t,j,b){var c=t("../internals/to-primitive"),l=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");j.exports=function(u,f,p){f=c(f),f in u?l.f(u,f,n(0,p)):u[f]=p}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":92,"../internals/to-primitive":138}],41:[function(m,j,b){function c(){return this}var l=m("../internals/export"),n=m("../internals/create-iterator-constructor"),u=m("../internals/object-get-prototype-of"),f=m("../internals/object-set-prototype-of"),p=m("../internals/set-to-string-tag"),s=m("../internals/create-non-enumerable-property"),i=m("../internals/redefine"),o=m("../internals/well-known-symbol"),d=m("../internals/is-pure"),y=m("../internals/iterators"),m=m("../internals/iterators-core"),g=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,S=o("iterator"),x="values",C="entries";j.exports=function(T,k,R,$,A,U,N){n(R,k,$);function G(O){if(O===A&&Z)return Z;if(!_&&O in H)return H[O];switch(O){case"keys":case x:case C:return function(){return new R(this,O)}}return function(){return new R(this)}}var X,Q,$=k+" Iterator",V=!1,H=T.prototype,W=H[S]||H["@@iterator"]||A&&H[A],Z=!_&&W||G(A),se=k=="Array"&&H.entries||W;if(se&&(se=u(se.call(new T)),g!==Object.prototype&&se.next&&(d||u(se)===g||(f?f(se,g):typeof se[S]!="function"&&s(se,S,c)),p(se,$,!0,!0),d&&(y[$]=c))),A==x&&W&&W.name!==x&&(V=!0,Z=function(){return W.call(this)}),d&&!N||H[S]===Z||s(H,S,Z),y[k]=Z,A)if(X={values:G(x),keys:U?Z:G("keys"),entries:G(C)},N)for(Q in X)!_&&!V&&Q in H||i(H,Q,X[Q]);else l({target:k,proto:!0,forced:_||V},X);return X}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":75,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/set-to-string-tag":117,"../internals/well-known-symbol":146}],42:[function(t,j,b){var c=t("../internals/path"),l=t("../internals/has"),n=t("../internals/well-known-symbol-wrapped"),u=t("../internals/object-define-property").f;j.exports=function(f){var p=c.Symbol||(c.Symbol={});l(p,f)||u(p,f,{value:n.f(f)})}},{"../internals/has":60,"../internals/object-define-property":92,"../internals/path":104,"../internals/well-known-symbol-wrapped":145}],43:[function(t,j,b){t=t("../internals/fails"),j.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(l,j,b){var c=l("../internals/global"),l=l("../internals/is-object"),n=c.document,u=l(n)&&l(n.createElement);j.exports=function(f){return u?n.createElement(f):{}}},{"../internals/global":59,"../internals/is-object":74}],45:[function(t,j,b){j.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],46:[function(t,j,b){t=t("../internals/engine-user-agent"),j.exports=/(iphone|ipod|ipad).*applewebkit/i.test(t)},{"../internals/engine-user-agent":47}],47:[function(t,j,b){t=t("../internals/get-built-in"),j.exports=t("navigator","userAgent")||""},{"../internals/get-built-in":56}],48:[function(n,j,b){var c,l,u=n("../internals/global"),n=n("../internals/engine-user-agent"),u=u.process,u=u&&u.versions,u=u&&u.v8;u?l=(c=u.split("."))[0]+c[1]:n&&(!(c=n.match(/Edge\/(\d+)/))||74<=c[1])&&(c=n.match(/Chrome\/(\d+)/))&&(l=c[1]),j.exports=l&&+l},{"../internals/engine-user-agent":47,"../internals/global":59}],49:[function(t,j,b){j.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(t,j,b){var c=t("../internals/global"),l=t("../internals/object-get-own-property-descriptor").f,n=t("../internals/create-non-enumerable-property"),u=t("../internals/redefine"),f=t("../internals/set-global"),p=t("../internals/copy-constructor-properties"),s=t("../internals/is-forced");j.exports=function(i,o){var d,y,m,g=i.target,_=i.global,S=i.stat,x=_?c:S?c[g]||f(g,{}):(c[g]||{}).prototype;if(x)for(d in o){if(y=o[d],m=i.noTargetGet?(m=l(x,d))&&m.value:x[d],!s(_?d:g+(S?".":"#")+d,i.forced)&&m!==void 0){if(typeof y==typeof m)continue;p(y,m)}(i.sham||m&&m.sham)&&n(y,"sham",!0),u(x,d,y,i)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/is-forced":73,"../internals/object-get-own-property-descriptor":93,"../internals/redefine":108,"../internals/set-global":115}],51:[function(t,j,b){j.exports=function(c){try{return!!c()}catch{return!0}}},{}],52:[function(o,j,b){o("../modules/es.regexp.exec");var c=o("../internals/redefine"),l=o("../internals/fails"),n=o("../internals/well-known-symbol"),u=o("../internals/regexp-exec"),f=o("../internals/create-non-enumerable-property"),p=n("species"),s=!l(function(){var m=/./;return m.exec=function(){var g=[];return g.groups={a:"7"},g},"".replace(m,"$")!=="7"}),i="a".replace(/./,"$0")==="$0",o=n("replace"),d=!!/./[o]&&/./[o]("a","$0")==="",y=!l(function(){var g=/(?:)/,m=g.exec,g=(g.exec=function(){return m.apply(this,arguments)},"ab".split(g));return g.length!==2||g[0]!=="a"||g[1]!=="b"});j.exports=function(m,g,_,S){var x,C,T=n(m),k=!l(function(){var L={};return L[T]=function(){return 7},""[m](L)!=7}),R=k&&!l(function(){var L=!1,A=/a/;return m==="split"&&((A={constructor:{}}).constructor[p]=function(){return A},A.flags="",A[T]=/./[T]),A.exec=function(){return L=!0,null},A[T](""),!L});k&&R&&(m!=="replace"||s&&i&&!d)&&(m!=="split"||y)||(x=/./[T],_=(R=_(T,""[m],function(L,A,U,N,G){return A.exec===u?k&&!G?{done:!0,value:x.call(A,U,N)}:{done:!0,value:L.call(U,A,N)}:{done:!1}},{REPLACE_KEEPS_$0:i,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}))[0],C=R[1],c(String.prototype,m,_),c(RegExp.prototype,T,g==2?function(L,A){return C.call(L,this,A)}:function(L){return C.call(L,this)})),S&&f(RegExp.prototype[T],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-exec":110,"../internals/well-known-symbol":146,"../modules/es.regexp.exec":181}],53:[function(t,j,b){t=t("../internals/fails"),j.exports=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":51}],54:[function(t,j,b){var c=t("../internals/a-function");j.exports=function(l,n,u){if(c(l),n===void 0)return l;switch(u){case 0:return function(){return l.call(n)};case 1:return function(f){return l.call(n,f)};case 2:return function(f,p){return l.call(n,f,p)};case 3:return function(f,p,s){return l.call(n,f,p,s)}}return function(){return l.apply(n,arguments)}}},{"../internals/a-function":5}],55:[function(t,j,b){var c=t("../internals/a-function"),l=t("../internals/is-object"),n=[].slice,u={};j.exports=Function.bind||function(f){var p=c(this),s=n.call(arguments,1),i=function(){var o=s.concat(n.call(arguments));if(this instanceof i){var d=p,y=o.length,m=o;if(!(y in u)){for(var g=[],_=0;_>1,x=s===23?l(2,-24)-l(2,-77):0,C=p<0||p===0&&1/p<0?1:0,T=0;for((p=c(p))!=p||p===1/0?(d=p!=p?1:0,o=_):(o=n(u(p)/f),p*(y=l(2,-o))<1&&(o--,y*=2),2<=(p+=1<=o+S?x/y:x*l(2,1-S))*y&&(o++,y/=2),_<=o+S?(d=0,o=_):1<=o+S?(d=(p*y-1)*l(2,s),o+=S):(d=p*l(2,S-1)*l(2,s),o=0));8<=s;m[T++]=255&d,d/=256,s-=8);for(o=o<>1,m=_-7,g=o-1,_=p[g--],S=127&_;for(_>>=7;0>=-m,m+=s;0"+S+""},_=function(){try{l=document.domain&&new ActiveXObject("htmlfile")}catch{}_=l?((S=l).write(g("")),S.close(),x=S.parentWindow.Object,S=null,x):(S=i("iframe"),x="java"+y+":",S.style.display="none",s.appendChild(S),S.src=String(x),(x=S.contentWindow.document).open(),x.write(g("document.F=Object")),x.close(),x.F);for(var S,x,C=f.length;C--;)delete _[d][f[C]];return _()};p[m]=!0,j.exports=Object.create||function(S,x){var C;return S!==null?(c[d]=n(S),C=new c,c[d]=null,C[m]=S):C=_(),x===void 0?C:u(C,x)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":61,"../internals/html":63,"../internals/object-define-properties":91,"../internals/shared-key":118}],91:[function(t,j,b){var c=t("../internals/descriptors"),l=t("../internals/object-define-property"),n=t("../internals/an-object"),u=t("../internals/object-keys");j.exports=c?Object.defineProperties:function(f,p){n(f);for(var s,i=u(p),o=i.length,d=0;do;)!c(i,s=p[o++])||~n(d,s)||d.push(s);return d}},{"../internals/array-includes":18,"../internals/has":60,"../internals/hidden-keys":61,"../internals/to-indexed-object":132}],99:[function(t,j,b){var c=t("../internals/object-keys-internal"),l=t("../internals/enum-bug-keys");j.exports=Object.keys||function(n){return c(n,l)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":98}],100:[function(t,j,b){var c={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,n=l&&!c.call({1:2},1);b.f=n?function(u){return u=l(this,u),!!u&&u.enumerable}:c},{}],101:[function(t,j,b){var c=t("../internals/an-object"),l=t("../internals/a-possible-prototype");j.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,u=!1,f={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(f,[]),u=f instanceof Array}catch{}return function(p,s){return c(p),l(s),u?n.call(p,s):p.__proto__=s,p}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],102:[function(t,j,b){var c=t("../internals/to-string-tag-support"),l=t("../internals/classof");j.exports=c?{}.toString:function(){return"[object "+l(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":139}],103:[function(t,j,b){var c=t("../internals/get-built-in"),l=t("../internals/object-get-own-property-names"),n=t("../internals/object-get-own-property-symbols"),u=t("../internals/an-object");j.exports=c("Reflect","ownKeys")||function(f){var p=l.f(u(f)),s=n.f;return s?p.concat(s(f)):p}},{"../internals/an-object":10,"../internals/get-built-in":56,"../internals/object-get-own-property-names":95,"../internals/object-get-own-property-symbols":96}],104:[function(t,j,b){t=t("../internals/global"),j.exports=t},{"../internals/global":59}],105:[function(t,j,b){j.exports=function(c){try{return{error:!1,value:c()}}catch(l){return{error:!0,value:l}}}},{}],106:[function(t,j,b){var c=t("../internals/an-object"),l=t("../internals/is-object"),n=t("../internals/new-promise-capability");j.exports=function(u,f){return c(u),l(f)&&f.constructor===u?f:((0,(u=n.f(u)).resolve)(f),u.promise)}},{"../internals/an-object":10,"../internals/is-object":74,"../internals/new-promise-capability":86}],107:[function(t,j,b){var c=t("../internals/redefine");j.exports=function(l,n,u){for(var f in n)c(l,f,n[f],u);return l}},{"../internals/redefine":108}],108:[function(p,j,b){var c=p("../internals/global"),l=p("../internals/create-non-enumerable-property"),n=p("../internals/has"),u=p("../internals/set-global"),f=p("../internals/inspect-source"),p=p("../internals/internal-state"),s=p.get,i=p.enforce,o=String(String).split("String");(j.exports=function(d,y,m,x){var _=!!x&&!!x.unsafe,S=!!x&&!!x.enumerable,x=!!x&&!!x.noTargetGet;typeof m=="function"&&(typeof y!="string"||n(m,"name")||l(m,"name",y),i(m).source=o.join(typeof y=="string"?y:"")),d===c?S?d[y]=m:u(y,m):(_?!x&&d[y]&&(S=!0):delete d[y],S?d[y]=m:l(d,y,m))})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||f(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/has":60,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/set-global":115}],109:[function(t,j,b){var c=t("./classof-raw"),l=t("./regexp-exec");j.exports=function(n,u){var f=n.exec;if(typeof f=="function"){if(f=f.call(n,u),typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(c(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(n,u)}},{"./classof-raw":28,"./regexp-exec":110}],110:[function(u,j,b){var c,l,n=u("./regexp-flags"),u=u("./regexp-sticky-helpers"),f=RegExp.prototype.exec,p=String.prototype.replace,s=f,i=(c=/a/,l=/b*/g,f.call(c,"a"),f.call(l,"a"),c.lastIndex!==0||l.lastIndex!==0),o=u.UNSUPPORTED_Y||u.BROKEN_CARET,d=/()??/.exec("")[1]!==void 0;j.exports=s=i||d||o?function(y){var m,g,_,S,x=this,C=o&&x.sticky,T=n.call(x),k=x.source,R=0,L=y;return C&&((T=T.replace("y","")).indexOf("g")===-1&&(T+="g"),L=String(y).slice(x.lastIndex),0m((n-k)/G))throw RangeError(d);for(k+=(U-T)*G,T=U,N=0;N<_.length;N++){if((S=_[N])n)throw RangeError(d);if(S==T){for(var X=k,Q=u;;Q+=u){var $=Q<=R?1:R+f<=Q?f:Q-R;if(X<$)break;var V=X-$,H=u-$;x.push(g(c($+V%H))),X=m(V/H)}x.push(g(c(X))),R=function(W,Z,se){var O=0;for(W=se?m(W/s):W>>1,W+=m(W/Z);y*f>>1>>=1)&&(u+=u))1&p&&(f+=u);return f}},{"../internals/require-object-coercible":113,"../internals/to-integer":133}],126:[function(t,j,b){var c=t("../internals/fails"),l=t("../internals/whitespaces");j.exports=function(n){return c(function(){return!!l[n]()||"​…᠎"[n]()!="​…᠎"||l[n].name!==n})}},{"../internals/fails":51,"../internals/whitespaces":147}],127:[function(n,j,b){function c(p){return function(s){return s=String(l(s)),1&p&&(s=s.replace(u,"")),s=2&p?s.replace(f,""):s}}var l=n("../internals/require-object-coercible"),n="["+n("../internals/whitespaces")+"]",u=RegExp("^"+n+n+"*"),f=RegExp(n+n+"*$");j.exports={start:c(1),end:c(2),trim:c(3)}},{"../internals/require-object-coercible":113,"../internals/whitespaces":147}],128:[function(y,j,b){function c(A){return function(){L(A)}}function l(A){L(A.data)}function n(A){f.postMessage(A+"",m.protocol+"//"+m.host)}var u,f=y("../internals/global"),p=y("../internals/fails"),s=y("../internals/classof-raw"),i=y("../internals/function-bind-context"),o=y("../internals/html"),d=y("../internals/document-create-element"),y=y("../internals/engine-is-ios"),m=f.location,g=f.setImmediate,_=f.clearImmediate,S=f.process,x=f.MessageChannel,C=f.Dispatch,T=0,k={},R="onreadystatechange",L=function(A){var U;k.hasOwnProperty(A)&&(U=k[A],delete k[A],U())};g&&_||(g=function(A){for(var U=[],N=1;N=d.length?{value:o.target=void 0,done:!0}:y=="keys"?{value:m,done:!1}:y=="values"?{value:d[m],done:!1}:{value:[m,d[m]],done:!1}},"values"),n.Arguments=n.Array,l("keys"),l("values"),l("entries")},{"../internals/add-to-unscopables":7,"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/iterators":79,"../internals/to-indexed-object":132}],159:[function(f,j,b){var c=f("../internals/export"),u=f("../internals/indexed-object"),l=f("../internals/to-indexed-object"),f=f("../internals/array-method-is-strict"),n=[].join,u=u!=Object,f=f("join",",");c({target:"Array",proto:!0,forced:u||!f},{join:function(p){return n.call(l(this),p===void 0?",":p)}})},{"../internals/array-method-is-strict":22,"../internals/export":50,"../internals/indexed-object":66,"../internals/to-indexed-object":132}],160:[function(l,j,b){var c=l("../internals/export"),l=l("../internals/array-last-index-of");c({target:"Array",proto:!0,forced:l!==[].lastIndexOf},{lastIndexOf:l})},{"../internals/array-last-index-of":20,"../internals/export":50}],161:[function(u,j,b){var c=u("../internals/export"),l=u("../internals/array-iteration").map,n=u("../internals/array-method-has-species-support"),u=u("../internals/array-method-uses-to-length"),n=n("map"),u=u("map");c({target:"Array",proto:!0,forced:!n||!u},{map:function(f){return l(this,f,1U;U++)p(C,R=A[U])&&!p(L,R)&&_(L,R,g(C,R));(L.prototype=T).constructor=L,f(n,x,L)}},{"../internals/classof-raw":28,"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/has":60,"../internals/inherit-if-required":67,"../internals/is-forced":73,"../internals/object-create":90,"../internals/object-define-property":92,"../internals/object-get-own-property-descriptor":93,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/string-trim":127,"../internals/to-primitive":138}],170:[function(t,j,b){t("../internals/export")({target:"Number",stat:!0},{isFinite:t("../internals/number-is-finite")})},{"../internals/export":50,"../internals/number-is-finite":88}],171:[function(p,j,b){function c(o,d,y){return d===0?y:d%2==1?c(o,d-1,y*o):c(o*o,d/2,y)}var l=p("../internals/export"),n=p("../internals/to-integer"),u=p("../internals/this-number-value"),f=p("../internals/string-repeat"),p=p("../internals/fails"),s=1 .toFixed,i=Math.floor;l({target:"Number",proto:!0,forced:s&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!p(function(){s.call({})})},{toFixed:function(x){function d(R,L){for(var A=-1,U=L;++A<6;)U+=R*C[A],C[A]=U%1e7,U=i(U/1e7)}function y(R){for(var L=6,A=0;0<=--L;)A+=C[L],C[L]=i(A/R),A=A%R*1e7}function m(){for(var R,L=6,A="";0<=--L;)A===""&&L!==0&&C[L]===0||(R=String(C[L]),A=A===""?R:A+f.call("0",7-R.length)+R);return A}var g,_,S=u(this),x=n(x),C=[0,0,0,0,0,0],T="",k="0";if(x<0||20Oe;){var Ue,Ge,Ve,Xe=J[Oe++],lt=je?Xe.ok:Xe.fail,st=Xe.resolve,et=Xe.reject,it=Xe.domain;try{lt?(je||(we.rejection===Le&&function(ot,wt){A.call(s,function(){ae?le.emit("rejectionHandled",ot):$e(pe,ot,wt.value)})}(Re,we),we.rejection=me),lt===!0?Ue=ye:(it&&it.enter(),Ue=lt(ye),it&&(it.exit(),Ve=!0)),Ue===Xe.promise?et(q("Promise-chain cycle")):(Ge=Te(Ue))?Ge.call(Ue,st,et):st(Ue)):et(ye)}catch(ot){it&&!Ve&&it.exit(),et(ot)}}we.reactions=[],we.notified=!1,Y&&!we.rejection&&(z=Re,re=we,A.call(s,function(){var ot=re.value,wt=We(re);if(wt&&(wt=Q(function(){ae?le.emit("unhandledRejection",ot,z):$e(ee,z,ot)}),re.rejection=ae||We(re)?Le:me,wt.error))throw wt.value}))}))},$e=function(Re,we,Y){var J;ve?((J=te.createEvent("Event")).promise=we,J.reason=Y,J.initEvent(Re,!1,!0),s.dispatchEvent(J)):J={promise:we,reason:Y},(we=s["on"+Re])?we(J):Re===ee&&G("Unhandled promise rejection",Y)},We=function(Re){return Re.rejection!==me&&!Re.parent},Je=function(Re,we,Y,J){return function(z){Re(we,Y,z,J)}},Qe=function(Re,we,Y,J){we.done||(we.done=!0,(we=J||we).value=Y,we.state=_e,ze(Re,we,!0))},be=function(Re,we,Y,J){if(!we.done){we.done=!0,J&&(we=J);try{if(Re===Y)throw q("Promise can't be resolved itself");var z=Te(Y);z?U(function(){var re={done:!1};try{z.call(Y,Je(be,Re,re,we),Je(Qe,Re,re,we))}catch(ye){Qe(Re,re,ye,we)}}):(we.value=Y,we.state=ge,ze(Re,we,!1))}catch(re){Qe(Re,{done:!1},re,we)}}};ke&&(B=function(Re){x(this,B,Z),S(Re),c.call(this);var we=se(this);try{Re(Je(be,this,we),Je(Qe,this,we))}catch(Y){Qe(this,we,Y)}},(c=function(Re){O(this,{type:Z,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=y(B.prototype,{then:function(Re,we){var Y=D(this),J=fe(L(this,B));return J.ok=typeof Re!="function"||Re,J.fail=typeof we=="function"&&we,J.domain=ae?le.domain:void 0,Y.parent=!0,Y.reactions.push(J),Y.state!=0&&ze(this,Y,!1),J.promise},catch:function(Re){return this.then(void 0,Re)}}),l=function(){var Re=new c,we=se(Re);this.promise=Re,this.resolve=Je(be,Re,we),this.reject=Je(Qe,Re,we)},X.f=fe=function(Re){return Re===B||Re===n?new l:ie(Re)},p||typeof o!="function"||(u=o.prototype.then,d(o.prototype,"then",function(Re,we){var Y=this;return new B(function(J,z){u.call(Y,J,z)}).then(Re,we)},{unsafe:!0}),typeof ue=="function"&&f({global:!0,enumerable:!0,forced:!0},{fetch:function(Re){return N(B,ue.apply(s,arguments))}}))),f({global:!0,wrap:!0,forced:ke},{Promise:B}),m(B,Z,!1,!0),g(Z),n=i(Z),f({target:Z,stat:!0,forced:ke},{reject:function(Re){var we=fe(this);return we.reject.call(void 0,Re),we.promise}}),f({target:Z,stat:!0,forced:p||ke},{resolve:function(Re){return N(p&&this===n?B:this,Re)}}),f({target:Z,stat:!0,forced:Ae},{all:function(Re){var we=this,Y=fe(we),J=Y.resolve,z=Y.reject,re=Q(function(){var ye=S(we.resolve),je=[],Oe=0,Ue=1;k(Re,function(Ge){var Ve=Oe++,Xe=!1;je.push(void 0),Ue++,ye.call(we,Ge).then(function(lt){Xe||(Xe=!0,je[Ve]=lt,--Ue||J(je))},z)}),--Ue||J(je)});return re.error&&z(re.value),Y.promise},race:function(Re){var we=this,Y=fe(we),J=Y.reject,z=Q(function(){var re=S(we.resolve);k(Re,function(ye){re.call(we,ye).then(Y.resolve,J)})});return z.error&&J(z.value),Y.promise}})},{"../internals/a-function":5,"../internals/an-instance":9,"../internals/check-correctness-of-iteration":27,"../internals/classof-raw":28,"../internals/engine-v8-version":48,"../internals/export":50,"../internals/get-built-in":56,"../internals/global":59,"../internals/host-report-errors":62,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-object":74,"../internals/is-pure":75,"../internals/iterate":77,"../internals/microtask":81,"../internals/native-promise-constructor":82,"../internals/new-promise-capability":86,"../internals/perform":105,"../internals/promise-resolve":106,"../internals/redefine":108,"../internals/redefine-all":107,"../internals/set-species":116,"../internals/set-to-string-tag":117,"../internals/species-constructor":121,"../internals/task":128,"../internals/well-known-symbol":146}],179:[function(s,j,b){var c=s("../internals/export"),y=s("../internals/get-built-in"),l=s("../internals/a-function"),n=s("../internals/an-object"),u=s("../internals/is-object"),f=s("../internals/object-create"),p=s("../internals/function-bind"),s=s("../internals/fails"),i=y("Reflect","construct"),o=s(function(){function m(){}return!(i(function(){},[],m)instanceof m)}),d=!s(function(){i(function(){})}),y=o||d;c({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(m,g){l(m),n(g);var _=arguments.length<3?m:l(arguments[2]);if(d&&!o)return i(m,g,_);if(m==_){switch(g.length){case 0:return new m;case 1:return new m(g[0]);case 2:return new m(g[0],g[1]);case 3:return new m(g[0],g[1],g[2]);case 4:return new m(g[0],g[1],g[2],g[3])}var S=[null];return S.push.apply(S,g),new(p.apply(m,S))}return S=_.prototype,_=f(u(S)?S:Object.prototype),S=Function.apply.call(m,_,g),u(S)?S:_}})},{"../internals/a-function":5,"../internals/an-object":10,"../internals/export":50,"../internals/fails":51,"../internals/function-bind":55,"../internals/get-built-in":56,"../internals/is-object":74,"../internals/object-create":90}],180:[function(t,j,b){var c=t("../internals/descriptors"),l=t("../internals/global"),n=t("../internals/is-forced"),u=t("../internals/inherit-if-required"),f=t("../internals/object-define-property").f,p=t("../internals/object-get-own-property-names").f,s=t("../internals/is-regexp"),i=t("../internals/regexp-flags"),o=t("../internals/regexp-sticky-helpers"),d=t("../internals/redefine"),y=t("../internals/fails"),m=t("../internals/internal-state").set,g=t("../internals/set-species"),_=t("../internals/well-known-symbol")("match"),S=l.RegExp,x=S.prototype,C=/a/g,T=/a/g,k=new S(C)!==C,R=o.UNSUPPORTED_Y;if(c&&n("RegExp",!k||R||y(function(){return T[_]=!1,S(C)!=C||S(T)==T||S(C,"i")!="/a/i"}))){for(var L=function(N,G){var X,Q=this instanceof L,$=s(N),V=G===void 0;return!Q&&$&&N.constructor===L&&V?N:(k?$&&!V&&(N=N.source):N instanceof L&&(V&&(G=i.call(N)),N=N.source),R&&(X=!!G&&-1U;)(function(N){N in L||f(L,N,{configurable:!0,get:function(){return S[N]},set:function(G){S[N]=G}})})(A[U++]);(x.constructor=L).prototype=x,d(l,"RegExp",L)}g("RegExp")},{"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/inherit-if-required":67,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-regexp":76,"../internals/object-define-property":92,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/regexp-flags":111,"../internals/regexp-sticky-helpers":112,"../internals/set-species":116,"../internals/well-known-symbol":146}],181:[function(l,j,b){var c=l("../internals/export"),l=l("../internals/regexp-exec");c({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},{"../internals/export":50,"../internals/regexp-exec":110}],182:[function(u,j,b){var c=u("../internals/redefine"),l=u("../internals/an-object"),s=u("../internals/fails"),n=u("../internals/regexp-flags"),u="toString",f=RegExp.prototype,p=f[u],s=s(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),i=p.name!=u;(s||i)&&c(RegExp.prototype,u,function(){var o=l(this),d=String(o.source),y=o.flags;return"/"+d+"/"+String(y===void 0&&o instanceof RegExp&&!("flags"in f)?n.call(o):y)},{unsafe:!0})},{"../internals/an-object":10,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-flags":111}],183:[function(l,j,b){var c=l("../internals/collection"),l=l("../internals/collection-strong");j.exports=c("Set",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},l)},{"../internals/collection":32,"../internals/collection-strong":30}],184:[function(p,j,b){var c=p("../internals/export"),l=p("../internals/object-get-own-property-descriptor").f,n=p("../internals/to-length"),u=p("../internals/not-a-regexp"),f=p("../internals/require-object-coercible"),o=p("../internals/correct-is-regexp-logic"),p=p("../internals/is-pure"),s="".endsWith,i=Math.min,o=o("endsWith");c({target:"String",proto:!0,forced:!!(p||o||!(c=l(String.prototype,"endsWith"))||c.writable)&&!o},{endsWith:function(d){var y=String(f(this)),m=(u(d),1=i.length?{value:void 0,done:!0}:(i=c(i,o),s.index+=i.length,{value:i,done:!1})})},{"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/string-multibyte":123}],187:[function(t,j,b){var c=t("../internals/fix-regexp-well-known-symbol-logic"),l=t("../internals/an-object"),n=t("../internals/to-length"),u=t("../internals/require-object-coercible"),f=t("../internals/advance-string-index"),p=t("../internals/regexp-exec-abstract");c("match",1,function(s,i,o){return[function(d){var y=u(this),m=d==null?void 0:d[s];return m!==void 0?m.call(d,y):new RegExp(d)[s](String(y))},function(d){var y=o(i,d,this);if(y.done)return y.value;var m=l(d),g=String(this);if(!m.global)return p(m,g);for(var _=m.unicode,S=[],x=m.lastIndex=0;(C=p(m,g))!==null;){var C=String(C[0]);(S[x]=C)===""&&(m.lastIndex=f(g,n(m.lastIndex),_)),x++}return x===0?null:S}]})},{"../internals/advance-string-index":8,"../internals/an-object":10,"../internals/fix-regexp-well-known-symbol-logic":52,"../internals/regexp-exec-abstract":109,"../internals/require-object-coercible":113,"../internals/to-length":134}],188:[function(t,j,b){t("../internals/export")({target:"String",proto:!0},{repeat:t("../internals/string-repeat")})},{"../internals/export":50,"../internals/string-repeat":125}],189:[function(t,j,b){var c=t("../internals/fix-regexp-well-known-symbol-logic"),l=t("../internals/an-object"),n=t("../internals/to-object"),u=t("../internals/to-length"),f=t("../internals/to-integer"),p=t("../internals/require-object-coercible"),s=t("../internals/advance-string-index"),i=t("../internals/regexp-exec-abstract"),o=Math.max,d=Math.min,y=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;c("replace",2,function(_,S,x,C){var T=C.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=C.REPLACE_KEEPS_$0,R=T?"$":"$0";return[function(L,A){var U=p(this),N=L==null?void 0:L[_];return N!==void 0?N.call(L,U,A):S.call(String(U),L,A)},function(L,A){if(!T&&k||typeof A=="string"&&A.indexOf(R)===-1){var U=x(S,L,this,A);if(U.done)return U.value}for(var N,G=l(L),X=String(this),Q=typeof A=="function",$=(Q||(A=String(A)),G.global),V=($&&(N=G.unicode,G.lastIndex=0),[]);(O=i(G,X))!==null&&(V.push(O),$);)String(O[0])===""&&(G.lastIndex=s(X,u(G.lastIndex),N));for(var H,W="",Z=0,se=0;se>>0;if(A==0)return[];if(k===void 0)return[L];if(!l(k))return x.call(L,k,A);for(var U,N,G,X=[],R=(k.ignoreCase?"i":"")+(k.multiline?"m":"")+(k.unicode?"u":"")+(k.sticky?"y":""),Q=0,$=new RegExp(k.source,R+"g");(U=o.call($,L))&&!(Q<(N=$.lastIndex)&&(X.push(L.slice(Q,U.index)),1=A));)$.lastIndex===U.index&&$.lastIndex++;return Q===L.length?!G&&$.test("")||X.push(""):X.push(L.slice(Q)),X.length>A?X.slice(0,A):X}:"0".split(void 0,0).length?function(k,R){return k===void 0&&R===0?[]:x.call(this,k,R)}:x;return[function(k,R){var L=u(this),A=k==null?void 0:k[S];return A!==void 0?A.call(k,L,R):T.call(String(L),k,R)},function(U,R){var L=C(T,U,this,R,T!==x);if(L.done)return L.value;var L=n(U),A=String(this),U=f(L,RegExp),N=L.unicode,G=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(_?"y":"g"),X=new U(_?L:"^(?:"+L.source+")",G),Q=R===void 0?g:R>>>0;if(Q==0)return[];if(A.length===0)return i(X,A)===null?[A]:[];for(var $=0,V=0,H=[];Vue.key){ae.splice(fe,0,ue);break}fe===ee&&ae.push(ue)}ie.updateURL()},forEach:function(ue){for(var fe,ie=H(this).entries,ae=x(ue,16))return;for(Dt=0;Qt();){if(Yt=null,Dt>0)if(Qt()=="."&&Dt<4)qe++;else return;if(!B.test(Qt()))return;for(;B.test(Qt());){if(Xr=parseInt(Qt(),10),Yt===null)Yt=Xr;else{if(Yt==0)return;Yt=Yt*10+Xr}if(Yt>255)return;qe++}ht[He]=ht[He]*256+Yt,Dt++,(Dt==2||Dt==4)&&He++}if(Dt!=4)return;break}else if(Qt()==":"){if(qe++,!Qt())return}else if(Qt())return;ht[He++]=Ut}if(ft!==null)for(Sr=He-ft,He=7;He!=0&&Sr>0;)Yr=ht[He],ht[He--]=ht[ft+Sr-1],ht[ft+--Sr]=Yr;else if(He!=8)return;return ht}(Fe.slice(1,-1)))?void(de.host=Ye):Z;if(Te(de))return Fe=k(Fe),fe.test(Fe)||(Ye=function(Ie){var ht=Ie.split("."),He,ft,qe,Ut,Ht,Dt,Yt;if(ht.length&&ht[ht.length-1]==""&&ht.pop(),(He=ht.length)>4)return Ie;for(ft=[],qe=0;qe1&&Ut.charAt(0)=="0"&&(Ht=q.test(Ut)?16:8,Ut=Ut.slice(Ht==8?1:2)),Ut==="")Dt=0;else{if(!(Ht==10?le:Ht==8?te:ue).test(Ut))return Ie;Dt=parseInt(Ut,Ht)}ft.push(Dt)}for(qe=0;qe=V(256,5-He))return null}else if(Dt>255)return null;for(Yt=ft.pop(),qe=0;qe":1,"`":1}),me=x({},_e,{"#":1,"?":1,"{":1,"}":1}),Le=x({},me,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ke=function(de,Fe){var Ye=T(de,0);return 32"u"&&c!==void 0&&{}.toString.call(c)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function S(){var ee=setTimeout;return function(){return ee(C,1)}}var x=new Array(1e3);function C(){for(var ee=0;eeL,applyPalette:()=>function(Q,$,V="rgb565"){if(!Q||!Q.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(Q instanceof Uint8Array||Q instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256<$.length)throw new Error("applyPalette() only works with 256 colors or less");const H=new Uint32Array(Q.buffer),W=H.length,Z=V==="rgb444"?4096:65536,se=new Uint8Array(W),O=new Array(Z);if(V==="rgba4444")for(let ve=0;ve>24&255,B=te>>16&255,q=te>>8&255,te=255&te,le=d(te,q,B,D),le=le in O?O[le]:O[le]=function(ee,pe,ge,_e,me){let Le=0,ke=1e100;for(let $e=0;$eke||(Ae=Te[0],(ze+=T(Ae-ee))>ke||(Ae=Te[1],(ze+=T(Ae-pe))>ke||(Ae=Te[2],(ze+=T(Ae-ge))>ke||(ke=ze,Le=$e))))}return Le}(te,q,B,D,$);se[ve]=le}else{const ve=V==="rgb444"?y:o;for(let ee=0;ee>16&255,fe=ie>>8&255,ie=255&ie,ae=ve(ie,fe,ue),ae=ae in O?O[ae]:O[ae]=function(pe,ge,_e,me){let Le=0,ke=1e100;for(let $e=0;$eke||(Ae=Te[1],(ze+=T(Ae-ge))>ke||(Ae=Te[2],(ze+=T(Ae-_e))>ke||(ke=ze,Le=$e)))}return Le}(ie,fe,ue,$);se[ee]=ae}}return se},default:()=>X,nearestColor:()=>function(Q,$,V=x){return Q[k(Q,$,V)]},nearestColorIndex:()=>k,nearestColorIndexWithDistance:()=>R,prequantize:()=>function(Q,{roundRGB:$=5,roundAlpha:V=10,oneBitAlpha:H=null}={}){const W=new Uint32Array(Q.buffer);for(let B=0;B>24&255;var Z,se=D>>16&255,O=D>>8&255,D=255&D;q=C(q,V),H&&(Z=typeof H=="number"?H:127,q=q<=Z?0:255),D=C(D,$),O=C(O,$),se=C(se,$),W[B]=q<<24|se<<16|O<<8|D<<0}},quantize:()=>function(Q,$,V={}){var{format:H="rgb565",clearAlpha:W=!0,clearAlphaColor:Z=0,clearAlphaThreshold:se=0,oneBitAlpha:O=!1}=V;if(!Q||!Q.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(Q instanceof Uint8Array||Q instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");Q=new Uint32Array(Q.buffer);let D=V.useSqrt!==!1;const B=H==="rgba4444",q=function(We,Je){const Qe=Je==="rgb444"?4096:65536,be=new Array(Qe),Re=We.length;if(Je==="rgba4444")for(let st=0;st>24&255,Y=z>>16&255,J=z>>8&255,z=255&z,re=d(z,J,Y,we);let et=re in be?be[re]:be[re]=S();et.rc+=z,et.gc+=J,et.bc+=Y,et.ac+=we,et.cnt++}else if(Je==="rgb444")for(let st=0;st>16&255,je=Oe>>8&255,Oe=255&Oe,Ue=y(Oe,je,ye);let et=Ue in be?be[Ue]:be[Ue]=S();et.rc+=Oe,et.gc+=je,et.bc+=ye,et.cnt++}else for(let st=0;st>16&255,Ve=Xe>>8&255,Xe=255&Xe,lt=o(Xe,Ve,Ge);let et=lt in be?be[lt]:be[lt]=S();et.rc+=Xe,et.gc+=Ve,et.bc+=Ge,et.cnt++}return be}(Q,H),te=q.length,le=te-1,ue=new Uint32Array(te+1);for(var fe=0,ie=0;ie>1,!(q[ae=ue[ee]].err<=pe));ve=ee)ue[ve]=ae;ue[ve]=ie}var ge,_e=fe-$;for(ie=0;ie<_e;){for(;;){var me=ue[1];if((ge=q[me]).tm>=ge.mtm&&q[ge.nn].mtm<=ge.tm)break;for(ge.mtm==le?me=ue[1]=ue[ue[0]--]:(_(q,me,!1),ge.tm=ie),pe=q[me].err,ve=1;(ee=ve+ve)<=ue[0]&&(eeq[ue[ee+1]].err&&ee++,!(pe<=q[ae=ue[ee]].err));ve=ee)ue[ve]=ae;ue[ve]=me}var Le=q[ge.nn],ke=ge.cnt,Ae=Le.cnt,Te=1/(ke+Ae);B&&(ge.ac=Te*(ke*ge.ac+Ae*Le.ac)),ge.rc=Te*(ke*ge.rc+Ae*Le.rc),ge.gc=Te*(ke*ge.gc+Ae*Le.gc),ge.bc=Te*(ke*ge.bc+Ae*Le.bc),ge.cnt+=Le.cnt,ge.mtm=++ie,q[Le.bk].fw=Le.fw,q[Le.fw].bk=Le.bk,Le.mtm=le}let ze=[];for(ie=0;;0){let We=m(Math.round(q[ie].rc),0,255),Je=m(Math.round(q[ie].gc),0,255),Qe=m(Math.round(q[ie].bc),0,255),be=255;B&&(be=m(Math.round(q[ie].ac),0,255),O&&($e=typeof O=="number"?O:127,be=be<=$e?0:255),W&&be<=se&&(We=Je=Qe=Z,be=0));var $e=B?[We,Je,Qe,be]:[We,Je,Qe];if(function(Re,we){for(let z=0;zfunction(Q,$,V=5){if(Q.length&&$.length){var H=Q.map(D=>D.slice(0,3)),W=V*V,Z=Q[0].length;for(let D=0;D<$.length;D++){let B=$[D];B=B.lengthZ?B.slice(0,3):B.slice();var O=R(H,B.slice(0,3),x),se=O[0],O=O[1];0>>0),Z!=0&&(W=Math.max(W,256));const se=V;V=new Uint8Array(W),0<$&&V.set(se.subarray(0,$),0)}}}var s=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=function(Q,$,V,B,W=p(512),Z=new Uint8Array(256),se=new Int32Array(5003),O=new Int32Array(5003)){var D=se.length,B=Math.max(2,B);Z.fill(0),O.fill(0),se.fill(-1);let q=0,te=0;var le=B+1;const ue=le;let fe=!1,ie=ue,ae=(1<>=8,te-=8;if((pe>ae||fe)&&(fe?(ie=ue,ae=(1<>=8,te-=8;0>3}function d(Q,$,V,H){return Q>>4|240&$|(240&V)<<4|(240&H)<<8}function y(Q,$,V){return Q>>4<<8|240&$|V>>4}function m(Q,$,V){return Q<$?$:V>8&255)}function N(Q,$){for(var V=0;V<$.length;V++)Q.writeByte($.charCodeAt(V))}function G(Q){return Math.max(Math.ceil(Math.log2(Q)),1)}var X=L},{}],238:[function(t,j,b){b.read=function(c,l,n,u,_){var p,s,i=8*_-u-1,o=(1<>1,y=-7,m=n?_-1:0,g=n?-1:1,_=c[l+m];for(m+=g,p=_&(1<<-y)-1,_>>=-y,y+=i;0>=-y,y+=u;0>1,m=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=u?0:S-1,_=u?1:-1,S=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(i=isNaN(l)?1:0,s=d):(s=Math.floor(Math.log(l)/Math.LN2),l*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(l+=1<=s+y?m/u:m*Math.pow(2,1-y))*u&&(s++,u/=2),d<=s+y?(i=0,s=d):1<=s+y?(i=(l*u-1)*Math.pow(2,f),s+=y):(i=l*Math.pow(2,y-1)*Math.pow(2,f),s=0));8<=f;c[n+g]=255&i,g+=_,i/=256,f-=8);for(s=s<Math.abs(Y[0])&&(J=1),J=Math.abs(Y[2])>Math.abs(Y[J])?2:J}function U(Y,J){Y.f+=J.f,Y.b.f+=J.b.f}function N(Y,J,z){return Y=Y.a,J=J.a,z=z.a,J.b.a===Y?z.b.a===Y?n(J.a,z.a)?f(z.b.a,J.a,z.a)<=0:0<=f(J.b.a,z.a,J.a):f(z.b.a,Y,z.a)<=0:z.b.a===Y?0<=f(J.b.a,Y,J.a):(J=u(J.b.a,Y,J.a),(Y=u(z.b.a,Y,z.a))<=J)}function G(Y){Y.a.i=null;var J=Y.e;J.a.c=J.c,J.c.a=J.a,Y.e=null}function X(Y,J){m(Y.a),Y.c=!1,(Y.a=J).i=Y}function Q(Y){for(var J=Y.a.a;(Y=we(Y)).a.a===J;);return Y.c&&(X(Y,J=_(Re(Y).a.b,Y.a.e)),Y=we(Y)),Y}function $(Y,J,z){var re=new be;return re.a=z,re.e=fe(Y.f,J.e,re),z.i=re}function V(Y,J){switch(Y.s){case 100130:return(1&J)!=0;case 100131:return J!==0;case 100132:return 0>1]],Ue[Oe[Ve]])?Je:Qe)(z,Ve),Ue[je]=null,Ge[je]=z.b,z.b=je}else for(z.c[-(je+1)]=null;0Math.max(Oe.a,Ge.a))){if(n(je,Oe)){if(0z.f&&(z.f*=2,z.c=ze(z.c,z.f+1)),z.b===0?ye=re:(ye=z.b,z.b=z.c[z.b]),z.e[ye]=J,z.c[ye]=re,z.d[re]=ye,z.h&&Qe(z,re),ye):(z=Y.a++,Y.c[z]=J,-(z+1))}function Ae(Y){if(Y.a===0)return We(Y.b);var J=Y.c[Y.d[Y.a-1]];if(Y.b.a!==0&&n($e(Y.b),J))return We(Y.b);for(;--Y.a,0Y.a||n(re[Oe],re[Ge])){ye[z[je]=Oe]=je;break}ye[z[je]=Ge]=je,je=Ue}}function Qe(Y,J){for(var z=Y.d,re=Y.e,ye=Y.c,je=J,Oe=z[je];;){var Ue=je>>1,Ge=z[Ue];if(Ue==0||n(re[Ge],re[Oe])){ye[z[je]=Oe]=je;break}ye[z[je]=Ge]=je,je=Ue}}function be(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function Re(Y){return Y.e.c.b}function we(Y){return Y.e.a.b}(c=ae.prototype).x=function(){ve(this,0)},c.B=function(Y,J){switch(Y){case 100142:return;case 100140:switch(J){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=J)}break;case 100141:return void(this.m=!!J);default:return void ee(this,100900)}ee(this,100901)},c.y=function(Y){switch(Y){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:ee(this,100900)}return!1},c.A=function(Y,J,z){this.j[0]=Y,this.j[1]=J,this.j[2]=z},c.z=function(Y,J){var z=J||null;switch(Y){case 100100:case 100106:this.h=z;break;case 100104:case 100110:this.l=z;break;case 100101:case 100107:this.k=z;break;case 100102:case 100108:this.i=z;break;case 100103:case 100109:this.p=z;break;case 100105:case 100111:this.o=z;break;case 100112:this.r=z;break;default:ee(this,100900)}},c.C=function(Y,J){var z=!1,re=[0,0,0];ve(this,2);for(var ye=0;ye<3;++ye){var je=Y[ye];je<-1e150&&(je=-1e150,z=!0),1e150re[Ve]&&(re[Ve]=Xe,ye[Ve]=z)}if(re[1]-Ue[1]>re[z=0]-Ue[0]&&(z=1),Ue[z=re[2]-Ue[2]>re[z]-Ue[z]?2:z]>=re[z])Oe[0]=0,Oe[1]=0,Oe[2]=1;else{for(Ue=Ge[z],ye=ye[z],Ge=[re=0,0,0],Ue=[Ue.g[0]-ye.g[0],Ue.g[1]-ye.g[1],Ue.g[2]-ye.g[2]],Ve=[0,0,0],z=je.e;z!==je;z=z.e)Ve[0]=z.g[0]-ye.g[0],Ve[1]=z.g[1]-ye.g[1],Ve[2]=z.g[2]-ye.g[2],Ge[0]=Ue[1]*Ve[2]-Ue[2]*Ve[1],Ge[1]=Ue[2]*Ve[0]-Ue[0]*Ve[2],Ge[2]=Ue[0]*Ve[1]-Ue[1]*Ve[0],re<(Xe=Ge[0]*Ge[0]+Ge[1]*Ge[1]+Ge[2]*Ge[2])&&(re=Xe,Oe[0]=Ge[0],Oe[1]=Ge[1],Oe[2]=Ge[2]);re<=0&&(Oe[0]=Oe[1]=Oe[2]=0,Oe[A(Ue)]=1)}je=!0}for(Ge=A(Oe),z=this.b.c,re=(Ge+1)%3,ye=(Ge+2)%3,Ge=0>=1;)++y;if(g=1<>8&255,n[s++]=255&f,n[s++]=f>>8&255,n[s++]=(o!==null?128:0)|y,n[s++]=m,n[s++]=0,o!==null)for(var _=0,S=o.length;_>16&255,n[s++]=x>>8&255,n[s++]=255&x}if(i!==null){if(i<0||65535>8&255,n[s++]=0}var C=!1;this.addFrame=function(T,k,R,L,A,U){if(C===!0&&(--s,C=!1),U=U===void 0?{}:U,T<0||k<0||65535>=1;)++X;var Q=1<>8&255,n[s++]=W,n[s++]=0),n[s++]=44,n[s++]=255&T,n[s++]=T>>8&255,n[s++]=255&k,n[s++]=k>>8&255,n[s++]=255&R,n[s++]=R>>8&255,n[s++]=255&L,n[s++]=L>>8&255,n[s++]=N===!0?128|X-1:0,N===!0)for(var Z=0,se=G.length;Z>16&255,n[s++]=O>>8&255,n[s++]=255&O}return s=function(D,B,q,te){D[B++]=q;var le=B++,ue=1<>=8,ee-=8,B===le+256&&(D[le]=255,le=B++)}function _e(We){pe|=We<>=8,ee-=8,B===le+256&&(D[le]=255,le=B++);ae===4096?(_e(ue),ae=1+ie,ve=q+1,Le={}):(1<>=y,g-=y,k==i)d=1+o,m=(1<<(y=s+1))-1,T=null;else{if(k==o)break;for(var R=k>8,++L;var U=A;if(p>=8;T!==null&&d<4096&&(C[d++]=T<<8|U,m+1<=d&&y<12&&(++y,m=m<<1|1)),T=k}}S!==p&&console.log("Warning, gif stream shorter than expected.")}try{b.GifWriter=c,b.GifReader=function(n){var u=0;if(n[u++]!==71||n[u++]!==73||n[u++]!==70||n[u++]!==56||(n[u++]+1&253)!=56||n[u++]!==97)throw new Error("Invalid GIF 87a/89a header.");var f=n[u++]|n[u++]<<8,p=n[u++]|n[u++]<<8,s=n[u++],i=1<<1+(7&s),o=(n[u++],n[u++],null),d=null,y=(s>>7&&(o=u,u+=3*(d=i)),!0),m=[],g=0,_=null,S=0,x=null;for(this.width=f,this.height=p;y&&u>2&7,u++;break;case 254:for(;;){if(!(0<=(T=n[u++])))throw Error("Invalid block size");if(T===0)break;u+=T}break;default:throw new Error("Unknown graphic control label: 0x"+n[u-1].toString(16))}break;case 44:var T,k=n[u++]|n[u++]<<8,R=n[u++]|n[u++]<<8,L=n[u++]|n[u++]<<8,A=n[u++]|n[u++]<<8,$=n[u++],U=$>>6&1,N=1<<1+(7&$),G=o,X=d,Q=!1,$=($>>7&&(Q=!0,G=u,u+=3*(X=N)),u);for(u++;;){if(!(0<=(T=n[u++])))throw Error("Invalid block size");if(T===0)break;u+=T}m.push({x:k,y:R,width:L,height:A,has_local_palette:Q,palette_offset:G,palette_size:X,data_offset:$,data_length:u-$,transparent_index:_,interlaced:!!U,delay:g,disposal:S});break;case 59:y=!1;break;default:throw new Error("Unknown gif block: 0x"+n[u-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return x},this.frameInfo=function(V){if(V<0||V>=m.length)throw new Error("Frame index out of range.");return m[V]},this.decodeAndBlitFrameBGRA=function(V,H){for(var V=this.frameInfo(V),W=V.width*V.height,Z=new Uint8Array(W),se=(l(n,V.data_offset,Z,W),V.palette_offset),O=V.transparent_index,D=(O===null&&(O=256),V.width),B=f-D,q=D,te=4*(V.y*f+V.x),le=4*((V.y+V.height)*f+V.x),ue=te,fe=4*B,ie=(V.interlaced===!0&&(fe+=4*f*7),8),ae=0,ve=Z.length;ae>=1)),ge===O?ue+=4:(ee=n[se+3*ge],pe=n[se+3*ge+1],ge=n[se+3*ge+2],H[ue++]=ge,H[ue++]=pe,H[ue++]=ee,H[ue++]=255),--q}},this.decodeAndBlitFrameRGBA=function(V,H){for(var V=this.frameInfo(V),W=V.width*V.height,Z=new Uint8Array(W),se=(l(n,V.data_offset,Z,W),V.palette_offset),O=V.transparent_index,D=(O===null&&(O=256),V.width),B=f-D,q=D,te=4*(V.y*f+V.x),le=4*((V.y+V.height)*f+V.x),ue=te,fe=4*B,ie=(V.interlaced===!0&&(fe+=4*f*7),8),ae=0,ve=Z.length;ae>=1)),ge===O?ue+=4:(ee=n[se+3*ge],pe=n[se+3*ge+1],ge=n[se+3*ge+2],H[ue++]=ee,H[ue++]=pe,H[ue++]=ge,H[ue++]=255),--q}}}}catch{}},{}],241:[function(t,j,b){(function(c){var l,n;l=this,n=function(u){function f(P){if(this==null)throw TypeError();var w,E=String(this),M=E.length,P=P?Number(P):0;if(!((P=P!=P?0:P)<0||M<=P))return 55296<=(w=E.charCodeAt(P))&&w<=56319&&P+1>>16-w;return h.tag>>>=w,h.bitcount-=w,M+E}function N(h,w){for(;h.bitcount<24;)h.tag|=h.source[h.sourceIndex++]<>>=1,E+=w.table[++P],0<=(M-=w.table[P]););return h.tag=I,h.bitcount-=P,w.trans[E+M]}function G(h,w,E){for(;;){var M=N(h,w);if(M===256)return s;if(M<256)h.dest[h.destLen++]=M;else for(var P,I=U(h,g[M-=257],_[M]),M=N(h,E),F=P=h.destLen-U(h,S[M],x[M]);F>>=1,M=P,U(I,2,0)){case 0:E=function(Me){for(var tt,at;8this.x2&&(this.x2=h)),typeof w=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=w,this.y2=w),wthis.y2&&(this.y2=w))},W.prototype.addX=function(h){this.addPoint(h,null)},W.prototype.addY=function(h){this.addPoint(null,h)},W.prototype.addBezier=function(h,w,E,M,P,I,F,K){var oe=[h,w],ne=[E,M],he=[P,I],Se=[F,K];this.addPoint(h,w),this.addPoint(F,K);for(var xe=0;xe<=1;xe++){var ce,De=6*oe[xe]-12*ne[xe]+6*he[xe],Ce=-3*oe[xe]+9*ne[xe]-9*he[xe]+3*Se[xe],Pe=3*ne[xe]-3*oe[xe];Ce==0?De==0||0<(ce=-Pe/De)&&ce<1&&(xe===0&&this.addX(H(oe[xe],ne[xe],he[xe],Se[xe],ce)),xe===1&&this.addY(H(oe[xe],ne[xe],he[xe],Se[xe],ce))):(ce=Math.pow(De,2)-4*Pe*Ce)<0||(0<(Pe=(-De+Math.sqrt(ce))/(2*Ce))&&Pe<1&&(xe===0&&this.addX(H(oe[xe],ne[xe],he[xe],Se[xe],Pe)),xe===1&&this.addY(H(oe[xe],ne[xe],he[xe],Se[xe],Pe))),0<(Pe=(-De-Math.sqrt(ce))/(2*Ce))&&Pe<1&&(xe===0&&this.addX(H(oe[xe],ne[xe],he[xe],Se[xe],Pe)),xe===1&&this.addY(H(oe[xe],ne[xe],he[xe],Se[xe],Pe))))}},W.prototype.addQuad=function(h,w,E,M,P,I){E=h+2/3*(E-h),M=w+2/3*(M-w),this.addBezier(h,w,E,M,E+1/3*(P-h),M+1/3*(I-w),P,I)},Z.prototype.moveTo=function(h,w){this.commands.push({type:"M",x:h,y:w})},Z.prototype.lineTo=function(h,w){this.commands.push({type:"L",x:h,y:w})},Z.prototype.curveTo=Z.prototype.bezierCurveTo=function(h,w,E,M,P,I){this.commands.push({type:"C",x1:h,y1:w,x2:E,y2:M,x:P,y:I})},Z.prototype.quadTo=Z.prototype.quadraticCurveTo=function(h,w,E,M){this.commands.push({type:"Q",x1:h,y1:w,x:E,y:M})},Z.prototype.close=Z.prototype.closePath=function(){this.commands.push({type:"Z"})},Z.prototype.extend=function(h){var w;if(h.commands)h=h.commands;else if(h instanceof W)return w=h,this.moveTo(w.x1,w.y1),this.lineTo(w.x2,w.y1),this.lineTo(w.x2,w.y2),this.lineTo(w.x1,w.y2),void this.close();Array.prototype.push.apply(this.commands,h)},Z.prototype.getBoundingBox=function(){for(var h=new W,w=0,E=0,M=0,P=0,I=0;I>8&255,255&h]},te.USHORT=le(2),q.SHORT=function(h){return[(h=32768<=h?-(65536-h):h)>>8&255,255&h]},te.SHORT=le(2),q.UINT24=function(h){return[h>>16&255,h>>8&255,255&h]},te.UINT24=le(3),q.ULONG=function(h){return[h>>24&255,h>>16&255,h>>8&255,255&h]},te.ULONG=le(4),q.LONG=function(h){return[(h=2147483648<=h?-(4294967296-h):h)>>24&255,h>>16&255,h>>8&255,255&h]},te.LONG=le(4),q.FIXED=q.ULONG,te.FIXED=te.ULONG,q.FWORD=q.SHORT,te.FWORD=te.SHORT,q.UFWORD=q.USHORT,te.UFWORD=te.USHORT,q.LONGDATETIME=function(h){return[0,0,0,0,h>>24&255,h>>16&255,h>>8&255,255&h]},te.LONGDATETIME=le(8),q.TAG=function(h){return D.argument(h.length===4,"Tag should be exactly 4 ASCII characters."),[h.charCodeAt(0),h.charCodeAt(1),h.charCodeAt(2),h.charCodeAt(3)]},te.TAG=le(4),q.Card8=q.BYTE,te.Card8=te.BYTE,q.Card16=q.USHORT,te.Card16=te.USHORT,q.OffSize=q.BYTE,te.OffSize=te.BYTE,q.SID=q.USHORT,te.SID=te.USHORT,q.NUMBER=function(h){return-107<=h&&h<=107?[h+139]:108<=h&&h<=1131?[247+((h-=108)>>8),255&h]:-1131<=h&&h<=-108?[251+((h=-h-108)>>8),255&h]:-32768<=h&&h<=32767?q.NUMBER16(h):q.NUMBER32(h)},te.NUMBER=function(h){return q.NUMBER(h).length},q.NUMBER16=function(h){return[28,h>>8&255,255&h]},te.NUMBER16=le(3),q.NUMBER32=function(h){return[29,h>>24&255,h>>16&255,h>>8&255,255&h]},te.NUMBER32=le(5),q.REAL=function(h){for(var w=h.toString(),E=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(w),M=(E&&(E=parseFloat("1e"+((E[2]?+E[2]:0)+E[1].length)),w=(Math.round(h*E)/E).toString()),""),P=0,I=w.length;P>8&255,w[w.length]=255&M}return w},te.UTF16=function(h){return 2*h.length};var ue,fe={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},ie=(B.MACSTRING=function(h,w,E,M){var P=fe[M];if(P!==void 0){for(var I="",F=0;F>8&255,xe+256&255)}return ne})(h,M,w);return w},q.INDEX=function(h){for(var w=1,E=[w],M=[],P=0;P>8,w[he+1]=255&Se,w=w.concat(M[ne])}return w},te.TABLE=function(h){for(var w=0,E=h.fields.length,M=0;M>1,K.skip("uShort",3),Pe.glyphIndexMap={};for(var at,rt=new we.Parser(Ee,Me+tt+14),nt=new we.Parser(Ee,Me+tt+16+2*at),ut=new we.Parser(Ee,Me+tt+16+4*at),jt=new we.Parser(Ee,Me+tt+16+6*at),It=Me+tt+16+8*at,zt=0;zt>4,F=15&F;if(I==15||(M+=P[I],F==15))break;M+=P[F]}return parseFloat(M)}if(32<=w&&w<=246)return w-139;if(247<=w&&w<=250)return 256*(w-247)+h.parseByte()+108;if(251<=w&&w<=254)return 256*-(w-251)-h.parseByte()-108;throw new Error("Invalid b0 "+w)}function ir(h,w,E){var M=new we.Parser(h,w=w!==void 0?w:0),P=[],I=[];for(E=E!==void 0?E:h.length;M.relativeOffset>1,ce.length=0,Ce=!0}return function nt(ut){for(var jt,It,zt,ar,lr,Fr,xt,Mt,gt,ur,Pt,tr,Tt=0;TtMath.abs(tr-Me)?Ee=Pt+ce.shift():Me=tr+ce.shift(),xe.curveTo(M,P,I,F,xt,Mt),xe.curveTo(gt,ur,Pt,tr,Ee,Me);break;default:console.log("Glyph "+w.index+": unknown operator 1200"+$t),ce.length=0}break;case 14:0>3;break;case 21:2>16),Tt+=2;break;case 29:lr=ce.pop()+h.gsubrsBias,(Fr=h.gsubrs[lr])&&nt(Fr);break;case 30:for(;0=E.begin&&h=ye.length&&(I=M.parseChar(),E.names.push(M.parseString(I)));break;case 2.5:E.numberOfGlyphs=M.parseUShort(),E.offset=new Array(E.numberOfGlyphs);for(var K=0;KSe.value.tag?1:-1}),w.fields=w.fields.concat(M),w.fields=w.fields.concat(P),w}function Cu(h,w,E){for(var M=0;M 123 are reserved for internal usage");ce|=1<>>1,I=h[P].tag;if(I===w)return P;I>>1,I=h[P];if(I===w)return P;I>>1,F=(P=h[I]).start;if(F===w)return P;F(P=h[E-1]).end?0:P}function Ls(h,w){this.font=h,this.tableName=w}function Rs(h){Ls.call(this,h,"gpos")}function Qr(h){Ls.call(this,h,"gsub")}function Pu(h,w,E){for(var M=h.subtables,P=0;Pw.points.length-1||M.matchedPoints[1]>P.points.length-1)throw Error("Matched points out of range in "+w.name);var F=w.points[M.matchedPoints[0]],K=P.points[M.matchedPoints[1]],M={xScale:M.xScale,scale01:M.scale01,scale10:M.scale10,yScale:M.yScale,dx:0,dy:0},K=ta([K],M)[0];M.dx=F.x-K.x,M.dy=F.y-K.y,I=ta(P.points,M)}w.points=w.points.concat(I)}}return Au(w.points)}(Rs.prototype=Ls.prototype={searchTag:ea,binSearch:ku,getTable:function(h){var w=this.font.tables[this.tableName];return w=!w&&h?this.font.tables[this.tableName]=this.createDefaultTable():w},getScriptNames:function(){var h=this.getTable();return h?h.scripts.map(function(w){return w.tag}):[]},getDefaultScriptName:function(){var h=this.getTable();if(h){for(var w=!1,E=0;E=F[w-1].tag,"Features must be added in alphabetical order."),F.push(P={tag:E,feature:{params:0,lookupListIndexes:[]}}),I.push(w),P.feature}},getLookupTables:function(I,w,E,M,P){var I=this.getFeatureTable(I,w,E,P),F=[];if(I){for(var K,oe=I.lookupListIndexes,ne=this.font.tables[this.tableName].lookups,he=0;he",I),w.stack.push(Math.round(64*I))}function na(h,w){var E=w.stack,M=E.pop(),P=w.fv,I=w.pv,F=w.ppem,K=w.deltaBase+16*(h-1),oe=w.deltaShift,ne=w.z0;u.DEBUG&&console.log(w.step,"DELTAP["+h+"]",M,E);for(var he=0;he>4)===F&&(0<=(xe=(15&xe)-8)&&xe++,u.DEBUG&&console.log(w.step,"DELTAPFIX",Se,"by",xe*oe),Se=ne[Se],P.setRelative(Se,Se,xe*oe,I))}}function Ds(h,w){var E=w.stack,M=E.pop();u.DEBUG&&console.log(w.step,"ROUND[]"),E.push(64*w.round(M/64))}function oa(h,w){var E=w.stack,M=E.pop(),P=w.ppem,I=w.deltaBase+16*(h-1),F=w.deltaShift;u.DEBUG&&console.log(w.step,"DELTAC["+h+"]",M,E);for(var K=0;K>4)===P&&(0<=(ne=(15&ne)-8)&&ne++,ne=ne*F,u.DEBUG&&console.log(w.step,"DELTACFIX",oe,"by",ne),w.cvt[oe]+=ne)}}function ec(h,w){var E,P=w.stack,M=P.pop(),P=P.pop(),I=w.z2[M],F=w.z1[P];u.DEBUG&&console.log(w.step,"SDPVTL["+h+"]",M,P),M=h?(E=I.y-F.y,F.x-I.x):(E=F.x-I.x,F.y-I.y),w.dpv=Uo(E,M)}function yn(h,w){var E=w.stack,M=w.prog,P=w.ip;u.DEBUG&&console.log(w.step,"PUSHB["+h+"]");for(var I=0;I":"_")+(M?"R":"_")+(P===0?"Gr":P===1?"Bl":P===2?"Wh":"")+"]",h?oe+"("+I.cvt[oe]+","+K+")":"",ne,"(d =",F,"->",Pe*Ce,")"),I.rp1=I.rp0,I.rp2=ne,w&&(I.rp0=ne)}Iu.prototype.exec=function(h,w){if(typeof w!="number")throw new Error("Point size is not a number!");if(!(2",M),K.interpolate(Se,I,F,oe),K.touch(Se)}h.loop=1},$u.bind(void 0,0),$u.bind(void 0,1),function(h){for(var w=h.stack,E=h.rp0,M=h.z0[E],P=h.loop,I=h.fv,F=h.pv,K=h.z1;P--;){var oe=w.pop(),ne=K[oe];u.DEBUG&&console.log(h.step,(1"u"?Yp:Qp)(h,function(E,M){if(E)return w(E);var P;try{P=sa(M)}catch(I){return w(I,null)}return w(null,P)})},u.loadSync=function(h){return sa(Lu(t("fs").readFileSync(h)))},Object.defineProperty(u,"__esModule",{value:!0})},n(typeof b=="object"&&j!==void 0?b:l.opentype={})}).call(this,t("buffer").Buffer)},{buffer:4,fs:2}],242:[function(t,j,b){(function(c){function l(f,p){for(var s=0,i=f.length-1;0<=i;i--){var o=f[i];o==="."?f.splice(i,1):o===".."?(f.splice(i,1),s++):s&&(f.splice(i,1),s--)}if(p)for(;s--;)f.unshift("..");return f}function n(f,p){if(f.filter)return f.filter(p);for(var s=[],i=0;i'.concat(g,"").concat(d,""),this.dummyDOM||(this.dummyDOM=document.getElementById(m).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[o]?this.descriptions.fallbackElements[o].innerHTML!==g&&(this.descriptions.fallbackElements[o].innerHTML=g):this._describeElementHTML("fallback",o,g),y===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[o]?this.descriptions.labelElements[o].innerHTML!==g&&(this.descriptions.labelElements[o].innerHTML=g):this._describeElementHTML("label",o,g)))},c.default.prototype._describeHTML=function(o,d){var y,m=this.canvas.id;o==="fallback"?(this.dummyDOM.querySelector("#".concat(m+l))?this.dummyDOM.querySelector("#"+m+u).insertAdjacentHTML("beforebegin",'

')):(y='

'),this.dummyDOM.querySelector("#".concat(m,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(m,"accessibleOutput")).insertAdjacentHTML("beforebegin",y):this.dummyDOM.querySelector("#".concat(m)).innerHTML=y),this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(m).concat(n)),this.descriptions.fallback.innerHTML=d):o==="label"&&(this.dummyDOM.querySelector("#".concat(m+f))?this.dummyDOM.querySelector("#".concat(m+s))&&this.dummyDOM.querySelector("#".concat(m+s)).insertAdjacentHTML("beforebegin",'

')):(y='

'),this.dummyDOM.querySelector("#".concat(m,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(m,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",y):this.dummyDOM.querySelector("#"+m).insertAdjacentHTML("afterend",y)),this.descriptions.label=this.dummyDOM.querySelector("#"+m+p),this.descriptions.label.innerHTML=d)},c.default.prototype._describeElementHTML=function(o,d,y){var m,g=this.canvas.id;o==="fallback"?(this.dummyDOM.querySelector("#".concat(g+l))?this.dummyDOM.querySelector("#"+g+u)||this.dummyDOM.querySelector("#"+g+n).insertAdjacentHTML("afterend",'
Canvas elements and their descriptions
')):(m='
Canvas elements and their descriptions
'),this.dummyDOM.querySelector("#".concat(g,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(g,"accessibleOutput")).insertAdjacentHTML("beforebegin",m):this.dummyDOM.querySelector("#"+g).innerHTML=m),(m=document.createElement("tr")).id=g+"_fte_"+d,this.dummyDOM.querySelector("#"+g+u).appendChild(m),this.descriptions.fallbackElements[d]=this.dummyDOM.querySelector("#".concat(g).concat("_fte_").concat(d)),this.descriptions.fallbackElements[d].innerHTML=y):o==="label"&&(this.dummyDOM.querySelector("#".concat(g+f))?this.dummyDOM.querySelector("#".concat(g+s))||this.dummyDOM.querySelector("#"+g+p).insertAdjacentHTML("afterend",'
')):(m='
'),this.dummyDOM.querySelector("#".concat(g,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(g,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",m):this.dummyDOM.querySelector("#"+g).insertAdjacentHTML("afterend",m)),(o=document.createElement("tr")).id=g+"_lte_"+d,this.dummyDOM.querySelector("#"+g+s).appendChild(o),this.descriptions.labelElements[d]=this.dummyDOM.querySelector("#".concat(g).concat("_lte_").concat(d)),this.descriptions.labelElements[d].innerHTML=y)},t=c.default,b.default=t},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.ends-with":184,"core-js/modules/es.string.replace":189}],248:[function(t,j,b){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.map"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateGridOutput=function(c){var l,n,u,f;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(l=this._accessibleOutputs[c],u=function(p,s,i,o){return s="".concat(s," canvas, ").concat(i," by ").concat(o," pixels, contains ").concat(p[0]),s=(p[0]===1?"".concat(s," shape: "):"".concat(s," shapes: ")).concat(p[1]),s}((n=function(p,s){var i,o="",d="",y=0;for(i in s){var m,g=0;for(m in s[i]){var _='
  • ').concat(s[i][m].color," ").concat(i,",");i==="line"?_+=" location = ".concat(s[i][m].pos,", length = ").concat(s[i][m].length," pixels"):(_+=" location = ".concat(s[i][m].pos),i!=="point"&&(_+=", area = ".concat(s[i][m].area," %")),_+="
  • "),o+=_,g++,y++}d=1').concat(s[o][_].color," ").concat(o,"
    "):'').concat(s[o][_].color," ").concat(o," midpoint"),g[s[o][_].loc.locY][s[o][_].loc.locX]?g[s[o][_].loc.locY][s[o][_].loc.locX]=g[s[o][_].loc.locY][s[o][_].loc.locX]+" "+S:g[s[o][_].loc.locY][s[o][_].loc.locX]=S,y++}for(d in g){var x,C="";for(x in g[d])C+="",g[d][x]!==void 0&&(C+=g[d][x]),C+="";m=m+C+""}return m}(c,this.ingredients.shapes),u!==l.summary.innerHTML&&(l.summary.innerHTML=u),f!==l.map.innerHTML&&(l.map.innerHTML=f),n.details!==l.shapeDetails.innerHTML&&(l.shapeDetails.innerHTML=n.details),this._accessibleOutputs[c]=l)},t=t.default,b.default=t},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.array.map":161}],249:[function(t,j,b){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var c=(t=t("../core/main"))&&t.__esModule?t:{default:t};function l(u,f,p){return u[0]<.4*f?u[1]<.4*p?"top left":u[1]>.6*p?"bottom left":"mid left":u[0]>.6*f?u[1]<.4*p?"top right":u[1]>.6*p?"bottom right":"mid right":u[1]<.4*p?"top middle":u[1]>.6*p?"bottom middle":"middle"}function n(u,f,p){return f=Math.floor(u[0]/f*10),u=Math.floor(u[1]/p*10),f===10&&(f-=1),u===10&&(u-=1),{locX:f,locY:u}}c.default.prototype.textOutput=function(u){c.default._validateParameters("textOutput",arguments),this._accessibleOutputs.text||(this._accessibleOutputs.text=!0,this._createOutput("textOutput","Fallback"),u===this.LABEL&&(this._accessibleOutputs.textLabel=!0,this._createOutput("textOutput","Label")))},c.default.prototype.gridOutput=function(u){c.default._validateParameters("gridOutput",arguments),this._accessibleOutputs.grid||(this._accessibleOutputs.grid=!0,this._createOutput("gridOutput","Fallback"),u===this.LABEL&&(this._accessibleOutputs.gridLabel=!0,this._createOutput("gridOutput","Label")))},c.default.prototype._addAccsOutput=function(){return this._accessibleOutputs||(this._accessibleOutputs={text:!1,grid:!1,textLabel:!1,gridLabel:!1}),this._accessibleOutputs.grid||this._accessibleOutputs.text},c.default.prototype._createOutput=function(u,f){var p,s,i,o=this.canvas.id,d=(this.ingredients||(this.ingredients={shapes:{},colors:{background:"white",fill:"white",stroke:"black"},pShapes:""}),this.dummyDOM||(this.dummyDOM=document.getElementById(o).parentNode),"");f==="Fallback"?(p=o+u,this.dummyDOM.querySelector("#".concat(s=o+"accessibleOutput"))||(this.dummyDOM.querySelector("#".concat(o,"_Description"))?this.dummyDOM.querySelector("#".concat(o,"_Description")).insertAdjacentHTML("afterend",'
    ')):this.dummyDOM.querySelector("#".concat(o)).innerHTML='
    '))):f==="Label"&&(p=o+u+(d=f),this.dummyDOM.querySelector("#".concat(s=o+"accessibleOutput"+f))||(this.dummyDOM.querySelector("#".concat(o,"_Label"))?this.dummyDOM.querySelector("#".concat(o,"_Label")):this.dummyDOM.querySelector("#".concat(o))).insertAdjacentHTML("afterend",'
    '))),this._accessibleOutputs[p]={},u==="textOutput"?(d="#".concat(o,"gridOutput").concat(d),i='
    Text Output

      '),this.dummyDOM.querySelector(d)?this.dummyDOM.querySelector(d).insertAdjacentHTML("beforebegin",i):this.dummyDOM.querySelector("#".concat(s)).innerHTML=i,this._accessibleOutputs[p].list=this.dummyDOM.querySelector("#".concat(p,"_list"))):u==="gridOutput"&&(d="#".concat(o,"textOutput").concat(d),i='
      Grid Output

        '),this.dummyDOM.querySelector(d)?this.dummyDOM.querySelector(d).insertAdjacentHTML("afterend",i):this.dummyDOM.querySelector("#".concat(s)).innerHTML=i,this._accessibleOutputs[p].map=this.dummyDOM.querySelector("#".concat(p,"_map"))),this._accessibleOutputs[p].shapeDetails=this.dummyDOM.querySelector("#".concat(p,"_shapeDetails")),this._accessibleOutputs[p].summary=this.dummyDOM.querySelector("#".concat(p,"_summary"))},c.default.prototype._updateAccsOutput=function(){var u=this.canvas.id;JSON.stringify(this.ingredients.shapes)!==this.ingredients.pShapes&&(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(u+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(u+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(u+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(u+"gridOutputLabel"))},c.default.prototype._accsBackground=function(u){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==u&&(this.ingredients.colors.backgroundRGBA=u,this.ingredients.colors.background=this._rgbColorName(u))},c.default.prototype._accsCanvasColors=function(u,f){u==="fill"?this.ingredients.colors.fillRGBA!==f&&(this.ingredients.colors.fillRGBA=f,this.ingredients.colors.fill=this._rgbColorName(f)):u==="stroke"&&this.ingredients.colors.strokeRGBA!==f&&(this.ingredients.colors.strokeRGBA=f,this.ingredients.colors.stroke=this._rgbColorName(f))},c.default.prototype._accsOutput=function(u,f){u==="ellipse"&&f[2]===f[3]?u="circle":u==="rectangle"&&f[2]===f[3]&&(u="square");var p,s,i={},o=!0,d=function(m,g){var _;return m=m==="rectangle"||m==="ellipse"||m==="arc"||m==="circle"||m==="square"?(_=Math.round(g[0]+g[2]/2),Math.round(g[1]+g[3]/2)):m==="triangle"?(_=(g[0]+g[2]+g[4])/3,(g[1]+g[3]+g[5])/3):m==="quadrilateral"?(_=(g[0]+g[2]+g[4]+g[6])/4,(g[1]+g[3]+g[5]+g[7])/4):m==="line"?(_=(g[0]+g[2])/2,(g[1]+g[3])/2):(_=g[0],g[1]),[_,m]}(u,f);if(u==="line"?(i.color=this.ingredients.colors.stroke,i.length=Math.round(this.dist(f[0],f[1],f[2],f[3])),p=l([f[0],[1]],this.width,this.height),s=l([f[2],[3]],this.width,this.height),i.loc=n(d,this.width,this.height),i.pos=p===s?"at ".concat(p):"from ".concat(p," to ").concat(s)):(u==="point"?i.color=this.ingredients.colors.stroke:(i.color=this.ingredients.colors.fill,i.area=function(m,g,_,S){var x=0;{var C,T,k,R,L,A,U;m==="arc"?(C=((g[5]-g[4])%(2*Math.PI)+2*Math.PI)%(2*Math.PI),x=C*g[2]*g[3]/8,g[6]!=="open"&&g[6]!=="chord"||(U=g[0],T=g[1],k=g[0]+g[2]/2*Math.cos(g[4]).toFixed(2),R=g[1]+g[3]/2*Math.sin(g[4]).toFixed(2),L=g[0]+g[2]/2*Math.cos(g[5]).toFixed(2),A=g[1]+g[3]/2*Math.sin(g[5]).toFixed(2),U=Math.abs(U*(R-A)+k*(A-T)+L*(T-R))/2,C>Math.PI?x+=U:x-=U)):m==="ellipse"||m==="circle"?x=3.14*g[2]/2*g[3]/2:m==="line"||m==="point"?x=0:m==="quadrilateral"?x=Math.abs((g[6]+g[0])*(g[7]-g[1])+(g[0]+g[2])*(g[1]-g[3])+(g[2]+g[4])*(g[3]-g[5])+(g[4]+g[6])*(g[5]-g[7]))/2:m==="rectangle"||m==="square"?x=g[2]*g[3]:m==="triangle"&&(x=Math.abs(g[0]*(g[3]-g[5])+g[2]*(g[5]-g[1])+g[4]*(g[1]-g[3]))/2)}return Math.round(100*x/(_*S))}(u,f,this.width,this.height)),i.pos=l(d,this.width,this.height),i.loc=n(d,this.width,this.height)),this.ingredients.shapes[u]){if(this.ingredients.shapes[u]!==[i]){for(var y in this.ingredients.shapes[u])JSON.stringify(this.ingredients.shapes[u][y])===JSON.stringify(i)&&(o=!1);o===!0&&this.ingredients.shapes[u].push(i)}}else this.ingredients.shapes[u]=[i]},t=c.default,b.default=t},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.array.fill":152,"core-js/modules/es.array.map":161,"core-js/modules/es.number.to-fixed":171}],250:[function(t,j,b){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.concat"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateTextOutput=function(c){var l,n,u,f;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(l=this._accessibleOutputs[c],u=function(p,s,i,o){return i="Your output is a, ".concat(i," by ").concat(o," pixels, ").concat(s," canvas containing the following"),i=p===1?"".concat(i," shape:"):"".concat(i," ").concat(p," shapes:"),i}((n=function(p,s){var i,o="",d=0;for(i in s)for(var y in s[i]){var m='
      • ').concat(s[i][y].color," ").concat(i,"");i==="line"?m+=", ".concat(s[i][y].pos,", ").concat(s[i][y].length," pixels long.
      • "):(m+=", at ".concat(s[i][y].pos),i!=="point"&&(m+=", covering ".concat(s[i][y].area,"% of the canvas")),m+="."),o+=m,d++}return{numShapes:d,listShapes:o}}(c,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),f=function(p,s){var i,o="",d=0;for(i in s)for(var y in s[i]){var m='').concat(s[i][y].color," ").concat(i,"");i==="line"?m+="location = ".concat(s[i][y].pos,"length = ").concat(s[i][y].length," pixels"):(m+="location = ".concat(s[i][y].pos,""),i!=="point"&&(m+=" area = ".concat(s[i][y].area,"%")),m+=""),o+=m,d++}return o}(c,this.ingredients.shapes),u!==l.summary.innerHTML&&(l.summary.innerHTML=u),n.listShapes!==l.list.innerHTML&&(l.list.innerHTML=n.listShapes),f!==l.shapeDetails.innerHTML&&(l.shapeDetails.innerHTML=f),this._accessibleOutputs[c]=l)},t=t.default,b.default=t},{"../core/main":267,"core-js/modules/es.array.concat":149}],251:[function(t,j,b){var c=(c=t("./core/main"))&&c.__esModule?c:{default:c};t("./core/constants"),t("./core/environment"),t("./core/friendly_errors/stacktrace"),t("./core/friendly_errors/validate_params"),t("./core/friendly_errors/file_errors"),t("./core/friendly_errors/fes_core"),t("./core/friendly_errors/sketch_reader"),t("./core/helpers"),t("./core/legacy"),t("./core/preload"),t("./core/p5.Element"),t("./core/p5.Graphics"),t("./core/p5.Renderer"),t("./core/p5.Renderer2D"),t("./core/rendering"),t("./core/shim"),t("./core/structure"),t("./core/transform"),t("./core/shape/2d_primitives"),t("./core/shape/attributes"),t("./core/shape/curves"),t("./core/shape/vertex"),t("./accessibility/outputs"),t("./accessibility/textOutput"),t("./accessibility/gridOutput"),t("./accessibility/color_namer"),t("./color/color_conversion"),t("./color/creating_reading"),t("./color/p5.Color"),t("./color/setting"),t("./data/p5.TypedDict"),t("./data/local_storage.js"),t("./dom/dom"),t("./accessibility/describe"),t("./events/acceleration"),t("./events/keyboard"),t("./events/mouse"),t("./events/touch"),t("./image/filters"),t("./image/image"),t("./image/loading_displaying"),t("./image/p5.Image"),t("./image/pixels"),t("./io/files"),t("./io/p5.Table"),t("./io/p5.TableRow"),t("./io/p5.XML"),t("./math/calculation"),t("./math/math"),t("./math/noise"),t("./math/p5.Vector"),t("./math/random"),t("./math/trigonometry"),t("./typography/attributes"),t("./typography/loading_displaying"),t("./typography/p5.Font"),t("./utilities/array_functions"),t("./utilities/conversion"),t("./utilities/string_functions"),t("./utilities/time_date"),t("./webgl/3d_primitives"),t("./webgl/interaction"),t("./webgl/light"),t("./webgl/loading"),t("./webgl/material"),t("./webgl/p5.Camera"),t("./webgl/p5.Geometry"),t("./webgl/p5.Matrix"),t("./webgl/p5.RendererGL.Immediate"),t("./webgl/p5.RendererGL"),t("./webgl/p5.RendererGL.Retained"),t("./webgl/p5.Shader"),t("./webgl/p5.RenderBuffer"),t("./webgl/p5.Texture"),t("./webgl/text"),t("./core/init"),j.exports=c.default},{"./accessibility/color_namer":246,"./accessibility/describe":247,"./accessibility/gridOutput":248,"./accessibility/outputs":249,"./accessibility/textOutput":250,"./color/color_conversion":252,"./color/creating_reading":253,"./color/p5.Color":254,"./color/setting":255,"./core/constants":256,"./core/environment":257,"./core/friendly_errors/fes_core":258,"./core/friendly_errors/file_errors":259,"./core/friendly_errors/sketch_reader":260,"./core/friendly_errors/stacktrace":261,"./core/friendly_errors/validate_params":262,"./core/helpers":263,"./core/init":264,"./core/legacy":266,"./core/main":267,"./core/p5.Element":268,"./core/p5.Graphics":269,"./core/p5.Renderer":270,"./core/p5.Renderer2D":271,"./core/preload":272,"./core/rendering":273,"./core/shape/2d_primitives":274,"./core/shape/attributes":275,"./core/shape/curves":276,"./core/shape/vertex":277,"./core/shim":278,"./core/structure":279,"./core/transform":280,"./data/local_storage.js":281,"./data/p5.TypedDict":282,"./dom/dom":283,"./events/acceleration":284,"./events/keyboard":285,"./events/mouse":286,"./events/touch":287,"./image/filters":288,"./image/image":289,"./image/loading_displaying":290,"./image/p5.Image":291,"./image/pixels":292,"./io/files":293,"./io/p5.Table":294,"./io/p5.TableRow":295,"./io/p5.XML":296,"./math/calculation":297,"./math/math":298,"./math/noise":299,"./math/p5.Vector":300,"./math/random":301,"./math/trigonometry":302,"./typography/attributes":303,"./typography/loading_displaying":304,"./typography/p5.Font":305,"./utilities/array_functions":306,"./utilities/conversion":307,"./utilities/string_functions":308,"./utilities/time_date":309,"./webgl/3d_primitives":310,"./webgl/interaction":311,"./webgl/light":312,"./webgl/loading":313,"./webgl/material":314,"./webgl/p5.Camera":315,"./webgl/p5.Geometry":316,"./webgl/p5.Matrix":317,"./webgl/p5.RenderBuffer":318,"./webgl/p5.RendererGL":321,"./webgl/p5.RendererGL.Immediate":319,"./webgl/p5.RendererGL.Retained":320,"./webgl/p5.Shader":322,"./webgl/p5.Texture":323,"./webgl/text":324}],252:[function(t,j,b){Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.ColorConversion={},t.default.ColorConversion._hsbaToHSLA=function(c){var l=c[0],n=c[1],u=c[2],f=(2-n)*u/2;return f!=0&&(f==1?n=0:f<.5?n/=2-n:n=n*u/(2-2*f)),[l,n,f,c[3]]},t.default.ColorConversion._hsbaToRGBA=function(c){var l,n,u,f,p,s=6*c[0],i=c[1],o=c[2];return i===0?[o,o,o,c[3]]:(n=o*(1-i),u=o*(1-i*(s-(l=Math.floor(s)))),i=o*(1-i*(1+l-s)),s=l===1?(f=u,p=o,n):l===2?(f=n,p=o,i):l===3?(f=n,p=u,o):l===4?(f=i,p=n,o):l===5?(f=o,p=n,u):(f=o,p=i,n),[f,p,s,c[3]])},t.default.ColorConversion._hslaToHSBA=function(c){var l=c[0],n=c[1],u=c[2],f=u<.5?(1+n)*u:u+n-u*n;return[l,n=2*(f-u)/f,f,c[3]]},t.default.ColorConversion._hslaToRGBA=function(c){var l,n=6*c[0],u=c[1],f=c[2];return u===0?[f,f,f,c[3]]:[(l=function(p,s,i){return p<0?p+=6:6<=p&&(p-=6),p<1?s+(i-s)*p:p<3?i:p<4?s+(i-s)*(4-p):s})(2+n,u=2*f-(f=f<.5?(1+u)*f:f+u-f*u),f),l(n,u,f),l(n-2,u,f),c[3]]},t.default.ColorConversion._rgbaToHSBA=function(c){var l,n,u=c[0],f=c[1],p=c[2],s=Math.max(u,f,p),i=s-Math.min(u,f,p);return i==0?n=l=0:(n=i/s,u===s?l=(f-p)/i:f===s?l=2+(p-u)/i:p===s&&(l=4+(u-f)/i),l<0?l+=6:6<=l&&(l-=6)),[l/6,n,s,c[3]]},t.default.ColorConversion._rgbaToHSLA=function(c){var l,n,u=c[0],f=c[1],p=c[2],s=Math.max(u,f,p),o=Math.min(u,f,p),i=s+o,o=s-o;return o==0?n=l=0:(n=i<1?o/i:o/(2-i),u===s?l=(f-p)/o:f===s?l=2+(p-u)/o:p===s&&(l=4+(u-f)/o),l<0?l+=6:6<=l&&(l-=6)),[l/6,n,i/2,c[3]]},t=t.default.ColorConversion,b.default=t},{"../core/main":267}],253:[function(t,j,b){function c(s){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(s)}function l(s){return(l=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(i){return c(i)}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":c(i)})(s)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.map"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var n=(p=t("../core/main"))&&p.__esModule?p:{default:p},u=function(s){if(s&&s.__esModule)return s;if(s===null||l(s)!=="object"&&typeof s!="function")return{default:s};var i=f();if(i&&i.has(s))return i.get(s);var o,d={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in s){var m;Object.prototype.hasOwnProperty.call(s,o)&&((m=y?Object.getOwnPropertyDescriptor(s,o):null)&&(m.get||m.set)?Object.defineProperty(d,o,m):d[o]=s[o])}return d.default=s,i&&i.set(s,d),d}(t("../core/constants"));function f(){var s;return typeof WeakMap!="function"?null:(s=new WeakMap,f=function(){return s},s)}t("./p5.Color"),t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),n.default.prototype.alpha=function(s){return n.default._validateParameters("alpha",arguments),this.color(s)._getAlpha()},n.default.prototype.blue=function(s){return n.default._validateParameters("blue",arguments),this.color(s)._getBlue()},n.default.prototype.brightness=function(s){return n.default._validateParameters("brightness",arguments),this.color(s)._getBrightness()},n.default.prototype.color=function(){var s;return n.default._validateParameters("color",arguments),arguments[0]instanceof n.default.Color?arguments[0]:(s=arguments[0]instanceof Array?arguments[0]:arguments,new n.default.Color(this,s))},n.default.prototype.green=function(s){return n.default._validateParameters("green",arguments),this.color(s)._getGreen()},n.default.prototype.hue=function(s){return n.default._validateParameters("hue",arguments),this.color(s)._getHue()},n.default.prototype.lerpColor=function(s,i,o){n.default._validateParameters("lerpColor",arguments);var d,y,m,g=this._colorMode,_=this._colorMaxes;if(g===u.RGB)y=s.levels.map(function(S){return S/255}),m=i.levels.map(function(S){return S/255});else if(g===u.HSB)s._getBrightness(),i._getBrightness(),y=s.hsba,m=i.hsba;else{if(g!==u.HSL)throw new Error("".concat(g,"cannot be used for interpolation."));s._getLightness(),i._getLightness(),y=s.hsla,m=i.hsla}return o=Math.max(Math.min(o,1),0),this.lerp===void 0&&(this.lerp=function(S,x,C){return C*(x-S)+S}),s=this.lerp(y[0],m[0],o),i=this.lerp(y[1],m[1],o),d=this.lerp(y[2],m[2],o),y=this.lerp(y[3],m[3],o),s*=_[g][0],i*=_[g][1],d*=_[g][2],y*=_[g][3],this.color(s,i,d,y)},n.default.prototype.lightness=function(s){return n.default._validateParameters("lightness",arguments),this.color(s)._getLightness()},n.default.prototype.red=function(s){return n.default._validateParameters("red",arguments),this.color(s)._getRed()},n.default.prototype.saturation=function(s){return n.default._validateParameters("saturation",arguments),this.color(s)._getSaturation()};var p=n.default;b.default=p},{"../core/constants":256,"../core/friendly_errors/fes_core":258,"../core/friendly_errors/file_errors":259,"../core/friendly_errors/validate_params":262,"../core/main":267,"./p5.Color":254,"core-js/modules/es.array.iterator":158,"core-js/modules/es.array.map":161,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.string.iterator":186,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}],254:[function(o,j,b){function c(_){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(_)}function l(_){return(l=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(S){return c(S)}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":c(S)})(_)}o("core-js/modules/es.symbol"),o("core-js/modules/es.symbol.description"),o("core-js/modules/es.symbol.iterator"),o("core-js/modules/es.array.iterator"),o("core-js/modules/es.array.join"),o("core-js/modules/es.array.map"),o("core-js/modules/es.array.slice"),o("core-js/modules/es.object.get-own-property-descriptor"),o("core-js/modules/es.object.to-string"),o("core-js/modules/es.regexp.constructor"),o("core-js/modules/es.regexp.exec"),o("core-js/modules/es.regexp.to-string"),o("core-js/modules/es.string.iterator"),o("core-js/modules/es.string.trim"),o("core-js/modules/es.weak-map"),o("core-js/modules/web.dom-collections.iterator"),o("core-js/modules/es.array.join"),o("core-js/modules/es.array.map"),o("core-js/modules/es.array.slice"),o("core-js/modules/es.object.to-string"),o("core-js/modules/es.regexp.constructor"),o("core-js/modules/es.regexp.exec"),o("core-js/modules/es.regexp.to-string"),o("core-js/modules/es.string.trim"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var n=s(o("../core/main")),u=function(_){if(_&&_.__esModule)return _;if(_===null||l(_)!=="object"&&typeof _!="function")return{default:_};var S=p();if(S&&S.has(_))return S.get(_);var x,C={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(x in _){var k;Object.prototype.hasOwnProperty.call(_,x)&&((k=T?Object.getOwnPropertyDescriptor(_,x):null)&&(k.get||k.set)?Object.defineProperty(C,x,k):C[x]=_[x])}return C.default=_,S&&S.set(_,C),C}(o("../core/constants")),f=s(o("./color_conversion"));function p(){var _;return typeof WeakMap!="function"?null:(_=new WeakMap,p=function(){return _},_)}function s(_){return _&&_.__esModule?_:{default:_}}n.default.Color=function(_,S){if(this._storeModeAndMaxes(_._colorMode,_._colorMaxes),this.mode!==u.RGB&&this.mode!==u.HSL&&this.mode!==u.HSB)throw new Error("".concat(this.mode," is an invalid colorMode."));return this._array=n.default.Color._parseInputs.apply(this,S),this._calculateLevels(),this},n.default.Color.prototype.toString=function(_){var S=this.levels,x=this._array,C=x[3];switch(_){case"#rrggbb":return"#".concat(S[0]<16?"0".concat(S[0].toString(16)):S[0].toString(16),S[1]<16?"0".concat(S[1].toString(16)):S[1].toString(16),S[2]<16?"0".concat(S[2].toString(16)):S[2].toString(16));case"#rrggbbaa":return"#".concat(S[0]<16?"0".concat(S[0].toString(16)):S[0].toString(16),S[1]<16?"0".concat(S[1].toString(16)):S[1].toString(16),S[2]<16?"0".concat(S[2].toString(16)):S[2].toString(16),S[3]<16?"0".concat(S[3].toString(16)):S[3].toString(16));case"#rgb":return"#".concat(Math.round(15*x[0]).toString(16),Math.round(15*x[1]).toString(16),Math.round(15*x[2]).toString(16));case"#rgba":return"#".concat(Math.round(15*x[0]).toString(16),Math.round(15*x[1]).toString(16),Math.round(15*x[2]).toString(16),Math.round(15*x[3]).toString(16));case"rgb":return"rgb(".concat(S[0],", ",S[1],", ",S[2],")");case"rgb%":return"rgb(".concat((100*x[0]).toPrecision(3),"%, ",(100*x[1]).toPrecision(3),"%, ",(100*x[2]).toPrecision(3),"%)");case"rgba%":return"rgba(".concat((100*x[0]).toPrecision(3),"%, ",(100*x[1]).toPrecision(3),"%, ",(100*x[2]).toPrecision(3),"%, ",(100*x[3]).toPrecision(3),"%)");case"hsb":case"hsv":return this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),"hsb(".concat(this.hsba[0]*this.maxes[u.HSB][0],", ",this.hsba[1]*this.maxes[u.HSB][1],", ",this.hsba[2]*this.maxes[u.HSB][2],")");case"hsb%":case"hsv%":return this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),"hsb(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%)");case"hsba":case"hsva":return this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),"hsba(".concat(this.hsba[0]*this.maxes[u.HSB][0],", ",this.hsba[1]*this.maxes[u.HSB][1],", ",this.hsba[2]*this.maxes[u.HSB][2],", ",C,")");case"hsba%":case"hsva%":return this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),"hsba(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%, ",(100*C).toPrecision(3),"%)");case"hsl":return this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),"hsl(".concat(this.hsla[0]*this.maxes[u.HSL][0],", ",this.hsla[1]*this.maxes[u.HSL][1],", ",this.hsla[2]*this.maxes[u.HSL][2],")");case"hsl%":return this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%)");case"hsla":return this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),"hsla(".concat(this.hsla[0]*this.maxes[u.HSL][0],", ",this.hsla[1]*this.maxes[u.HSL][1],", ",this.hsla[2]*this.maxes[u.HSL][2],", ",C,")");case"hsla%":return this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%, ",(100*C).toPrecision(3),"%)");default:return"rgba(".concat(S[0],",",S[1],",",S[2],",",C,")")}},n.default.Color.prototype.setRed=function(_){this._array[0]=_/this.maxes[u.RGB][0],this._calculateLevels()},n.default.Color.prototype.setGreen=function(_){this._array[1]=_/this.maxes[u.RGB][1],this._calculateLevels()},n.default.Color.prototype.setBlue=function(_){this._array[2]=_/this.maxes[u.RGB][2],this._calculateLevels()},n.default.Color.prototype.setAlpha=function(_){this._array[3]=_/this.maxes[this.mode][3],this._calculateLevels()},n.default.Color.prototype._calculateLevels=function(){for(var _=this._array,S=this.levels=new Array(_.length),x=_.length-1;0<=x;--x)S[x]=Math.round(255*_[x]);this.hsla=null,this.hsba=null},n.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},n.default.Color.prototype._storeModeAndMaxes=function(_,S){this.mode=_,this.maxes=S},n.default.Color.prototype._getMode=function(){return this.mode},n.default.Color.prototype._getMaxes=function(){return this.maxes},n.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[u.RGB][2]},n.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[u.HSB][2]},n.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[u.RGB][1]},n.default.Color.prototype._getHue=function(){return this.mode===u.HSB?(this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[u.HSB][0]):(this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[u.HSL][0])},n.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[u.HSL][2]},n.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[u.RGB][0]},n.default.Color.prototype._getSaturation=function(){return this.mode===u.HSB?(this.hsba||(this.hsba=f.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[u.HSB][1]):(this.hsla||(this.hsla=f.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[u.HSL][1])};var i={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o=/\s*/,g=/(\d{1,3})/,d=/((?:\d+(?:\.\d+)?)|(?:\.\d+))/,y=new RegExp("".concat(d.source,"%")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp(["^rgb\\(",g.source,",",g.source,",",g.source,"\\)$"].join(o.source),"i"),RGB_PERCENT:new RegExp(["^rgb\\(",y.source,",",y.source,",",y.source,"\\)$"].join(o.source),"i"),RGBA:new RegExp(["^rgba\\(",g.source,",",g.source,",",g.source,",",d.source,"\\)$"].join(o.source),"i"),RGBA_PERCENT:new RegExp(["^rgba\\(",y.source,",",y.source,",",y.source,",",d.source,"\\)$"].join(o.source),"i"),HSL:new RegExp(["^hsl\\(",g.source,",",y.source,",",y.source,"\\)$"].join(o.source),"i"),HSLA:new RegExp(["^hsla\\(",g.source,",",y.source,",",y.source,",",d.source,"\\)$"].join(o.source),"i"),HSB:new RegExp(["^hsb\\(",g.source,",",y.source,",",y.source,"\\)$"].join(o.source),"i"),HSBA:new RegExp(["^hsba\\(",g.source,",",y.source,",",y.source,",",d.source,"\\)$"].join(o.source),"i")},g=(n.default.Color._parseInputs=function(_,S,x,C){var T,k=arguments.length,R=this.mode,L=this.maxes[R],A=[];if(3<=k){for(A[0]=_/L[0],A[1]=S/L[1],A[2]=x/L[2],A[3]=typeof C=="number"?C/L[3]:1,T=A.length-1;0<=T;--T){var U=A[T];U<0?A[T]=0:1"].indexOf(i[0])?void 0:i[0],lineNumber:i[1],columnNumber:i[2],source:p}},this)},parseFFOrSafari:function(f){return f.stack.split(` -`).filter(function(p){return!p.match(u)},this).map(function(p){var s,i;return(p=-1 eval")?p.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):p).indexOf("@")===-1&&p.indexOf(":")===-1?{functionName:p}:{functionName:(i=p.match(s=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&i[1]?i[1]:void 0,fileName:(i=this.extractLocation(p.replace(s,"")))[0],lineNumber:i[1],columnNumber:i[2],source:p}},this)},parseOpera:function(f){return!f.stacktrace||-1f.stacktrace.split(` -`).length?this.parseOpera9(f):f.stack?this.parseOpera11(f):this.parseOpera10(f)},parseOpera9:function(f){for(var p=/Line (\d+).*script (?:in )?(\S+)/i,s=f.message.split(` -`),i=[],o=2,d=s.length;o/,"$2").replace(/\([^)]*\)/g,"")||void 0,args:(s=o.match(/\(([^)]*)\)/)?o.replace(/^[^(]+\(([^)]*)\)$/,"$1"):s)===void 0||s==="[arguments not available]"?void 0:s.split(","),fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:p}},this)}}}t.default._getErrorStackParser=function(){return new c},t=t.default,b.default=t},{"../main":267,"core-js/modules/es.array.filter":153,"core-js/modules/es.array.index-of":157,"core-js/modules/es.array.join":159,"core-js/modules/es.array.map":161,"core-js/modules/es.array.slice":162,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.match":187,"core-js/modules/es.string.replace":189,"core-js/modules/es.string.split":191}],262:[function(t,j,b){function c(f){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var l=(l=t("../main"))&&l.__esModule?l:{default:l};(function(f){if(!(f&&f.__esModule)&&!(f===null||u(f)!=="object"&&typeof f!="function")){var p=n();if(p&&p.has(f))return p.get(f);var s,i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in f){var d;Object.prototype.hasOwnProperty.call(f,s)&&((d=o?Object.getOwnPropertyDescriptor(f,s):null)&&(d.get||d.set)?Object.defineProperty(i,s,d):i[s]=f[s])}i.default=f,p&&p.set(f,i)}})(t("../constants")),t("../internationalization");function n(){var f;return typeof WeakMap!="function"?null:(f=new WeakMap,n=function(){return f},f)}function u(f){return(u=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(p){return c(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":c(p)})(f)}l.default._validateParameters=l.default._clearValidateParamsCache=function(){},t=l.default,b.default=t},{"../../../docs/parameterData.json":void 0,"../constants":256,"../internationalization":265,"../main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.array.for-each":154,"core-js/modules/es.array.includes":156,"core-js/modules/es.array.index-of":157,"core-js/modules/es.array.iterator":158,"core-js/modules/es.array.join":159,"core-js/modules/es.array.last-index-of":160,"core-js/modules/es.array.map":161,"core-js/modules/es.array.slice":162,"core-js/modules/es.function.name":165,"core-js/modules/es.map":166,"core-js/modules/es.number.constructor":169,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.get-prototype-of":175,"core-js/modules/es.object.keys":176,"core-js/modules/es.object.to-string":177,"core-js/modules/es.reflect.construct":179,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.regexp.to-string":182,"core-js/modules/es.set":183,"core-js/modules/es.string.includes":185,"core-js/modules/es.string.iterator":186,"core-js/modules/es.string.split":191,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.for-each":229,"core-js/modules/web.dom-collections.iterator":230}],263:[function(t,j,b){function c(f){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}function l(f){return(l=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(p){return c(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":c(p)})(f)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var n=function(f){if(f&&f.__esModule)return f;if(f===null||l(f)!=="object"&&typeof f!="function")return{default:f};var p=u();if(p&&p.has(f))return p.get(f);var s,i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in f){var d;Object.prototype.hasOwnProperty.call(f,s)&&((d=o?Object.getOwnPropertyDescriptor(f,s):null)&&(d.get||d.set)?Object.defineProperty(i,s,d):i[s]=f[s])}return i.default=f,p&&p.set(f,i),i}(t("./constants"));function u(){var f;return typeof WeakMap!="function"?null:(f=new WeakMap,u=function(){return f},f)}b.default={modeAdjust:function(f,p,s,i,o){return o===n.CORNER?{x:f,y:p,w:s,h:i}:o===n.CORNERS?{x:f,y:p,w:s-f,h:i-p}:o===n.RADIUS?{x:f-s,y:p-i,w:2*s,h:2*i}:o===n.CENTER?{x:f-.5*s,y:p-.5*i,w:s,h:i}:void 0}}},{"./constants":256,"core-js/modules/es.array.iterator":158,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.string.iterator":186,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}],264:[function(t,j,b){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator");var c=(l=t("../core/main"))&&l.__esModule?l:{default:l};t("./internationalization");var l=Promise.resolve();Promise.all([new Promise(function(n,u){document.readyState==="complete"?n():window.addEventListener("load",n,!1)}),l]).then(function(){window._setupDone!==void 0?console.warn("p5.js seems to have been imported multiple times. Please remove the duplicate import"):window.mocha||(window.setup&&typeof window.setup=="function"||window.draw&&typeof window.draw=="function")&&!c.default.instance&&new c.default})},{"../core/main":267,"./internationalization":265,"core-js/modules/es.array.iterator":158,"core-js/modules/es.object.to-string":177,"core-js/modules/es.promise":178,"core-js/modules/es.string.iterator":186,"core-js/modules/web.dom-collections.iterator":230}],265:[function(t,j,b){t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(b,"__esModule",{value:!0}),b.setTranslatorLanguage=b.currentTranslatorLanguage=b.availableTranslatorLanguages=b.initialize=b.translator=void 0;var c,l,n=f(t("i18next")),u=f(t("i18next-browser-languagedetector"));function f(i){return i&&i.__esModule?i:{default:i}}function p(i,o){for(var d=0;d=_.width||o>=_.height?[0,0,0,0]:this._getPixel(i,o);return m=new l.default.Image(d,y),m.canvas.getContext("2d").drawImage(_,i,o,d*g,y*g,0,0,d,y),m},l.default.Renderer.prototype.textLeading=function(i){return typeof i=="number"?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",i),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(i){return typeof i=="number"?(this._setProperty("_textSize",i),this._leadingSet||this._setProperty("_textLeading",i*n._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(i){return i?(i!==n.NORMAL&&i!==n.ITALIC&&i!==n.BOLD&&i!==n.BOLDITALIC||this._setProperty("_textStyle",i),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return this._textAscent===null&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return this._textDescent===null&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(i,o){return i!==void 0?(this._setProperty("_textAlign",i),o!==void 0&&this._setProperty("_textBaseline",o),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.textWrap=function(i){return this._setProperty("_textWrap",i),this._textWrap},l.default.Renderer.prototype.text=function(i,o,d,y,m){var g,_,S,x,C=this._pInst,T=this._textWrap,k=Number.MAX_VALUE,R=d;if((this._doFill||this._doStroke)&&i!==void 0){if(g=(i=(i=typeof i!="string"?i.toString():i).replace(/(\t)/g," ")).split(` -`),y!==void 0){switch(this._rectMode===n.CENTER&&(o-=y/2),this._textAlign){case n.CENTER:o+=y/2;break;case n.RIGHT:o+=y}if(m!==void 0){this._rectMode===n.CENTER&&(d-=m/2,R-=m/2);var i=d,L=C.textAscent();switch(this._textBaseline){case n.BOTTOM:x=d+m,d=Math.max(x,d),R+=L;break;case n.CENTER:x=d+m/2,d=Math.max(x,d),R+=L/2}k=d+m-L,this._textBaseline===n.CENTER&&(k=i+m-L/2)}else{if(this._textBaseline===n.BOTTOM)return console.warn("textAlign(*, BOTTOM) requires x, y, width and height");if(this._textBaseline===n.CENTER)return console.warn("textAlign(*, CENTER) requires x, y, width and height")}if(T===n.WORD){for(var A=[],U=0;Uu.HALF_PI&&i<=3*u.HALF_PI?Math.atan(d/y*Math.tan(i))+u.PI:Math.atan(d/y*Math.tan(i))+u.TWO_PI,o=o<=u.HALF_PI?Math.atan(d/y*Math.tan(o)):o>u.HALF_PI&&o<=3*u.HALF_PI?Math.atan(d/y*Math.tan(o))+u.PI:Math.atan(d/y*Math.tan(o))+u.TWO_PI),o"u"||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,"slice",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),Object.assign||(n=Object.keys,t=Object.defineProperty,u=typeof Symbol=="function"&&l(Symbol())==="symbol",f=Object.prototype.propertyIsEnumerable,t(Object,"assign",{value:function(p,s){if(p==null)throw new TypeError("target must be an object");for(var i,o,d,y=Object(p),m=1;mm||Math.abs(this.accelerationY-this.pAccelerationY)>m||Math.abs(this.accelerationZ-this.pAccelerationZ)>m)&&R.deviceMoved(),typeof R.deviceTurned=="function"&&(x=this.rotationX+180,S=this.pRotationX+180,C=p+180,0>>24],d+=ae[(16711680&ve)>>16],y+=ae[(65280&ve)>>8],m+=ae[255&ve],o+=n[Q],_++}$[S=Z+G]=g/o,V[S]=d/o,H[S]=y/o,W[S]=m/o}Z+=R}for(C=(x=-c)*R,X=Z=0;X>>16,s[1+o]=(65280&i[d])>>>8,s[2+o]=255&i[d],s[3+o]=(4278190080&i[d])>>>24},f._toImageData=function(s){return s instanceof ImageData?s:s.getContext("2d").getImageData(0,0,s.width,s.height)},f._createImageData=function(s,i){return f._tmpCanvas=document.createElement("canvas"),f._tmpCtx=f._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(s,i)},f.apply=function(s,m,o){var d=s.getContext("2d"),y=d.getImageData(0,0,s.width,s.height),m=m(y,o);m instanceof ImageData?d.putImageData(m,0,0,0,0,s.width,s.height):d.putImageData(y,0,0,0,0,s.width,s.height)},f.threshold=function(s,i){for(var o=f._toPixels(s),d=(i===void 0&&(i=.5),Math.floor(255*i)),y=0;y>8)/d,o[y+1]=255*(g*i>>8)/d,o[y+2]=255*(_*i>>8)/d}},f.dilate=function(s){for(var i,o,d,y,m,g,_,S,x,C=f._toPixels(s),T=0,k=C.length?C.length/4:0,R=new Int32Array(k);T>16&255)+151*(y>>8&255)+28*(255&y))<(_=77*(x>>16&255)+151*(x>>8&255)+28*(255&x))&&(d=x,y=_),y<(_=77*((x=f._getARGB(C,S))>>16&255)+151*(x>>8&255)+28*(255&x))&&(d=x,y=_),y<(S=77*(m>>16&255)+151*(m>>8&255)+28*(255&m))&&(d=m,y=S),y<(x=77*(g>>16&255)+151*(g>>8&255)+28*(255&g))&&(d=g,y=x),R[T++]=d;f._setPixels(C,R)},f.erode=function(s){for(var i,o,d,y,m,g,_,S,x,C=f._toPixels(s),T=0,k=C.length?C.length/4:0,R=new Int32Array(k);T>16&255)+151*(x>>8&255)+28*(255&x))<(y=77*(y>>16&255)+151*(y>>8&255)+28*(255&y))&&(d=x,y=_),(_=77*((x=f._getARGB(C,S))>>16&255)+151*(x>>8&255)+28*(255&x))>16&255)+151*(m>>8&255)+28*(255&m))>16&255)+151*(g>>8&255)+28*(255&g))"+X.length.toString()+" out of "+A.toString()),ie.next=45,new Promise(function(ae){return setTimeout(ae,0)});ie.next=47;break;case 45:ie.next=36;break;case 47:Q.html("Frames processed, generating color palette..."),this.loop(),this.pixelDensity(G),H=(0,s.GIFEncoder)(),W=function(ae){for(var ve=new Uint8Array(ae.length*ae[0].length),ee=0;ee"+B.toString()+" out of "+A.toString()),ie.next=65,new Promise(function(ae){return setTimeout(ae,0)});case 65:B++,ie.next=57;break;case 68:H.finish(),ue=H.bytesView(),ue=new Blob([ue],{type:"image/gif"}),X=[],this._recording=!1,this.loop(),Q.html("Done. Downloading your gif!🌸"),n.default.prototype.downloadFile(ue,x,"gif");case 77:case"end":return ie.stop()}},S,this)});var g,_=function(){var S=this,x=arguments;return new Promise(function(C,T){var k=g.apply(S,x);function R(A){d(k,C,T,R,L,"next",A)}function L(A){d(k,C,T,R,L,"throw",A)}R(void 0)})};return function(S,x){return _.apply(this,arguments)}}(),n.default.prototype.image=function(g,_,S,x,Q,$,V,H,Z,A,U,N){n.default._validateParameters("image",arguments);var W=g.width,G=g.height,X=(N=N||f.CENTER,U=U||f.CENTER,g.elt&&g.elt.videoWidth&&!g.canvas&&(W=g.elt.videoWidth,G=g.elt.videoHeight),x||W),Q=Q||G,$=$||0,V=V||0,H=m(H||W,W),W=m(Z||G,G),Z=1;g.elt&&!g.canvas&&g.elt.style.width&&(Z=g.elt.videoWidth&&!x?g.elt.videoWidth:g.elt.width,Z/=parseInt(g.elt.style.width,10)),$*=Z,V*=Z,W*=Z,H*=Z,G=y(A,U,N,(G=u.default.modeAdjust(_,S,X,Q,this._renderer._imageMode)).x,G.y,G.w,G.h,$,V,H,W),this._renderer.image(g,G.sx,G.sy,G.sw,G.sh,G.dx,G.dy,G.dw,G.dh)},n.default.prototype.tint=function(){for(var g=arguments.length,_=new Array(g),S=0;S=f&&(f=Math.floor(p.timeDisplayed/f),p.timeDisplayed=0,p.lastChangeTime=s,p.displayIndex+=f,p.loopCount=Math.floor(p.displayIndex/p.numFrames),p.loopLimit!==null&&p.loopCount>=p.loopLimit?p.playing=!1:(s=p.displayIndex%p.numFrames,this.drawingContext.putImageData(p.frames[s].image,0,0),p.displayIndex=s,this.setModified(!0))))},c.default.Image.prototype._setProperty=function(u,f){this[u]=f,this.setModified(!0)},c.default.Image.prototype.loadPixels=function(){c.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},c.default.Image.prototype.updatePixels=function(u,f,p,s){c.default.Renderer2D.prototype.updatePixels.call(this,u,f,p,s),this.setModified(!0)},c.default.Image.prototype.get=function(u,f,p,s){return c.default._validateParameters("p5.Image.get",arguments),c.default.Renderer2D.prototype.get.apply(this,arguments)},c.default.Image.prototype._getPixel=c.default.Renderer2D.prototype._getPixel,c.default.Image.prototype.set=function(u,f,p){c.default.Renderer2D.prototype.set.call(this,u,f,p),this.setModified(!0)},c.default.Image.prototype.resize=function(u,f){u===0&&f===0?(u=this.canvas.width,f=this.canvas.height):u===0?u=this.canvas.width*f/this.canvas.height:f===0&&(f=this.canvas.height*u/this.canvas.width),u=Math.floor(u),f=Math.floor(f);var p=document.createElement("canvas");if(p.width=u,p.height=f,this.gifProperties)for(var s=this.gifProperties,i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(o,d){d&&d!==!0&&d!=="true"||(d="");var y="";return(o=o||"untitled")&&o.includes(".")&&(y=o.split(".").pop()),d&&y!==d&&(y=d,o="".concat(o,".").concat(y)),[o,y]}t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),l.default.prototype.loadJSON=function(){for(var o=arguments.length,d=new Array(o),y=0;y"),g.print(""),g.print(' '),g.print(""),g.print(""),g.print(" "),_[0]!=="0"){g.print(" ");for(var k=0;k<_.length;k++){var R=s(_[k]);g.print(" ")}g.print(" ")}for(var L=0;L");for(var A=0;A".concat(U)),g.print(" ")}g.print(" ")}g.print("
        ".concat(R)),g.print("
        "),g.print(""),g.print("")}g.close(),g.clear()},l.default.prototype.writeFile=function(g,d,y){var m="application/octet-stream",g=(l.default.prototype._isSafari()&&(m="text/plain"),new Blob(g,{type:m}));l.default.prototype.downloadFile(g,d,y)},l.default.prototype.downloadFile=function(o,g,_){var m,g=i(g,_),_=g[0];o instanceof Blob?u.default.saveAs(o,_):((m=document.createElement("a")).href=o,m.download=_,m.onclick=function(S){document.body.removeChild(S.target),S.stopPropagation()},m.style.display="none",document.body.appendChild(m),l.default.prototype._isSafari()&&(o=(o=`Hello, Safari user! To download this file... -1. Go to File --> Save As. -2. Choose "Page Source" as the Format. -`)+'3. Name it with this extension: ."'.concat(g[1],'"'),alert(o)),m.click())},l.default.prototype._checkFileExtension=i,l.default.prototype._isSafari=function(){return 0>>0},getSeed:function(){return i},rand:function(){return(o=(1664525*o+1013904223)%d)/d}};y.setSeed(s),l=new Array(4096);for(var m=0;m<4096;m++)l[m]=y.rand()},p.default);b.default=p},{"../core/main":267}],300:[function(t,j,b){function c(o){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(o)}function l(o){return(l=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(d){return c(d)}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":c(d)})(o)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.sub"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.sub"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var n=(i=t("../core/main"))&&i.__esModule?i:{default:i},u=function(o){if(o&&o.__esModule)return o;if(o===null||l(o)!=="object"&&typeof o!="function")return{default:o};var d=f();if(d&&d.has(o))return d.get(o);var y,m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(y in o){var _;Object.prototype.hasOwnProperty.call(o,y)&&((_=g?Object.getOwnPropertyDescriptor(o,y):null)&&(_.get||_.set)?Object.defineProperty(m,y,_):m[y]=o[y])}return m.default=o,d&&d.set(o,m),m}(t("../core/constants"));function f(){var o;return typeof WeakMap!="function"?null:(o=new WeakMap,f=function(){return o},o)}n.default.Vector=function(){var o,d,y={}.toString.call(arguments[0])==="[object Function]"?(this.isPInst=!0,this._fromRadians=arguments[0],this._toRadians=arguments[1],o=arguments[2]||0,d=arguments[3]||0,arguments[4]||0):(o=arguments[0]||0,d=arguments[1]||0,arguments[2]||0);this.x=o,this.y=d,this.z=y},n.default.Vector.prototype.toString=function(){return"p5.Vector Object : [".concat(this.x,", ").concat(this.y,", ").concat(this.z,"]")},n.default.Vector.prototype.set=function(o,d,y){return o instanceof n.default.Vector?(this.x=o.x||0,this.y=o.y||0,this.z=o.z||0):o instanceof Array?(this.x=o[0]||0,this.y=o[1]||0,this.z=o[2]||0):(this.x=o||0,this.y=d||0,this.z=y||0),this},n.default.Vector.prototype.copy=function(){return this.isPInst?new n.default.Vector(this._fromRadians,this._toRadians,this.x,this.y,this.z):new n.default.Vector(this.x,this.y,this.z)},n.default.Vector.prototype.add=function(o,d,y){return o instanceof n.default.Vector?(this.x+=o.x||0,this.y+=o.y||0,this.z+=o.z||0):o instanceof Array?(this.x+=o[0]||0,this.y+=o[1]||0,this.z+=o[2]||0):(this.x+=o||0,this.y+=d||0,this.z+=y||0),this};function p(o,d){return o!==0&&(this.x=this.x%o),d!==0&&(this.y=this.y%d),this}function s(o,d,y){return o!==0&&(this.x=this.x%o),d!==0&&(this.y=this.y%d),y!==0&&(this.z=this.z%y),this}n.default.Vector.prototype.rem=function(o,d,y){var m;if(o instanceof n.default.Vector){if(Number.isFinite(o.x)&&Number.isFinite(o.y)&&Number.isFinite(o.z))return g=parseFloat(o.x),_=parseFloat(o.y),m=parseFloat(o.z),s.call(this,g,_,m)}else if(o instanceof Array){if(o.every(function(S){return Number.isFinite(S)}))return o.length===2?p.call(this,o[0],o[1]):o.length===3?s.call(this,o[0],o[1],o[2]):void 0}else if(arguments.length===1){if(Number.isFinite(o)&&o!==0)return this.x=this.x%o,this.y=this.y%o,this.z=this.z%o,this}else if(arguments.length===2){var g=Array.prototype.slice.call(arguments);if(g.every(function(S){return Number.isFinite(S)})&&g.length===2)return p.call(this,g[0],g[1])}else if(arguments.length===3){var _=Array.prototype.slice.call(arguments);if(_.every(function(S){return Number.isFinite(S)})&&_.length===3)return s.call(this,_[0],_[1],_[2])}},n.default.Vector.prototype.sub=function(o,d,y){return o instanceof n.default.Vector?(this.x-=o.x||0,this.y-=o.y||0,this.z-=o.z||0):o instanceof Array?(this.x-=o[0]||0,this.y-=o[1]||0,this.z-=o[2]||0):(this.x-=o||0,this.y-=d||0,this.z-=y||0),this},n.default.Vector.prototype.mult=function(o,d,y){var m;return o instanceof n.default.Vector?Number.isFinite(o.x)&&Number.isFinite(o.y)&&Number.isFinite(o.z)&&typeof o.x=="number"&&typeof o.y=="number"&&typeof o.z=="number"?(this.x*=o.x,this.y*=o.y,this.z*=o.z):console.warn("p5.Vector.prototype.mult:","x contains components that are either undefined or not finite numbers"):o instanceof Array?o.every(function(g){return Number.isFinite(g)})&&o.every(function(g){return typeof g=="number"})?o.length===1?(this.x*=o[0],this.y*=o[0],this.z*=o[0]):o.length===2?(this.x*=o[0],this.y*=o[1]):o.length===3&&(this.x*=o[0],this.y*=o[1],this.z*=o[2]):console.warn("p5.Vector.prototype.mult:","x contains elements that are either undefined or not finite numbers"):(m=Array.prototype.slice.call(arguments)).every(function(g){return Number.isFinite(g)})&&m.every(function(g){return typeof g=="number"})?(arguments.length===1&&(this.x*=o,this.y*=o,this.z*=o),arguments.length===2&&(this.x*=o,this.y*=d),arguments.length===3&&(this.x*=o,this.y*=d,this.z*=y)):console.warn("p5.Vector.prototype.mult:","x, y, or z arguments are either undefined or not a finite number"),this},n.default.Vector.prototype.div=function(o,d,y){if(o instanceof n.default.Vector)if(Number.isFinite(o.x)&&Number.isFinite(o.y)&&Number.isFinite(o.z)&&typeof o.x=="number"&&typeof o.y=="number"&&typeof o.z=="number"){var m=o.z===0&&this.z===0;if(o.x===0||o.y===0||!m&&o.z===0)return console.warn("p5.Vector.prototype.div:","divide by 0"),this;this.x/=o.x,this.y/=o.y,m||(this.z/=o.z)}else console.warn("p5.Vector.prototype.div:","x contains components that are either undefined or not finite numbers");else if(o instanceof Array)if(o.every(function(g){return Number.isFinite(g)})&&o.every(function(g){return typeof g=="number"})){if(o.some(function(g){return g===0}))return console.warn("p5.Vector.prototype.div:","divide by 0"),this;o.length===1?(this.x/=o[0],this.y/=o[0],this.z/=o[0]):o.length===2?(this.x/=o[0],this.y/=o[1]):o.length===3&&(this.x/=o[0],this.y/=o[1],this.z/=o[2])}else console.warn("p5.Vector.prototype.div:","x contains components that are either undefined or not finite numbers");else if(m=Array.prototype.slice.call(arguments),m.every(function(g){return Number.isFinite(g)})&&m.every(function(g){return typeof g=="number"})){if(m.some(function(g){return g===0}))return console.warn("p5.Vector.prototype.div:","divide by 0"),this;arguments.length===1&&(this.x/=o,this.y/=o,this.z/=o),arguments.length===2&&(this.x/=o,this.y/=d),arguments.length===3&&(this.x/=o,this.y/=d,this.z/=y)}else console.warn("p5.Vector.prototype.div:","x, y, or z arguments are either undefined or not a finite number");return this},n.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},n.default.Vector.prototype.magSq=function(){var o=this.x,d=this.y,y=this.z;return o*o+d*d+y*y},n.default.Vector.prototype.dot=function(o,d,y){return o instanceof n.default.Vector?this.dot(o.x,o.y,o.z):this.x*(o||0)+this.y*(d||0)+this.z*(y||0)},n.default.Vector.prototype.cross=function(m){var d=this.y*m.z-this.z*m.y,y=this.z*m.x-this.x*m.z,m=this.x*m.y-this.y*m.x;return this.isPInst?new n.default.Vector(this._fromRadians,this._toRadians,d,y,m):new n.default.Vector(d,y,m)},n.default.Vector.prototype.dist=function(o){return o.copy().sub(this).mag()},n.default.Vector.prototype.normalize=function(){var o=this.mag();return o!==0&&this.mult(1/o),this},n.default.Vector.prototype.limit=function(o){var d=this.magSq();return o*o>>0},c.default.prototype.randomSeed=function(p){this._lcgSetSeed(l,p),this._gaussian_previous=!1},c.default.prototype.random=function(p,s){var i,o;return c.default._validateParameters("random",arguments),i=this[l]!=null?this._lcg(l):Math.random(),p===void 0?i:s===void 0?p instanceof Array?p[Math.floor(i*p.length)]:i*p:(sD&&(ue=V,te=G,le=X,V=ae+D*(q&&ae=n?u.substring(u.length-n,u.length):u}},c.default.prototype.unhex=function(l){return l instanceof Array?l.map(c.default.prototype.unhex):parseInt("0x".concat(l),16)},t=c.default,b.default=t},{"../core/main":267,"core-js/modules/es.array.map":161,"core-js/modules/es.number.constructor":169,"core-js/modules/es.object.to-string":177,"core-js/modules/es.regexp.to-string":182,"core-js/modules/es.string.repeat":188}],308:[function(t,j,b){t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var c=(p=t("../core/main"))&&p.__esModule?p:{default:p};function l(y,i,o){var d=y<0,y=d?y.toString().substring(1):y.toString(),m=y.indexOf("."),g=m!==-1?y.substring(0,m):y,_=m!==-1?y.substring(m+1):"",S=d?"-":"";if(o!==void 0){d="",(m!==-1||0o&&(_=_.substring(0,o));for(var x=0;xd.length)for(var m=i-(d+=o===-1?".":"").length+1,g=0;g=u.TWO_PI?"".concat(T="ellipse","|"):"".concat(T="arc","|").concat(g,"|").concat(_,"|").concat(S,"|")).concat(x,"|"),T=(this.geometryInHash(C)||((o=new n.default.Geometry(x,1,function(){if(this.strokeIndices=[],g.toFixed(10)!==_.toFixed(10)){S!==u.PIE&&S!==void 0||(this.vertices.push(new n.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var k=0;k<=x;k++){var L=(_-g)*(k/x)+g,R=.5+Math.cos(L)/2,L=.5+Math.sin(L)/2;this.vertices.push(new n.default.Vector(R,L,0)),this.uvs.push([R,L]),k>5&31)/31,(Q>>10&31)/31)),new c.default.Vector(V,H,W)),se=1;se<=3;se++){var O=$+12*se,O=new c.default.Vector(A.getFloat32(O,!0),A.getFloat32(4+O,!0),A.getFloat32(8+O,!0));g.vertices.push(O),g.vertexNormals.push(Z),N&&T.push(S,x,C)}g.faces.push([3*X,3*X+1,3*X+2]),g.uvs.push([0,0],[0,0],[0,0])}})(y,m);else{if(m=new DataView(m),!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");m=new TextDecoder("utf-8").decode(m).split(` -`),function(g,_){for(var S,x,C="",T=[],k=0;k<_.length;++k){for(var R=_[k].trim(),L=R.split(" "),A=0;A=Math.PI)&&(i*=-1),(f+=y)<0&&(f=.1),Math.sin(s)*f*Math.sin(p)),d=Math.cos(s)*f,y=Math.sin(s)*f*Math.cos(p);this.camera(o+this.centerX,d+this.centerY,y+this.centerZ,this.centerX,this.centerY,this.centerZ,0,i,0)},c.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},c.default.prototype.setCamera=function(l){this._renderer._curCamera=l,this._renderer.uPMatrix.set(l.projMatrix.mat4[0],l.projMatrix.mat4[1],l.projMatrix.mat4[2],l.projMatrix.mat4[3],l.projMatrix.mat4[4],l.projMatrix.mat4[5],l.projMatrix.mat4[6],l.projMatrix.mat4[7],l.projMatrix.mat4[8],l.projMatrix.mat4[9],l.projMatrix.mat4[10],l.projMatrix.mat4[11],l.projMatrix.mat4[12],l.projMatrix.mat4[13],l.projMatrix.mat4[14],l.projMatrix.mat4[15])},t=c.default.Camera,b.default=t},{"../core/main":267}],316:[function(t,j,b){t("core-js/modules/es.array.slice"),t("core-js/modules/es.string.sub"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.string.sub"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var c=(t=t("../core/main"))&&t.__esModule?t:{default:t};c.default.Geometry=function(l,n,u){return this.vertices=[],this.lineVertices=[],this.lineTangentsIn=[],this.lineTangentsOut=[],this.lineSides=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.vertexStrokeColors=[],this.lineVertexColors=[],this.detailX=l!==void 0?l:1,this.detailY=n!==void 0?n:1,this.dirtyFlags={},u instanceof Function&&u.call(this),this},c.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineTangentsIn.length=0,this.lineTangentsOut.length=0,this.lineSides.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexStrokeColors.length=0,this.lineVertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},c.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var l,n,u,f=this.detailX+1,p=0;pthis.vertices.length-1-this.detailX;f--)l.add(this.vertexNormals[f]);l=c.default.Vector.div(l,this.detailX);for(var p=this.vertices.length-1;p>this.vertices.length-1-this.detailX;p--)this.vertexNormals[p]=l;return this},c.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var l=0,n=this.strokeIndices.length;l 65535 triangles. Your web browser does not support the WebGL Extension OES_element_index_uint.");s.drawElements(s.TRIANGLES,p.vertexCount,p.indexBufferType,0)}else s.drawArrays(u||s.TRIANGLES,0,p.vertexCount)},c.default.RendererGL.prototype._drawPoints=function(u,f){var p=this.GL,s=this._getImmediatePointShader();this._setPointUniforms(s),this._bindBuffer(f,p.ARRAY_BUFFER,this._vToNArray(u),Float32Array,p.STATIC_DRAW),s.enableAttrib(s.attributes.aPosition,3),p.drawArrays(p.Points,0,u.length),s.unbindShader()},c.default.RendererGL);b.default=n},{"../core/main":267,"./p5.RenderBuffer":318,"./p5.RendererGL":321,"core-js/modules/es.array.fill":152,"core-js/modules/es.array.iterator":158,"core-js/modules/es.array.some":163,"core-js/modules/es.object.keys":176,"core-js/modules/es.object.to-string":177,"core-js/modules/es.string.iterator":186,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.typed-array.copy-within":197,"core-js/modules/es.typed-array.every":198,"core-js/modules/es.typed-array.fill":199,"core-js/modules/es.typed-array.filter":200,"core-js/modules/es.typed-array.find":202,"core-js/modules/es.typed-array.find-index":201,"core-js/modules/es.typed-array.float32-array":203,"core-js/modules/es.typed-array.for-each":205,"core-js/modules/es.typed-array.includes":206,"core-js/modules/es.typed-array.index-of":207,"core-js/modules/es.typed-array.iterator":210,"core-js/modules/es.typed-array.join":211,"core-js/modules/es.typed-array.last-index-of":212,"core-js/modules/es.typed-array.map":213,"core-js/modules/es.typed-array.reduce":215,"core-js/modules/es.typed-array.reduce-right":214,"core-js/modules/es.typed-array.reverse":216,"core-js/modules/es.typed-array.set":217,"core-js/modules/es.typed-array.slice":218,"core-js/modules/es.typed-array.some":219,"core-js/modules/es.typed-array.sort":220,"core-js/modules/es.typed-array.subarray":221,"core-js/modules/es.typed-array.to-locale-string":222,"core-js/modules/es.typed-array.to-string":223,"core-js/modules/es.typed-array.uint16-array":224,"core-js/modules/es.typed-array.uint32-array":225,"core-js/modules/web.dom-collections.iterator":230}],321:[function(S,j,b){function c(x){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(x)}function l(x){return(l=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(C){return c(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":c(C)})(x)}S("core-js/modules/es.symbol"),S("core-js/modules/es.symbol.description"),S("core-js/modules/es.symbol.iterator"),S("core-js/modules/es.array.concat"),S("core-js/modules/es.array.fill"),S("core-js/modules/es.array.filter"),S("core-js/modules/es.array.from"),S("core-js/modules/es.array.includes"),S("core-js/modules/es.array.iterator"),S("core-js/modules/es.array.slice"),S("core-js/modules/es.object.assign"),S("core-js/modules/es.object.get-own-property-descriptor"),S("core-js/modules/es.object.to-string"),S("core-js/modules/es.regexp.to-string"),S("core-js/modules/es.string.includes"),S("core-js/modules/es.string.iterator"),S("core-js/modules/es.typed-array.float32-array"),S("core-js/modules/es.typed-array.float64-array"),S("core-js/modules/es.typed-array.int16-array"),S("core-js/modules/es.typed-array.uint8-array"),S("core-js/modules/es.typed-array.uint16-array"),S("core-js/modules/es.typed-array.uint32-array"),S("core-js/modules/es.typed-array.copy-within"),S("core-js/modules/es.typed-array.every"),S("core-js/modules/es.typed-array.fill"),S("core-js/modules/es.typed-array.filter"),S("core-js/modules/es.typed-array.find"),S("core-js/modules/es.typed-array.find-index"),S("core-js/modules/es.typed-array.for-each"),S("core-js/modules/es.typed-array.includes"),S("core-js/modules/es.typed-array.index-of"),S("core-js/modules/es.typed-array.iterator"),S("core-js/modules/es.typed-array.join"),S("core-js/modules/es.typed-array.last-index-of"),S("core-js/modules/es.typed-array.map"),S("core-js/modules/es.typed-array.reduce"),S("core-js/modules/es.typed-array.reduce-right"),S("core-js/modules/es.typed-array.reverse"),S("core-js/modules/es.typed-array.set"),S("core-js/modules/es.typed-array.slice"),S("core-js/modules/es.typed-array.some"),S("core-js/modules/es.typed-array.sort"),S("core-js/modules/es.typed-array.subarray"),S("core-js/modules/es.typed-array.to-locale-string"),S("core-js/modules/es.typed-array.to-string"),S("core-js/modules/es.weak-map"),S("core-js/modules/web.dom-collections.iterator"),S("core-js/modules/es.symbol"),S("core-js/modules/es.symbol.description"),S("core-js/modules/es.symbol.iterator"),S("core-js/modules/es.array.concat"),S("core-js/modules/es.array.fill"),S("core-js/modules/es.array.filter"),S("core-js/modules/es.array.from"),S("core-js/modules/es.array.includes"),S("core-js/modules/es.array.iterator"),S("core-js/modules/es.array.slice"),S("core-js/modules/es.object.assign"),S("core-js/modules/es.object.to-string"),S("core-js/modules/es.regexp.to-string"),S("core-js/modules/es.string.includes"),S("core-js/modules/es.string.iterator"),S("core-js/modules/es.typed-array.float32-array"),S("core-js/modules/es.typed-array.float64-array"),S("core-js/modules/es.typed-array.int16-array"),S("core-js/modules/es.typed-array.uint8-array"),S("core-js/modules/es.typed-array.uint16-array"),S("core-js/modules/es.typed-array.uint32-array"),S("core-js/modules/es.typed-array.copy-within"),S("core-js/modules/es.typed-array.every"),S("core-js/modules/es.typed-array.fill"),S("core-js/modules/es.typed-array.filter"),S("core-js/modules/es.typed-array.find"),S("core-js/modules/es.typed-array.find-index"),S("core-js/modules/es.typed-array.for-each"),S("core-js/modules/es.typed-array.includes"),S("core-js/modules/es.typed-array.index-of"),S("core-js/modules/es.typed-array.iterator"),S("core-js/modules/es.typed-array.join"),S("core-js/modules/es.typed-array.last-index-of"),S("core-js/modules/es.typed-array.map"),S("core-js/modules/es.typed-array.reduce"),S("core-js/modules/es.typed-array.reduce-right"),S("core-js/modules/es.typed-array.reverse"),S("core-js/modules/es.typed-array.set"),S("core-js/modules/es.typed-array.slice"),S("core-js/modules/es.typed-array.some"),S("core-js/modules/es.typed-array.sort"),S("core-js/modules/es.typed-array.subarray"),S("core-js/modules/es.typed-array.to-locale-string"),S("core-js/modules/es.typed-array.to-string"),S("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var n=s(S("../core/main")),u=function(x){if(x&&x.__esModule)return x;if(x===null||l(x)!=="object"&&typeof x!="function")return{default:x};var C=p();if(C&&C.has(x))return C.get(x);var T,k={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(T in x){var L;Object.prototype.hasOwnProperty.call(x,T)&&((L=R?Object.getOwnPropertyDescriptor(x,T):null)&&(L.get||L.set)?Object.defineProperty(k,T,L):k[T]=x[T])}return k.default=x,C&&C.set(x,k),k}(S("../core/constants")),f=s(S("libtess"));S("./p5.Shader"),S("./p5.Camera"),S("../core/p5.Renderer"),S("./p5.Matrix"),S("path");function p(){var x;return typeof WeakMap!="function"?null:(x=new WeakMap,p=function(){return x},x)}function s(x){return x&&x.__esModule?x:{default:x}}function i(x){return function(C){if(Array.isArray(C)){for(var T=0,k=new Array(C.length);T vTexCoord.y; - bool y1 = p1.y > vTexCoord.y; - bool y2 = p2.y > vTexCoord.y; - - // could web be under the curve (after t1)? - if (y1 ? !y2 : y0) { - // add the coverage for t1 - coverage.x += saturate(C1.x + 0.5); - // calculate the anti-aliasing for t1 - weight.x = min(weight.x, abs(C1.x)); - } - - // are we outside the curve (after t2)? - if (y1 ? !y0 : y2) { - // subtract the coverage for t2 - coverage.x -= saturate(C2.x + 0.5); - // calculate the anti-aliasing for t2 - weight.x = min(weight.x, abs(C2.x)); - } -} - -// this is essentially the same as coverageX, but with the axes swapped -void coverageY(vec2 p0, vec2 p1, vec2 p2) { - - vec2 C1, C2; - calulateCrossings(p0, p1, p2, C1, C2); - - bool x0 = p0.x > vTexCoord.x; - bool x1 = p1.x > vTexCoord.x; - bool x2 = p2.x > vTexCoord.x; - - if (x1 ? !x2 : x0) { - coverage.y -= saturate(C1.y + 0.5); - weight.y = min(weight.y, abs(C1.y)); - } - - if (x1 ? !x0 : x2) { - coverage.y += saturate(C2.y + 0.5); - weight.y = min(weight.y, abs(C2.y)); - } -} - -void main() { - - // calculate the pixel scale based on screen-coordinates - pixelScale = hardness / fwidth(vTexCoord); - - // which grid cell is this pixel in? - ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize)); - - // intersect curves in this row - { - // the index into the row info bitmap - int rowIndex = gridCoord.y + uGridOffset.y; - // fetch the info texel - vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize); - // unpack the rowInfo - int rowStrokeIndex = getInt16(rowInfo.xy); - int rowStrokeCount = getInt16(rowInfo.zw); - - for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) { - if (iRowStroke >= rowStrokeCount) - break; - - // each stroke is made up of 3 points: the start and control point - // and the start of the next curve. - // fetch the indices of this pair of strokes: - vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize); - - // unpack the stroke index - int strokePos = getInt16(strokeIndices.xy); - - // fetch the two strokes - vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize); - vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize); - - // calculate the coverage - coverageX(stroke0.xy, stroke0.zw, stroke1.xy); - } - } - - // intersect curves in this column - { - int colIndex = gridCoord.x + uGridOffset.x; - vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize); - int colStrokeIndex = getInt16(colInfo.xy); - int colStrokeCount = getInt16(colInfo.zw); - - for (int iColStroke = INT(0); iColStroke < N; iColStroke++) { - if (iColStroke >= colStrokeCount) - break; - - vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize); - - int strokePos = getInt16(strokeIndices.xy); - vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize); - vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize); - coverageY(stroke0.xy, stroke0.zw, stroke1.xy); - } - } - - weight = saturate(1.0 - weight * 2.0); - float distance = max(weight.x + weight.y, minDistance); // manhattan approx. - float antialias = abs(dot(coverage, weight) / distance); - float cover = min(abs(coverage.x), abs(coverage.y)); - gl_FragColor = vec4(uMaterialColor.rgb, 1.) * uMaterialColor.a; - gl_FragColor *= saturate(max(antialias, cover)); -} -`,lineVert:g+`/* - Part of the Processing project - http://processing.org - Copyright (c) 2012-15 The Processing Foundation - Copyright (c) 2004-12 Ben Fry and Casey Reas - Copyright (c) 2001-04 Massachusetts Institute of Technology - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation, version 2.1. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General - Public License along with this library; if not, write to the - Free Software Foundation, Inc., 59 Temple Place, Suite 330, - Boston, MA 02111-1307 USA -*/ - -#define PROCESSING_LINE_SHADER - -precision mediump float; -precision mediump int; - -uniform mat4 uModelViewMatrix; -uniform mat4 uProjectionMatrix; -uniform float uStrokeWeight; - -uniform bool uUseLineColor; -uniform vec4 uMaterialColor; - -uniform vec4 uViewport; -uniform int uPerspective; -uniform int uStrokeJoin; - -attribute vec4 aPosition; -attribute vec3 aTangentIn; -attribute vec3 aTangentOut; -attribute float aSide; -attribute vec4 aVertexColor; - -varying vec4 vColor; -varying vec2 vTangent; -varying vec2 vCenter; -varying vec2 vPosition; -varying float vMaxDist; -varying float vCap; -varying float vJoin; - -vec2 lineIntersection(vec2 aPoint, vec2 aDir, vec2 bPoint, vec2 bDir) { - // Rotate and translate so a starts at the origin and goes out to the right - bPoint -= aPoint; - vec2 rotatedBFrom = vec2( - bPoint.x*aDir.x + bPoint.y*aDir.y, - bPoint.y*aDir.x - bPoint.x*aDir.y - ); - vec2 bTo = bPoint + bDir; - vec2 rotatedBTo = vec2( - bTo.x*aDir.x + bTo.y*aDir.y, - bTo.y*aDir.x - bTo.x*aDir.y - ); - float intersectionDistance = - rotatedBTo.x + (rotatedBFrom.x - rotatedBTo.x) * rotatedBTo.y / - (rotatedBTo.y - rotatedBFrom.y); - return aPoint + aDir * intersectionDistance; -} - -void main() { - // using a scale <1 moves the lines towards the camera - // in order to prevent popping effects due to half of - // the line disappearing behind the geometry faces. - vec3 scale = vec3(0.9995); - - // Caps have one of either the in or out tangent set to 0 - vCap = (aTangentIn == vec3(0.)) != (aTangentOut == (vec3(0.))) - ? 1. : 0.; - - // Joins have two unique, defined tangents - vJoin = ( - aTangentIn != vec3(0.) && - aTangentOut != vec3(0.) && - aTangentIn != aTangentOut - ) ? 1. : 0.; - - vec4 posp = uModelViewMatrix * aPosition; - vec4 posqIn = uModelViewMatrix * (aPosition + vec4(aTangentIn, 0)); - vec4 posqOut = uModelViewMatrix * (aPosition + vec4(aTangentOut, 0)); - - // Moving vertices slightly toward the camera - // to avoid depth-fighting with the fill triangles. - // Discussed here: - // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848 - posp.xyz = posp.xyz * scale; - posqIn.xyz = posqIn.xyz * scale; - posqOut.xyz = posqOut.xyz * scale; - - vec4 p = uProjectionMatrix * posp; - vec4 qIn = uProjectionMatrix * posqIn; - vec4 qOut = uProjectionMatrix * posqOut; - vCenter = p.xy; - - // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height]) - // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw - - // prevent division by W by transforming the tangent formula (div by 0 causes - // the line to disappear, see https://github.com/processing/processing/issues/5183) - // t = screen_q - screen_p - // - // tangent is normalized and we don't care which aDirection it points to (+-) - // t = +- normalize( screen_q - screen_p ) - // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw ) - // - // extract common factor, <1,1> - <1,1> cancels out - // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw ) - // - // convert to common divisor - // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw ) - // - // remove the common scalar divisor/factor, not needed due to normalize and +- - // (keep uViewport - can't remove because it has different components for x and y - // and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181) - // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw ) - - vec2 tangentIn = normalize((qIn.xy*p.w - p.xy*qIn.w) * uViewport.zw); - vec2 tangentOut = normalize((qOut.xy*p.w - p.xy*qOut.w) * uViewport.zw); - - vec2 curPerspScale; - if(uPerspective == 1) { - // Perspective --- - // convert from world to clip by multiplying with projection scaling factor - // to get the right thickness (see https://github.com/processing/processing/issues/5182) - // invert Y, projections in Processing invert Y - curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy; - } else { - // No Perspective --- - // multiply by W (to cancel out division by W later in the pipeline) and - // convert from screen to clip (derived from clip to screen above) - curPerspScale = p.w / (0.5 * uViewport.zw); - } - - vec2 offset; - if (vJoin == 1.) { - vTangent = normalize(tangentIn + tangentOut); - vec2 normalIn = vec2(-tangentIn.y, tangentIn.x); - vec2 normalOut = vec2(-tangentOut.y, tangentOut.x); - float side = sign(aSide); - float sideEnum = abs(aSide); - - // We generate vertices for joins on either side of the centerline, but - // the "elbow" side is the only one needing a join. By not setting the - // offset for the other side, all its vertices will end up in the same - // spot and not render, effectively discarding it. - if (sign(dot(tangentOut, vec2(-tangentIn.y, tangentIn.x))) != side) { - // Side enums: - // 1: the side going into the join - // 2: the middle of the join - // 3: the side going out of the join - if (sideEnum == 2.) { - // Calculate the position + tangent on either side of the join, and - // find where the lines intersect to find the elbow of the join - vec2 c = (posp.xy/posp.w + vec2(1.,1.)) * 0.5 * uViewport.zw; - vec2 intersection = lineIntersection( - c + (side * normalIn * uStrokeWeight / 2.) * curPerspScale, - tangentIn, - c + (side * normalOut * uStrokeWeight / 2.) * curPerspScale, - tangentOut - ); - offset = (intersection - c); - - // When lines are thick and the angle of the join approaches 180, the - // elbow might be really far from the center. We'll apply a limit to - // the magnitude to avoid lines going across the whole screen when this - // happens. - float mag = length(offset); - float maxMag = 3. * uStrokeWeight; - if (mag > maxMag) { - offset *= maxMag / mag; - } - } else if (sideEnum == 1.) { - offset = side * normalIn * curPerspScale * uStrokeWeight / 2.; - } else if (sideEnum == 3.) { - offset = side * normalOut * curPerspScale * uStrokeWeight / 2.; - } - } - if (uStrokeJoin == STROKE_JOIN_BEVEL) { - vec2 avgNormal = vec2(-vTangent.y, vTangent.x); - vMaxDist = abs(dot(avgNormal, normalIn * uStrokeWeight / 2.)); - } else { - vMaxDist = uStrokeWeight / 2.; - } - } else { - vec2 tangent = aTangentIn == vec3(0.) ? tangentOut : tangentIn; - vTangent = tangent; - vec2 normal = vec2(-tangent.y, tangent.x); - - float normalOffset = sign(aSide); - // Caps will have side values of -2 or 2 on the edge of the cap that - // extends out from the line - float tangentOffset = abs(aSide) - 1.; - offset = (normal * normalOffset + tangent * tangentOffset) * - uStrokeWeight * 0.5 * curPerspScale; - vMaxDist = uStrokeWeight / 2.; - } - vPosition = vCenter + offset / curPerspScale; - - gl_Position.xy = p.xy + offset.xy; - gl_Position.zw = p.zw; - - vColor = (uUseLineColor ? aVertexColor : uMaterialColor); -} -`,lineFrag:g+`precision mediump float; -precision mediump int; - -uniform vec4 uMaterialColor; -uniform int uStrokeCap; -uniform int uStrokeJoin; -uniform float uStrokeWeight; - -varying vec4 vColor; -varying vec2 vTangent; -varying vec2 vCenter; -varying vec2 vPosition; -varying float vMaxDist; -varying float vCap; -varying float vJoin; - -float distSquared(vec2 a, vec2 b) { - vec2 aToB = b - a; - return dot(aToB, aToB); -} - -void main() { - if (vCap > 0.) { - if ( - uStrokeCap == STROKE_CAP_ROUND && - distSquared(vPosition, vCenter) > uStrokeWeight * uStrokeWeight * 0.25 - ) { - discard; - } else if ( - uStrokeCap == STROKE_CAP_SQUARE && - dot(vPosition - vCenter, vTangent) > 0. - ) { - discard; - } - // Use full area for PROJECT - } else if (vJoin > 0.) { - if ( - uStrokeJoin == STROKE_JOIN_ROUND && - distSquared(vPosition, vCenter) > uStrokeWeight * uStrokeWeight * 0.25 - ) { - discard; - } else if (uStrokeJoin == STROKE_JOIN_BEVEL) { - vec2 normal = vec2(-vTangent.y, vTangent.x); - if (abs(dot(vPosition - vCenter, normal)) > vMaxDist) { - discard; - } - } - // Use full area for MITER - } - gl_FragColor = vec4(vColor.rgb, 1.) * vColor.a; -} -`,pointVert:`attribute vec3 aPosition; -uniform float uPointSize; -varying float vStrokeWeight; -uniform mat4 uModelViewMatrix; -uniform mat4 uProjectionMatrix; -void main() { - vec4 positionVec4 = vec4(aPosition, 1.0); - gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4; - gl_PointSize = uPointSize; - vStrokeWeight = uPointSize; -}`,pointFrag:`precision mediump float; -precision mediump int; -uniform vec4 uMaterialColor; -varying float vStrokeWeight; - -void main(){ - float mask = 0.0; - - // make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point) - // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant - - mask = step(0.98, length(gl_PointCoord * 2.0 - 1.0)); - - // if strokeWeight is 1 or less lets just draw a square - // this prevents weird artifacting from carving circles when our points are really small - // if strokeWeight is larger than 1, we just use it as is - - mask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0)); - - // throw away the borders of the mask - // otherwise we get weird alpha blending issues - - if(mask > 0.98){ - discard; - } - - gl_FragColor = vec4(uMaterialColor.rgb, 1.) * uMaterialColor.a; -} -`},S=(n.default.RendererGL=function(x,C,T,k){return n.default.Renderer.call(this,x,C,T),this._setAttributeDefaults(C),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._pInst._setProperty("drawingContext",this.drawingContext),this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=u.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curAmbientColor=this._cachedFillStyle=[1,1,1,1],this.curSpecularColor=this._cachedFillStyle=[0,0,0,0],this.curEmissiveColor=this._cachedFillStyle=[0,0,0,0],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=u.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension("EXT_blend_minmax"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._useLineColor=!1,this._useVertexColor=!1,this.registerEnabled=[],this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new n.default.Matrix,this.uPMatrix=new n.default.Matrix,this.uNMatrix=new n.default.Matrix("mat3"),this._currentNormal=new n.default.Vector(0,0,1),this._curCamera=new n.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new n.default.RenderBuffer(4,"lineVertexColors","lineColorBuffer","aVertexColor",this,this._flatten),new n.default.RenderBuffer(3,"lineVertices","lineVerticesBuffer","aPosition",this,this._flatten),new n.default.RenderBuffer(3,"lineTangentsIn","lineTangentsInBuffer","aTangentIn",this,this._flatten),new n.default.RenderBuffer(3,"lineTangentsOut","lineTangentsOutBuffer","aTangentOut",this,this._flatten),new n.default.RenderBuffer(1,"lineSides","lineSidesBuffer","aSide",this)],fill:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(3,"vertexNormals","normalBuffer","aNormal",this,this._vToNArray),new n.default.RenderBuffer(4,"vertexColors","colorBuffer","aVertexColor",this),new n.default.RenderBuffer(3,"vertexAmbients","ambientBuffer","aAmbientColor",this),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)],text:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)]}},this.immediateMode={geometry:new n.default.Geometry,shapeMode:u.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(3,"vertexNormals","normalBuffer","aNormal",this,this._vToNArray),new n.default.RenderBuffer(4,"vertexColors","colorBuffer","aVertexColor",this),new n.default.RenderBuffer(3,"vertexAmbients","ambientBuffer","aAmbientColor",this),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)],stroke:[new n.default.RenderBuffer(4,"lineVertexColors","lineColorBuffer","aVertexColor",this,this._flatten),new n.default.RenderBuffer(3,"lineVertices","lineVerticesBuffer","aPosition",this,this._flatten),new n.default.RenderBuffer(3,"lineTangentsIn","lineTangentsInBuffer","aTangentIn",this,this._flatten),new n.default.RenderBuffer(3,"lineTangentsOut","lineTangentsOutBuffer","aTangentOut",this,this._flatten),new n.default.RenderBuffer(1,"lineSides","lineSidesBuffer","aSide",this)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.curStrokeCap=u.ROUND,this.curStrokeJoin=u.ROUND,this.textures=[],this.textureMode=u.IMAGE,this.textureWrapX=u.CLAMP,this.textureWrapY=u.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this.isProcessingVertices=!1,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},n.default.RendererGL.prototype=Object.create(n.default.Renderer.prototype),n.default.RendererGL.prototype._setAttributeDefaults=function(x){var C={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes("safari"),premultipliedAlpha:!0,preserveDrawingBuffer:!0,perPixelLighting:!0};x._glAttributes===null?x._glAttributes=C:x._glAttributes=Object.assign(C,x._glAttributes)},n.default.RendererGL.prototype._initContext=function(){if(this.drawingContext=this.canvas.getContext("webgl",this._pInst._glAttributes)||this.canvas.getContext("experimental-webgl",this._pInst._glAttributes),this.drawingContext===null)throw new Error("Error creating webgl context");var x=this.drawingContext;x.enable(x.DEPTH_TEST),x.depthFunc(x.LEQUAL),x.viewport(0,0,x.drawingBufferWidth,x.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)},n.default.RendererGL.prototype._resetContext=function(x,C){var T,k=this.width,R=this.height,A=this.canvas.id,L=this._pInst instanceof n.default.Graphics,A=(L?((T=this._pInst).canvas.parentNode.removeChild(T.canvas),T.canvas=document.createElement("canvas"),(T._pInst._userNode||document.body).appendChild(T.canvas),n.default.Element.call(T,T.canvas,T._pInst),T.width=k,T.height=R):((T=this.canvas)&&T.parentNode.removeChild(T),(T=document.createElement("canvas")).id=A,(this._pInst._userNode||document.body).appendChild(T),this._pInst.canvas=T,this.canvas=T),new n.default.RendererGL(this._pInst.canvas,this._pInst,!L));this._pInst._setProperty("_renderer",A),A.resize(k,R),A._applyDefaults(),L||this._pInst._elements.push(A),typeof C=="function"&&setTimeout(function(){C.apply(window._renderer,x)},0)},n.default.prototype.setAttributes=function(x,C){if(this._glAttributes===void 0)console.log("You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.");else{var T=!0;if(C!==void 0?(this._glAttributes===null&&(this._glAttributes={}),this._glAttributes[x]!==C&&(this._glAttributes[x]=C,T=!1)):x instanceof Object&&this._glAttributes!==x&&(this._glAttributes=x,T=!1),this._renderer.isP3D&&!T){if(!this._setupDone){for(var k in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(k))return void console.error("Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()")}this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}},n.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},n.default.RendererGL.prototype.background=function(){var k=(k=this._pInst).color.apply(k,arguments),x=k.levels[0]/255,C=k.levels[1]/255,T=k.levels[2]/255,k=k.levels[3]/255;this.clear(x,C,T,k)},n.default.RendererGL.prototype.fill=function(x,C,T,k){var R=n.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=R._array,this.drawMode=u.FILL,this._useNormalMaterial=!1,this._tex=null},n.default.RendererGL.prototype.stroke=function(x,C,T,k){var R=n.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=R._array},n.default.RendererGL.prototype.strokeCap=function(x){this.curStrokeCap=x},n.default.RendererGL.prototype.strokeJoin=function(x){this.curStrokeJoin=x},n.default.RendererGL.prototype.filter=function(x){console.error("filter() does not work in WEBGL mode")},n.default.RendererGL.prototype.blendMode=function(x){x===u.DARKEST||x===u.LIGHTEST||x===u.ADD||x===u.BLEND||x===u.SUBTRACT||x===u.SCREEN||x===u.EXCLUSION||x===u.REPLACE||x===u.MULTIPLY||x===u.REMOVE?this.curBlendMode=x:x!==u.BURN&&x!==u.OVERLAY&&x!==u.HARD_LIGHT&&x!==u.SOFT_LIGHT&&x!==u.DODGE||console.warn("BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.")},n.default.RendererGL.prototype.erase=function(x,C){this._isErasing||(this._applyBlendMode(u.REMOVE),this._isErasing=!0,this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,x/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,C/255])},n.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this._isErasing=!1,this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode))},n.default.RendererGL.prototype.strokeWeight=function(x){this.curStrokeWeight!==x&&(this.pointSize=x,this.curStrokeWeight=x)},n.default.RendererGL.prototype._getPixel=function(x,C){var T=new Uint8Array(4);return this.drawingContext.readPixels(x,C,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,T),[T[0],T[1],T[2],T[3]]},n.default.RendererGL.prototype.loadPixels=function(){var x,C=this._pixelsState;this._pInst._glAttributes.preserveDrawingBuffer!==!0?console.log("loadPixels only works in WebGL when preserveDrawingBuffer is true."):(C=C.pixels,x=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4,C instanceof Uint8Array&&C.length===x||(C=new Uint8Array(x),this._pixelsState._setProperty("pixels",C)),x=this._pInst._pixelDensity,this.GL.readPixels(0,0,this.width*x,this.height*x,this.GL.RGBA,this.GL.UNSIGNED_BYTE,C))},n.default.RendererGL.prototype.geometryInHash=function(x){return this.retainedMode.geometry[x]!==void 0},n.default.RendererGL.prototype.resize=function(x,C){n.default.Renderer.prototype.resize.call(this,x,C),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize(),x=this._pixelsState,x.pixels!==void 0&&x._setProperty("pixels",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},n.default.RendererGL.prototype.clear=function(){var x=(arguments.length<=0?void 0:arguments[0])||0,C=(arguments.length<=1?void 0:arguments[1])||0,T=(arguments.length<=2?void 0:arguments[2])||0,k=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(x*k,C*k,T*k,k),this.GL.clearDepth(1),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},n.default.RendererGL.prototype.applyMatrix=function(x,C,T,k,R,L){arguments.length===16?n.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([x,C,0,0,T,k,0,0,0,0,1,0,R,L,0,1])},n.default.RendererGL.prototype.translate=function(x,C,T){return x instanceof n.default.Vector&&(T=x.z,C=x.y,x=x.x),this.uMVMatrix.translate([x,C,T]),this},n.default.RendererGL.prototype.scale=function(x,C,T){return this.uMVMatrix.scale(x,C,T),this},n.default.RendererGL.prototype.rotate=function(x,C){return C===void 0?this.rotateZ(x):(n.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},n.default.RendererGL.prototype.rotateX=function(x){return this.rotate(x,1,0,0),this},n.default.RendererGL.prototype.rotateY=function(x){return this.rotate(x,0,1,0),this},n.default.RendererGL.prototype.rotateZ=function(x){return this.rotate(x,0,0,1),this},n.default.RendererGL.prototype.push=function(){var x=n.default.Renderer.prototype.push.apply(this),C=x.properties;return C.uMVMatrix=this.uMVMatrix.copy(),C.uPMatrix=this.uPMatrix.copy(),C._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),C.ambientLightColors=this.ambientLightColors.slice(),C.specularColors=this.specularColors.slice(),C.directionalLightDirections=this.directionalLightDirections.slice(),C.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),C.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),C.pointLightPositions=this.pointLightPositions.slice(),C.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),C.pointLightSpecularColors=this.pointLightSpecularColors.slice(),C.spotLightPositions=this.spotLightPositions.slice(),C.spotLightDirections=this.spotLightDirections.slice(),C.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),C.spotLightSpecularColors=this.spotLightSpecularColors.slice(),C.spotLightAngle=this.spotLightAngle.slice(),C.spotLightConc=this.spotLightConc.slice(),C.userFillShader=this.userFillShader,C.userStrokeShader=this.userStrokeShader,C.userPointShader=this.userPointShader,C.pointSize=this.pointSize,C.curStrokeWeight=this.curStrokeWeight,C.curStrokeColor=this.curStrokeColor,C.curFillColor=this.curFillColor,C.curAmbientColor=this.curAmbientColor,C.curSpecularColor=this.curSpecularColor,C.curEmissiveColor=this.curEmissiveColor,C._useSpecularMaterial=this._useSpecularMaterial,C._useEmissiveMaterial=this._useEmissiveMaterial,C._useShininess=this._useShininess,C.constantAttenuation=this.constantAttenuation,C.linearAttenuation=this.linearAttenuation,C.quadraticAttenuation=this.quadraticAttenuation,C._enableLighting=this._enableLighting,C._useNormalMaterial=this._useNormalMaterial,C._tex=this._tex,C.drawMode=this.drawMode,C._currentNormal=this._currentNormal,C.curBlendMode=this.curBlendMode,x},n.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this},n.default.RendererGL.prototype._getImmediateStrokeShader=function(){var x=this.userStrokeShader;return x&&x.isStrokeShader()?x:this._getLineShader()},n.default.RendererGL.prototype._getRetainedStrokeShader=n.default.RendererGL.prototype._getImmediateStrokeShader,n.default.RendererGL.prototype._getImmediateFillShader=function(){var x=this.userFillShader;if(this._useNormalMaterial&&(!x||!x.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!x||!x.isLightShader())return this._getLightShader()}else if(this._tex){if(!x||!x.isTextureShader())return this._getLightShader()}else if(!x)return this._getImmediateModeShader();return x},n.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var x=this.userFillShader;if(this._enableLighting){if(!x||!x.isLightShader())return this._getLightShader()}else if(this._tex){if(!x||!x.isTextureShader())return this._getLightShader()}else if(!x)return this._getColorShader();return x},n.default.RendererGL.prototype._getImmediatePointShader=function(){var x=this.userPointShader;return x&&x.isPointShader()?x:this._getPointShader()},n.default.RendererGL.prototype._getRetainedLineShader=n.default.RendererGL.prototype._getImmediateLineShader,n.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new n.default.Shader(this,_.phongVert,_.phongFrag):this._defaultLightShader=new n.default.Shader(this,_.lightVert,_.lightTextureFrag)),this._defaultLightShader},n.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new n.default.Shader(this,_.immediateVert,_.vertexColorFrag)),this._defaultImmediateModeShader},n.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new n.default.Shader(this,_.normalVert,_.normalFrag)),this._defaultNormalShader},n.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new n.default.Shader(this,_.normalVert,_.basicFrag)),this._defaultColorShader},n.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new n.default.Shader(this,_.pointVert,_.pointFrag)),this._defaultPointShader},n.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new n.default.Shader(this,_.lineVert,_.lineFrag)),this._defaultLineShader},n.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension("OES_standard_derivatives"),this._defaultFontShader=new n.default.Shader(this,_.fontVert,_.fontFrag)),this._defaultFontShader},n.default.RendererGL.prototype._getEmptyTexture=function(){var x;return this._emptyTexture||((x=new n.default.Image(1,1)).set(0,0,255),this._emptyTexture=new n.default.Texture(this,x)),this._emptyTexture},n.default.RendererGL.prototype.getTexture=function(x){var C=this.textures,T=!0,k=!1,R=void 0;try{for(var L,A=C[Symbol.iterator]();!(T=(L=A.next()).done);T=!0){var U=L.value;if(U.src===x)return U}}catch(N){k=!0,R=N}finally{try{T||A.return==null||A.return()}finally{if(k)throw R}}return k=new n.default.Texture(this,x),C.push(k),k},n.default.RendererGL.prototype._setStrokeUniforms=function(x){x.bindShader(),x.setUniform("uUseLineColor",this._useLineColor),x.setUniform("uMaterialColor",this.curStrokeColor),x.setUniform("uStrokeWeight",this.curStrokeWeight),x.setUniform("uStrokeCap",y[this.curStrokeCap]),x.setUniform("uStrokeJoin",m[this.curStrokeJoin])},n.default.RendererGL.prototype._setFillUniforms=function(x){x.bindShader(),x.setUniform("uUseVertexColor",this._useVertexColor),x.setUniform("uMaterialColor",this.curFillColor),x.setUniform("isTexture",!!this._tex),this._tex&&x.setUniform("uSampler",this._tex),x.setUniform("uTint",this._tint),x.setUniform("uAmbientMatColor",this.curAmbientColor),x.setUniform("uSpecularMatColor",this.curSpecularColor),x.setUniform("uEmissiveMatColor",this.curEmissiveColor),x.setUniform("uSpecular",this._useSpecularMaterial),x.setUniform("uEmissive",this._useEmissiveMaterial),x.setUniform("uShininess",this._useShininess),x.setUniform("uUseLighting",this._enableLighting);var C=this.pointLightDiffuseColors.length/3,C=(x.setUniform("uPointLightCount",C),x.setUniform("uPointLightLocation",this.pointLightPositions),x.setUniform("uPointLightDiffuseColors",this.pointLightDiffuseColors),x.setUniform("uPointLightSpecularColors",this.pointLightSpecularColors),this.directionalLightDiffuseColors.length/3),C=(x.setUniform("uDirectionalLightCount",C),x.setUniform("uLightingDirection",this.directionalLightDirections),x.setUniform("uDirectionalDiffuseColors",this.directionalLightDiffuseColors),x.setUniform("uDirectionalSpecularColors",this.directionalLightSpecularColors),this.ambientLightColors.length/3),C=(x.setUniform("uAmbientLightCount",C),x.setUniform("uAmbientColor",this.ambientLightColors),this.spotLightDiffuseColors.length/3);x.setUniform("uSpotLightCount",C),x.setUniform("uSpotLightAngle",this.spotLightAngle),x.setUniform("uSpotLightConc",this.spotLightConc),x.setUniform("uSpotLightDiffuseColors",this.spotLightDiffuseColors),x.setUniform("uSpotLightSpecularColors",this.spotLightSpecularColors),x.setUniform("uSpotLightLocation",this.spotLightPositions),x.setUniform("uSpotLightDirection",this.spotLightDirections),x.setUniform("uConstantAttenuation",this.constantAttenuation),x.setUniform("uLinearAttenuation",this.linearAttenuation),x.setUniform("uQuadraticAttenuation",this.quadraticAttenuation),x.bindTextures()},n.default.RendererGL.prototype._setPointUniforms=function(x){x.bindShader(),x.setUniform("uMaterialColor",this.curStrokeColor),x.setUniform("uPointSize",this.pointSize*this._pInst._pixelDensity)},n.default.RendererGL.prototype._bindBuffer=function(x,C,T,k,R){C=C||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(C,x),T!==void 0&&(x=new(k||Float32Array)(T),this.GL.bufferData(C,x,R||this.GL.STATIC_DRAW))},n.default.RendererGL.prototype._arraysEqual=function(x,C){var T=x.length;if(T!==C.length)return!1;for(var k=0;k>7,127&J,Y>>7,127&Y);for(var z=0;z>7,127&re,0,0)}}return{cellImageInfo:be,dimOffset:Te,dimImageInfo:We}}}}var d=Math.sqrt(3);u.default.RendererGL.prototype._renderText=function(y,m,g,_,S){if(this._textFont&&typeof this._textFont!="string"){if(!(S<=_)&&this._doFill){if(this._isOpenType()){y.push();var S=this._doStroke,x=this.drawMode,C=(this._doStroke=!1,this.drawMode=f.TEXTURE,this._textFont.font),T=(T=this._textFont._fontInfo)||(this._textFont._fontInfo=new o(C)),g=this._textFont._handleAlignment(this,m,g,_),_=this._textSize/C.unitsPerEm,k=(this.translate(g.x,g.y,0),this.scale(_,_,1),this.GL),g=!this._defaultFontShader,R=this._getFontShader(),L=(R.init(),R.bindShader(),g&&(R.setUniform("uGridImageSize",[64,64]),R.setUniform("uCellsImageSize",[64,64]),R.setUniform("uStrokeImageSize",[64,64]),R.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),A=(L||((_=this._textGeom=new u.default.Geometry(1,1,function(){for(var ue=0;ue<=1;ue++)for(var fe=0;fe<=1;fe++)this.vertices.push(new u.default.Vector(fe,ue,0)),this.uvs.push(fe,ue)})).computeFaces().computeNormals(),L=this.createBuffers("glyph",_)),!0),g=!1,_=void 0;try{for(var U,N=this.retainedMode.buffers.text[Symbol.iterator]();!(A=(U=N.next()).done);A=!0)U.value._prepareBuffer(L,R)}catch(ue){g=!0,_=ue}finally{try{A||N.return==null||N.return()}finally{if(g)throw _}}this._bindBuffer(L.indexBuffer,k.ELEMENT_ARRAY_BUFFER),R.setUniform("uMaterialColor",this.curFillColor);try{var G=0,X=null,Q=C.stringToGlyphs(m),$=!0,V=!1,H=void 0;try{for(var W,Z=Q[Symbol.iterator]();!($=(W=Z.next()).done);$=!0){var se,O,D=W.value,B=(X&&(G+=C.getKerningValue(X,D)),T.getGlyphInfo(D));B.uGlyphRect&&(se=B.rowInfo,O=B.colInfo,R.setUniform("uSamplerStrokes",B.strokeImageInfo.imageData),R.setUniform("uSamplerRowStrokes",se.cellImageInfo.imageData),R.setUniform("uSamplerRows",se.dimImageInfo.imageData),R.setUniform("uSamplerColStrokes",O.cellImageInfo.imageData),R.setUniform("uSamplerCols",O.dimImageInfo.imageData),R.setUniform("uGridOffset",B.uGridOffset),R.setUniform("uGlyphRect",B.uGlyphRect),R.setUniform("uGlyphOffset",G),R.bindTextures(),k.drawElements(k.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),G+=D.advanceWidth,X=D}}catch(ue){V=!0,H=ue}finally{try{$||Z.return==null||Z.return()}finally{if(V)throw H}}}finally{R.unbindShader(),this._doStroke=S,this.drawMode=x,y.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return y}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":256,"../core/main":267,"./p5.RendererGL.Retained":320,"./p5.Shader":322,"core-js/modules/es.array.iterator":158,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.iterator":186,"core-js/modules/es.string.split":191,"core-js/modules/es.string.sub":192,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}]},{},[251])(251)})})(Ty);const Cy=$p(Tl);function ky(r,a){return new Cy(r,a)}function gd(r){var a;(a=r.current)==null||a.remove(),r.current=null}function Oy(r){const{sketch:a,children:v,...t}=r,j=nr.createRef(),b=nr.useRef(null);return nr.useEffect(()=>{j.current!==null&&(gd(b),b.current=ky(a,j.current))},[a]),nr.useEffect(()=>{var c,l;(l=(c=b.current)==null?void 0:c.updateWithProps)==null||l.call(c,t)},[t,j]),nr.useEffect(()=>()=>gd(b),[]),mr.jsx("div",{ref:j,className:My,children:v})}function Py(r){const{sketch:a,fallback:v}=r;return a===void 0?(console.error("[ReactP5Wrapper] The `sketch` prop is required."),v!==void 0?mr.jsx(mr.Fragment,{children:v}):null):mr.jsx(Oy,{...r})}const Ly=nr.memo(Py,Ey);function Ry(){const r=nr.useMemo(()=>[Ml,kp,Cp],[hd,yd,md]),[a,v]=nr.useState({rotation:160,sketch:Ml,unmount:!1}),t=nr.useCallback(()=>{v(c=>{const n=(r.findIndex(f=>Object.is(f,c.sketch))+1)%r.length,u=r.at(n);return u===void 0?c:{...c,sketch:u}})},[r]),j=nr.useCallback(()=>{v(c=>({...c,unmount:!c.unmount}))},[]),b=nr.useCallback(c=>{v(l=>({...l,rotation:parseInt(c.target.value,10)}))},[hd,md,yd]);return a.unmount?mr.jsxs(nr.Fragment,{children:[mr.jsx("p",{children:"Unmounted the sketch"}),mr.jsx("button",{onClick:j,children:"Remount"})]}):mr.jsxs(nr.Fragment,{children:[mr.jsx(Ly,{sketch:a.sketch,rotation:a.rotation}),mr.jsx("input",{type:"range",defaultValue:a.rotation,min:"0",max:"360",step:"1",onChange:b}),mr.jsx("button",{onClick:t,children:"Change Sketch"}),mr.jsx("button",{onClick:j,children:"Unmount"})]})}const Ay=document.getElementById("app"),Dy=Tp(Ay);Dy.render(mr.jsx(Ry,{})); diff --git a/assets/index-762f60b9.js b/assets/index-762f60b9.js new file mode 100644 index 0000000..5686237 --- /dev/null +++ b/assets/index-762f60b9.js @@ -0,0 +1,1030 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))t(w);new MutationObserver(w=>{for(const j of w)if(j.type==="childList")for(const c of j.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function _(w){const j={};return w.integrity&&(j.integrity=w.integrity),w.referrerPolicy&&(j.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?j.credentials="include":w.crossOrigin==="anonymous"?j.credentials="omit":j.credentials="same-origin",j}function t(w){if(w.ep)return;w.ep=!0;const j=_(w);fetch(w.href,j)}})();var Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var md={exports:{}},Fi={},yd={exports:{}},dt={};/** + * @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 Es=Symbol.for("react.element"),ep=Symbol.for("react.portal"),tp=Symbol.for("react.fragment"),rp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),op=Symbol.for("react.provider"),sp=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),lp=Symbol.for("react.memo"),up=Symbol.for("react.lazy"),rc=Symbol.iterator;function cp(r){return r===null||typeof r!="object"?null:(r=rc&&r[rc]||r["@@iterator"],typeof r=="function"?r:null)}var gd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vd=Object.assign,bd={};function Co(r,n,_){this.props=r,this.context=n,this.refs=bd,this.updater=_||gd}Co.prototype.isReactComponent={};Co.prototype.setState=function(r,n){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,n,"setState")};Co.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function jd(){}jd.prototype=Co.prototype;function El(r,n,_){this.props=r,this.context=n,this.refs=bd,this.updater=_||gd}var kl=El.prototype=new jd;kl.constructor=El;vd(kl,Co.prototype);kl.isPureReactComponent=!0;var nc=Array.isArray,_d=Object.prototype.hasOwnProperty,Tl={current:null},wd={key:!0,ref:!0,__self:!0,__source:!0};function xd(r,n,_){var t,w={},j=null,c=null;if(n!=null)for(t in n.ref!==void 0&&(c=n.ref),n.key!==void 0&&(j=""+n.key),n)_d.call(n,t)&&!wd.hasOwnProperty(t)&&(w[t]=n[t]);var d=arguments.length-2;if(d===1)w.children=_;else if(1>>1,oe=B[Q];if(0>>1;Qw(q,X))Yw(te,q)?(B[Q]=te,B[Y]=X,Q=Y):(B[Q]=q,B[z]=X,Q=z);else if(Yw(te,X))B[Q]=te,B[Y]=X,Q=Y;else break e}}return V}function w(B,V){var X=B.sortIndex-V.sortIndex;return X!==0?X:B.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var j=performance;r.unstable_now=function(){return j.now()}}else{var c=Date,d=c.now();r.unstable_now=function(){return c.now()-d}}var s=[],g=[],b=1,m=null,o=3,l=!1,u=!1,a=!1,p=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function i(B){for(var V=_(g);V!==null;){if(V.callback===null)t(g);else if(V.startTime<=B)t(g),V.sortIndex=V.expirationTime,n(s,V);else break;V=_(g)}}function v(B){if(a=!1,i(B),!u)if(_(s)!==null)u=!0,G(S);else{var V=_(g);V!==null&&R(v,V.startTime-B)}}function S(B,V){u=!1,a&&(a=!1,f(E),E=-1),l=!0;var X=o;try{for(i(V),m=_(s);m!==null&&(!(m.expirationTime>V)||B&&!P());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,o=m.priorityLevel;var oe=Q(m.expirationTime<=V);V=r.unstable_now(),typeof oe=="function"?m.callback=oe:m===_(s)&&t(s),i(V)}else t(s);m=_(s)}if(m!==null)var I=!0;else{var z=_(g);z!==null&&R(v,z.startTime-V),I=!1}return I}finally{m=null,o=X,l=!1}}var M=!1,k=null,E=-1,L=5,O=-1;function P(){return!(r.unstable_now()-OB||125Q?(B.sortIndex=X,n(g,B),_(s)===null&&B===_(g)&&(a?(f(E),E=-1):a=!0,R(v,X-Q))):(B.sortIndex=oe,n(s,B),u||l||(u=!0,G(S))),B},r.unstable_shouldYield=P,r.unstable_wrapCallback=function(B){var V=o;return function(){var X=o;o=V;try{return B.apply(this,arguments)}finally{o=X}}}})(Td);kd.exports=Td;var _p=kd.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 Md=pr,Mr=_p;function Be(r){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+r,_=1;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),La=Object.prototype.hasOwnProperty,wp=/^[: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]*$/,sc={},ic={};function xp(r){return La.call(ic,r)?!0:La.call(sc,r)?!1:wp.test(r)?ic[r]=!0:(sc[r]=!0,!1)}function Sp(r,n,_,t){if(_!==null&&_.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:_!==null?!_.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function Ep(r,n,_,t){if(n===null||typeof n>"u"||Sp(r,n,_,t))return!0;if(t)return!1;if(_!==null)switch(_.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 gr(r,n,_,t,w,j,c){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=w,this.mustUseProperty=_,this.propertyName=r,this.type=n,this.sanitizeURL=j,this.removeEmptyString=c}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){or[r]=new gr(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var n=r[0];or[n]=new gr(n,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){or[r]=new gr(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){or[r]=new gr(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){or[r]=new gr(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){or[r]=new gr(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){or[r]=new gr(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){or[r]=new gr(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){or[r]=new gr(r,5,!1,r.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function Ol(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!1,!1)});or.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!0,!0)});function Pl(r,n,_,t){var w=or.hasOwnProperty(n)?or[n]:null;(w!==null?w.type!==0:t||!(2d||w[c]!==j[d]){var s=` +`+w[c].replace(" at new "," at ");return r.displayName&&s.includes("")&&(s=s.replace("",r.displayName)),s}while(1<=c&&0<=d);break}}}finally{la=!1,Error.prepareStackTrace=_}return(r=r?r.displayName||r.name:"")?Zo(r):""}function kp(r){switch(r.tag){case 5:return Zo(r.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return r=ua(r.type,!1),r;case 11:return r=ua(r.type.render,!1),r;case 1:return r=ua(r.type,!0),r;default:return""}}function Ia(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case oo:return"Fragment";case no:return"Portal";case Aa:return"Profiler";case Ll:return"StrictMode";case Ra:return"Suspense";case Da:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Pd:return(r.displayName||"Context")+".Consumer";case Od:return(r._context.displayName||"Context")+".Provider";case Al:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Rl:return n=r.displayName||null,n!==null?n:Ia(r.type)||"Memo";case bn:n=r._payload,r=r._init;try{return Ia(r(n))}catch{}}return null}function Tp(r){var n=r.type;switch(r.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 r=n.render,r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ia(n);case 8:return n===Ll?"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 An(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ad(r){var n=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Mp(r){var n=Ad(r)?"checked":"value",_=Object.getOwnPropertyDescriptor(r.constructor.prototype,n),t=""+r[n];if(!r.hasOwnProperty(n)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var w=_.get,j=_.set;return Object.defineProperty(r,n,{configurable:!0,get:function(){return w.call(this)},set:function(c){t=""+c,j.call(this,c)}}),Object.defineProperty(r,n,{enumerable:_.enumerable}),{getValue:function(){return t},setValue:function(c){t=""+c},stopTracking:function(){r._valueTracker=null,delete r[n]}}}}function Us(r){r._valueTracker||(r._valueTracker=Mp(r))}function Rd(r){if(!r)return!1;var n=r._valueTracker;if(!n)return!0;var _=n.getValue(),t="";return r&&(t=Ad(r)?r.checked?"true":"false":r.value),r=t,r!==_?(n.setValue(r),!0):!1}function hi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fa(r,n){var _=n.checked;return Rt({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??r._wrapperState.initialChecked})}function lc(r,n){var _=n.defaultValue==null?"":n.defaultValue,t=n.checked!=null?n.checked:n.defaultChecked;_=An(n.value!=null?n.value:_),r._wrapperState={initialChecked:t,initialValue:_,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Dd(r,n){n=n.checked,n!=null&&Pl(r,"checked",n,!1)}function Na(r,n){Dd(r,n);var _=An(n.value),t=n.type;if(_!=null)t==="number"?(_===0&&r.value===""||r.value!=_)&&(r.value=""+_):r.value!==""+_&&(r.value=""+_);else if(t==="submit"||t==="reset"){r.removeAttribute("value");return}n.hasOwnProperty("value")?Ua(r,n.type,_):n.hasOwnProperty("defaultValue")&&Ua(r,n.type,An(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(r.defaultChecked=!!n.defaultChecked)}function uc(r,n,_){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var t=n.type;if(!(t!=="submit"&&t!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+r._wrapperState.initialValue,_||n===r.value||(r.value=n),r.defaultValue=n}_=r.name,_!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,_!==""&&(r.name=_)}function Ua(r,n,_){(n!=="number"||hi(r.ownerDocument)!==r)&&(_==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+_&&(r.defaultValue=""+_))}var Qo=Array.isArray;function yo(r,n,_,t){if(r=r.options,n){n={};for(var w=0;w<_.length;w++)n["$"+_[w]]=!0;for(_=0;_"+n.valueOf().toString()+"",n=Bs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;n.firstChild;)r.appendChild(n.firstChild)}});function us(r,n){if(n){var _=r.firstChild;if(_&&_===r.lastChild&&_.nodeType===3){_.nodeValue=n;return}}r.textContent=n}var Jo={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},Cp=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(r){Cp.forEach(function(n){n=n+r.charAt(0).toUpperCase()+r.substring(1),Jo[n]=Jo[r]})});function Ud(r,n,_){return n==null||typeof n=="boolean"||n===""?"":_||typeof n!="number"||n===0||Jo.hasOwnProperty(r)&&Jo[r]?(""+n).trim():n+"px"}function Bd(r,n){r=r.style;for(var _ in n)if(n.hasOwnProperty(_)){var t=_.indexOf("--")===0,w=Ud(_,n[_],t);_==="float"&&(_="cssFloat"),t?r.setProperty(_,w):r[_]=w}}var Op=Rt({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 za(r,n){if(n){if(Op[r]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Be(137,r));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Be(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Be(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Be(62))}}function Va(r,n){if(r.indexOf("-")===-1)return typeof n.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ha=null;function Dl(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Wa=null,go=null,vo=null;function fc(r){if(r=Ms(r)){if(typeof Wa!="function")throw Error(Be(280));var n=r.stateNode;n&&(n=zi(n),Wa(r.stateNode,r.type,n))}}function Gd(r){go?vo?vo.push(r):vo=[r]:go=r}function zd(){if(go){var r=go,n=vo;if(vo=go=null,fc(r),n)for(r=0;r>>=0,r===0?32:31-(Gp(r)/zp|0)|0}var Gs=64,zs=4194304;function $o(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function gi(r,n){var _=r.pendingLanes;if(_===0)return 0;var t=0,w=r.suspendedLanes,j=r.pingedLanes,c=_&268435455;if(c!==0){var d=c&~w;d!==0?t=$o(d):(j&=c,j!==0&&(t=$o(j)))}else c=_&~w,c!==0?t=$o(c):j!==0&&(t=$o(j));if(t===0)return 0;if(n!==0&&n!==t&&!(n&w)&&(w=t&-t,j=n&-n,w>=j||w===16&&(j&4194240)!==0))return n;if(t&4&&(t|=_&16),n=r.entangledLanes,n!==0)for(r=r.entanglements,n&=t;0_;_++)n.push(r);return n}function ks(r,n,_){r.pendingLanes|=n,n!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,n=31-Hr(n),r[n]=_}function qp(r,n){var _=r.pendingLanes&~n;r.pendingLanes=n,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=n,r.mutableReadLanes&=n,r.entangledLanes&=n,n=r.entanglements;var t=r.eventTimes;for(r=r.expirationTimes;0<_;){var w=31-Hr(_),j=1<=ts),_c=String.fromCharCode(32),wc=!1;function uf(r,n){switch(r){case"keyup":return jm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var so=!1;function wm(r,n){switch(r){case"compositionend":return cf(n);case"keypress":return n.which!==32?null:(wc=!0,_c);case"textInput":return r=n.data,r===_c&&wc?null:r;default:return null}}function xm(r,n){if(so)return r==="compositionend"||!Vl&&uf(r,n)?(r=af(),oi=Bl=xn=null,so=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:_,offset:n-r};r=t}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=kc(_)}}function pf(r,n){return r&&n?r===n?!0:r&&r.nodeType===3?!1:n&&n.nodeType===3?pf(r,n.parentNode):"contains"in r?r.contains(n):r.compareDocumentPosition?!!(r.compareDocumentPosition(n)&16):!1:!1}function mf(){for(var r=window,n=hi();n instanceof r.HTMLIFrameElement;){try{var _=typeof n.contentWindow.location.href=="string"}catch{_=!1}if(_)r=n.contentWindow;else break;n=hi(r.document)}return n}function Hl(r){var n=r&&r.nodeName&&r.nodeName.toLowerCase();return n&&(n==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||n==="textarea"||r.contentEditable==="true")}function Lm(r){var n=mf(),_=r.focusedElem,t=r.selectionRange;if(n!==_&&_&&_.ownerDocument&&pf(_.ownerDocument.documentElement,_)){if(t!==null&&Hl(_)){if(n=t.start,r=t.end,r===void 0&&(r=n),"selectionStart"in _)_.selectionStart=n,_.selectionEnd=Math.min(r,_.value.length);else if(r=(n=_.ownerDocument||document)&&n.defaultView||window,r.getSelection){r=r.getSelection();var w=_.textContent.length,j=Math.min(t.start,w);t=t.end===void 0?j:Math.min(t.end,w),!r.extend&&j>t&&(w=t,t=j,j=w),w=Tc(_,j);var c=Tc(_,t);w&&c&&(r.rangeCount!==1||r.anchorNode!==w.node||r.anchorOffset!==w.offset||r.focusNode!==c.node||r.focusOffset!==c.offset)&&(n=n.createRange(),n.setStart(w.node,w.offset),r.removeAllRanges(),j>t?(r.addRange(n),r.extend(c.node,c.offset)):(n.setEnd(c.node,c.offset),r.addRange(n)))}}for(n=[],r=_;r=r.parentNode;)r.nodeType===1&&n.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_=document.documentMode,io=null,$a=null,ns=null,Ka=!1;function Mc(r,n,_){var t=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;Ka||io==null||io!==hi(t)||(t=io,"selectionStart"in t&&Hl(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),ns&&ms(ns,t)||(ns=t,t=ji($a,"onSelect"),0uo||(r.current=ol[uo],ol[uo]=null,uo--)}function St(r,n){uo++,ol[uo]=r.current,r.current=n}var Rn={},fr=In(Rn),jr=In(!1),Wn=Rn;function xo(r,n){var _=r.type.contextTypes;if(!_)return Rn;var t=r.stateNode;if(t&&t.__reactInternalMemoizedUnmaskedChildContext===n)return t.__reactInternalMemoizedMaskedChildContext;var w={},j;for(j in _)w[j]=n[j];return t&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=n,r.__reactInternalMemoizedMaskedChildContext=w),w}function _r(r){return r=r.childContextTypes,r!=null}function wi(){Ct(jr),Ct(fr)}function Dc(r,n,_){if(fr.current!==Rn)throw Error(Be(168));St(fr,n),St(jr,_)}function Sf(r,n,_){var t=r.stateNode;if(n=n.childContextTypes,typeof t.getChildContext!="function")return _;t=t.getChildContext();for(var w in t)if(!(w in n))throw Error(Be(108,Tp(r)||"Unknown",w));return Rt({},_,t)}function xi(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Rn,Wn=fr.current,St(fr,r),St(jr,jr.current),!0}function Ic(r,n,_){var t=r.stateNode;if(!t)throw Error(Be(169));_?(r=Sf(r,n,Wn),t.__reactInternalMemoizedMergedChildContext=r,Ct(jr),Ct(fr),St(fr,r)):Ct(jr),St(jr,_)}var sn=null,Vi=!1,xa=!1;function Ef(r){sn===null?sn=[r]:sn.push(r)}function Hm(r){Vi=!0,Ef(r)}function Fn(){if(!xa&&sn!==null){xa=!0;var r=0,n=vt;try{var _=sn;for(vt=1;r<_.length;r++){var t=_[r];do t=t(!0);while(t!==null)}sn=null,Vi=!1}catch(w){throw sn!==null&&(sn=sn.slice(r+1)),Zd(Il,Fn),w}finally{vt=n,xa=!1}}return null}var co=[],fo=0,Si=null,Ei=0,Pr=[],Lr=0,qn=null,an=1,ln="";function Nn(r,n){co[fo++]=Ei,co[fo++]=Si,Si=r,Ei=n}function kf(r,n,_){Pr[Lr++]=an,Pr[Lr++]=ln,Pr[Lr++]=qn,qn=r;var t=an;r=ln;var w=32-Hr(t)-1;t&=~(1<>=c,w-=c,an=1<<32-Hr(n)+w|_<E?(L=k,k=null):L=k.sibling;var O=o(f,k,i[E],v);if(O===null){k===null&&(k=L);break}r&&k&&O.alternate===null&&n(f,k),h=j(O,h,E),M===null?S=O:M.sibling=O,M=O,k=L}if(E===i.length)return _(f,k),Ot&&Nn(f,E),S;if(k===null){for(;EE?(L=k,k=null):L=k.sibling;var P=o(f,k,O.value,v);if(P===null){k===null&&(k=L);break}r&&k&&P.alternate===null&&n(f,k),h=j(P,h,E),M===null?S=P:M.sibling=P,M=P,k=L}if(O.done)return _(f,k),Ot&&Nn(f,E),S;if(k===null){for(;!O.done;E++,O=i.next())O=m(f,O.value,v),O!==null&&(h=j(O,h,E),M===null?S=O:M.sibling=O,M=O);return Ot&&Nn(f,E),S}for(k=t(f,k);!O.done;E++,O=i.next())O=l(k,f,E,O.value,v),O!==null&&(r&&O.alternate!==null&&k.delete(O.key===null?E:O.key),h=j(O,h,E),M===null?S=O:M.sibling=O,M=O);return r&&k.forEach(function(A){return n(f,A)}),Ot&&Nn(f,E),S}function p(f,h,i,v){if(typeof i=="object"&&i!==null&&i.type===oo&&i.key===null&&(i=i.props.children),typeof i=="object"&&i!==null){switch(i.$$typeof){case Ns:e:{for(var S=i.key,M=h;M!==null;){if(M.key===S){if(S=i.type,S===oo){if(M.tag===7){_(f,M.sibling),h=w(M,i.props.children),h.return=f,f=h;break e}}else if(M.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&Vc(S)===M.type){_(f,M.sibling),h=w(M,i.props),h.ref=qo(f,M,i),h.return=f,f=h;break e}_(f,M);break}else n(f,M);M=M.sibling}i.type===oo?(h=Hn(i.props.children,f.mode,v,i.key),h.return=f,f=h):(v=fi(i.type,i.key,i.props,null,f.mode,v),v.ref=qo(f,h,i),v.return=f,f=v)}return c(f);case no:e:{for(M=i.key;h!==null;){if(h.key===M)if(h.tag===4&&h.stateNode.containerInfo===i.containerInfo&&h.stateNode.implementation===i.implementation){_(f,h.sibling),h=w(h,i.children||[]),h.return=f,f=h;break e}else{_(f,h);break}else n(f,h);h=h.sibling}h=Pa(i,f.mode,v),h.return=f,f=h}return c(f);case bn:return M=i._init,p(f,h,M(i._payload),v)}if(Qo(i))return u(f,h,i,v);if(Go(i))return a(f,h,i,v);Zs(f,i)}return typeof i=="string"&&i!==""||typeof i=="number"?(i=""+i,h!==null&&h.tag===6?(_(f,h.sibling),h=w(h,i),h.return=f,f=h):(_(f,h),h=Oa(i,f.mode,v),h.return=f,f=h),c(f)):_(f,h)}return p}var Eo=Af(!0),Rf=Af(!1),Cs={},tn=In(Cs),bs=In(Cs),js=In(Cs);function zn(r){if(r===Cs)throw Error(Be(174));return r}function Jl(r,n){switch(St(js,n),St(bs,r),St(tn,Cs),r=n.nodeType,r){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ga(null,"");break;default:r=r===8?n.parentNode:n,n=r.namespaceURI||null,r=r.tagName,n=Ga(n,r)}Ct(tn),St(tn,n)}function ko(){Ct(tn),Ct(bs),Ct(js)}function Df(r){zn(js.current);var n=zn(tn.current),_=Ga(n,r.type);n!==_&&(St(bs,r),St(tn,_))}function eu(r){bs.current===r&&(Ct(tn),Ct(bs))}var Lt=In(0);function Ci(r){for(var n=r;n!==null;){if(n.tag===13){var _=n.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break;for(;n.sibling===null;){if(n.return===null||n.return===r)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Sa=[];function tu(){for(var r=0;r_?_:4,r(!0);var t=Ea.transition;Ea.transition={};try{r(!1),n()}finally{vt=_,Ea.transition=t}}function $f(){return Ir().memoizedState}function Ym(r,n,_){var t=Pn(r);if(_={lane:t,action:_,hasEagerState:!1,eagerState:null,next:null},Kf(r))Jf(n,_);else if(_=Cf(r,n,_,t),_!==null){var w=mr();Wr(_,r,t,w),eh(_,n,t)}}function Zm(r,n,_){var t=Pn(r),w={lane:t,action:_,hasEagerState:!1,eagerState:null,next:null};if(Kf(r))Jf(n,w);else{var j=r.alternate;if(r.lanes===0&&(j===null||j.lanes===0)&&(j=n.lastRenderedReducer,j!==null))try{var c=n.lastRenderedState,d=j(c,_);if(w.hasEagerState=!0,w.eagerState=d,qr(d,c)){var s=n.interleaved;s===null?(w.next=w,$l(n)):(w.next=s.next,s.next=w),n.interleaved=w;return}}catch{}finally{}_=Cf(r,n,w,t),_!==null&&(w=mr(),Wr(_,r,t,w),eh(_,n,t))}}function Kf(r){var n=r.alternate;return r===At||n!==null&&n===At}function Jf(r,n){os=Oi=!0;var _=r.pending;_===null?n.next=n:(n.next=_.next,_.next=n),r.pending=n}function eh(r,n,_){if(_&4194240){var t=n.lanes;t&=r.pendingLanes,_|=t,n.lanes=_,Fl(r,_)}}var Pi={readContext:Dr,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},Qm={readContext:Dr,useCallback:function(r,n){return Kr().memoizedState=[r,n===void 0?null:n],r},useContext:Dr,useEffect:Wc,useImperativeHandle:function(r,n,_){return _=_!=null?_.concat([r]):null,li(4194308,4,qf.bind(null,n,r),_)},useLayoutEffect:function(r,n){return li(4194308,4,r,n)},useInsertionEffect:function(r,n){return li(4,2,r,n)},useMemo:function(r,n){var _=Kr();return n=n===void 0?null:n,r=r(),_.memoizedState=[r,n],r},useReducer:function(r,n,_){var t=Kr();return n=_!==void 0?_(n):n,t.memoizedState=t.baseState=n,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:n},t.queue=r,r=r.dispatch=Ym.bind(null,At,r),[t.memoizedState,r]},useRef:function(r){var n=Kr();return r={current:r},n.memoizedState=r},useState:Hc,useDebugValue:iu,useDeferredValue:function(r){return Kr().memoizedState=r},useTransition:function(){var r=Hc(!1),n=r[0];return r=Xm.bind(null,r[1]),Kr().memoizedState=r,[n,r]},useMutableSource:function(){},useSyncExternalStore:function(r,n,_){var t=At,w=Kr();if(Ot){if(_===void 0)throw Error(Be(407));_=_()}else{if(_=n(),Kt===null)throw Error(Be(349));Xn&30||Nf(t,n,_)}w.memoizedState=_;var j={value:_,getSnapshot:n};return w.queue=j,Wc(Bf.bind(null,t,j,r),[r]),t.flags|=2048,xs(9,Uf.bind(null,t,j,_,n),void 0,null),_},useId:function(){var r=Kr(),n=Kt.identifierPrefix;if(Ot){var _=ln,t=an;_=(t&~(1<<32-Hr(t)-1)).toString(32)+_,n=":"+n+"R"+_,_=_s++,0<_&&(n+="H"+_.toString(32)),n+=":"}else _=qm++,n=":"+n+"r"+_.toString(32)+":";return r.memoizedState=n},unstable_isNewReconciler:!1},$m={readContext:Dr,useCallback:Yf,useContext:Dr,useEffect:su,useImperativeHandle:Xf,useInsertionEffect:Hf,useLayoutEffect:Wf,useMemo:Zf,useReducer:ka,useRef:Vf,useState:function(){return ka(ws)},useDebugValue:iu,useDeferredValue:function(r){var n=Ir();return Qf(n,Wt.memoizedState,r)},useTransition:function(){var r=ka(ws)[0],n=Ir().memoizedState;return[r,n]},useMutableSource:If,useSyncExternalStore:Ff,useId:$f,unstable_isNewReconciler:!1},Km={readContext:Dr,useCallback:Yf,useContext:Dr,useEffect:su,useImperativeHandle:Xf,useInsertionEffect:Hf,useLayoutEffect:Wf,useMemo:Zf,useReducer:Ta,useRef:Vf,useState:function(){return Ta(ws)},useDebugValue:iu,useDeferredValue:function(r){var n=Ir();return Wt===null?n.memoizedState=r:Qf(n,Wt.memoizedState,r)},useTransition:function(){var r=Ta(ws)[0],n=Ir().memoizedState;return[r,n]},useMutableSource:If,useSyncExternalStore:Ff,useId:$f,unstable_isNewReconciler:!1};function To(r,n){try{var _="",t=n;do _+=kp(t),t=t.return;while(t);var w=_}catch(j){w=` +Error generating stack: `+j.message+` +`+j.stack}return{value:r,source:n,stack:w,digest:null}}function Ma(r,n,_){return{value:r,source:null,stack:_??null,digest:n??null}}function cl(r,n){try{console.error(n.value)}catch(_){setTimeout(function(){throw _})}}var Jm=typeof WeakMap=="function"?WeakMap:Map;function th(r,n,_){_=un(-1,_),_.tag=3,_.payload={element:null};var t=n.value;return _.callback=function(){Ai||(Ai=!0,jl=t),cl(r,n)},_}function rh(r,n,_){_=un(-1,_),_.tag=3;var t=r.type.getDerivedStateFromError;if(typeof t=="function"){var w=n.value;_.payload=function(){return t(w)},_.callback=function(){cl(r,n)}}var j=r.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(_.callback=function(){cl(r,n),typeof t!="function"&&(On===null?On=new Set([this]):On.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:""})}),_}function qc(r,n,_){var t=r.pingCache;if(t===null){t=r.pingCache=new Jm;var w=new Set;t.set(n,w)}else w=t.get(n),w===void 0&&(w=new Set,t.set(n,w));w.has(_)||(w.add(_),r=hy.bind(null,r,n,_),n.then(r,r))}function Xc(r){do{var n;if((n=r.tag===13)&&(n=r.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return r;r=r.return}while(r!==null);return null}function Yc(r,n,_,t,w){return r.mode&1?(r.flags|=65536,r.lanes=w,r):(r===n?r.flags|=65536:(r.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(n=un(-1,1),n.tag=2,Cn(_,n,1))),_.lanes|=1),r)}var ey=pn.ReactCurrentOwner,br=!1;function hr(r,n,_,t){n.child=r===null?Rf(n,null,_,t):Eo(n,r.child,_,t)}function Zc(r,n,_,t,w){_=_.render;var j=n.ref;return jo(n,w),t=nu(r,n,_,t,j,w),_=ou(),r!==null&&!br?(n.updateQueue=r.updateQueue,n.flags&=-2053,r.lanes&=~w,hn(r,n,w)):(Ot&&_&&Wl(n),n.flags|=1,hr(r,n,t,w),n.child)}function Qc(r,n,_,t,w){if(r===null){var j=_.type;return typeof j=="function"&&!pu(j)&&j.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(n.tag=15,n.type=j,nh(r,n,j,t,w)):(r=fi(_.type,null,t,n,n.mode,w),r.ref=n.ref,r.return=n,n.child=r)}if(j=r.child,!(r.lanes&w)){var c=j.memoizedProps;if(_=_.compare,_=_!==null?_:ms,_(c,t)&&r.ref===n.ref)return hn(r,n,w)}return n.flags|=1,r=Ln(j,t),r.ref=n.ref,r.return=n,n.child=r}function nh(r,n,_,t,w){if(r!==null){var j=r.memoizedProps;if(ms(j,t)&&r.ref===n.ref)if(br=!1,n.pendingProps=t=j,(r.lanes&w)!==0)r.flags&131072&&(br=!0);else return n.lanes=r.lanes,hn(r,n,w)}return dl(r,n,_,t,w)}function oh(r,n,_){var t=n.pendingProps,w=t.children,j=r!==null?r.memoizedState:null;if(t.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(mo,Er),Er|=_;else{if(!(_&1073741824))return r=j!==null?j.baseLanes|_:_,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:r,cachePool:null,transitions:null},n.updateQueue=null,St(mo,Er),Er|=r,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},t=j!==null?j.baseLanes:_,St(mo,Er),Er|=t}else j!==null?(t=j.baseLanes|_,n.memoizedState=null):t=_,St(mo,Er),Er|=t;return hr(r,n,w,_),n.child}function sh(r,n){var _=n.ref;(r===null&&_!==null||r!==null&&r.ref!==_)&&(n.flags|=512,n.flags|=2097152)}function dl(r,n,_,t,w){var j=_r(_)?Wn:fr.current;return j=xo(n,j),jo(n,w),_=nu(r,n,_,t,j,w),t=ou(),r!==null&&!br?(n.updateQueue=r.updateQueue,n.flags&=-2053,r.lanes&=~w,hn(r,n,w)):(Ot&&t&&Wl(n),n.flags|=1,hr(r,n,_,w),n.child)}function $c(r,n,_,t,w){if(_r(_)){var j=!0;xi(n)}else j=!1;if(jo(n,w),n.stateNode===null)ui(r,n),Lf(n,_,t),ul(n,_,t,w),t=!0;else if(r===null){var c=n.stateNode,d=n.memoizedProps;c.props=d;var s=c.context,g=_.contextType;typeof g=="object"&&g!==null?g=Dr(g):(g=_r(_)?Wn:fr.current,g=xo(n,g));var b=_.getDerivedStateFromProps,m=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function";m||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==t||s!==g)&&zc(n,c,t,g),jn=!1;var o=n.memoizedState;c.state=o,Mi(n,t,c,w),s=n.memoizedState,d!==t||o!==s||jr.current||jn?(typeof b=="function"&&(ll(n,_,b,t),s=n.memoizedState),(d=jn||Gc(n,_,d,t,o,s,g))?(m||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=t,n.memoizedState=s),c.props=t,c.state=s,c.context=g,t=d):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),t=!1)}else{c=n.stateNode,Of(r,n),d=n.memoizedProps,g=n.type===n.elementType?d:Gr(n.type,d),c.props=g,m=n.pendingProps,o=c.context,s=_.contextType,typeof s=="object"&&s!==null?s=Dr(s):(s=_r(_)?Wn:fr.current,s=xo(n,s));var l=_.getDerivedStateFromProps;(b=typeof l=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==m||o!==s)&&zc(n,c,t,s),jn=!1,o=n.memoizedState,c.state=o,Mi(n,t,c,w);var u=n.memoizedState;d!==m||o!==u||jr.current||jn?(typeof l=="function"&&(ll(n,_,l,t),u=n.memoizedState),(g=jn||Gc(n,_,g,t,o,u,s)||!1)?(b||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(t,u,s),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(t,u,s)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===r.memoizedProps&&o===r.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===r.memoizedProps&&o===r.memoizedState||(n.flags|=1024),n.memoizedProps=t,n.memoizedState=u),c.props=t,c.state=u,c.context=s,t=g):(typeof c.componentDidUpdate!="function"||d===r.memoizedProps&&o===r.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===r.memoizedProps&&o===r.memoizedState||(n.flags|=1024),t=!1)}return fl(r,n,_,t,j,w)}function fl(r,n,_,t,w,j){sh(r,n);var c=(n.flags&128)!==0;if(!t&&!c)return w&&Ic(n,_,!1),hn(r,n,j);t=n.stateNode,ey.current=n;var d=c&&typeof _.getDerivedStateFromError!="function"?null:t.render();return n.flags|=1,r!==null&&c?(n.child=Eo(n,r.child,null,j),n.child=Eo(n,null,d,j)):hr(r,n,d,j),n.memoizedState=t.state,w&&Ic(n,_,!0),n.child}function ih(r){var n=r.stateNode;n.pendingContext?Dc(r,n.pendingContext,n.pendingContext!==n.context):n.context&&Dc(r,n.context,!1),Jl(r,n.containerInfo)}function Kc(r,n,_,t,w){return So(),Xl(w),n.flags|=256,hr(r,n,_,t),n.child}var hl={dehydrated:null,treeContext:null,retryLane:0};function pl(r){return{baseLanes:r,cachePool:null,transitions:null}}function ah(r,n,_){var t=n.pendingProps,w=Lt.current,j=!1,c=(n.flags&128)!==0,d;if((d=c)||(d=r!==null&&r.memoizedState===null?!1:(w&2)!==0),d?(j=!0,n.flags&=-129):(r===null||r.memoizedState!==null)&&(w|=1),St(Lt,w&1),r===null)return il(n),r=n.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(n.mode&1?r.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(c=t.children,r=t.fallback,j?(t=n.mode,j=n.child,c={mode:"hidden",children:c},!(t&1)&&j!==null?(j.childLanes=0,j.pendingProps=c):j=Yi(c,t,0,null),r=Hn(r,t,_,null),j.return=n,r.return=n,j.sibling=r,n.child=j,n.child.memoizedState=pl(_),n.memoizedState=hl,r):au(n,c));if(w=r.memoizedState,w!==null&&(d=w.dehydrated,d!==null))return ty(r,n,c,t,d,w,_);if(j){j=t.fallback,c=n.mode,w=r.child,d=w.sibling;var s={mode:"hidden",children:t.children};return!(c&1)&&n.child!==w?(t=n.child,t.childLanes=0,t.pendingProps=s,n.deletions=null):(t=Ln(w,s),t.subtreeFlags=w.subtreeFlags&14680064),d!==null?j=Ln(d,j):(j=Hn(j,c,_,null),j.flags|=2),j.return=n,t.return=n,t.sibling=j,n.child=t,t=j,j=n.child,c=r.child.memoizedState,c=c===null?pl(_):{baseLanes:c.baseLanes|_,cachePool:null,transitions:c.transitions},j.memoizedState=c,j.childLanes=r.childLanes&~_,n.memoizedState=hl,t}return j=r.child,r=j.sibling,t=Ln(j,{mode:"visible",children:t.children}),!(n.mode&1)&&(t.lanes=_),t.return=n,t.sibling=null,r!==null&&(_=n.deletions,_===null?(n.deletions=[r],n.flags|=16):_.push(r)),n.child=t,n.memoizedState=null,t}function au(r,n){return n=Yi({mode:"visible",children:n},r.mode,0,null),n.return=r,r.child=n}function Qs(r,n,_,t){return t!==null&&Xl(t),Eo(n,r.child,null,_),r=au(n,n.pendingProps.children),r.flags|=2,n.memoizedState=null,r}function ty(r,n,_,t,w,j,c){if(_)return n.flags&256?(n.flags&=-257,t=Ma(Error(Be(422))),Qs(r,n,c,t)):n.memoizedState!==null?(n.child=r.child,n.flags|=128,null):(j=t.fallback,w=n.mode,t=Yi({mode:"visible",children:t.children},w,0,null),j=Hn(j,w,c,null),j.flags|=2,t.return=n,j.return=n,t.sibling=j,n.child=t,n.mode&1&&Eo(n,r.child,null,c),n.child.memoizedState=pl(c),n.memoizedState=hl,j);if(!(n.mode&1))return Qs(r,n,c,null);if(w.data==="$!"){if(t=w.nextSibling&&w.nextSibling.dataset,t)var d=t.dgst;return t=d,j=Error(Be(419)),t=Ma(j,t,void 0),Qs(r,n,c,t)}if(d=(c&r.childLanes)!==0,br||d){if(t=Kt,t!==null){switch(c&-c){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=w&(t.suspendedLanes|c)?0:w,w!==0&&w!==j.retryLane&&(j.retryLane=w,fn(r,w),Wr(t,r,w,-1))}return hu(),t=Ma(Error(Be(421))),Qs(r,n,c,t)}return w.data==="$?"?(n.flags|=128,n.child=r.child,n=py.bind(null,r),w._reactRetry=n,null):(r=j.treeContext,kr=Mn(w.nextSibling),Tr=n,Ot=!0,Vr=null,r!==null&&(Pr[Lr++]=an,Pr[Lr++]=ln,Pr[Lr++]=qn,an=r.id,ln=r.overflow,qn=n),n=au(n,t.children),n.flags|=4096,n)}function Jc(r,n,_){r.lanes|=n;var t=r.alternate;t!==null&&(t.lanes|=n),al(r.return,n,_)}function Ca(r,n,_,t,w){var j=r.memoizedState;j===null?r.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:t,tail:_,tailMode:w}:(j.isBackwards=n,j.rendering=null,j.renderingStartTime=0,j.last=t,j.tail=_,j.tailMode=w)}function lh(r,n,_){var t=n.pendingProps,w=t.revealOrder,j=t.tail;if(hr(r,n,t.children,_),t=Lt.current,t&2)t=t&1|2,n.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=n.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Jc(r,_,n);else if(r.tag===19)Jc(r,_,n);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t&=1}if(St(Lt,t),!(n.mode&1))n.memoizedState=null;else switch(w){case"forwards":for(_=n.child,w=null;_!==null;)r=_.alternate,r!==null&&Ci(r)===null&&(w=_),_=_.sibling;_=w,_===null?(w=n.child,n.child=null):(w=_.sibling,_.sibling=null),Ca(n,!1,w,_,j);break;case"backwards":for(_=null,w=n.child,n.child=null;w!==null;){if(r=w.alternate,r!==null&&Ci(r)===null){n.child=w;break}r=w.sibling,w.sibling=_,_=w,w=r}Ca(n,!0,_,null,j);break;case"together":Ca(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ui(r,n){!(n.mode&1)&&r!==null&&(r.alternate=null,n.alternate=null,n.flags|=2)}function hn(r,n,_){if(r!==null&&(n.dependencies=r.dependencies),Yn|=n.lanes,!(_&n.childLanes))return null;if(r!==null&&n.child!==r.child)throw Error(Be(153));if(n.child!==null){for(r=n.child,_=Ln(r,r.pendingProps),n.child=_,_.return=n;r.sibling!==null;)r=r.sibling,_=_.sibling=Ln(r,r.pendingProps),_.return=n;_.sibling=null}return n.child}function ry(r,n,_){switch(n.tag){case 3:ih(n),So();break;case 5:Df(n);break;case 1:_r(n.type)&&xi(n);break;case 4:Jl(n,n.stateNode.containerInfo);break;case 10:var t=n.type._context,w=n.memoizedProps.value;St(ki,t._currentValue),t._currentValue=w;break;case 13:if(t=n.memoizedState,t!==null)return t.dehydrated!==null?(St(Lt,Lt.current&1),n.flags|=128,null):_&n.child.childLanes?ah(r,n,_):(St(Lt,Lt.current&1),r=hn(r,n,_),r!==null?r.sibling:null);St(Lt,Lt.current&1);break;case 19:if(t=(_&n.childLanes)!==0,r.flags&128){if(t)return lh(r,n,_);n.flags|=128}if(w=n.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),St(Lt,Lt.current),t)break;return null;case 22:case 23:return n.lanes=0,oh(r,n,_)}return hn(r,n,_)}var uh,ml,ch,dh;uh=function(r,n){for(var _=n.child;_!==null;){if(_.tag===5||_.tag===6)r.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===n)break;for(;_.sibling===null;){if(_.return===null||_.return===n)return;_=_.return}_.sibling.return=_.return,_=_.sibling}};ml=function(){};ch=function(r,n,_,t){var w=r.memoizedProps;if(w!==t){r=n.stateNode,zn(tn.current);var j=null;switch(_){case"input":w=Fa(r,w),t=Fa(r,t),j=[];break;case"select":w=Rt({},w,{value:void 0}),t=Rt({},t,{value:void 0}),j=[];break;case"textarea":w=Ba(r,w),t=Ba(r,t),j=[];break;default:typeof w.onClick!="function"&&typeof t.onClick=="function"&&(r.onclick=_i)}za(_,t);var c;_=null;for(g in w)if(!t.hasOwnProperty(g)&&w.hasOwnProperty(g)&&w[g]!=null)if(g==="style"){var d=w[g];for(c in d)d.hasOwnProperty(c)&&(_||(_={}),_[c]="")}else g!=="dangerouslySetInnerHTML"&&g!=="children"&&g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(ls.hasOwnProperty(g)?j||(j=[]):(j=j||[]).push(g,null));for(g in t){var s=t[g];if(d=w!=null?w[g]:void 0,t.hasOwnProperty(g)&&s!==d&&(s!=null||d!=null))if(g==="style")if(d){for(c in d)!d.hasOwnProperty(c)||s&&s.hasOwnProperty(c)||(_||(_={}),_[c]="");for(c in s)s.hasOwnProperty(c)&&d[c]!==s[c]&&(_||(_={}),_[c]=s[c])}else _||(j||(j=[]),j.push(g,_)),_=s;else g==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,d=d?d.__html:void 0,s!=null&&d!==s&&(j=j||[]).push(g,s)):g==="children"?typeof s!="string"&&typeof s!="number"||(j=j||[]).push(g,""+s):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&(ls.hasOwnProperty(g)?(s!=null&&g==="onScroll"&&Mt("scroll",r),j||d===s||(j=[])):(j=j||[]).push(g,s))}_&&(j=j||[]).push("style",_);var g=j;(n.updateQueue=g)&&(n.flags|=4)}};dh=function(r,n,_,t){_!==t&&(n.flags|=4)};function Xo(r,n){if(!Ot)switch(r.tailMode){case"hidden":n=r.tail;for(var _=null;n!==null;)n.alternate!==null&&(_=n),n=n.sibling;_===null?r.tail=null:_.sibling=null;break;case"collapsed":_=r.tail;for(var t=null;_!==null;)_.alternate!==null&&(t=_),_=_.sibling;t===null?n||r.tail===null?r.tail=null:r.tail.sibling=null:t.sibling=null}}function cr(r){var n=r.alternate!==null&&r.alternate.child===r.child,_=0,t=0;if(n)for(var w=r.child;w!==null;)_|=w.lanes|w.childLanes,t|=w.subtreeFlags&14680064,t|=w.flags&14680064,w.return=r,w=w.sibling;else for(w=r.child;w!==null;)_|=w.lanes|w.childLanes,t|=w.subtreeFlags,t|=w.flags,w.return=r,w=w.sibling;return r.subtreeFlags|=t,r.childLanes=_,n}function ny(r,n,_){var t=n.pendingProps;switch(ql(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cr(n),null;case 1:return _r(n.type)&&wi(),cr(n),null;case 3:return t=n.stateNode,ko(),Ct(jr),Ct(fr),tu(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(r===null||r.child===null)&&(Ys(n)?n.flags|=4:r===null||r.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Vr!==null&&(xl(Vr),Vr=null))),ml(r,n),cr(n),null;case 5:eu(n);var w=zn(js.current);if(_=n.type,r!==null&&n.stateNode!=null)ch(r,n,_,t,w),r.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!t){if(n.stateNode===null)throw Error(Be(166));return cr(n),null}if(r=zn(tn.current),Ys(n)){t=n.stateNode,_=n.type;var j=n.memoizedProps;switch(t[Jr]=n,t[vs]=j,r=(n.mode&1)!==0,_){case"dialog":Mt("cancel",t),Mt("close",t);break;case"iframe":case"object":case"embed":Mt("load",t);break;case"video":case"audio":for(w=0;w<\/script>",r=r.removeChild(r.firstChild)):typeof t.is=="string"?r=c.createElement(_,{is:t.is}):(r=c.createElement(_),_==="select"&&(c=r,t.multiple?c.multiple=!0:t.size&&(c.size=t.size))):r=c.createElementNS(r,_),r[Jr]=n,r[vs]=t,uh(r,n,!1,!1),n.stateNode=r;e:{switch(c=Va(_,t),_){case"dialog":Mt("cancel",r),Mt("close",r),w=t;break;case"iframe":case"object":case"embed":Mt("load",r),w=t;break;case"video":case"audio":for(w=0;wMo&&(n.flags|=128,t=!0,Xo(j,!1),n.lanes=4194304)}else{if(!t)if(r=Ci(c),r!==null){if(n.flags|=128,t=!0,_=r.updateQueue,_!==null&&(n.updateQueue=_,n.flags|=4),Xo(j,!0),j.tail===null&&j.tailMode==="hidden"&&!c.alternate&&!Ot)return cr(n),null}else 2*Ut()-j.renderingStartTime>Mo&&_!==1073741824&&(n.flags|=128,t=!0,Xo(j,!1),n.lanes=4194304);j.isBackwards?(c.sibling=n.child,n.child=c):(_=j.last,_!==null?_.sibling=c:n.child=c,j.last=c)}return j.tail!==null?(n=j.tail,j.rendering=n,j.tail=n.sibling,j.renderingStartTime=Ut(),n.sibling=null,_=Lt.current,St(Lt,t?_&1|2:_&1),n):(cr(n),null);case 22:case 23:return fu(),t=n.memoizedState!==null,r!==null&&r.memoizedState!==null!==t&&(n.flags|=8192),t&&n.mode&1?Er&1073741824&&(cr(n),n.subtreeFlags&6&&(n.flags|=8192)):cr(n),null;case 24:return null;case 25:return null}throw Error(Be(156,n.tag))}function oy(r,n){switch(ql(n),n.tag){case 1:return _r(n.type)&&wi(),r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 3:return ko(),Ct(jr),Ct(fr),tu(),r=n.flags,r&65536&&!(r&128)?(n.flags=r&-65537|128,n):null;case 5:return eu(n),null;case 13:if(Ct(Lt),r=n.memoizedState,r!==null&&r.dehydrated!==null){if(n.alternate===null)throw Error(Be(340));So()}return r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 19:return Ct(Lt),null;case 4:return ko(),null;case 10:return Ql(n.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var $s=!1,dr=!1,sy=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function po(r,n){var _=r.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(t){Ft(r,n,t)}else _.current=null}function yl(r,n,_){try{_()}catch(t){Ft(r,n,t)}}var ed=!1;function iy(r,n){if(Ja=vi,r=mf(),Hl(r)){if("selectionStart"in r)var _={start:r.selectionStart,end:r.selectionEnd};else e:{_=(_=r.ownerDocument)&&_.defaultView||window;var t=_.getSelection&&_.getSelection();if(t&&t.rangeCount!==0){_=t.anchorNode;var w=t.anchorOffset,j=t.focusNode;t=t.focusOffset;try{_.nodeType,j.nodeType}catch{_=null;break e}var c=0,d=-1,s=-1,g=0,b=0,m=r,o=null;t:for(;;){for(var l;m!==_||w!==0&&m.nodeType!==3||(d=c+w),m!==j||t!==0&&m.nodeType!==3||(s=c+t),m.nodeType===3&&(c+=m.nodeValue.length),(l=m.firstChild)!==null;)o=m,m=l;for(;;){if(m===r)break t;if(o===_&&++g===w&&(d=c),o===j&&++b===t&&(s=c),(l=m.nextSibling)!==null)break;m=o,o=m.parentNode}m=l}_=d===-1||s===-1?null:{start:d,end:s}}else _=null}_=_||{start:0,end:0}}else _=null;for(el={focusedElem:r,selectionRange:_},vi=!1,Ke=n;Ke!==null;)if(n=Ke,r=n.child,(n.subtreeFlags&1028)!==0&&r!==null)r.return=n,Ke=r;else for(;Ke!==null;){n=Ke;try{var u=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(u!==null){var a=u.memoizedProps,p=u.memoizedState,f=n.stateNode,h=f.getSnapshotBeforeUpdate(n.elementType===n.type?a:Gr(n.type,a),p);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var i=n.stateNode.containerInfo;i.nodeType===1?i.textContent="":i.nodeType===9&&i.documentElement&&i.removeChild(i.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Be(163))}}catch(v){Ft(n,n.return,v)}if(r=n.sibling,r!==null){r.return=n.return,Ke=r;break}Ke=n.return}return u=ed,ed=!1,u}function ss(r,n,_){var t=n.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var w=t=t.next;do{if((w.tag&r)===r){var j=w.destroy;w.destroy=void 0,j!==void 0&&yl(n,_,j)}w=w.next}while(w!==t)}}function qi(r,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var _=n=n.next;do{if((_.tag&r)===r){var t=_.create;_.destroy=t()}_=_.next}while(_!==n)}}function gl(r){var n=r.ref;if(n!==null){var _=r.stateNode;switch(r.tag){case 5:r=_;break;default:r=_}typeof n=="function"?n(r):n.current=r}}function fh(r){var n=r.alternate;n!==null&&(r.alternate=null,fh(n)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(n=r.stateNode,n!==null&&(delete n[Jr],delete n[vs],delete n[nl],delete n[zm],delete n[Vm])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function hh(r){return r.tag===5||r.tag===3||r.tag===4}function td(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||hh(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function vl(r,n,_){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?_.nodeType===8?_.parentNode.insertBefore(r,n):_.insertBefore(r,n):(_.nodeType===8?(n=_.parentNode,n.insertBefore(r,_)):(n=_,n.appendChild(r)),_=_._reactRootContainer,_!=null||n.onclick!==null||(n.onclick=_i));else if(t!==4&&(r=r.child,r!==null))for(vl(r,n,_),r=r.sibling;r!==null;)vl(r,n,_),r=r.sibling}function bl(r,n,_){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?_.insertBefore(r,n):_.appendChild(r);else if(t!==4&&(r=r.child,r!==null))for(bl(r,n,_),r=r.sibling;r!==null;)bl(r,n,_),r=r.sibling}var rr=null,zr=!1;function vn(r,n,_){for(_=_.child;_!==null;)ph(r,n,_),_=_.sibling}function ph(r,n,_){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ni,_)}catch{}switch(_.tag){case 5:dr||po(_,n);case 6:var t=rr,w=zr;rr=null,vn(r,n,_),rr=t,zr=w,rr!==null&&(zr?(r=rr,_=_.stateNode,r.nodeType===8?r.parentNode.removeChild(_):r.removeChild(_)):rr.removeChild(_.stateNode));break;case 18:rr!==null&&(zr?(r=rr,_=_.stateNode,r.nodeType===8?wa(r.parentNode,_):r.nodeType===1&&wa(r,_),hs(r)):wa(rr,_.stateNode));break;case 4:t=rr,w=zr,rr=_.stateNode.containerInfo,zr=!0,vn(r,n,_),rr=t,zr=w;break;case 0:case 11:case 14:case 15:if(!dr&&(t=_.updateQueue,t!==null&&(t=t.lastEffect,t!==null))){w=t=t.next;do{var j=w,c=j.destroy;j=j.tag,c!==void 0&&(j&2||j&4)&&yl(_,n,c),w=w.next}while(w!==t)}vn(r,n,_);break;case 1:if(!dr&&(po(_,n),t=_.stateNode,typeof t.componentWillUnmount=="function"))try{t.props=_.memoizedProps,t.state=_.memoizedState,t.componentWillUnmount()}catch(d){Ft(_,n,d)}vn(r,n,_);break;case 21:vn(r,n,_);break;case 22:_.mode&1?(dr=(t=dr)||_.memoizedState!==null,vn(r,n,_),dr=t):vn(r,n,_);break;default:vn(r,n,_)}}function rd(r){var n=r.updateQueue;if(n!==null){r.updateQueue=null;var _=r.stateNode;_===null&&(_=r.stateNode=new sy),n.forEach(function(t){var w=my.bind(null,r,t);_.has(t)||(_.add(t),t.then(w,w))})}}function Br(r,n){var _=n.deletions;if(_!==null)for(var t=0;t<_.length;t++){var w=_[t];try{var j=r,c=n,d=c;e:for(;d!==null;){switch(d.tag){case 5:rr=d.stateNode,zr=!1;break e;case 3:rr=d.stateNode.containerInfo,zr=!0;break e;case 4:rr=d.stateNode.containerInfo,zr=!0;break e}d=d.return}if(rr===null)throw Error(Be(160));ph(j,c,w),rr=null,zr=!1;var s=w.alternate;s!==null&&(s.return=null),w.return=null}catch(g){Ft(w,n,g)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)mh(n,r),n=n.sibling}function mh(r,n){var _=r.alternate,t=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Br(n,r),$r(r),t&4){try{ss(3,r,r.return),qi(3,r)}catch(a){Ft(r,r.return,a)}try{ss(5,r,r.return)}catch(a){Ft(r,r.return,a)}}break;case 1:Br(n,r),$r(r),t&512&&_!==null&&po(_,_.return);break;case 5:if(Br(n,r),$r(r),t&512&&_!==null&&po(_,_.return),r.flags&32){var w=r.stateNode;try{us(w,"")}catch(a){Ft(r,r.return,a)}}if(t&4&&(w=r.stateNode,w!=null)){var j=r.memoizedProps,c=_!==null?_.memoizedProps:j,d=r.type,s=r.updateQueue;if(r.updateQueue=null,s!==null)try{d==="input"&&j.type==="radio"&&j.name!=null&&Dd(w,j),Va(d,c);var g=Va(d,j);for(c=0;cw&&(w=c),t&=~j}if(t=w,t=Ut()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*ly(t/1960))-t,10r?16:r,Sn===null)var t=!1;else{if(r=Sn,Sn=null,Ri=0,mt&6)throw Error(Be(331));var w=mt;for(mt|=4,Ke=r.current;Ke!==null;){var j=Ke,c=j.child;if(Ke.flags&16){var d=j.deletions;if(d!==null){for(var s=0;sUt()-cu?Vn(r,0):uu|=_),wr(r,n)}function wh(r,n){n===0&&(r.mode&1?(n=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):n=1);var _=mr();r=fn(r,n),r!==null&&(ks(r,n,_),wr(r,_))}function py(r){var n=r.memoizedState,_=0;n!==null&&(_=n.retryLane),wh(r,_)}function my(r,n){var _=0;switch(r.tag){case 13:var t=r.stateNode,w=r.memoizedState;w!==null&&(_=w.retryLane);break;case 19:t=r.stateNode;break;default:throw Error(Be(314))}t!==null&&t.delete(n),wh(r,_)}var xh;xh=function(r,n,_){if(r!==null)if(r.memoizedProps!==n.pendingProps||jr.current)br=!0;else{if(!(r.lanes&_)&&!(n.flags&128))return br=!1,ry(r,n,_);br=!!(r.flags&131072)}else br=!1,Ot&&n.flags&1048576&&kf(n,Ei,n.index);switch(n.lanes=0,n.tag){case 2:var t=n.type;ui(r,n),r=n.pendingProps;var w=xo(n,fr.current);jo(n,_),w=nu(null,n,t,r,w,_);var j=ou();return n.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,_r(t)?(j=!0,xi(n)):j=!1,n.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Kl(n),w.updater=Hi,n.stateNode=w,w._reactInternals=n,ul(n,t,r,_),n=fl(null,n,t,!0,j,_)):(n.tag=0,Ot&&j&&Wl(n),hr(null,n,w,_),n=n.child),n;case 16:t=n.elementType;e:{switch(ui(r,n),r=n.pendingProps,w=t._init,t=w(t._payload),n.type=t,w=n.tag=gy(t),r=Gr(t,r),w){case 0:n=dl(null,n,t,r,_);break e;case 1:n=$c(null,n,t,r,_);break e;case 11:n=Zc(null,n,t,r,_);break e;case 14:n=Qc(null,n,t,Gr(t.type,r),_);break e}throw Error(Be(306,t,""))}return n;case 0:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),dl(r,n,t,w,_);case 1:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),$c(r,n,t,w,_);case 3:e:{if(ih(n),r===null)throw Error(Be(387));t=n.pendingProps,j=n.memoizedState,w=j.element,Of(r,n),Mi(n,t,null,_);var c=n.memoizedState;if(t=c.element,j.isDehydrated)if(j={element:t,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},n.updateQueue.baseState=j,n.memoizedState=j,n.flags&256){w=To(Error(Be(423)),n),n=Kc(r,n,t,_,w);break e}else if(t!==w){w=To(Error(Be(424)),n),n=Kc(r,n,t,_,w);break e}else for(kr=Mn(n.stateNode.containerInfo.firstChild),Tr=n,Ot=!0,Vr=null,_=Rf(n,null,t,_),n.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(So(),t===w){n=hn(r,n,_);break e}hr(r,n,t,_)}n=n.child}return n;case 5:return Df(n),r===null&&il(n),t=n.type,w=n.pendingProps,j=r!==null?r.memoizedProps:null,c=w.children,tl(t,w)?c=null:j!==null&&tl(t,j)&&(n.flags|=32),sh(r,n),hr(r,n,c,_),n.child;case 6:return r===null&&il(n),null;case 13:return ah(r,n,_);case 4:return Jl(n,n.stateNode.containerInfo),t=n.pendingProps,r===null?n.child=Eo(n,null,t,_):hr(r,n,t,_),n.child;case 11:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),Zc(r,n,t,w,_);case 7:return hr(r,n,n.pendingProps,_),n.child;case 8:return hr(r,n,n.pendingProps.children,_),n.child;case 12:return hr(r,n,n.pendingProps.children,_),n.child;case 10:e:{if(t=n.type._context,w=n.pendingProps,j=n.memoizedProps,c=w.value,St(ki,t._currentValue),t._currentValue=c,j!==null)if(qr(j.value,c)){if(j.children===w.children&&!jr.current){n=hn(r,n,_);break e}}else for(j=n.child,j!==null&&(j.return=n);j!==null;){var d=j.dependencies;if(d!==null){c=j.child;for(var s=d.firstContext;s!==null;){if(s.context===t){if(j.tag===1){s=un(-1,_&-_),s.tag=2;var g=j.updateQueue;if(g!==null){g=g.shared;var b=g.pending;b===null?s.next=s:(s.next=b.next,b.next=s),g.pending=s}}j.lanes|=_,s=j.alternate,s!==null&&(s.lanes|=_),al(j.return,_,n),d.lanes|=_;break}s=s.next}}else if(j.tag===10)c=j.type===n.type?null:j.child;else if(j.tag===18){if(c=j.return,c===null)throw Error(Be(341));c.lanes|=_,d=c.alternate,d!==null&&(d.lanes|=_),al(c,_,n),c=j.sibling}else c=j.child;if(c!==null)c.return=j;else for(c=j;c!==null;){if(c===n){c=null;break}if(j=c.sibling,j!==null){j.return=c.return,c=j;break}c=c.return}j=c}hr(r,n,w.children,_),n=n.child}return n;case 9:return w=n.type,t=n.pendingProps.children,jo(n,_),w=Dr(w),t=t(w),n.flags|=1,hr(r,n,t,_),n.child;case 14:return t=n.type,w=Gr(t,n.pendingProps),w=Gr(t.type,w),Qc(r,n,t,w,_);case 15:return nh(r,n,n.type,n.pendingProps,_);case 17:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),ui(r,n),n.tag=1,_r(t)?(r=!0,xi(n)):r=!1,jo(n,_),Lf(n,t,w),ul(n,t,w,_),fl(null,n,t,!0,r,_);case 19:return lh(r,n,_);case 22:return oh(r,n,_)}throw Error(Be(156,n.tag))};function Sh(r,n){return Zd(r,n)}function yy(r,n,_,t){this.tag=r,this.key=_,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=t,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(r,n,_,t){return new yy(r,n,_,t)}function pu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function gy(r){if(typeof r=="function")return pu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Al)return 11;if(r===Rl)return 14}return 2}function Ln(r,n){var _=r.alternate;return _===null?(_=Ar(r.tag,n,r.key,r.mode),_.elementType=r.elementType,_.type=r.type,_.stateNode=r.stateNode,_.alternate=r,r.alternate=_):(_.pendingProps=n,_.type=r.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=r.flags&14680064,_.childLanes=r.childLanes,_.lanes=r.lanes,_.child=r.child,_.memoizedProps=r.memoizedProps,_.memoizedState=r.memoizedState,_.updateQueue=r.updateQueue,n=r.dependencies,_.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},_.sibling=r.sibling,_.index=r.index,_.ref=r.ref,_}function fi(r,n,_,t,w,j){var c=2;if(t=r,typeof r=="function")pu(r)&&(c=1);else if(typeof r=="string")c=5;else e:switch(r){case oo:return Hn(_.children,w,j,n);case Ll:c=8,w|=8;break;case Aa:return r=Ar(12,_,n,w|2),r.elementType=Aa,r.lanes=j,r;case Ra:return r=Ar(13,_,n,w),r.elementType=Ra,r.lanes=j,r;case Da:return r=Ar(19,_,n,w),r.elementType=Da,r.lanes=j,r;case Ld:return Yi(_,w,j,n);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Od:c=10;break e;case Pd:c=9;break e;case Al:c=11;break e;case Rl:c=14;break e;case bn:c=16,t=null;break e}throw Error(Be(130,r==null?r:typeof r,""))}return n=Ar(c,_,n,w),n.elementType=r,n.type=t,n.lanes=j,n}function Hn(r,n,_,t){return r=Ar(7,r,t,n),r.lanes=_,r}function Yi(r,n,_,t){return r=Ar(22,r,t,n),r.elementType=Ld,r.lanes=_,r.stateNode={isHidden:!1},r}function Oa(r,n,_){return r=Ar(6,r,null,n),r.lanes=_,r}function Pa(r,n,_){return n=Ar(4,r.children!==null?r.children:[],r.key,n),n.lanes=_,n.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},n}function vy(r,n,_,t,w){this.tag=n,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=t,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function mu(r,n,_,t,w,j,c,d,s){return r=new vy(r,n,_,d,s),n===1?(n=1,j===!0&&(n|=8)):n=0,j=Ar(3,null,null,n),r.current=j,j.stateNode=r,j.memoizedState={element:t,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(j),r}function by(r,n,_){var t=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mh)}catch(r){console.error(r)}}Mh(),Ed.exports=Cr;var Sy=Ed.exports,Ch,cd=Sy;Ch=cd.createRoot,cd.hydrateRoot;function Sl(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=_=>{_.rotation&&(n=_.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-35,0),r.rotateY(n),r.rotateX(-.9),r.box(100),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(400,r.height*.35,-200),r.sphere(300),r.pop()}}const dd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Sl},Symbol.toStringTag,{value:"Module"}));function Oh(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=_=>{_.rotation&&(n=_.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.push(),r.rotateZ(n),r.rotateX(n),r.rotateY(n),r.plane(100),r.pop()}}const fd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Oh},Symbol.toStringTag,{value:"Module"}));function Ph(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=_=>{_.rotation&&(n=(_.rotation/4+10)*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-30,0),r.rotateY(n),r.rotateX(-.9),r.torus(70,20),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(300,r.height*.5,-500),r.cone(100,100),r.pop()}}const hd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Ph},Symbol.toStringTag,{value:"Module"})),Ey={Date:!0,RegExp:!0,String:!0,Number:!0};function Lh(r,n,_={cyclesFix:!0},t=[]){var d,s;let w=[];const j=Array.isArray(r);for(const g in r){const b=r[g],m=j?+g:g;if(!(g in n)){w.push({type:"REMOVE",path:[m],oldValue:r[g]});continue}const o=n[g],l=typeof b=="object"&&typeof o=="object";if(b&&o&&l&&!Ey[(s=(d=Object.getPrototypeOf(b))==null?void 0:d.constructor)==null?void 0:s.name]&&(!_.cyclesFix||!t.includes(b))){const u=Lh(b,o,_,_.cyclesFix?t.concat([b]):[]);w.push.apply(w,u.map(a=>(a.path.unshift(m),a)))}else b!==o&&!(l&&(isNaN(b)?b+""==o+"":+b==+o))&&w.push({path:[m],type:"CHANGE",value:o,oldValue:b})}const c=Array.isArray(n);for(const g in n)g in r||w.push({type:"CREATE",path:[c?+g:g],value:n[g]});return w}function ky(r,n){return Lh(r,n).length===0}const Ty="react-p5-wrapper";function ei(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ah={exports:{}};/*! p5.js v1.7.0 July 10, 2023 */(function(r,n){(function(_){r.exports=_()})(function(){var _;return function t(w,j,c){function d(b,m){if(!j[b]){if(!w[b]){var o=typeof ei=="function"&&ei;if(!m&&o)return o(b,!0);if(s)return s(b,!0);throw(m=new Error("Cannot find module '"+b+"'")).code="MODULE_NOT_FOUND",m}o=j[b]={exports:{}},w[b][0].call(o.exports,function(l){return d(w[b][1][l]||l)},o,o.exports,t,w,j,c)}return j[b].exports}for(var s=typeof ei=="function"&&ei,g=0;g>16&255,h[i++]=u>>8&255,h[i++]=255&u;return f===2&&(u=d[l.charCodeAt(a)]<<2|d[l.charCodeAt(a+1)]>>4,h[i++]=255&u),f===1&&(u=d[l.charCodeAt(a)]<<10|d[l.charCodeAt(a+1)]<<4|d[l.charCodeAt(a+2)]>>2,h[i++]=u>>8&255,h[i++]=255&u),h},j.fromByteArray=function(l){for(var u,a=l.length,p=a%3,f=[],h=0,i=a-p;h>18&63]+c[O>>12&63]+c[O>>6&63]+c[63&O]}(k));return E.join("")}(l,h,i>2]+c[u<<4&63]+"==")):p==2&&(u=(l[a-2]<<8)+l[a-1],f.push(c[u>>10]+c[u>>4&63]+c[u<<2&63]+"=")),f.join("")};for(var c=[],d=[],s=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,m=g.length;b>>1;case"base64":return B(I).length;default:if(te)return Y?-1:R(I).length;z=(""+z).toLowerCase(),te=!0}}function i(I,z,q){var Y,te=!1;if((z=z===void 0||z<0?0:z)>this.length||(q=q===void 0||q>this.length?this.length:q)<=0||(q>>>=0)<=(z>>>=0))return"";for(I=I||"utf8";;)switch(I){case"hex":var re=this,ge=z,le=q,ce=re.length;(!le||le<0||ce=I.length){if(te)return-1;q=I.length-1}else if(q<0){if(!te)return-1;q=0}if(typeof z=="string"&&(z=o.from(z,Y)),o.isBuffer(z))return z.length===0?-1:M(I,z,q,Y,te);if(typeof z=="number")return z&=255,typeof Uint8Array.prototype.indexOf=="function"?(te?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(I,z,q):M(I,[z],q,Y,te);throw new TypeError("val must be string, number or Buffer")}function M(I,z,q,Y,te){var re=1,le=I.length,pe=z.length;if(Y!==void 0&&((Y=String(Y).toLowerCase())==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(I.length<2||z.length<2)return-1;le/=re=2,pe/=2,q/=2}function se(ve,Te){return re===1?ve[Te]:ve.readUInt16BE(Te*re)}if(te)for(var fe=-1,ce=q;ce>8,pe=pe%256,se.push(pe),se.push(le);return se}(z,I.length-q),I,q,Y)}function L(I,z,q){q=Math.min(I.length,q);for(var Y=[],te=z;te>>10&1023|55296),ce=56320|1023&ce),Y.push(ce),te+=J}var ue=Y,ve=ue.length;if(ve<=O)return String.fromCharCode.apply(String,ue);for(var Te="",ge=0;ge"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=l,Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(I,z,q){return z=z,q=q,u(I=I),!(I<=0)&&z!==void 0?typeof q=="string"?m(I).fill(z,q):m(I).fill(z):m(I)},o.allocUnsafe=a,o.allocUnsafeSlow=a,o.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==o.prototype},o.compare=function(I,z){if(X(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),X(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),!o.isBuffer(I)||!o.isBuffer(z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===z)return 0;for(var q=I.length,Y=z.length,te=0,re=Math.min(q,Y);teI&&(z+=" ... "),""},g&&(o.prototype[g]=o.prototype.inspect),o.prototype.compare=function(I,z,q,Y,te){if(X(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(q===void 0&&(q=I?I.length:0),Y===void 0&&(Y=0),te===void 0&&(te=this.length),(z=z===void 0?0:z)<0||q>I.length||Y<0||te>this.length)throw new RangeError("out of range index");if(te<=Y&&q<=z)return 0;if(te<=Y)return-1;if(q<=z)return 1;if(this===I)return 0;for(var re=(te>>>=0)-(Y>>>=0),le=(q>>>=0)-(z>>>=0),pe=Math.min(re,le),se=this.slice(Y,te),fe=I.slice(z,q),ce=0;ce>>=0,isFinite(q)?(q>>>=0,Y===void 0&&(Y="utf8")):(Y=q,q=void 0)}var te=this.length-z;if((q===void 0||tethis.length)throw new RangeError("Attempt to write outside buffer bounds");Y=Y||"utf8";for(var re,le,pe,se=!1;;)switch(Y){case"hex":var fe=this,ce=I,J=z,ue=q,ve=(J=Number(J)||0,fe.length-J);(!ue||ve<(ue=Number(ue)))&&(ue=ve),(ve=ce.length)/2I.length)throw new RangeError("Index out of range")}function D(I,z,q,Y){if(q+Y>I.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function F(I,z,q,Y,te){return z=+z,q>>>=0,te||D(I,0,q,4),s.write(I,z,q,Y,23,4),q+4}function N(I,z,q,Y,te){return z=+z,q>>>=0,te||D(I,0,q,8),s.write(I,z,q,Y,52,8),q+8}o.prototype.slice=function(I,z){var q=this.length,q=((I=~~I)<0?(I+=q)<0&&(I=0):q>>=0,z>>>=0,q||P(I,z,this.length);for(var Y=this[I],te=1,re=0;++re>>=0,z>>>=0,q||P(I,z,this.length);for(var Y=this[I+--z],te=1;0>>=0,z||P(I,1,this.length),this[I]},o.prototype.readUInt16LE=function(I,z){return I>>>=0,z||P(I,2,this.length),this[I]|this[I+1]<<8},o.prototype.readUInt16BE=function(I,z){return I>>>=0,z||P(I,2,this.length),this[I]<<8|this[I+1]},o.prototype.readUInt32LE=function(I,z){return I>>>=0,z||P(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},o.prototype.readUInt32BE=function(I,z){return I>>>=0,z||P(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},o.prototype.readIntLE=function(I,z,q){I>>>=0,z>>>=0,q||P(I,z,this.length);for(var Y=this[I],te=1,re=0;++re>>=0,z>>>=0,q||P(I,z,this.length);for(var Y=z,te=1,re=this[I+--Y];0>>=0,z||P(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},o.prototype.readInt16LE=function(I,z){return I>>>=0,z||P(I,2,this.length),z=this[I]|this[I+1]<<8,32768&z?4294901760|z:z},o.prototype.readInt16BE=function(I,z){return I>>>=0,z||P(I,2,this.length),z=this[I+1]|this[I]<<8,32768&z?4294901760|z:z},o.prototype.readInt32LE=function(I,z){return I>>>=0,z||P(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},o.prototype.readInt32BE=function(I,z){return I>>>=0,z||P(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},o.prototype.readFloatLE=function(I,z){return I>>>=0,z||P(I,4,this.length),s.read(this,I,!0,23,4)},o.prototype.readFloatBE=function(I,z){return I>>>=0,z||P(I,4,this.length),s.read(this,I,!1,23,4)},o.prototype.readDoubleLE=function(I,z){return I>>>=0,z||P(I,8,this.length),s.read(this,I,!0,52,8)},o.prototype.readDoubleBE=function(I,z){return I>>>=0,z||P(I,8,this.length),s.read(this,I,!1,52,8)},o.prototype.writeUIntLE=function(I,z,q,Y){I=+I,z>>>=0,q>>>=0,Y||A(this,I,z,q,Math.pow(2,8*q)-1,0);var te=1,re=0;for(this[z]=255&I;++re>>=0,q>>>=0,Y||A(this,I,z,q,Math.pow(2,8*q)-1,0);var te=q-1,re=1;for(this[z+te]=255&I;0<=--te&&(re*=256);)this[z+te]=I/re&255;return z+q},o.prototype.writeUInt8=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,1,255,0),this[z]=255&I,z+1},o.prototype.writeUInt16LE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,2,65535,0),this[z]=255&I,this[z+1]=I>>>8,z+2},o.prototype.writeUInt16BE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,2,65535,0),this[z]=I>>>8,this[z+1]=255&I,z+2},o.prototype.writeUInt32LE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,4,4294967295,0),this[z+3]=I>>>24,this[z+2]=I>>>16,this[z+1]=I>>>8,this[z]=255&I,z+4},o.prototype.writeUInt32BE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,4,4294967295,0),this[z]=I>>>24,this[z+1]=I>>>16,this[z+2]=I>>>8,this[z+3]=255&I,z+4},o.prototype.writeIntLE=function(I,z,q,Y){I=+I,z>>>=0,Y||A(this,I,z,q,(Y=Math.pow(2,8*q-1))-1,-Y);var te=0,re=1,le=0;for(this[z]=255&I;++te>0)-le&255;return z+q},o.prototype.writeIntBE=function(I,z,q,Y){I=+I,z>>>=0,Y||A(this,I,z,q,(Y=Math.pow(2,8*q-1))-1,-Y);var te=q-1,re=1,le=0;for(this[z+te]=255&I;0<=--te&&(re*=256);)I<0&&le===0&&this[z+te+1]!==0&&(le=1),this[z+te]=(I/re>>0)-le&255;return z+q},o.prototype.writeInt8=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,1,127,-128),this[z]=255&(I=I<0?255+I+1:I),z+1},o.prototype.writeInt16LE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,2,32767,-32768),this[z]=255&I,this[z+1]=I>>>8,z+2},o.prototype.writeInt16BE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,2,32767,-32768),this[z]=I>>>8,this[z+1]=255&I,z+2},o.prototype.writeInt32LE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,4,2147483647,-2147483648),this[z]=255&I,this[z+1]=I>>>8,this[z+2]=I>>>16,this[z+3]=I>>>24,z+4},o.prototype.writeInt32BE=function(I,z,q){return I=+I,z>>>=0,q||A(this,I,z,4,2147483647,-2147483648),this[z]=(I=I<0?4294967295+I+1:I)>>>24,this[z+1]=I>>>16,this[z+2]=I>>>8,this[z+3]=255&I,z+4},o.prototype.writeFloatLE=function(I,z,q){return F(this,I,z,!0,q)},o.prototype.writeFloatBE=function(I,z,q){return F(this,I,z,!1,q)},o.prototype.writeDoubleLE=function(I,z,q){return N(this,I,z,!0,q)},o.prototype.writeDoubleBE=function(I,z,q){return N(this,I,z,!1,q)},o.prototype.copy=function(I,z,q,Y){if(!o.isBuffer(I))throw new TypeError("argument should be a Buffer");if(q=q||0,Y||Y===0||(Y=this.length),z>=I.length&&(z=I.length),(Y=0=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length);var te=(Y=I.length-z>>=0,q=q===void 0?this.length:q>>>0,typeof(I=I||0)=="number")for(re=z;re>6|192,63&q|128)}else if(q<65536){if((z-=3)<0)break;re.push(q>>12|224,q>>6&63|128,63&q|128)}else{if(!(q<1114112))throw new Error("Invalid code point");if((z-=4)<0)break;re.push(q>>18|240,q>>12&63|128,q>>6&63|128,63&q|128)}}return re}function B(I){return d.toByteArray(function(z){if((z=(z=z.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;z.length%4!=0;)z+="=";return z}(I))}function V(I,z,q,Y){for(var te=0;te=z.length||te>=I.length);++te)z[te+q]=I[te];return te}function X(I,z){return I instanceof z||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===z.name}function Q(I){return I!=I}var oe=function(){for(var I="0123456789abcdef",z=new Array(256),q=0;q<16;++q)for(var Y=16*q,te=0;te<16;++te)z[Y+te]=I[q]+I[te];return z}()}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:244}],5:[function(t,w,j){w.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},{}],6:[function(t,w,j){var c=t("../internals/is-object");w.exports=function(d){if(c(d)||d===null)return d;throw TypeError("Can't set "+String(d)+" as a prototype")}},{"../internals/is-object":74}],7:[function(s,w,j){var c=s("../internals/well-known-symbol"),d=s("../internals/object-create"),s=s("../internals/object-define-property"),g=c("unscopables"),b=Array.prototype;b[g]==null&&s.f(b,g,{configurable:!0,value:d(null)}),w.exports=function(m){b[g][m]=!0}},{"../internals/object-create":90,"../internals/object-define-property":92,"../internals/well-known-symbol":148}],8:[function(t,w,j){var c=t("../internals/string-multibyte").charAt;w.exports=function(d,s,g){return s+(g?c(d,s).length:1)}},{"../internals/string-multibyte":123}],9:[function(t,w,j){w.exports=function(c,d,s){if(c instanceof d)return c;throw TypeError("Incorrect "+(s?s+" ":"")+"invocation")}},{}],10:[function(t,w,j){var c=t("../internals/is-object");w.exports=function(d){if(c(d))return d;throw TypeError(String(d)+" is not an object")}},{"../internals/is-object":74}],11:[function(t,w,j){w.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(D,w,j){function c(N){return m(N)&&o(F,l(N))}var d,s=D("../internals/array-buffer-native"),g=D("../internals/descriptors"),b=D("../internals/global"),m=D("../internals/is-object"),o=D("../internals/has"),l=D("../internals/classof"),u=D("../internals/create-non-enumerable-property"),a=D("../internals/redefine"),p=D("../internals/object-define-property").f,f=D("../internals/object-get-prototype-of"),h=D("../internals/object-set-prototype-of"),O=D("../internals/well-known-symbol"),D=D("../internals/uid"),i=b.Int8Array,v=i&&i.prototype,S=b.Uint8ClampedArray,S=S&&S.prototype,M=i&&f(i),k=v&&f(v),E=Object.prototype,L=E.isPrototypeOf,O=O("toStringTag"),P=D("TYPED_ARRAY_TAG"),A=s&&!!h&&l(b.opera)!=="Opera",D=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(d in F)b[d]||(A=!1);if((!A||typeof M!="function"||M===Function.prototype)&&(M=function(){throw TypeError("Incorrect invocation")},A))for(d in F)b[d]&&h(b[d],M);if((!A||!k||k===E)&&(k=M.prototype,A))for(d in F)b[d]&&h(b[d].prototype,k);if(A&&f(S)!==k&&h(S,k),g&&!o(k,O))for(d in D=!0,p(k,O,{get:function(){return m(this)?this[P]:void 0}}),F)b[d]&&u(b[d],P,d);w.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:D&&P,aTypedArray:function(N){if(c(N))return N;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(N){if(h){if(L.call(M,N))return N}else for(var G in F)if(o(F,d)&&(G=b[G],G&&(N===G||L.call(G,N))))return N;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(N,G,R){if(g){if(R)for(var B in F)B=b[B],B&&o(B.prototype,N)&&delete B.prototype[N];k[N]&&!R||a(k,N,!R&&A&&v[N]||G)}},exportTypedArrayStaticMethod:function(N,G,R){var B,V;if(g){if(h){if(R)for(B in F)(V=b[B])&&o(V,N)&&delete V[N];if(M[N]&&!R)return;try{return a(M,N,!R&&A&&i[N]||G)}catch{}}for(B in F)!(V=b[B])||V[N]&&!R||a(V,N,G)}},isView:function(N){return N=l(N),N==="DataView"||o(F,N)},isTypedArray:c,TypedArray:M,TypedArrayPrototype:k}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":59,"../internals/has":60,"../internals/is-object":74,"../internals/object-define-property":92,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/uid":145,"../internals/well-known-symbol":148}],13:[function(q,w,j){function c(J){return[255&J]}function d(J){return[255&J,J>>8&255]}function s(J){return[255&J,J>>8&255,J>>16&255,J>>24&255]}function g(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]}function b(J){return re(J,23,4)}function m(J){return re(J,52,8)}function o(J,ue){D(J[X],ue,{get:function(){return G(this)[ue]}})}function l(Me,ue,be,Te){if(be=E(be),Me=G(Me),be+ue>Me.byteLength)throw te(Q);var ge=G(Me.buffer).bytes,be=be+Me.byteOffset,Me=ge.slice(be,be+ue);return Te?Me:Me.reverse()}function u(J,ue,ve,Te,ge,be){if(ve=E(ve),J=G(J),ve+ue>J.byteLength)throw te(Q);for(var Me=G(J.buffer).bytes,Fe=ve+J.byteOffset,Ce=Te(+ge),$e=0;$efe;)(pe=se[fe++])in I||h(I,pe,oe[pe]);a.constructor=I}P&&O(q)!==Y&&P(q,Y);var L=new z(new I(2)),ce=q.setInt8;L.setInt8(0,2147483648),L.setInt8(1,2147483649),!L.getInt8(0)&&L.getInt8(1)||i(q,{setInt8:function(ue,ve){ce.call(this,ue,ve<<24>>24)},setUint8:function(ue,ve){ce.call(this,ue,ve<<24>>24)}},{unsafe:!0})}else I=function(J){S(this,I,B),J=E(J),R(this,{bytes:F.call(new Array(J),0),byteLength:J}),p||(this.byteLength=J)},z=function(J,ge,ve){S(this,z,V),S(J,I,V);var Te=G(J).byteLength,ge=M(ge);if(ge<0||Te>24},getUint8:function(J){return l(this,1,J)[0]},getInt16:function(J){return J=l(this,2,J,1>16},getUint16:function(J){return J=l(this,2,J,1>>0},getFloat32:function(J){return le(l(this,4,J,1"+o+""}},{"../internals/require-object-coercible":113}],37:[function(t,w,j){function c(){return this}var d=t("../internals/iterators-core").IteratorPrototype,s=t("../internals/object-create"),g=t("../internals/create-property-descriptor"),b=t("../internals/set-to-string-tag"),m=t("../internals/iterators");w.exports=function(o,l,u){return l+=" Iterator",o.prototype=s(d,{next:g(1,u)}),b(o,l,!1,!0),m[l]=c,o}},{"../internals/create-property-descriptor":39,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-create":90,"../internals/set-to-string-tag":117}],38:[function(t,w,j){var c=t("../internals/descriptors"),d=t("../internals/object-define-property"),s=t("../internals/create-property-descriptor");w.exports=c?function(g,b,m){return d.f(g,b,s(1,m))}:function(g,b,m){return g[b]=m,g}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":92}],39:[function(t,w,j){w.exports=function(c,d){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:d}}},{}],40:[function(t,w,j){var c=t("../internals/to-primitive"),d=t("../internals/object-define-property"),s=t("../internals/create-property-descriptor");w.exports=function(g,b,m){b=c(b),b in g?d.f(g,b,s(0,m)):g[b]=m}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":92,"../internals/to-primitive":140}],41:[function(f,w,j){function c(){return this}var d=f("../internals/export"),s=f("../internals/create-iterator-constructor"),g=f("../internals/object-get-prototype-of"),b=f("../internals/object-set-prototype-of"),m=f("../internals/set-to-string-tag"),o=f("../internals/create-non-enumerable-property"),l=f("../internals/redefine"),u=f("../internals/well-known-symbol"),a=f("../internals/is-pure"),p=f("../internals/iterators"),f=f("../internals/iterators-core"),h=f.IteratorPrototype,i=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),S="values",M="entries";w.exports=function(k,E,L,R,P,A,D){s(L,E,R);function F(I){if(I===P&&Q)return Q;if(!i&&I in V)return V[I];switch(I){case"keys":case S:case M:return function(){return new L(this,I)}}return function(){return new L(this)}}var N,G,R=E+" Iterator",B=!1,V=k.prototype,X=V[v]||V["@@iterator"]||P&&V[P],Q=!i&&X||F(P),oe=E=="Array"&&V.entries||X;if(oe&&(oe=g(oe.call(new k)),h!==Object.prototype&&oe.next&&(a||g(oe)===h||(b?b(oe,h):typeof oe[v]!="function"&&o(oe,v,c)),m(oe,R,!0,!0),a&&(p[R]=c))),P==S&&X&&X.name!==S&&(B=!0,Q=function(){return X.call(this)}),a&&!D||V[v]===Q||o(V,v,Q),p[E]=Q,P)if(N={values:F(S),keys:A?Q:F("keys"),entries:F(M)},D)for(G in N)!i&&!B&&G in V||l(V,G,N[G]);else d({target:E,proto:!0,forced:i||B},N);return N}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":75,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/set-to-string-tag":117,"../internals/well-known-symbol":148}],42:[function(t,w,j){var c=t("../internals/path"),d=t("../internals/has"),s=t("../internals/well-known-symbol-wrapped"),g=t("../internals/object-define-property").f;w.exports=function(b){var m=c.Symbol||(c.Symbol={});d(m,b)||g(m,b,{value:s.f(b)})}},{"../internals/has":60,"../internals/object-define-property":92,"../internals/path":104,"../internals/well-known-symbol-wrapped":147}],43:[function(t,w,j){t=t("../internals/fails"),w.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(d,w,j){var c=d("../internals/global"),d=d("../internals/is-object"),s=c.document,g=d(s)&&d(s.createElement);w.exports=function(b){return g?s.createElement(b):{}}},{"../internals/global":59,"../internals/is-object":74}],45:[function(t,w,j){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],46:[function(t,w,j){t=t("../internals/engine-user-agent"),w.exports=/(iphone|ipod|ipad).*applewebkit/i.test(t)},{"../internals/engine-user-agent":47}],47:[function(t,w,j){t=t("../internals/get-built-in"),w.exports=t("navigator","userAgent")||""},{"../internals/get-built-in":56}],48:[function(s,w,j){var c,d,g=s("../internals/global"),s=s("../internals/engine-user-agent"),g=g.process,g=g&&g.versions,g=g&&g.v8;g?d=(c=g.split("."))[0]+c[1]:s&&(!(c=s.match(/Edge\/(\d+)/))||74<=c[1])&&(c=s.match(/Chrome\/(\d+)/))&&(d=c[1]),w.exports=d&&+d},{"../internals/engine-user-agent":47,"../internals/global":59}],49:[function(t,w,j){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(t,w,j){var c=t("../internals/global"),d=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/create-non-enumerable-property"),g=t("../internals/redefine"),b=t("../internals/set-global"),m=t("../internals/copy-constructor-properties"),o=t("../internals/is-forced");w.exports=function(l,u){var a,p,f,h=l.target,i=l.global,v=l.stat,S=i?c:v?c[h]||b(h,{}):(c[h]||{}).prototype;if(S)for(a in u){if(p=u[a],f=l.noTargetGet?(f=d(S,a))&&f.value:S[a],!o(i?a:h+(v?".":"#")+a,l.forced)&&f!==void 0){if(typeof p==typeof f)continue;m(p,f)}(l.sham||f&&f.sham)&&s(p,"sham",!0),g(S,a,p,l)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/is-forced":73,"../internals/object-get-own-property-descriptor":93,"../internals/redefine":108,"../internals/set-global":115}],51:[function(t,w,j){w.exports=function(c){try{return!!c()}catch{return!0}}},{}],52:[function(u,w,j){u("../modules/es.regexp.exec");var c=u("../internals/redefine"),d=u("../internals/fails"),s=u("../internals/well-known-symbol"),g=u("../internals/regexp-exec"),b=u("../internals/create-non-enumerable-property"),m=s("species"),o=!d(function(){var f=/./;return f.exec=function(){var h=[];return h.groups={a:"7"},h},"".replace(f,"$")!=="7"}),l="a".replace(/./,"$0")==="$0",u=s("replace"),a=!!/./[u]&&/./[u]("a","$0")==="",p=!d(function(){var h=/(?:)/,f=h.exec,h=(h.exec=function(){return f.apply(this,arguments)},"ab".split(h));return h.length!==2||h[0]!=="a"||h[1]!=="b"});w.exports=function(f,h,i,v){var S,M,k=s(f),E=!d(function(){var O={};return O[k]=function(){return 7},""[f](O)!=7}),L=E&&!d(function(){var O=!1,P=/a/;return f==="split"&&((P={constructor:{}}).constructor[m]=function(){return P},P.flags="",P[k]=/./[k]),P.exec=function(){return O=!0,null},P[k](""),!O});E&&L&&(f!=="replace"||o&&l&&!a)&&(f!=="split"||p)||(S=/./[k],i=(L=i(k,""[f],function(O,P,A,D,F){return P.exec===g?E&&!F?{done:!0,value:S.call(P,A,D)}:{done:!0,value:O.call(A,P,D)}:{done:!1}},{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:a}))[0],M=L[1],c(String.prototype,f,i),c(RegExp.prototype,k,h==2?function(O,P){return M.call(O,this,P)}:function(O){return M.call(O,this)})),v&&b(RegExp.prototype[k],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-exec":110,"../internals/well-known-symbol":148,"../modules/es.regexp.exec":185}],53:[function(t,w,j){t=t("../internals/fails"),w.exports=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":51}],54:[function(t,w,j){var c=t("../internals/a-function");w.exports=function(d,s,g){if(c(d),s===void 0)return d;switch(g){case 0:return function(){return d.call(s)};case 1:return function(b){return d.call(s,b)};case 2:return function(b,m){return d.call(s,b,m)};case 3:return function(b,m,o){return d.call(s,b,m,o)}}return function(){return d.apply(s,arguments)}}},{"../internals/a-function":5}],55:[function(t,w,j){var c=t("../internals/a-function"),d=t("../internals/is-object"),s=[].slice,g={};w.exports=Function.bind||function(b){var m=c(this),o=s.call(arguments,1),l=function(){var u=o.concat(s.call(arguments));if(this instanceof l){var a=m,p=u.length,f=u;if(!(p in g)){for(var h=[],i=0;i>1,S=o===23?d(2,-24)-d(2,-77):0,M=m<0||m===0&&1/m<0?1:0,k=0;for((m=c(m))!=m||m===1/0?(a=m!=m?1:0,u=i):(u=s(g(m)/b),m*(p=d(2,-u))<1&&(u--,p*=2),2<=(m+=1<=u+v?S/p:S*d(2,1-v))*p&&(u++,p/=2),i<=u+v?(a=0,u=i):1<=u+v?(a=(m*p-1)*d(2,o),u+=v):(a=m*d(2,v-1)*d(2,o),u=0));8<=o;f[k++]=255&a,a/=256,o-=8);for(u=u<>1,f=i-7,h=u-1,i=m[h--],v=127&i;for(i>>=7;0>=-f,f+=o;0"+v+""},i=function(){try{d=document.domain&&new ActiveXObject("htmlfile")}catch{}i=d?((v=d).write(h("")),v.close(),S=v.parentWindow.Object,v=null,S):(v=l("iframe"),S="java"+p+":",v.style.display="none",o.appendChild(v),v.src=String(S),(S=v.contentWindow.document).open(),S.write(h("document.F=Object")),S.close(),S.F);for(var v,S,M=b.length;M--;)delete i[a][b[M]];return i()};m[f]=!0,w.exports=Object.create||function(v,S){var M;return v!==null?(c[a]=s(v),M=new c,c[a]=null,M[f]=v):M=i(),S===void 0?M:g(M,S)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":61,"../internals/html":63,"../internals/object-define-properties":91,"../internals/shared-key":118}],91:[function(t,w,j){var c=t("../internals/descriptors"),d=t("../internals/object-define-property"),s=t("../internals/an-object"),g=t("../internals/object-keys");w.exports=c?Object.defineProperties:function(b,m){s(b);for(var o,l=g(m),u=l.length,a=0;au;)!c(l,o=m[u++])||~s(a,o)||a.push(o);return a}},{"../internals/array-includes":18,"../internals/has":60,"../internals/hidden-keys":61,"../internals/to-indexed-object":134}],99:[function(t,w,j){var c=t("../internals/object-keys-internal"),d=t("../internals/enum-bug-keys");w.exports=Object.keys||function(s){return c(s,d)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":98}],100:[function(t,w,j){var c={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,s=d&&!c.call({1:2},1);j.f=s?function(g){return g=d(this,g),!!g&&g.enumerable}:c},{}],101:[function(t,w,j){var c=t("../internals/an-object"),d=t("../internals/a-possible-prototype");w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,g=!1,b={};try{(s=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(b,[]),g=b instanceof Array}catch{}return function(m,o){return c(m),d(o),g?s.call(m,o):m.__proto__=o,m}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],102:[function(t,w,j){var c=t("../internals/to-string-tag-support"),d=t("../internals/classof");w.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":141}],103:[function(t,w,j){var c=t("../internals/get-built-in"),d=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),g=t("../internals/an-object");w.exports=c("Reflect","ownKeys")||function(b){var m=d.f(g(b)),o=s.f;return o?m.concat(o(b)):m}},{"../internals/an-object":10,"../internals/get-built-in":56,"../internals/object-get-own-property-names":95,"../internals/object-get-own-property-symbols":96}],104:[function(t,w,j){t=t("../internals/global"),w.exports=t},{"../internals/global":59}],105:[function(t,w,j){w.exports=function(c){try{return{error:!1,value:c()}}catch(d){return{error:!0,value:d}}}},{}],106:[function(t,w,j){var c=t("../internals/an-object"),d=t("../internals/is-object"),s=t("../internals/new-promise-capability");w.exports=function(g,b){return c(g),d(b)&&b.constructor===g?b:((0,(g=s.f(g)).resolve)(b),g.promise)}},{"../internals/an-object":10,"../internals/is-object":74,"../internals/new-promise-capability":86}],107:[function(t,w,j){var c=t("../internals/redefine");w.exports=function(d,s,g){for(var b in s)c(d,b,s[b],g);return d}},{"../internals/redefine":108}],108:[function(m,w,j){var c=m("../internals/global"),d=m("../internals/create-non-enumerable-property"),s=m("../internals/has"),g=m("../internals/set-global"),b=m("../internals/inspect-source"),m=m("../internals/internal-state"),o=m.get,l=m.enforce,u=String(String).split("String");(w.exports=function(a,p,f,S){var i=!!S&&!!S.unsafe,v=!!S&&!!S.enumerable,S=!!S&&!!S.noTargetGet;typeof f=="function"&&(typeof p!="string"||s(f,"name")||d(f,"name",p),l(f).source=u.join(typeof p=="string"?p:"")),a===c?v?a[p]=f:g(p,f):(i?!S&&a[p]&&(v=!0):delete a[p],v?a[p]=f:d(a,p,f))})(Function.prototype,"toString",function(){return typeof this=="function"&&o(this).source||b(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/has":60,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/set-global":115}],109:[function(t,w,j){var c=t("./classof-raw"),d=t("./regexp-exec");w.exports=function(s,g){var b=s.exec;if(typeof b=="function"){if(b=b.call(s,g),typeof b!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return b}if(c(s)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(s,g)}},{"./classof-raw":28,"./regexp-exec":110}],110:[function(g,w,j){var c,d,s=g("./regexp-flags"),g=g("./regexp-sticky-helpers"),b=RegExp.prototype.exec,m=String.prototype.replace,o=b,l=(c=/a/,d=/b*/g,b.call(c,"a"),b.call(d,"a"),c.lastIndex!==0||d.lastIndex!==0),u=g.UNSUPPORTED_Y||g.BROKEN_CARET,a=/()??/.exec("")[1]!==void 0;w.exports=o=l||a||u?function(p){var f,h,i,v,S=this,M=u&&S.sticky,k=s.call(S),E=S.source,L=0,O=p;return M&&((k=k.replace("y","")).indexOf("g")===-1&&(k+="g"),O=String(p).slice(S.lastIndex),0h&&(p=p.slice(0,h)),m?a+p:p+a)}}var d=t("../internals/to-length"),s=t("../internals/string-repeat"),g=t("../internals/require-object-coercible"),b=Math.ceil;w.exports={start:c(!1),end:c(!0)}},{"../internals/require-object-coercible":113,"../internals/string-repeat":127,"../internals/to-length":136}],126:[function(t,w,j){function c(i){return i+22+75*(i<26)}function d(i){var v,S=[],M=(i=function(X){for(var Q=[],oe=0,I=X.length;oef((s-E)/F))throw RangeError(a);for(E+=(A-k)*F,k=A,D=0;Ds)throw RangeError(a);if(v==k){for(var N=E,G=g;;G+=g){var R=G<=L?1:L+b<=G?b:G-L;if(N>1,X+=f(X/Q);p*b>>1>>=1)&&(g+=g))1&m&&(b+=g);return b}},{"../internals/require-object-coercible":113,"../internals/to-integer":135}],128:[function(t,w,j){var c=t("../internals/fails"),d=t("../internals/whitespaces");w.exports=function(s){return c(function(){return!!d[s]()||"​…᠎"[s]()!="​…᠎"||d[s].name!==s})}},{"../internals/fails":51,"../internals/whitespaces":149}],129:[function(s,w,j){function c(m){return function(o){return o=String(d(o)),1&m&&(o=o.replace(g,"")),o=2&m?o.replace(b,""):o}}var d=s("../internals/require-object-coercible"),s="["+s("../internals/whitespaces")+"]",g=RegExp("^"+s+s+"*"),b=RegExp(s+s+"*$");w.exports={start:c(1),end:c(2),trim:c(3)}},{"../internals/require-object-coercible":113,"../internals/whitespaces":149}],130:[function(p,w,j){function c(P){return function(){O(P)}}function d(P){O(P.data)}function s(P){b.postMessage(P+"",f.protocol+"//"+f.host)}var g,b=p("../internals/global"),m=p("../internals/fails"),o=p("../internals/classof-raw"),l=p("../internals/function-bind-context"),u=p("../internals/html"),a=p("../internals/document-create-element"),p=p("../internals/engine-is-ios"),f=b.location,h=b.setImmediate,i=b.clearImmediate,v=b.process,S=b.MessageChannel,M=b.Dispatch,k=0,E={},L="onreadystatechange",O=function(P){var A;E.hasOwnProperty(P)&&(A=E[P],delete E[P],A())};h&&i||(h=function(P){for(var A=[],D=1;D=a.length?{value:u.target=void 0,done:!0}:p=="keys"?{value:f,done:!1}:p=="values"?{value:a[f],done:!1}:{value:[f,a[f]],done:!1}},"values"),s.Arguments=s.Array,d("keys"),d("values"),d("entries")},{"../internals/add-to-unscopables":7,"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/iterators":79,"../internals/to-indexed-object":134}],161:[function(b,w,j){var c=b("../internals/export"),g=b("../internals/indexed-object"),d=b("../internals/to-indexed-object"),b=b("../internals/array-method-is-strict"),s=[].join,g=g!=Object,b=b("join",",");c({target:"Array",proto:!0,forced:g||!b},{join:function(m){return s.call(d(this),m===void 0?",":m)}})},{"../internals/array-method-is-strict":22,"../internals/export":50,"../internals/indexed-object":66,"../internals/to-indexed-object":134}],162:[function(d,w,j){var c=d("../internals/export"),d=d("../internals/array-last-index-of");c({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},{"../internals/array-last-index-of":20,"../internals/export":50}],163:[function(g,w,j){var c=g("../internals/export"),d=g("../internals/array-iteration").map,s=g("../internals/array-method-has-species-support"),g=g("../internals/array-method-uses-to-length"),s=s("map"),g=g("map");c({target:"Array",proto:!0,forced:!s||!g},{map:function(b){return d(this,b,1A;A++)m(M,L=P[A])&&!m(O,L)&&i(O,L,h(M,L));(O.prototype=k).constructor=O,b(s,S,O)}},{"../internals/classof-raw":28,"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/has":60,"../internals/inherit-if-required":67,"../internals/is-forced":73,"../internals/object-create":90,"../internals/object-define-property":92,"../internals/object-get-own-property-descriptor":93,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/string-trim":129,"../internals/to-primitive":140}],172:[function(t,w,j){t("../internals/export")({target:"Number",stat:!0},{isFinite:t("../internals/number-is-finite")})},{"../internals/export":50,"../internals/number-is-finite":88}],173:[function(m,w,j){function c(u,a,p){return a===0?p:a%2==1?c(u,a-1,p*u):c(u*u,a/2,p)}var d=m("../internals/export"),s=m("../internals/to-integer"),g=m("../internals/this-number-value"),b=m("../internals/string-repeat"),m=m("../internals/fails"),o=1 .toFixed,l=Math.floor;d({target:"Number",proto:!0,forced:o&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!m(function(){o.call({})})},{toFixed:function(S){function a(L,O){for(var P=-1,A=O;++P<6;)A+=L*M[P],M[P]=A%1e7,A=l(A/1e7)}function p(L){for(var O=6,P=0;0<=--O;)P+=M[O],M[O]=l(P/L),P=P%L*1e7}function f(){for(var L,O=6,P="";0<=--O;)P===""&&O!==0&&M[O]===0||(L=String(M[O]),P=P===""?L:P+b.call("0",7-L.length)+L);return P}var h,i,v=g(this),S=s(S),M=[0,0,0,0,0,0],k="",E="0";if(S<0||20Pe;){var Ne,Ge,ze,Ye=ee[Pe++],at=we?Ye.ok:Ye.fail,st=Ye.resolve,Je=Ye.reject,it=Ye.domain;try{at?(we||(xe.rejection===be&&function(ot,wt){P.call(o,function(){fe?re.emit("rejectionHandled",ot):Ve(ue,ot,wt.value)})}(Ae,xe),xe.rejection=ge),at===!0?Ne=me:(it&&it.enter(),Ne=at(me),it&&(it.exit(),ze=!0)),Ne===Ye.promise?Je(Y("Promise-chain cycle")):(Ge=Ce(Ne))?Ge.call(Ne,st,Je):st(Ne)):Je(me)}catch(ot){it&&!ze&&it.exit(),Je(ot)}}xe.reactions=[],xe.notified=!1,$&&!xe.rejection&&(Z=Ae,ne=xe,P.call(o,function(){var ot=ne.value,wt=He(ne);if(wt&&(wt=G(function(){fe?re.emit("unhandledRejection",ot,Z):Ve(J,Z,ot)}),ne.rejection=fe||He(ne)?be:ge,wt.error))throw wt.value}))}))},Ve=function(Ae,xe,$){var ee;ce?((ee=te.createEvent("Event")).promise=xe,ee.reason=$,ee.initEvent(Ae,!1,!0),o.dispatchEvent(ee)):ee={promise:xe,reason:$},(xe=o["on"+Ae])?xe(ee):Ae===J&&F("Unhandled promise rejection",$)},He=function(Ae){return Ae.rejection!==ge&&!Ae.parent},Xe=function(Ae,xe,$,ee){return function(Z){Ae(xe,$,Z,ee)}},We=function(Ae,xe,$,ee){xe.done||(xe.done=!0,(xe=ee||xe).value=$,xe.state=Te,$e(Ae,xe,!0))},je=function(Ae,xe,$,ee){if(!xe.done){xe.done=!0,ee&&(xe=ee);try{if(Ae===$)throw Y("Promise can't be resolved itself");var Z=Ce($);Z?A(function(){var ne={done:!1};try{Z.call($,Xe(je,Ae,ne,xe),Xe(We,Ae,ne,xe))}catch(me){We(Ae,ne,me,xe)}}):(xe.value=$,xe.state=ve,$e(Ae,xe,!1))}catch(ne){We(Ae,{done:!1},ne,xe)}}};Me&&(q=function(Ae){S(this,q,Q),v(Ae),c.call(this);var xe=oe(this);try{Ae(Xe(je,this,xe),Xe(We,this,xe))}catch($){We(this,xe,$)}},(c=function(Ae){I(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(q.prototype,{then:function(Ae,xe){var $=z(this),ee=pe(O(this,q));return ee.ok=typeof Ae!="function"||Ae,ee.fail=typeof xe=="function"&&xe,ee.domain=fe?re.domain:void 0,$.parent=!0,$.reactions.push(ee),$.state!=0&&$e(this,$,!1),ee.promise},catch:function(Ae){return this.then(void 0,Ae)}}),d=function(){var Ae=new c,xe=oe(Ae);this.promise=Ae,this.resolve=Xe(je,Ae,xe),this.reject=Xe(We,Ae,xe)},N.f=pe=function(Ae){return Ae===q||Ae===s?new d:se(Ae)},m||typeof u!="function"||(g=u.prototype.then,a(u.prototype,"then",function(Ae,xe){var $=this;return new q(function(ee,Z){g.call($,ee,Z)}).then(Ae,xe)},{unsafe:!0}),typeof le=="function"&&b({global:!0,enumerable:!0,forced:!0},{fetch:function(Ae){return D(q,le.apply(o,arguments))}}))),b({global:!0,wrap:!0,forced:Me},{Promise:q}),f(q,Q,!1,!0),h(Q),s=l(Q),b({target:Q,stat:!0,forced:Me},{reject:function(Ae){var xe=pe(this);return xe.reject.call(void 0,Ae),xe.promise}}),b({target:Q,stat:!0,forced:m||Me},{resolve:function(Ae){return D(m&&this===s?q:this,Ae)}}),b({target:Q,stat:!0,forced:Fe},{all:function(Ae){var xe=this,$=pe(xe),ee=$.resolve,Z=$.reject,ne=G(function(){var me=v(xe.resolve),we=[],Pe=0,Ne=1;E(Ae,function(Ge){var ze=Pe++,Ye=!1;we.push(void 0),Ne++,me.call(xe,Ge).then(function(at){Ye||(Ye=!0,we[ze]=at,--Ne||ee(we))},Z)}),--Ne||ee(we)});return ne.error&&Z(ne.value),$.promise},race:function(Ae){var xe=this,$=pe(xe),ee=$.reject,Z=G(function(){var ne=v(xe.resolve);E(Ae,function(me){ne.call(xe,me).then($.resolve,ee)})});return Z.error&&ee(Z.value),$.promise}})},{"../internals/a-function":5,"../internals/an-instance":9,"../internals/check-correctness-of-iteration":27,"../internals/classof-raw":28,"../internals/engine-v8-version":48,"../internals/export":50,"../internals/get-built-in":56,"../internals/global":59,"../internals/host-report-errors":62,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-object":74,"../internals/is-pure":75,"../internals/iterate":77,"../internals/microtask":81,"../internals/native-promise-constructor":82,"../internals/new-promise-capability":86,"../internals/perform":105,"../internals/promise-resolve":106,"../internals/redefine":108,"../internals/redefine-all":107,"../internals/set-species":116,"../internals/set-to-string-tag":117,"../internals/species-constructor":121,"../internals/task":130,"../internals/well-known-symbol":148}],182:[function(o,w,j){var c=o("../internals/export"),p=o("../internals/get-built-in"),d=o("../internals/a-function"),s=o("../internals/an-object"),g=o("../internals/is-object"),b=o("../internals/object-create"),m=o("../internals/function-bind"),o=o("../internals/fails"),l=p("Reflect","construct"),u=o(function(){function f(){}return!(l(function(){},[],f)instanceof f)}),a=!o(function(){l(function(){})}),p=u||a;c({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(f,h){d(f),s(h);var i=arguments.length<3?f:d(arguments[2]);if(a&&!u)return l(f,h,i);if(f==i){switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3])}var v=[null];return v.push.apply(v,h),new(m.apply(f,v))}return v=i.prototype,i=b(g(v)?v:Object.prototype),v=Function.apply.call(f,i,h),g(v)?v:i}})},{"../internals/a-function":5,"../internals/an-object":10,"../internals/export":50,"../internals/fails":51,"../internals/function-bind":55,"../internals/get-built-in":56,"../internals/is-object":74,"../internals/object-create":90}],183:[function(t,w,j){var c=t("../internals/export"),d=t("../internals/is-object"),s=t("../internals/an-object"),g=t("../internals/has"),b=t("../internals/object-get-own-property-descriptor"),m=t("../internals/object-get-prototype-of");c({target:"Reflect",stat:!0},{get:function o(l,u){var a,p=arguments.length<3?l:arguments[2];return s(l)===p?l[u]:(a=b.f(l,u))?g(a,"value")?a.value:a.get===void 0?void 0:a.get.call(p):d(a=m(l))?o(a,u,p):void 0}})},{"../internals/an-object":10,"../internals/export":50,"../internals/has":60,"../internals/is-object":74,"../internals/object-get-own-property-descriptor":93,"../internals/object-get-prototype-of":97}],184:[function(t,w,j){var c=t("../internals/descriptors"),d=t("../internals/global"),s=t("../internals/is-forced"),g=t("../internals/inherit-if-required"),b=t("../internals/object-define-property").f,m=t("../internals/object-get-own-property-names").f,o=t("../internals/is-regexp"),l=t("../internals/regexp-flags"),u=t("../internals/regexp-sticky-helpers"),a=t("../internals/redefine"),p=t("../internals/fails"),f=t("../internals/internal-state").set,h=t("../internals/set-species"),i=t("../internals/well-known-symbol")("match"),v=d.RegExp,S=v.prototype,M=/a/g,k=/a/g,E=new v(M)!==M,L=u.UNSUPPORTED_Y;if(c&&s("RegExp",!E||L||p(function(){return k[i]=!1,v(M)!=M||v(k)==k||v(M,"i")!="/a/i"}))){for(var O=function(D,F){var N,G=this instanceof O,R=o(D),B=F===void 0;return!G&&R&&D.constructor===O&&B?D:(E?R&&!B&&(D=D.source):D instanceof O&&(B&&(F=l.call(D)),D=D.source),L&&(N=!!F&&-1A;)(function(D){D in O||b(O,D,{configurable:!0,get:function(){return v[D]},set:function(F){v[D]=F}})})(P[A++]);(S.constructor=O).prototype=S,a(d,"RegExp",O)}h("RegExp")},{"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/inherit-if-required":67,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-regexp":76,"../internals/object-define-property":92,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/regexp-flags":111,"../internals/regexp-sticky-helpers":112,"../internals/set-species":116,"../internals/well-known-symbol":148}],185:[function(d,w,j){var c=d("../internals/export"),d=d("../internals/regexp-exec");c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},{"../internals/export":50,"../internals/regexp-exec":110}],186:[function(g,w,j){var c=g("../internals/redefine"),d=g("../internals/an-object"),o=g("../internals/fails"),s=g("../internals/regexp-flags"),g="toString",b=RegExp.prototype,m=b[g],o=o(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),l=m.name!=g;(o||l)&&c(RegExp.prototype,g,function(){var u=d(this),a=String(u.source),p=u.flags;return"/"+a+"/"+String(p===void 0&&u instanceof RegExp&&!("flags"in b)?s.call(u):p)},{unsafe:!0})},{"../internals/an-object":10,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-flags":111}],187:[function(d,w,j){var c=d("../internals/collection"),d=d("../internals/collection-strong");w.exports=c("Set",function(s){return function(){return s(this,arguments.length?arguments[0]:void 0)}},d)},{"../internals/collection":32,"../internals/collection-strong":30}],188:[function(m,w,j){var c=m("../internals/export"),d=m("../internals/object-get-own-property-descriptor").f,s=m("../internals/to-length"),g=m("../internals/not-a-regexp"),b=m("../internals/require-object-coercible"),u=m("../internals/correct-is-regexp-logic"),m=m("../internals/is-pure"),o="".endsWith,l=Math.min,u=u("endsWith");c({target:"String",proto:!0,forced:!!(m||u||!(c=d(String.prototype,"endsWith"))||c.writable)&&!u},{endsWith:function(a){var p=String(b(this)),f=(g(a),1=l.length?{value:void 0,done:!0}:(l=c(l,u),o.index+=l.length,{value:l,done:!1})})},{"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/string-multibyte":123}],191:[function(t,w,j){var c=t("../internals/fix-regexp-well-known-symbol-logic"),d=t("../internals/an-object"),s=t("../internals/to-length"),g=t("../internals/require-object-coercible"),b=t("../internals/advance-string-index"),m=t("../internals/regexp-exec-abstract");c("match",1,function(o,l,u){return[function(a){var p=g(this),f=a==null?void 0:a[o];return f!==void 0?f.call(a,p):new RegExp(a)[o](String(p))},function(a){var p=u(l,a,this);if(p.done)return p.value;var f=d(a),h=String(this);if(!f.global)return m(f,h);for(var i=f.unicode,v=[],S=f.lastIndex=0;(M=m(f,h))!==null;){var M=String(M[0]);(v[S]=M)===""&&(f.lastIndex=b(h,s(f.lastIndex),i)),S++}return S===0?null:v}]})},{"../internals/advance-string-index":8,"../internals/an-object":10,"../internals/fix-regexp-well-known-symbol-logic":52,"../internals/regexp-exec-abstract":109,"../internals/require-object-coercible":113,"../internals/to-length":136}],192:[function(t,w,j){var c=t("../internals/export"),d=t("../internals/string-pad").start;c({target:"String",proto:!0,forced:t("../internals/string-pad-webkit-bug")},{padStart:function(s){return d(this,s,1]*>)/g,h=/\$([$&'`]|\d\d?)/g;c("replace",2,function(i,v,S,M){var k=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=M.REPLACE_KEEPS_$0,L=k?"$":"$0";return[function(O,P){var A=m(this),D=O==null?void 0:O[i];return D!==void 0?D.call(O,A,P):v.call(String(A),O,P)},function(O,P){if(!k&&E||typeof P=="string"&&P.indexOf(L)===-1){var A=S(v,O,this,P);if(A.done)return A.value}for(var D,F=d(O),N=String(this),G=typeof P=="function",R=(G||(P=String(P)),F.global),B=(R&&(D=F.unicode,F.lastIndex=0),[]);(I=l(F,N))!==null&&(B.push(I),R);)String(I[0])===""&&(F.lastIndex=o(N,g(F.lastIndex),D));for(var V,X="",Q=0,oe=0;oe>>0;if(P==0)return[];if(E===void 0)return[O];if(!d(E))return S.call(O,E,P);for(var A,D,F,N=[],L=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),G=0,R=new RegExp(E.source,L+"g");(A=u.call(R,O))&&!(G<(D=R.lastIndex)&&(N.push(O.slice(G,A.index)),1=P));)R.lastIndex===A.index&&R.lastIndex++;return G===O.length?!F&&R.test("")||N.push(""):N.push(O.slice(G)),N.length>P?N.slice(0,P):N}:"0".split(void 0,0).length?function(E,L){return E===void 0&&L===0?[]:S.call(this,E,L)}:S;return[function(E,L){var O=g(this),P=E==null?void 0:E[v];return P!==void 0?P.call(E,O,L):k.call(String(O),E,L)},function(A,L){var O=M(k,A,this,L,k!==S);if(O.done)return O.value;var O=s(A),P=String(this),A=b(O,RegExp),D=O.unicode,F=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(i?"y":"g"),N=new A(i?O:"^(?:"+O.source+")",F),G=L===void 0?h:L>>>0;if(G==0)return[];if(P.length===0)return l(N,P)===null?[P]:[];for(var R=0,B=0,V=[];Ble.key){fe.splice(pe,0,le);break}pe===J&&fe.push(le)}se.updateURL()},forEach:function(le){for(var pe,se=V(this).entries,fe=S(le,16))return;for(Dt=0;Zt();){if(Yt=null,Dt>0)if(Zt()=="."&&Dt<4)Ze++;else return;if(!q.test(Zt()))return;for(;q.test(Zt());){if(Xr=parseInt(Zt(),10),Yt===null)Yt=Xr;else{if(Yt==0)return;Yt=Yt*10+Xr}if(Yt>255)return;Ze++}pt[qe]=pt[qe]*256+Yt,Dt++,(Dt==2||Dt==4)&&qe++}if(Dt!=4)return;break}else if(Zt()==":"){if(Ze++,!Zt())return}else if(Zt())return;pt[qe++]=Nt}if(ft!==null)for(xr=qe-ft,qe=7;qe!=0&&xr>0;)Yr=pt[qe],pt[qe--]=pt[ft+xr-1],pt[ft+--xr]=Yr;else if(qe!=8)return;return pt}(Ue.slice(1,-1)))?void(he.host=Qe):Q;if(Ce(he))return Ue=E(Ue),pe.test(Ue)||(Qe=function(De){var pt=De.split("."),qe,ft,Ze,Nt,Ht,Dt,Yt;if(pt.length&&pt[pt.length-1]==""&&pt.pop(),(qe=pt.length)>4)return De;for(ft=[],Ze=0;Ze1&&Nt.charAt(0)=="0"&&(Ht=Y.test(Nt)?16:8,Nt=Nt.slice(Ht==8?1:2)),Nt==="")Dt=0;else{if(!(Ht==10?re:Ht==8?te:le).test(Nt))return De;Dt=parseInt(Nt,Ht)}ft.push(Dt)}for(Ze=0;Ze=B(256,5-qe))return null}else if(Dt>255)return null;for(Yt=ft.pop(),Ze=0;Ze":1,"`":1}),ge=S({},Te,{"#":1,"?":1,"{":1,"}":1}),be=S({},ge,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Me=function(he,Ue){var Qe=k(he,0);return 32"u"&&c!==void 0&&{}.toString.call(c)==="[object process]",i=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function v(){var J=setTimeout;return function(){return J(M,1)}}var S=new Array(1e3);function M(){for(var J=0;JO,applyPalette:()=>function(G,R,B="rgb565"){if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256>24&255,q=te>>16&255,Y=te>>8&255,te=255&te,re=a(te,Y,q,z),re=re in I?I[re]:I[re]=function(J,ue,ve,Te,ge){let be=0,Me=1e100;for(let Ve=0;VeMe||(Fe=Ce[0],($e+=k(Fe-J))>Me||(Fe=Ce[1],($e+=k(Fe-ue))>Me||(Fe=Ce[2],($e+=k(Fe-ve))>Me||(Me=$e,be=Ve))))}return be}(te,Y,q,z,R);oe[ce]=re}else{const ce=B==="rgb444"?p:u;for(let J=0;J>16&255,pe=se>>8&255,se=255&se,fe=ce(se,pe,le),fe=fe in I?I[fe]:I[fe]=function(ue,ve,Te,ge){let be=0,Me=1e100;for(let Ve=0;VeMe||(Fe=Ce[1],($e+=k(Fe-ve))>Me||(Fe=Ce[2],($e+=k(Fe-Te))>Me||(Me=$e,be=Ve)))}return be}(se,pe,le,R);oe[J]=fe}}return oe},default:()=>N,nearestColor:()=>function(G,R,B=S){return G[E(G,R,B)]},nearestColorIndex:()=>E,nearestColorIndexWithDistance:()=>L,prequantize:()=>function(G,{roundRGB:R=5,roundAlpha:B=10,oneBitAlpha:V=null}={}){const X=new Uint32Array(G.buffer);for(let q=0;q>24&255;var Q,oe=z>>16&255,I=z>>8&255,z=255&z;Y=M(Y,B),V&&(Q=typeof V=="number"?V:127,Y=Y<=Q?0:255),z=M(z,R),I=M(I,R),oe=M(oe,R),X[q]=Y<<24|oe<<16|I<<8|z<<0}},quantize:()=>function(G,R,B={}){var{format:V="rgb565",clearAlpha:X=!0,clearAlphaColor:Q=0,clearAlphaThreshold:oe=0,oneBitAlpha:I=!1}=B;if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");G=new Uint32Array(G.buffer);let z=B.useSqrt!==!1;const q=V==="rgba4444",Y=function(He,Xe){const We=Xe==="rgb444"?4096:65536,je=new Array(We),Ae=He.length;if(Xe==="rgba4444")for(let st=0;st>24&255,$=Z>>16&255,ee=Z>>8&255,Z=255&Z,ne=a(Z,ee,$,xe);let Je=ne in je?je[ne]:je[ne]=v();Je.rc+=Z,Je.gc+=ee,Je.bc+=$,Je.ac+=xe,Je.cnt++}else if(Xe==="rgb444")for(let st=0;st>16&255,we=Pe>>8&255,Pe=255&Pe,Ne=p(Pe,we,me);let Je=Ne in je?je[Ne]:je[Ne]=v();Je.rc+=Pe,Je.gc+=we,Je.bc+=me,Je.cnt++}else for(let st=0;st>16&255,ze=Ye>>8&255,Ye=255&Ye,at=u(Ye,ze,Ge);let Je=at in je?je[at]:je[at]=v();Je.rc+=Ye,Je.gc+=ze,Je.bc+=Ge,Je.cnt++}return je}(G,V),te=Y.length,re=te-1,le=new Uint32Array(te+1);for(var pe=0,se=0;se>1,!(Y[fe=le[J]].err<=ue));ce=J)le[ce]=fe;le[ce]=se}var ve,Te=pe-R;for(se=0;se=ve.mtm&&Y[ve.nn].mtm<=ve.tm)break;for(ve.mtm==re?ge=le[1]=le[le[0]--]:(i(Y,ge,!1),ve.tm=se),ue=Y[ge].err,ce=1;(J=ce+ce)<=le[0]&&(JY[le[J+1]].err&&J++,!(ue<=Y[fe=le[J]].err));ce=J)le[ce]=fe;le[ce]=ge}var be=Y[ve.nn],Me=ve.cnt,Fe=be.cnt,Ce=1/(Me+Fe);q&&(ve.ac=Ce*(Me*ve.ac+Fe*be.ac)),ve.rc=Ce*(Me*ve.rc+Fe*be.rc),ve.gc=Ce*(Me*ve.gc+Fe*be.gc),ve.bc=Ce*(Me*ve.bc+Fe*be.bc),ve.cnt+=be.cnt,ve.mtm=++se,Y[be.bk].fw=be.fw,Y[be.fw].bk=be.bk,be.mtm=re}let $e=[];for(se=0;;0){let He=f(Math.round(Y[se].rc),0,255),Xe=f(Math.round(Y[se].gc),0,255),We=f(Math.round(Y[se].bc),0,255),je=255;q&&(je=f(Math.round(Y[se].ac),0,255),I&&(Ve=typeof I=="number"?I:127,je=je<=Ve?0:255),X&&je<=oe&&(He=Xe=We=Q,je=0));var Ve=q?[He,Xe,We,je]:[He,Xe,We];if(function(Ae,xe){for(let Z=0;Zfunction(G,R,B=5){if(G.length&&R.length){var V=G.map(z=>z.slice(0,3)),X=B*B,Q=G[0].length;for(let z=0;zQ?q.slice(0,3):q.slice();var I=L(V,q.slice(0,3),S),oe=I[0],I=I[1];0>>0),Q!=0&&(X=Math.max(X,256));const oe=B;B=new Uint8Array(X),0>=8,te-=8;if((ue>fe||pe)&&(pe?(se=le,fe=(1<>=8,te-=8;0>3}function a(G,R,B,V){return G>>4|240&R|(240&B)<<4|(240&V)<<8}function p(G,R,B){return G>>4<<8|240&R|B>>4}function f(G,R,B){return G>8&255)}function D(G,R){for(var B=0;B>1,p=-7,f=s?i-1:0,h=s?-1:1,i=c[d+f];for(f+=h,m=i&(1<<-p)-1,i>>=-p,p+=l;0>=-p,p+=g;0>1,f=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=g?0:v-1,i=g?1:-1,v=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(l=isNaN(d)?1:0,o=a):(o=Math.floor(Math.log(d)/Math.LN2),d*(g=Math.pow(2,-o))<1&&(o--,g*=2),2<=(d+=1<=o+p?f/g:f*Math.pow(2,1-p))*g&&(o++,g/=2),a<=o+p?(l=0,o=a):1<=o+p?(l=(d*g-1)*Math.pow(2,b),o+=p):(l=d*Math.pow(2,p-1)*Math.pow(2,b),o=0));8<=b;c[s+h]=255&l,h+=i,l/=256,b-=8);for(o=o<Math.abs($[0])&&(ee=1),ee=Math.abs($[2])>Math.abs($[ee])?2:ee}function A($,ee){$.f+=ee.f,$.b.f+=ee.b.f}function D($,ee,Z){return $=$.a,ee=ee.a,Z=Z.a,ee.b.a===$?Z.b.a===$?s(ee.a,Z.a)?b(Z.b.a,ee.a,Z.a)<=0:0<=b(ee.b.a,Z.a,ee.a):b(Z.b.a,$,Z.a)<=0:Z.b.a===$?0<=b(ee.b.a,$,ee.a):(ee=g(ee.b.a,$,ee.a),($=g(Z.b.a,$,Z.a))<=ee)}function F($){$.a.i=null;var ee=$.e;ee.a.c=ee.c,ee.c.a=ee.a,$.e=null}function N($,ee){f($.a),$.c=!1,($.a=ee).i=$}function G($){for(var ee=$.a.a;($=xe($)).a.a===ee;);return $.c&&(N($,ee=i(Ae($).a.b,$.a.e)),$=xe($)),$}function R($,ee,Z){var ne=new je;return ne.a=Z,ne.e=pe($.f,ee.e,ne),Z.i=ne}function B($,ee){switch($.s){case 100130:return(1&ee)!=0;case 100131:return ee!==0;case 100132:return 0>1]],Ne[Pe[ze]])?Xe:We)(Z,ze),Ne[we]=null,Ge[we]=Z.b,Z.b=we}else for(Z.c[-(we+1)]=null;0Math.max(Pe.a,Ge.a))){if(s(we,Pe)){if(0Z.f&&(Z.f*=2,Z.c=$e(Z.c,Z.f+1)),Z.b===0?me=ne:(me=Z.b,Z.b=Z.c[Z.b]),Z.e[me]=ee,Z.c[me]=ne,Z.d[ne]=me,Z.h&&We(Z,ne),me):(Z=$.a++,$.c[Z]=ee,-(Z+1))}function Fe($){if($.a===0)return He($.b);var ee=$.c[$.d[$.a-1]];if($.b.a!==0&&s(Ve($.b),ee))return He($.b);for(;--$.a,0<$.a&&$.c[$.d[$.a-1]]===null;);return ee}function Ce(){this.d=$e([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function $e($,ee){for(var Z=Array(ee),ne=0;ne<$.length;ne++)Z[ne]=$[ne];for(;ne$.a||s(ne[Pe],ne[Ge])){me[Z[we]=Pe]=we;break}me[Z[we]=Ge]=we,we=Ne}}function We($,ee){for(var Z=$.d,ne=$.e,me=$.c,we=ee,Pe=Z[we];;){var Ne=we>>1,Ge=Z[Ne];if(Ne==0||s(ne[Ge],ne[Pe])){me[Z[we]=Pe]=we;break}me[Z[we]=Ge]=we,we=Ne}}function je(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function Ae($){return $.e.c.b}function xe($){return $.e.a.b}(c=fe.prototype).x=function(){ce(this,0)},c.B=function($,ee){switch($){case 100142:return;case 100140:switch(ee){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=ee)}break;case 100141:return void(this.m=!!ee);default:return void J(this,100900)}J(this,100901)},c.y=function($){switch($){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:J(this,100900)}return!1},c.A=function($,ee,Z){this.j[0]=$,this.j[1]=ee,this.j[2]=Z},c.z=function($,ee){var Z=ee||null;switch($){case 100100:case 100106:this.h=Z;break;case 100104:case 100110:this.l=Z;break;case 100101:case 100107:this.k=Z;break;case 100102:case 100108:this.i=Z;break;case 100103:case 100109:this.p=Z;break;case 100105:case 100111:this.o=Z;break;case 100112:this.r=Z;break;default:J(this,100900)}},c.C=function($,ee){var Z=!1,ne=[0,0,0];ce(this,2);for(var me=0;me<3;++me){var we=$[me];we<-1e150&&(we=-1e150,Z=!0),1e150ne[ze]&&(ne[ze]=Ye,me[ze]=Z)}if(ne[1]-Ne[1]>ne[Z=0]-Ne[0]&&(Z=1),Ne[Z=ne[2]-Ne[2]>ne[Z]-Ne[Z]?2:Z]>=ne[Z])Pe[0]=0,Pe[1]=0,Pe[2]=1;else{for(Ne=Ge[Z],me=me[Z],Ge=[ne=0,0,0],Ne=[Ne.g[0]-me.g[0],Ne.g[1]-me.g[1],Ne.g[2]-me.g[2]],ze=[0,0,0],Z=we.e;Z!==we;Z=Z.e)ze[0]=Z.g[0]-me.g[0],ze[1]=Z.g[1]-me.g[1],ze[2]=Z.g[2]-me.g[2],Ge[0]=Ne[1]*ze[2]-Ne[2]*ze[1],Ge[1]=Ne[2]*ze[0]-Ne[0]*ze[2],Ge[2]=Ne[0]*ze[1]-Ne[1]*ze[0],ne<(Ye=Ge[0]*Ge[0]+Ge[1]*Ge[1]+Ge[2]*Ge[2])&&(ne=Ye,Pe[0]=Ge[0],Pe[1]=Ge[1],Pe[2]=Ge[2]);ne<=0&&(Pe[0]=Pe[1]=Pe[2]=0,Pe[P(Ne)]=1)}we=!0}for(Ge=P(Pe),Z=this.b.c,ne=(Ge+1)%3,me=(Ge+2)%3,Ge=0>=1;)++p;if(h=1<>8&255,s[o++]=255&b,s[o++]=b>>8&255,s[o++]=(u!==null?128:0)|p,s[o++]=f,s[o++]=0,u!==null)for(var i=0,v=u.length;i>16&255,s[o++]=S>>8&255,s[o++]=255&S}if(l!==null){if(l<0||65535>8&255,s[o++]=0}var M=!1;this.addFrame=function(k,E,L,O,P,A){if(M===!0&&(--o,M=!1),A=A===void 0?{}:A,k<0||E<0||65535>=1;)++N;var G=1<>8&255,s[o++]=X,s[o++]=0),s[o++]=44,s[o++]=255&k,s[o++]=k>>8&255,s[o++]=255&E,s[o++]=E>>8&255,s[o++]=255&L,s[o++]=L>>8&255,s[o++]=255&O,s[o++]=O>>8&255,s[o++]=D===!0?128|N-1:0,D===!0)for(var Q=0,oe=F.length;Q>16&255,s[o++]=I>>8&255,s[o++]=255&I}return o=function(z,q,Y,te){z[q++]=Y;var re=q++,le=1<>=8,J-=8,q===re+256&&(z[re]=255,re=q++)}function Te(He){ue|=He<>=8,J-=8,q===re+256&&(z[re]=255,re=q++);fe===4096?(Te(le),fe=1+se,ce=Y+1,be={}):(1<>=p,h-=p,E==l)a=1+u,f=(1<<(p=o+1))-1,k=null;else{if(E==u)break;for(var L=E>8,++O;var A=P;if(m>=8;k!==null&&a<4096&&(M[a++]=k<<8|A,f+1<=a&&p<12&&(++p,f=f<<1|1)),k=E}}v!==m&&console.log("Warning, gif stream shorter than expected.")}try{j.GifWriter=c,j.GifReader=function(s){var g=0;if(s[g++]!==71||s[g++]!==73||s[g++]!==70||s[g++]!==56||(s[g++]+1&253)!=56||s[g++]!==97)throw new Error("Invalid GIF 87a/89a header.");var b=s[g++]|s[g++]<<8,m=s[g++]|s[g++]<<8,o=s[g++],l=1<<1+(7&o),u=(s[g++],s[g++],null),a=null,p=(o>>7&&(u=g,g+=3*(a=l)),!0),f=[],h=0,i=null,v=0,S=null;for(this.width=b,this.height=m;p&&g>2&7,g++;break;case 254:for(;;){if(!(0<=(k=s[g++])))throw Error("Invalid block size");if(k===0)break;g+=k}break;default:throw new Error("Unknown graphic control label: 0x"+s[g-1].toString(16))}break;case 44:var k,E=s[g++]|s[g++]<<8,L=s[g++]|s[g++]<<8,O=s[g++]|s[g++]<<8,P=s[g++]|s[g++]<<8,R=s[g++],A=R>>6&1,D=1<<1+(7&R),F=u,N=a,G=!1,R=(R>>7&&(G=!0,F=g,g+=3*(N=D)),g);for(g++;;){if(!(0<=(k=s[g++])))throw Error("Invalid block size");if(k===0)break;g+=k}f.push({x:E,y:L,width:O,height:P,has_local_palette:G,palette_offset:F,palette_size:N,data_offset:R,data_length:g-R,transparent_index:i,interlaced:!!A,delay:h,disposal:v});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+s[g-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return S},this.frameInfo=function(B){if(B<0||B>=f.length)throw new Error("Frame index out of range.");return f[B]},this.decodeAndBlitFrameBGRA=function(B,V){for(var B=this.frameInfo(B),X=B.width*B.height,Q=new Uint8Array(X),oe=(d(s,B.data_offset,Q,X),B.palette_offset),I=B.transparent_index,z=(I===null&&(I=256),B.width),q=b-z,Y=z,te=4*(B.y*b+B.x),re=4*((B.y+B.height)*b+B.x),le=te,pe=4*q,se=(B.interlaced===!0&&(pe+=4*b*7),8),fe=0,ce=Q.length;fe>=1)),ve===I?le+=4:(J=s[oe+3*ve],ue=s[oe+3*ve+1],ve=s[oe+3*ve+2],V[le++]=ve,V[le++]=ue,V[le++]=J,V[le++]=255),--Y}},this.decodeAndBlitFrameRGBA=function(B,V){for(var B=this.frameInfo(B),X=B.width*B.height,Q=new Uint8Array(X),oe=(d(s,B.data_offset,Q,X),B.palette_offset),I=B.transparent_index,z=(I===null&&(I=256),B.width),q=b-z,Y=z,te=4*(B.y*b+B.x),re=4*((B.y+B.height)*b+B.x),le=te,pe=4*q,se=(B.interlaced===!0&&(pe+=4*b*7),8),fe=0,ce=Q.length;fe>=1)),ve===I?le+=4:(J=s[oe+3*ve],ue=s[oe+3*ve+1],ve=s[oe+3*ve+2],V[le++]=J,V[le++]=ue,V[le++]=ve,V[le++]=255),--Y}}}}catch{}},{}],247:[function(t,w,j){(function(c){var d,s;d=this,s=function(g){function b(U){if(this==null)throw TypeError();var x,T=String(this),C=T.length,U=U?Number(U):0;if(!((U=U!=U?0:U)<0||C<=U))return 55296<=(x=T.charCodeAt(U))&&x<=56319&&U+1>>16-x;return y.tag>>>=x,y.bitcount-=x,C+T}function D(y,x){for(;y.bitcount<24;)y.tag|=y.source[y.sourceIndex++]<>>=1,T+=x.table[++U],0<=(C-=x.table[U]););return y.tag=H,y.bitcount-=U,x.trans[T+C]}function F(y,x,T){for(;;){var C=D(y,x);if(C===256)return o;if(C<256)y.dest[y.destLen++]=C;else for(var U,H=A(y,h[C-=257],i[C]),C=D(y,T),W=U=y.destLen-A(y,v[C],S[C]);W>>=1,C=U,A(H,2,0)){case 0:T=function(ke){for(var tt,lt;8this.x2&&(this.x2=y)),typeof x=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=x,this.y2=x),xthis.y2&&(this.y2=x))},X.prototype.addX=function(y){this.addPoint(y,null)},X.prototype.addY=function(y){this.addPoint(null,y)},X.prototype.addBezier=function(y,x,T,C,U,H,W,K){var ae=[y,x],ie=[T,C],ye=[U,H],Se=[W,K];this.addPoint(y,x),this.addPoint(W,K);for(var _e=0;_e<=1;_e++){var de,Re=6*ae[_e]-12*ie[_e]+6*ye[_e],Oe=-3*ae[_e]+9*ie[_e]-9*ye[_e]+3*Se[_e],Le=3*ie[_e]-3*ae[_e];Oe==0?Re==0||0<(de=-Le/Re)&&de<1&&(_e===0&&this.addX(V(ae[_e],ie[_e],ye[_e],Se[_e],de)),_e===1&&this.addY(V(ae[_e],ie[_e],ye[_e],Se[_e],de))):(de=Math.pow(Re,2)-4*Le*Oe)<0||(0<(Le=(-Re+Math.sqrt(de))/(2*Oe))&&Le<1&&(_e===0&&this.addX(V(ae[_e],ie[_e],ye[_e],Se[_e],Le)),_e===1&&this.addY(V(ae[_e],ie[_e],ye[_e],Se[_e],Le))),0<(Le=(-Re-Math.sqrt(de))/(2*Oe))&&Le<1&&(_e===0&&this.addX(V(ae[_e],ie[_e],ye[_e],Se[_e],Le)),_e===1&&this.addY(V(ae[_e],ie[_e],ye[_e],Se[_e],Le))))}},X.prototype.addQuad=function(y,x,T,C,U,H){T=y+2/3*(T-y),C=x+2/3*(C-x),this.addBezier(y,x,T,C,T+1/3*(U-y),C+1/3*(H-x),U,H)},Q.prototype.moveTo=function(y,x){this.commands.push({type:"M",x:y,y:x})},Q.prototype.lineTo=function(y,x){this.commands.push({type:"L",x:y,y:x})},Q.prototype.curveTo=Q.prototype.bezierCurveTo=function(y,x,T,C,U,H){this.commands.push({type:"C",x1:y,y1:x,x2:T,y2:C,x:U,y:H})},Q.prototype.quadTo=Q.prototype.quadraticCurveTo=function(y,x,T,C){this.commands.push({type:"Q",x1:y,y1:x,x:T,y:C})},Q.prototype.close=Q.prototype.closePath=function(){this.commands.push({type:"Z"})},Q.prototype.extend=function(y){var x;if(y.commands)y=y.commands;else if(y instanceof X)return x=y,this.moveTo(x.x1,x.y1),this.lineTo(x.x2,x.y1),this.lineTo(x.x2,x.y2),this.lineTo(x.x1,x.y2),void this.close();Array.prototype.push.apply(this.commands,y)},Q.prototype.getBoundingBox=function(){for(var y=new X,x=0,T=0,C=0,U=0,H=0;H>8&255,255&y]},te.USHORT=re(2),Y.SHORT=function(y){return[(y=32768<=y?-(65536-y):y)>>8&255,255&y]},te.SHORT=re(2),Y.UINT24=function(y){return[y>>16&255,y>>8&255,255&y]},te.UINT24=re(3),Y.ULONG=function(y){return[y>>24&255,y>>16&255,y>>8&255,255&y]},te.ULONG=re(4),Y.LONG=function(y){return[(y=2147483648<=y?-(4294967296-y):y)>>24&255,y>>16&255,y>>8&255,255&y]},te.LONG=re(4),Y.FIXED=Y.ULONG,te.FIXED=te.ULONG,Y.FWORD=Y.SHORT,te.FWORD=te.SHORT,Y.UFWORD=Y.USHORT,te.UFWORD=te.USHORT,Y.LONGDATETIME=function(y){return[0,0,0,0,y>>24&255,y>>16&255,y>>8&255,255&y]},te.LONGDATETIME=re(8),Y.TAG=function(y){return z.argument(y.length===4,"Tag should be exactly 4 ASCII characters."),[y.charCodeAt(0),y.charCodeAt(1),y.charCodeAt(2),y.charCodeAt(3)]},te.TAG=re(4),Y.Card8=Y.BYTE,te.Card8=te.BYTE,Y.Card16=Y.USHORT,te.Card16=te.USHORT,Y.OffSize=Y.BYTE,te.OffSize=te.BYTE,Y.SID=Y.USHORT,te.SID=te.USHORT,Y.NUMBER=function(y){return-107<=y&&y<=107?[y+139]:108<=y&&y<=1131?[247+((y-=108)>>8),255&y]:-1131<=y&&y<=-108?[251+((y=-y-108)>>8),255&y]:-32768<=y&&y<=32767?Y.NUMBER16(y):Y.NUMBER32(y)},te.NUMBER=function(y){return Y.NUMBER(y).length},Y.NUMBER16=function(y){return[28,y>>8&255,255&y]},te.NUMBER16=re(3),Y.NUMBER32=function(y){return[29,y>>24&255,y>>16&255,y>>8&255,255&y]},te.NUMBER32=re(5),Y.REAL=function(y){for(var x=y.toString(),T=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(x),C=(T&&(T=parseFloat("1e"+((T[2]?+T[2]:0)+T[1].length)),x=(Math.round(y*T)/T).toString()),""),U=0,H=x.length;U>8&255,x[x.length]=255&C}return x},te.UTF16=function(y){return 2*y.length};var le,pe={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},se=(q.MACSTRING=function(y,x,T,C){var U=pe[C];if(U!==void 0){for(var H="",W=0;W>8&255,_e+256&255)}return ie})(y,C,x);return x},Y.INDEX=function(y){for(var x=1,T=[x],C=[],U=0;U>8,x[ye+1]=255&Se,x=x.concat(C[ie])}return x},te.TABLE=function(y){for(var x=0,T=y.fields.length,C=0;C>1,K.skip("uShort",3),Le.glyphIndexMap={};for(var lt,rt=new xe.Parser(Ee,ke+tt+14),nt=new xe.Parser(Ee,ke+tt+16+2*lt),ut=new xe.Parser(Ee,ke+tt+16+4*lt),xt=new xe.Parser(Ee,ke+tt+16+6*lt),It=ke+tt+16+8*lt,zt=0;zt>4,W=15&W;if(H==15||(C+=U[H],W==15))break;C+=U[W]}return parseFloat(C)}if(32<=x&&x<=246)return x-139;if(247<=x&&x<=250)return 256*(x-247)+y.parseByte()+108;if(251<=x&&x<=254)return 256*-(x-251)-y.parseByte()-108;throw new Error("Invalid b0 "+x)}function sr(y,x,T){var C=new xe.Parser(y,x=x!==void 0?x:0),U=[],H=[];for(T=T!==void 0?T:y.length;C.relativeOffset>1,de.length=0,Oe=!0}return function nt(ut){for(var xt,It,zt,ir,ar,Ur,_t,kt,gt,lr,Pt,tr,Tt=0;TtMath.abs(tr-ke)?Ee=Pt+de.shift():ke=tr+de.shift(),_e.curveTo(C,U,H,W,_t,kt),_e.curveTo(gt,lr,Pt,tr,Ee,ke);break;default:console.log("Glyph "+x.index+": unknown operator 1200"+Qt),de.length=0}break;case 14:0>3;break;case 21:2>16),Tt+=2;break;case 29:ar=de.pop()+y.gsubrsBias,(Ur=y.gsubrs[ar])&&nt(Ur);break;case 30:for(;0=T.begin&&y=me.length&&(H=C.parseChar(),T.names.push(C.parseString(H)));break;case 2.5:T.numberOfGlyphs=C.parseUShort(),T.offset=new Array(T.numberOfGlyphs);for(var K=0;KSe.value.tag?1:-1}),x.fields=x.fields.concat(C),x.fields=x.fields.concat(U),x}function Eu(y,x,T){for(var C=0;C 123 are reserved for internal usage");de|=1<>>1,H=y[U].tag;if(H===x)return U;H>>1,H=y[U];if(H===x)return U;H>>1,W=(U=y[H]).start;if(W===x)return U;W(U=y[T-1]).end?0:U}function Ls(y,x){this.font=y,this.tableName=x}function As(y){Ls.call(this,y,"gpos")}function Zr(y){Ls.call(this,y,"gsub")}function Mu(y,x,T){for(var C=y.subtables,U=0;Ux.points.length-1||C.matchedPoints[1]>U.points.length-1)throw Error("Matched points out of range in "+x.name);var W=x.points[C.matchedPoints[0]],K=U.points[C.matchedPoints[1]],C={xScale:C.xScale,scale01:C.scale01,scale10:C.scale10,yScale:C.yScale,dx:0,dy:0},K=ta([K],C)[0];C.dx=W.x-K.x,C.dy=W.y-K.y,H=ta(U.points,C)}x.points=x.points.concat(H)}}return Pu(x.points)}(As.prototype=Ls.prototype={searchTag:ea,binSearch:ku,getTable:function(y){var x=this.font.tables[this.tableName];return x=!x&&y?this.font.tables[this.tableName]=this.createDefaultTable():x},getScriptNames:function(){var y=this.getTable();return y?y.scripts.map(function(x){return x.tag}):[]},getDefaultScriptName:function(){var y=this.getTable();if(y){for(var x=!1,T=0;T=W[x-1].tag,"Features must be added in alphabetical order."),W.push(U={tag:T,feature:{params:0,lookupListIndexes:[]}}),H.push(x),U.feature}},getLookupTables:function(H,x,T,C,U){var H=this.getFeatureTable(H,x,T,U),W=[];if(H){for(var K,ae=H.lookupListIndexes,ie=this.font.tables[this.tableName].lookups,ye=0;ye",H),x.stack.push(Math.round(64*H))}function na(y,x){var T=x.stack,C=T.pop(),U=x.fv,H=x.pv,W=x.ppem,K=x.deltaBase+16*(y-1),ae=x.deltaShift,ie=x.z0;g.DEBUG&&console.log(x.step,"DELTAP["+y+"]",C,T);for(var ye=0;ye>4)===W&&(0<=(_e=(15&_e)-8)&&_e++,g.DEBUG&&console.log(x.step,"DELTAPFIX",Se,"by",_e*ae),Se=ie[Se],U.setRelative(Se,Se,_e*ae,H))}}function Ds(y,x){var T=x.stack,C=T.pop();g.DEBUG&&console.log(x.step,"ROUND[]"),T.push(64*x.round(C/64))}function oa(y,x){var T=x.stack,C=T.pop(),U=x.ppem,H=x.deltaBase+16*(y-1),W=x.deltaShift;g.DEBUG&&console.log(x.step,"DELTAC["+y+"]",C,T);for(var K=0;K>4)===U&&(0<=(ie=(15&ie)-8)&&ie++,ie=ie*W,g.DEBUG&&console.log(x.step,"DELTACFIX",ae,"by",ie),x.cvt[ae]+=ie)}}function $u(y,x){var T,U=x.stack,C=U.pop(),U=U.pop(),H=x.z2[C],W=x.z1[U];g.DEBUG&&console.log(x.step,"SDPVTL["+y+"]",C,U),C=y?(T=H.y-W.y,W.x-H.x):(T=W.x-H.x,W.y-H.y),x.dpv=No(T,C)}function yn(y,x){var T=x.stack,C=x.prog,U=x.ip;g.DEBUG&&console.log(x.step,"PUSHB["+y+"]");for(var H=0;H":"_")+(C?"R":"_")+(U===0?"Gr":U===1?"Bl":U===2?"Wh":"")+"]",y?ae+"("+H.cvt[ae]+","+K+")":"",ie,"(d =",W,"->",Le*Oe,")"),H.rp1=H.rp0,H.rp2=ie,x&&(H.rp0=ie)}Au.prototype.exec=function(y,x){if(typeof x!="number")throw new Error("Point size is not a number!");if(!(2",C),K.interpolate(Se,H,W,ae),K.touch(Se)}y.loop=1},Xu.bind(void 0,0),Xu.bind(void 0,1),function(y){for(var x=y.stack,T=y.rp0,C=y.z0[T],U=y.loop,H=y.fv,W=y.pv,K=y.z1;U--;){var ae=x.pop(),ie=K[ae];g.DEBUG&&console.log(y.step,(1"u"?$h:Kh)(y,function(T,C){if(T)return x(T);var U;try{U=sa(C)}catch(H){return x(H,null)}return x(null,U)})},g.loadSync=function(y){return sa(Cu(t("fs").readFileSync(y)))},Object.defineProperty(g,"__esModule",{value:!0})},s(typeof j=="object"&&w!==void 0?j:d.opentype={})}).call(this,t("buffer").Buffer)},{buffer:4,fs:2}],248:[function(t,w,j){(function(c){function d(b,m){for(var o=0,l=b.length-1;0<=l;l--){var u=b[l];u==="."?b.splice(l,1):u===".."?(b.splice(l,1),o++):o&&(b.splice(l,1),o--)}if(m)for(;o--;)b.unshift("..");return b}function s(b,m){if(b.filter)return b.filter(m);for(var o=[],l=0;l'.concat(h,"").concat(a,""),this.dummyDOM||(this.dummyDOM=document.getElementById(f).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[u]?this.descriptions.fallbackElements[u].innerHTML!==h&&(this.descriptions.fallbackElements[u].innerHTML=h):this._describeElementHTML("fallback",u,h),p===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[u]?this.descriptions.labelElements[u].innerHTML!==h&&(this.descriptions.labelElements[u].innerHTML=h):this._describeElementHTML("label",u,h)))},c.default.prototype._describeHTML=function(u,a){var p,f=this.canvas.id;u==="fallback"?(this.dummyDOM.querySelector("#".concat(f+d))?this.dummyDOM.querySelector("#"+f+g).insertAdjacentHTML("beforebegin",'

        ')):(p='

        '),this.dummyDOM.querySelector("#".concat(f,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(f,"accessibleOutput")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#".concat(f)).innerHTML=p),this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(f).concat(s)),this.descriptions.fallback.innerHTML=a):u==="label"&&(this.dummyDOM.querySelector("#".concat(f+b))?this.dummyDOM.querySelector("#".concat(f+o))&&this.dummyDOM.querySelector("#".concat(f+o)).insertAdjacentHTML("beforebegin",'

        ')):(p='

        '),this.dummyDOM.querySelector("#".concat(f,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(f,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#"+f).insertAdjacentHTML("afterend",p)),this.descriptions.label=this.dummyDOM.querySelector("#"+f+m),this.descriptions.label.innerHTML=a)},c.default.prototype._describeElementHTML=function(u,a,p){var f,h=this.canvas.id;u==="fallback"?(this.dummyDOM.querySelector("#".concat(h+d))?this.dummyDOM.querySelector("#"+h+g)||this.dummyDOM.querySelector("#"+h+s).insertAdjacentHTML("afterend",'
        Canvas elements and their descriptions
        ')):(f='
        Canvas elements and their descriptions
        '),this.dummyDOM.querySelector("#".concat(h,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(h,"accessibleOutput")).insertAdjacentHTML("beforebegin",f):this.dummyDOM.querySelector("#"+h).innerHTML=f),(f=document.createElement("tr")).id=h+"_fte_"+a,this.dummyDOM.querySelector("#"+h+g).appendChild(f),this.descriptions.fallbackElements[a]=this.dummyDOM.querySelector("#".concat(h).concat("_fte_").concat(a)),this.descriptions.fallbackElements[a].innerHTML=p):u==="label"&&(this.dummyDOM.querySelector("#".concat(h+b))?this.dummyDOM.querySelector("#".concat(h+o))||this.dummyDOM.querySelector("#"+h+m).insertAdjacentHTML("afterend",'
        ')):(f='
        '),this.dummyDOM.querySelector("#".concat(h,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(h,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",f):this.dummyDOM.querySelector("#"+h).insertAdjacentHTML("afterend",f)),(u=document.createElement("tr")).id=h+"_lte_"+a,this.dummyDOM.querySelector("#"+h+o).appendChild(u),this.descriptions.labelElements[a]=this.dummyDOM.querySelector("#".concat(h).concat("_lte_").concat(a)),this.descriptions.labelElements[a].innerHTML=p)},t=c.default,j.default=t},{"../core/main":273,"core-js/modules/es.array.concat":151,"core-js/modules/es.regexp.exec":185,"core-js/modules/es.string.ends-with":188,"core-js/modules/es.string.replace":194}],254:[function(t,w,j){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateGridOutput=function(c){var d,s,g,b;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(d=this._accessibleOutputs[c],g=function(m,o,l,u){return o="".concat(o," canvas, ").concat(l," by ").concat(u," pixels, contains ").concat(m[0]),o=(m[0]===1?"".concat(o," shape: "):"".concat(o," shapes: ")).concat(m[1]),o}((s=function(m,o){var l,u="",a="",p=0;for(l in o){var f,h=0;for(f in o[l]){var i='
      • ').concat(o[l][f].color," ").concat(l,",");l==="line"?i+=" location = ".concat(o[l][f].pos,", length = ").concat(o[l][f].length," pixels"):(i+=" location = ".concat(o[l][f].pos),l!=="point"&&(i+=", area = ".concat(o[l][f].area," %")),i+="
      • "),u+=i,h++,p++}a=1').concat(o[l][h].color," ").concat(l,"
        "):'').concat(o[l][h].color," ").concat(l," midpoint"),f[o[l][h].loc.locY][o[l][h].loc.locX]?f[o[l][h].loc.locY][o[l][h].loc.locX]=f[o[l][h].loc.locY][o[l][h].loc.locX]+" "+i:f[o[l][h].loc.locY][o[l][h].loc.locX]=i,a++}for(u in f){var v,S="";for(v in f[u])S+="",f[u][v]!==void 0&&(S+=f[u][v]),S+="";p=p+S+""}return p}(c,this.ingredients.shapes),g!==d.summary.innerHTML&&(d.summary.innerHTML=g),b!==d.map.innerHTML&&(d.map.innerHTML=b),s.details!==d.shapeDetails.innerHTML&&(d.shapeDetails.innerHTML=s.details),this._accessibleOutputs[c]=d)},t=t.default,j.default=t},{"../core/main":273,"core-js/modules/es.array.concat":151,"core-js/modules/es.array.from":157,"core-js/modules/es.array.map":163,"core-js/modules/es.string.iterator":190}],255:[function(t,w,j){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var c=(t=t("../core/main"))&&t.__esModule?t:{default:t};function d(g){return function(b){if(Array.isArray(b)){for(var m=0,o=new Array(b.length);m')):this.dummyDOM.querySelector("#".concat(u)).innerHTML='
        '))):b==="Label"&&(m=u+g+(a=b),this.dummyDOM.querySelector("#".concat(o=u+"accessibleOutput"+b))||(this.dummyDOM.querySelector("#".concat(u,"_Label"))?this.dummyDOM.querySelector("#".concat(u,"_Label")):this.dummyDOM.querySelector("#".concat(u))).insertAdjacentHTML("afterend",'
        '))),this._accessibleOutputs[m]={},g==="textOutput"?(a="#".concat(u,"gridOutput").concat(a),l='
        Text Output

          '),this.dummyDOM.querySelector(a)?this.dummyDOM.querySelector(a).insertAdjacentHTML("beforebegin",l):this.dummyDOM.querySelector("#".concat(o)).innerHTML=l,this._accessibleOutputs[m].list=this.dummyDOM.querySelector("#".concat(m,"_list"))):g==="gridOutput"&&(a="#".concat(u,"textOutput").concat(a),l='
          Grid Output

            '),this.dummyDOM.querySelector(a)?this.dummyDOM.querySelector(a).insertAdjacentHTML("afterend",l):this.dummyDOM.querySelector("#".concat(o)).innerHTML=l,this._accessibleOutputs[m].map=this.dummyDOM.querySelector("#".concat(m,"_map"))),this._accessibleOutputs[m].shapeDetails=this.dummyDOM.querySelector("#".concat(m,"_shapeDetails")),this._accessibleOutputs[m].summary=this.dummyDOM.querySelector("#".concat(m,"_summary"))},c.default.prototype._updateAccsOutput=function(){var g=this.canvas.id;JSON.stringify(this.ingredients.shapes)!==this.ingredients.pShapes&&(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(g+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(g+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(g+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(g+"gridOutputLabel"))},c.default.prototype._accsBackground=function(g){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==g&&(this.ingredients.colors.backgroundRGBA=g,this.ingredients.colors.background=this._rgbColorName(g))},c.default.prototype._accsCanvasColors=function(g,b){g==="fill"?this.ingredients.colors.fillRGBA!==b&&(this.ingredients.colors.fillRGBA=b,this.ingredients.colors.fill=this._rgbColorName(b)):g==="stroke"&&this.ingredients.colors.strokeRGBA!==b&&(this.ingredients.colors.strokeRGBA=b,this.ingredients.colors.stroke=this._rgbColorName(b))},c.default.prototype._accsOutput=function(g,b){g==="ellipse"&&b[2]===b[3]?g="circle":g==="rectangle"&&b[2]===b[3]&&(g="square");var m,o,l={},u=!0,a=function(f,h){var i;return f=f==="rectangle"||f==="ellipse"||f==="arc"||f==="circle"||f==="square"?(i=Math.round(h[0]+h[2]/2),Math.round(h[1]+h[3]/2)):f==="triangle"?(i=(h[0]+h[2]+h[4])/3,(h[1]+h[3]+h[5])/3):f==="quadrilateral"?(i=(h[0]+h[2]+h[4]+h[6])/4,(h[1]+h[3]+h[5]+h[7])/4):f==="line"?(i=(h[0]+h[2])/2,(h[1]+h[3])/2):(i=h[0],h[1]),[i,f]}(g,b);if(g==="line"?(l.color=this.ingredients.colors.stroke,l.length=Math.round(this.dist(b[0],b[1],b[2],b[3])),m=this._getPos(b[0],[1]),o=this._getPos(b[2],[3]),l.loc=s(a,this.width,this.height),l.pos=m===o?"at ".concat(m):"from ".concat(m," to ").concat(o)):(g==="point"?l.color=this.ingredients.colors.stroke:(l.color=this.ingredients.colors.fill,l.area=this._getArea(g,b)),l.pos=this._getPos.apply(this,d(a)),l.loc=s(a,this.width,this.height)),this.ingredients.shapes[g]){if(this.ingredients.shapes[g]!==[l]){for(var p in this.ingredients.shapes[g])JSON.stringify(this.ingredients.shapes[g][p])===JSON.stringify(l)&&(u=!1);u===!0&&this.ingredients.shapes[g].push(l)}}else this.ingredients.shapes[g]=[l]},c.default.prototype._getPos=function(o,m){var o=new DOMPointReadOnly(o,m),m=this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform(),o=o.matrixTransform(m),m=o.x,o=o.y,l=this.width,u=this.height;return m<.4*l?o<.4*u?"top left":.6*uMath.PI?l+=o:l-=o)):g==="ellipse"||g==="circle"?l=3.14*b[2]/2*b[3]/2:g==="line"||g==="point"?l=0:g==="quadrilateral"?l=Math.abs((b[6]+b[0])*(b[7]-b[1])+(b[0]+b[2])*(b[1]-b[3])+(b[2]+b[4])*(b[3]-b[5])+(b[4]+b[6])*(b[5]-b[7]))/2:g==="rectangle"||g==="square"?l=b[2]*b[3]:g==="triangle"&&(l=Math.abs(b[0]*(b[3]-b[5])+b[2]*(b[5]-b[1])+b[4]*(b[1]-b[3]))/2),this.width*this._pixelDensity),a=this.height*this._pixelDensity,p=[new DOMPoint(0,0),new DOMPoint(u,0),new DOMPoint(u,a),new DOMPoint(0,a)],f=(this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform()).inverse(),h=p.map(function(v){return v.matrixTransform(f)}),i=Math.abs((h[3].x+h[0].x)*(h[3].y-h[0].y)+(h[0].x+h[1].x)*(h[0].y-h[1].y)+(h[1].x+h[2].x)*(h[1].y-h[2].y)+(h[2].x+h[3].x)*(h[2].y-h[3].y))/2;return Math.round(100*l/i)},t=c.default,j.default=t},{"../core/main":273,"core-js/modules/es.array.concat":151,"core-js/modules/es.array.fill":154,"core-js/modules/es.array.from":157,"core-js/modules/es.array.iterator":160,"core-js/modules/es.array.map":163,"core-js/modules/es.number.to-fixed":173,"core-js/modules/es.object.to-string":180,"core-js/modules/es.regexp.to-string":186,"core-js/modules/es.string.iterator":190,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/web.dom-collections.iterator":236}],256:[function(t,w,j){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.concat"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateTextOutput=function(c){var d,s,g,b;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(d=this._accessibleOutputs[c],g=function(m,o,l,u){return l="Your output is a, ".concat(l," by ").concat(u," pixels, ").concat(o," canvas containing the following"),l=m===1?"".concat(l," shape:"):"".concat(l," ").concat(m," shapes:"),l}((s=function(m,o){var l,u="",a=0;for(l in o)for(var p in o[l]){var f='
          • ').concat(o[l][p].color," ").concat(l,"");l==="line"?f+=", ".concat(o[l][p].pos,", ").concat(o[l][p].length," pixels long.
          • "):(f+=", at ".concat(o[l][p].pos),l!=="point"&&(f+=", covering ".concat(o[l][p].area,"% of the canvas")),f+="."),u+=f,a++}return{numShapes:a,listShapes:u}}(c,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),b=function(m,o){var l,u="",a=0;for(l in o)for(var p in o[l]){var f='').concat(o[l][p].color," ").concat(l,"");l==="line"?f+="location = ".concat(o[l][p].pos,"length = ").concat(o[l][p].length," pixels"):(f+="location = ".concat(o[l][p].pos,""),l!=="point"&&(f+=" area = ".concat(o[l][p].area,"%")),f+=""),u+=f,a++}return u}(c,this.ingredients.shapes),g!==d.summary.innerHTML&&(d.summary.innerHTML=g),s.listShapes!==d.list.innerHTML&&(d.list.innerHTML=s.listShapes),b!==d.shapeDetails.innerHTML&&(d.shapeDetails.innerHTML=b),this._accessibleOutputs[c]=d)},t=t.default,j.default=t},{"../core/main":273,"core-js/modules/es.array.concat":151}],257:[function(t,w,j){var c=(c=t("./core/main"))&&c.__esModule?c:{default:c};t("./core/constants"),t("./core/environment"),t("./core/friendly_errors/stacktrace"),t("./core/friendly_errors/validate_params"),t("./core/friendly_errors/file_errors"),t("./core/friendly_errors/fes_core"),t("./core/friendly_errors/sketch_reader"),t("./core/helpers"),t("./core/legacy"),t("./core/preload"),t("./core/p5.Element"),t("./core/p5.Graphics"),t("./core/p5.Renderer"),t("./core/p5.Renderer2D"),t("./core/rendering"),t("./core/shim"),t("./core/structure"),t("./core/transform"),t("./core/shape/2d_primitives"),t("./core/shape/attributes"),t("./core/shape/curves"),t("./core/shape/vertex"),t("./accessibility/outputs"),t("./accessibility/textOutput"),t("./accessibility/gridOutput"),t("./accessibility/color_namer"),t("./color/color_conversion"),t("./color/creating_reading"),t("./color/p5.Color"),t("./color/setting"),t("./data/p5.TypedDict"),t("./data/local_storage.js"),t("./dom/dom"),t("./accessibility/describe"),t("./events/acceleration"),t("./events/keyboard"),t("./events/mouse"),t("./events/touch"),t("./image/filters"),t("./image/image"),t("./image/loading_displaying"),t("./image/p5.Image"),t("./image/pixels"),t("./io/files"),t("./io/p5.Table"),t("./io/p5.TableRow"),t("./io/p5.XML"),t("./math/calculation"),t("./math/math"),t("./math/noise"),t("./math/p5.Vector"),t("./math/random"),t("./math/trigonometry"),t("./typography/attributes"),t("./typography/loading_displaying"),t("./typography/p5.Font"),t("./utilities/array_functions"),t("./utilities/conversion"),t("./utilities/string_functions"),t("./utilities/time_date"),t("./webgl/3d_primitives"),t("./webgl/interaction"),t("./webgl/light"),t("./webgl/loading"),t("./webgl/material"),t("./webgl/p5.Camera"),t("./webgl/p5.Geometry"),t("./webgl/p5.Matrix"),t("./webgl/p5.RendererGL.Immediate"),t("./webgl/p5.RendererGL"),t("./webgl/p5.RendererGL.Retained"),t("./webgl/p5.Framebuffer"),t("./webgl/p5.Shader"),t("./webgl/p5.RenderBuffer"),t("./webgl/p5.Texture"),t("./webgl/text"),t("./core/init"),w.exports=c.default},{"./accessibility/color_namer":252,"./accessibility/describe":253,"./accessibility/gridOutput":254,"./accessibility/outputs":255,"./accessibility/textOutput":256,"./color/color_conversion":258,"./color/creating_reading":259,"./color/p5.Color":260,"./color/setting":261,"./core/constants":262,"./core/environment":263,"./core/friendly_errors/fes_core":264,"./core/friendly_errors/file_errors":265,"./core/friendly_errors/sketch_reader":266,"./core/friendly_errors/stacktrace":267,"./core/friendly_errors/validate_params":268,"./core/helpers":269,"./core/init":270,"./core/legacy":272,"./core/main":273,"./core/p5.Element":274,"./core/p5.Graphics":275,"./core/p5.Renderer":276,"./core/p5.Renderer2D":277,"./core/preload":278,"./core/rendering":279,"./core/shape/2d_primitives":280,"./core/shape/attributes":281,"./core/shape/curves":282,"./core/shape/vertex":283,"./core/shim":284,"./core/structure":285,"./core/transform":286,"./data/local_storage.js":287,"./data/p5.TypedDict":288,"./dom/dom":289,"./events/acceleration":290,"./events/keyboard":291,"./events/mouse":292,"./events/touch":293,"./image/filters":294,"./image/image":295,"./image/loading_displaying":296,"./image/p5.Image":297,"./image/pixels":298,"./io/files":299,"./io/p5.Table":300,"./io/p5.TableRow":301,"./io/p5.XML":302,"./math/calculation":303,"./math/math":304,"./math/noise":305,"./math/p5.Vector":306,"./math/random":307,"./math/trigonometry":308,"./typography/attributes":309,"./typography/loading_displaying":310,"./typography/p5.Font":311,"./utilities/array_functions":312,"./utilities/conversion":313,"./utilities/string_functions":314,"./utilities/time_date":315,"./webgl/3d_primitives":316,"./webgl/interaction":317,"./webgl/light":318,"./webgl/loading":319,"./webgl/material":320,"./webgl/p5.Camera":321,"./webgl/p5.Framebuffer":322,"./webgl/p5.Geometry":323,"./webgl/p5.Matrix":324,"./webgl/p5.RenderBuffer":325,"./webgl/p5.RendererGL":328,"./webgl/p5.RendererGL.Immediate":326,"./webgl/p5.RendererGL.Retained":327,"./webgl/p5.Shader":329,"./webgl/p5.Texture":330,"./webgl/text":331}],258:[function(t,w,j){Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.ColorConversion={_hsbaToHSLA:function(c){var d=c[0],s=c[1],g=c[2],b=(2-s)*g/2;return b!=0&&(b==1?s=0:b<.5?s/=2-s:s=s*g/(2-2*b)),[d,s,b,c[3]]},_hsbaToRGBA:function(c){var d,s,g,b,m,o=6*c[0],l=c[1],u=c[2];return l===0?[u,u,u,c[3]]:(s=u*(1-l),g=u*(1-l*(o-(d=Math.floor(o)))),l=u*(1-l*(1+d-o)),o=d===1?(b=g,m=u,s):d===2?(b=s,m=u,l):d===3?(b=s,m=g,u):d===4?(b=l,m=s,u):d===5?(b=u,m=s,g):(b=u,m=l,s),[b,m,o,c[3]])},_hslaToHSBA:function(c){var d=c[0],s=c[1],g=c[2],b=g<.5?(1+s)*g:g+s-g*s;return[d,s=2*(b-g)/b,b,c[3]]},_hslaToRGBA:function(c){var d,s=6*c[0],g=c[1],b=c[2];return g===0?[b,b,b,c[3]]:[(d=function(m,o,l){return m<0?m+=6:6<=m&&(m-=6),m<1?o+(l-o)*m:m<3?l:m<4?o+(l-o)*(4-m):o})(2+s,g=2*b-(b=b<.5?(1+g)*b:b+g-b*g),b),d(s,g,b),d(s-2,g,b),c[3]]},_rgbaToHSBA:function(c){var d,s,g=c[0],b=c[1],m=c[2],o=Math.max(g,b,m),l=o-Math.min(g,b,m);return l==0?s=d=0:(s=l/o,g===o?d=(b-m)/l:b===o?d=2+(m-g)/l:m===o&&(d=4+(g-b)/l),d<0?d+=6:6<=d&&(d-=6)),[d/6,s,o,c[3]]},_rgbaToHSLA:function(c){var d,s,g=c[0],b=c[1],m=c[2],o=Math.max(g,b,m),u=Math.min(g,b,m),l=o+u,u=o-u;return u==0?s=d=0:(s=l<1?u/l:u/(2-l),g===o?d=(b-m)/u:b===o?d=2+(m-g)/u:m===o&&(d=4+(g-b)/u),d<0?d+=6:6<=d&&(d-=6)),[d/6,s,l/2,c[3]]}},t=t.default.ColorConversion,j.default=t},{"../core/main":273}],259:[function(t,w,j){function c(o){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(o)}function d(o){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(l){return c(l)}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":c(l)})(o)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.map"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var s=(m=t("../core/main"))&&m.__esModule?m:{default:m},g=function(o){if(o&&o.__esModule)return o;if(o===null||d(o)!=="object"&&typeof o!="function")return{default:o};var l=b();if(l&&l.has(o))return l.get(o);var u,a={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(u in o){var f;Object.prototype.hasOwnProperty.call(o,u)&&((f=p?Object.getOwnPropertyDescriptor(o,u):null)&&(f.get||f.set)?Object.defineProperty(a,u,f):a[u]=o[u])}return a.default=o,l&&l.set(o,a),a}(t("../core/constants"));function b(){var o;return typeof WeakMap!="function"?null:(o=new WeakMap,b=function(){return o},o)}t("./p5.Color"),t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),s.default.prototype.alpha=function(o){return s.default._validateParameters("alpha",arguments),this.color(o)._getAlpha()},s.default.prototype.blue=function(o){return s.default._validateParameters("blue",arguments),this.color(o)._getBlue()},s.default.prototype.brightness=function(o){return s.default._validateParameters("brightness",arguments),this.color(o)._getBrightness()},s.default.prototype.color=function(){var o;return s.default._validateParameters("color",arguments),arguments[0]instanceof s.default.Color?arguments[0]:(o=arguments[0]instanceof Array?arguments[0]:arguments,new s.default.Color(this,o))},s.default.prototype.green=function(o){return s.default._validateParameters("green",arguments),this.color(o)._getGreen()},s.default.prototype.hue=function(o){return s.default._validateParameters("hue",arguments),this.color(o)._getHue()},s.default.prototype.lerpColor=function(o,l,u){s.default._validateParameters("lerpColor",arguments);var a,p,f,h=this._colorMode,i=this._colorMaxes;if(h===g.RGB)p=o.levels.map(function(v){return v/255}),f=l.levels.map(function(v){return v/255});else if(h===g.HSB)o._getBrightness(),l._getBrightness(),p=o.hsba,f=l.hsba;else{if(h!==g.HSL)throw new Error("".concat(h,"cannot be used for interpolation."));o._getLightness(),l._getLightness(),p=o.hsla,f=l.hsla}return u=Math.max(Math.min(u,1),0),this.lerp===void 0&&(this.lerp=function(v,S,M){return M*(S-v)+v}),o=this.lerp(p[0],f[0],u),l=this.lerp(p[1],f[1],u),a=this.lerp(p[2],f[2],u),p=this.lerp(p[3],f[3],u),o*=i[h][0],l*=i[h][1],a*=i[h][2],p*=i[h][3],this.color(o,l,a,p)},s.default.prototype.lightness=function(o){return s.default._validateParameters("lightness",arguments),this.color(o)._getLightness()},s.default.prototype.red=function(o){return s.default._validateParameters("red",arguments),this.color(o)._getRed()},s.default.prototype.saturation=function(o){return s.default._validateParameters("saturation",arguments),this.color(o)._getSaturation()};var m=s.default;j.default=m},{"../core/constants":262,"../core/friendly_errors/fes_core":264,"../core/friendly_errors/file_errors":265,"../core/friendly_errors/validate_params":268,"../core/main":273,"./p5.Color":260,"core-js/modules/es.array.iterator":160,"core-js/modules/es.array.map":163,"core-js/modules/es.object.get-own-property-descriptor":176,"core-js/modules/es.object.to-string":180,"core-js/modules/es.string.iterator":190,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/es.weak-map":234,"core-js/modules/web.dom-collections.iterator":236}],260:[function(a,w,j){function c(v){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(v)}function d(v){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(S){return c(S)}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":c(S)})(v)}a("core-js/modules/es.symbol"),a("core-js/modules/es.symbol.description"),a("core-js/modules/es.symbol.iterator"),a("core-js/modules/es.array.includes"),a("core-js/modules/es.array.iterator"),a("core-js/modules/es.array.join"),a("core-js/modules/es.array.map"),a("core-js/modules/es.array.slice"),a("core-js/modules/es.object.get-own-property-descriptor"),a("core-js/modules/es.object.to-string"),a("core-js/modules/es.regexp.constructor"),a("core-js/modules/es.regexp.exec"),a("core-js/modules/es.regexp.to-string"),a("core-js/modules/es.string.includes"),a("core-js/modules/es.string.iterator"),a("core-js/modules/es.string.trim"),a("core-js/modules/es.weak-map"),a("core-js/modules/web.dom-collections.iterator"),a("core-js/modules/es.array.includes"),a("core-js/modules/es.array.join"),a("core-js/modules/es.array.map"),a("core-js/modules/es.array.slice"),a("core-js/modules/es.object.to-string"),a("core-js/modules/es.regexp.constructor"),a("core-js/modules/es.regexp.exec"),a("core-js/modules/es.regexp.to-string"),a("core-js/modules/es.string.includes"),a("core-js/modules/es.string.trim"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var s=o(a("../core/main")),g=function(v){if(v&&v.__esModule)return v;if(v===null||d(v)!=="object"&&typeof v!="function")return{default:v};var S=m();if(S&&S.has(v))return S.get(v);var M,k={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(M in v){var L;Object.prototype.hasOwnProperty.call(v,M)&&((L=E?Object.getOwnPropertyDescriptor(v,M):null)&&(L.get||L.set)?Object.defineProperty(k,M,L):k[M]=v[M])}return k.default=v,S&&S.set(v,k),k}(a("../core/constants")),b=o(a("./color_conversion"));function m(){var v;return typeof WeakMap!="function"?null:(v=new WeakMap,m=function(){return v},v)}function o(v){return v&&v.__esModule?v:{default:v}}function l(v,S){for(var M=0;M"].indexOf(l[0])?void 0:l[0],lineNumber:l[1],columnNumber:l[2],source:m}},this)},parseFFOrSafari:function(b){return b.stack.split(` +`).filter(function(m){return!m.match(g)},this).map(function(m){var o,l;return(m=-1 eval")?m.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):m).indexOf("@")===-1&&m.indexOf(":")===-1?{functionName:m}:{functionName:(l=m.match(o=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&l[1]?l[1]:void 0,fileName:(l=this.extractLocation(m.replace(o,"")))[0],lineNumber:l[1],columnNumber:l[2],source:m}},this)},parseOpera:function(b){return!b.stacktrace||-1b.stacktrace.split(` +`).length?this.parseOpera9(b):b.stack?this.parseOpera11(b):this.parseOpera10(b)},parseOpera9:function(b){for(var m=/Line (\d+).*script (?:in )?(\S+)/i,o=b.message.split(` +`),l=[],u=2,a=o.length;u/,"$2").replace(/\([^)]*\)/g,"")||void 0,args:(o=u.match(/\(([^)]*)\)/)?u.replace(/^[^(]+\(([^)]*)\)$/,"$1"):o)===void 0||o==="[arguments not available]"?void 0:o.split(","),fileName:l[0],lineNumber:l[1],columnNumber:l[2],source:m}},this)}}}t.default._getErrorStackParser=function(){return new c},t=t.default,j.default=t},{"../main":273,"core-js/modules/es.array.filter":155,"core-js/modules/es.array.index-of":159,"core-js/modules/es.array.join":161,"core-js/modules/es.array.map":163,"core-js/modules/es.array.slice":164,"core-js/modules/es.regexp.exec":185,"core-js/modules/es.string.match":191,"core-js/modules/es.string.replace":194,"core-js/modules/es.string.split":196}],268:[function(t,w,j){function c(b){return(c=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})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var d=(d=t("../main"))&&d.__esModule?d:{default:d};(function(b){if(!(b&&b.__esModule)&&!(b===null||g(b)!=="object"&&typeof b!="function")){var m=s();if(m&&m.has(b))return m.get(b);var o,l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in b){var a;Object.prototype.hasOwnProperty.call(b,o)&&((a=u?Object.getOwnPropertyDescriptor(b,o):null)&&(a.get||a.set)?Object.defineProperty(l,o,a):l[o]=b[o])}l.default=b,m&&m.set(b,l)}})(t("../constants")),t("../internationalization");function s(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,s=function(){return b},b)}function g(b){return(g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(m){return c(m)}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":c(m)})(b)}d.default._validateParameters=d.default._clearValidateParamsCache=function(){},t=d.default,j.default=t},{"../../../docs/parameterData.json":void 0,"../constants":262,"../internationalization":271,"../main":273,"core-js/modules/es.array.concat":151,"core-js/modules/es.array.for-each":156,"core-js/modules/es.array.includes":158,"core-js/modules/es.array.index-of":159,"core-js/modules/es.array.iterator":160,"core-js/modules/es.array.join":161,"core-js/modules/es.array.last-index-of":162,"core-js/modules/es.array.map":163,"core-js/modules/es.array.slice":164,"core-js/modules/es.function.name":167,"core-js/modules/es.map":168,"core-js/modules/es.number.constructor":171,"core-js/modules/es.object.get-own-property-descriptor":176,"core-js/modules/es.object.get-prototype-of":178,"core-js/modules/es.object.keys":179,"core-js/modules/es.object.to-string":180,"core-js/modules/es.reflect.construct":182,"core-js/modules/es.regexp.exec":185,"core-js/modules/es.regexp.to-string":186,"core-js/modules/es.set":187,"core-js/modules/es.string.includes":189,"core-js/modules/es.string.iterator":190,"core-js/modules/es.string.split":196,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/es.weak-map":234,"core-js/modules/web.dom-collections.for-each":235,"core-js/modules/web.dom-collections.iterator":236}],269:[function(t,w,j){function c(b){return(c=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})(b)}function d(b){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(m){return c(m)}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":c(m)})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var s=function(b){if(b&&b.__esModule)return b;if(b===null||d(b)!=="object"&&typeof b!="function")return{default:b};var m=g();if(m&&m.has(b))return m.get(b);var o,l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in b){var a;Object.prototype.hasOwnProperty.call(b,o)&&((a=u?Object.getOwnPropertyDescriptor(b,o):null)&&(a.get||a.set)?Object.defineProperty(l,o,a):l[o]=b[o])}return l.default=b,m&&m.set(b,l),l}(t("./constants"));function g(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,g=function(){return b},b)}j.default={modeAdjust:function(b,m,o,l,u){return u===s.CORNER?{x:b,y:m,w:o,h:l}:u===s.CORNERS?{x:b,y:m,w:o-b,h:l-m}:u===s.RADIUS?{x:b-o,y:m-l,w:2*o,h:2*l}:u===s.CENTER?{x:b-.5*o,y:m-.5*l,w:o,h:l}:void 0}}},{"./constants":262,"core-js/modules/es.array.iterator":160,"core-js/modules/es.object.get-own-property-descriptor":176,"core-js/modules/es.object.to-string":180,"core-js/modules/es.string.iterator":190,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/es.weak-map":234,"core-js/modules/web.dom-collections.iterator":236}],270:[function(t,w,j){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator");var c=(d=t("../core/main"))&&d.__esModule?d:{default:d};t("./internationalization");var d=Promise.resolve();Promise.all([new Promise(function(s,g){document.readyState==="complete"?s():window.addEventListener("load",s,!1)}),d]).then(function(){window._setupDone!==void 0?console.warn("p5.js seems to have been imported multiple times. Please remove the duplicate import"):window.mocha||(window.setup&&typeof window.setup=="function"||window.draw&&typeof window.draw=="function")&&!c.default.instance&&new c.default})},{"../core/main":273,"./internationalization":271,"core-js/modules/es.array.iterator":160,"core-js/modules/es.object.to-string":180,"core-js/modules/es.promise":181,"core-js/modules/es.string.iterator":190,"core-js/modules/web.dom-collections.iterator":236}],271:[function(t,w,j){t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.setTranslatorLanguage=j.currentTranslatorLanguage=j.availableTranslatorLanguages=j.initialize=j.translator=void 0;var c,d,s=b(t("i18next")),g=b(t("i18next-browser-languagedetector"));function b(l){return l&&l.__esModule?l:{default:l}}function m(l,u){for(var a=0;a=A.width||k>=A.height?[0,0,0,0]:this._getPixel(M,k);return O=new d.default.Image(E,L),O.canvas.getContext("2d").drawImage(A,M,k,E*P,L*P,0,0,E,L),O}},{key:"textLeading",value:function(M){return typeof M=="number"?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",M),this._pInst):this._textLeading}},{key:"textStyle",value:function(M){return M?(M!==s.NORMAL&&M!==s.ITALIC&&M!==s.BOLD&&M!==s.BOLDITALIC||this._setProperty("_textStyle",M),this._applyTextProperties()):this._textStyle}},{key:"textAscent",value:function(){return this._textAscent===null&&this._updateTextMetrics(),this._textAscent}},{key:"textDescent",value:function(){return this._textDescent===null&&this._updateTextMetrics(),this._textDescent}},{key:"textAlign",value:function(M,k){return M!==void 0?(this._setProperty("_textAlign",M),k!==void 0&&this._setProperty("_textBaseline",k),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}}},{key:"textWrap",value:function(M){return this._setProperty("_textWrap",M),this._textWrap}},{key:"text",value:function(M,k,E,L,O){var P,A,D,F,N=this._pInst,G=this._textWrap,R=Number.MAX_VALUE,B=E;if((this._doFill||this._doStroke)&&M!==void 0){if(P=(M=(M=typeof M!="string"?M.toString():M).replace(/(\t)/g," ")).split(` +`),L!==void 0){switch(this._rectMode===s.CENTER&&(k-=L/2),this._textAlign){case s.CENTER:k+=L/2;break;case s.RIGHT:k+=L}if(O!==void 0){this._rectMode===s.CENTER&&(E-=O/2,B-=O/2);var M=E,V=N.textAscent();switch(this._textBaseline){case s.BOTTOM:F=E+O,E=Math.max(F,E),B+=V;break;case s.CENTER:F=E+O/2,E=Math.max(F,E),B+=V/2}R=E+O-V,this._textBaseline===s.CENTER&&(R=M+O-V/2)}else this._textBaseline!==s.BOTTOM&&this._textBaseline!==s.CENTER||(B=E-(M=N.textSize()*this._textLeading)/2,R=E+M/2);if(G===s.WORD){for(var X=[],Q=0;Qg.HALF_PI&&u<=3*g.HALF_PI?Math.atan(p/f*Math.tan(u))+g.PI:Math.atan(p/f*Math.tan(u))+g.TWO_PI,a=a<=g.HALF_PI?Math.atan(p/f*Math.tan(a)):a>g.HALF_PI&&a<=3*g.HALF_PI?Math.atan(p/f*Math.tan(a))+g.PI:Math.atan(p/f*Math.tan(a))+g.TWO_PI),a"u"||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,"slice",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),Object.assign||(g=Object.keys,t=Object.defineProperty,b=typeof Symbol=="function"&&s(Symbol())==="symbol",m=Object.prototype.propertyIsEnumerable,t(Object,"assign",{value:function(o,l){if(o==null)throw new TypeError("target must be an object");for(var u,a=Object(o),p=1;pf||Math.abs(this.accelerationY-this.pAccelerationY)>f||Math.abs(this.accelerationZ-this.pAccelerationZ)>f)&&L.deviceMoved(),typeof L.deviceTurned=="function"&&(S=this.rotationX+180,v=this.pRotationX+180,M=m+180,0>>16,m[1+l]=(65280&o[u])>>>8,m[2+l]=255&o[u],m[3+l]=(4278190080&o[u])>>>24},_toImageData:function(m){return m instanceof ImageData?m:m.getContext("2d").getImageData(0,0,m.width,m.height)},_createImageData:function(m,o){return b._tmpCanvas=document.createElement("canvas"),b._tmpCtx=b._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(m,o)},apply:function(m,p,l){var u=m.getContext("2d"),a=u.getImageData(0,0,m.width,m.height),p=p(a,l);p instanceof ImageData?u.putImageData(p,0,0,0,0,m.width,m.height):u.putImageData(a,0,0,0,0,m.width,m.height)},threshold:function(m,o){for(var l=b._toPixels(m),u=(o===void 0&&(o=.5),Math.floor(255*o)),a=0;a>8)/u,l[a+1]=255*(f*o>>8)/u,l[a+2]=255*(h*o>>8)/u}},dilate:function(m){for(var o,l,u,a,p,f,h,i,v,S=b._toPixels(m),M=0,k=S.length?S.length/4:0,E=new Int32Array(k);M>16&255)+151*(a>>8&255)+28*(255&a))<(h=77*(v>>16&255)+151*(v>>8&255)+28*(255&v))&&(u=v,a=h),a<(h=77*((v=b._getARGB(S,i))>>16&255)+151*(v>>8&255)+28*(255&v))&&(u=v,a=h),a<(i=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(u=p,a=i),a<(v=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(u=f,a=v),E[M++]=u;b._setPixels(S,E)},erode:function(m){for(var o,l,u,a,p,f,h,i,v,S=b._toPixels(m),M=0,k=S.length?S.length/4:0,E=new Int32Array(k);M>16&255)+151*(v>>8&255)+28*(255&v))<(a=77*(a>>16&255)+151*(a>>8&255)+28*(255&a))&&(u=v,a=h),(h=77*((v=b._getARGB(S,i))>>16&255)+151*(v>>8&255)+28*(255&v))>16&255)+151*(p>>8&255)+28*(255&p))>16&255)+151*(f>>8&255)+28*(255&f))>>24],u+=G[(16711680&fe)>>16],a+=G[(65280&fe)>>8],p+=G[255&fe],l+=s[N],h++}Q[i=q+D]=f/l,oe[i]=u/l,I[i]=a/l,z[i]=p/l}q+=E}for(S=(v=-c)*E,F=q=0;F"+B.length.toString()+" out of "+F.toString()),J.next=48,new Promise(function(ue){return setTimeout(ue,0)});J.next=50;break;case 48:J.next=39;break;case 50:O||V.html("Frames processed, generating color palette..."),this.loop(),this.pixelDensity(R),oe=(0,o.GIFEncoder)(),I=function(ue){for(var ve=new Uint8Array(ue.length*ue[0].length),Te=0;Te"+re.toString()+" out of "+F.toString()),J.next=68,new Promise(function(ue){return setTimeout(ue,0)});case 68:re++,J.next=60;break;case 71:oe.finish(),fe=oe.bytesView(),fe=new Blob([fe],{type:"image/gif"}),B=[],this._recording=!1,this.loop(),O||(V.html("Done. Downloading your gif!🌸"),0=u&&(u=Math.floor(a.timeDisplayed/u),a.timeDisplayed=0,a.lastChangeTime=p,a.displayIndex+=u,a.loopCount=Math.floor(a.displayIndex/a.numFrames),a.loopLimit!==null&&a.loopCount>=a.loopLimit?a.playing=!1:(p=a.displayIndex%a.numFrames,this.drawingContext.putImageData(a.frames[p].image,0,0),a.displayIndex=p,this.setModified(!0))))}},{key:"_setProperty",value:function(l,u){this[l]=u,this.setModified(!0)}},{key:"loadPixels",value:function(){c.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)}},{key:"updatePixels",value:function(l,u,a,p){c.default.Renderer2D.prototype.updatePixels.call(this,l,u,a,p),this.setModified(!0)}},{key:"get",value:function(l,u,a,p){return c.default._validateParameters("p5.Image.get",arguments),c.default.Renderer2D.prototype.get.apply(this,arguments)}},{key:"_getPixel",value:function(){for(var l=arguments.length,u=new Array(l),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(u,a){a&&a!==!0&&a!=="true"||(a="");var p="";return(u=u||"untitled")&&u.includes(".")&&(p=u.split(".").pop()),a&&p!==a&&(p=a,u="".concat(u,".").concat(p)),[u,p]}t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),d.default.prototype.loadJSON=function(){for(var u=arguments.length,a=new Array(u),p=0;p"),h.print(""),h.print(' '),h.print(""),h.print(""),h.print(" "),i[0]!=="0"){h.print(" ");for(var E=0;E".concat(L)),h.print(" ")}h.print(" ")}for(var O=0;O");for(var P=0;P".concat(A)),h.print(" ")}h.print(" ")}h.print("
            "),h.print(""),h.print("")}h.close(),h.clear()},d.default.prototype.writeFile=function(h,a,p){var f="application/octet-stream",h=(d.default.prototype._isSafari()&&(f="text/plain"),new Blob(h,{type:f}));d.default.prototype.downloadFile(h,a,p)},d.default.prototype.downloadFile=function(u,h,i){var f,h=l(h,i),i=h[0];u instanceof Blob?g.default.saveAs(u,i):((f=document.createElement("a")).href=u,f.download=i,f.onclick=function(v){document.body.removeChild(v.target),v.stopPropagation()},f.style.display="none",document.body.appendChild(f),d.default.prototype._isSafari()&&(u=(u=`Hello, Safari user! To download this file... +1. Go to File --> Save As. +2. Choose "Page Source" as the Format. +`)+'3. Name it with this extension: ."'.concat(h[1],'"'),alert(u)),f.click())},d.default.prototype._checkFileExtension=l,d.default.prototype._isSafari=function(){return 0>>0},getSeed:function(){return l},rand:function(){return(u=(1664525*u+1013904223)%a)/a}};p.setSeed(o),d=new Array(4096);for(var f=0;f<4096;f++)d[f]=p.rand()},m.default);j.default=m},{"../core/main":273}],306:[function(t,w,j){function c(a){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(a)}function d(a){return(d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(p){return c(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":c(p)})(a)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.sub"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.string.sub"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var s=(u=t("../core/main"))&&u.__esModule?u:{default:u},g=function(a){if(a&&a.__esModule)return a;if(a===null||d(a)!=="object"&&typeof a!="function")return{default:a};var p=b();if(p&&p.has(a))return p.get(a);var f,h={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(f in a){var v;Object.prototype.hasOwnProperty.call(a,f)&&((v=i?Object.getOwnPropertyDescriptor(a,f):null)&&(v.get||v.set)?Object.defineProperty(h,f,v):h[f]=a[f])}return h.default=a,p&&p.set(a,h),h}(t("../core/constants"));function b(){var a;return typeof WeakMap!="function"?null:(a=new WeakMap,b=function(){return a},a)}function m(a,p){for(var f=0;f>>0},c.default.prototype.randomSeed=function(m){this._lcgSetSeed(d,m),this._gaussian_previous=!1},c.default.prototype.random=function(m,o){var l,u;return c.default._validateParameters("random",arguments),l=this[d]!=null?this._lcg(d):Math.random(),m===void 0?l:o===void 0?m instanceof Array?m[Math.floor(l*m.length)]:l*m:(oq&&(pe=V,re=N,le=G,V=ce+q*(te&&ce=s?g.substring(g.length-s,g.length):g}},c.default.prototype.unhex=function(d){return d instanceof Array?d.map(c.default.prototype.unhex):parseInt("0x".concat(d),16)},t=c.default,j.default=t},{"../core/main":273,"core-js/modules/es.array.map":163,"core-js/modules/es.number.constructor":171,"core-js/modules/es.object.to-string":180,"core-js/modules/es.regexp.to-string":186,"core-js/modules/es.string.repeat":193}],314:[function(t,w,j){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var c=(o=t("../core/main"))&&o.__esModule?o:{default:o};function d(l,u){return function(a){if(Array.isArray(a))return a}(l)||function(a,p){if(Symbol.iterator in Object(a)||Object.prototype.toString.call(a)==="[object Arguments]"){var f=[],h=!0,i=!1,v=void 0;try{for(var S,M=a[Symbol.iterator]();!(h=(S=M.next()).done)&&(f.push(S.value),!p||f.length!==p);h=!0);}catch(k){i=!0,v=k}finally{try{h||M.return==null||M.return()}finally{if(i)throw v}}return f}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(l,u,a){var f=d(l.toString().split("."),2),p=f[0],f=f[1];return a===void 0?(p=p.padStart(u,"0"),f?p+"."+f:p):(p=(l=d(l.toFixed(a).toString().split("."),2))[0],f=l[1],(p=p.padStart(u,"0"))+"."+f)}function g(f,u){var a=(f=f.toString()).indexOf("."),p=a!==-1?f.substring(a):"",f=(f=a!==-1?f.substring(0,a):f).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");if(u===0)p="";else if(u!==void 0)if(u>p.length)for(var h=u-(p+=a===-1?".":"").length+1,i=0;i=g.TWO_PI?"".concat(k="ellipse","|"):"".concat(k="arc","|").concat(h,"|").concat(i,"|").concat(v,"|")).concat(S,"|"),k=(this.geometryInHash(M)||((u=new s.default.Geometry(S,1,function(){if(h.toFixed(10)!==i.toFixed(10)){v!==g.PIE&&v!==void 0||(this.vertices.push(new s.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var E=0;E<=S;E++){var O=(i-h)*(E/S)+h,L=.5+Math.cos(O)/2,O=.5+Math.sin(O)/2;this.vertices.push(new s.default.Vector(L,O,0)),this.uvs.push([L,O]),E>5&31)/31,(G>>10&31)/31)),new c.default.Vector(B,V,X)),oe=1;oe<=3;oe++){var I=R+12*oe,I=new c.default.Vector(P.getFloat32(I,!0),P.getFloat32(4+I,!0),P.getFloat32(8+I,!0));h.vertices.push(I),h.vertexNormals.push(Q),D&&k.push(v,S,M)}h.faces.push([3*N,3*N+1,3*N+2]),h.uvs.push([0,0],[0,0],[0,0])}})(p,f);else{if(f=new DataView(f),!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");f=new TextDecoder("utf-8").decode(f).split(` +`),function(h,i){for(var v,S,M="",k=[],E=0;Ethis.cameraFar&&(u=this.cameraFar),Math.acos(Math.max(-1,Math.min(1,c.default.Vector.dot(a,p))))+v),v=m;(i<=0||i>=Math.PI)&&(this.upX*=-1,this.upY*=-1,this.upZ*=-1),p.mult(Math.cos(i)),h.mult(Math.cos(v)*Math.sin(i)),f.mult(Math.sin(v)*Math.sin(i)),a.set(p).add(h).add(f),this.eyeX=u*a.x+this.centerX,this.eyeY=u*a.y+this.centerY,this.eyeZ=u*a.z+this.centerZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,this.centerX,this.centerY,this.centerZ,this.upX,this.upY,this.upZ)}},{key:"_orbitFree",value:function(i,v,M){var a=this.eyeX-this.centerX,p=this.eyeY-this.centerY,f=this.eyeZ-this.centerZ,u=Math.hypot(a,p,f),a=new c.default.Vector(a,p,f).normalize(),p=new c.default.Vector(this.upX,this.upY,this.upZ),f=new c.default.Vector.cross(p,a).normalize(),h=new c.default.Vector.cross(a,f),k=Math.atan2(v,i),k=(h.mult(Math.sin(k)),f.mult(Math.cos(k)).add(h),Math.sqrt(i*i+v*v)),h=new c.default.Vector.cross(a,f),i=((u=(u*=Math.pow(10,M))this.cameraFar&&(u=this.cameraFar),Math.cos(k)),v=Math.sin(k),M=p.dot(a),k=p.dot(f),S=M*i+k*v,M=-M*v+k*i,k=p.dot(h);p.x=S*a.x+M*f.x+k*h.x,p.y=S*a.y+M*f.y+k*h.y,p.z=S*a.z+M*f.z+k*h.z,f.mult(-v),a.mult(i).add(f).mult(u),this.camera(a.x+this.centerX,a.y+this.centerY,a.z+this.centerZ,this.centerX,this.centerY,this.centerZ,p.x,p.y,p.z)}},{key:"_isActive",value:function(){return this===this._renderer._curCamera}}])&&d(g.prototype,b),s}(),c.default.prototype.setCamera=function(s){this._renderer._curCamera=s,this._renderer.uPMatrix.set(s.projMatrix.mat4[0],s.projMatrix.mat4[1],s.projMatrix.mat4[2],s.projMatrix.mat4[3],s.projMatrix.mat4[4],s.projMatrix.mat4[5],s.projMatrix.mat4[6],s.projMatrix.mat4[7],s.projMatrix.mat4[8],s.projMatrix.mat4[9],s.projMatrix.mat4[10],s.projMatrix.mat4[11],s.projMatrix.mat4[12],s.projMatrix.mat4[13],s.projMatrix.mat4[14],s.projMatrix.mat4[15])},t=c.default.Camera,j.default=t},{"../core/main":273,"core-js/modules/es.array.slice":164,"core-js/modules/es.math.hypot":169,"core-js/modules/es.string.sub":198}],322:[function(O,w,j){function c(P){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(P)}O("core-js/modules/es.symbol"),O("core-js/modules/es.symbol.description"),O("core-js/modules/es.symbol.iterator"),O("core-js/modules/es.array.fill"),O("core-js/modules/es.array.from"),O("core-js/modules/es.array.includes"),O("core-js/modules/es.array.iterator"),O("core-js/modules/es.object.get-own-property-descriptor"),O("core-js/modules/es.object.get-prototype-of"),O("core-js/modules/es.object.to-string"),O("core-js/modules/es.reflect.construct"),O("core-js/modules/es.reflect.get"),O("core-js/modules/es.regexp.to-string"),O("core-js/modules/es.string.includes"),O("core-js/modules/es.string.iterator"),O("core-js/modules/es.typed-array.float32-array"),O("core-js/modules/es.typed-array.uint8-array"),O("core-js/modules/es.typed-array.uint8-clamped-array"),O("core-js/modules/es.typed-array.copy-within"),O("core-js/modules/es.typed-array.every"),O("core-js/modules/es.typed-array.fill"),O("core-js/modules/es.typed-array.filter"),O("core-js/modules/es.typed-array.find"),O("core-js/modules/es.typed-array.find-index"),O("core-js/modules/es.typed-array.for-each"),O("core-js/modules/es.typed-array.includes"),O("core-js/modules/es.typed-array.index-of"),O("core-js/modules/es.typed-array.iterator"),O("core-js/modules/es.typed-array.join"),O("core-js/modules/es.typed-array.last-index-of"),O("core-js/modules/es.typed-array.map"),O("core-js/modules/es.typed-array.reduce"),O("core-js/modules/es.typed-array.reduce-right"),O("core-js/modules/es.typed-array.reverse"),O("core-js/modules/es.typed-array.set"),O("core-js/modules/es.typed-array.slice"),O("core-js/modules/es.typed-array.some"),O("core-js/modules/es.typed-array.sort"),O("core-js/modules/es.typed-array.subarray"),O("core-js/modules/es.typed-array.to-locale-string"),O("core-js/modules/es.typed-array.to-string"),O("core-js/modules/es.weak-map"),O("core-js/modules/web.dom-collections.iterator"),O("core-js/modules/es.symbol"),O("core-js/modules/es.symbol.description"),O("core-js/modules/es.symbol.iterator"),O("core-js/modules/es.array.fill"),O("core-js/modules/es.array.from"),O("core-js/modules/es.array.includes"),O("core-js/modules/es.array.iterator"),O("core-js/modules/es.object.get-own-property-descriptor"),O("core-js/modules/es.object.get-prototype-of"),O("core-js/modules/es.object.to-string"),O("core-js/modules/es.reflect.construct"),O("core-js/modules/es.reflect.get"),O("core-js/modules/es.regexp.to-string"),O("core-js/modules/es.string.includes"),O("core-js/modules/es.string.iterator"),O("core-js/modules/es.typed-array.float32-array"),O("core-js/modules/es.typed-array.uint8-array"),O("core-js/modules/es.typed-array.uint8-clamped-array"),O("core-js/modules/es.typed-array.copy-within"),O("core-js/modules/es.typed-array.every"),O("core-js/modules/es.typed-array.fill"),O("core-js/modules/es.typed-array.filter"),O("core-js/modules/es.typed-array.find"),O("core-js/modules/es.typed-array.find-index"),O("core-js/modules/es.typed-array.for-each"),O("core-js/modules/es.typed-array.includes"),O("core-js/modules/es.typed-array.index-of"),O("core-js/modules/es.typed-array.iterator"),O("core-js/modules/es.typed-array.join"),O("core-js/modules/es.typed-array.last-index-of"),O("core-js/modules/es.typed-array.map"),O("core-js/modules/es.typed-array.reduce"),O("core-js/modules/es.typed-array.reduce-right"),O("core-js/modules/es.typed-array.reverse"),O("core-js/modules/es.typed-array.set"),O("core-js/modules/es.typed-array.slice"),O("core-js/modules/es.typed-array.some"),O("core-js/modules/es.typed-array.sort"),O("core-js/modules/es.typed-array.subarray"),O("core-js/modules/es.typed-array.to-locale-string"),O("core-js/modules/es.typed-array.to-string"),O("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var d=(L=O("../core/main"))&&L.__esModule?L:{default:L},s=function(P){if(P&&P.__esModule)return P;if(P===null||a(P)!=="object"&&typeof P!="function")return{default:P};var A=m();if(A&&A.has(P))return A.get(P);var D,F={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(D in P){var G;Object.prototype.hasOwnProperty.call(P,D)&&((G=N?Object.getOwnPropertyDescriptor(P,D):null)&&(G.get||G.set)?Object.defineProperty(F,D,G):F[D]=P[D])}return F.default=P,A&&A.set(P,F),F}(O("../core/constants")),g=O("./p5.Texture"),b=O("./p5.RendererGL");function m(){var P;return typeof WeakMap!="function"?null:(P=new WeakMap,m=function(){return P},P)}function o(P){return function(A){if(Array.isArray(A)){for(var D=0,F=new Array(A.length);D=this.width||D>=this.height)&&(console.warn("The x and y values passed to p5.Framebuffer.get are outside of its range and will be clamped."),A=this.target.constrain(A,0,this.width-1),D=this.target.constrain(D,0,this.height-1)),(0,b.readPixelWebGL)(this.gl,this.framebuffer,A*this.density,D*this.density,G.format,G.type);A=this.target.constrain(A,0,this.width-1),D=this.target.constrain(D,0,this.height-1),F=this.target.constrain(F,1,this.width-A),N=this.target.constrain(N,1,this.height-D);for(var R=(0,b.readPixelsWebGL)(void 0,this.gl,this.framebuffer,A*this.density,D*this.density,F*this.density,N*this.density,G.format,G.type),B=new Uint8ClampedArray(F*N*this.density*this.density*4),V=(B.fill(255),G.type===this.gl.RGB?3:4),X=0;Xthis.vertices.length-1-this.detailX;u--)m.add(this.vertexNormals[u]);m=c.default.Vector.div(m,this.detailX);for(var a=this.vertices.length-1;a>this.vertices.length-1-this.detailX;a--)this.vertexNormals[a]=m;return this}},{key:"_makeTriangleEdges",value:function(){for(var m=this.edges.length=0;m 65535 triangles. Your web browser does not support the WebGL Extension OES_element_index_uint.");p.drawElements(p.TRIANGLES,a.vertexCount,a.indexBufferType,0)}else p.drawArrays(l||p.TRIANGLES,0,a.vertexCount)},s.default.RendererGL.prototype._drawPoints=function(l,u){var a=this.GL,p=this._getImmediatePointShader();this._setPointUniforms(p),this._bindBuffer(u,a.ARRAY_BUFFER,this._vToNArray(l),Float32Array,a.STATIC_DRAW),p.enableAttrib(p.attributes.aPosition,3),this._applyColorBlend(this.curStrokeColor),a.drawArrays(a.Points,0,l.length),p.unbindShader()},s.default.RendererGL);j.default=o},{"../core/constants":262,"../core/main":273,"./p5.RenderBuffer":325,"./p5.RendererGL":328,"core-js/modules/es.array.fill":154,"core-js/modules/es.array.iterator":160,"core-js/modules/es.array.some":165,"core-js/modules/es.object.get-own-property-descriptor":176,"core-js/modules/es.object.keys":179,"core-js/modules/es.object.to-string":180,"core-js/modules/es.string.iterator":190,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/es.typed-array.copy-within":203,"core-js/modules/es.typed-array.every":204,"core-js/modules/es.typed-array.fill":205,"core-js/modules/es.typed-array.filter":206,"core-js/modules/es.typed-array.find":208,"core-js/modules/es.typed-array.find-index":207,"core-js/modules/es.typed-array.float32-array":209,"core-js/modules/es.typed-array.for-each":211,"core-js/modules/es.typed-array.includes":212,"core-js/modules/es.typed-array.index-of":213,"core-js/modules/es.typed-array.iterator":216,"core-js/modules/es.typed-array.join":217,"core-js/modules/es.typed-array.last-index-of":218,"core-js/modules/es.typed-array.map":219,"core-js/modules/es.typed-array.reduce":221,"core-js/modules/es.typed-array.reduce-right":220,"core-js/modules/es.typed-array.reverse":222,"core-js/modules/es.typed-array.set":223,"core-js/modules/es.typed-array.slice":224,"core-js/modules/es.typed-array.some":225,"core-js/modules/es.typed-array.sort":226,"core-js/modules/es.typed-array.subarray":227,"core-js/modules/es.typed-array.to-locale-string":228,"core-js/modules/es.typed-array.to-string":229,"core-js/modules/es.typed-array.uint16-array":230,"core-js/modules/es.typed-array.uint32-array":231,"core-js/modules/es.weak-map":234,"core-js/modules/web.dom-collections.iterator":236}],328:[function(E,w,j){function c(D){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}E("core-js/modules/es.symbol"),E("core-js/modules/es.symbol.description"),E("core-js/modules/es.symbol.iterator"),E("core-js/modules/es.array.concat"),E("core-js/modules/es.array.copy-within"),E("core-js/modules/es.array.every"),E("core-js/modules/es.array.fill"),E("core-js/modules/es.array.from"),E("core-js/modules/es.array.includes"),E("core-js/modules/es.array.iterator"),E("core-js/modules/es.array.slice"),E("core-js/modules/es.array.some"),E("core-js/modules/es.map"),E("core-js/modules/es.object.assign"),E("core-js/modules/es.object.get-own-property-descriptor"),E("core-js/modules/es.object.get-prototype-of"),E("core-js/modules/es.object.to-string"),E("core-js/modules/es.reflect.construct"),E("core-js/modules/es.regexp.to-string"),E("core-js/modules/es.set"),E("core-js/modules/es.string.includes"),E("core-js/modules/es.string.iterator"),E("core-js/modules/es.typed-array.float32-array"),E("core-js/modules/es.typed-array.float64-array"),E("core-js/modules/es.typed-array.int16-array"),E("core-js/modules/es.typed-array.uint8-array"),E("core-js/modules/es.typed-array.uint16-array"),E("core-js/modules/es.typed-array.uint32-array"),E("core-js/modules/es.typed-array.copy-within"),E("core-js/modules/es.typed-array.every"),E("core-js/modules/es.typed-array.fill"),E("core-js/modules/es.typed-array.filter"),E("core-js/modules/es.typed-array.find"),E("core-js/modules/es.typed-array.find-index"),E("core-js/modules/es.typed-array.for-each"),E("core-js/modules/es.typed-array.includes"),E("core-js/modules/es.typed-array.index-of"),E("core-js/modules/es.typed-array.iterator"),E("core-js/modules/es.typed-array.join"),E("core-js/modules/es.typed-array.last-index-of"),E("core-js/modules/es.typed-array.map"),E("core-js/modules/es.typed-array.reduce"),E("core-js/modules/es.typed-array.reduce-right"),E("core-js/modules/es.typed-array.reverse"),E("core-js/modules/es.typed-array.set"),E("core-js/modules/es.typed-array.slice"),E("core-js/modules/es.typed-array.some"),E("core-js/modules/es.typed-array.sort"),E("core-js/modules/es.typed-array.subarray"),E("core-js/modules/es.typed-array.to-locale-string"),E("core-js/modules/es.typed-array.to-string"),E("core-js/modules/es.weak-map"),E("core-js/modules/web.dom-collections.iterator"),E("core-js/modules/es.symbol"),E("core-js/modules/es.symbol.description"),E("core-js/modules/es.symbol.iterator"),E("core-js/modules/es.array.concat"),E("core-js/modules/es.array.copy-within"),E("core-js/modules/es.array.every"),E("core-js/modules/es.array.fill"),E("core-js/modules/es.array.from"),E("core-js/modules/es.array.includes"),E("core-js/modules/es.array.iterator"),E("core-js/modules/es.array.slice"),E("core-js/modules/es.array.some"),E("core-js/modules/es.map"),E("core-js/modules/es.object.assign"),E("core-js/modules/es.object.get-prototype-of"),E("core-js/modules/es.object.to-string"),E("core-js/modules/es.reflect.construct"),E("core-js/modules/es.regexp.to-string"),E("core-js/modules/es.set"),E("core-js/modules/es.string.includes"),E("core-js/modules/es.string.iterator"),E("core-js/modules/es.typed-array.float32-array"),E("core-js/modules/es.typed-array.float64-array"),E("core-js/modules/es.typed-array.int16-array"),E("core-js/modules/es.typed-array.uint8-array"),E("core-js/modules/es.typed-array.uint16-array"),E("core-js/modules/es.typed-array.uint32-array"),E("core-js/modules/es.typed-array.copy-within"),E("core-js/modules/es.typed-array.every"),E("core-js/modules/es.typed-array.fill"),E("core-js/modules/es.typed-array.filter"),E("core-js/modules/es.typed-array.find"),E("core-js/modules/es.typed-array.find-index"),E("core-js/modules/es.typed-array.for-each"),E("core-js/modules/es.typed-array.includes"),E("core-js/modules/es.typed-array.index-of"),E("core-js/modules/es.typed-array.iterator"),E("core-js/modules/es.typed-array.join"),E("core-js/modules/es.typed-array.last-index-of"),E("core-js/modules/es.typed-array.map"),E("core-js/modules/es.typed-array.reduce"),E("core-js/modules/es.typed-array.reduce-right"),E("core-js/modules/es.typed-array.reverse"),E("core-js/modules/es.typed-array.set"),E("core-js/modules/es.typed-array.slice"),E("core-js/modules/es.typed-array.some"),E("core-js/modules/es.typed-array.sort"),E("core-js/modules/es.typed-array.subarray"),E("core-js/modules/es.typed-array.to-locale-string"),E("core-js/modules/es.typed-array.to-string"),E("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(j,"__esModule",{value:!0}),j.readPixelsWebGL=P,j.readPixelWebGL=A,j.default=void 0;var d=m(E("../core/main")),s=function(D){if(D&&D.__esModule)return D;if(D===null||o(D)!=="object"&&typeof D!="function")return{default:D};var F=b();if(F&&F.has(D))return F.get(D);var N,G={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(N in D){var B;Object.prototype.hasOwnProperty.call(D,N)&&((B=R?Object.getOwnPropertyDescriptor(D,N):null)&&(B.get||B.set)?Object.defineProperty(G,N,B):G[N]=D[N])}return G.default=D,F&&F.set(D,G),G}(E("../core/constants")),g=m(E("libtess"));E("./p5.Shader"),E("./p5.Camera"),E("../core/p5.Renderer"),E("./p5.Matrix"),E("path");function b(){var D;return typeof WeakMap!="function"?null:(D=new WeakMap,b=function(){return D},D)}function m(D){return D&&D.__esModule?D:{default:D}}function o(D){return(o=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(F){return c(F)}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":c(F)})(D)}function l(D){return function(F){if(Array.isArray(F)){for(var N=0,G=new Array(F.length);N vTexCoord.y; + bool y1 = p1.y > vTexCoord.y; + bool y2 = p2.y > vTexCoord.y; + + // could web be under the curve (after t1)? + if (y1 ? !y2 : y0) { + // add the coverage for t1 + coverage.x += saturate(C1.x + 0.5); + // calculate the anti-aliasing for t1 + weight.x = min(weight.x, abs(C1.x)); + } + + // are we outside the curve (after t2)? + if (y1 ? !y0 : y2) { + // subtract the coverage for t2 + coverage.x -= saturate(C2.x + 0.5); + // calculate the anti-aliasing for t2 + weight.x = min(weight.x, abs(C2.x)); + } +} + +// this is essentially the same as coverageX, but with the axes swapped +void coverageY(vec2 p0, vec2 p1, vec2 p2) { + + vec2 C1, C2; + calulateCrossings(p0, p1, p2, C1, C2); + + bool x0 = p0.x > vTexCoord.x; + bool x1 = p1.x > vTexCoord.x; + bool x2 = p2.x > vTexCoord.x; + + if (x1 ? !x2 : x0) { + coverage.y -= saturate(C1.y + 0.5); + weight.y = min(weight.y, abs(C1.y)); + } + + if (x1 ? !x0 : x2) { + coverage.y += saturate(C2.y + 0.5); + weight.y = min(weight.y, abs(C2.y)); + } +} + +void main() { + + // calculate the pixel scale based on screen-coordinates + pixelScale = hardness / fwidth(vTexCoord); + + // which grid cell is this pixel in? + ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize)); + + // intersect curves in this row + { + // the index into the row info bitmap + int rowIndex = gridCoord.y + uGridOffset.y; + // fetch the info texel + vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize); + // unpack the rowInfo + int rowStrokeIndex = getInt16(rowInfo.xy); + int rowStrokeCount = getInt16(rowInfo.zw); + + for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) { + if (iRowStroke >= rowStrokeCount) + break; + + // each stroke is made up of 3 points: the start and control point + // and the start of the next curve. + // fetch the indices of this pair of strokes: + vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize); + + // unpack the stroke index + int strokePos = getInt16(strokeIndices.xy); + + // fetch the two strokes + vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize); + vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize); + + // calculate the coverage + coverageX(stroke0.xy, stroke0.zw, stroke1.xy); + } + } + + // intersect curves in this column + { + int colIndex = gridCoord.x + uGridOffset.x; + vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize); + int colStrokeIndex = getInt16(colInfo.xy); + int colStrokeCount = getInt16(colInfo.zw); + + for (int iColStroke = INT(0); iColStroke < N; iColStroke++) { + if (iColStroke >= colStrokeCount) + break; + + vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize); + + int strokePos = getInt16(strokeIndices.xy); + vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize); + vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize); + coverageY(stroke0.xy, stroke0.zw, stroke1.xy); + } + } + + weight = saturate(1.0 - weight * 2.0); + float distance = max(weight.x + weight.y, minDistance); // manhattan approx. + float antialias = abs(dot(coverage, weight) / distance); + float cover = min(abs(coverage.x), abs(coverage.y)); + OUT_COLOR = vec4(uMaterialColor.rgb, 1.) * uMaterialColor.a; + OUT_COLOR *= saturate(max(antialias, cover)); +} +`,lineVert:k+`/* + Part of the Processing project - http://processing.org + Copyright (c) 2012-15 The Processing Foundation + Copyright (c) 2004-12 Ben Fry and Casey Reas + Copyright (c) 2001-04 Massachusetts Institute of Technology + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation, version 2.1. + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General + Public License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, + Boston, MA 02111-1307 USA +*/ + +#define PROCESSING_LINE_SHADER + +precision mediump float; +precision mediump int; + +uniform mat4 uModelViewMatrix; +uniform mat4 uProjectionMatrix; +uniform float uStrokeWeight; + +uniform bool uUseLineColor; +uniform vec4 uMaterialColor; + +uniform vec4 uViewport; +uniform int uPerspective; +uniform int uStrokeJoin; + +attribute vec4 aPosition; +attribute vec3 aTangentIn; +attribute vec3 aTangentOut; +attribute float aSide; +attribute vec4 aVertexColor; + +varying vec4 vColor; +varying vec2 vTangent; +varying vec2 vCenter; +varying vec2 vPosition; +varying float vMaxDist; +varying float vCap; +varying float vJoin; + +vec2 lineIntersection(vec2 aPoint, vec2 aDir, vec2 bPoint, vec2 bDir) { + // Rotate and translate so a starts at the origin and goes out to the right + bPoint -= aPoint; + vec2 rotatedBFrom = vec2( + bPoint.x*aDir.x + bPoint.y*aDir.y, + bPoint.y*aDir.x - bPoint.x*aDir.y + ); + vec2 bTo = bPoint + bDir; + vec2 rotatedBTo = vec2( + bTo.x*aDir.x + bTo.y*aDir.y, + bTo.y*aDir.x - bTo.x*aDir.y + ); + float intersectionDistance = + rotatedBTo.x + (rotatedBFrom.x - rotatedBTo.x) * rotatedBTo.y / + (rotatedBTo.y - rotatedBFrom.y); + return aPoint + aDir * intersectionDistance; +} + +void main() { + // Caps have one of either the in or out tangent set to 0 + vCap = (aTangentIn == vec3(0.)) != (aTangentOut == (vec3(0.))) + ? 1. : 0.; + + // Joins have two unique, defined tangents + vJoin = ( + aTangentIn != vec3(0.) && + aTangentOut != vec3(0.) && + aTangentIn != aTangentOut + ) ? 1. : 0.; + + vec4 posp = uModelViewMatrix * aPosition; + vec4 posqIn = uModelViewMatrix * (aPosition + vec4(aTangentIn, 0)); + vec4 posqOut = uModelViewMatrix * (aPosition + vec4(aTangentOut, 0)); + + float facingCamera = pow( + // The word space tangent's z value is 0 if it's facing the camera + abs(normalize(posqIn-posp).z), + + // Using pow() here to ramp \`facingCamera\` up from 0 to 1 really quickly + // so most lines get scaled and don't get clipped + 0.25 + ); + + // using a scale <1 moves the lines towards the camera + // in order to prevent popping effects due to half of + // the line disappearing behind the geometry faces. + float scale = mix(1., 0.995, facingCamera); + + // Moving vertices slightly toward the camera + // to avoid depth-fighting with the fill triangles. + // Discussed here: + // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848 + posp.xyz = posp.xyz * scale; + posqIn.xyz = posqIn.xyz * scale; + posqOut.xyz = posqOut.xyz * scale; + + vec4 p = uProjectionMatrix * posp; + vec4 qIn = uProjectionMatrix * posqIn; + vec4 qOut = uProjectionMatrix * posqOut; + vCenter = p.xy; + + // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height]) + // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw + + // prevent division by W by transforming the tangent formula (div by 0 causes + // the line to disappear, see https://github.com/processing/processing/issues/5183) + // t = screen_q - screen_p + // + // tangent is normalized and we don't care which aDirection it points to (+-) + // t = +- normalize( screen_q - screen_p ) + // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw ) + // + // extract common factor, <1,1> - <1,1> cancels out + // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw ) + // + // convert to common divisor + // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw ) + // + // remove the common scalar divisor/factor, not needed due to normalize and +- + // (keep uViewport - can't remove because it has different components for x and y + // and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181) + // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw ) + + vec2 tangentIn = normalize((qIn.xy*p.w - p.xy*qIn.w) * uViewport.zw); + vec2 tangentOut = normalize((qOut.xy*p.w - p.xy*qOut.w) * uViewport.zw); + + vec2 curPerspScale; + if(uPerspective == 1) { + // Perspective --- + // convert from world to clip by multiplying with projection scaling factor + // to get the right thickness (see https://github.com/processing/processing/issues/5182) + // invert Y, projections in Processing invert Y + curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy; + } else { + // No Perspective --- + // multiply by W (to cancel out division by W later in the pipeline) and + // convert from screen to clip (derived from clip to screen above) + curPerspScale = p.w / (0.5 * uViewport.zw); + } + + vec2 offset; + if (vJoin == 1.) { + vTangent = normalize(tangentIn + tangentOut); + vec2 normalIn = vec2(-tangentIn.y, tangentIn.x); + vec2 normalOut = vec2(-tangentOut.y, tangentOut.x); + float side = sign(aSide); + float sideEnum = abs(aSide); + + // We generate vertices for joins on either side of the centerline, but + // the "elbow" side is the only one needing a join. By not setting the + // offset for the other side, all its vertices will end up in the same + // spot and not render, effectively discarding it. + if (sign(dot(tangentOut, vec2(-tangentIn.y, tangentIn.x))) != side) { + // Side enums: + // 1: the side going into the join + // 2: the middle of the join + // 3: the side going out of the join + if (sideEnum == 2.) { + // Calculate the position + tangent on either side of the join, and + // find where the lines intersect to find the elbow of the join + vec2 c = (posp.xy/posp.w + vec2(1.,1.)) * 0.5 * uViewport.zw; + vec2 intersection = lineIntersection( + c + (side * normalIn * uStrokeWeight / 2.) * curPerspScale, + tangentIn, + c + (side * normalOut * uStrokeWeight / 2.) * curPerspScale, + tangentOut + ); + offset = (intersection - c); + + // When lines are thick and the angle of the join approaches 180, the + // elbow might be really far from the center. We'll apply a limit to + // the magnitude to avoid lines going across the whole screen when this + // happens. + float mag = length(offset); + float maxMag = 3. * uStrokeWeight; + if (mag > maxMag) { + offset *= maxMag / mag; + } + } else if (sideEnum == 1.) { + offset = side * normalIn * curPerspScale * uStrokeWeight / 2.; + } else if (sideEnum == 3.) { + offset = side * normalOut * curPerspScale * uStrokeWeight / 2.; + } + } + if (uStrokeJoin == STROKE_JOIN_BEVEL) { + vec2 avgNormal = vec2(-vTangent.y, vTangent.x); + vMaxDist = abs(dot(avgNormal, normalIn * uStrokeWeight / 2.)); + } else { + vMaxDist = uStrokeWeight / 2.; + } + } else { + vec2 tangent = aTangentIn == vec3(0.) ? tangentOut : tangentIn; + vTangent = tangent; + vec2 normal = vec2(-tangent.y, tangent.x); + + float normalOffset = sign(aSide); + // Caps will have side values of -2 or 2 on the edge of the cap that + // extends out from the line + float tangentOffset = abs(aSide) - 1.; + offset = (normal * normalOffset + tangent * tangentOffset) * + uStrokeWeight * 0.5 * curPerspScale; + vMaxDist = uStrokeWeight / 2.; + } + vPosition = vCenter + offset / curPerspScale; + + gl_Position.xy = p.xy + offset.xy; + gl_Position.zw = p.zw; + + vColor = (uUseLineColor ? aVertexColor : uMaterialColor); +} +`,lineFrag:k+`precision mediump float; +precision mediump int; + +uniform vec4 uMaterialColor; +uniform int uStrokeCap; +uniform int uStrokeJoin; +uniform float uStrokeWeight; + +varying vec4 vColor; +varying vec2 vTangent; +varying vec2 vCenter; +varying vec2 vPosition; +varying float vMaxDist; +varying float vCap; +varying float vJoin; + +float distSquared(vec2 a, vec2 b) { + vec2 aToB = b - a; + return dot(aToB, aToB); +} + +void main() { + if (vCap > 0.) { + if ( + uStrokeCap == STROKE_CAP_ROUND && + distSquared(vPosition, vCenter) > uStrokeWeight * uStrokeWeight * 0.25 + ) { + discard; + } else if ( + uStrokeCap == STROKE_CAP_SQUARE && + dot(vPosition - vCenter, vTangent) > 0. + ) { + discard; + } + // Use full area for PROJECT + } else if (vJoin > 0.) { + if ( + uStrokeJoin == STROKE_JOIN_ROUND && + distSquared(vPosition, vCenter) > uStrokeWeight * uStrokeWeight * 0.25 + ) { + discard; + } else if (uStrokeJoin == STROKE_JOIN_BEVEL) { + vec2 normal = vec2(-vTangent.y, vTangent.x); + if (abs(dot(vPosition - vCenter, normal)) > vMaxDist) { + discard; + } + } + // Use full area for MITER + } + gl_FragColor = vec4(vColor.rgb, 1.) * vColor.a; +} +`,pointVert:`attribute vec3 aPosition; +uniform float uPointSize; +varying float vStrokeWeight; +uniform mat4 uModelViewMatrix; +uniform mat4 uProjectionMatrix; +void main() { + vec4 positionVec4 = vec4(aPosition, 1.0); + gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4; + gl_PointSize = uPointSize; + vStrokeWeight = uPointSize; +}`,pointFrag:`precision mediump float; +precision mediump int; +uniform vec4 uMaterialColor; +varying float vStrokeWeight; + +void main(){ + float mask = 0.0; + + // make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point) + // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant + + mask = step(0.98, length(gl_PointCoord * 2.0 - 1.0)); + + // if strokeWeight is 1 or less lets just draw a square + // this prevents weird artifacting from carving circles when our points are really small + // if strokeWeight is larger than 1, we just use it as is + + mask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0)); + + // throw away the borders of the mask + // otherwise we get weird alpha blending issues + + if(mask > 0.98){ + discard; + } + + gl_FragColor = vec4(uMaterialColor.rgb, 1.) * uMaterialColor.a; +} +`};function P(D,F,z,G,R,B,V,X,Q,oe){var I=F.getParameter(F.FRAMEBUFFER_BINDING),z=(F.bindFramebuffer(F.FRAMEBUFFER,z),X===F.RGBA?4:3),q=B*V*z,Y=Q===F.UNSIGNED_BYTE?Uint8Array:Float32Array;if(D instanceof Y&&D.length===q||(D=new Y(q)),F.readPixels(G,oe?oe-R-V:R,B,V,X,Q,D),F.bindFramebuffer(F.FRAMEBUFFER,I),oe)for(var te=Math.floor(V/2),re=new Y(B*z),le=0;le>7,127&me,ne>>7,127&ne);for(var we=0;we>7,127&Pe,0,0)}}return{cellImageInfo:$,dimOffset:He,dimImageInfo:je}}}}]),i}();g.default.RendererGL.prototype._renderText=function(i,v,S,M,k){if(this._textFont&&typeof this._textFont!="string"){if(!(k<=M)&&this._doFill){if(this._isOpenType()){i.push();var k=this._doStroke,E=this.drawMode,L=(this._doStroke=!1,this.drawMode=b.TEXTURE,this._textFont.font),O=(O=this._textFont._fontInfo)||(this._textFont._fontInfo=new h(L)),S=this._textFont._handleAlignment(this,v,S,M),M=this._textSize/L.unitsPerEm,P=(this.translate(S.x,S.y,0),this.scale(M,M,1),this.GL),S=!this._defaultFontShader,A=this._getFontShader(),D=(A.init(),A.bindShader(),S&&(A.setUniform("uGridImageSize",[64,64]),A.setUniform("uCellsImageSize",[64,64]),A.setUniform("uStrokeImageSize",[64,64]),A.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),F=(D||((M=this._textGeom=new g.default.Geometry(1,1,function(){for(var fe=0;fe<=1;fe++)for(var ce=0;ce<=1;ce++)this.vertices.push(new g.default.Vector(ce,fe,0)),this.uvs.push(ce,fe)})).computeFaces().computeNormals(),D=this.createBuffers("glyph",M)),!0),S=!1,M=void 0;try{for(var N,G=this.retainedMode.buffers.text[Symbol.iterator]();!(F=(N=G.next()).done);F=!0)N.value._prepareBuffer(D,A)}catch(fe){S=!0,M=fe}finally{try{F||G.return==null||G.return()}finally{if(S)throw M}}this._bindBuffer(D.indexBuffer,P.ELEMENT_ARRAY_BUFFER),A.setUniform("uMaterialColor",this.curFillColor),P.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);try{var R=0,B=null,V=L.stringToGlyphs(v),X=!0,Q=!1,oe=void 0;try{for(var I,z=V[Symbol.iterator]();!(X=(I=z.next()).done);X=!0){var q,Y,te=I.value,re=(B&&(R+=L.getKerningValue(B,te)),O.getGlyphInfo(te));re.uGlyphRect&&(q=re.rowInfo,Y=re.colInfo,A.setUniform("uSamplerStrokes",re.strokeImageInfo.imageData),A.setUniform("uSamplerRowStrokes",q.cellImageInfo.imageData),A.setUniform("uSamplerRows",q.dimImageInfo.imageData),A.setUniform("uSamplerColStrokes",Y.cellImageInfo.imageData),A.setUniform("uSamplerCols",Y.dimImageInfo.imageData),A.setUniform("uGridOffset",re.uGridOffset),A.setUniform("uGlyphRect",re.uGlyphRect),A.setUniform("uGlyphOffset",R),A.bindTextures(),P.drawElements(P.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),R+=te.advanceWidth,B=te}}catch(fe){Q=!0,oe=fe}finally{try{X||z.return==null||z.return()}finally{if(Q)throw oe}}}finally{A.unbindShader(),this._doStroke=k,this.drawMode=E,P.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return i}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":262,"../core/main":273,"./p5.RendererGL.Retained":327,"./p5.Shader":329,"core-js/modules/es.array.iterator":160,"core-js/modules/es.object.get-own-property-descriptor":176,"core-js/modules/es.object.to-string":180,"core-js/modules/es.regexp.exec":185,"core-js/modules/es.string.iterator":190,"core-js/modules/es.string.split":196,"core-js/modules/es.string.sub":198,"core-js/modules/es.symbol":202,"core-js/modules/es.symbol.description":200,"core-js/modules/es.symbol.iterator":201,"core-js/modules/es.weak-map":234,"core-js/modules/web.dom-collections.iterator":236}]},{},[257])(257)})})(Ah);var My=Ah.exports;const Cy=Jh(My);function Oy(r,n){return new Cy(r,n)}function pd(r){var n;(n=r.current)==null||n.remove(),r.current=null}function Py(r){const{sketch:n,children:_,...t}=r,w=pr.createRef(),j=pr.useRef(null);return pr.useEffect(()=>{w.current!==null&&(pd(j),j.current=Oy(n,w.current))},[n]),pr.useEffect(()=>{var c,d;(d=(c=j.current)==null?void 0:c.updateWithProps)==null||d.call(c,t)},[t,w]),pr.useEffect(()=>()=>pd(j),[]),Sr.jsx("div",{ref:w,className:Ty,children:_})}function Ly(r){const{sketch:n,fallback:_}=r;return n===void 0?(console.error("[ReactP5Wrapper] The `sketch` prop is required."),_!==void 0?Sr.jsx(Sr.Fragment,{children:_}):null):Sr.jsx(Py,{...r})}const Ay=pr.memo(Ly,ky);function Ry(){const r=pr.useMemo(()=>[Sl,Ph,Oh],[dd,hd,fd]),[n,_]=pr.useState({rotation:160,sketch:Sl,unmount:!1}),t=pr.useCallback(()=>{_(c=>{const s=(r.findIndex(b=>Object.is(b,c.sketch))+1)%r.length,g=r.at(s);return g===void 0?c:{...c,sketch:g}})},[r]),w=pr.useCallback(()=>{_(c=>({...c,unmount:!c.unmount}))},[]),j=pr.useCallback(c=>{_(d=>({...d,rotation:parseInt(c.target.value,10)}))},[dd,fd,hd]);return n.unmount?Sr.jsxs(pr.Fragment,{children:[Sr.jsx("p",{children:"Unmounted the sketch"}),Sr.jsx("button",{onClick:w,children:"Remount"})]}):Sr.jsxs(pr.Fragment,{children:[Sr.jsx(Ay,{sketch:n.sketch,rotation:n.rotation}),Sr.jsx("input",{type:"range",defaultValue:n.rotation,min:"0",max:"360",step:"1",onChange:j}),Sr.jsx("button",{onClick:t,children:"Change Sketch"}),Sr.jsx("button",{onClick:w,children:"Unmount"})]})}const Dy=document.getElementById("app"),Iy=Ch(Dy);Iy.render(Sr.jsx(Ry,{})); diff --git a/index.html b/index.html index 0c4c86d..cc26bc5 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + @P5-wrapper/react - +