1751 lines
1.3 MiB
JavaScript
1751 lines
1.3 MiB
JavaScript
|
|
var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Nx(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var mw={exports:{}},Nu={},gw={exports:{}},re={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var qs=Symbol.for("react.element"),jx=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),zx=Symbol.for("react.strict_mode"),Vx=Symbol.for("react.profiler"),Hx=Symbol.for("react.provider"),$x=Symbol.for("react.context"),Gx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),qx=Symbol.for("react.memo"),Xx=Symbol.for("react.lazy"),$m=Symbol.iterator;function Yx(t){return t===null||typeof t!="object"?null:(t=$m&&t[$m]||t["@@iterator"],typeof t=="function"?t:null)}var yw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_w=Object.assign,ww={};function eo(t,e,n){this.props=t,this.context=e,this.refs=ww,this.updater=n||yw}eo.prototype.isReactComponent={};eo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};eo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function kw(){}kw.prototype=eo.prototype;function Nv(t,e,n){this.props=t,this.context=e,this.refs=ww,this.updater=n||yw}var jv=Nv.prototype=new kw;jv.constructor=Nv;_w(jv,eo.prototype);jv.isPureReactComponent=!0;var Gm=Array.isArray,bw=Object.prototype.hasOwnProperty,Uv={current:null},xw={key:!0,ref:!0,__self:!0,__source:!0};function Sw(t,e,n){var i,r={},a=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)bw.call(e,i)&&!xw.hasOwnProperty(i)&&(r[i]=e[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var f=Array(s),l=0;l<s;l++)f[l]=arguments[l+2];r.children=f}if(t&&t.defaultProps)for(i in s=t.defaultProps,s)r[i]===void 0&&(r[i]=s[i]);return{$$typeof:qs,type:t,key:a,ref:o,props:r,_owner:Uv.current}}function Kx(t,e){return{$$typeof:qs,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function zv(t){return typeof t=="object"&&t!==null&&t.$$typeof===qs}function Zx(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Wm=/\/+/g;function Td(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Zx(""+t.key):e.toString(36)}function ll(t,e,n,i,r){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case qs:case jx:o=!0}}if(o)return o=t,r=r(o),t=i===""?"."+Td(o,0):i,Gm(r)?(n="",t!=null&&(n=t.replace(Wm,"$&/")+"/"),ll(r,e,n,"",function(l){return l})):r!=null&&(zv(r)&&(r=Kx(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(Wm,"$&/")+"/")+t)),e.push(r)),1;if(o=0,i=i===""?".":i+":",Gm(t))for(var s=0;s<t.length;s++){a=t[s];var f=i+Td(a,s);o+=ll(a,e,n,f,r)}else if(f=Yx(t),typeof f=="function")for(t=f.call(t),s=0;!(a=t.next()).done;)a=a.value,f=i+Td(a,s++),o+=ll(a,e,n,f,r);else if(a==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function uf(t,e,n){if(t==null)return t;var i=[],r=0;return ll(t,i,"","",function(a){return e.call(n,a,r++)}),i}function Qx(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var bt={current:null},ul={transition:null},Jx={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:ul,ReactCurrentOwner:Uv};function Tw(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:uf,forEach:function(t,e,n){uf(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return uf(t,function(){e++}),e},toArray:function(t){return uf(t,function(e){return e})||[]},only:function(t){if(!zv(t))throw Error("React.Children.only expected to receive a sin
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var e9=C,t9=Symbol.for("react.element"),n9=Symbol.for("react.fragment"),i9=Object.prototype.hasOwnProperty,r9=e9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a9={key:!0,ref:!0,__self:!0,__source:!0};function Ew(t,e,n){var i,r={},a=null,o=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)i9.call(e,i)&&!a9.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:t9,type:t,key:a,ref:o,props:r,_owner:r9.current}}Nu.Fragment=n9;Nu.jsx=Ew;Nu.jsxs=Ew;mw.exports=Nu;var ve=mw.exports,Cw={exports:{}},Ht={},Aw={exports:{}},Pw={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/(function(t){function e(O,N){var P=O.length;O.push(N);e:for(;0<P;){var L=P-1>>>1,V=O[L];if(0<r(V,N))O[L]=N,O[P]=V,P=L;else break e}}function n(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var N=O[0],P=O.pop();if(P!==N){O[0]=P;e:for(var L=0,V=O.length,Z=V>>>1;L<Z;){var Y=2*(L+1)-1,oe=O[Y],J=Y+1,de=O[J];if(0>r(oe,P))J<V&&0>r(de,oe)?(O[L]=de,O[J]=P,L=J):(O[L]=oe,O[Y]=P,L=Y);else if(J<V&&0>r(de,P))O[L]=de,O[J]=P,L=J;else break e}}return N}function r(O,N){var P=O.sortIndex-N.sortIndex;return P!==0?P:O.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var f=[],l=[],c=1,u=null,d=3,h=!1,p=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(O){for(var N=n(l);N!==null;){if(N.callback===null)i(l);else if(N.startTime<=O)i(l),N.sortIndex=N.expirationTime,e(f,N);else break;N=n(l)}}function w(O){if(m=!1,_(O),!p)if(n(f)!==null)p=!0,B(k);else{var N=n(l);N!==null&&U(w,N.startTime-O)}}function k(O,N){p=!1,m&&(m=!1,g(S),S=-1),h=!0;var P=d;try{for(_(N),u=n(f);u!==null&&(!(u.expirationTime>N)||O&&!A());){var L=u.callback;if(typeof L=="function"){u.callback=null,d=u.priorityLevel;var V=L(u.expirationTime<=N);N=t.unstable_now(),typeof V=="function"?u.callback=V:u===n(f)&&i(f),_(N)}else i(f);u=n(f)}if(u!==null)var Z=!0;else{var Y=n(l);Y!==null&&U(w,Y.startTime-N),Z=!1}return Z}finally{u=null,d=P,h=!1}}var b=!1,x=null,S=-1,T=5,E=-1;function A(){return!(t.unstable_now()-E<T)}function I(){if(x!==null){var O=t.unstable_now();E=O;var N=!0;try{N=x(!0,O)}finally{N?D():(b=!1,x=null)}}else b=!1}var D;if(typeof y=="function")D=function(){y(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,R=$.port2;$.port1.onmessage=I,D=function(){R.postMessage(null)}}else D=function(){v(I,0)};function B(O){x=O,b||(b=!0,D())}function U(O,N){S=v(function(){O(t.unstable_now())},N)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_continueExecution=function(){p||h||(p=!0,B(k))},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(O){switch(d){case 1:case 2:case 3:var N=3;break;default:N=d}var P=d;d=N;try{return O()}finally{d=P}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=d;d=O;try{return N()}finally{d=P}},t.unstable_scheduleCallback=function(O,N,P){var L=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?L+P:L):P=L,O){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=P+V,O={id:c++,callback:N,priorityLevel:O,startTime:P,expirationTime:V,sortIndex:-1},P>L?(O.sortIndex=P,e(l,O),n(f)===null&&O===n(l)&&(m?(g(S),S=-1):m=!0,U(w,P-L))):(O.sortIndex=V,e(f,O),p||h||(p=!0,B(k))),O},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(O){var N=d;return function(){var P=d;d=N;try{return O.apply(this,arguments)}finally{d=P}}}})(Pw);Aw.exports=Pw;var o9=Aw.exports;/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var s9=C,Ut=o9;function F(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Mw=new Set,os={};function jr(t,e){Da(t,e),Da(t+"Capture",e)}function Da(t,e){for(os[t]=e,t=0;t<e.length;t++)Mw.add(e[t])}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=Object.prototype.hasOwnProperty,f9=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qm={},Xm={};function l9(t){return bh.call(Xm,t)?!0:bh.call(qm,t)?!1:f9.test(t)?Xm[t]=!0:(qm[t]=!0,!1)}function u9(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function d9(t,e,n,i){if(e===null||typeof e>"u"||u9(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xt(t,e,n,i,r,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ft[t]=new xt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ft[e]=new xt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ft[t]=new xt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ft[t]=new xt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ft[t]=new xt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ft[t]=new xt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ft[t]=new xt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ft[t]=new xt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ft[t]=new xt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Vv=/[\-:]([a-z])/g;function Hv(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
|
||
|
|
`+Ed+t}var Cd=!1;function Ad(t,e){if(!t||Cd)return"";Cd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var i=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){i=l}t.call(e.prototype)}else{try{throw Error()}catch(l){i=l}t()}}catch(l){if(l&&i&&typeof l.stack=="string"){for(var r=l.stack.split(`
|
||
|
|
`),a=i.stack.split(`
|
||
|
|
`),o=r.length-1,s=a.length-1;1<=o&&0<=s&&r[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(r[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||r[o]!==a[s]){var f=`
|
||
|
|
`+r[o].replace(" at new "," at ");return t.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",t.displayName)),f}while(1<=o&&0<=s);break}}}finally{Cd=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Eo(t):""}function c9(t){switch(t.tag){case 5:return Eo(t.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return t=Ad(t.type,!1),t;case 11:return t=Ad(t.type.render,!1),t;case 1:return t=Ad(t.type,!0),t;default:return""}}function Eh(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ia:return"Fragment";case na:return"Portal";case xh:return"Profiler";case Gv:return"StrictMode";case Sh:return"Suspense";case Th:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ow:return(t.displayName||"Context")+".Consumer";case Rw:return(t._context.displayName||"Context")+".Provider";case Wv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case qv:return e=t.displayName||null,e!==null?e:Eh(t.type)||"Memo";case li:e=t._payload,t=t._init;try{return Eh(t(e))}catch{}}return null}function h9(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eh(e);case 8:return e===Gv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ri(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Iw(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function p9(t){var e=Iw(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function cf(t){t._valueTracker||(t._valueTracker=p9(t))}function Bw(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Iw(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Bl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ch(t,e){var n=e.checked;return Ie({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Km(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Ri(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Dw(t,e){e=e.checked,e!=null&&$v(t,"checked",e,!1)}function Ah(t,e){Dw(t,e);var n=Ri(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ph(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ph(t,e.type,Ri(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Zm(t,e,n){if(e.hasOwnProperty("val
|
||
|
|
`).replace(S5,"")}function wf(t,e,n){if(e=w0(e),w0(t)!==e&&n)throw Error(F(425))}function Hl(){}var Hh=null,$h=null;function Gh(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Wh=typeof setTimeout=="function"?setTimeout:void 0,T5=typeof clearTimeout=="function"?clearTimeout:void 0,k0=typeof Promise=="function"?Promise:void 0,E5=typeof queueMicrotask=="function"?queueMicrotask:typeof k0<"u"?function(t){return k0.resolve(null).then(t).catch(C5)}:Wh;function C5(t){setTimeout(function(){throw t})}function zd(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){t.removeChild(r),ds(e);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);ds(e)}function Ti(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function b0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var no=Math.random().toString(36).slice(2),kn="__reactFiber$"+no,ms="__reactProps$"+no,Qn="__reactContainer$"+no,qh="__reactEvents$"+no,A5="__reactListeners$"+no,P5="__reactHandles$"+no;function hr(t){var e=t[kn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Qn]||n[kn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=b0(t);t!==null;){if(n=t[kn])return n;t=b0(t)}return e}t=n,n=t.parentNode}return null}function Ks(t){return t=t[kn]||t[Qn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function sa(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(F(33))}function Hu(t){return t[ms]||null}var Xh=[],fa=-1;function zi(t){return{current:t}}function be(t){0>fa||(t.current=Xh[fa],Xh[fa]=null,fa--)}function ye(t,e){fa++,Xh[fa]=t.current,t.current=e}var Oi={},yt=zi(Oi),Ct=zi(!1),Cr=Oi;function La(t,e){var n=t.type.contextTypes;if(!n)return Oi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=e[a];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function At(t){return t=t.childContextTypes,t!=null}function $l(){be(Ct),be(yt)}function x0(t,e,n){if(yt.current!==Oi)throw Error(F(168));ye(yt,e),ye(Ct,n)}function Sk(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(F(108,h9(t)||"Unknown",r));return Ie({},n,i)}function Gl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Oi,Cr=yt.current,ye(yt,t),ye(Ct,Ct.current),!0}function S0(t,e,n){var i=t.stateNode;if(!i)throw Error(F(169));n?(t=Sk(t,e,Cr),i.__reactInternalMemoizedMergedChildContext=t,be(Ct),be(yt),ye(yt,t)):be(Ct),ye(Ct,n)}var Nn=null,$u=!1,Vd=!1;function Tk(t){Nn===null?Nn=[t]:Nn.push(t)}function M5(t){$u=!0,Tk(t)}function Vi(){if(!Vd&&Nn!==null){Vd=!0;var t=0,e=me;try{var n=Nn;for(me=1;t<n.length;t++){var i=n[t];do i=i(!0);while(i!==null)}Nn=null,$u=!1}catch(r){throw Nn!==null&&(Nn=Nn.slice(t+1)),Kw(Yv,Vi),r}finally{me=e,Vd=!1}}return null}var la=[],ua=0,Wl=null,ql=0,Yt=[],Kt=0,Ar=null,Hn=1,$n="";function nr(t,e){la[ua++]=ql,la[ua++]=Wl,Wl=t,ql=e}function Ek(t,e,n){Yt[Kt++]=Hn,Yt[Kt++]=$n,Yt[Kt++]=Ar,Ar=t;var i=Hn;t=$n;var r=32-un(i)-1;i&=~(1<<r),n+=1;var a=32-un(e)+r;if(30<a){var o=r-r%5;a=(i&(1<<o)-1).toString(32),i>>=o,r-=o,Hn=1<<32-un(e)+r|n<<r|i,$n=a+t}else Hn=1<<a|n<<r|i,$n=t}function r1(t){t.return!==null&&(nr(t,1),Ek(t,1,0))}function a1(t){for(;t===Wl;)Wl=la[--ua],la[ua]=null,ql=la[--ua],la[ua]=null;for(;t===Ar;)Ar=Yt[--Kt],Yt[Kt]=null,$n=Yt[--Kt],Yt[Kt]=null,Hn=Yt[--Kt],Yt[Kt]=null}var Nt=null,Dt=null,Ee=!1,ln=null;function Ck(t,e){var n=Zt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletio
|
||
|
|
Error generating stack: `+a.message+`
|
||
|
|
`+a.stack}return{value:t,source:e,stack:r,digest:null}}function qd(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function ep(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var j5=typeof WeakMap=="function"?WeakMap:Map;function eb(t,e,n){n=Wn(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){tu||(tu=!0,up=i),ep(t,e)},n}function tb(t,e,n){n=Wn(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){ep(t,e)}}var a=t.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){ep(t,e),typeof i!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function I0(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new j5;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=J5.bind(null,t,e,n),e.then(t,t))}function B0(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function D0(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Wn(-1,1),e.tag=2,Ei(n,e,1))),n.lanes|=1),t)}var U5=ri.ReactCurrentOwner,Et=!1;function wt(t,e,n,i){e.child=t===null?Mk(e,null,n,i):ja(e,t.child,n,i)}function L0(t,e,n,i,r){n=n.render;var a=e.ref;return Pa(e,r),i=m1(t,e,n,i,a,r),n=g1(),t!==null&&!Et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ei(t,e,r)):(Ee&&n&&r1(e),e.flags|=1,wt(t,e,i,r),e.child)}function N0(t,e,n,i,r){if(t===null){var a=n.type;return typeof a=="function"&&!C1(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=a,nb(t,e,a,i,r)):(t=wl(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!(t.lanes&r)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:hs,n(o,i)&&t.ref===e.ref)return ei(t,e,r)}return e.flags|=1,t=Pi(a,i),t.ref=e.ref,t.return=e,e.child=t}function nb(t,e,n,i,r){if(t!==null){var a=t.memoizedProps;if(hs(a,i)&&t.ref===e.ref)if(Et=!1,e.pendingProps=i=a,(t.lanes&r)!==0)t.flags&131072&&(Et=!0);else return e.lanes=t.lanes,ei(t,e,r)}return tp(t,e,n,i,r)}function ib(t,e,n){var i=e.pendingProps,r=i.children,a=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(ha,It),It|=n;else{if(!(n&1073741824))return t=a!==null?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ye(ha,It),It|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:n,ye(ha,It),It|=i}else a!==null?(i=a.baseLanes|n,e.memoizedState=null):i=n,ye(ha,It),It|=i;return wt(t,e,r,n),e.child}function rb(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function tp(t,e,n,i,r){var a=At(n)?Cr:yt.current;return a=La(e,a),Pa(e,r),n=m1(t,e,n,i,a,r),i=g1(),t!==null&&!Et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ei(t,e,r)):(Ee&&i&&r1(e),e.flags|=1,wt(t,e,n,r),e.child)}function j0(t,e,n,i,r){if(At(n)){var a=!0;Gl(e)}else a=!1;if(Pa(e,r),e.stateNode===null)gl(t,e),Jk(e,n,i),Jh(e,n,i,r),i=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var f=o.context,l=n.contextType;typeof l=="object"&&l!==null?l=Jt(l):(l=At(n)?Cr:yt.current,l=La(e,l));var c=n.getDerivedStateFromProps,u=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==i||f!==l)&&F0(e,o,i,l),ui=!1;var d=e.memoizedState;o.state=d,Kl(e,i,o,r),f=e.memoizedState,s!==i||d!==f||Ct.current||ui?(typeof c=="function"&&(Qh(e,n,c,i),f=e.memoizedState),(s=ui||O0(e,n,s,i,d,f,l))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.
|
||
|
|
* @pixi/constants - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/constants is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var ti;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(ti||(ti={}));var xs;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(xs||(xs={}));var au;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(au||(au={}));var X;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(X||(X={}));var Gn;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Gn||(Gn={}));var j;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(j||(j={}));var kr;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(kr||(kr={}));var le;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(le||(le={}));var ou;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ou||(ou={}));var bn;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(bn||(bn={}));var qn;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(qn||(qn={}));var Fi;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Fi||(Fi={}));var Ii;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Ii||(Ii={}));var di;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]=
|
||
|
|
* @pixi/settings - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/settings is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var dS={createCanvas:function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,n},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var t;return(t=document.baseURI)!==null&&t!==void 0?t:window.location.href},fetch:function(t,e){return fetch(t,e)}},Zd=/iPhone/i,eg=/iPod/i,tg=/iPad/i,ng=/\biOS-universal(?:.+)Mac\b/i,Qd=/\bAndroid(?:.+)Mobile\b/i,ig=/Android/i,qr=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Cf=/Silk/i,On=/Windows Phone/i,rg=/\bWindows(?:.+)ARM\b/i,ag=/BlackBerry/i,og=/BB10/i,sg=/Opera Mini/i,fg=/\b(CriOS|Chrome)(?:.+)Mobile/i,lg=/Mobile(?:.+)Firefox\b/i,ug=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function cS(t){return function(e){return e.test(t)}}function hS(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var n=e.userAgent,i=n.split("[FBAN");typeof i[1]<"u"&&(n=i[0]),i=n.split("Twitter"),typeof i[1]<"u"&&(n=i[0]);var r=cS(n),a={apple:{phone:r(Zd)&&!r(On),ipod:r(eg),tablet:!r(Zd)&&(r(tg)||ug(e))&&!r(On),universal:r(ng),device:(r(Zd)||r(eg)||r(tg)||r(ng)||ug(e))&&!r(On)},amazon:{phone:r(qr),tablet:!r(qr)&&r(Cf),device:r(qr)||r(Cf)},android:{phone:!r(On)&&r(qr)||!r(On)&&r(Qd),tablet:!r(On)&&!r(qr)&&!r(Qd)&&(r(Cf)||r(ig)),device:!r(On)&&(r(qr)||r(Cf)||r(Qd)||r(ig))||r(/\bokhttp\b/i)},windows:{phone:r(On),tablet:r(rg),device:r(On)||r(rg)},other:{blackberry:r(ag),blackberry10:r(og),opera:r(sg),firefox:r(lg),chrome:r(fg),device:r(ag)||r(og)||r(sg)||r(lg)||r(fg)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var mr=hS(globalThis.navigator);function pS(){return!mr.apple.device}function vS(t){var e=!0;if(mr.tablet||mr.phone){if(mr.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var i=parseInt(n[1],10);i<11&&(e=!1)}}if(mr.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var i=parseInt(n[1],10);i<7&&(e=!1)}}}return e?t:4}var H={ADAPTER:dS,MIPMAP_TEXTURES:Fi.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Te.NONE,SPRITE_MAX_TEXTURES:vS(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:su.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:qn.CLAMP,SCALE_MODE:bn.LINEAR,PRECISION_VERTEX:Lt.HIGH,PRECISION_FRAGMENT:mr.apple.device?Lt.HIGH:Lt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:pS(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},Ab={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(f,l,c){this.fn=f,this.context=l,this.once=c||!1}function a(f,l,c,u,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new r(c,u||f,d),p=n?n+l:l;return f._events[p]?f._events[p].fn?f._events[p]=[f._events[p],h]:f._events[p].push(h):(f._events[p]=h,f._eventsCount++),f}function o(f,l){--f._eventsCount===0?f._events=new i:delete f._events[l]}function s(){this._events=new i,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,u;if(this._eventsCount===0)return l;for(u in c=this._events)e.call(c,u)&&l.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=n?n+l:l,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,h=u.length,p=new Array(h);d<h;d++)p[d]=u[d].fn;return p},s.prototype.listenerCount=function(l){var c=n?n+l:l,u=this._event
|
||
|
|
`)>=0)return!1;return!0}function u8(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=wn.call(Array(t.indent+1)," ");else return null;return{base:n,prev:wn.call(Array(e+1),n)}}function kp(t,e){if(t.length===0)return"";var n=`
|
||
|
|
`+e.prev+e.base;return n+wn.call(t,","+n)+`
|
||
|
|
`+e.prev}function Mf(t,e){var n=wp(t),i=[];if(n){i.length=t.length;for(var r=0;r<t.length;r++)i[r]=Ln(t,r)?e(t[r],t):""}var a=typeof tc=="function"?tc(t):[],o;if(Ha){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var f in t)Ln(t,f)&&(n&&String(Number(f))===f&&f<t.length||Ha&&o["$"+f]instanceof Symbol||(Fb.call(/[^\w$]/,f)?i.push(e(f,t)+": "+e(t[f],t)):i.push(f+": "+e(t[f],t))));if(typeof tc=="function")for(var l=0;l<a.length;l++)Ib.call(t,a[l])&&i.push("["+e(a[l])+"]: "+e(t[a[l]],t));return i}var d8=id,c8=io,rd=function(t,e,n){for(var i=t,r;(r=i.next)!=null;i=r)if(r.key===e)return i.next=r.next,n||(r.next=t.next,t.next=r),r},h8=function(t,e){if(t){var n=rd(t,e);return n&&n.value}},p8=function(t,e,n){var i=rd(t,e);i?i.value=n:t.next={key:e,next:t.next,value:n}},v8=function(t,e){return t?!!rd(t,e):!1},m8=function(t,e){if(t)return rd(t,e,!0)},g8=function(){var e,n={assert:function(i){if(!n.has(i))throw new c8("Side channel does not contain "+d8(i))},delete:function(i){var r=e&&e.next,a=m8(e,i);return a&&r&&r===a&&(e=void 0),!!a},get:function(i){return h8(e,i)},has:function(i){return v8(e,i)},set:function(i,r){e||(e={next:void 0}),p8(e,i,r)}};return n},Ub=Object,y8=Error,_8=EvalError,w8=RangeError,k8=ReferenceError,b8=SyntaxError,x8=URIError,S8=Math.abs,T8=Math.floor,E8=Math.max,C8=Math.min,A8=Math.pow,P8=Math.round,M8=Number.isNaN||function(e){return e!==e},R8=M8,O8=function(e){return R8(e)||e===0?e:e<0?-1:1},F8=Object.getOwnPropertyDescriptor,kl=F8;if(kl)try{kl([],"length")}catch{kl=null}var zb=kl,bl=Object.defineProperty||!1;if(bl)try{bl({},"a",{value:1})}catch{bl=!1}var I8=bl,ic,Sg;function B8(){return Sg||(Sg=1,ic=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[n]=r;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==r||s.enumerable!==!0)return!1}return!0}),ic}var rc,Tg;function D8(){if(Tg)return rc;Tg=1;var t=typeof Symbol<"u"&&Symbol,e=B8();return rc=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},rc}var ac,Eg;function Vb(){return Eg||(Eg=1,ac=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ac}var oc,Cg;function Hb(){if(Cg)return oc;Cg=1;var t=Ub;return oc=t.getPrototypeOf||null,oc}var L8="Function.prototype.bind called on incompatible ",N8=Object.prototype.toString,j8=Math.max,U8="[object Function]",Ag=function(e,n){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var a=0;a<n.length;a+=1)i[a+e.length]=n[a];return i},z8=function(e,n){for(var i=[],r=n,a=0;r<e.length;r+=1,a+=1)i[a]=e[r];return i},V8=function(t,e){for(var n="",i=0;i<t.length;i+=1)n+=t[i],i+1<t.length&&(n+=e);return n},H8=function(e){var n=this;if(typeof n!="function"||N8.apply(n)!==U8)throw new TypeError(L8+n);for(var i=z8(arguments,1),r,a=function(){if(this instanceof r){var c=n.apply(this,Ag(i,arguments));return Object(c)===c?c:this}return n.apply(e,Ag(i,arguments))},o=j8(0,n.length-i.length),s=[],f=0;f<o;f++)s[f]="$"+f;if(r=Function("binder","return function ("+V8(s,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var l=function(){};l.prototype=n.prototype,r.prototype=new l,l.prototype=null}return r},$8=H8,ad=Function.prototype.bind||$8,L1=Function.prototype.call,sc,Pg;function $b(){return Pg||(Pg=1,sc=Function.prototype.apply),sc}var G8=typeof Reflect<"u"&&Reflect&&Reflect.apply,W8=ad,q8=$b(),X8=L1,Y8=G8,K8=Y8||W8.call(X8,q8),Z8=ad,Q8=io,J8=L1,eT=K8,Gb=function(e){if(e.length<1||typeof e[0]!="function")thr
|
||
|
|
`," "],NE=["{","}","|","\\","^","`"].concat(LE),xp=["'"].concat(NE),Ng=["%","/","?",";","#"].concat(xp),jg=["/","?","#"],jE=255,Ug=/^[+a-z0-9A-Z_-]{0,63}$/,UE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zE={javascript:!0,"javascript:":!0},Sp={javascript:!0,"javascript:":!0},Oa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tp=OE;function sd(t,e,n){if(t&&typeof t=="object"&&t instanceof cn)return t;var i=new cn;return i.parse(t,e,n),i}cn.prototype.parse=function(t,e,n){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),r=i!==-1&&i<t.indexOf("#")?"?":"#",a=t.split(r),o=/\\/g;a[0]=a[0].replace(o,"/"),t=a.join(r);var s=t;if(s=s.trim(),!n&&t.split("#").length===1){var f=DE.exec(s);if(f)return this.path=s,this.href=s,this.pathname=f[1],f[2]?(this.search=f[2],e?this.query=Tp.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var l=IE.exec(s);if(l){l=l[0];var c=l.toLowerCase();this.protocol=c,s=s.substr(l.length)}if(n||l||s.match(/^\/\/[^@/]+@[^@/]+/)){var u=s.substr(0,2)==="//";u&&!(l&&Sp[l])&&(s=s.substr(2),this.slashes=!0)}if(!Sp[l]&&(u||l&&!Oa[l])){for(var d=-1,h=0;h<jg.length;h++){var p=s.indexOf(jg[h]);p!==-1&&(d===-1||p<d)&&(d=p)}var m,v;d===-1?v=s.lastIndexOf("@"):v=s.lastIndexOf("@",d),v!==-1&&(m=s.slice(0,v),s=s.slice(v+1),this.auth=decodeURIComponent(m)),d=-1;for(var h=0;h<Ng.length;h++){var p=s.indexOf(Ng[h]);p!==-1&&(d===-1||p<d)&&(d=p)}d===-1&&(d=s.length),this.host=s.slice(0,d),s=s.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g)for(var y=this.hostname.split(/\./),h=0,_=y.length;h<_;h++){var w=y[h];if(w&&!w.match(Ug)){for(var k="",b=0,x=w.length;b<x;b++)w.charCodeAt(b)>127?k+="x":k+=w[b];if(!k.match(Ug)){var S=y.slice(0,h),T=y.slice(h+1),E=w.match(UE);E&&(S.push(E[1]),T.unshift(E[2])),T.length&&(s="/"+T.join(".")+s),this.hostname=S.join(".");break}}}this.hostname.length>jE?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=FE.toASCII(this.hostname));var A=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!zE[c])for(var h=0,_=xp.length;h<_;h++){var D=xp[h];if(s.indexOf(D)!==-1){var $=encodeURIComponent(D);$===D&&($=escape(D)),s=s.split(D).join($)}}var R=s.indexOf("#");R!==-1&&(this.hash=s.substr(R),s=s.slice(0,R));var B=s.indexOf("?");if(B!==-1?(this.search=s.substr(B),this.query=s.substr(B+1),e&&(this.query=Tp.parse(this.query)),s=s.slice(0,B)):e&&(this.search="",this.query={}),s&&(this.pathname=s),Oa[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var A=this.pathname||"",U=this.search||"";this.path=A+U}return this.href=this.format(),this};function VE(t){return typeof t=="string"&&(t=sd(t)),t instanceof cn?t.format():cn.prototype.format.call(t)}cn.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,a="";this.host?r=t+this.host:this.hostname&&(r=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(a=Tp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||a&&"?"+a||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Oa[e])&&r!==!1?(r="//"+(r||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):r||(r=""),i&&i.charAt(0)!=="#"&&(i="#"+i),o&&o.charAt(0)!=="?"&&(o="?"+o),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),o=o.replace("#","%23"),e+r+n+o+i};function HE(t,e){return sd(t,!1,!0).resolve(e)}cn.prototype.resolve=function(t){return this.resolveObject(sd(t,!1,!0)).format()};cn.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new cn;e.parse(t,!1,!0),t=e}for(var n=new cn,i=Object.keys(this),r=0;r<i.leng
|
||
|
|
* @pixi/utils - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/utils is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var Mo={parse:$E,format:WE,resolve:GE};H.RETINA_PREFIX=/@([0-9\.]+)x/;H.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var zg=!1,Vg="6.5.10";function qE(t){var e;if(!zg){if(H.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=[`
|
||
|
|
%c %c %c PixiJS `+Vg+" - ✰ "+t+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥
|
||
|
|
|
||
|
|
`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,n)}else globalThis.console&&globalThis.console.log("PixiJS "+Vg+" - "+t+" - http://www.pixijs.com/");zg=!0}}var gc;function XE(){return typeof gc>"u"&&(gc=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:H.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!H.ADAPTER.getWebGLRenderingContext())return!1;var n=H.ADAPTER.createCanvas(),i=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),r=!!(i&&i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,r}catch{return!1}}()),gc}var YE="#f0f8ff",KE="#faebd7",ZE="#00ffff",QE="#7fffd4",JE="#f0ffff",eC="#f5f5dc",tC="#ffe4c4",nC="#000000",iC="#ffebcd",rC="#0000ff",aC="#8a2be2",oC="#a52a2a",sC="#deb887",fC="#5f9ea0",lC="#7fff00",uC="#d2691e",dC="#ff7f50",cC="#6495ed",hC="#fff8dc",pC="#dc143c",vC="#00ffff",mC="#00008b",gC="#008b8b",yC="#b8860b",_C="#a9a9a9",wC="#006400",kC="#a9a9a9",bC="#bdb76b",xC="#8b008b",SC="#556b2f",TC="#ff8c00",EC="#9932cc",CC="#8b0000",AC="#e9967a",PC="#8fbc8f",MC="#483d8b",RC="#2f4f4f",OC="#2f4f4f",FC="#00ced1",IC="#9400d3",BC="#ff1493",DC="#00bfff",LC="#696969",NC="#696969",jC="#1e90ff",UC="#b22222",zC="#fffaf0",VC="#228b22",HC="#ff00ff",$C="#dcdcdc",GC="#f8f8ff",WC="#daa520",qC="#ffd700",XC="#808080",YC="#008000",KC="#adff2f",ZC="#808080",QC="#f0fff0",JC="#ff69b4",e7="#cd5c5c",t7="#4b0082",n7="#fffff0",i7="#f0e68c",r7="#fff0f5",a7="#e6e6fa",o7="#7cfc00",s7="#fffacd",f7="#add8e6",l7="#f08080",u7="#e0ffff",d7="#fafad2",c7="#d3d3d3",h7="#90ee90",p7="#d3d3d3",v7="#ffb6c1",m7="#ffa07a",g7="#20b2aa",y7="#87cefa",_7="#778899",w7="#778899",k7="#b0c4de",b7="#ffffe0",x7="#00ff00",S7="#32cd32",T7="#faf0e6",E7="#ff00ff",C7="#800000",A7="#66cdaa",P7="#0000cd",M7="#ba55d3",R7="#9370db",O7="#3cb371",F7="#7b68ee",I7="#00fa9a",B7="#48d1cc",D7="#c71585",L7="#191970",N7="#f5fffa",j7="#ffe4e1",U7="#ffe4b5",z7="#ffdead",V7="#000080",H7="#fdf5e6",$7="#808000",G7="#6b8e23",W7="#ffa500",q7="#ff4500",X7="#da70d6",Y7="#eee8aa",K7="#98fb98",Z7="#afeeee",Q7="#db7093",J7="#ffefd5",eA="#ffdab9",tA="#cd853f",nA="#ffc0cb",iA="#dda0dd",rA="#b0e0e6",aA="#800080",oA="#663399",sA="#ff0000",fA="#bc8f8f",lA="#4169e1",uA="#8b4513",dA="#fa8072",cA="#f4a460",hA="#2e8b57",pA="#fff5ee",vA="#a0522d",mA="#c0c0c0",gA="#87ceeb",yA="#6a5acd",_A="#708090",wA="#708090",kA="#fffafa",bA="#00ff7f",xA="#4682b4",SA="#d2b48c",TA="#008080",EA="#d8bfd8",CA="#ff6347",AA="#40e0d0",PA="#ee82ee",MA="#f5deb3",RA="#ffffff",OA="#f5f5f5",FA="#ffff00",IA="#9acd32",BA={aliceblue:YE,antiquewhite:KE,aqua:ZE,aquamarine:QE,azure:JE,beige:eC,bisque:tC,black:nC,blanchedalmond:iC,blue:rC,blueviolet:aC,brown:oC,burlywood:sC,cadetblue:fC,chartreuse:lC,chocolate:uC,coral:dC,cornflowerblue:cC,cornsilk:hC,crimson:pC,cyan:vC,darkblue:mC,darkcyan:gC,darkgoldenrod:yC,darkgray:_C,darkgreen:wC,darkgrey:kC,darkkhaki:bC,darkmagenta:xC,darkolivegreen:SC,darkorange:TC,darkorchid:EC,darkred:CC,darksalmon:AC,darkseagreen:PC,darkslateblue:MC,darkslategray:RC,darkslategrey:OC,darkturquoise:FC,darkviolet:IC,deeppink:BC,deepskyblue:DC,dimgray:LC,dimgrey:NC,dodgerblue:jC,firebrick:UC,floralwhite:zC,forestgreen:VC,fuchsia:HC,gainsboro:$C,ghostwhite:GC,goldenrod:WC,gold:qC,gray:XC,green:YC,greenyellow:KC,grey:ZC,honeydew:QC,hotpink:JC,indianred:e7,indigo:t7,ivory:n7,khaki:i7,lavenderblush:r7,lavender:a7,lawngreen:o7,lemonchiffon:s7,lightblue:f7,lightcoral:l7,lightcyan:u7,lightgoldenrodyellow:d7,lightgray:c7,lightgreen:h7,lightgrey:p7,lightpink:v7,lightsalmon:m7,lightseagreen:g7,lightskyblue:y7,lightslategray:_7,lightslategrey:w7,lightsteelblue:k7,lightyellow:b7,lime:x7,limegreen:S7,linen:T7,magenta:E7,maroon:C7,mediumaquamarine:A7,mediumblue:P7,mediumorchid
|
||
|
|
Deprecated since v`+t):(i=i.split(`
|
||
|
|
`).splice(n).join(`
|
||
|
|
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+`
|
||
|
|
Deprecated since v`+t),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+`
|
||
|
|
Deprecated since v`+t),console.warn(i))),Gg[e]=!0}}var Wg={},Bn=Object.create(null),Yi=Object.create(null),qg=function(){function t(e,n,i){this.canvas=H.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||H.RESOLUTION,this.resize(e,n)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(e,n){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(n*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),t}();function zA(t){var e=t.width,n=t.height,i=t.getContext("2d",{willReadFrequently:!0}),r=i.getImageData(0,0,e,n),a=r.data,o=a.length,s={top:null,left:null,right:null,bottom:null},f=null,l,c,u;for(l=0;l<o;l+=4)a[l+3]!==0&&(c=l/4%e,u=~~(l/4/e),s.top===null&&(s.top=u),(s.left===null||c<s.left)&&(s.left=c),(s.right===null||s.right<c)&&(s.right=c+1),(s.bottom===null||s.bottom<u)&&(s.bottom=u));return s.top!==null&&(e=s.right-s.left,n=s.bottom-s.top+1,f=i.getImageData(s.left,s.top,e,n)),{height:n,width:e,data:f}}var Of;function VA(t,e){if(e===void 0&&(e=globalThis.location),t.indexOf("data:")===0)return"";e=e||globalThis.location,Of||(Of=document.createElement("a")),Of.href=t;var n=Mo.parse(Of.href),i=!n.port&&e.port===""||n.port===e.port;return n.hostname!==e.hostname||!i||n.protocol!==e.protocol?"anonymous":""}function Ep(t,e){var n=H.RETINA_PREFIX.exec(t);return n?parseFloat(n[1]):e!==void 0?e:1}/*!
|
||
|
|
* @pixi/extensions - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/extensions is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Xo=function(){return Xo=Object.assign||function(e){for(var n=arguments,i,r=1,a=arguments.length;r<a;r++){i=n[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Xo.apply(this,arguments)},tt;(function(t){t.Application="application",t.RendererPlugin="renderer-webgl-plugin",t.CanvasRendererPlugin="renderer-canvas-plugin",t.Loader="loader",t.LoadParser="load-parser",t.ResolveParser="resolve-parser",t.CacheParser="cache-parser",t.DetectionParser="detection-parser"})(tt||(tt={}));var Xg=function(t){if(typeof t=="function"||typeof t=="object"&&t.extension){if(!t.extension)throw new Error("Extension class must have an extension object");var e=typeof t.extension!="object"?{type:t.extension}:t.extension;t=Xo(Xo({},e),{ref:t})}if(typeof t=="object")t=Xo({},t);else throw new Error("Invalid extension type");return typeof t.type=="string"&&(t.type=[t.type]),t},$i={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var t=arguments,e=this,n=[],i=0;i<arguments.length;i++)n[i]=t[i];return n.map(Xg).forEach(function(r){r.type.forEach(function(a){var o,s;return(s=(o=e._removeHandlers)[a])===null||s===void 0?void 0:s.call(o,r)})}),this},add:function(){for(var t=arguments,e=this,n=[],i=0;i<arguments.length;i++)n[i]=t[i];return n.map(Xg).forEach(function(r){r.type.forEach(function(a){var o=e._addHandlers,s=e._queue;o[a]?o[a](r):(s[a]=s[a]||[],s[a].push(r))})}),this},handle:function(t,e,n){var i=this._addHandlers=this._addHandlers||{},r=this._removeHandlers=this._removeHandlers||{};if(i[t]||r[t])throw new Error("Extension type "+t+" already has a handler");i[t]=e,r[t]=n;var a=this._queue;return a[t]&&(a[t].forEach(function(o){return e(o)}),delete a[t]),this},handleByMap:function(t,e){return this.handle(t,function(n){e[n.name]=n.ref},function(n){delete e[n.name]})},handleByList:function(t,e){return this.handle(t,function(n){var i,r;e.includes(n.ref)||(e.push(n.ref),t===tt.Loader&&((r=(i=n.ref).add)===null||r===void 0||r.call(i)))},function(n){var i=e.indexOf(n.ref);i!==-1&&e.splice(i,1)})}};/*!
|
||
|
|
* @pixi/runner - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/runner is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var ot=function(){function t(e){this.items=[],this._name=e,this._aliasCount=0}return t.prototype.emit=function(e,n,i,r,a,o,s,f){if(arguments.length>8)throw new Error("max arguments reached");var l=this,c=l.name,u=l.items;this._aliasCount++;for(var d=0,h=u.length;d<h;d++)u[d][c](e,n,i,r,a,o,s,f);return u===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},t.prototype.remove=function(e){var n=this.items.indexOf(e);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this},t.prototype.contains=function(e){return this.items.indexOf(e)!==-1},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(ot.prototype,{dispatch:{value:ot.prototype.emit},run:{value:ot.prototype.emit}});/*!
|
||
|
|
* @pixi/ticker - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/ticker is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/H.TARGET_FPMS=.06;var As;(function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"})(As||(As={}));var yc=function(){function t(e,n,i,r){n===void 0&&(n=null),i===void 0&&(i=0),r===void 0&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=n,this.priority=i,this.once=r}return t.prototype.match=function(e,n){return n===void 0&&(n=null),this.fn===e&&this.context===n},t.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n},t.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},t.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var n=this.next;return this.next=e?null:n,this.previous=null,n},t}(),ci=function(){function t(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new yc(null,null,1/0),this.deltaMS=1/H.TARGET_FPMS,this.elapsedMS=1/H.TARGET_FPMS,this._tick=function(n){e._requestId=null,e.started&&(e.update(n),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(e,n,i){return i===void 0&&(i=As.NORMAL),this._addListener(new yc(e,n,i))},t.prototype.addOnce=function(e,n,i){return i===void 0&&(i=As.NORMAL),this._addListener(new yc(e,n,i,!0))},t.prototype._addListener=function(e){var n=this._head.next,i=this._head;if(!n)e.connect(i);else{for(;n;){if(e.priority>n.priority){e.connect(i);break}i=n,n=n.next}e.previous||e.connect(i)}return this._startIfPossible(),this},t.prototype.remove=function(e,n){for(var i=this._head.next;i;)i.match(e,n)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,n=this._head;n=n.next;)e++;return e},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(e){e===void 0&&(e=performance.now());var n;if(e>this.lastTime){if(n=this.elapsedMS=e-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){var i=e-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=e-i%this._minElapsedMS}this.deltaMS=n,this.deltaTime=this.deltaMS*H.TARGET_FPMS;for(var r=this._head,a=r.next;a;)a=a.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e},Object.defineProperty(t.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(e){var n=Math.min(this.maxFPS,e),i=Math.min(Math.max(0,n)/1e3,H.TARGET_FPMS);this._maxElapsedMS=1/i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(e){if(e===0)this._minElapsedMS=0;else{var n=Math.max(this.minFPS,e);this._minElapsedMS=1/(n
|
||
|
|
* @pixi/math - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/math is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var Ps=Math.PI*2,HA=180/Math.PI,$A=Math.PI/180,Je;(function(t){t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC"})(Je||(Je={}));var ge=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){return this.set(e.x,e.y),this},t.prototype.copyTo=function(e){return e.set(this.x,this.y),e},t.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},t.prototype.set=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=e),this.x=e,this.y=n,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),Ff=[new ge,new ge,new ge,new ge],te=function(){function t(e,n,i,r){e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=0),this.x=Number(e),this.y=Number(n),this.width=Number(i),this.height=Number(r),this.type=Je.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.prototype.copyTo=function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},t.prototype.contains=function(e,n){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&n>=this.y&&n<this.y+this.height},t.prototype.intersects=function(e,n){if(!n){var i=this.x<e.x?e.x:this.x,r=this.right>e.right?e.right:this.right;if(r<=i)return!1;var a=this.y<e.y?e.y:this.y,o=this.bottom>e.bottom?e.bottom:this.bottom;return o>a}var s=this.left,f=this.right,l=this.top,c=this.bottom;if(f<=s||c<=l)return!1;var u=Ff[0].set(e.left,e.top),d=Ff[1].set(e.left,e.bottom),h=Ff[2].set(e.right,e.top),p=Ff[3].set(e.right,e.bottom);if(h.x<=u.x||d.y<=u.y)return!1;var m=Math.sign(n.a*n.d-n.b*n.c);if(m===0||(n.apply(u,u),n.apply(d,d),n.apply(h,h),n.apply(p,p),Math.max(u.x,d.x,h.x,p.x)<=s||Math.min(u.x,d.x,h.x,p.x)>=f||Math.max(u.y,d.y,h.y,p.y)<=l||Math.min(u.y,d.y,h.y,p.y)>=c))return!1;var v=m*(d.y-u.y),g=m*(u.x-d.x),y=v*s+g*l,_=v*f+g*l,w=v*s+g*c,k=v*f+g*c;if(Math.max(y,_,w,k)<=v*u.x+g*u.y||Math.min(y,_,w,k)>=v*p.x+g*p.y)return!1;var b=m*(u.y-h.y),x=m*(h.x-u.x),S=b*s+x*l,T=b*f+x*l,E=b*s+x*c,A=b*f+x*c;return!(Math.max(S,T,E,A)<=b*u.x+x*u.y||Math.min(S,T,E,A)>=b*p.x+x*p.y)},t.prototype.pad=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=e),this.x-=e,this.y-=n,this.width+=e*2,this.height+=n*2,this},t.prototype.fit=function(e){var n=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),a=Math.min(this.y+this.height,e.y+e.height);return this.x=n,this.width=Math.max(i-n,0),this.y=r,this.height=Math.max(a-r,0),this},t.prototype.ceil=function(e,n){e===void 0&&(e=1),n===void 0&&(n=.001);var i=Math.ceil((this.x+this.width-n)*e)/e,r=Math.ceil((this.y+this.height-n)*e)/e;return this.x=Math.floor((this.x+n)*e)/e,this.y=Math.floor((this.y+n)*e)/e,this.width=i-this.x,this.height=r-this.y,this},t.prototype.enlarge=function(e){var n=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),a=Math.max(this.y+this.height,e.y+e.height);return this.x=n,this.width=i-n,this.y=r,this.height=a-r,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),GA=function(){function t(e,n,i){e===void 0&&(e=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=e,this.y=n,this.radius=i,this.type=Je.CIRC}return t.prototype.clone=function(){
|
||
|
|
* @pixi/core - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/core is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/H.PREFER_ENV=mr.any?ti.WEBGL:ti.WEBGL2;H.STRICT_TEXTURE_CACHE=!1;var Ap=[];function u3(t,e){if(!t)return null;var n="";if(typeof t=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);i&&(n=i[1].toLowerCase())}for(var r=Ap.length-1;r>=0;--r){var a=Ap[r];if(a.test&&a.test(t,n))return new a(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Pp=function(t,e){return Pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Pp(t,e)};function _e(t,e){Pp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Mp=function(){return Mp=Object.assign||function(e){for(var n=arguments,i,r=1,a=arguments.length;r<a;r++){i=n[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Mp.apply(this,arguments)};function YA(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}var Ms=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this._width=e,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new ot("setRealSize"),this.onUpdate=new ot("update"),this.onError=new ot("onError")}return t.prototype.bind=function(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},t.prototype.unbind=function(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)},t.prototype.resize=function(e,n){(e!==this._width||n!==this._height)&&(this._width=e,this._height=n,this.onResize.emit(e,n))},Object.defineProperty(t.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.destroyed||this.onUpdate.emit()},t.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),t.prototype.style=function(e,n,i){return!1},t.prototype.dispose=function(){},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},t.test=function(e,n){return!1},t}(),U1=function(t){_e(e,t);function e(n,i){var r=this,a=i||{},o=a.width,s=a.height;if(!o||!s)throw new Error("BufferResource width or height invalid");return r=t.call(this,o,s)||this,r.data=n,r}return e.prototype.upload=function(n,i,r){var a=n.gl;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===Ii.UNPACK);var o=i.realWidth,s=i.realHeight;return r.width===o&&r.height===s?a.texSubImage2D(i.target,0,0,0,o,s,i.format,r.type,this.data):(r.width=o,r.height=s,a.texImage2D(i.target,0,r.internalFormat,o,s,0,i.format,r.type,this.data)),!0},e.prototype.dispose=function(){this.data=null},e.test=function(n){return n instanceof Float32Array||n instanceof Uint8Array||n instanceof Uint32Array},e}(Ms),KA={scaleMode:bn.NEAREST,format:j.RGBA,alphaMode:Ii.NPM},ke=function(t){_e(e,t);function e(n,i){n===void 0&&(n=null),i===void 0&&(i=null);var r=t.call(this)||this;i=i||{};var a=i.alphaMode,o=i.mipmap,s=i.anisotropicLevel,f=i.scaleMode,l=i.width,c=i.height,u=i.wrapMode,d=i.format,h=i.type,p=i.target,m=i.resolution,v=i.resourceOptions;return n&&!(n instanceof Ms)&&(n=u3(n,v),n.internal=!0),r.resolution=m||H.RESOLUTION,r.width=Math.round((l||0)*r.resolution)/r.resolution,r.height=Math.round((c||0)*r.resolution)/r.resolution,r._mipmap=o!==void 0?o:H.MIPMAP_TEXTURES,r.anisotropicLevel=s!==void 0?s:H.ANISOTROPIC_LEVEL,r._wrapMode=u||H.WRAP_MODE,r._scaleMode=f!==void 0?f:H.SCALE_MODE,r.format=d||j.RGBA,r.type=h||le.UNSIGNED_BYTE,r.target=p||kr.TEXTURE_2D,r.alphaMode=a!==void 0?a:Ii.UNPACK,r.uid=Ir(),r.touched=0,r.isPowerOfTwo=!1,r._refreshPOT(),r._glTextures={},r.dirtyId=0,r.dirtyStyleId=0,r.cacheId=null,r.valid=l>0&&c>0,r.textureCacheIds=[],r.destroyed=!1,r.resource=null,r._batchEnabled=0,r._batchL
|
||
|
|
`).map(function(l,c){return c+": "+l}),i=t.getShaderInfoLog(e),r=i.split(`
|
||
|
|
`),a={},o=r.map(function(l){return parseFloat(l.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(l){return l&&!a[l]?(a[l]=!0,!0):!1}),s=[""];o.forEach(function(l){n[l-1]="%c"+n[l-1]+"%c",s.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var f=n.join(`
|
||
|
|
`);s[0]=f,console.error(i),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,s),console.groupEnd()}function kP(t,e,n,i){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(n,t.COMPILE_STATUS)||ey(t,n),t.getShaderParameter(i,t.COMPILE_STATUS)||ey(t,i),console.error("PixiJS Error: Could not initialize shader."),t.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}function kc(t){for(var e=new Array(t),n=0;n<e.length;n++)e[n]=!1;return e}function m3(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return kc(2*e);case"bvec3":return kc(3*e);case"bvec4":return kc(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var g3={},yo=g3;function bP(){if(yo===g3||yo&&yo.isContextLost()){var t=H.ADAPTER.createCanvas(),e=void 0;H.PREFER_ENV>=ti.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),yo=e}return yo}var Lf;function xP(){if(!Lf){Lf=Lt.MEDIUM;var t=bP();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);Lf=e.precision?Lt.HIGH:Lt.MEDIUM}}return Lf}function ty(t,e,n){if(t.substring(0,9)!=="precision"){var i=e;return e===Lt.HIGH&&n!==Lt.HIGH&&(i=Lt.MEDIUM),"precision "+i+` float;
|
||
|
|
`+t}else if(n!==Lt.HIGH&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}var SP={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function y3(t){return SP[t]}var Nf=null,ny={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function _3(t,e){if(!Nf){var n=Object.keys(ny);Nf={};for(var i=0;i<n.length;++i){var r=n[i];Nf[t[r]]=ny[r]}}return Nf[e]}var Fa=[{test:function(t){return t.type==="float"&&t.size===1&&!t.isArray},code:function(t){return`
|
||
|
|
if(uv["`+t+'"] !== ud["'+t+`"].value)
|
||
|
|
{
|
||
|
|
ud["`+t+'"].value = uv["'+t+`"]
|
||
|
|
gl.uniform1f(ud["`+t+'"].location, uv["'+t+`"])
|
||
|
|
}
|
||
|
|
`}},{test:function(t,e){return(t.type==="sampler2D"||t.type==="samplerCube"||t.type==="sampler2DArray")&&t.size===1&&!t.isArray&&(e==null||e.castToBaseTexture!==void 0)},code:function(t){return`t = syncData.textureCount++;
|
||
|
|
|
||
|
|
renderer.texture.bind(uv["`+t+`"], t);
|
||
|
|
|
||
|
|
if(ud["`+t+`"].value !== t)
|
||
|
|
{
|
||
|
|
ud["`+t+`"].value = t;
|
||
|
|
gl.uniform1i(ud["`+t+`"].location, t);
|
||
|
|
; // eslint-disable-line max-len
|
||
|
|
}`}},{test:function(t,e){return t.type==="mat3"&&t.size===1&&!t.isArray&&e.a!==void 0},code:function(t){return`
|
||
|
|
gl.uniformMatrix3fv(ud["`+t+'"].location, false, uv["'+t+`"].toArray(true));
|
||
|
|
`},codeUbo:function(t){return`
|
||
|
|
var `+t+"_matrix = uv."+t+`.toArray(true);
|
||
|
|
|
||
|
|
data[offset] = `+t+`_matrix[0];
|
||
|
|
data[offset+1] = `+t+`_matrix[1];
|
||
|
|
data[offset+2] = `+t+`_matrix[2];
|
||
|
|
|
||
|
|
data[offset + 4] = `+t+`_matrix[3];
|
||
|
|
data[offset + 5] = `+t+`_matrix[4];
|
||
|
|
data[offset + 6] = `+t+`_matrix[5];
|
||
|
|
|
||
|
|
data[offset + 8] = `+t+`_matrix[6];
|
||
|
|
data[offset + 9] = `+t+`_matrix[7];
|
||
|
|
data[offset + 10] = `+t+`_matrix[8];
|
||
|
|
`}},{test:function(t,e){return t.type==="vec2"&&t.size===1&&!t.isArray&&e.x!==void 0},code:function(t){return`
|
||
|
|
cv = ud["`+t+`"].value;
|
||
|
|
v = uv["`+t+`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v.x || cv[1] !== v.y)
|
||
|
|
{
|
||
|
|
cv[0] = v.x;
|
||
|
|
cv[1] = v.y;
|
||
|
|
gl.uniform2f(ud["`+t+`"].location, v.x, v.y);
|
||
|
|
}`},codeUbo:function(t){return`
|
||
|
|
v = uv.`+t+`;
|
||
|
|
|
||
|
|
data[offset] = v.x;
|
||
|
|
data[offset+1] = v.y;
|
||
|
|
`}},{test:function(t){return t.type==="vec2"&&t.size===1&&!t.isArray},code:function(t){return`
|
||
|
|
cv = ud["`+t+`"].value;
|
||
|
|
v = uv["`+t+`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
gl.uniform2f(ud["`+t+`"].location, v[0], v[1]);
|
||
|
|
}
|
||
|
|
`}},{test:function(t,e){return t.type==="vec4"&&t.size===1&&!t.isArray&&e.width!==void 0},code:function(t){return`
|
||
|
|
cv = ud["`+t+`"].value;
|
||
|
|
v = uv["`+t+`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
|
||
|
|
{
|
||
|
|
cv[0] = v.x;
|
||
|
|
cv[1] = v.y;
|
||
|
|
cv[2] = v.width;
|
||
|
|
cv[3] = v.height;
|
||
|
|
gl.uniform4f(ud["`+t+`"].location, v.x, v.y, v.width, v.height)
|
||
|
|
}`},codeUbo:function(t){return`
|
||
|
|
v = uv.`+t+`;
|
||
|
|
|
||
|
|
data[offset] = v.x;
|
||
|
|
data[offset+1] = v.y;
|
||
|
|
data[offset+2] = v.width;
|
||
|
|
data[offset+3] = v.height;
|
||
|
|
`}},{test:function(t){return t.type==="vec4"&&t.size===1&&!t.isArray},code:function(t){return`
|
||
|
|
cv = ud["`+t+`"].value;
|
||
|
|
v = uv["`+t+`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4f(ud["`+t+`"].location, v[0], v[1], v[2], v[3])
|
||
|
|
}`}}],TP={float:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
gl.uniform1f(location, v);
|
||
|
|
}`,vec2:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2f(location, v[0], v[1])
|
||
|
|
}`,vec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3f(location, v[0], v[1], v[2])
|
||
|
|
}`,vec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4f(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,int:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,ivec2:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
|
}`,ivec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
|
}`,ivec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,uint:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1ui(location, v);
|
||
|
|
}`,uvec2:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2ui(location, v[0], v[1]);
|
||
|
|
}`,uvec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3ui(location, v[0], v[1], v[2]);
|
||
|
|
}`,uvec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,bool:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,bvec2:`
|
||
|
|
if (cv[0] != v[0] || cv[1] != v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
|
}`,bvec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
|
}`,bvec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,samplerCube:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,sampler2DArray:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`},EP={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function CP(t,e){var n,i=[`
|
||
|
|
var v = null;
|
||
|
|
var cv = null;
|
||
|
|
var cu = null;
|
||
|
|
var t = 0;
|
||
|
|
var gl = renderer.gl;
|
||
|
|
`];for(var r in t.uniforms){var a=e[r];if(!a){!((n=t.uniforms[r])===null||n===void 0)&&n.group&&(t.uniforms[r].ubo?i.push(`
|
||
|
|
renderer.shader.syncUniformBufferGroup(uv.`+r+", '"+r+`');
|
||
|
|
`):i.push(`
|
||
|
|
renderer.shader.syncUniformGroup(uv.`+r+`, syncData);
|
||
|
|
`));continue}for(var o=t.uniforms[r],s=!1,f=0;f<Fa.length;f++)if(Fa[f].test(a,o)){i.push(Fa[f].code(r,o)),s=!0;break}if(!s){var l=a.size===1&&!a.isArray?TP:EP,c=l[a.type].replace("location",'ud["'+r+'"].location');i.push(`
|
||
|
|
cu = ud["`+r+`"];
|
||
|
|
cv = cu.value;
|
||
|
|
v = uv["`+r+`"];
|
||
|
|
`+c+";")}}return new Function("ud","uv","renderer","syncData",i.join(`
|
||
|
|
`))}var AP=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
|
||
|
|
`);function PP(t){for(var e="",n=0;n<t;++n)n>0&&(e+=`
|
||
|
|
else `),n<t-1&&(e+="if(test == "+n+".0){}");return e}function MP(t,e){if(t===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var n=e.createShader(e.FRAGMENT_SHADER);;){var i=AP.replace(/%forloop%/gi,PP(t));if(e.shaderSource(n,i),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))t=t/2|0;else break}return t}var _o;function RP(){if(typeof _o=="boolean")return _o;try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");_o=t({a:"b"},"a","b")===!0}catch{_o=!1}return _o}var OP=`varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_FragColor *= texture2D(uSampler, vTextureCoord);
|
||
|
|
}`,FP=`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
}
|
||
|
|
`,IP=0,jf={},H1=function(){function t(e,n,i){i===void 0&&(i="pixi-shader"),this.id=IP++,this.vertexSrc=e||t.defaultVertexSrc,this.fragmentSrc=n||t.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(i=i.replace(/\s+/g,"-"),jf[i]?(jf[i]++,i+="-"+jf[i]):jf[i]=1,this.vertexSrc="#define SHADER_NAME "+i+`
|
||
|
|
`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+`
|
||
|
|
`+this.fragmentSrc,this.vertexSrc=ty(this.vertexSrc,H.PRECISION_VERTEX,Lt.HIGH),this.fragmentSrc=ty(this.fragmentSrc,H.PRECISION_FRAGMENT,xP())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(t,"defaultVertexSrc",{get:function(){return FP},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return OP},enumerable:!1,configurable:!0}),t.from=function(e,n,i){var r=e+n,a=Wg[r];return a||(Wg[r]=a=new t(e,n,i)),a},t}(),Ia=function(){function t(e,n){this.uniformBindCount=0,this.program=e,n?n instanceof xr?this.uniformGroup=n:this.uniformGroup=new xr(n):this.uniformGroup=new xr({}),this.disposeRunner=new ot("disposeShader")}return t.prototype.checkUniformExists=function(e,n){if(n.uniforms[e])return!0;for(var i in n.uniforms){var r=n.uniforms[i];if(r.group&&this.checkUniformExists(e,r))return!0}return!1},t.prototype.destroy=function(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()},Object.defineProperty(t.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),t.from=function(e,n,i){var r=H1.from(e,n);return new t(r,i)},t}(),bc=0,xc=1,Sc=2,Tc=3,Ec=4,Cc=5,tf=function(){function t(){this.data=0,this.blendMode=X.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(t.prototype,"blend",{get:function(){return!!(this.data&1<<bc)},set:function(e){!!(this.data&1<<bc)!==e&&(this.data^=1<<bc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offsets",{get:function(){return!!(this.data&1<<xc)},set:function(e){!!(this.data&1<<xc)!==e&&(this.data^=1<<xc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"culling",{get:function(){return!!(this.data&1<<Sc)},set:function(e){!!(this.data&1<<Sc)!==e&&(this.data^=1<<Sc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthTest",{get:function(){return!!(this.data&1<<Tc)},set:function(e){!!(this.data&1<<Tc)!==e&&(this.data^=1<<Tc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthMask",{get:function(){return!!(this.data&1<<Cc)},set:function(e){!!(this.data&1<<Cc)!==e&&(this.data^=1<<Cc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<Ec)},set:function(e){!!(this.data&1<<Ec)!==e&&(this.data^=1<<Ec)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this._blendMode},set:function(e){this.blend=e!==X.NONE,this._blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(e){this.offsets=!!e,this._polygonOffset=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},t.for2d=function(){var e=new t;return e.depthTest=!1,e.blend=!0,e},t}(),BP=`varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
||
|
|
}
|
||
|
|
`,DP=`attribute vec2 aVertexPosition;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform vec4 inputSize;
|
||
|
|
uniform vec4 outputFrame;
|
||
|
|
|
||
|
|
vec4 filterVertexPosition( void )
|
||
|
|
{
|
||
|
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
|
||
|
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 filterTextureCoord( void )
|
||
|
|
{
|
||
|
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = filterVertexPosition();
|
||
|
|
vTextureCoord = filterTextureCoord();
|
||
|
|
}
|
||
|
|
`,$1=function(t){_e(e,t);function e(n,i,r){var a=this,o=H1.from(n||e.defaultVertexSrc,i||e.defaultFragmentSrc);return a=t.call(this,o,r)||this,a.padding=0,a.resolution=H.FILTER_RESOLUTION,a.multisample=H.FILTER_MULTISAMPLE,a.enabled=!0,a.autoFit=!0,a.state=new tf,a}return e.prototype.apply=function(n,i,r,a,o){n.applyFilter(this,i,r,a)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(n){this.state.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(n){this._resolution=n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultVertexSrc",{get:function(){return DP},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return BP},enumerable:!1,configurable:!0}),e}(Ia),LP=`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 otherMatrix;
|
||
|
|
|
||
|
|
varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
||
|
|
}
|
||
|
|
`,NP=`varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform float npmAlpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
float clip = step(3.5,
|
||
|
|
step(maskClamp.x, vMaskCoord.x) +
|
||
|
|
step(maskClamp.y, vMaskCoord.y) +
|
||
|
|
step(vMaskCoord.x, maskClamp.z) +
|
||
|
|
step(vMaskCoord.y, maskClamp.w));
|
||
|
|
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
vec4 masky = texture2D(mask, vMaskCoord);
|
||
|
|
float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
|
||
|
|
|
||
|
|
original *= (alphaMul * masky.r * alpha * clip);
|
||
|
|
|
||
|
|
gl_FragColor = original;
|
||
|
|
}
|
||
|
|
`,iy=new _t,w3=function(){function t(e,n){this._texture=e,this.mapCoord=new _t,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof n>"u"?.5:n,this.isSimple=!1}return Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),t.prototype.multiplyUvs=function(e,n){n===void 0&&(n=e);for(var i=this.mapCoord,r=0;r<e.length;r+=2){var a=e[r],o=e[r+1];n[r]=a*i.a+o*i.c+i.tx,n[r+1]=a*i.b+o*i.d+i.ty}return n},t.prototype.update=function(e){var n=this._texture;if(!n||!n.valid||!e&&this._textureID===n._updateID)return!1;this._textureID=n._updateID,this._updateID++;var i=n._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var r=n.orig,a=n.trim;a&&(iy.set(r.width/a.width,0,0,r.height/a.height,-a.x/a.width,-a.y/a.height),this.mapCoord.append(iy));var o=n.baseTexture,s=this.uClampFrame,f=this.clampMargin/o.resolution,l=this.clampOffset;return s[0]=(n._frame.x+f+l)/o.width,s[1]=(n._frame.y+f+l)/o.height,s[2]=(n._frame.x+n._frame.width-f+l)/o.width,s[3]=(n._frame.y+n._frame.height-f+l)/o.height,this.uClampOffset[0]=l/o.realWidth,this.uClampOffset[1]=l/o.realHeight,this.isSimple=n._frame.width===o.width&&n._frame.height===o.height&&n.rotate===0,!0},t}(),jP=function(t){_e(e,t);function e(n,i,r){var a=this,o=null;return typeof n!="string"&&i===void 0&&r===void 0&&(o=n,n=void 0,i=void 0,r=void 0),a=t.call(this,n||LP,i||NP,r)||this,a.maskSprite=o,a.maskMatrix=new _t,a}return Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(n){this._maskSprite=n,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),e.prototype.apply=function(n,i,r,a){var o=this._maskSprite,s=o._texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new w3(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=n.calculateSpriteMatrix(this.maskMatrix,o).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=o.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,n.applyFilter(this,i,r,a))},e}($1),UP=function(){function t(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return t.prototype.setMaskStack=function(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)},t.prototype.push=function(e,n){var i=n;if(!i.isMaskData){var r=this.maskDataPool.pop()||new wP;r.pooled=!0,r.maskObject=n,i=r}var a=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(a),i._colorMask=a?a._colorMask:15,i.autoDetect&&this.detect(i),i._target=e,i.type!==$e.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case $e.SCISSOR:this.renderer.scissor.push(i);break;case $e.STENCIL:this.renderer.stencil.push(i);break;case $e.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break;case $e.COLOR:this.pushColorMask(i);break}i.type===$e.SPRITE&&this.maskStack.push(i)},t.prototype.pop=function(e){var n=this.maskStack.pop();if(!(!n||n._target!==e)){if(n.enabled)switch(n.type){case $e.SCISSOR:this.renderer.scissor.pop(n);break;case $e.STENCIL:this.renderer.stencil.pop(n.maskObject);break;case $e.SPRITE:this.popSpriteMask(n);break;case $e.COLOR:this.popColorMask(n);break}if(n.reset(),n.pooled&&this.maskDataPool.push(n),this.maskStack.length!==0){var i=this.maskStack[this.maskStack.length-1];i.type===$e.SPRITE&&i._filters&&(i._filters[0].maskSprite=i.maskObject)}}},t.prototype.detect=function(e){var n=e.maskObject;n?n.isSprite?e.type=$e.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=$e.SCISSOR:e.type=$e.STENCIL:e.type=$e.COLOR},t.prototype.pushSpriteMask=function(e){var n,i,r=e.maskObject,a=e._target,o=e._filters;o||(o=this.alphaMaskPool[this.alphaMaskIndex],o||(o=this.alphaMaskPool[this.alphaMaskIndex]=[new jP]));var s=this.renderer,f=s.renderTexture,l,c;if(f.current)
|
||
|
|
data[offset] = v;
|
||
|
|
`,vec2:`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
`,vec3:`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
|
||
|
|
`,vec4:`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
data[offset+3] = v[3];
|
||
|
|
`,mat2:`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
|
||
|
|
data[offset+4] = v[2];
|
||
|
|
data[offset+5] = v[3];
|
||
|
|
`,mat3:`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
|
||
|
|
data[offset + 4] = v[3];
|
||
|
|
data[offset + 5] = v[4];
|
||
|
|
data[offset + 6] = v[5];
|
||
|
|
|
||
|
|
data[offset + 8] = v[6];
|
||
|
|
data[offset + 9] = v[7];
|
||
|
|
data[offset + 10] = v[8];
|
||
|
|
`,mat4:`
|
||
|
|
for(var i = 0; i < 16; i++)
|
||
|
|
{
|
||
|
|
data[offset + i] = v[i];
|
||
|
|
}
|
||
|
|
`},b3={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function qP(t){for(var e=t.map(function(f){return{data:f,offset:0,dataLen:0,dirty:0}}),n=0,i=0,r=0,a=0;a<e.length;a++){var o=e[a];if(n=b3[o.data.type],o.data.size>1&&(n=Math.max(n,16)*o.data.size),o.dataLen=n,i%n!==0&&i<16){var s=i%n%16;i+=s,r+=s}i+n>16?(r=Math.ceil(r/16)*16,o.offset=r,r+=n,i=n):(o.offset=r,i+=n,r+=n)}return r=Math.ceil(r/16)*16,{uboElements:e,size:r}}function XP(t,e){var n=[];for(var i in t)e[i]&&n.push(e[i]);return n.sort(function(r,a){return r.index-a.index}),n}function YP(t,e){if(!t.autoManage)return{size:0,syncFunc:GP};for(var n=XP(t.uniforms,e),i=qP(n),r=i.uboElements,a=i.size,o=[`
|
||
|
|
var v = null;
|
||
|
|
var v2 = null;
|
||
|
|
var cv = null;
|
||
|
|
var t = 0;
|
||
|
|
var gl = renderer.gl
|
||
|
|
var index = 0;
|
||
|
|
var data = buffer.data;
|
||
|
|
`],s=0;s<r.length;s++){for(var f=r[s],l=t.uniforms[f.data.name],c=f.data.name,u=!1,d=0;d<Fa.length;d++){var h=Fa[d];if(h.codeUbo&&h.test(f.data,l)){o.push("offset = "+f.offset/4+";",Fa[d].codeUbo(f.data.name,l)),u=!0;break}}if(!u)if(f.data.size>1){var p=y3(f.data.type),m=Math.max(b3[f.data.type]/16,1),v=p/m,g=(4-v%4)%4;o.push(`
|
||
|
|
cv = ud.`+c+`.value;
|
||
|
|
v = uv.`+c+`;
|
||
|
|
offset = `+f.offset/4+`;
|
||
|
|
|
||
|
|
t = 0;
|
||
|
|
|
||
|
|
for(var i=0; i < `+f.data.size*m+`; i++)
|
||
|
|
{
|
||
|
|
for(var j = 0; j < `+v+`; j++)
|
||
|
|
{
|
||
|
|
data[offset++] = v[t++];
|
||
|
|
}
|
||
|
|
offset += `+g+`;
|
||
|
|
}
|
||
|
|
|
||
|
|
`)}else{var y=WP[f.data.type];o.push(`
|
||
|
|
cv = ud.`+c+`.value;
|
||
|
|
v = uv.`+c+`;
|
||
|
|
offset = `+f.offset/4+`;
|
||
|
|
`+y+`;
|
||
|
|
`)}}return o.push(`
|
||
|
|
renderer.buffer.update(buffer);
|
||
|
|
`),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(`
|
||
|
|
`))}}var KP=function(){function t(e,n){this.program=e,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function ZP(t,e){for(var n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),r=0;r<i;r++){var a=e.getActiveAttrib(t,r);if(a.name.indexOf("gl_")!==0){var o=_3(e,a.type),s={type:o,name:a.name,size:y3(o),location:e.getAttribLocation(t,a.name)};n[a.name]=s}}return n}function QP(t,e){for(var n={},i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=0;r<i;r++){var a=e.getActiveUniform(t,r),o=a.name.replace(/\[.*?\]$/,""),s=!!a.name.match(/\[.*?\]$/),f=_3(e,a.type);n[o]={name:o,index:r,type:f,size:a.size,isArray:s,value:m3(f,a.size)}}return n}function JP(t,e){var n=Jg(t,t.VERTEX_SHADER,e.vertexSrc),i=Jg(t,t.FRAGMENT_SHADER,e.fragmentSrc),r=t.createProgram();if(t.attachShader(r,n),t.attachShader(r,i),t.linkProgram(r),t.getProgramParameter(r,t.LINK_STATUS)||kP(t,r,n,i),e.attributeData=ZP(r,t),e.uniformData=QP(r,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){var a=Object.keys(e.attributeData);a.sort(function(c,u){return c>u?1:-1});for(var o=0;o<a.length;o++)e.attributeData[a[o]].location=o,t.bindAttribLocation(r,o,a[o]);t.linkProgram(r)}t.deleteShader(n),t.deleteShader(i);var s={};for(var o in e.uniformData){var f=e.uniformData[o];s[o]={location:t.getUniformLocation(r,o),value:m3(f.type,f.size)}}var l=new KP(r,s);return l}var eM=0,Uf={textureCount:0,uboCount:0},tM=function(){function t(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=eM++}return t.prototype.systemCheck=function(){if(!RP())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},t.prototype.contextChange=function(e){this.gl=e,this.reset()},t.prototype.bind=function(e,n){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;var i=e.program,r=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==i&&(this.program=i,this.gl.useProgram(r.program)),n||(Uf.textureCount=0,Uf.uboCount=0,this.syncUniformGroup(e.uniformGroup,Uf)),r},t.prototype.setUniforms=function(e){var n=this.shader.program,i=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(i.uniformData,e,this.renderer)},t.prototype.syncUniformGroup=function(e,n){var i=this.getGlProgram();(!e.static||e.dirtyId!==i.uniformDirtyGroups[e.id])&&(i.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,i,n))},t.prototype.syncUniforms=function(e,n,i){var r=e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e);r(n.uniformData,e.uniforms,this.renderer,i)},t.prototype.createSyncGroups=function(e){var n=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=CP(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[n],e.syncUniforms[this.shader.program.id]},t.prototype.syncUniformBufferGroup=function(e,n){var i=this.getGlProgram();if(!e.static||e.dirtyId!==0||!i.uniformGroups[e.id]){e.dirtyId=0;var r=i.uniformGroups[e.id]||this.createSyncBufferGroup(e,i,n);e.buffer.update(),r(i.uniformData,e.uniforms,this.renderer,Uf,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,i.uniformBufferBindings[n])},t.prototype.createSyncBufferGroup=function(e,n,i){var r=this.renderer.gl;this.renderer.buffer.bind(e.buffer);var a=this.gl.getUniformBlockIndex(n.program,i);n.uniformBufferBindings[i]=this.shader.uniformBindCount,r.uniformBlockBinding(n.program,a,this.shader.uniformBindCount),this.shader.uniformBindCount++;var o=this.getSignature(e,this.shader.program.uniformData,"ubo"),s=this._uboCache[o];if(s||(s=this._uboCache[o]=YP(e,this.shader.program.uniformData)),e.autoManage){var f=new Float32Array(s.size/4);e.buffer.update(f)}return n.uniformGroups[e.id]=s.syncFunc,n.uniformGroups[e.id]},t.prototype.g
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
}`,yM=`attribute vec2 aVertexPosition;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform vec4 inputSize;
|
||
|
|
uniform vec4 outputFrame;
|
||
|
|
|
||
|
|
vec4 filterVertexPosition( void )
|
||
|
|
{
|
||
|
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
|
||
|
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 filterTextureCoord( void )
|
||
|
|
{
|
||
|
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = filterVertexPosition();
|
||
|
|
vTextureCoord = filterTextureCoord();
|
||
|
|
}
|
||
|
|
`,_M=gM,wM=yM,Op=function(){function t(){this.texArray=null,this.blend=0,this.type=Gn.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Fp=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var e=0;e<this.count;e++)this.elements[e]=null;this.count=0},t}(),kM=function(){function t(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(t.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),t.prototype.view=function(e){return this[e+"View"]},t.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},t.sizeOf=function(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(e+" isn't a valid view type")}},t}(),bM=function(t){_e(e,t);function e(n){var i=t.call(this,n)||this;return i.shaderGenerator=null,i.geometryClass=null,i.vertexSize=null,i.state=tf.for2d(),i.size=H.SPRITE_BATCH_SIZE*4,i._vertexCount=0,i._indexCount=0,i._bufferedElements=[],i._bufferedTextures=[],i._bufferSize=0,i._shader=null,i._packedGeometries=[],i._packedGeometryPoolSize=2,i._flushId=0,i._aBuffers={},i._iBuffers={},i.MAX_TEXTURES=1,i.renderer.on("prerender",i.onPrerender,i),n.runners.contextChange.add(i),i._dcIndex=0,i._aIndex=0,i._iIndex=0,i._attributeBuffer=null,i._indexBuffer=null,i._tempBoundTextures=[],i}return e.prototype.contextChange=function(){var n=this.renderer.gl;H.PREFER_ENV===ti.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),H.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=MP(this.MAX_TEXTURES,n)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var i=0;i<this._packedGeometryPoolSize;i++)this._packedGeometries[i]=new this.geometryClass;this.initFlushBuffers()},e.prototype.initFlushBuffers=function(){for(var n=e._drawCallPool,i=e._textureArrayPool,r=this.size/4,a=Math.floor(r/this.MAX_TEXTURES)+1;n.length<r;)n.push(new Op);for(;i.length<a;)i.push(new Fp);for(var o=0;o<this.MAX_TEXTURES;o++)this._tempBoundTextures[o]=null},e.prototype.onPrerender=function(){this._flushId=0},e.prototype.render=function(n){n._texture.valid&&(this._vertexCount+n.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=n.vertexData.length/2,this._indexCount+=n.indices.length,this._bufferedTextures[this._bufferSize]=n._texture.baseTexture,this._bufferedElements[this._bufferSize++]=n)},e.prototype.buildTexturesAndDrawCalls=function(){var n=this,i=n._bufferedTextures,r=n.MAX_TEXTURES,a=e._textureArrayPool,o=this.renderer.batch,s=this._tempBoundTextures,f=this.renderer.textureGC.count,l=++ke._globalBatch,c=0,u=a[0],d=0;o.copyBoundTextures(s,r);for(var h=0;h<this._bufferSize;++h){var p=i[h];i[h]=null,p._batchEnabled!==l&&(u.count>=r&&(o.boundArray(u,s,l,r),this.buildDrawCalls(u,d,h),d=h,u=a[++c],++l),p._batchEnabled=l,p.touched=f,u.el
|
||
|
|
`,n+=`
|
||
|
|
`;for(var i=0;i<e;i++)i>0&&(n+=`
|
||
|
|
else `),i<e-1&&(n+="if(vTextureId < "+i+".5)"),n+=`
|
||
|
|
{`,n+=`
|
||
|
|
color = texture2D(uSamplers[`+i+"], vTextureCoord);",n+=`
|
||
|
|
}`;return n+=`
|
||
|
|
`,n+=`
|
||
|
|
`,n},t}(),S3=function(t){_e(e,t);function e(n){n===void 0&&(n=!1);var i=t.call(this)||this;return i._buffer=new Bt(null,n,!1),i._indexBuffer=new Bt(null,n,!0),i.addAttribute("aVertexPosition",i._buffer,2,!1,le.FLOAT).addAttribute("aTextureCoord",i._buffer,2,!1,le.FLOAT).addAttribute("aColor",i._buffer,4,!0,le.UNSIGNED_BYTE).addAttribute("aTextureId",i._buffer,1,!0,le.FLOAT).addIndex(i._indexBuffer),i}return e}(z1),oy=`precision highp float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
attribute vec4 aColor;
|
||
|
|
attribute float aTextureId;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform vec4 tint;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vTextureId = aTextureId;
|
||
|
|
vColor = aColor * tint;
|
||
|
|
}
|
||
|
|
`,sy=`varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
uniform sampler2D uSamplers[%count%];
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
vec4 color;
|
||
|
|
%forloop%
|
||
|
|
gl_FragColor = color * vColor;
|
||
|
|
}
|
||
|
|
`,SM=function(){function t(){}return t.create=function(e){var n=Object.assign({vertex:oy,fragment:sy,geometryClass:S3,vertexSize:6},e),i=n.vertex,r=n.fragment,a=n.vertexSize,o=n.geometryClass;return function(s){_e(f,s);function f(l){var c=s.call(this,l)||this;return c.shaderGenerator=new xM(i,r),c.geometryClass=o,c.vertexSize=a,c}return f}(bM)},Object.defineProperty(t,"defaultVertexSrc",{get:function(){return oy},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentTemplate",{get:function(){return sy},enumerable:!1,configurable:!0}),t}(),TM=SM.create();Object.assign(TM,{extension:{name:"batch",type:tt.RendererPlugin}});/*!
|
||
|
|
* @pixi/loaders - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/loaders is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var zf=function(){function t(e,n,i){n===void 0&&(n=!1),this._fn=e,this._once=n,this._thisArg=i,this._next=this._prev=this._owner=null}return t.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},t}();function fy(t,e){return t._head?(t._tail._next=e,e._prev=t._tail,t._tail=e):(t._head=e,t._tail=e),e._owner=t,e}var Un=function(){function t(){this._head=this._tail=void 0}return t.prototype.handlers=function(e){e===void 0&&(e=!1);var n=this._head;if(e)return!!n;for(var i=[];n;)i.push(n),n=n._next;return i},t.prototype.has=function(e){if(!(e instanceof zf))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return e._owner===this},t.prototype.dispatch=function(){for(var e=arguments,n=[],i=0;i<arguments.length;i++)n[i]=e[i];var r=this._head;if(!r)return!1;for(;r;)r._once&&this.detach(r),r._fn.apply(r._thisArg,n),r=r._next;return!0},t.prototype.add=function(e,n){if(n===void 0&&(n=null),typeof e!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return fy(this,new zf(e,!1,n))},t.prototype.once=function(e,n){if(n===void 0&&(n=null),typeof e!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return fy(this,new zf(e,!0,n))},t.prototype.detach=function(e){if(!(e instanceof zf))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return e._owner!==this?this:(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,e._next===null&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null,this)},t.prototype.detachAll=function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this},t}();function T3(t,e){e=e||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=n.parser[e.strictMode?"strict":"loose"].exec(t),r={},a=14;a--;)r[n.key[a]]=i[a]||"";return r[n.q.name]={},r[n.key[12]].replace(n.q.parser,function(o,s,f){s&&(r[n.q.name][s]=f)}),r}var Mc,Vf=null,EM=0,ly=200,CM=204,AM=1223,PM=2;function uy(){}function dy(t,e,n){e&&e.indexOf(".")===0&&(e=e.substring(1)),e&&(t[e]=n)}function Rc(t){return t.toString().replace("object ","")}var Tt=function(){function t(e,n,i){if(this._dequeue=uy,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,typeof e!="string"||typeof n!="string")throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,n.indexOf("data:")===0),this.name=e,this.url=n,this.extension=this._getExtension(),this.data=null,this.crossOrigin=i.crossOrigin===!0?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=uy,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new Un,this.onProgress
|
||
|
|
* @pixi/spritesheet - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/spritesheet is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var NM=function(){function t(e,n,i){i===void 0&&(i=null),this.linkedSheets=[],this._texture=e instanceof We?e:null,this.baseTexture=e instanceof ke?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=n;var r=this.baseTexture.resource;this.resolution=this._updateResolution(i||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t.prototype._updateResolution=function(e){e===void 0&&(e=null);var n=this.data.meta.scale,i=Ep(e,null);return i===null&&(i=n!==void 0?parseFloat(n):1),i!==1&&this.baseTexture.setResolution(i),i},t.prototype.parse=function(e){var n=this;return e&&En("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(i){n._callback=function(r){e==null||e(r),i(r)},n._batchIndex=0,n._frameKeys.length<=t.BATCH_SIZE?(n._processFrames(0),n._processAnimations(),n._parseComplete()):n._nextBatch()})},t.prototype._processFrames=function(e){for(var n=e,i=t.BATCH_SIZE;n-e<i&&n<this._frameKeys.length;){var r=this._frameKeys[n],a=this._frames[r],o=a.frame;if(o){var s=null,f=null,l=a.trimmed!==!1&&a.sourceSize?a.sourceSize:a.frame,c=new te(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);a.rotated?s=new te(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.h)/this.resolution,Math.floor(o.w)/this.resolution):s=new te(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution),a.trimmed!==!1&&a.spriteSourceSize&&(f=new te(Math.floor(a.spriteSourceSize.x)/this.resolution,Math.floor(a.spriteSourceSize.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution)),this.textures[r]=new We(this.baseTexture,s,c,f,a.rotated?2:0,a.anchor),We.addToCache(this.textures[r],r)}n++}},t.prototype._processAnimations=function(){var e=this.data.animations||{};for(var n in e){this.animations[n]=[];for(var i=0;i<e[n].length;i++){var r=e[n][i];this.animations[n].push(this.textures[r])}}},t.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},t.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*t.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},t.prototype.destroy=function(e){var n;e===void 0&&(e=!1);for(var i in this.textures)this.textures[i].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((n=this._texture)===null||n===void 0||n.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},t.BATCH_SIZE=1e3,t}(),EV=function(){function t(){}return t.use=function(e,n){var i,r,a=this,o=e.name+"_image";if(!e.data||e.type!==Tt.TYPE.JSON||!e.data.frames||a.resources[o]){n();return}var s=(r=(i=e.data)===null||i===void 0?void 0:i.meta)===null||r===void 0?void 0:r.related_multi_packs;if(Array.isArray(s))for(var f=function(p){if(typeof p!="string")return"continue";var m=p.replace(".json",""),v=Mo.resolve(e.url.replace(a.baseUrl,""),p);if(a.resources[m]||Object.values(a.resources).some(function(y){return Mo.format(Mo.parse(y.url))===v}))return"continue";var g={crossOrigin:e.crossOrigin,loadType:Tt.LOAD_TYPE.XHR,xhrType:Tt.XHR_RESPONSE_TYPE.JSON,parentResource:e,metadata:e.metadata};a.add(m,v,g)},l=0,c=s;l<c.length;l++){var u=c[l];f(u)}var d={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},h=t.getResourcePath(e,a.baseUrl);a.add(o,h,d,function(m){if(m.error){n(m.error);return}var v=new NM(m.texture,e.data,e.url);v.parse().then(function(){e.spritesheet=v,e.textures=v.textures,n()})})},t.getResourcePath=function(e,n){return e.isDataUrl?e.data.meta.image:Mo.resolve(e.url.replace(n,""),e.data.meta.image)},t.extension=tt.Loader,t}();function ro(t){let e=t.length;for(;--e>=0;)t[e]=0}const jM=3,UM=258,E3=29,zM=256,VM=zM+1+E3,C3=30,HM=512,$M=new Array((VM+2)*2);ro(
|
||
|
|
* @pixi/display - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/display is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/H.SORTABLE_CHILDREN=!1;var gu=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?te.EMPTY:(e=e||new te(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},t.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},t.prototype.addPointMatrix=function(e,n){var i=e.a,r=e.b,a=e.c,o=e.d,s=e.tx,f=e.ty,l=i*n.x+a*n.y+s,c=r*n.x+o*n.y+f;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},t.prototype.addQuad=function(e){var n=this.minX,i=this.minY,r=this.maxX,a=this.maxY,o=e[0],s=e[1];n=o<n?o:n,i=s<i?s:i,r=o>r?o:r,a=s>a?s:a,o=e[2],s=e[3],n=o<n?o:n,i=s<i?s:i,r=o>r?o:r,a=s>a?s:a,o=e[4],s=e[5],n=o<n?o:n,i=s<i?s:i,r=o>r?o:r,a=s>a?s:a,o=e[6],s=e[7],n=o<n?o:n,i=s<i?s:i,r=o>r?o:r,a=s>a?s:a,this.minX=n,this.minY=i,this.maxX=r,this.maxY=a},t.prototype.addFrame=function(e,n,i,r,a){this.addFrameMatrix(e.worldTransform,n,i,r,a)},t.prototype.addFrameMatrix=function(e,n,i,r,a){var o=e.a,s=e.b,f=e.c,l=e.d,c=e.tx,u=e.ty,d=this.minX,h=this.minY,p=this.maxX,m=this.maxY,v=o*n+f*i+c,g=s*n+l*i+u;d=v<d?v:d,h=g<h?g:h,p=v>p?v:p,m=g>m?g:m,v=o*r+f*i+c,g=s*r+l*i+u,d=v<d?v:d,h=g<h?g:h,p=v>p?v:p,m=g>m?g:m,v=o*n+f*a+c,g=s*n+l*a+u,d=v<d?v:d,h=g<h?g:h,p=v>p?v:p,m=g>m?g:m,v=o*r+f*a+c,g=s*r+l*a+u,d=v<d?v:d,h=g<h?g:h,p=v>p?v:p,m=g>m?g:m,this.minX=d,this.minY=h,this.maxX=p,this.maxY=m},t.prototype.addVertexData=function(e,n,i){for(var r=this.minX,a=this.minY,o=this.maxX,s=this.maxY,f=n;f<i;f+=2){var l=e[f],c=e[f+1];r=l<r?l:r,a=c<a?c:a,o=l>o?l:o,s=c>s?c:s}this.minX=r,this.minY=a,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(e,n,i,r){this.addVerticesMatrix(e.worldTransform,n,i,r)},t.prototype.addVerticesMatrix=function(e,n,i,r,a,o){a===void 0&&(a=0),o===void 0&&(o=a);for(var s=e.a,f=e.b,l=e.c,c=e.d,u=e.tx,d=e.ty,h=this.minX,p=this.minY,m=this.maxX,v=this.maxY,g=i;g<r;g+=2){var y=n[g],_=n[g+1],w=s*y+l*_+u,k=c*_+f*y+d;h=Math.min(h,w-a),m=Math.max(m,w+a),p=Math.min(p,k-o),v=Math.max(v,k+o)}this.minX=h,this.minY=p,this.maxX=m,this.maxY=v},t.prototype.addBounds=function(e){var n=this.minX,i=this.minY,r=this.maxX,a=this.maxY;this.minX=e.minX<n?e.minX:n,this.minY=e.minY<i?e.minY:i,this.maxX=e.maxX>r?e.maxX:r,this.maxY=e.maxY>a?e.maxY:a},t.prototype.addBoundsMask=function(e,n){var i=e.minX>n.minX?e.minX:n.minX,r=e.minY>n.minY?e.minY:n.minY,a=e.maxX<n.maxX?e.maxX:n.maxX,o=e.maxY<n.maxY?e.maxY:n.maxY;if(i<=a&&r<=o){var s=this.minX,f=this.minY,l=this.maxX,c=this.maxY;this.minX=i<s?i:s,this.minY=r<f?r:f,this.maxX=a>l?a:l,this.maxY=o>c?o:c}},t.prototype.addBoundsMatrix=function(e,n){this.addFrameMatrix(n,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.addBoundsArea=function(e,n){var i=e.minX>n.x?e.minX:n.x,r=e.minY>n.y?e.minY:n.y,a=e.maxX<n.x+n.width?e.maxX:n.x+n.width,o=e.maxY<n.y+n.height?e.maxY:n.y+n.height;if(i<=a&&r<=o){var s=this.minX,f=this.minY,l=this.maxX,c=this.maxY;this.minX=i<s?i:s,this.minY=r<f?r:f,this.maxX=a>l?a:l,this.maxY=o>c?o:c}},t.prototype.pad=function(e,n){e===void 0&&(e=0),n===void 0&&(n=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=n,this.maxY+=n)},t.prototype.addFramePad=function(e,n,i,r,a,o){e-=a,n-=o,i+=a,r+=o,this.minX=this.minX<e?this.minX:e,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<n?this.minY:n,this.maxY=this.maxY>r?this.maxY:r},t}();/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Lp=function(t,e){return Lp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Lp(t,e)};function G1(t,e){Lp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qe=function(t){G1(e,t);function e(){var n=t.call(this)||this;return n.tempDisplayObjectParent=null,n.transform=new l3,n.alpha=1,n.visible=!0,n.renderable=!0,n.cullable=!1,n.cullArea=null,n.parent=null,n.worldAlpha=1,n._lastSortedIndex=0,n._zIndex=0,n.filterArea=null,n.filters=null,n._enabledFilters=null,n._bounds=new gu,n._localBounds=null,n._boundsID=0,n._boundsRect=null,n._localBoundsRect=null,n._mask=null,n._maskRefCount=0,n._destroyed=!1,n.isSprite=!1,n.isMask=!1,n}return e.mixin=function(n){for(var i=Object.keys(n),r=0;r<i.length;++r){var a=i[r];Object.defineProperty(e.prototype,a,Object.getOwnPropertyDescriptor(n,a))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(n,i){return n||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),i||(this._boundsRect||(this._boundsRect=new te),i=this._boundsRect),this._bounds.getRectangle(i)},e.prototype.getLocalBounds=function(n){n||(this._localBoundsRect||(this._localBoundsRect=new te),n=this._localBoundsRect),this._localBounds||(this._localBounds=new gu);var i=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var a=this._bounds,o=this._boundsID;this._bounds=this._localBounds;var s=this.getBounds(!1,n);return this.parent=r,this.transform=i,this._bounds=a,this._bounds.updateID+=this._boundsID-o,s},e.prototype.toGlobal=function(n,i,r){return r===void 0&&(r=!1),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(n,i)},e.prototype.toLocal=function(n,i,r,a){return i&&(n=i.toGlobal(n,r,a)),a||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(n,r)},e.prototype.setParent=function(n){if(!n||!n.addChild)throw new Error("setParent: Argument must be a Container");return n.addChild(this),n},e.prototype.setTransform=function(n,i,r,a,o,s,f,l,c){return n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=1),a===void 0&&(a=1),o===void 0&&(o=0),s===void 0&&(s=0),f===void 0&&(f=0),l===void 0&&(l=0),c===void 0&&(c=0),this.position.x=n,this.position.y=i,this.scale.x=r||1,this.scale.y=a||1,this.rotation=o,this.skew.x=s,this.skew.y=f,this.pivot.x=l,this.pivot.y=c,this},e.prototype.destroy=function(n){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new QR),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempPar
|
||
|
|
* @pixi/app - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/app is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var eO=function(){function t(){}return t.init=function(e){var n=this;Object.defineProperty(this,"resizeTo",{set:function(i){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=i,i&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){n._resizeTo&&(n.cancelResize(),n._resizeId=requestAnimationFrame(function(){return n.resize()}))},this.cancelResize=function(){n._resizeId&&(cancelAnimationFrame(n._resizeId),n._resizeId=null)},this.resize=function(){if(n._resizeTo){n.cancelResize();var i,r;if(n._resizeTo===globalThis.window)i=globalThis.innerWidth,r=globalThis.innerHeight;else{var a=n._resizeTo,o=a.clientWidth,s=a.clientHeight;i=o,r=s}n.renderer.resize(i,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},t.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},t.extension=tt.Application,t}(),tO=function(){function t(e){var n=this;this.stage=new Di,e=Object.assign({forceCanvas:!1},e),this.renderer=mM(e),t._plugins.forEach(function(i){i.init.call(n,e)})}return t.registerPlugin=function(e){En("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),$i.add({type:tt.Application,ref:e})},t.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(t.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),t.prototype.destroy=function(e,n){var i=this,r=t._plugins.slice(0);r.reverse(),r.forEach(function(a){a.destroy.call(i)}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(e),this.renderer=null},t._plugins=[],t}();$i.handleByList(tt.Application,tO._plugins);$i.add(eO);/*!
|
||
|
|
* @pixi/filter-alpha - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/filter-alpha is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Np=function(t,e){return Np=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Np(t,e)};function nO(t,e){Np(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var iO=`varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform float uAlpha;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
|
||
|
|
}
|
||
|
|
`,AV=function(t){nO(e,t);function e(n){n===void 0&&(n=1);var i=t.call(this,_M,iO,{uAlpha:1})||this;return i.alpha=n,i}return Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(n){this.uniforms.uAlpha=n},enumerable:!1,configurable:!0}),e}($1);/*!
|
||
|
|
* @pixi/sprite - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/sprite is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var jp=function(t,e){return jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},jp(t,e)};function rO(t,e){jp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ko=new ge,aO=new Uint16Array([0,1,2,0,2,3]),ud=function(t){rO(e,t);function e(n){var i=t.call(this)||this;return i._anchor=new ga(i._onAnchorUpdate,i,n?n.defaultAnchor.x:0,n?n.defaultAnchor.y:0),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=X.NORMAL,i._cachedTint=16777215,i.uvs=null,i.texture=n||We.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.indices=aO,i.pluginName="batch",i.isSprite=!0,i._roundPixels=H.ROUND_PIXELS,i}return e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=ma(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=ma(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var n=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===n._updateID)){this._textureID!==n._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=n._updateID;var i=this.transform.worldTransform,r=i.a,a=i.b,o=i.c,s=i.d,f=i.tx,l=i.ty,c=this.vertexData,u=n.trim,d=n.orig,h=this._anchor,p=0,m=0,v=0,g=0;if(u?(m=u.x-h._x*d.width,p=m+u.width,g=u.y-h._y*d.height,v=g+u.height):(m=-h._x*d.width,p=m+d.width,g=-h._y*d.height,v=g+d.height),c[0]=r*m+o*g+f,c[1]=s*g+a*m+l,c[2]=r*p+o*g+f,c[3]=s*g+a*p+l,c[4]=r*p+o*v+f,c[5]=s*v+a*p+l,c[6]=r*m+o*v+f,c[7]=s*v+a*m+l,this._roundPixels)for(var y=H.RESOLUTION,_=0;_<c.length;++_)c[_]=Math.round((c[_]*y|0)/y)}},e.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var n=this._texture,i=this.vertexTrimmedData,r=n.orig,a=this._anchor,o=this.transform.worldTransform,s=o.a,f=o.b,l=o.c,c=o.d,u=o.tx,d=o.ty,h=-a._x*r.width,p=h+r.width,m=-a._y*r.height,v=m+r.height;i[0]=s*h+l*m+u,i[1]=c*m+f*h+d,i[2]=s*p+l*m+u,i[3]=c*m+f*p+d,i[4]=s*p+l*v+u,i[5]=c*v+f*p+d,i[6]=s*h+l*v+u,i[7]=c*v+f*h+d},e.prototype._render=function(n){this.calculateVertices(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var n=this._texture.trim,i=this._texture.orig;!n||n.width===i.width&&n.height===i.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(n){return this.children.length===0?(this._localBounds||(this._localBounds=new gu),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new te),n=this._localBoundsRect),this._localBounds.getRectangle(n)):t.prototype.getLocalBounds.call(this,n)},e.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,ko);var i=this._texture.orig.width,r=this._texture.orig.height,a=-i*this.anchor.x,o=0;return ko.x>=a&&ko.x<a+i&&(o=-r*this.anchor.y,ko.y>=o&&ko.y<o+r)},e.prototype.destroy=function(n){t.prototype.destroy.call(this,n),this._texture.off("update",this._onTextureUpdate,this),this._anchor
|
||
|
|
* @pixi/filter-color-matrix - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Up=function(t,e){return Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Up(t,e)};function oO(t,e){Up(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var sO=`varying vec2 vTextureCoord;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform float m[20];
|
||
|
|
uniform float uAlpha;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec4 c = texture2D(uSampler, vTextureCoord);
|
||
|
|
|
||
|
|
if (uAlpha == 0.0) {
|
||
|
|
gl_FragColor = c;
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Un-premultiply alpha before applying the color matrix. See issue #3539.
|
||
|
|
if (c.a > 0.0) {
|
||
|
|
c.rgb /= c.a;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 result;
|
||
|
|
|
||
|
|
result.r = (m[0] * c.r);
|
||
|
|
result.r += (m[1] * c.g);
|
||
|
|
result.r += (m[2] * c.b);
|
||
|
|
result.r += (m[3] * c.a);
|
||
|
|
result.r += m[4];
|
||
|
|
|
||
|
|
result.g = (m[5] * c.r);
|
||
|
|
result.g += (m[6] * c.g);
|
||
|
|
result.g += (m[7] * c.b);
|
||
|
|
result.g += (m[8] * c.a);
|
||
|
|
result.g += m[9];
|
||
|
|
|
||
|
|
result.b = (m[10] * c.r);
|
||
|
|
result.b += (m[11] * c.g);
|
||
|
|
result.b += (m[12] * c.b);
|
||
|
|
result.b += (m[13] * c.a);
|
||
|
|
result.b += m[14];
|
||
|
|
|
||
|
|
result.a = (m[15] * c.r);
|
||
|
|
result.a += (m[16] * c.g);
|
||
|
|
result.a += (m[17] * c.b);
|
||
|
|
result.a += (m[18] * c.a);
|
||
|
|
result.a += m[19];
|
||
|
|
|
||
|
|
vec3 rgb = mix(c.rgb, result.rgb, uAlpha);
|
||
|
|
|
||
|
|
// Premultiply alpha again.
|
||
|
|
rgb *= result.a;
|
||
|
|
|
||
|
|
gl_FragColor = vec4(rgb, result.a);
|
||
|
|
}
|
||
|
|
`,Vy=function(t){oO(e,t);function e(){var n=this,i={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return n=t.call(this,wM,sO,i)||this,n.alpha=1,n}return e.prototype._loadMatrix=function(n,i){i===void 0&&(i=!1);var r=n;i&&(this._multiply(r,this.uniforms.m,n),r=this._colorMatrix(r)),this.uniforms.m=r},e.prototype._multiply=function(n,i,r){return n[0]=i[0]*r[0]+i[1]*r[5]+i[2]*r[10]+i[3]*r[15],n[1]=i[0]*r[1]+i[1]*r[6]+i[2]*r[11]+i[3]*r[16],n[2]=i[0]*r[2]+i[1]*r[7]+i[2]*r[12]+i[3]*r[17],n[3]=i[0]*r[3]+i[1]*r[8]+i[2]*r[13]+i[3]*r[18],n[4]=i[0]*r[4]+i[1]*r[9]+i[2]*r[14]+i[3]*r[19]+i[4],n[5]=i[5]*r[0]+i[6]*r[5]+i[7]*r[10]+i[8]*r[15],n[6]=i[5]*r[1]+i[6]*r[6]+i[7]*r[11]+i[8]*r[16],n[7]=i[5]*r[2]+i[6]*r[7]+i[7]*r[12]+i[8]*r[17],n[8]=i[5]*r[3]+i[6]*r[8]+i[7]*r[13]+i[8]*r[18],n[9]=i[5]*r[4]+i[6]*r[9]+i[7]*r[14]+i[8]*r[19]+i[9],n[10]=i[10]*r[0]+i[11]*r[5]+i[12]*r[10]+i[13]*r[15],n[11]=i[10]*r[1]+i[11]*r[6]+i[12]*r[11]+i[13]*r[16],n[12]=i[10]*r[2]+i[11]*r[7]+i[12]*r[12]+i[13]*r[17],n[13]=i[10]*r[3]+i[11]*r[8]+i[12]*r[13]+i[13]*r[18],n[14]=i[10]*r[4]+i[11]*r[9]+i[12]*r[14]+i[13]*r[19]+i[14],n[15]=i[15]*r[0]+i[16]*r[5]+i[17]*r[10]+i[18]*r[15],n[16]=i[15]*r[1]+i[16]*r[6]+i[17]*r[11]+i[18]*r[16],n[17]=i[15]*r[2]+i[16]*r[7]+i[17]*r[12]+i[18]*r[17],n[18]=i[15]*r[3]+i[16]*r[8]+i[17]*r[13]+i[18]*r[18],n[19]=i[15]*r[4]+i[16]*r[9]+i[17]*r[14]+i[18]*r[19]+i[19],n},e.prototype._colorMatrix=function(n){var i=new Float32Array(n);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},e.prototype.brightness=function(n,i){var r=[n,0,0,0,0,0,n,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.tint=function(n,i){var r=n>>16&255,a=n>>8&255,o=n&255,s=[r/255,0,0,0,0,0,a/255,0,0,0,0,0,o/255,0,0,0,0,0,1,0];this._loadMatrix(s,i)},e.prototype.greyscale=function(n,i){var r=[n,n,n,0,0,n,n,n,0,0,n,n,n,0,0,0,0,0,1,0];this._loadMatrix(r,i)},e.prototype.blackAndWhite=function(n){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.hue=function(n,i){n=(n||0)/180*Math.PI;var r=Math.cos(n),a=Math.sin(n),o=Math.sqrt,s=1/3,f=o(s),l=r+(1-r)*s,c=s*(1-r)-f*a,u=s*(1-r)+f*a,d=s*(1-r)+f*a,h=r+s*(1-r),p=s*(1-r)-f*a,m=s*(1-r)-f*a,v=s*(1-r)+f*a,g=r+s*(1-r),y=[l,c,u,0,0,d,h,p,0,0,m,v,g,0,0,0,0,0,1,0];this._loadMatrix(y,i)},e.prototype.contrast=function(n,i){var r=(n||0)+1,a=-.5*(r-1),o=[r,0,0,0,a,0,r,0,0,a,0,0,r,0,a,0,0,0,1,0];this._loadMatrix(o,i)},e.prototype.saturate=function(n,i){n===void 0&&(n=0);var r=n*2/3+1,a=(r-1)*-.5,o=[r,a,a,0,0,a,r,a,0,0,a,a,r,0,0,0,0,0,1,0];this._loadMatrix(o,i)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(n){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.sepia=function(n){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.technicolor=function(n){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.polaroid=function(n){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.toBGR=function(n){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.kodachrome=function(n){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.browni=function(n){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.vintage=function(n){var i=[.6279345635605994,.32
|
||
|
|
* @pixi/graphics - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/graphics is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var zn;(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(zn||(zn={}));var _i;(function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"})(_i||(_i={}));var Fs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(e===void 0&&(e=20),!this.adaptive||!t||isNaN(t))return e;var n=Math.ceil(t/this.maxLength);return n<this.minSegments?n=this.minSegments:n>this.maxSegments&&(n=this.maxSegments),n}},H3=function(){function t(){this.color=16777215,this.alpha=1,this.texture=We.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=We.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}();/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var zp=function(t,e){return zp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},zp(t,e)};function W1(t,e){zp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Hy(t,e){var n,i;e===void 0&&(e=!1);var r=t.length;if(!(r<6)){for(var a=0,o=0,s=t[r-2],f=t[r-1];o<r;o+=2){var l=t[o],c=t[o+1];a+=(l-s)*(c+f),s=l,f=c}if(!e&&a>0||e&&a<=0)for(var u=r/2,o=u+u%2;o<r;o+=2){var d=r-o-2,h=r-o-1,p=o,m=o+1;n=[t[p],t[d]],t[d]=n[0],t[p]=n[1],i=[t[m],t[h]],t[h]=i[0],t[m]=i[1]}}}var $3={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var n=t.points,i=t.holes,r=e.points,a=e.indices;if(n.length>=6){Hy(n,!1);for(var o=[],s=0;s<i.length;s++){var f=i[s];Hy(f.points,!0),o.push(n.length/2),n=n.concat(f.points)}var l=Ob(n,o,2);if(!l)return;for(var c=r.length/2,s=0;s<l.length;s+=3)a.push(l[s]+c),a.push(l[s+1]+c),a.push(l[s+2]+c);for(var s=0;s<n.length;s++)r.push(n[s])}}},yu={build:function(t){var e=t.points,n,i,r,a,o,s;if(t.type===Je.CIRC){var f=t.shape;n=f.x,i=f.y,o=s=f.radius,r=a=0}else if(t.type===Je.ELIP){var l=t.shape;n=l.x,i=l.y,o=l.width,s=l.height,r=a=0}else{var c=t.shape,u=c.width/2,d=c.height/2;n=c.x+u,i=c.y+d,o=s=Math.max(0,Math.min(c.radius,Math.min(u,d))),r=u-o,a=d-s}if(!(o>=0&&s>=0&&r>=0&&a>=0)){e.length=0;return}var h=Math.ceil(2.3*Math.sqrt(o+s)),p=h*8+(r?4:0)+(a?4:0);if(e.length=p,p!==0){if(h===0){e.length=8,e[0]=e[6]=n+r,e[1]=e[3]=i+a,e[2]=e[4]=n-r,e[5]=e[7]=i-a;return}var m=0,v=h*4+(r?2:0)+2,g=v,y=p;{var _=r+o,w=a,k=n+_,b=n-_,x=i+w;if(e[m++]=k,e[m++]=x,e[--v]=x,e[--v]=b,a){var S=i-w;e[g++]=b,e[g++]=S,e[--y]=S,e[--y]=k}}for(var T=1;T<h;T++){var E=Math.PI/2*(T/h),_=r+Math.cos(E)*o,w=a+Math.sin(E)*s,k=n+_,b=n-_,x=i+w,S=i-w;e[m++]=k,e[m++]=x,e[--v]=x,e[--v]=b,e[g++]=b,e[g++]=S,e[--y]=S,e[--y]=k}{var _=r,w=a+s,k=n+_,b=n-_,x=i+w,S=i-w;e[m++]=k,e[m++]=x,e[--y]=S,e[--y]=k,r&&(e[m++]=b,e[m++]=x,e[--y]=S,e[--y]=b)}}},triangulate:function(t,e){var n=t.points,i=e.points,r=e.indices;if(n.length!==0){var a=i.length/2,o=a,s,f;if(t.type!==Je.RREC){var l=t.shape;s=l.x,f=l.y}else{var c=t.shape;s=c.x+c.width/2,f=c.y+c.height/2}var u=t.matrix;i.push(t.matrix?u.a*s+u.c*f+u.tx:s,t.matrix?u.b*s+u.d*f+u.ty:f),a++,i.push(n[0],n[1]);for(var d=2;d<n.length;d+=2)i.push(n[d],n[d+1]),r.push(a++,o,a);r.push(o+1,o,a)}}},fO={build:function(t){var e=t.shape,n=e.x,i=e.y,r=e.width,a=e.height,o=t.points;o.length=0,o.push(n,i,n+r,i,n+r,i+a,n,i+a)},triangulate:function(t,e){var n=t.points,i=e.points,r=i.length/2;i.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),e.indices.push(r,r+1,r+2,r+1,r+2,r+3)}};function Zr(t,e,n){var i=e-t;return t+i*n}function qf(t,e,n,i,r,a,o){o===void 0&&(o=[]);for(var s=20,f=o,l=0,c=0,u=0,d=0,h=0,p=0,m=0,v=0;m<=s;++m)v=m/s,l=Zr(t,n,v),c=Zr(e,i,v),u=Zr(n,r,v),d=Zr(i,a,v),h=Zr(l,u,v),p=Zr(c,d,v),!(m===0&&f[f.length-2]===h&&f[f.length-1]===p)&&f.push(h,p);return f}var lO={build:function(t){if(Vp.nextRoundedRectBehavior){yu.build(t);return}var e=t.shape,n=t.points,i=e.x,r=e.y,a=e.width,o=e.height,s=Math.max(0,Math.min(e.radius,Math.min(a,o)/2));n.length=0,s?(qf(i,r+s,i,r,i+s,r,n),qf(i+a-s,r,i+a,r,i+a,r+s,n),qf(i+a,r+o-s,i+a,r+o,i+a-s,r+o,n),qf(i+s,r+o,i,r+o,i,r+o-s,n)):n.push(i,r,i+a,r,i+a,r+o,i,r+o)},triangulate:function(t,e){if(Vp.nextRoundedRectBehavior){yu.triangulate(t,e);return}for(var n=t.points,i=e.points,r=e.indices,a=i.length/2,o=Ob(n,null,2),s=0,f=o.length;s<f;s+=3)r.push(o[s]+a),r.push(o[s+1]+a),r.push(o[s+2]+a);for(var s=0,f=n.length;s<f;s++)i.push(n[s],n[++s])}};function $y(t,e,n,i,r,a,o,s){var f=t-n*r,l=e-i*r,c=t+n*a,u=e+i*a,d,h;o?(d=i,h=-n):(d=-i,h=n);var p=f+d,m=l+h,v=c+d,g=u+h;return s.push(p,m),s.push(v,g),2}function Qi(t,e,n,i,r,a,o,s){var f=n-t,l=i-e,c=Math.atan2(f,l),u=Math.atan2(r-t,a-e);s&&c<u?c+=Math.PI*2:!s&&c>u&&(u+=Math.PI*2);var d=c,h=u-c,p=Math.abs(h),m=Math.sqrt(f*f+l*l),v=(15*p*Math.sqrt(m)/Math.PI>>0)+1,g=h/v;if(d+=g,s){o.push(t,e),o.push(n,i);for(var
|
||
|
|
* @pixi/canvas-display - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/canvas-display is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/Di.prototype._renderCanvas=function(e){};Di.prototype.renderCanvas=function(e){if(!(!this.visible||this.worldAlpha<=0||!this.renderable)){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var n=0,i=this.children.length;n<i;++n)this.children[n].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}};qe.prototype.renderCanvas=function(e){};/*!
|
||
|
|
* @pixi/extract - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/extract is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var yO=new te,_O=4,MV=function(){function t(e){this.renderer=e}return t.prototype.image=function(e,n,i){var r=new Image;return r.src=this.base64(e,n,i),r},t.prototype.base64=function(e,n,i){return this.canvas(e).toDataURL(n,i)},t.prototype.canvas=function(e,n){var i=this._rawPixels(e,n),r=i.pixels,a=i.width,o=i.height,s=i.flipY,f=new qg(a,o,1),l=f.context.getImageData(0,0,a,o);if(t.arrayPostDivide(r,l.data),f.context.putImageData(l,0,0),s){var c=new qg(f.width,f.height,1);c.context.scale(1,-1),c.context.drawImage(f.canvas,0,-o),f.destroy(),f=c}return f.canvas},t.prototype.pixels=function(e,n){var i=this._rawPixels(e,n).pixels;return t.arrayPostDivide(i,i),i},t.prototype._rawPixels=function(e,n){var i=this.renderer,r,a=!1,o,s=!1;if(e)if(e instanceof Br)o=e;else{var f=i.context.webGLVersion>=2?i.multisample:Te.NONE;if(o=this.renderer.generateTexture(e,{multisample:f}),f!==Te.NONE){var l=Br.create({width:o.width,height:o.height});i.framebuffer.bind(o.framebuffer),i.framebuffer.blit(l.framebuffer),i.framebuffer.bind(null),o.destroy(!0),o=l}s=!0}o?(r=o.baseTexture.resolution,n=n??o.frame,a=!1,i.renderTexture.bind(o)):(r=i.resolution,n||(n=yO,n.width=i.width,n.height=i.height),a=!0,i.renderTexture.bind(null));var c=Math.round(n.width*r),u=Math.round(n.height*r),d=new Uint8Array(_O*c*u),h=i.gl;return h.readPixels(Math.round(n.x*r),Math.round(n.y*r),c,u,h.RGBA,h.UNSIGNED_BYTE,d),s&&o.destroy(!0),{pixels:d,width:c,height:u,flipY:a}},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(e,n){for(var i=0;i<e.length;i+=4){var r=n[i+3]=e[i+3];r!==0?(n[i]=Math.round(Math.min(e[i]*255/r,255)),n[i+1]=Math.round(Math.min(e[i+1]*255/r,255)),n[i+2]=Math.round(Math.min(e[i+2]*255/r,255))):(n[i]=e[i],n[i+1]=e[i+1],n[i+2]=e[i+2])}},t.extension={name:"extract",type:tt.RendererPlugin},t}();/*!
|
||
|
|
* @pixi/graphics-extras - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/graphics-extras is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/function wO(t,e,n,i,r,a){return r===void 0&&(r=0),a===void 0&&(a=Math.PI*2),Math.abs(a-r)>=Math.PI*2?this.drawCircle(t,e,i).beginHole().drawCircle(t,e,n).endHole():(this.finishPoly(),this.arc(t,e,n,a,r,!0).arc(t,e,i,r,a,!1).finishPoly(),this)}function kO(t,e,n,i,r){if(r<=0)return this.drawRect(t,e,n,i);for(var a=Math.min(r,Math.min(n,i)/2),o=t+n,s=e+i,f=[t+a,e,o-a,e,o,e+a,o,s-a,o-a,s,t+a,s,t,s-a,t,e+a],l=f.length-1;l>=2;l-=2)f[l]===f[l-2]&&f[l-1]===f[l-3]&&f.splice(l-1,2);return this.drawPolygon(f)}function bO(t,e,n,i,r){if(r===0)return this.drawRect(t,e,n,i);var a=Math.min(n,i)/2,o=Math.min(a,Math.max(-a,r)),s=t+n,f=e+i,l=o<0?-o:0,c=Math.abs(o);return this.moveTo(t,e+c).arcTo(t+l,e+l,t+c,e,c).lineTo(s-c,e).arcTo(s-l,e+l,s,e+c,c).lineTo(s,f-c).arcTo(s-l,f-l,t+n-c,f,c).lineTo(t+c,f).arcTo(t+l,f-l,t,f-c,c).closePath()}function xO(t,e,n,i,r){r===void 0&&(r=0),i=Math.max(i|0,3);for(var a=-1*Math.PI/2+r,o=Math.PI*2/i,s=[],f=0;f<i;f++){var l=f*o+a;s.push(t+n*Math.cos(l),e+n*Math.sin(l))}return this.drawPolygon(s)}function SO(t,e,n,i,r,a){if(a===void 0&&(a=0),i=Math.max(i|0,3),r<=0)return this.drawRegularPolygon(t,e,n,i,a);var o=n*Math.sin(Math.PI/i)-.001;r=Math.min(r,o);for(var s=-1*Math.PI/2+a,f=Math.PI*2/i,l=(i-2)*Math.PI/i/2,c=0;c<i;c++){var u=c*f+s,d=t+n*Math.cos(u),h=e+n*Math.sin(u),p=u+Math.PI+l,m=u-Math.PI-l,v=d+r*Math.cos(p),g=h+r*Math.sin(p),y=d+r*Math.cos(m),_=h+r*Math.sin(m);c===0?this.moveTo(v,g):this.lineTo(v,g),this.quadraticCurveTo(d,h,y,_)}return this.closePath()}/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Hp=function(t,e){return Hp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Hp(t,e)};function TO(t,e){Hp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var EO=function(t){TO(e,t);function e(n,i,r,a,o,s){s===void 0&&(s=0);var f=this;o=o||a/2;for(var l=-1*Math.PI/2+s,c=r*2,u=Ps/c,d=[],h=0;h<c;h++){var p=h%2?o:a,m=h*u+l;d.push(n+p*Math.cos(m),i+p*Math.sin(m))}return f=t.call(this,d)||this,f}return e}(Tl);function CO(t,e,n,i,r,a){return a===void 0&&(a=0),this.drawPolygon(new EO(t,e,n,i,r,a))}Object.defineProperties(Vp.prototype,{drawTorus:{value:wO},drawChamferRect:{value:kO},drawFilletRect:{value:bO},drawRegularPolygon:{value:xO},drawRoundedPolygon:{value:SO},drawStar:{value:CO}});/*!
|
||
|
|
* @pixi/math-extras - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/math-extras is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var W3={add:function(t,e){return e||(e=new ge),e.x=this.x+t.x,e.y=this.y+t.y,e},subtract:function(t,e){return e||(e=new ge),e.x=this.x-t.x,e.y=this.y-t.y,e},multiply:function(t,e){return e||(e=new ge),e.x=this.x*t.x,e.y=this.y*t.y,e},multiplyScalar:function(t,e){return e||(e=new ge),e.x=this.x*t,e.y=this.y*t,e},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},normalize:function(t){t||(t=new ge);var e=Math.sqrt(this.x*this.x+this.y*this.y);return t.x=this.x/e,t.y=this.y/e,t},magnitude:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},magnitudeSquared:function(){return this.x*this.x+this.y*this.y},project:function(t,e){e||(e=new ge);var n=(this.x*t.x+this.y*t.y)/(t.x*t.x+t.y*t.y);return e.x=t.x*n,e.y=t.y*n,e},reflect:function(t,e){e||(e=new ge);var n=this.x*t.x+this.y*t.y;return e.x=this.x-2*n*t.x,e.y=this.y-2*n*t.y,e}};Object.assign(ge.prototype,W3);Object.assign(ga.prototype,W3);te.prototype.containsRect=function(e){return e.width<=0||e.height<=0?e.x>this.x&&e.y>this.y&&e.right<this.right&&e.bottom<this.bottom:e.x>=this.x&&e.y>=this.y&&e.right<=this.right&&e.bottom<=this.bottom};te.prototype.equals=function(e){return e===this?!0:e&&this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height};te.prototype.intersection=function(e,n){n||(n=new te);var i=this.x<e.x?e.x:this.x,r=this.right>e.right?e.right:this.right;if(r<=i)return n.x=n.y=n.width=n.height=0,n;var a=this.y<e.y?e.y:this.y,o=this.bottom>e.bottom?e.bottom:this.bottom;return o<=a?(n.x=n.y=n.width=n.height=0,n):(n.x=i,n.y=a,n.width=r-i,n.height=o-a,n)};te.prototype.union=function(e,n){n||(n=new te);var i=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),a=Math.min(this.y,e.y),o=Math.max(this.y+this.height,e.y+e.height);return n.x=i,n.y=a,n.width=r-i,n.height=o-a,n};/*!
|
||
|
|
* @pixi/mixin-cache-as-bitmap - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/var q3=new _t;qe.prototype._cacheAsBitmap=!1;qe.prototype._cacheData=null;qe.prototype._cacheAsBitmapResolution=null;qe.prototype._cacheAsBitmapMultisample=Te.NONE;var AO=function(){function t(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return t}();Object.defineProperties(qe.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var e;t?(this._cacheData||(this._cacheData=new AO),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}});qe.prototype._renderCached=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(e))};qe.prototype._initCachedDisplayObject=function(e){var n;if(!(this._cacheData&&this._cacheData.sprite)){var i=this.alpha;this.alpha=1,e.batch.flush();var r=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var a=this.filters[0].padding;r.pad(a)}r.ceil(H.RESOLUTION);var o=e.renderTexture.current,s=e.renderTexture.sourceFrame.clone(),f=e.renderTexture.destinationFrame.clone(),l=e.projection.transform,c=Br.create({width:r.width,height:r.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:(n=this.cacheAsBitmapMultisample)!==null&&n!==void 0?n:e.multisample}),u="cacheAsBitmap_"+Ir();this._cacheData.textureCacheId=u,ke.addToCache(c.baseTexture,u),We.addToCache(c,u);var d=this.transform.localTransform.copyTo(q3).invert().translate(-r.x,-r.y);this.render=this._cacheData.originalRender,e.render(this,{renderTexture:c,clear:!0,transform:d,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=l,e.renderTexture.bind(o,s,f),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var h=new ud(c);h.transform.worldTransform=this.transform.worldTransform,h.anchor.x=-(r.x/r.width),h.anchor.y=-(r.y/r.height),h.alpha=i,h._bounds=this._bounds,this._cacheData.sprite=h,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=h.containsPoint.bind(h)}};qe.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),
|
||
|
|
* @pixi/mixin-get-child-by-name - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/qe.prototype.name=null;Di.prototype.getChildByName=function(e,n){for(var i=0,r=this.children.length;i<r;i++)if(this.children[i].name===e)return this.children[i];if(n)for(var i=0,r=this.children.length;i<r;i++){var a=this.children[i];if(a.getChildByName){var o=a.getChildByName(e,!0);if(o)return o}}return null};/*!
|
||
|
|
* @pixi/mixin-get-global-position - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/qe.prototype.getGlobalPosition=function(e,n){return e===void 0&&(e=new ge),n===void 0&&(n=!1),this.parent?this.parent.toGlobal(this.position,e,n):(e.x=this.position.x,e.y=this.position.y),e};function PO(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})}function MO(t){var e=this;return new e(function(n,i){if(!(t&&typeof t.length<"u"))return i(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(r.length===0)return n([]);var a=r.length;function o(f,l){if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function"){c.call(l,function(u){o(f,u)},function(u){r[f]={status:"rejected",reason:u},--a===0&&n(r)});return}}r[f]={status:"fulfilled",value:l},--a===0&&n(r)}for(var s=0;s<r.length;s++)o(s,r[s])})}function X3(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}X3.prototype=Error.prototype;function RO(t){var e=this;return new e(function(n,i){if(!(t&&typeof t.length<"u"))return i(new TypeError("Promise.any accepts an array"));var r=Array.prototype.slice.call(t);if(r.length===0)return i();for(var a=[],o=0;o<r.length;o++)try{e.resolve(r[o]).then(n).catch(function(s){a.push(s),a.length===r.length&&i(new X3(a,"All promises were rejected"))})}catch(s){i(s)}})}var OO=setTimeout;function Y3(t){return!!(t&&typeof t.length<"u")}function FO(){}function IO(t,e){return function(){t.apply(e,arguments)}}function Fe(t){if(!(this instanceof Fe))throw new TypeError("Promises must be constructed via new");if(typeof t!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Z3(t,this)}function K3(t,e){for(;t._state===3;)t=t._value;if(t._state===0){t._deferreds.push(e);return}t._handled=!0,Fe._immediateFn(function(){var n=t._state===1?e.onFulfilled:e.onRejected;if(n===null){(t._state===1?$p:Is)(e.promise,t._value);return}var i;try{i=n(t._value)}catch(r){Is(e.promise,r);return}$p(e.promise,i)})}function $p(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&(typeof e=="object"||typeof e=="function")){var n=e.then;if(e instanceof Fe){t._state=3,t._value=e,Gp(t);return}else if(typeof n=="function"){Z3(IO(n,e),t);return}}t._state=1,t._value=e,Gp(t)}catch(i){Is(t,i)}}function Is(t,e){t._state=2,t._value=e,Gp(t)}function Gp(t){t._state===2&&t._deferreds.length===0&&Fe._immediateFn(function(){t._handled||Fe._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)K3(t,t._deferreds[e]);t._deferreds=null}function BO(t,e,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.promise=n}function Z3(t,e){var n=!1;try{t(function(i){n||(n=!0,$p(e,i))},function(i){n||(n=!0,Is(e,i))})}catch(i){if(n)return;n=!0,Is(e,i)}}Fe.prototype.catch=function(t){return this.then(null,t)};Fe.prototype.then=function(t,e){var n=new this.constructor(FO);return K3(this,new BO(t,e,n)),n};Fe.prototype.finally=PO;Fe.all=function(t){return new Fe(function(e,n){if(!Y3(t))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(i.length===0)return e([]);var r=i.length;function a(s,f){try{if(f&&(typeof f=="object"||typeof f=="function")){var l=f.then;if(typeof l=="function"){l.call(f,function(c){a(s,c)},n);return}}i[s]=f,--r===0&&e(i)}catch(c){n(c)}}for(var o=0;o<i.length;o++)a(o,i[o])})};Fe.any=RO;Fe.allSettled=MO;Fe.resolve=function(t){return t&&typeof t=="object"&&t.constructor===Fe?t:new Fe(function(e){e(t)})};Fe.reject=function(t){return new Fe(function(e,n){n(t)})};Fe.race=function(t){return new Fe(function(e,n){if(!Y3(t))return n(new TypeError("Promise.race accepts an array"));for(var i=0,r=t.length;i<r;i++)Fe.resolve(t[i]).then(e,n)})};Fe._immediateFn=typeof setImmediate=="function"&&function(t){setImmediate(t)}||function(t){OO(t,0)};Fe._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise
|
||
|
|
object-assign
|
||
|
|
(c) Sindre Sorhus
|
||
|
|
@license MIT
|
||
|
|
*/var Yy=Object.getOwnPropertySymbols,DO=Object.prototype.hasOwnProperty,LO=Object.prototype.propertyIsEnumerable;function NO(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function jO(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(i.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(a){r[a]=a}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var UO=jO()?Object.assign:function(t,e){for(var n,i=NO(t),r,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var o in n)DO.call(n,o)&&(i[o]=n[o]);if(Yy){r=Yy(n);for(var s=0;s<r.length;s++)LO.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i};const zO=pn(UO);/*!
|
||
|
|
* @pixi/polyfill - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/polyfill is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*/typeof globalThis>"u"&&(typeof self<"u"?self.globalThis=self:typeof global<"u"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=Fe);Object.assign||(Object.assign=zO);var VO=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var HO=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-HO}}var $c=Date.now(),Ky=["ms","moz","webkit","o"];for(var Gc=0;Gc<Ky.length&&!globalThis.requestAnimationFrame;++Gc){var Wc=Ky[Gc];globalThis.requestAnimationFrame=globalThis[Wc+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[Wc+"CancelAnimationFrame"]||globalThis[Wc+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if(typeof t!="function")throw new TypeError(t+"is not a function");var e=Date.now(),n=VO+$c-e;return n<0&&(n=0),$c=e,globalThis.self.setTimeout(function(){$c=Date.now(),t(performance.now())},n)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)});Math.sign||(Math.sign=function(e){return e=Number(e),e===0||isNaN(e)?e:e>0?1:-1});Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*!
|
||
|
|
* @pixi/sprite-tiling - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Wp=function(t,e){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},Wp(t,e)};function Q3(t,e){Wp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var bo=new ge,RV=function(t){Q3(e,t);function e(n,i,r){i===void 0&&(i=100),r===void 0&&(r=100);var a=t.call(this,n)||this;return a.tileTransform=new l3,a._width=i,a._height=r,a.uvMatrix=a.texture.uvMatrix||new w3(n),a.pluginName="tilingSprite",a.uvRespectAnchor=!1,a}return Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(n){this.uvMatrix.clampMargin=n,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(n){this.tileTransform.scale.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(n){this.tileTransform.position.copyFrom(n)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(n){var i=this._texture;!i||!i.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var n=this._width*-this._anchor._x,i=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),a=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,n,i,r,a)},e.prototype.getLocalBounds=function(n){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new te),n=this._localBoundsRect),this._bounds.getRectangle(n)):t.prototype.getLocalBounds.call(this,n)},e.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,bo);var i=this._width,r=this._height,a=-i*this.anchor._x;if(bo.x>=a&&bo.x<a+i){var o=-r*this.anchor._y;if(bo.y>=o&&bo.y<o+r)return!0}return!1},e.prototype.destroy=function(n){t.prototype.destroy.call(this,n),this.tileTransform=null,this.uvMatrix=null},e.from=function(n,i){var r=n instanceof We?n:We.from(n,i);return new e(r,i.width,i.height)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(n){this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(n){this._height=n},enumerable:!1,configurable:!0}),e}(ud),$O=`#version 100
|
||
|
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec4 texSample = texture2D(uSampler, vTextureCoord);
|
||
|
|
gl_FragColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,Zy=`#version 100
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTransform;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`,GO=`#version 100
|
||
|
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
|
#extension GL_EXT_shader_texture_lod : enable
|
||
|
|
#endif
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
uniform mat3 uMapCoord;
|
||
|
|
uniform vec4 uClampFrame;
|
||
|
|
uniform vec2 uClampOffset;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
|
vec2 unclamped = coord;
|
||
|
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
|
||
|
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
|
vec4 texSample = unclamped == coord
|
||
|
|
? texture2D(uSampler, coord)
|
||
|
|
: texture2DLodEXT(uSampler, coord, 0);
|
||
|
|
#else
|
||
|
|
vec4 texSample = texture2D(uSampler, coord);
|
||
|
|
#endif
|
||
|
|
|
||
|
|
gl_FragColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,WO=`#version 300 es
|
||
|
|
#define SHADER_NAME Tiling-Sprite-300
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
in vec2 aVertexPosition;
|
||
|
|
in vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTransform;
|
||
|
|
|
||
|
|
out vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`,qO=`#version 300 es
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
in vec2 vTextureCoord;
|
||
|
|
|
||
|
|
out vec4 fragmentColor;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
uniform mat3 uMapCoord;
|
||
|
|
uniform vec4 uClampFrame;
|
||
|
|
uniform vec2 uClampOffset;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
|
vec2 unclamped = coord;
|
||
|
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
|
||
|
|
vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
|
||
|
|
|
||
|
|
fragmentColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,Yf=new _t,OV=function(t){Q3(e,t);function e(n){var i=t.call(this,n)||this;return n.runners.contextChange.add(i),i.quad=new v3,i.state=tf.for2d(),i}return e.prototype.contextChange=function(){var n=this.renderer,i={globals:n.globalUniforms};this.simpleShader=Ia.from(Zy,$O,i),this.shader=n.context.webGLVersion>1?Ia.from(WO,qO,i):Ia.from(Zy,GO,i)},e.prototype.render=function(n){var i=this.renderer,r=this.quad,a=r.vertices;a[0]=a[6]=n._width*-n.anchor.x,a[1]=a[3]=n._height*-n.anchor.y,a[2]=a[4]=n._width*(1-n.anchor.x),a[5]=a[7]=n._height*(1-n.anchor.y);var o=n.uvRespectAnchor?n.anchor.x:0,s=n.uvRespectAnchor?n.anchor.y:0;a=r.uvs,a[0]=a[6]=-o,a[1]=a[3]=-s,a[2]=a[4]=1-o,a[5]=a[7]=1-s,r.invalidate();var f=n._texture,l=f.baseTexture,c=l.alphaMode>0,u=n.tileTransform.localTransform,d=n.uvMatrix,h=l.isPowerOfTwo&&f.frame.width===l.width&&f.frame.height===l.height;h&&(l._glTextures[i.CONTEXT_UID]?h=l.wrapMode!==qn.CLAMP:l.wrapMode===qn.CLAMP&&(l.wrapMode=qn.REPEAT));var p=h?this.simpleShader:this.shader,m=f.width,v=f.height,g=n._width,y=n._height;Yf.set(u.a*m/g,u.b*m/y,u.c*v/g,u.d*v/y,u.tx/g,u.ty/y),Yf.invert(),h?Yf.prepend(d.mapCoord):(p.uniforms.uMapCoord=d.mapCoord.toArray(!0),p.uniforms.uClampFrame=d.uClampFrame,p.uniforms.uClampOffset=d.uClampOffset),p.uniforms.uTransform=Yf.toArray(!0),p.uniforms.uColor=jA(n.tint,n.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=n.transform.worldTransform.toArray(!0),p.uniforms.uSampler=f,i.shader.bind(p),i.geometry.bind(r),this.state.blendMode=NA(n.blendMode,c),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e.extension={name:"tilingSprite",type:tt.RendererPlugin},e}(V1),Sr={},J3={},Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.loop=Xn.conditional=Xn.parse=void 0;var XO=function t(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i;if(Array.isArray(n))n.forEach(function(o){return t(e,o,i,r)});else if(typeof n=="function")n(e,i,r,t);else{var a=Object.keys(n)[0];Array.isArray(n[a])?(r[a]={},t(e,n[a],i,r[a])):r[a]=n[a](e,i,r,t)}return i};Xn.parse=XO;var YO=function(e,n){return function(i,r,a,o){n(i,r,a)&&o(i,e,r,a)}};Xn.conditional=YO;var KO=function(e,n){return function(i,r,a,o){for(var s=[],f=i.pos;n(i,r,a);){var l={};if(o(i,e,r,l),i.pos===f)break;f=i.pos,s.push(l)}return s}};Xn.loop=KO;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.readBits=ze.readArray=ze.readUnsigned=ze.readString=ze.peekBytes=ze.readBytes=ze.peekByte=ze.readByte=ze.buildStream=void 0;var ZO=function(e){return{data:e,pos:0}};ze.buildStream=ZO;var e4=function(){return function(e){return e.data[e.pos++]}};ze.readByte=e4;var QO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(n){return n.data[n.pos+e]}};ze.peekByte=QO;var dd=function(e){return function(n){return n.data.subarray(n.pos,n.pos+=e)}};ze.readBytes=dd;var JO=function(e){return function(n){return n.data.subarray(n.pos,n.pos+e)}};ze.peekBytes=JO;var eF=function(e){return function(n){return Array.from(dd(e)(n)).map(function(i){return String.fromCharCode(i)}).join("")}};ze.readString=eF;var tF=function(e){return function(n){var i=dd(2)(n);return e?(i[1]<<8)+i[0]:(i[0]<<8)+i[1]}};ze.readUnsigned=tF;var nF=function(e,n){return function(i,r,a){for(var o=typeof n=="function"?n(i,r,a):n,s=dd(e),f=new Array(o),l=0;l<o;l++)f[l]=s(i);return f}};ze.readArray=nF;var iF=function(e,n,i){for(var r=0,a=0;a<i;a++)r+=e[n+a]&&Math.pow(2,i-a-1);return r},rF=function(e){return function(n){for(var i=e4()(n),r=new Array(8),a=0;a<8;a++)r[7-a]=!!(i&1<<a);return Object.keys(e).reduce(function(o,s){var f=e[s];return f.length?o[s]=iF(r,f.index,f.length):o[s]=r[f.index],o},{})}};ze.readBits=rF;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=Xn,n=ze,i={blocks:function(d){for(var h=0,p=[],m=d.data.length,v=0,g=(0,n.readByte)()(d);g!==h&&g;g=(0,n.readByte)()(d)){if(d.pos+g>=m){var y=m-d.pos;p.push((0,n.readBytes)(y)(d)),v+=y;break}p.push((0,n.readBytes)(g)(d)),v+=g}for(var _=new
|
||
|
|
* @pixi/text - v6.5.10
|
||
|
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
||
|
|
*
|
||
|
|
* @pixi/text is licensed under the MIT License.
|
||
|
|
* http://www.opensource.org/licenses/mit-license
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var qp=function(t,e){return qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},qp(t,e)};function yF(t,e){qp(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var _u;(function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(_u||(_u={}));var qc={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:_u.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},_F=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Qy=function(){function t(e){this.styleID=0,this.reset(),Yc(this,e,e)}return t.prototype.clone=function(){var e={};return Yc(e,this,qc),new t(e)},t.prototype.reset=function(){Yc(this,qc,qc)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(e){var n=Xc(e);this._dropShadowColor!==n&&(this._dropShadowColor=n,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){var n=Xc(e);this._fill!==n&&(this._fill=n,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(e){wF(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=
|
||
|
|
`:e,e},t.getFromCache=function(e,n,i,r){var a=i[e];if(typeof a!="number"){var o=e.length*n;a=r.measureText(e).width+o,i[e]=a}return a},t.collapseSpaces=function(e){return e==="normal"||e==="pre-line"},t.collapseNewlines=function(e){return e==="normal"},t.trimRight=function(e){if(typeof e!="string")return"";for(var n=e.length-1;n>=0;n--){var i=e[n];if(!t.isBreakingSpace(i))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return typeof e!="string"?!1:t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,n){return typeof e!="string"?!1:t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var n=[],i="";if(typeof e!="string")return n;for(var r=0;r<e.length;r++){var a=e[r],o=e[r+1];if(t.isBreakingSpace(a,o)||t.isNewline(a)){i!==""&&(n.push(i),i=""),n.push(a);continue}i+=a}return i!==""&&n.push(i),n},t.canBreakWords=function(e,n){return n},t.canBreakChars=function(e,n,i,r,a){return!0},t.wordWrapSplit=function(e){return e.split("")},t.measureFont=function(e){if(t._fonts[e])return t._fonts[e];var n={ascent:0,descent:0,fontSize:0},i=t._canvas,r=t._context;r.font=e;var a=t.METRICS_STRING+t.BASELINE_SYMBOL,o=Math.ceil(r.measureText(a).width),s=Math.ceil(r.measureText(t.BASELINE_SYMBOL).width),f=Math.ceil(t.HEIGHT_MULTIPLIER*s);s=s*t.BASELINE_MULTIPLIER|0,i.width=o,i.height=f,r.fillStyle="#f00",r.fillRect(0,0,o,f),r.font=e,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(a,0,s);var l=r.getImageData(0,0,o,f).data,c=l.length,u=o*4,d=0,h=0,p=!1;for(d=0;d<s;++d){for(var m=0;m<u;m+=4)if(l[h+m]!==255){p=!0;break}if(!p)h+=u;else break}for(n.ascent=s-d,h=c-u,p=!1,d=f;d>s;--d){for(var m=0;m<u;m+=4)if(l[h+m]!==255){p=!0;break}if(!p)h-=u;else break}return n.descent=d-s,n.fontSize=n.ascent+n.descent,t._fonts[e]=n,n},t.clearMetrics=function(e){e===void 0&&(e=""),e?delete t._fonts[e]:t._fonts={}},Object.defineProperty(t,"_canvas",{get:function(){if(!t.__canvas){var e=void 0;try{var n=new OffscreenCanvas(0,0),i=n.getContext("2d",Kf);if(i&&i.measureText)return t.__canvas=n,n;e=H.ADAPTER.createCanvas()}catch{e=H.ADAPTER.createCanvas()}e.width=e.height=10,t.__canvas=e}return t.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t,"_context",{get:function(){return t.__context||(t.__context=t._canvas.getContext("2d",Kf)),t.__context},enumerable:!1,configurable:!0}),t}();Gi._fonts={};Gi.METRICS_STRING="|ÉqÅ";Gi.BASELINE_SYMBOL="M";Gi.BASELINE_MULTIPLIER=1.4;Gi.HEIGHT_MULTIPLIER=2;Gi._newlines=[10,13];Gi._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var kF={texture:!0,children:!1,baseTexture:!0},FV=function(t){yF(e,t);function e(n,i,r){var a=this,o=!1;r||(r=H.ADAPTER.createCanvas(),o=!0),r.width=3,r.height=3;var s=We.from(r);return s.orig=new te,s.trim=new te,a=t.call(this,s)||this,a._ownCanvas=o,a.canvas=r,a.context=r.getContext("2d",{willReadFrequently:!0}),a._resolution=H.RESOLUTION,a._autoResolution=!0,a._text=null,a._style=null,a._styleListener=null,a._font="",a.text=n,a.style=i,a.localStyleID=-1,a}return e.prototype.updateText=function(n){var i=this._style;if(this.localStyleID!==i.styleID&&(this.dirty=!0,this.localStyleID=i.styleID),!(!this.dirty&&n)){this._font=this._style.toFontString();var r=this.context,a=Gi.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),o=a.width,s=a.height,f=a.lines,l=a.lineHeight,c=a.lineWidths,u=a.maxLineWidth,d=a.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,o)+i.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,s)+i.padding*2)*this._resolution),r.scale(this._resolution,this._resolution),r.clearRect(0,0,this.canvas.width,this.canvas.height),r.font=this._font,r.lineWidth=i.strokeThickness,r.textBaseline=i.textBaseline,r.lineJoin=i.lineJoin,r.miterLimit=i.miterLimit;for(var h,p,m=i.dropShadow?2:1,v=0;v<m;++v){var g=i.dropShadow&&v===0,y=g?Math.ceil(Math.max(1,s)+i.padding*2):0,_=y*this._resolution;if(g){r.fillStyle="black",r.strokeStyle="black";var w=i.dropShadowColor,k=hu(typeof w=="number"?w:DA(w)),b=i.dropShadowBlur*this._resolution,x=i.dropShadowDis
|
||
|
|
* howler.js v2.2.4
|
||
|
|
* howlerjs.com
|
||
|
|
*
|
||
|
|
* (c) 2013-2020, James Simpson of GoldFire Studios
|
||
|
|
* goldfirestudios.com
|
||
|
|
*
|
||
|
|
* MIT License
|
||
|
|
*/(function(t){(function(){var e=function(){this.init()};e.prototype={init:function(){var u=this||n;return u._counter=1e3,u._html5AudioPool=[],u.html5PoolSize=10,u._codecs={},u._howls=[],u._muted=!1,u._volume=1,u._canPlayEvent="canplaythrough",u._navigator=typeof window<"u"&&window.navigator?window.navigator:null,u.masterGain=null,u.noAudio=!1,u.usingWebAudio=!0,u.autoSuspend=!0,u.ctx=null,u.autoUnlock=!0,u._setup(),u},volume:function(u){var d=this||n;if(u=parseFloat(u),d.ctx||c(),typeof u<"u"&&u>=0&&u<=1){if(d._volume=u,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(u,n.ctx.currentTime);for(var h=0;h<d._howls.length;h++)if(!d._howls[h]._webAudio)for(var p=d._howls[h]._getSoundIds(),m=0;m<p.length;m++){var v=d._howls[h]._soundById(p[m]);v&&v._node&&(v._node.volume=v._volume*u)}return d}return d._volume},mute:function(u){var d=this||n;d.ctx||c(),d._muted=u,d.usingWebAudio&&d.masterGain.gain.setValueAtTime(u?0:d._volume,n.ctx.currentTime);for(var h=0;h<d._howls.length;h++)if(!d._howls[h]._webAudio)for(var p=d._howls[h]._getSoundIds(),m=0;m<p.length;m++){var v=d._howls[h]._soundById(p[m]);v&&v._node&&(v._node.muted=u?!0:v._muted)}return d},stop:function(){for(var u=this||n,d=0;d<u._howls.length;d++)u._howls[d].stop();return u},unload:function(){for(var u=this||n,d=u._howls.length-1;d>=0;d--)u._howls[d].unload();return u.usingWebAudio&&u.ctx&&typeof u.ctx.close<"u"&&(u.ctx.close(),u.ctx=null,c()),u},codecs:function(u){return(this||n)._codecs[u.replace(/^x-/,"")]},_setup:function(){var u=this||n;if(u.state=u.ctx&&u.ctx.state||"suspended",u._autoSuspend(),!u.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;typeof d.oncanplaythrough>"u"&&(u._canPlayEvent="canplay")}catch{u.noAudio=!0}else u.noAudio=!0;try{var d=new Audio;d.muted&&(u.noAudio=!0)}catch{}return u.noAudio||u._setupCodecs(),u},_setupCodecs:function(){var u=this||n,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return u}if(!d||typeof d.canPlayType!="function")return u;var h=d.canPlayType("audio/mpeg;").replace(/^no$/,""),p=u._navigator?u._navigator.userAgent:"",m=p.match(/OPR\/(\d+)/g),v=m&&parseInt(m[0].split("/")[1],10)<33,g=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,y=p.match(/Version\/(.*?) /),_=g&&y&&parseInt(y[1],10)<15;return u._codecs={mp3:!!(!v&&(h||d.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!h,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!_&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!_&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},u},_unlockAudio:function(){var u=this||n;if(!(u._audioUnlocked||!u.ctx)){u._audioUnlocked=!1,u.autoUnlock=!1,!u._mobileUnloaded&&u.ctx.sampleRate!==44100&&(u._mobileUnloaded=!0,u.unload()),u._scratchBuffer=u.ctx.createBuffer(1,1,22050);var d=function(h){for(;u._html5AudioPool.length<u.html5PoolSize;)try{var p=new Audio;p._unlocked=!0,u._releaseHtml5Audio(p)}catch{u.noAudio=!0;break}for(var m=0;m<u._howls.length;m++)if(!u._howls[m]._webAudio)for(var v=u._howls[m]._getSoundIds(),g=0;g<v.length;g++){var y=u._howls[m]._soundById(v[g]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}u._autoResume();var _=u.ctx.createBufferSource();_.buffer=u._scratchBuffe
|
||
|
|
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
|
||
|
|
*
|
||
|
|
* howler.js v2.2.4
|
||
|
|
* howlerjs.com
|
||
|
|
*
|
||
|
|
* (c) 2013-2020, James Simpson of GoldFire Studios
|
||
|
|
* goldfirestudios.com
|
||
|
|
*
|
||
|
|
* MIT License
|
||
|
|
*/(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var i=this;if(!i.ctx||!i.ctx.listener)return i;for(var r=i._howls.length-1;r>=0;r--)i._howls[r].stereo(n);return i},HowlerGlobal.prototype.pos=function(n,i,r){var a=this;if(!a.ctx||!a.ctx.listener)return a;if(i=typeof i!="number"?a._pos[1]:i,r=typeof r!="number"?a._pos[2]:r,typeof n=="number")a._pos=[n,i,r],typeof a.ctx.listener.positionX<"u"?(a.ctx.listener.positionX.setTargetAtTime(a._pos[0],Howler.ctx.currentTime,.1),a.ctx.listener.positionY.setTargetAtTime(a._pos[1],Howler.ctx.currentTime,.1),a.ctx.listener.positionZ.setTargetAtTime(a._pos[2],Howler.ctx.currentTime,.1)):a.ctx.listener.setPosition(a._pos[0],a._pos[1],a._pos[2]);else return a._pos;return a},HowlerGlobal.prototype.orientation=function(n,i,r,a,o,s){var f=this;if(!f.ctx||!f.ctx.listener)return f;var l=f._orientation;if(i=typeof i!="number"?l[1]:i,r=typeof r!="number"?l[2]:r,a=typeof a!="number"?l[3]:a,o=typeof o!="number"?l[4]:o,s=typeof s!="number"?l[5]:s,typeof n=="number")f._orientation=[n,i,r,a,o,s],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(s,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,i,r,a,o,s);else return l;return f},Howl.prototype.init=function(n){return function(i){var r=this;return r._orientation=i.orientation||[1,0,0],r._stereo=i.stereo||null,r._pos=i.pos||null,r._pannerAttr={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:360,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:360,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:0,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:"inverse",maxDistance:typeof i.maxDistance<"u"?i.maxDistance:1e4,panningModel:typeof i.panningModel<"u"?i.panningModel:"HRTF",refDistance:typeof i.refDistance<"u"?i.refDistance:1,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:1},r._onstereo=i.onstereo?[{fn:i.onstereo}]:[],r._onpos=i.onpos?[{fn:i.onpos}]:[],r._onorientation=i.onorientation?[{fn:i.onorientation}]:[],n.call(this,i)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,i){var r=this;if(!r._webAudio)return r;if(r._state!=="loaded")return r._queue.push({event:"stereo",action:function(){r.stereo(n,i)}}),r;var a=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof n=="number")r._stereo=n,r._pos=[n,0,0];else return r._stereo;for(var o=r._getSoundIds(i),s=0;s<o.length;s++){var f=r._soundById(o[s]);if(f)if(typeof n=="number")f._stereo=n,f._pos=[n,0,0],f._node&&(f._pannerAttr.panningModel="equalpower",(!f._panner||!f._panner.pan)&&e(f,a),a==="spatial"?typeof f._panner.positionX<"u"?(f._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),f._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),f._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):f._panner.setPosition(n,0,0):f._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),r._emit("stereo",f._id);else return f._stereo}return r},Howl.prototype.pos=function(n,i,r,a){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"pos",action:function(){o.pos(n,i,r,a)}}),o;if(i=typeof i!="number"?0:i,r=typeof r!="number"?-.5:r,typeof a>"u")if(typeof n=="number")o._pos=[n,i,r];else return o._pos;for(var s=o._getSoundIds(a),f=0;f<s.length;f++){var l=o._soundById(s[f]);if(l)if(typeof n=="number")l._pos=[n,i,r],l._node&&((!l._panner||l._panner.pan)&&e(l,"spatial"),typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(i,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):l._panner.setPosition(n,i,r)),o._emit("pos",l._id);else
|
||
|
|
[data-motion-pop-id="${n}"] {
|
||
|
|
position: absolute !important;
|
||
|
|
width: ${o}px !important;
|
||
|
|
height: ${s}px !important;
|
||
|
|
top: ${f}px !important;
|
||
|
|
left: ${l}px !important;
|
||
|
|
}
|
||
|
|
`),()=>{document.head.removeChild(c)}},[e]),ve.jsx(xF,{isPresent:e,childRef:i,sizeRef:r,children:C.cloneElement(t,{ref:i})})}const TF=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:o})=>{const s=X1(EF),f=C.useId(),l=C.useCallback(u=>{s.set(u,!0);for(const d of s.values())if(!d)return;i&&i()},[s,i]),c=C.useMemo(()=>({id:f,initial:e,isPresent:n,custom:r,onExitComplete:l,register:u=>(s.set(u,!1),()=>s.delete(u))}),a?[Math.random(),l]:[n,l]);return C.useMemo(()=>{s.forEach((u,d)=>s.set(d,!1))},[n]),C.useEffect(()=>{!n&&!s.size&&i&&i()},[n]),o==="popLayout"&&(t=ve.jsx(SF,{isPresent:n,children:t})),ve.jsx(pd.Provider,{value:c,children:t})};function EF(){return new Map}function n4(t=!0){const e=C.useContext(pd);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,a=C.useId();C.useEffect(()=>{t&&r(a)},[t]);const o=C.useCallback(()=>t&&i&&i(a),[a,i,t]);return!n&&i?[!1,o]:[!0]}const Zf=t=>t.key||"";function e_(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const K1=typeof window<"u",i4=K1?C.useLayoutEffect:C.useEffect,IV=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:o=!1})=>{const[s,f]=n4(o),l=C.useMemo(()=>e_(t),[t]),c=o&&!s?[]:l.map(Zf),u=C.useRef(!0),d=C.useRef(l),h=X1(()=>new Map),[p,m]=C.useState(l),[v,g]=C.useState(l);i4(()=>{u.current=!1,d.current=l;for(let w=0;w<v.length;w++){const k=Zf(v[w]);c.includes(k)?h.delete(k):h.get(k)!==!0&&h.set(k,!1)}},[v,c.length,c.join("-")]);const y=[];if(l!==p){let w=[...l];for(let k=0;k<v.length;k++){const b=v[k],x=Zf(b);c.includes(x)||(w.splice(k,0,b),y.push(b))}a==="wait"&&y.length&&(w=y),g(e_(w)),m(l);return}const{forceRender:_}=C.useContext(q1);return ve.jsx(ve.Fragment,{children:v.map(w=>{const k=Zf(w),b=o&&!s?!1:l===v||c.includes(k),x=()=>{if(h.has(k))h.set(k,!0);else return;let S=!0;h.forEach(T=>{T||(S=!1)}),S&&(_==null||_(),g(d.current),o&&(f==null||f()),i&&i())};return ve.jsx(TF,{isPresent:b,initial:!u.current||n?void 0:!1,custom:b?void 0:e,presenceAffectsLayout:r,mode:a,onExitComplete:b?void 0:x,children:w},k)})})},jt=t=>t;let r4=jt;function Z1(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ga=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Yn=t=>t*1e3,Kn=t=>t/1e3,CF={useManualTiming:!1};function AF(t){let e=new Set,n=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(l){a.has(l)&&(f.schedule(l),t()),l(o)}const f={schedule:(l,c=!1,u=!1)=>{const h=u&&i?e:n;return c&&a.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,i){r=!0;return}i=!0,[e,n]=[n,e],e.forEach(s),e.clear(),i=!1,r&&(r=!1,f.process(l))}};return f}const Qf=["read","resolveKeyframes","update","preRender","render","postRender"],PF=40;function a4(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Qf.reduce((g,y)=>(g[y]=AF(a),g),{}),{read:s,resolveKeyframes:f,update:l,preRender:c,render:u,postRender:d}=o,h=()=>{const g=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(g-r.timestamp,PF),1),r.timestamp=g,r.isProcessing=!0,s.process(r),f.process(r),l.process(r),c.process(r),u.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:Qf.reduce((g,y)=>{const _=o[y];return g[y]=(w,k=!1,b=!1)=>(n||p(),_.schedule(w,k,b)),g},{}),cancel:g=>{for(let y=0;y<Qf.length;y++)o[Qf[y]].cancel(g)},state:r,steps:o}}const{schedule:xe,cancel:Li,state:rt,steps:Kc}=a4(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0),o4=C.createContext({strict:!1}),t_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wa={};for(const t in t_)Wa[t]={isEnabled:e=>t_[t
|
||
|
|
font-size: .6rem;
|
||
|
|
font-weight: bold;
|
||
|
|
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,r),r}return a.updateDeps=o=>{i=o},a}function g2(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const nN=(t,e)=>Math.abs(t-e)<1.01,iN=(t,e,n)=>{let i;return function(...r){t.clearTimeout(i),i=t.setTimeout(()=>e.apply(this,r),n)}},y2=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},rN=t=>t,aN=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),i=[];for(let r=e;r<=n;r++)i.push(r);return i},oN=(t,e)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;const r=o=>{const{width:s,height:f}=o;e({width:Math.round(s),height:Math.round(f)})};if(r(y2(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(o=>{const s=()=>{const f=o[0];if(f!=null&&f.borderBoxSize){const l=f.borderBoxSize[0];if(l){r({width:l.inlineSize,height:l.blockSize});return}}r(y2(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},_2={passive:!0},w2=typeof window>"u"?!0:"onscrollend"in window,sN=(t,e)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;let r=0;const a=t.options.useScrollendEvent&&w2?()=>{}:iN(i,()=>{e(r,!1)},t.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:u,isRtl:d}=t.options;r=u?n.scrollLeft*(d&&-1||1):n.scrollTop,a(),e(r,c)},s=o(!0),f=o(!1);f(),n.addEventListener("scroll",s,_2);const l=t.options.useScrollendEvent&&w2;return l&&n.addEventListener("scrollend",f,_2),()=>{n.removeEventListener("scroll",s),l&&n.removeEventListener("scrollend",f)}},fN=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const i=e.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},lN=(t,{adjustments:e=0,behavior:n},i)=>{var r,a;const o=t+e;(a=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[i.options.horizontal?"left":"top"]:o,behavior:n})};class uN{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var a;return(a=i())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=i())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rN,rangeExtractor:aN,onChange:()=>{},measureElement:fN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Jr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?thi
|
||
|
|
Copyright (c) 2018 Jed Watson.
|
||
|
|
Licensed under the MIT License (MIT), see
|
||
|
|
http://jedwatson.github.io/classnames
|
||
|
|
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=r(a,i(s)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)e.call(a,s)&&a[s]&&(o=r(o,s));return o}function r(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(D6);var wN=D6.exports;const $r=pn(wN);function kN(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function bN(t,e,n){var i=C.useRef(t!==void 0),r=C.useState(e),a=r[0],o=r[1],s=t!==void 0,f=i.current;return i.current=s,!s&&f&&a!==e&&o(e),[s?t:a,C.useCallback(function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];n&&n.apply(void 0,[l].concat(u)),o(l)},[n])]}const xN=["xxl","xl","lg","md","sm","xs"],SN="xs",Cm=C.createContext({prefixes:{},breakpoints:xN,minBreakpoint:SN}),{Consumer:FH,Provider:IH}=Cm;function Lr(t,e){const{prefixes:n}=C.useContext(Cm);return t||n[e]||e}function L6(){const{dir:t}=C.useContext(Cm);return t==="rtl"}function wd(t){return t&&t.ownerDocument||document}function TN(t){var e=wd(t);return e&&e.defaultView||window}function EN(t,e){return TN(t).getComputedStyle(t,e)}var CN=/([A-Z])/g;function AN(t){return t.replace(CN,"-$1").toLowerCase()}var PN=/^ms-/;function rl(t){return AN(t).replace(PN,"-ms-")}var MN=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function RN(t){return!!(t&&MN.test(t))}function N6(t,e){var n="",i="";if(typeof e=="string")return t.style.getPropertyValue(rl(e))||EN(t).getPropertyValue(rl(e));Object.keys(e).forEach(function(r){var a=e[r];!a&&a!==0?t.style.removeProperty(rl(r)):RN(r)?i+=r+"("+a+") ":n+=rl(r)+": "+a+";"}),i&&(n+="transform: "+i+";"),t.style.cssText+=";"+n}var j6={exports:{}},ON="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FN=ON,IN=FN;function U6(){}function z6(){}z6.resetWarningCache=U6;var BN=function(){function t(i,r,a,o,s,f){if(f!==IN){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:z6,resetWarningCache:U6};return n.PropTypes=n,n};j6.exports=BN();var DN=j6.exports;const LN=pn(DN),x2={disabled:!1},V6=Ce.createContext(null);var NN=function(e){return e.scrollTop},Io="unmounted",ur="exited",hi="entering",cr="entered",pv="exiting",ai=function(t){B6(e,t);function e(i,r){var a;a=t.call(this,i,r)||this;var o=r,s=o&&!o.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?s?(f=ur,a.appearStatus=hi):f=cr:i.unmountOnExit||i.mountOnEnter?f=Io:f=ur,a.state={status:f},a.nextCallback=null,a}e.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===Io?{status:ur}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==hi&&o!==cr&&(a=hi):(o===hi||o===cr)&&(a=pv)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,s;return a=o=s=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,s=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===hi){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:pa.findDOMNode(this);o&&NN(o)}this.performEnter(r)}else this.performExit()
|
||
|
|
width: min-content;
|
||
|
|
height: 435px;
|
||
|
|
min-height: 230px;
|
||
|
|
border-radius: var(--border-radius);
|
||
|
|
box-shadow: var(--shadow);
|
||
|
|
--border-radius: 10px;
|
||
|
|
--category-icon-size: 18px;
|
||
|
|
--font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
|
||
|
|
--font-size: 15px;
|
||
|
|
--preview-placeholder-size: 21px;
|
||
|
|
--preview-title-size: 1.1em;
|
||
|
|
--preview-subtitle-size: .9em;
|
||
|
|
--shadow-color: 0deg 0% 0%;
|
||
|
|
--shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="light"] {
|
||
|
|
--em-rgb-color: var(--rgb-color, 34, 36, 39);
|
||
|
|
--em-rgb-accent: var(--rgb-accent, 34, 102, 237);
|
||
|
|
--em-rgb-background: var(--rgb-background, 255, 255, 255);
|
||
|
|
--em-rgb-input: var(--rgb-input, 255, 255, 255);
|
||
|
|
--em-color-border: var(--color-border, rgba(0, 0, 0, .05));
|
||
|
|
--em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="dark"] {
|
||
|
|
--em-rgb-color: var(--rgb-color, 222, 222, 221);
|
||
|
|
--em-rgb-accent: var(--rgb-accent, 58, 130, 247);
|
||
|
|
--em-rgb-background: var(--rgb-background, 21, 22, 23);
|
||
|
|
--em-rgb-input: var(--rgb-input, 0, 0, 0);
|
||
|
|
--em-color-border: var(--color-border, rgba(255, 255, 255, .1));
|
||
|
|
--em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));
|
||
|
|
}
|
||
|
|
|
||
|
|
#root {
|
||
|
|
--color-a: rgb(var(--em-rgb-color));
|
||
|
|
--color-b: rgba(var(--em-rgb-color), .65);
|
||
|
|
--color-c: rgba(var(--em-rgb-color), .45);
|
||
|
|
--padding: 12px;
|
||
|
|
--padding-small: calc(var(--padding) / 2);
|
||
|
|
--sidebar-width: 16px;
|
||
|
|
--duration: 225ms;
|
||
|
|
--duration-fast: 125ms;
|
||
|
|
--duration-instant: 50ms;
|
||
|
|
--easing: cubic-bezier(.4, 0, .2, 1);
|
||
|
|
width: 100%;
|
||
|
|
text-align: left;
|
||
|
|
border-radius: var(--border-radius);
|
||
|
|
background-color: rgb(var(--em-rgb-background));
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (prefers-reduced-motion) {
|
||
|
|
#root {
|
||
|
|
--duration: 0;
|
||
|
|
--duration-fast: 0;
|
||
|
|
--duration-instant: 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#root[data-menu] button {
|
||
|
|
cursor: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
#root[data-menu] .menu button {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
:host, #root, input, button {
|
||
|
|
color: rgb(var(--em-rgb-color));
|
||
|
|
font-family: var(--font-family);
|
||
|
|
font-size: var(--font-size);
|
||
|
|
-webkit-font-smoothing: antialiased;
|
||
|
|
-moz-osx-font-smoothing: grayscale;
|
||
|
|
line-height: normal;
|
||
|
|
}
|
||
|
|
|
||
|
|
*, :before, :after {
|
||
|
|
box-sizing: border-box;
|
||
|
|
min-width: 0;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.relative {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-auto {
|
||
|
|
flex: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-center {
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-column {
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-grow {
|
||
|
|
flex: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-middle {
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flex-wrap {
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding {
|
||
|
|
padding: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-t {
|
||
|
|
padding-top: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-lr {
|
||
|
|
padding-left: var(--padding);
|
||
|
|
padding-right: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-r {
|
||
|
|
padding-right: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-small {
|
||
|
|
padding: var(--padding-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-small-b {
|
||
|
|
padding-bottom: var(--padding-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.padding-small-lr {
|
||
|
|
padding-left: var(--padding-small);
|
||
|
|
padding-right: var(--padding-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.margin {
|
||
|
|
margin: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.margin-r {
|
||
|
|
margin-right: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.margin-l {
|
||
|
|
margin-left: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.margin-small-l {
|
||
|
|
margin-left: var(--padding-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.margin-small-lr {
|
||
|
|
margin-left: var(--padding-small);
|
||
|
|
margin-right: var(--padding-small);
|
||
|
|
}
|
||
|
|
|
||
|
|
.align-l {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
|
||
|
|
.align-r {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.color-a {
|
||
|
|
color: var(--color-a);
|
||
|
|
}
|
||
|
|
|
||
|
|
.color-b {
|
||
|
|
color: var(--color-b);
|
||
|
|
}
|
||
|
|
|
||
|
|
.color-c {
|
||
|
|
color: var(--color-c);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ellipsis {
|
||
|
|
white-space: nowrap;
|
||
|
|
max-width: 100%;
|
||
|
|
width: auto;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sr-only {
|
||
|
|
width: 1px;
|
||
|
|
height: 1px;
|
||
|
|
position: absolute;
|
||
|
|
top: auto;
|
||
|
|
left: -10000px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
a {
|
||
|
|
cursor: pointer;
|
||
|
|
color: rgb(var(--em-rgb-accent));
|
||
|
|
}
|
||
|
|
|
||
|
|
a:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
|
||
|
|
.spacer {
|
||
|
|
height: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
[dir="rtl"] .scroll {
|
||
|
|
padding-left: 0;
|
||
|
|
padding-right: var(--padding);
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll {
|
||
|
|
padding-right: 0;
|
||
|
|
overflow-x: hidden;
|
||
|
|
overflow-y: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar {
|
||
|
|
width: var(--sidebar-width);
|
||
|
|
height: var(--sidebar-width);
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar-track {
|
||
|
|
border: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar-button {
|
||
|
|
width: 0;
|
||
|
|
height: 0;
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar-corner {
|
||
|
|
background-color: rgba(0, 0, 0, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar-thumb {
|
||
|
|
min-height: 20%;
|
||
|
|
min-height: 65px;
|
||
|
|
border: 4px solid rgb(var(--em-rgb-background));
|
||
|
|
border-radius: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll::-webkit-scrollbar-thumb:hover {
|
||
|
|
background-color: var(--em-color-border-over) !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.scroll:hover::-webkit-scrollbar-thumb {
|
||
|
|
background-color: var(--em-color-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sticky {
|
||
|
|
z-index: 1;
|
||
|
|
background-color: rgba(var(--em-rgb-background), .9);
|
||
|
|
-webkit-backdrop-filter: blur(4px);
|
||
|
|
backdrop-filter: blur(4px);
|
||
|
|
font-weight: 500;
|
||
|
|
position: sticky;
|
||
|
|
top: -1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
[dir="rtl"] .search input[type="search"] {
|
||
|
|
padding: 10px 2.2em 10px 2em;
|
||
|
|
}
|
||
|
|
|
||
|
|
[dir="rtl"] .search .loupe {
|
||
|
|
left: auto;
|
||
|
|
right: .7em;
|
||
|
|
}
|
||
|
|
|
||
|
|
[dir="rtl"] .search .delete {
|
||
|
|
left: .7em;
|
||
|
|
right: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search {
|
||
|
|
z-index: 2;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input, .search button {
|
||
|
|
font-size: calc(var(--font-size) - 1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input[type="search"] {
|
||
|
|
width: 100%;
|
||
|
|
background-color: var(--em-color-border);
|
||
|
|
transition-duration: var(--duration);
|
||
|
|
transition-property: background-color, box-shadow;
|
||
|
|
transition-timing-function: var(--easing);
|
||
|
|
border: 0;
|
||
|
|
border-radius: 10px;
|
||
|
|
outline: 0;
|
||
|
|
padding: 10px 2em 10px 2.2em;
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input[type="search"]::-ms-input-placeholder {
|
||
|
|
color: inherit;
|
||
|
|
opacity: .6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input[type="search"]::placeholder {
|
||
|
|
color: inherit;
|
||
|
|
opacity: .6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {
|
||
|
|
-webkit-appearance: none;
|
||
|
|
-ms-appearance: none;
|
||
|
|
appearance: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search input[type="search"]:focus {
|
||
|
|
background-color: rgb(var(--em-rgb-input));
|
||
|
|
box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.search .icon {
|
||
|
|
z-index: 1;
|
||
|
|
color: rgba(var(--em-rgb-color), .7);
|
||
|
|
position: absolute;
|
||
|
|
top: 50%;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.search .loupe {
|
||
|
|
pointer-events: none;
|
||
|
|
left: .7em;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search .delete {
|
||
|
|
right: .7em;
|
||
|
|
}
|
||
|
|
|
||
|
|
svg {
|
||
|
|
fill: currentColor;
|
||
|
|
width: 1em;
|
||
|
|
height: 1em;
|
||
|
|
}
|
||
|
|
|
||
|
|
button {
|
||
|
|
-webkit-appearance: none;
|
||
|
|
-ms-appearance: none;
|
||
|
|
appearance: none;
|
||
|
|
cursor: pointer;
|
||
|
|
color: currentColor;
|
||
|
|
background-color: rgba(0, 0, 0, 0);
|
||
|
|
border: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav {
|
||
|
|
z-index: 2;
|
||
|
|
padding-top: 12px;
|
||
|
|
padding-bottom: 12px;
|
||
|
|
padding-right: var(--sidebar-width);
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav button {
|
||
|
|
color: var(--color-b);
|
||
|
|
transition: color var(--duration) var(--easing);
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav button:hover {
|
||
|
|
color: var(--color-a);
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav svg, #nav img {
|
||
|
|
width: var(--category-icon-size);
|
||
|
|
height: var(--category-icon-size);
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav[dir="rtl"] .bar {
|
||
|
|
left: auto;
|
||
|
|
right: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav .bar {
|
||
|
|
width: 100%;
|
||
|
|
height: 3px;
|
||
|
|
background-color: rgb(var(--em-rgb-accent));
|
||
|
|
transition: transform var(--duration) var(--easing);
|
||
|
|
border-radius: 3px 3px 0 0;
|
||
|
|
position: absolute;
|
||
|
|
bottom: -12px;
|
||
|
|
left: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav button[aria-selected] {
|
||
|
|
color: rgb(var(--em-rgb-accent));
|
||
|
|
}
|
||
|
|
|
||
|
|
#preview {
|
||
|
|
z-index: 2;
|
||
|
|
padding: calc(var(--padding) + 4px) var(--padding);
|
||
|
|
padding-right: var(--sidebar-width);
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
#preview .preview-placeholder {
|
||
|
|
font-size: var(--preview-placeholder-size);
|
||
|
|
}
|
||
|
|
|
||
|
|
#preview .preview-title {
|
||
|
|
font-size: var(--preview-title-size);
|
||
|
|
}
|
||
|
|
|
||
|
|
#preview .preview-subtitle {
|
||
|
|
font-size: var(--preview-subtitle-size);
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav:before, #preview:before {
|
||
|
|
content: "";
|
||
|
|
height: 2px;
|
||
|
|
position: absolute;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav[data-position="top"]:before, #preview[data-position="top"]:before {
|
||
|
|
background: linear-gradient(to bottom, var(--em-color-border), transparent);
|
||
|
|
top: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {
|
||
|
|
background: linear-gradient(to top, var(--em-color-border), transparent);
|
||
|
|
bottom: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category:last-child {
|
||
|
|
min-height: calc(100% + 1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button > * {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button .background {
|
||
|
|
opacity: 0;
|
||
|
|
background-color: var(--em-color-border);
|
||
|
|
transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button:hover .background {
|
||
|
|
transition-duration: var(--duration-instant);
|
||
|
|
transition-delay: 0s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button[aria-selected] .background {
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category button[data-keyboard] .background {
|
||
|
|
transition: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.row {
|
||
|
|
width: 100%;
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button {
|
||
|
|
border: 1px solid rgba(0, 0, 0, 0);
|
||
|
|
border-radius: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button:hover {
|
||
|
|
border-color: var(--em-color-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button:active .skin-tone {
|
||
|
|
transform: scale(.85) !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button .skin-tone {
|
||
|
|
transition: transform var(--duration) var(--easing);
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button[aria-selected] {
|
||
|
|
background-color: var(--em-color-border);
|
||
|
|
border-top-color: rgba(0, 0, 0, .05);
|
||
|
|
border-bottom-color: rgba(0, 0, 0, 0);
|
||
|
|
border-left-width: 0;
|
||
|
|
border-right-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-button[aria-selected] .skin-tone {
|
||
|
|
transform: scale(.9);
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu {
|
||
|
|
z-index: 2;
|
||
|
|
white-space: nowrap;
|
||
|
|
border: 1px solid var(--em-color-border);
|
||
|
|
background-color: rgba(var(--em-rgb-background), .9);
|
||
|
|
-webkit-backdrop-filter: blur(4px);
|
||
|
|
backdrop-filter: blur(4px);
|
||
|
|
transition-property: opacity, transform;
|
||
|
|
transition-duration: var(--duration);
|
||
|
|
transition-timing-function: var(--easing);
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 4px;
|
||
|
|
position: absolute;
|
||
|
|
box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu.hidden {
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu[data-position="bottom"] {
|
||
|
|
transform-origin: 100% 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu[data-position="bottom"].hidden {
|
||
|
|
transform: scale(.9)rotate(-3deg)translateY(5%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu[data-position="top"] {
|
||
|
|
transform-origin: 100% 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu[data-position="top"].hidden {
|
||
|
|
transform: scale(.9)rotate(3deg)translateY(-5%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu input[type="radio"] {
|
||
|
|
clip: rect(0 0 0 0);
|
||
|
|
width: 1px;
|
||
|
|
height: 1px;
|
||
|
|
border: 0;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
position: absolute;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu input[type="radio"]:checked + .option {
|
||
|
|
box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));
|
||
|
|
}
|
||
|
|
|
||
|
|
.option {
|
||
|
|
width: 100%;
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 4px 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.option:hover {
|
||
|
|
color: #fff;
|
||
|
|
background-color: rgb(var(--em-rgb-accent));
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone {
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
border-radius: 100%;
|
||
|
|
display: inline-block;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone:after {
|
||
|
|
content: "";
|
||
|
|
mix-blend-mode: overlay;
|
||
|
|
background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));
|
||
|
|
border: 1px solid rgba(0, 0, 0, .8);
|
||
|
|
border-radius: 100%;
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-1 {
|
||
|
|
background-color: #ffc93a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-2 {
|
||
|
|
background-color: #ffdab7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-3 {
|
||
|
|
background-color: #e7b98f;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-4 {
|
||
|
|
background-color: #c88c61;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-5 {
|
||
|
|
background-color: #a46134;
|
||
|
|
}
|
||
|
|
|
||
|
|
.skin-tone-6 {
|
||
|
|
background-color: #5d4437;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-index] {
|
||
|
|
justify-content: space-between;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone:after {
|
||
|
|
box-shadow: none;
|
||
|
|
border-color: rgba(0, 0, 0, .5);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-1 {
|
||
|
|
background-color: #fade72;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-2 {
|
||
|
|
background-color: #f3dfd0;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-3 {
|
||
|
|
background-color: #eed3a8;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-4 {
|
||
|
|
background-color: #cfad8d;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-5 {
|
||
|
|
background-color: #a8805d;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="twitter"] .skin-tone-6 {
|
||
|
|
background-color: #765542;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone:after {
|
||
|
|
box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-1 {
|
||
|
|
background-color: #f5c748;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-2 {
|
||
|
|
background-color: #f1d5aa;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-3 {
|
||
|
|
background-color: #d4b48d;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-4 {
|
||
|
|
background-color: #aa876b;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-5 {
|
||
|
|
background-color: #916544;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="google"] .skin-tone-6 {
|
||
|
|
background-color: #61493f;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone:after {
|
||
|
|
border-color: rgba(0, 0, 0, .4);
|
||
|
|
box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-1 {
|
||
|
|
background-color: #f5c748;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-2 {
|
||
|
|
background-color: #f1d5aa;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-3 {
|
||
|
|
background-color: #d4b48d;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-4 {
|
||
|
|
background-color: #aa876b;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-5 {
|
||
|
|
background-color: #916544;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-emoji-set="facebook"] .skin-tone-6 {
|
||
|
|
background-color: #61493f;
|
||
|
|
}
|
||
|
|
|
||
|
|
`;function UH(t){const e=C.useRef(null),n=C.useRef(null);return n.current&&n.current.update(t),C.useEffect(()=>(n.current=new jm({...t,ref:e}),()=>{n.current=null}),[]),Ce.createElement("div",{ref:e})}var Ix={exports:{}},Vz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Hz=Vz,$z=Hz;function Bx(){}function Dx(){}Dx.resetWarningCache=Bx;var Gz=function(){function t(i,r,a,o,s,f){if(f!==$z){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Dx,resetWarningCache:Bx};return n.PropTypes=n,n};Ix.exports=Gz();var Wz=Ix.exports;const ct=pn(Wz);var qz=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,r,a;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(r=i;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(n).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;for(r=i;r--!==0;){var o=a[r];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n};const Xz=pn(qz);var Av={exports:{}},Lx;/**
|
||
|
|
* @link https://github.com/gajus/sister for the canonical source repository
|
||
|
|
* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
|
||
|
|
*/Lx=function(){var t={},e={};return t.on=function(n,i){var r={name:n,handler:i};return e[n]=e[n]||[],e[n].unshift(r),r},t.off=function(n){var i=e[n.name].indexOf(n);i!==-1&&e[n.name].splice(i,1)},t.trigger=function(n,i){var r=e[n],a;if(r)for(a=r.length;a--;)r[a].handler(i)},t};var Yz=Lx,Pv={exports:{}},Kz=function(e,n,i){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=e,n.attrs&&Zz(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?hw:Qz;o(a,i),a.onload||hw(a,i),r.appendChild(a)};function Zz(t,e){for(var n in e)t.setAttribute(n,e[n])}function hw(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function Qz(t,e){t.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,t))}}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Kz,i=r(n);function r(a){return a&&a.__esModule?a:{default:a}}e.default=function(a){var o=new Promise(function(s){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){s(window.YT);return}else{var f=window.location.protocol==="http:"?"http:":"https:";(0,i.default)(f+"//www.youtube.com/iframe_api",function(c){c&&a.trigger("error",c)})}var l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){l&&l(),s(window.YT)}});return o},t.exports=e.default})(Pv,Pv.exports);var Jz=Pv.exports,Mv={exports:{}},Rv={exports:{}},Ov={exports:{}},Hs=1e3,$s=Hs*60,Gs=$s*60,Ws=Gs*24,eV=Ws*365.25,tV=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return nV(t);if(n==="number"&&isNaN(t)===!1)return e.long?rV(t):iV(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function nV(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*eV;case"days":case"day":case"d":return n*Ws;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Gs;case"minutes":case"minute":case"mins":case"min":case"m":return n*$s;case"seconds":case"second":case"secs":case"sec":case"s":return n*Hs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function iV(t){return t>=Ws?Math.round(t/Ws)+"d":t>=Gs?Math.round(t/Gs)+"h":t>=$s?Math.round(t/$s)+"m":t>=Hs?Math.round(t/Hs)+"s":t+"ms"}function rV(t){return fl(t,Ws,"day")||fl(t,Gs,"hour")||fl(t,$s,"minute")||fl(t,Hs,"second")||t+" ms"}function fl(t,e,n){if(!(t<e))return t<e*1.5?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}(function(t,e){e=t.exports=r.debug=r.default=r,e.coerce=f,e.disable=o,e.enable=a,e.enabled=s,e.humanize=tV,e.names=[],e.skips=[],e.formatters={};var n;function i(l){var c=0,u;for(u in l)c=(c<<5)-c+l.charCodeAt(u),c|=0;return e.colors[Math.abs(c)%e.colors.length]}function r(l){function c(){if(c.enabled){var u=c,d=+new Date,h=d-(n||d);u.diff=h,u.prev=n,u.curr=d,n=d;for(var p=new Array(arguments.length),m=0;m<p.length;m++)p[m]=arguments[m];p[0]=e.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");var v=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,function(y,_){if(y==="%%")return y;v++;var w=e.formatters[_];if(typeof w=="function"){var k=p[v];y=w.call(u,k),p.splice(v,1),v--}return y}),e.formatArgs.call(u,p);var g=c.log||e.log||console.log.bind(console);g.apply(u,p)}}return c.namespace=l,c.enabled=e.enabled(l),c.useColors=e.useColors(),c.color=i(l),typeof e.init=="function"&&e.init(c),c}function a(l){e.save(l),e.names=[],e.skips=[];for(var c=(typeof l=="string"?l:"").split(/[\s,]+/),u=c.length,d=0;d<u;d++)c[d]&&(l=c[d].replace(/\*/g,".*?"),l[0]==="-"?e.skips.push(new RegExp("^"+l.substr(1)+"$")):e.names.push(new RegExp("^"+l+"$
|