@netless/app-slide 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SlidePreviewer/index.d.ts +1 -0
- package/dist/main.cjs.js +5 -5
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +6 -0
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +4 -4
- package/dist/main.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/SlidePreviewer/index.ts +9 -1
package/dist/main.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f0=Object.defineProperty,m0=Object.defineProperties;var g0=Object.getOwnPropertyDescriptors;var Vg=Object.getOwnPropertySymbols;var v0=Object.prototype.hasOwnProperty,_0=Object.prototype.propertyIsEnumerable;var Wg=(N,w,S)=>w in N?f0(N,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):N[w]=S,dp=(N,w)=>{for(var S in w||(w={}))v0.call(w,S)&&Wg(N,S,w[S]);if(Vg)for(var S of Vg(w))_0.call(w,S)&&Wg(N,S,w[S]);return N},Xg=(N,w)=>m0(N,g0(w));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";const qg="!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",y0=qg.length,Yg=Array(20),hm=()=>{for(let N=0;N<20;N++)Yg[N]=qg.charAt(Math.random()*y0);return Yg.join("")};class Xm{constructor(){this.disposers=new Map}add(w,S=hm()){return this.flush(S),this.disposers.set(S,w()),S}addDisposer(w,S=hm()){return this.flush(S),this.disposers.set(S,w),S}addEventListener(w,S,W,pt,lt=hm()){return this.add(()=>(w.addEventListener(S,W,pt),()=>w.removeEventListener(S,W,pt)),lt),lt}setTimeout(w,S,W=hm()){return this.add(()=>{const pt=window.setTimeout(()=>{this.remove(W),w()},S);return()=>window.clearTimeout(pt)},W)}setInterval(w,S,W=hm()){return this.add(()=>{const pt=window.setInterval(w,S);return()=>window.clearInterval(pt)},W)}remove(w){const S=this.disposers.get(w);return this.disposers.delete(w),S}flush(w){const S=this.remove(w);if(S)try{S()}catch(W){console.error(W)}}flushAll(){this.disposers.forEach(w=>{try{w()}catch(S){console.error(S)}}),this.disposers.clear()}}function x0(N){return N!=null&&typeof N=="object"&&!Array.isArray(N)}function b0(N,w){let S=N.getAttributes();if(S||(N.setAttributes(w),S=N.getAttributes()),!S)throw new Error("[NetlessAppMonaco] No attributes");return x0(w)&&Object.keys(w).forEach(W=>{Object.prototype.hasOwnProperty.call(S,W)||N.updateAttributes([W],w[W])}),S}var bo=function(N){var w={};function S(W){if(w[W])return w[W].exports;var pt=w[W]={i:W,l:!1,exports:{}};return N[W].call(pt.exports,pt,pt.exports,S),pt.l=!0,pt.exports}return S.m=N,S.c=w,S.d=function(W,pt,lt){S.o(W,pt)||Object.defineProperty(W,pt,{enumerable:!0,get:lt})},S.r=function(W){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},S.t=function(W,pt){if(1&pt&&(W=S(W)),8&pt||4&pt&&typeof W=="object"&&W&&W.__esModule)return W;var lt=Object.create(null);if(S.r(lt),Object.defineProperty(lt,"default",{enumerable:!0,value:W}),2&pt&&typeof W!="string")for(var J in W)S.d(lt,J,function(X){return W[X]}.bind(null,J));return lt},S.n=function(W){var pt=W&&W.__esModule?function(){return W.default}:function(){return W};return S.d(pt,"a",pt),pt},S.o=function(W,pt){return Object.prototype.hasOwnProperty.call(W,pt)},S.p="",S(S.s=34)}([function(N,w,S){var W=Object.prototype.hasOwnProperty,pt="~";function lt(){}function J($,ut,kt){this.fn=$,this.context=ut,this.once=kt||!1}function X($,ut,kt,Gt,zt){if(typeof kt!="function")throw new TypeError("The listener must be a function");var L=new J(kt,Gt||$,zt),k=pt?pt+ut:ut;return $._events[k]?$._events[k].fn?$._events[k]=[$._events[k],L]:$._events[k].push(L):($._events[k]=L,$._eventsCount++),$}function ct($,ut){--$._eventsCount==0?$._events=new lt:delete $._events[ut]}function tt(){this._events=new lt,this._eventsCount=0}Object.create&&(lt.prototype=Object.create(null),new lt().__proto__||(pt=!1)),tt.prototype.eventNames=function(){var $,ut,kt=[];if(this._eventsCount===0)return kt;for(ut in $=this._events)W.call($,ut)&&kt.push(pt?ut.slice(1):ut);return Object.getOwnPropertySymbols?kt.concat(Object.getOwnPropertySymbols($)):kt},tt.prototype.listeners=function($){var ut=pt?pt+$:$,kt=this._events[ut];if(!kt)return[];if(kt.fn)return[kt.fn];for(var Gt=0,zt=kt.length,L=new Array(zt);Gt<zt;Gt++)L[Gt]=kt[Gt].fn;return L},tt.prototype.listenerCount=function($){var ut=pt?pt+$:$,kt=this._events[ut];return kt?kt.fn?1:kt.length:0},tt.prototype.emit=function($,ut,kt,Gt,zt,L){var k=pt?pt+$:$;if(!this._events[k])return!1;var Y,ht,B=this._events[k],Q=arguments.length;if(B.fn){switch(B.once&&this.removeListener($,B.fn,void 0,!0),Q){case 1:return B.fn.call(B.context),!0;case 2:return B.fn.call(B.context,ut),!0;case 3:return B.fn.call(B.context,ut,kt),!0;case 4:return B.fn.call(B.context,ut,kt,Gt),!0;case 5:return B.fn.call(B.context,ut,kt,Gt,zt),!0;case 6:return B.fn.call(B.context,ut,kt,Gt,zt,L),!0}for(ht=1,Y=new Array(Q-1);ht<Q;ht++)Y[ht-1]=arguments[ht];B.fn.apply(B.context,Y)}else{var et,ft=B.length;for(ht=0;ht<ft;ht++)switch(B[ht].once&&this.removeListener($,B[ht].fn,void 0,!0),Q){case 1:B[ht].fn.call(B[ht].context);break;case 2:B[ht].fn.call(B[ht].context,ut);break;case 3:B[ht].fn.call(B[ht].context,ut,kt);break;case 4:B[ht].fn.call(B[ht].context,ut,kt,Gt);break;default:if(!Y)for(et=1,Y=new Array(Q-1);et<Q;et++)Y[et-1]=arguments[et];B[ht].fn.apply(B[ht].context,Y)}}return!0},tt.prototype.on=function($,ut,kt){return X(this,$,ut,kt,!1)},tt.prototype.once=function($,ut,kt){return X(this,$,ut,kt,!0)},tt.prototype.removeListener=function($,ut,kt,Gt){var zt=pt?pt+$:$;if(!this._events[zt])return this;if(!ut)return ct(this,zt),this;var L=this._events[zt];if(L.fn)L.fn!==ut||Gt&&!L.once||kt&&L.context!==kt||ct(this,zt);else{for(var k=0,Y=[],ht=L.length;k<ht;k++)(L[k].fn!==ut||Gt&&!L[k].once||kt&&L[k].context!==kt)&&Y.push(L[k]);Y.length?this._events[zt]=Y.length===1?Y[0]:Y:ct(this,zt)}return this},tt.prototype.removeAllListeners=function($){var ut;return $?(ut=pt?pt+$:$,this._events[ut]&&ct(this,ut)):(this._events=new lt,this._eventsCount=0),this},tt.prototype.off=tt.prototype.removeListener,tt.prototype.addListener=tt.prototype.on,tt.prefixed=pt,tt.EventEmitter=tt,N.exports=tt},function(N,w,S){(function(W,pt){var lt;/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -24,7 +24,7 @@ __p += '`),mn&&(De+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+De+`return __p
|
|
27
|
-
}`;var ve=Jd(function(){return Jn(Lt,ln+"return "+De).apply(void 0,qt)});if(ve.source=De,Fc(ve))throw ve;return ve},st.times=function(c,g){if((c=or(c))<1||c>9007199254740991)return[];var E=4294967295,F=to(c,4294967295);c-=4294967295;for(var q=Cl(F,g=Rn(g));++E<c;)g(E);return q},st.toFinite=fs,st.toInteger=or,st.toLength=qd,st.toLower=function(c){return zr(c).toLowerCase()},st.toNumber=As,st.toSafeInteger=function(c){return c?Go(or(c),-9007199254740991,9007199254740991):c===0?c:0},st.toString=zr,st.toUpper=function(c){return zr(c).toUpperCase()},st.trim=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return pc(c);if(!c||!(g=wi(g)))return c;var F=Zo(c),q=Zo(g);return Wi(F,yd(F,q),Ri(F,q)+1).join("")},st.trimEnd=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return c.slice(0,vp(c)+1);if(!c||!(g=wi(g)))return c;var F=Zo(c);return Wi(F,0,Ri(F,Zo(g))+1).join("")},st.trimStart=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return c.replace(br,"");if(!c||!(g=wi(g)))return c;var F=Zo(c);return Wi(F,yd(F,Zo(g))).join("")},st.truncate=function(c,g){var E=30,F="...";if(si(g)){var q="separator"in g?g.separator:q;E="length"in g?or(g.length):E,F="omission"in g?wi(g.omission):F}var dt=(c=zr(c)).length;if(Ia(c)){var Mt=Zo(c);dt=Mt.length}if(E>=dt)return c;var Lt=E-Il(F);if(Lt<1)return F;var qt=Mt?Wi(Mt,0,Lt).join(""):c.slice(0,Lt);if(q===void 0)return qt+F;if(Mt&&(Lt+=qt.length-Lt),Uc(q)){if(c.slice(Lt).search(q)){var Ee,me=qt;for(q.global||(q=ys(q.source,zr(ao.exec(q))+"g")),q.lastIndex=0;Ee=q.exec(me);)var De=Ee.index;qt=qt.slice(0,De===void 0?Lt:De)}}else if(c.indexOf(wi(q),Lt)!=Lt){var gn=qt.lastIndexOf(q);gn>-1&&(qt=qt.slice(0,gn))}return qt+F},st.unescape=function(c){return(c=zr(c))&&Ke.test(c)?c.replace(ke,Wr):c},st.uniqueId=function(c){var g=++gf;return zr(c)+g},st.upperCase=Yd,st.upperFirst=Gh,st.each=Ph,st.eachRight=kp,st.first=Fd,Fu(st,($c={},eo(st,function(c,g){pr.call(st.prototype,g)||($c[g]=c)}),$c),{chain:!1}),st.VERSION="4.17.21",uo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){st[c].placeholder=st}),uo(["drop","take"],function(c,g){tr.prototype[c]=function(E){E=E===void 0?1:xi(or(E),0);var F=this.__filtered__&&!g?new tr(this):this.clone();return F.__filtered__?F.__takeCount__=to(E,F.__takeCount__):F.__views__.push({size:to(E,4294967295),type:c+(F.__dir__<0?"Right":"")}),F},tr.prototype[c+"Right"]=function(E){return this.reverse()[c](E).reverse()}}),uo(["filter","map","takeWhile"],function(c,g){var E=g+1,F=E==1||E==3;tr.prototype[c]=function(q){var dt=this.clone();return dt.__iteratees__.push({iteratee:Rn(q,3),type:E}),dt.__filtered__=dt.__filtered__||F,dt}}),uo(["head","last"],function(c,g){var E="take"+(g?"Right":"");tr.prototype[c]=function(){return this[E](1).value()[0]}}),uo(["initial","tail"],function(c,g){var E="drop"+(g?"":"Right");tr.prototype[c]=function(){return this.__filtered__?new tr(this):this[E](1)}}),tr.prototype.compact=function(){return this.filter(no)},tr.prototype.find=function(c){return this.filter(c).head()},tr.prototype.findLast=function(c){return this.reverse().find(c)},tr.prototype.invokeMap=fr(function(c,g){return typeof c=="function"?new tr(this):this.map(function(E){return gh(E,c,g)})}),tr.prototype.reject=function(c){return this.filter(Lh(Rn(c)))},tr.prototype.slice=function(c,g){c=or(c);var E=this;return E.__filtered__&&(c>0||g<0)?new tr(E):(c<0?E=E.takeRight(-c):c&&(E=E.drop(c)),g!==void 0&&(E=(g=or(g))<0?E.dropRight(-g):E.take(g-c)),E)},tr.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},tr.prototype.toArray=function(){return this.take(4294967295)},eo(tr.prototype,function(c,g){var E=/^(?:filter|find|map|reject)|While$/.test(g),F=/^(?:head|last)$/.test(g),q=st[F?"take"+(g=="last"?"Right":""):g],dt=F||/^find/.test(g);q&&(st.prototype[g]=function(){var Mt=this.__wrapped__,Lt=F?[1]:arguments,qt=Mt instanceof tr,Ee=Lt[0],me=qt||ir(Mt),De=function(Un){var mn=q.apply(st,Pa([Un],Lt));return F&&gn?mn[0]:mn};me&&E&&typeof Ee=="function"&&Ee.length!=1&&(qt=me=!1);var gn=this.__chain__,ln=!!this.__actions__.length,An=dt&&!gn,ve=qt&&!ln;if(!dt&&me){Mt=ve?Mt:new tr(this);var Xe=c.apply(Mt,Lt);return Xe.__actions__.push({func:Lc,args:[De],thisArg:void 0}),new co(Xe,gn)}return An&&ve?c.apply(this,Lt):(Xe=this.thru(De),An?F?Xe.value()[0]:Xe.value():Xe)})}),uo(["pop","push","shift","sort","splice","unshift"],function(c){var g=mu[c],E=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",F=/^(?:pop|shift)$/.test(c);st.prototype[c]=function(){var q=arguments;if(F&&!this.__chain__){var dt=this.value();return g.apply(ir(dt)?dt:[],q)}return this[E](function(Mt){return g.apply(ir(Mt)?Mt:[],q)})}}),eo(tr.prototype,function(c,g){var E=st[g];if(E){var F=E.name+"";pr.call(ia,F)||(ia[F]=[]),ia[F].push({name:g,func:E})}}),ia[pl(void 0,2).name]=[{name:"wrapper",func:void 0}],tr.prototype.clone=function(){var c=new tr(this.__wrapped__);return c.__actions__=qi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=qi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=qi(this.__views__),c},tr.prototype.reverse=function(){if(this.__filtered__){var c=new tr(this);c.__dir__=-1,c.__filtered__=!0}else(c=this.clone()).__dir__*=-1;return c},tr.prototype.value=function(){var c=this.__wrapped__.value(),g=this.__dir__,E=ir(c),F=g<0,q=E?c.length:0,dt=function(lr,In,jn){for(var Ei=-1,xo=jn.length;++Ei<xo;){var Ls=jn[Ei],ki=Ls.size;switch(Ls.type){case"drop":lr+=ki;break;case"dropRight":In-=ki;break;case"take":In=to(In,lr+ki);break;case"takeRight":lr=xi(lr,In-ki)}}return{start:lr,end:In}}(0,q,this.__views__),Mt=dt.start,Lt=dt.end,qt=Lt-Mt,Ee=F?Lt:Mt-1,me=this.__iteratees__,De=me.length,gn=0,ln=to(qt,this.__takeCount__);if(!E||!F&&q==qt&&ln==qt)return bu(c,this.__actions__);var An=[];t:for(;qt--&&gn<ln;){for(var ve=-1,Xe=c[Ee+=g];++ve<De;){var Un=me[ve],mn=Un.iteratee,Yn=Un.type,wn=mn(Xe);if(Yn==2)Xe=wn;else if(!wn){if(Yn==1)continue t;break t}}An[gn++]=Xe}return An},st.prototype.at=Np,st.prototype.chain=function(){return Hd(this)},st.prototype.commit=function(){return new co(this.value(),this.__chain__)},st.prototype.next=function(){this.__values__===void 0&&(this.__values__=Nh(this.value()));var c=this.__index__>=this.__values__.length;return{done:c,value:c?void 0:this.__values__[this.__index__++]}},st.prototype.plant=function(c){for(var g,E=this;E instanceof Ba;){var F=ql(E);F.__index__=0,F.__values__=void 0,g?q.__wrapped__=F:g=F;var q=F;E=E.__wrapped__}return q.__wrapped__=c,g},st.prototype.reverse=function(){var c=this.__wrapped__;if(c instanceof tr){var g=c;return this.__actions__.length&&(g=new tr(this)),(g=g.reverse()).__actions__.push({func:Lc,args:[Ud],thisArg:void 0}),new co(g,this.__chain__)}return this.thru(Ud)},st.prototype.toJSON=st.prototype.valueOf=st.prototype.value=function(){return bu(this.__wrapped__,this.__actions__)},st.prototype.first=st.prototype.head,uh&&(st.prototype[uh]=function(){return this}),st}();Er._=Bs,(lt=function(){return Bs}.call(w,S,w,pt))===void 0||(pt.exports=lt)}).call(this)}).call(this,S(4),S(11)(N))},function(N,w,S){var W;(function(pt){function lt(B,Q){var et=(65535&B)+(65535&Q);return(B>>16)+(Q>>16)+(et>>16)<<16|65535&et}function J(B,Q,et,ft,ae,Oe){return lt((ne=lt(lt(Q,B),lt(ft,Oe)))<<(bt=ae)|ne>>>32-bt,et);var ne,bt}function X(B,Q,et,ft,ae,Oe,ne){return J(Q&et|~Q&ft,B,Q,ae,Oe,ne)}function ct(B,Q,et,ft,ae,Oe,ne){return J(Q&ft|et&~ft,B,Q,ae,Oe,ne)}function tt(B,Q,et,ft,ae,Oe,ne){return J(Q^et^ft,B,Q,ae,Oe,ne)}function $(B,Q,et,ft,ae,Oe,ne){return J(et^(Q|~ft),B,Q,ae,Oe,ne)}function ut(B,Q){var et,ft,ae,Oe,ne;B[Q>>5]|=128<<Q%32,B[14+(Q+64>>>9<<4)]=Q;var bt=1732584193,Jt=-271733879,Kt=-1732584194,rt=271733878;for(et=0;et<B.length;et+=16)ft=bt,ae=Jt,Oe=Kt,ne=rt,bt=X(bt,Jt,Kt,rt,B[et],7,-680876936),rt=X(rt,bt,Jt,Kt,B[et+1],12,-389564586),Kt=X(Kt,rt,bt,Jt,B[et+2],17,606105819),Jt=X(Jt,Kt,rt,bt,B[et+3],22,-1044525330),bt=X(bt,Jt,Kt,rt,B[et+4],7,-176418897),rt=X(rt,bt,Jt,Kt,B[et+5],12,1200080426),Kt=X(Kt,rt,bt,Jt,B[et+6],17,-1473231341),Jt=X(Jt,Kt,rt,bt,B[et+7],22,-45705983),bt=X(bt,Jt,Kt,rt,B[et+8],7,1770035416),rt=X(rt,bt,Jt,Kt,B[et+9],12,-1958414417),Kt=X(Kt,rt,bt,Jt,B[et+10],17,-42063),Jt=X(Jt,Kt,rt,bt,B[et+11],22,-1990404162),bt=X(bt,Jt,Kt,rt,B[et+12],7,1804603682),rt=X(rt,bt,Jt,Kt,B[et+13],12,-40341101),Kt=X(Kt,rt,bt,Jt,B[et+14],17,-1502002290),bt=ct(bt,Jt=X(Jt,Kt,rt,bt,B[et+15],22,1236535329),Kt,rt,B[et+1],5,-165796510),rt=ct(rt,bt,Jt,Kt,B[et+6],9,-1069501632),Kt=ct(Kt,rt,bt,Jt,B[et+11],14,643717713),Jt=ct(Jt,Kt,rt,bt,B[et],20,-373897302),bt=ct(bt,Jt,Kt,rt,B[et+5],5,-701558691),rt=ct(rt,bt,Jt,Kt,B[et+10],9,38016083),Kt=ct(Kt,rt,bt,Jt,B[et+15],14,-660478335),Jt=ct(Jt,Kt,rt,bt,B[et+4],20,-405537848),bt=ct(bt,Jt,Kt,rt,B[et+9],5,568446438),rt=ct(rt,bt,Jt,Kt,B[et+14],9,-1019803690),Kt=ct(Kt,rt,bt,Jt,B[et+3],14,-187363961),Jt=ct(Jt,Kt,rt,bt,B[et+8],20,1163531501),bt=ct(bt,Jt,Kt,rt,B[et+13],5,-1444681467),rt=ct(rt,bt,Jt,Kt,B[et+2],9,-51403784),Kt=ct(Kt,rt,bt,Jt,B[et+7],14,1735328473),bt=tt(bt,Jt=ct(Jt,Kt,rt,bt,B[et+12],20,-1926607734),Kt,rt,B[et+5],4,-378558),rt=tt(rt,bt,Jt,Kt,B[et+8],11,-2022574463),Kt=tt(Kt,rt,bt,Jt,B[et+11],16,1839030562),Jt=tt(Jt,Kt,rt,bt,B[et+14],23,-35309556),bt=tt(bt,Jt,Kt,rt,B[et+1],4,-1530992060),rt=tt(rt,bt,Jt,Kt,B[et+4],11,1272893353),Kt=tt(Kt,rt,bt,Jt,B[et+7],16,-155497632),Jt=tt(Jt,Kt,rt,bt,B[et+10],23,-1094730640),bt=tt(bt,Jt,Kt,rt,B[et+13],4,681279174),rt=tt(rt,bt,Jt,Kt,B[et],11,-358537222),Kt=tt(Kt,rt,bt,Jt,B[et+3],16,-722521979),Jt=tt(Jt,Kt,rt,bt,B[et+6],23,76029189),bt=tt(bt,Jt,Kt,rt,B[et+9],4,-640364487),rt=tt(rt,bt,Jt,Kt,B[et+12],11,-421815835),Kt=tt(Kt,rt,bt,Jt,B[et+15],16,530742520),bt=$(bt,Jt=tt(Jt,Kt,rt,bt,B[et+2],23,-995338651),Kt,rt,B[et],6,-198630844),rt=$(rt,bt,Jt,Kt,B[et+7],10,1126891415),Kt=$(Kt,rt,bt,Jt,B[et+14],15,-1416354905),Jt=$(Jt,Kt,rt,bt,B[et+5],21,-57434055),bt=$(bt,Jt,Kt,rt,B[et+12],6,1700485571),rt=$(rt,bt,Jt,Kt,B[et+3],10,-1894986606),Kt=$(Kt,rt,bt,Jt,B[et+10],15,-1051523),Jt=$(Jt,Kt,rt,bt,B[et+1],21,-2054922799),bt=$(bt,Jt,Kt,rt,B[et+8],6,1873313359),rt=$(rt,bt,Jt,Kt,B[et+15],10,-30611744),Kt=$(Kt,rt,bt,Jt,B[et+6],15,-1560198380),Jt=$(Jt,Kt,rt,bt,B[et+13],21,1309151649),bt=$(bt,Jt,Kt,rt,B[et+4],6,-145523070),rt=$(rt,bt,Jt,Kt,B[et+11],10,-1120210379),Kt=$(Kt,rt,bt,Jt,B[et+2],15,718787259),Jt=$(Jt,Kt,rt,bt,B[et+9],21,-343485551),bt=lt(bt,ft),Jt=lt(Jt,ae),Kt=lt(Kt,Oe),rt=lt(rt,ne);return[bt,Jt,Kt,rt]}function kt(B){var Q,et="",ft=32*B.length;for(Q=0;Q<ft;Q+=8)et+=String.fromCharCode(B[Q>>5]>>>Q%32&255);return et}function Gt(B){var Q,et=[];for(et[(B.length>>2)-1]=void 0,Q=0;Q<et.length;Q+=1)et[Q]=0;var ft=8*B.length;for(Q=0;Q<ft;Q+=8)et[Q>>5]|=(255&B.charCodeAt(Q/8))<<Q%32;return et}function zt(B){var Q,et,ft="";for(et=0;et<B.length;et+=1)Q=B.charCodeAt(et),ft+="0123456789abcdef".charAt(Q>>>4&15)+"0123456789abcdef".charAt(15&Q);return ft}function L(B){return unescape(encodeURIComponent(B))}function k(B){return function(Q){return kt(ut(Gt(Q),8*Q.length))}(L(B))}function Y(B,Q){return function(et,ft){var ae,Oe,ne=Gt(et),bt=[],Jt=[];for(bt[15]=Jt[15]=void 0,ne.length>16&&(ne=ut(ne,8*et.length)),ae=0;ae<16;ae+=1)bt[ae]=909522486^ne[ae],Jt[ae]=1549556828^ne[ae];return Oe=ut(bt.concat(Gt(ft)),512+8*ft.length),kt(ut(Jt.concat(Oe),640))}(L(B),L(Q))}function ht(B,Q,et){return Q?et?Y(Q,B):zt(Y(Q,B)):et?k(B):zt(k(B))}(W=function(){return ht}.call(w,S,w,N))===void 0||(N.exports=W)})()},function(N,w,S){Object.defineProperty(w,"__esModule",{value:!0});var W=function(){function ct(tt,$){for(var ut=0;ut<$.length;ut++){var kt=$[ut];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(tt,kt.key,kt)}}return function(tt,$,ut){return $&&ct(tt.prototype,$),ut&&ct(tt,ut),tt}}();function pt(ct,tt){if(!(ct instanceof tt))throw new TypeError("Cannot call a class as a function")}var lt=function(){function ct(tt,$,ut){$===void 0&&($=!1),pt(this,ct),this._fn=tt,this._once=$,this._thisArg=ut,this._next=this._prev=this._owner=null}return W(ct,[{key:"detach",value:function(){return this._owner!==null&&(this._owner.detach(this),!0)}}]),ct}();function J(ct,tt){return ct._head?(ct._tail._next=tt,tt._prev=ct._tail,ct._tail=tt):(ct._head=tt,ct._tail=tt),tt._owner=ct,tt}var X=function(){function ct(){pt(this,ct),this._head=this._tail=void 0}return W(ct,[{key:"handlers",value:function(){var tt=!(arguments.length<=0||arguments[0]===void 0)&&arguments[0],$=this._head;if(tt)return!!$;for(var ut=[];$;)ut.push($),$=$._next;return ut}},{key:"has",value:function(tt){if(!(tt instanceof lt))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return tt._owner===this}},{key:"dispatch",value:function(){var tt=this._head;if(!tt)return!1;for(;tt;)tt._once&&this.detach(tt),tt._fn.apply(tt._thisArg,arguments),tt=tt._next;return!0}},{key:"add",value:function(tt){var $=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof tt!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return J(this,new lt(tt,!1,$))}},{key:"once",value:function(tt){var $=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof tt!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return J(this,new lt(tt,!0,$))}},{key:"detach",value:function(tt){if(!(tt instanceof lt))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return tt._owner!==this||(tt._prev&&(tt._prev._next=tt._next),tt._next&&(tt._next._prev=tt._prev),tt===this._head?(this._head=tt._next,tt._next===null&&(this._tail=null)):tt===this._tail&&(this._tail=tt._prev,this._tail._next=null),tt._owner=null),this}},{key:"detachAll",value:function(){var tt=this._head;if(!tt)return this;for(this._head=this._tail=null;tt;)tt._owner=null,tt=tt._next;return this}}]),ct}();X.MiniSignalBinding=lt,w.default=X,N.exports=w.default},function(N,w){var S;S=function(){return this}();try{S=S||new Function("return this")()}catch{typeof window=="object"&&(S=window)}N.exports=S},function(N,w,S){S.r(w),S.d(w,"ACESFilmicToneMapping",function(){return $i}),S.d(w,"AddEquation",function(){return ne}),S.d(w,"AddOperation",function(){return hr}),S.d(w,"AdditiveAnimationBlendMode",function(){return xd}),S.d(w,"AdditiveBlending",function(){return et}),S.d(w,"AlphaFormat",function(){return Dn}),S.d(w,"AlwaysDepth",function(){return Wn}),S.d(w,"AlwaysStencilFunc",function(){return Li}),S.d(w,"AmbientLight",function(){return uf}),S.d(w,"AmbientLightProbe",function(){return re}),S.d(w,"AnimationClip",function(){return sd}),S.d(w,"AnimationLoader",function(){return ag}),S.d(w,"AnimationMixer",function(){return ac}),S.d(w,"AnimationObjectGroup",function(){return rm}),S.d(w,"AnimationUtils",function(){return di}),S.d(w,"ArcCurve",function(){return In}),S.d(w,"ArrayCamera",function(){return zr}),S.d(w,"ArrowHelper",function(){return Nt}),S.d(w,"Audio",function(){return tm}),S.d(w,"AudioAnalyser",function(){return Nm}),S.d(w,"AudioContext",function(){return cf}),S.d(w,"AudioListener",function(){return Qf}),S.d(w,"AudioLoader",function(){return Lm}),S.d(w,"AxesHelper",function(){return ue}),S.d(w,"AxisHelper",function(){return n0}),S.d(w,"BackSide",function(){return L}),S.d(w,"BasicDepthPacking",function(){return Jn}),S.d(w,"BasicShadowMap",function(){return $}),S.d(w,"BinaryTextureLoader",function(){return a0}),S.d(w,"Bone",function(){return no}),S.d(w,"BooleanKeyframeTrack",function(){return Kh}),S.d(w,"BoundingBoxHelper",function(){return r0}),S.d(w,"Box2",function(){return pd}),S.d(w,"Box3",function(){return To}),S.d(w,"Box3Helper",function(){return _t}),S.d(w,"BoxBufferGeometry",function(){return ha}),S.d(w,"BoxGeometry",function(){return ha}),S.d(w,"BoxHelper",function(){return K}),S.d(w,"BufferAttribute",function(){return Kn}),S.d(w,"BufferGeometry",function(){return zn}),S.d(w,"BufferGeometryLoader",function(){return up}),S.d(w,"ByteType",function(){return gs}),S.d(w,"Cache",function(){return ec}),S.d(w,"Camera",function(){return jl}),S.d(w,"CameraHelper",function(){return j}),S.d(w,"CanvasRenderer",function(){return u0}),S.d(w,"CanvasTexture",function(){return qt}),S.d(w,"CatmullRomCurve3",function(){return Zs}),S.d(w,"CineonToneMapping",function(){return On}),S.d(w,"CircleBufferGeometry",function(){return me}),S.d(w,"CircleGeometry",function(){return me}),S.d(w,"ClampToEdgeWrapping",function(){return St}),S.d(w,"Clock",function(){return Zf}),S.d(w,"Color",function(){return pn}),S.d(w,"ColorKeyframeTrack",function(){return of}),S.d(w,"CompressedTexture",function(){return Lt}),S.d(w,"CompressedTextureLoader",function(){return Mm}),S.d(w,"ConeBufferGeometry",function(){return gn}),S.d(w,"ConeGeometry",function(){return gn}),S.d(w,"CubeCamera",function(){return Ec}),S.d(w,"CubeReflectionMapping",function(){return I}),S.d(w,"CubeRefractionMapping",function(){return z}),S.d(w,"CubeTexture",function(){return Vl}),S.d(w,"CubeTextureLoader",function(){return Uf}),S.d(w,"CubeUVReflectionMapping",function(){return nt}),S.d(w,"CubeUVRefractionMapping",function(){return it}),S.d(w,"CubicBezierCurve",function(){return va}),S.d(w,"CubicBezierCurve3",function(){return _a}),S.d(w,"CubicInterpolant",function(){return Hu}),S.d(w,"CullFaceBack",function(){return X}),S.d(w,"CullFaceFront",function(){return ct}),S.d(w,"CullFaceFrontBack",function(){return tt}),S.d(w,"CullFaceNone",function(){return J}),S.d(w,"Curve",function(){return wn}),S.d(w,"CurvePath",function(){return Cm}),S.d(w,"CustomBlending",function(){return Oe}),S.d(w,"CustomToneMapping",function(){return Pi}),S.d(w,"CylinderBufferGeometry",function(){return De}),S.d(w,"CylinderGeometry",function(){return De}),S.d(w,"Cylindrical",function(){return fg}),S.d(w,"DataTexture",function(){return Is}),S.d(w,"DataTexture2DArray",function(){return Wa}),S.d(w,"DataTexture3D",function(){return Wl}),S.d(w,"DataTextureLoader",function(){return Am}),S.d(w,"DataUtils",function(){return Je}),S.d(w,"DecrementStencilOp",function(){return sl}),S.d(w,"DecrementWrapStencilOp",function(){return ah}),S.d(w,"DefaultLoadingManager",function(){return nc}),S.d(w,"DepthFormat",function(){return dn}),S.d(w,"DepthStencilFormat",function(){return rr}),S.d(w,"DepthTexture",function(){return Ee}),S.d(w,"DirectionalLight",function(){return Wu}),S.d(w,"DirectionalLightHelper",function(){return b}),S.d(w,"DiscreteInterpolant",function(){return rf}),S.d(w,"DodecahedronBufferGeometry",function(){return An}),S.d(w,"DodecahedronGeometry",function(){return An}),S.d(w,"DoubleSide",function(){return k}),S.d(w,"DstAlphaFactor",function(){return Ye}),S.d(w,"DstColorFactor",function(){return Hn}),S.d(w,"DynamicBufferAttribute",function(){return Xv}),S.d(w,"DynamicCopyUsage",function(){return uh}),S.d(w,"DynamicDrawUsage",function(){return al}),S.d(w,"DynamicReadUsage",function(){return wd}),S.d(w,"EdgesGeometry",function(){return Yn}),S.d(w,"EdgesHelper",function(){return i0}),S.d(w,"EllipseCurve",function(){return lr}),S.d(w,"EqualDepth",function(){return Ur}),S.d(w,"EqualStencilFunc",function(){return lh}),S.d(w,"EquirectangularReflectionMapping",function(){return H}),S.d(w,"EquirectangularRefractionMapping",function(){return at}),S.d(w,"Euler",function(){return aa}),S.d(w,"EventDispatcher",function(){return Fa}),S.d(w,"ExtrudeBufferGeometry",function(){return Ka}),S.d(w,"ExtrudeGeometry",function(){return Ka}),S.d(w,"FaceColors",function(){return zm}),S.d(w,"FileLoader",function(){return ba}),S.d(w,"FlatShading",function(){return Y}),S.d(w,"Float16BufferAttribute",function(){return bu}),S.d(w,"Float32Attribute",function(){return t0}),S.d(w,"Float32BufferAttribute",function(){return xn}),S.d(w,"Float64Attribute",function(){return e0}),S.d(w,"Float64BufferAttribute",function(){return Sc}),S.d(w,"FloatType",function(){return ee}),S.d(w,"Fog",function(){return tu}),S.d(w,"FogExp2",function(){return Ql}),S.d(w,"Font",function(){return oo}),S.d(w,"FontLoader",function(){return qf}),S.d(w,"FrontSide",function(){return zt}),S.d(w,"Frustum",function(){return ja}),S.d(w,"GLBufferAttribute",function(){return Um}),S.d(w,"GLSL1",function(){return Na}),S.d(w,"GLSL3",function(){return Td}),S.d(w,"GammaEncoding",function(){return Yt}),S.d(w,"GreaterDepth",function(){return qr}),S.d(w,"GreaterEqualDepth",function(){return Rr}),S.d(w,"GreaterEqualStencilFunc",function(){return Ll}),S.d(w,"GreaterStencilFunc",function(){return xp}),S.d(w,"GridHelper",function(){return s}),S.d(w,"Group",function(){return vl}),S.d(w,"HalfFloatType",function(){return Ft}),S.d(w,"HemisphereLight",function(){return sf}),S.d(w,"HemisphereLightHelper",function(){return r}),S.d(w,"HemisphereLightProbe",function(){return el}),S.d(w,"IcosahedronBufferGeometry",function(){return Uu}),S.d(w,"IcosahedronGeometry",function(){return Uu}),S.d(w,"ImageBitmapLoader",function(){return su}),S.d(w,"ImageLoader",function(){return op}),S.d(w,"ImageUtils",function(){return xs}),S.d(w,"ImmediateRenderObject",function(){return Ea}),S.d(w,"IncrementStencilOp",function(){return _p}),S.d(w,"IncrementWrapStencilOp",function(){return sh}),S.d(w,"InstancedBufferAttribute",function(){return hf}),S.d(w,"InstancedBufferGeometry",function(){return lp}),S.d(w,"InstancedInterleavedBuffer",function(){return im}),S.d(w,"InstancedMesh",function(){return qc}),S.d(w,"Int16Attribute",function(){return Jv}),S.d(w,"Int16BufferAttribute",function(){return Lr}),S.d(w,"Int32Attribute",function(){return Kv}),S.d(w,"Int32BufferAttribute",function(){return Rd}),S.d(w,"Int8Attribute",function(){return qv}),S.d(w,"Int8BufferAttribute",function(){return wc}),S.d(w,"IntType",function(){return Qu}),S.d(w,"InterleavedBuffer",function(){return _l}),S.d(w,"InterleavedBufferAttribute",function(){return ri}),S.d(w,"Interpolant",function(){return Js}),S.d(w,"InterpolateDiscrete",function(){return Rl}),S.d(w,"InterpolateLinear",function(){return Ii}),S.d(w,"InterpolateSmooth",function(){return Ia}),S.d(w,"InvertStencilOp",function(){return pr}),S.d(w,"JSONLoader",function(){return h0}),S.d(w,"KeepStencilOp",function(){return So}),S.d(w,"KeyframeTrack",function(){return Vo}),S.d(w,"LOD",function(){return Gh}),S.d(w,"LatheBufferGeometry",function(){return td}),S.d(w,"LatheGeometry",function(){return td}),S.d(w,"Layers",function(){return ul}),S.d(w,"LensFlare",function(){return d0}),S.d(w,"LessDepth",function(){return vn}),S.d(w,"LessEqualDepth",function(){return Pr}),S.d(w,"LessEqualStencilFunc",function(){return yp}),S.d(w,"LessStencilFunc",function(){return fc}),S.d(w,"Light",function(){return wa}),S.d(w,"LightProbe",function(){return ap}),S.d(w,"Line",function(){return Ya}),S.d(w,"Line3",function(){return Ta}),S.d(w,"LineBasicMaterial",function(){return ro}),S.d(w,"LineCurve",function(){return Bu}),S.d(w,"LineCurve3",function(){return Qd}),S.d(w,"LineDashedMaterial",function(){return Bf}),S.d(w,"LineLoop",function(){return nu}),S.d(w,"LinePieces",function(){return md}),S.d(w,"LineSegments",function(){return io}),S.d(w,"LineStrip",function(){return lc}),S.d(w,"LinearEncoding",function(){return Wr}),S.d(w,"LinearFilter",function(){return Qe}),S.d(w,"LinearInterpolant",function(){return nf}),S.d(w,"LinearMipMapLinearFilter",function(){return Ks}),S.d(w,"LinearMipMapNearestFilter",function(){return vi}),S.d(w,"LinearMipmapLinearFilter",function(){return Yr}),S.d(w,"LinearMipmapNearestFilter",function(){return Qn}),S.d(w,"LinearToneMapping",function(){return Jr}),S.d(w,"Loader",function(){return Wo}),S.d(w,"LoaderUtils",function(){return oc}),S.d(w,"LoadingManager",function(){return ya}),S.d(w,"LogLuvEncoding",function(){return Qt}),S.d(w,"LoopOnce",function(){return Ri}),S.d(w,"LoopPingPong",function(){return gp}),S.d(w,"LoopRepeat",function(){return vs}),S.d(w,"LuminanceAlphaFormat",function(){return gr}),S.d(w,"LuminanceFormat",function(){return mr}),S.d(w,"MOUSE",function(){return pt}),S.d(w,"Material",function(){return Ni}),S.d(w,"MaterialLoader",function(){return ld}),S.d(w,"Math",function(){return wp}),S.d(w,"MathUtils",function(){return wp}),S.d(w,"Matrix3",function(){return ji}),S.d(w,"Matrix4",function(){return En}),S.d(w,"MaxEquation",function(){return rt}),S.d(w,"Mesh",function(){return Bi}),S.d(w,"MeshBasicMaterial",function(){return Fi}),S.d(w,"MeshDepthMaterial",function(){return Nh}),S.d(w,"MeshDistanceMaterial",function(){return fs}),S.d(w,"MeshFaceMaterial",function(){return Vm}),S.d(w,"MeshLambertMaterial",function(){return Gu}),S.d(w,"MeshMatcapMaterial",function(){return ef}),S.d(w,"MeshNormalMaterial",function(){return Ff}),S.d(w,"MeshPhongMaterial",function(){return Df}),S.d(w,"MeshPhysicalMaterial",function(){return Of}),S.d(w,"MeshStandardMaterial",function(){return ip}),S.d(w,"MeshToonMaterial",function(){return Nf}),S.d(w,"MinEquation",function(){return Kt}),S.d(w,"MirroredRepeatWrapping",function(){return Ct}),S.d(w,"MixOperation",function(){return gi}),S.d(w,"MultiMaterial",function(){return kv}),S.d(w,"MultiplyBlending",function(){return ae}),S.d(w,"MultiplyOperation",function(){return br}),S.d(w,"NearestFilter",function(){return wt}),S.d(w,"NearestMipMapLinearFilter",function(){return an}),S.d(w,"NearestMipMapNearestFilter",function(){return Bt}),S.d(w,"NearestMipmapLinearFilter",function(){return Le}),S.d(w,"NearestMipmapNearestFilter",function(){return Vt}),S.d(w,"NeverDepth",function(){return Bn}),S.d(w,"NeverStencilFunc",function(){return gf}),S.d(w,"NoBlending",function(){return B}),S.d(w,"NoColors",function(){return ff}),S.d(w,"NoToneMapping",function(){return Or}),S.d(w,"NormalAnimationBlendMode",function(){return Oa}),S.d(w,"NormalBlending",function(){return Q}),S.d(w,"NotEqualDepth",function(){return yr}),S.d(w,"NotEqualStencilFunc",function(){return qn}),S.d(w,"NumberKeyframeTrack",function(){return Qh}),S.d(w,"Object3D",function(){return ar}),S.d(w,"ObjectLoader",function(){return lg}),S.d(w,"ObjectSpaceNormalMap",function(){return ys}),S.d(w,"OctahedronBufferGeometry",function(){return Yh}),S.d(w,"OctahedronGeometry",function(){return Yh}),S.d(w,"OneFactor",function(){return Wt}),S.d(w,"OneMinusDstAlphaFactor",function(){return ke}),S.d(w,"OneMinusDstColorFactor",function(){return Ke}),S.d(w,"OneMinusSrcAlphaFactor",function(){return fe}),S.d(w,"OneMinusSrcColorFactor",function(){return Xt}),S.d(w,"OrthographicCamera",function(){return sp}),S.d(w,"PCFShadowMap",function(){return ut}),S.d(w,"PCFSoftShadowMap",function(){return kt}),S.d(w,"PMREMGenerator",function(){return jr}),S.d(w,"ParametricBufferGeometry",function(){return rp}),S.d(w,"ParametricGeometry",function(){return rp}),S.d(w,"Particle",function(){return Gv}),S.d(w,"ParticleBasicMaterial",function(){return jv}),S.d(w,"ParticleSystem",function(){return Hv}),S.d(w,"ParticleSystemMaterial",function(){return Vv}),S.d(w,"Path",function(){return rc}),S.d(w,"PerspectiveCamera",function(){return Yi}),S.d(w,"Plane",function(){return Ko}),S.d(w,"PlaneBufferGeometry",function(){return pa}),S.d(w,"PlaneGeometry",function(){return pa}),S.d(w,"PlaneHelper",function(){return Tt}),S.d(w,"PointCloud",function(){return Uv}),S.d(w,"PointCloudMaterial",function(){return zv}),S.d(w,"PointLight",function(){return Wf}),S.d(w,"PointLightHelper",function(){return gg}),S.d(w,"Points",function(){return q}),S.d(w,"PointsMaterial",function(){return xl}),S.d(w,"PolarGridHelper",function(){return u}),S.d(w,"PolyhedronBufferGeometry",function(){return ln}),S.d(w,"PolyhedronGeometry",function(){return ln}),S.d(w,"PositionalAudio",function(){return cg}),S.d(w,"PropertyBinding",function(){return Br}),S.d(w,"PropertyMixer",function(){return ud}),S.d(w,"QuadraticBezierCurve",function(){return ru}),S.d(w,"QuadraticBezierCurve3",function(){return zh}),S.d(w,"Quaternion",function(){return Oi}),S.d(w,"QuaternionKeyframeTrack",function(){return tc}),S.d(w,"QuaternionLinearInterpolant",function(){return kf}),S.d(w,"REVISION",function(){return W}),S.d(w,"RGBADepthPacking",function(){return is}),S.d(w,"RGBAFormat",function(){return Tn}),S.d(w,"RGBAIntegerFormat",function(){return $r}),S.d(w,"RGBA_ASTC_10x10_Format",function(){return oi}),S.d(w,"RGBA_ASTC_10x5_Format",function(){return Pa}),S.d(w,"RGBA_ASTC_10x6_Format",function(){return El}),S.d(w,"RGBA_ASTC_10x8_Format",function(){return dc}),S.d(w,"RGBA_ASTC_12x10_Format",function(){return Ml}),S.d(w,"RGBA_ASTC_12x12_Format",function(){return yi}),S.d(w,"RGBA_ASTC_4x4_Format",function(){return _d}),S.d(w,"RGBA_ASTC_5x4_Format",function(){return uo}),S.d(w,"RGBA_ASTC_5x5_Format",function(){return _i}),S.d(w,"RGBA_ASTC_6x5_Format",function(){return fu}),S.d(w,"RGBA_ASTC_6x6_Format",function(){return Ca}),S.d(w,"RGBA_ASTC_8x5_Format",function(){return nh}),S.d(w,"RGBA_ASTC_8x6_Format",function(){return dr}),S.d(w,"RGBA_ASTC_8x8_Format",function(){return ti}),S.d(w,"RGBA_BPTC_Format",function(){return Fs}),S.d(w,"RGBA_ETC2_EAC_Format",function(){return Do}),S.d(w,"RGBA_PVRTC_2BPPV1_Format",function(){return th}),S.d(w,"RGBA_PVRTC_4BPPV1_Format",function(){return du}),S.d(w,"RGBA_S3TC_DXT1_Format",function(){return cu}),S.d(w,"RGBA_S3TC_DXT3_Format",function(){return Ki}),S.d(w,"RGBA_S3TC_DXT5_Format",function(){return Qr}),S.d(w,"RGBDEncoding",function(){return Mr}),S.d(w,"RGBEEncoding",function(){return _e}),S.d(w,"RGBEFormat",function(){return hn}),S.d(w,"RGBFormat",function(){return yn}),S.d(w,"RGBIntegerFormat",function(){return Er}),S.d(w,"RGBM16Encoding",function(){return Xn}),S.d(w,"RGBM7Encoding",function(){return tn}),S.d(w,"RGB_ETC1_Format",function(){return pu}),S.d(w,"RGB_ETC2_Format",function(){return eh}),S.d(w,"RGB_PVRTC_2BPPV1_Format",function(){return cc}),S.d(w,"RGB_PVRTC_4BPPV1_Format",function(){return hc}),S.d(w,"RGB_S3TC_DXT1_Format",function(){return ns}),S.d(w,"RGFormat",function(){return Gr}),S.d(w,"RGIntegerFormat",function(){return ii}),S.d(w,"RawShaderMaterial",function(){return $h}),S.d(w,"Ray",function(){return ka}),S.d(w,"Raycaster",function(){return dg}),S.d(w,"RectAreaLight",function(){return ic}),S.d(w,"RedFormat",function(){return ui}),S.d(w,"RedIntegerFormat",function(){return Zn}),S.d(w,"ReinhardToneMapping",function(){return Oo}),S.d(w,"RepeatWrapping",function(){return yt}),S.d(w,"ReplaceStencilOp",function(){return mu}),S.d(w,"ReverseSubtractEquation",function(){return Jt}),S.d(w,"RingBufferGeometry",function(){return ed}),S.d(w,"RingGeometry",function(){return ed}),S.d(w,"SRGB8_ALPHA8_ASTC_10x10_Format",function(){return hi}),S.d(w,"SRGB8_ALPHA8_ASTC_10x5_Format",function(){return Cl}),S.d(w,"SRGB8_ALPHA8_ASTC_10x6_Format",function(){return pc}),S.d(w,"SRGB8_ALPHA8_ASTC_10x8_Format",function(){return wo}),S.d(w,"SRGB8_ALPHA8_ASTC_12x10_Format",function(){return Pl}),S.d(w,"SRGB8_ALPHA8_ASTC_12x12_Format",function(){return yd}),S.d(w,"SRGB8_ALPHA8_ASTC_4x4_Format",function(){return rs}),S.d(w,"SRGB8_ALPHA8_ASTC_5x4_Format",function(){return ol}),S.d(w,"SRGB8_ALPHA8_ASTC_5x5_Format",function(){return Ra}),S.d(w,"SRGB8_ALPHA8_ASTC_6x5_Format",function(){return rh}),S.d(w,"SRGB8_ALPHA8_ASTC_6x6_Format",function(){return ih}),S.d(w,"SRGB8_ALPHA8_ASTC_8x5_Format",function(){return Al}),S.d(w,"SRGB8_ALPHA8_ASTC_8x6_Format",function(){return ei}),S.d(w,"SRGB8_ALPHA8_ASTC_8x8_Format",function(){return oh}),S.d(w,"Scene",function(){return Fh}),S.d(w,"SceneUtils",function(){return c0}),S.d(w,"ShaderChunk",function(){return vr}),S.d(w,"ShaderLib",function(){return _o}),S.d(w,"ShaderMaterial",function(){return vo}),S.d(w,"ShadowMaterial",function(){return Lf}),S.d(w,"Shape",function(){return ju}),S.d(w,"ShapeBufferGeometry",function(){return Zh}),S.d(w,"ShapeGeometry",function(){return Zh}),S.d(w,"ShapePath",function(){return au}),S.d(w,"ShapeUtils",function(){return Os}),S.d(w,"ShortType",function(){return Qs}),S.d(w,"Skeleton",function(){return Fu}),S.d(w,"SkeletonHelper",function(){return om}),S.d(w,"SkinnedMesh",function(){return jc}),S.d(w,"SmoothShading",function(){return ht}),S.d(w,"Sphere",function(){return bs}),S.d(w,"SphereBufferGeometry",function(){return Jh}),S.d(w,"SphereGeometry",function(){return Jh}),S.d(w,"Spherical",function(){return pg}),S.d(w,"SphericalHarmonics3",function(){return Re}),S.d(w,"SplineCurve",function(){return iu}),S.d(w,"SpotLight",function(){return ad}),S.d(w,"SpotLightHelper",function(){return mg}),S.d(w,"Sprite",function(){return Du}),S.d(w,"SpriteMaterial",function(){return yo}),S.d(w,"SrcAlphaFactor",function(){return le}),S.d(w,"SrcAlphaSaturateFactor",function(){return Ln}),S.d(w,"SrcColorFactor",function(){return te}),S.d(w,"StaticCopyUsage",function(){return Sd}),S.d(w,"StaticDrawUsage",function(){return Da}),S.d(w,"StaticReadUsage",function(){return Qi}),S.d(w,"StereoCamera",function(){return ug}),S.d(w,"StreamCopyUsage",function(){return Ol}),S.d(w,"StreamDrawUsage",function(){return mc}),S.d(w,"StreamReadUsage",function(){return gc}),S.d(w,"StringKeyframeTrack",function(){return Qa}),S.d(w,"SubtractEquation",function(){return bt}),S.d(w,"SubtractiveBlending",function(){return ft}),S.d(w,"TOUCH",function(){return lt}),S.d(w,"TangentSpaceNormalMap",function(){return Hr}),S.d(w,"TetrahedronBufferGeometry",function(){return nd}),S.d(w,"TetrahedronGeometry",function(){return nd}),S.d(w,"TextBufferGeometry",function(){return tf}),S.d(w,"TextGeometry",function(){return tf}),S.d(w,"Texture",function(){return ni}),S.d(w,"TextureLoader",function(){return Gf}),S.d(w,"TorusBufferGeometry",function(){return rd}),S.d(w,"TorusGeometry",function(){return rd}),S.d(w,"TorusKnotBufferGeometry",function(){return id}),S.d(w,"TorusKnotGeometry",function(){return id}),S.d(w,"Triangle",function(){return bi}),S.d(w,"TriangleFanDrawMode",function(){return vp}),S.d(w,"TriangleStripDrawMode",function(){return Zo}),S.d(w,"TrianglesDrawMode",function(){return Il}),S.d(w,"TubeBufferGeometry",function(){return od}),S.d(w,"TubeGeometry",function(){return od}),S.d(w,"UVMapping",function(){return ao}),S.d(w,"Uint16Attribute",function(){return $v}),S.d(w,"Uint16BufferAttribute",function(){return er}),S.d(w,"Uint32Attribute",function(){return Qv}),S.d(w,"Uint32BufferAttribute",function(){return fo}),S.d(w,"Uint8Attribute",function(){return Yv}),S.d(w,"Uint8BufferAttribute",function(){return Pd}),S.d(w,"Uint8ClampedAttribute",function(){return Zv}),S.d(w,"Uint8ClampedBufferAttribute",function(){return wi}),S.d(w,"Uniform",function(){return cd}),S.d(w,"UniformsLib",function(){return Ze}),S.d(w,"UniformsUtils",function(){return Od}),S.d(w,"UnsignedByteType",function(){return lo}),S.d(w,"UnsignedInt248Type",function(){return un}),S.d(w,"UnsignedIntType",function(){return Yo}),S.d(w,"UnsignedShort4444Type",function(){return Se}),S.d(w,"UnsignedShort5551Type",function(){return Ge}),S.d(w,"UnsignedShort565Type",function(){return Ve}),S.d(w,"UnsignedShortType",function(){return Aa}),S.d(w,"VSMShadowMap",function(){return Gt}),S.d(w,"Vector2",function(){return He}),S.d(w,"Vector3",function(){return gt}),S.d(w,"Vector4",function(){return Ir}),S.d(w,"VectorKeyframeTrack",function(){return zu}),S.d(w,"Vertex",function(){return Wv}),S.d(w,"VertexColors",function(){return jm}),S.d(w,"VideoTexture",function(){return Mt}),S.d(w,"WebGL1Renderer",function(){return qp}),S.d(w,"WebGLCubeRenderTarget",function(){return ds}),S.d(w,"WebGLMultipleRenderTargets",function(){return ia}),S.d(w,"WebGLMultisampleRenderTarget",function(){return vc}),S.d(w,"WebGLRenderTarget",function(){return Fo}),S.d(w,"WebGLRenderTargetCube",function(){return l0}),S.d(w,"WebGLRenderer",function(){return Fr}),S.d(w,"WebGLUtils",function(){return Gc}),S.d(w,"WireframeGeometry",function(){return If}),S.d(w,"WireframeHelper",function(){return o0}),S.d(w,"WrapAroundEnding",function(){return _s}),S.d(w,"XHRLoader",function(){return s0}),S.d(w,"ZeroCurvatureEnding",function(){return ta}),S.d(w,"ZeroFactor",function(){return Ut}),S.d(w,"ZeroSlopeEnding",function(){return La}),S.d(w,"ZeroStencilOp",function(){return bd}),S.d(w,"sRGBEncoding",function(){return Bs});/**
|
|
27
|
+
}`;var ve=Jd(function(){return Jn(Lt,ln+"return "+De).apply(void 0,qt)});if(ve.source=De,Fc(ve))throw ve;return ve},st.times=function(c,g){if((c=or(c))<1||c>9007199254740991)return[];var E=4294967295,F=to(c,4294967295);c-=4294967295;for(var q=Cl(F,g=Rn(g));++E<c;)g(E);return q},st.toFinite=fs,st.toInteger=or,st.toLength=qd,st.toLower=function(c){return zr(c).toLowerCase()},st.toNumber=As,st.toSafeInteger=function(c){return c?Go(or(c),-9007199254740991,9007199254740991):c===0?c:0},st.toString=zr,st.toUpper=function(c){return zr(c).toUpperCase()},st.trim=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return pc(c);if(!c||!(g=wi(g)))return c;var F=Zo(c),q=Zo(g);return Wi(F,yd(F,q),Ri(F,q)+1).join("")},st.trimEnd=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return c.slice(0,vp(c)+1);if(!c||!(g=wi(g)))return c;var F=Zo(c);return Wi(F,0,Ri(F,Zo(g))+1).join("")},st.trimStart=function(c,g,E){if((c=zr(c))&&(E||g===void 0))return c.replace(br,"");if(!c||!(g=wi(g)))return c;var F=Zo(c);return Wi(F,yd(F,Zo(g))).join("")},st.truncate=function(c,g){var E=30,F="...";if(si(g)){var q="separator"in g?g.separator:q;E="length"in g?or(g.length):E,F="omission"in g?wi(g.omission):F}var dt=(c=zr(c)).length;if(Ia(c)){var Mt=Zo(c);dt=Mt.length}if(E>=dt)return c;var Lt=E-Il(F);if(Lt<1)return F;var qt=Mt?Wi(Mt,0,Lt).join(""):c.slice(0,Lt);if(q===void 0)return qt+F;if(Mt&&(Lt+=qt.length-Lt),Uc(q)){if(c.slice(Lt).search(q)){var Ee,me=qt;for(q.global||(q=ys(q.source,zr(ao.exec(q))+"g")),q.lastIndex=0;Ee=q.exec(me);)var De=Ee.index;qt=qt.slice(0,De===void 0?Lt:De)}}else if(c.indexOf(wi(q),Lt)!=Lt){var gn=qt.lastIndexOf(q);gn>-1&&(qt=qt.slice(0,gn))}return qt+F},st.unescape=function(c){return(c=zr(c))&&Ke.test(c)?c.replace(ke,Wr):c},st.uniqueId=function(c){var g=++gf;return zr(c)+g},st.upperCase=Yd,st.upperFirst=Gh,st.each=Ph,st.eachRight=kp,st.first=Fd,Fu(st,($c={},eo(st,function(c,g){pr.call(st.prototype,g)||($c[g]=c)}),$c),{chain:!1}),st.VERSION="4.17.21",uo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){st[c].placeholder=st}),uo(["drop","take"],function(c,g){tr.prototype[c]=function(E){E=E===void 0?1:xi(or(E),0);var F=this.__filtered__&&!g?new tr(this):this.clone();return F.__filtered__?F.__takeCount__=to(E,F.__takeCount__):F.__views__.push({size:to(E,4294967295),type:c+(F.__dir__<0?"Right":"")}),F},tr.prototype[c+"Right"]=function(E){return this.reverse()[c](E).reverse()}}),uo(["filter","map","takeWhile"],function(c,g){var E=g+1,F=E==1||E==3;tr.prototype[c]=function(q){var dt=this.clone();return dt.__iteratees__.push({iteratee:Rn(q,3),type:E}),dt.__filtered__=dt.__filtered__||F,dt}}),uo(["head","last"],function(c,g){var E="take"+(g?"Right":"");tr.prototype[c]=function(){return this[E](1).value()[0]}}),uo(["initial","tail"],function(c,g){var E="drop"+(g?"":"Right");tr.prototype[c]=function(){return this.__filtered__?new tr(this):this[E](1)}}),tr.prototype.compact=function(){return this.filter(no)},tr.prototype.find=function(c){return this.filter(c).head()},tr.prototype.findLast=function(c){return this.reverse().find(c)},tr.prototype.invokeMap=fr(function(c,g){return typeof c=="function"?new tr(this):this.map(function(E){return gh(E,c,g)})}),tr.prototype.reject=function(c){return this.filter(Lh(Rn(c)))},tr.prototype.slice=function(c,g){c=or(c);var E=this;return E.__filtered__&&(c>0||g<0)?new tr(E):(c<0?E=E.takeRight(-c):c&&(E=E.drop(c)),g!==void 0&&(E=(g=or(g))<0?E.dropRight(-g):E.take(g-c)),E)},tr.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},tr.prototype.toArray=function(){return this.take(4294967295)},eo(tr.prototype,function(c,g){var E=/^(?:filter|find|map|reject)|While$/.test(g),F=/^(?:head|last)$/.test(g),q=st[F?"take"+(g=="last"?"Right":""):g],dt=F||/^find/.test(g);q&&(st.prototype[g]=function(){var Mt=this.__wrapped__,Lt=F?[1]:arguments,qt=Mt instanceof tr,Ee=Lt[0],me=qt||ir(Mt),De=function(Un){var mn=q.apply(st,Pa([Un],Lt));return F&&gn?mn[0]:mn};me&&E&&typeof Ee=="function"&&Ee.length!=1&&(qt=me=!1);var gn=this.__chain__,ln=!!this.__actions__.length,An=dt&&!gn,ve=qt&&!ln;if(!dt&&me){Mt=ve?Mt:new tr(this);var Xe=c.apply(Mt,Lt);return Xe.__actions__.push({func:Lc,args:[De],thisArg:void 0}),new co(Xe,gn)}return An&&ve?c.apply(this,Lt):(Xe=this.thru(De),An?F?Xe.value()[0]:Xe.value():Xe)})}),uo(["pop","push","shift","sort","splice","unshift"],function(c){var g=mu[c],E=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",F=/^(?:pop|shift)$/.test(c);st.prototype[c]=function(){var q=arguments;if(F&&!this.__chain__){var dt=this.value();return g.apply(ir(dt)?dt:[],q)}return this[E](function(Mt){return g.apply(ir(Mt)?Mt:[],q)})}}),eo(tr.prototype,function(c,g){var E=st[g];if(E){var F=E.name+"";pr.call(ia,F)||(ia[F]=[]),ia[F].push({name:g,func:E})}}),ia[pl(void 0,2).name]=[{name:"wrapper",func:void 0}],tr.prototype.clone=function(){var c=new tr(this.__wrapped__);return c.__actions__=qi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=qi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=qi(this.__views__),c},tr.prototype.reverse=function(){if(this.__filtered__){var c=new tr(this);c.__dir__=-1,c.__filtered__=!0}else(c=this.clone()).__dir__*=-1;return c},tr.prototype.value=function(){var c=this.__wrapped__.value(),g=this.__dir__,E=ir(c),F=g<0,q=E?c.length:0,dt=function(lr,In,jn){for(var Ei=-1,xo=jn.length;++Ei<xo;){var Ls=jn[Ei],ki=Ls.size;switch(Ls.type){case"drop":lr+=ki;break;case"dropRight":In-=ki;break;case"take":In=to(In,lr+ki);break;case"takeRight":lr=xi(lr,In-ki)}}return{start:lr,end:In}}(0,q,this.__views__),Mt=dt.start,Lt=dt.end,qt=Lt-Mt,Ee=F?Lt:Mt-1,me=this.__iteratees__,De=me.length,gn=0,ln=to(qt,this.__takeCount__);if(!E||!F&&q==qt&&ln==qt)return bu(c,this.__actions__);var An=[];t:for(;qt--&&gn<ln;){for(var ve=-1,Xe=c[Ee+=g];++ve<De;){var Un=me[ve],mn=Un.iteratee,Yn=Un.type,wn=mn(Xe);if(Yn==2)Xe=wn;else if(!wn){if(Yn==1)continue t;break t}}An[gn++]=Xe}return An},st.prototype.at=Np,st.prototype.chain=function(){return Hd(this)},st.prototype.commit=function(){return new co(this.value(),this.__chain__)},st.prototype.next=function(){this.__values__===void 0&&(this.__values__=Nh(this.value()));var c=this.__index__>=this.__values__.length;return{done:c,value:c?void 0:this.__values__[this.__index__++]}},st.prototype.plant=function(c){for(var g,E=this;E instanceof Ba;){var F=ql(E);F.__index__=0,F.__values__=void 0,g?q.__wrapped__=F:g=F;var q=F;E=E.__wrapped__}return q.__wrapped__=c,g},st.prototype.reverse=function(){var c=this.__wrapped__;if(c instanceof tr){var g=c;return this.__actions__.length&&(g=new tr(this)),(g=g.reverse()).__actions__.push({func:Lc,args:[Ud],thisArg:void 0}),new co(g,this.__chain__)}return this.thru(Ud)},st.prototype.toJSON=st.prototype.valueOf=st.prototype.value=function(){return bu(this.__wrapped__,this.__actions__)},st.prototype.first=st.prototype.head,uh&&(st.prototype[uh]=function(){return this}),st}();Er._=Bs,(lt=function(){return Bs}.call(w,S,w,pt))===void 0||(pt.exports=lt)}).call(this)}).call(this,S(4),S(11)(N))},function(N,w,S){var W;(function(pt){function lt(B,Q){var et=(65535&B)+(65535&Q);return(B>>16)+(Q>>16)+(et>>16)<<16|65535&et}function J(B,Q,et,ft,ae,Oe){return lt((ne=lt(lt(Q,B),lt(ft,Oe)))<<(bt=ae)|ne>>>32-bt,et);var ne,bt}function X(B,Q,et,ft,ae,Oe,ne){return J(Q&et|~Q&ft,B,Q,ae,Oe,ne)}function ct(B,Q,et,ft,ae,Oe,ne){return J(Q&ft|et&~ft,B,Q,ae,Oe,ne)}function tt(B,Q,et,ft,ae,Oe,ne){return J(Q^et^ft,B,Q,ae,Oe,ne)}function $(B,Q,et,ft,ae,Oe,ne){return J(et^(Q|~ft),B,Q,ae,Oe,ne)}function ut(B,Q){var et,ft,ae,Oe,ne;B[Q>>5]|=128<<Q%32,B[14+(Q+64>>>9<<4)]=Q;var bt=1732584193,Jt=-271733879,Kt=-1732584194,rt=271733878;for(et=0;et<B.length;et+=16)ft=bt,ae=Jt,Oe=Kt,ne=rt,bt=X(bt,Jt,Kt,rt,B[et],7,-680876936),rt=X(rt,bt,Jt,Kt,B[et+1],12,-389564586),Kt=X(Kt,rt,bt,Jt,B[et+2],17,606105819),Jt=X(Jt,Kt,rt,bt,B[et+3],22,-1044525330),bt=X(bt,Jt,Kt,rt,B[et+4],7,-176418897),rt=X(rt,bt,Jt,Kt,B[et+5],12,1200080426),Kt=X(Kt,rt,bt,Jt,B[et+6],17,-1473231341),Jt=X(Jt,Kt,rt,bt,B[et+7],22,-45705983),bt=X(bt,Jt,Kt,rt,B[et+8],7,1770035416),rt=X(rt,bt,Jt,Kt,B[et+9],12,-1958414417),Kt=X(Kt,rt,bt,Jt,B[et+10],17,-42063),Jt=X(Jt,Kt,rt,bt,B[et+11],22,-1990404162),bt=X(bt,Jt,Kt,rt,B[et+12],7,1804603682),rt=X(rt,bt,Jt,Kt,B[et+13],12,-40341101),Kt=X(Kt,rt,bt,Jt,B[et+14],17,-1502002290),bt=ct(bt,Jt=X(Jt,Kt,rt,bt,B[et+15],22,1236535329),Kt,rt,B[et+1],5,-165796510),rt=ct(rt,bt,Jt,Kt,B[et+6],9,-1069501632),Kt=ct(Kt,rt,bt,Jt,B[et+11],14,643717713),Jt=ct(Jt,Kt,rt,bt,B[et],20,-373897302),bt=ct(bt,Jt,Kt,rt,B[et+5],5,-701558691),rt=ct(rt,bt,Jt,Kt,B[et+10],9,38016083),Kt=ct(Kt,rt,bt,Jt,B[et+15],14,-660478335),Jt=ct(Jt,Kt,rt,bt,B[et+4],20,-405537848),bt=ct(bt,Jt,Kt,rt,B[et+9],5,568446438),rt=ct(rt,bt,Jt,Kt,B[et+14],9,-1019803690),Kt=ct(Kt,rt,bt,Jt,B[et+3],14,-187363961),Jt=ct(Jt,Kt,rt,bt,B[et+8],20,1163531501),bt=ct(bt,Jt,Kt,rt,B[et+13],5,-1444681467),rt=ct(rt,bt,Jt,Kt,B[et+2],9,-51403784),Kt=ct(Kt,rt,bt,Jt,B[et+7],14,1735328473),bt=tt(bt,Jt=ct(Jt,Kt,rt,bt,B[et+12],20,-1926607734),Kt,rt,B[et+5],4,-378558),rt=tt(rt,bt,Jt,Kt,B[et+8],11,-2022574463),Kt=tt(Kt,rt,bt,Jt,B[et+11],16,1839030562),Jt=tt(Jt,Kt,rt,bt,B[et+14],23,-35309556),bt=tt(bt,Jt,Kt,rt,B[et+1],4,-1530992060),rt=tt(rt,bt,Jt,Kt,B[et+4],11,1272893353),Kt=tt(Kt,rt,bt,Jt,B[et+7],16,-155497632),Jt=tt(Jt,Kt,rt,bt,B[et+10],23,-1094730640),bt=tt(bt,Jt,Kt,rt,B[et+13],4,681279174),rt=tt(rt,bt,Jt,Kt,B[et],11,-358537222),Kt=tt(Kt,rt,bt,Jt,B[et+3],16,-722521979),Jt=tt(Jt,Kt,rt,bt,B[et+6],23,76029189),bt=tt(bt,Jt,Kt,rt,B[et+9],4,-640364487),rt=tt(rt,bt,Jt,Kt,B[et+12],11,-421815835),Kt=tt(Kt,rt,bt,Jt,B[et+15],16,530742520),bt=$(bt,Jt=tt(Jt,Kt,rt,bt,B[et+2],23,-995338651),Kt,rt,B[et],6,-198630844),rt=$(rt,bt,Jt,Kt,B[et+7],10,1126891415),Kt=$(Kt,rt,bt,Jt,B[et+14],15,-1416354905),Jt=$(Jt,Kt,rt,bt,B[et+5],21,-57434055),bt=$(bt,Jt,Kt,rt,B[et+12],6,1700485571),rt=$(rt,bt,Jt,Kt,B[et+3],10,-1894986606),Kt=$(Kt,rt,bt,Jt,B[et+10],15,-1051523),Jt=$(Jt,Kt,rt,bt,B[et+1],21,-2054922799),bt=$(bt,Jt,Kt,rt,B[et+8],6,1873313359),rt=$(rt,bt,Jt,Kt,B[et+15],10,-30611744),Kt=$(Kt,rt,bt,Jt,B[et+6],15,-1560198380),Jt=$(Jt,Kt,rt,bt,B[et+13],21,1309151649),bt=$(bt,Jt,Kt,rt,B[et+4],6,-145523070),rt=$(rt,bt,Jt,Kt,B[et+11],10,-1120210379),Kt=$(Kt,rt,bt,Jt,B[et+2],15,718787259),Jt=$(Jt,Kt,rt,bt,B[et+9],21,-343485551),bt=lt(bt,ft),Jt=lt(Jt,ae),Kt=lt(Kt,Oe),rt=lt(rt,ne);return[bt,Jt,Kt,rt]}function kt(B){var Q,et="",ft=32*B.length;for(Q=0;Q<ft;Q+=8)et+=String.fromCharCode(B[Q>>5]>>>Q%32&255);return et}function Gt(B){var Q,et=[];for(et[(B.length>>2)-1]=void 0,Q=0;Q<et.length;Q+=1)et[Q]=0;var ft=8*B.length;for(Q=0;Q<ft;Q+=8)et[Q>>5]|=(255&B.charCodeAt(Q/8))<<Q%32;return et}function zt(B){var Q,et,ft="";for(et=0;et<B.length;et+=1)Q=B.charCodeAt(et),ft+="0123456789abcdef".charAt(Q>>>4&15)+"0123456789abcdef".charAt(15&Q);return ft}function L(B){return unescape(encodeURIComponent(B))}function k(B){return function(Q){return kt(ut(Gt(Q),8*Q.length))}(L(B))}function Y(B,Q){return function(et,ft){var ae,Oe,ne=Gt(et),bt=[],Jt=[];for(bt[15]=Jt[15]=void 0,ne.length>16&&(ne=ut(ne,8*et.length)),ae=0;ae<16;ae+=1)bt[ae]=909522486^ne[ae],Jt[ae]=1549556828^ne[ae];return Oe=ut(bt.concat(Gt(ft)),512+8*ft.length),kt(ut(Jt.concat(Oe),640))}(L(B),L(Q))}function ht(B,Q,et){return Q?et?Y(Q,B):zt(Y(Q,B)):et?k(B):zt(k(B))}(W=function(){return ht}.call(w,S,w,N))===void 0||(N.exports=W)})()},function(N,w,S){Object.defineProperty(w,"__esModule",{value:!0});var W=function(){function ct(tt,$){for(var ut=0;ut<$.length;ut++){var kt=$[ut];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(tt,kt.key,kt)}}return function(tt,$,ut){return $&&ct(tt.prototype,$),ut&&ct(tt,ut),tt}}();function pt(ct,tt){if(!(ct instanceof tt))throw new TypeError("Cannot call a class as a function")}var lt=function(){function ct(tt,$,ut){$===void 0&&($=!1),pt(this,ct),this._fn=tt,this._once=$,this._thisArg=ut,this._next=this._prev=this._owner=null}return W(ct,[{key:"detach",value:function(){return this._owner!==null&&(this._owner.detach(this),!0)}}]),ct}();function J(ct,tt){return ct._head?(ct._tail._next=tt,tt._prev=ct._tail,ct._tail=tt):(ct._head=tt,ct._tail=tt),tt._owner=ct,tt}var X=function(){function ct(){pt(this,ct),this._head=this._tail=void 0}return W(ct,[{key:"handlers",value:function(){var tt=!(arguments.length<=0||arguments[0]===void 0)&&arguments[0],$=this._head;if(tt)return!!$;for(var ut=[];$;)ut.push($),$=$._next;return ut}},{key:"has",value:function(tt){if(!(tt instanceof lt))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return tt._owner===this}},{key:"dispatch",value:function(){var tt=this._head;if(!tt)return!1;for(;tt;)tt._once&&this.detach(tt),tt._fn.apply(tt._thisArg,arguments),tt=tt._next;return!0}},{key:"add",value:function(tt){var $=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof tt!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return J(this,new lt(tt,!1,$))}},{key:"once",value:function(tt){var $=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof tt!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return J(this,new lt(tt,!0,$))}},{key:"detach",value:function(tt){if(!(tt instanceof lt))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return tt._owner!==this||(tt._prev&&(tt._prev._next=tt._next),tt._next&&(tt._next._prev=tt._prev),tt===this._head?(this._head=tt._next,tt._next===null&&(this._tail=null)):tt===this._tail&&(this._tail=tt._prev,this._tail._next=null),tt._owner=null),this}},{key:"detachAll",value:function(){var tt=this._head;if(!tt)return this;for(this._head=this._tail=null;tt;)tt._owner=null,tt=tt._next;return this}}]),ct}();X.MiniSignalBinding=lt,w.default=X,N.exports=w.default},function(N,w){var S;S=function(){return this}();try{S=S||new Function("return this")()}catch{typeof window=="object"&&(S=window)}N.exports=S},function(N,w,S){S.r(w),S.d(w,"ACESFilmicToneMapping",function(){return $i}),S.d(w,"AddEquation",function(){return ne}),S.d(w,"AddOperation",function(){return hr}),S.d(w,"AdditiveAnimationBlendMode",function(){return xd}),S.d(w,"AdditiveBlending",function(){return et}),S.d(w,"AlphaFormat",function(){return Dn}),S.d(w,"AlwaysDepth",function(){return Wn}),S.d(w,"AlwaysStencilFunc",function(){return Li}),S.d(w,"AmbientLight",function(){return uf}),S.d(w,"AmbientLightProbe",function(){return re}),S.d(w,"AnimationClip",function(){return sd}),S.d(w,"AnimationLoader",function(){return ag}),S.d(w,"AnimationMixer",function(){return ac}),S.d(w,"AnimationObjectGroup",function(){return rm}),S.d(w,"AnimationUtils",function(){return di}),S.d(w,"ArcCurve",function(){return In}),S.d(w,"ArrayCamera",function(){return zr}),S.d(w,"ArrowHelper",function(){return Nt}),S.d(w,"Audio",function(){return tm}),S.d(w,"AudioAnalyser",function(){return Nm}),S.d(w,"AudioContext",function(){return cf}),S.d(w,"AudioListener",function(){return Qf}),S.d(w,"AudioLoader",function(){return Lm}),S.d(w,"AxesHelper",function(){return ue}),S.d(w,"AxisHelper",function(){return r0}),S.d(w,"BackSide",function(){return L}),S.d(w,"BasicDepthPacking",function(){return Jn}),S.d(w,"BasicShadowMap",function(){return $}),S.d(w,"BinaryTextureLoader",function(){return l0}),S.d(w,"Bone",function(){return no}),S.d(w,"BooleanKeyframeTrack",function(){return Kh}),S.d(w,"BoundingBoxHelper",function(){return i0}),S.d(w,"Box2",function(){return pd}),S.d(w,"Box3",function(){return To}),S.d(w,"Box3Helper",function(){return _t}),S.d(w,"BoxBufferGeometry",function(){return ha}),S.d(w,"BoxGeometry",function(){return ha}),S.d(w,"BoxHelper",function(){return K}),S.d(w,"BufferAttribute",function(){return Kn}),S.d(w,"BufferGeometry",function(){return zn}),S.d(w,"BufferGeometryLoader",function(){return up}),S.d(w,"ByteType",function(){return gs}),S.d(w,"Cache",function(){return ec}),S.d(w,"Camera",function(){return jl}),S.d(w,"CameraHelper",function(){return j}),S.d(w,"CanvasRenderer",function(){return h0}),S.d(w,"CanvasTexture",function(){return qt}),S.d(w,"CatmullRomCurve3",function(){return Zs}),S.d(w,"CineonToneMapping",function(){return On}),S.d(w,"CircleBufferGeometry",function(){return me}),S.d(w,"CircleGeometry",function(){return me}),S.d(w,"ClampToEdgeWrapping",function(){return St}),S.d(w,"Clock",function(){return Zf}),S.d(w,"Color",function(){return pn}),S.d(w,"ColorKeyframeTrack",function(){return of}),S.d(w,"CompressedTexture",function(){return Lt}),S.d(w,"CompressedTextureLoader",function(){return Mm}),S.d(w,"ConeBufferGeometry",function(){return gn}),S.d(w,"ConeGeometry",function(){return gn}),S.d(w,"CubeCamera",function(){return Ec}),S.d(w,"CubeReflectionMapping",function(){return I}),S.d(w,"CubeRefractionMapping",function(){return z}),S.d(w,"CubeTexture",function(){return Vl}),S.d(w,"CubeTextureLoader",function(){return Uf}),S.d(w,"CubeUVReflectionMapping",function(){return nt}),S.d(w,"CubeUVRefractionMapping",function(){return it}),S.d(w,"CubicBezierCurve",function(){return va}),S.d(w,"CubicBezierCurve3",function(){return _a}),S.d(w,"CubicInterpolant",function(){return Hu}),S.d(w,"CullFaceBack",function(){return X}),S.d(w,"CullFaceFront",function(){return ct}),S.d(w,"CullFaceFrontBack",function(){return tt}),S.d(w,"CullFaceNone",function(){return J}),S.d(w,"Curve",function(){return wn}),S.d(w,"CurvePath",function(){return Cm}),S.d(w,"CustomBlending",function(){return Oe}),S.d(w,"CustomToneMapping",function(){return Pi}),S.d(w,"CylinderBufferGeometry",function(){return De}),S.d(w,"CylinderGeometry",function(){return De}),S.d(w,"Cylindrical",function(){return fg}),S.d(w,"DataTexture",function(){return Is}),S.d(w,"DataTexture2DArray",function(){return Wa}),S.d(w,"DataTexture3D",function(){return Wl}),S.d(w,"DataTextureLoader",function(){return Am}),S.d(w,"DataUtils",function(){return Je}),S.d(w,"DecrementStencilOp",function(){return sl}),S.d(w,"DecrementWrapStencilOp",function(){return ah}),S.d(w,"DefaultLoadingManager",function(){return nc}),S.d(w,"DepthFormat",function(){return dn}),S.d(w,"DepthStencilFormat",function(){return rr}),S.d(w,"DepthTexture",function(){return Ee}),S.d(w,"DirectionalLight",function(){return Wu}),S.d(w,"DirectionalLightHelper",function(){return b}),S.d(w,"DiscreteInterpolant",function(){return rf}),S.d(w,"DodecahedronBufferGeometry",function(){return An}),S.d(w,"DodecahedronGeometry",function(){return An}),S.d(w,"DoubleSide",function(){return k}),S.d(w,"DstAlphaFactor",function(){return Ye}),S.d(w,"DstColorFactor",function(){return Hn}),S.d(w,"DynamicBufferAttribute",function(){return qv}),S.d(w,"DynamicCopyUsage",function(){return uh}),S.d(w,"DynamicDrawUsage",function(){return al}),S.d(w,"DynamicReadUsage",function(){return wd}),S.d(w,"EdgesGeometry",function(){return Yn}),S.d(w,"EdgesHelper",function(){return o0}),S.d(w,"EllipseCurve",function(){return lr}),S.d(w,"EqualDepth",function(){return Ur}),S.d(w,"EqualStencilFunc",function(){return lh}),S.d(w,"EquirectangularReflectionMapping",function(){return H}),S.d(w,"EquirectangularRefractionMapping",function(){return at}),S.d(w,"Euler",function(){return aa}),S.d(w,"EventDispatcher",function(){return Fa}),S.d(w,"ExtrudeBufferGeometry",function(){return Ka}),S.d(w,"ExtrudeGeometry",function(){return Ka}),S.d(w,"FaceColors",function(){return zm}),S.d(w,"FileLoader",function(){return ba}),S.d(w,"FlatShading",function(){return Y}),S.d(w,"Float16BufferAttribute",function(){return bu}),S.d(w,"Float32Attribute",function(){return e0}),S.d(w,"Float32BufferAttribute",function(){return xn}),S.d(w,"Float64Attribute",function(){return n0}),S.d(w,"Float64BufferAttribute",function(){return Sc}),S.d(w,"FloatType",function(){return ee}),S.d(w,"Fog",function(){return tu}),S.d(w,"FogExp2",function(){return Ql}),S.d(w,"Font",function(){return oo}),S.d(w,"FontLoader",function(){return qf}),S.d(w,"FrontSide",function(){return zt}),S.d(w,"Frustum",function(){return ja}),S.d(w,"GLBufferAttribute",function(){return Um}),S.d(w,"GLSL1",function(){return Na}),S.d(w,"GLSL3",function(){return Td}),S.d(w,"GammaEncoding",function(){return Yt}),S.d(w,"GreaterDepth",function(){return qr}),S.d(w,"GreaterEqualDepth",function(){return Rr}),S.d(w,"GreaterEqualStencilFunc",function(){return Ll}),S.d(w,"GreaterStencilFunc",function(){return xp}),S.d(w,"GridHelper",function(){return s}),S.d(w,"Group",function(){return vl}),S.d(w,"HalfFloatType",function(){return Ft}),S.d(w,"HemisphereLight",function(){return sf}),S.d(w,"HemisphereLightHelper",function(){return r}),S.d(w,"HemisphereLightProbe",function(){return el}),S.d(w,"IcosahedronBufferGeometry",function(){return Uu}),S.d(w,"IcosahedronGeometry",function(){return Uu}),S.d(w,"ImageBitmapLoader",function(){return su}),S.d(w,"ImageLoader",function(){return op}),S.d(w,"ImageUtils",function(){return xs}),S.d(w,"ImmediateRenderObject",function(){return Ea}),S.d(w,"IncrementStencilOp",function(){return _p}),S.d(w,"IncrementWrapStencilOp",function(){return sh}),S.d(w,"InstancedBufferAttribute",function(){return hf}),S.d(w,"InstancedBufferGeometry",function(){return lp}),S.d(w,"InstancedInterleavedBuffer",function(){return im}),S.d(w,"InstancedMesh",function(){return qc}),S.d(w,"Int16Attribute",function(){return $v}),S.d(w,"Int16BufferAttribute",function(){return Lr}),S.d(w,"Int32Attribute",function(){return Qv}),S.d(w,"Int32BufferAttribute",function(){return Rd}),S.d(w,"Int8Attribute",function(){return Yv}),S.d(w,"Int8BufferAttribute",function(){return wc}),S.d(w,"IntType",function(){return Qu}),S.d(w,"InterleavedBuffer",function(){return _l}),S.d(w,"InterleavedBufferAttribute",function(){return ri}),S.d(w,"Interpolant",function(){return Js}),S.d(w,"InterpolateDiscrete",function(){return Rl}),S.d(w,"InterpolateLinear",function(){return Ii}),S.d(w,"InterpolateSmooth",function(){return Ia}),S.d(w,"InvertStencilOp",function(){return pr}),S.d(w,"JSONLoader",function(){return c0}),S.d(w,"KeepStencilOp",function(){return So}),S.d(w,"KeyframeTrack",function(){return Vo}),S.d(w,"LOD",function(){return Gh}),S.d(w,"LatheBufferGeometry",function(){return td}),S.d(w,"LatheGeometry",function(){return td}),S.d(w,"Layers",function(){return ul}),S.d(w,"LensFlare",function(){return p0}),S.d(w,"LessDepth",function(){return vn}),S.d(w,"LessEqualDepth",function(){return Pr}),S.d(w,"LessEqualStencilFunc",function(){return yp}),S.d(w,"LessStencilFunc",function(){return fc}),S.d(w,"Light",function(){return wa}),S.d(w,"LightProbe",function(){return ap}),S.d(w,"Line",function(){return Ya}),S.d(w,"Line3",function(){return Ta}),S.d(w,"LineBasicMaterial",function(){return ro}),S.d(w,"LineCurve",function(){return Bu}),S.d(w,"LineCurve3",function(){return Qd}),S.d(w,"LineDashedMaterial",function(){return Bf}),S.d(w,"LineLoop",function(){return nu}),S.d(w,"LinePieces",function(){return md}),S.d(w,"LineSegments",function(){return io}),S.d(w,"LineStrip",function(){return lc}),S.d(w,"LinearEncoding",function(){return Wr}),S.d(w,"LinearFilter",function(){return Qe}),S.d(w,"LinearInterpolant",function(){return nf}),S.d(w,"LinearMipMapLinearFilter",function(){return Ks}),S.d(w,"LinearMipMapNearestFilter",function(){return vi}),S.d(w,"LinearMipmapLinearFilter",function(){return Yr}),S.d(w,"LinearMipmapNearestFilter",function(){return Qn}),S.d(w,"LinearToneMapping",function(){return Jr}),S.d(w,"Loader",function(){return Wo}),S.d(w,"LoaderUtils",function(){return oc}),S.d(w,"LoadingManager",function(){return ya}),S.d(w,"LogLuvEncoding",function(){return Qt}),S.d(w,"LoopOnce",function(){return Ri}),S.d(w,"LoopPingPong",function(){return gp}),S.d(w,"LoopRepeat",function(){return vs}),S.d(w,"LuminanceAlphaFormat",function(){return gr}),S.d(w,"LuminanceFormat",function(){return mr}),S.d(w,"MOUSE",function(){return pt}),S.d(w,"Material",function(){return Ni}),S.d(w,"MaterialLoader",function(){return ld}),S.d(w,"Math",function(){return wp}),S.d(w,"MathUtils",function(){return wp}),S.d(w,"Matrix3",function(){return ji}),S.d(w,"Matrix4",function(){return En}),S.d(w,"MaxEquation",function(){return rt}),S.d(w,"Mesh",function(){return Bi}),S.d(w,"MeshBasicMaterial",function(){return Fi}),S.d(w,"MeshDepthMaterial",function(){return Nh}),S.d(w,"MeshDistanceMaterial",function(){return fs}),S.d(w,"MeshFaceMaterial",function(){return Vm}),S.d(w,"MeshLambertMaterial",function(){return Gu}),S.d(w,"MeshMatcapMaterial",function(){return ef}),S.d(w,"MeshNormalMaterial",function(){return Ff}),S.d(w,"MeshPhongMaterial",function(){return Df}),S.d(w,"MeshPhysicalMaterial",function(){return Of}),S.d(w,"MeshStandardMaterial",function(){return ip}),S.d(w,"MeshToonMaterial",function(){return Nf}),S.d(w,"MinEquation",function(){return Kt}),S.d(w,"MirroredRepeatWrapping",function(){return Ct}),S.d(w,"MixOperation",function(){return gi}),S.d(w,"MultiMaterial",function(){return Uv}),S.d(w,"MultiplyBlending",function(){return ae}),S.d(w,"MultiplyOperation",function(){return br}),S.d(w,"NearestFilter",function(){return wt}),S.d(w,"NearestMipMapLinearFilter",function(){return an}),S.d(w,"NearestMipMapNearestFilter",function(){return Bt}),S.d(w,"NearestMipmapLinearFilter",function(){return Le}),S.d(w,"NearestMipmapNearestFilter",function(){return Vt}),S.d(w,"NeverDepth",function(){return Bn}),S.d(w,"NeverStencilFunc",function(){return gf}),S.d(w,"NoBlending",function(){return B}),S.d(w,"NoColors",function(){return ff}),S.d(w,"NoToneMapping",function(){return Or}),S.d(w,"NormalAnimationBlendMode",function(){return Oa}),S.d(w,"NormalBlending",function(){return Q}),S.d(w,"NotEqualDepth",function(){return yr}),S.d(w,"NotEqualStencilFunc",function(){return qn}),S.d(w,"NumberKeyframeTrack",function(){return Qh}),S.d(w,"Object3D",function(){return ar}),S.d(w,"ObjectLoader",function(){return lg}),S.d(w,"ObjectSpaceNormalMap",function(){return ys}),S.d(w,"OctahedronBufferGeometry",function(){return Yh}),S.d(w,"OctahedronGeometry",function(){return Yh}),S.d(w,"OneFactor",function(){return Wt}),S.d(w,"OneMinusDstAlphaFactor",function(){return ke}),S.d(w,"OneMinusDstColorFactor",function(){return Ke}),S.d(w,"OneMinusSrcAlphaFactor",function(){return fe}),S.d(w,"OneMinusSrcColorFactor",function(){return Xt}),S.d(w,"OrthographicCamera",function(){return sp}),S.d(w,"PCFShadowMap",function(){return ut}),S.d(w,"PCFSoftShadowMap",function(){return kt}),S.d(w,"PMREMGenerator",function(){return jr}),S.d(w,"ParametricBufferGeometry",function(){return rp}),S.d(w,"ParametricGeometry",function(){return rp}),S.d(w,"Particle",function(){return Hv}),S.d(w,"ParticleBasicMaterial",function(){return Vv}),S.d(w,"ParticleSystem",function(){return zv}),S.d(w,"ParticleSystemMaterial",function(){return Wv}),S.d(w,"Path",function(){return rc}),S.d(w,"PerspectiveCamera",function(){return Yi}),S.d(w,"Plane",function(){return Ko}),S.d(w,"PlaneBufferGeometry",function(){return pa}),S.d(w,"PlaneGeometry",function(){return pa}),S.d(w,"PlaneHelper",function(){return Tt}),S.d(w,"PointCloud",function(){return Gv}),S.d(w,"PointCloudMaterial",function(){return jv}),S.d(w,"PointLight",function(){return Wf}),S.d(w,"PointLightHelper",function(){return gg}),S.d(w,"Points",function(){return q}),S.d(w,"PointsMaterial",function(){return xl}),S.d(w,"PolarGridHelper",function(){return u}),S.d(w,"PolyhedronBufferGeometry",function(){return ln}),S.d(w,"PolyhedronGeometry",function(){return ln}),S.d(w,"PositionalAudio",function(){return cg}),S.d(w,"PropertyBinding",function(){return Br}),S.d(w,"PropertyMixer",function(){return ud}),S.d(w,"QuadraticBezierCurve",function(){return ru}),S.d(w,"QuadraticBezierCurve3",function(){return zh}),S.d(w,"Quaternion",function(){return Oi}),S.d(w,"QuaternionKeyframeTrack",function(){return tc}),S.d(w,"QuaternionLinearInterpolant",function(){return kf}),S.d(w,"REVISION",function(){return W}),S.d(w,"RGBADepthPacking",function(){return is}),S.d(w,"RGBAFormat",function(){return Tn}),S.d(w,"RGBAIntegerFormat",function(){return $r}),S.d(w,"RGBA_ASTC_10x10_Format",function(){return oi}),S.d(w,"RGBA_ASTC_10x5_Format",function(){return Pa}),S.d(w,"RGBA_ASTC_10x6_Format",function(){return El}),S.d(w,"RGBA_ASTC_10x8_Format",function(){return dc}),S.d(w,"RGBA_ASTC_12x10_Format",function(){return Ml}),S.d(w,"RGBA_ASTC_12x12_Format",function(){return yi}),S.d(w,"RGBA_ASTC_4x4_Format",function(){return _d}),S.d(w,"RGBA_ASTC_5x4_Format",function(){return uo}),S.d(w,"RGBA_ASTC_5x5_Format",function(){return _i}),S.d(w,"RGBA_ASTC_6x5_Format",function(){return fu}),S.d(w,"RGBA_ASTC_6x6_Format",function(){return Ca}),S.d(w,"RGBA_ASTC_8x5_Format",function(){return nh}),S.d(w,"RGBA_ASTC_8x6_Format",function(){return dr}),S.d(w,"RGBA_ASTC_8x8_Format",function(){return ti}),S.d(w,"RGBA_BPTC_Format",function(){return Fs}),S.d(w,"RGBA_ETC2_EAC_Format",function(){return Do}),S.d(w,"RGBA_PVRTC_2BPPV1_Format",function(){return th}),S.d(w,"RGBA_PVRTC_4BPPV1_Format",function(){return du}),S.d(w,"RGBA_S3TC_DXT1_Format",function(){return cu}),S.d(w,"RGBA_S3TC_DXT3_Format",function(){return Ki}),S.d(w,"RGBA_S3TC_DXT5_Format",function(){return Qr}),S.d(w,"RGBDEncoding",function(){return Mr}),S.d(w,"RGBEEncoding",function(){return _e}),S.d(w,"RGBEFormat",function(){return hn}),S.d(w,"RGBFormat",function(){return yn}),S.d(w,"RGBIntegerFormat",function(){return Er}),S.d(w,"RGBM16Encoding",function(){return Xn}),S.d(w,"RGBM7Encoding",function(){return tn}),S.d(w,"RGB_ETC1_Format",function(){return pu}),S.d(w,"RGB_ETC2_Format",function(){return eh}),S.d(w,"RGB_PVRTC_2BPPV1_Format",function(){return cc}),S.d(w,"RGB_PVRTC_4BPPV1_Format",function(){return hc}),S.d(w,"RGB_S3TC_DXT1_Format",function(){return ns}),S.d(w,"RGFormat",function(){return Gr}),S.d(w,"RGIntegerFormat",function(){return ii}),S.d(w,"RawShaderMaterial",function(){return $h}),S.d(w,"Ray",function(){return ka}),S.d(w,"Raycaster",function(){return dg}),S.d(w,"RectAreaLight",function(){return ic}),S.d(w,"RedFormat",function(){return ui}),S.d(w,"RedIntegerFormat",function(){return Zn}),S.d(w,"ReinhardToneMapping",function(){return Oo}),S.d(w,"RepeatWrapping",function(){return yt}),S.d(w,"ReplaceStencilOp",function(){return mu}),S.d(w,"ReverseSubtractEquation",function(){return Jt}),S.d(w,"RingBufferGeometry",function(){return ed}),S.d(w,"RingGeometry",function(){return ed}),S.d(w,"SRGB8_ALPHA8_ASTC_10x10_Format",function(){return hi}),S.d(w,"SRGB8_ALPHA8_ASTC_10x5_Format",function(){return Cl}),S.d(w,"SRGB8_ALPHA8_ASTC_10x6_Format",function(){return pc}),S.d(w,"SRGB8_ALPHA8_ASTC_10x8_Format",function(){return wo}),S.d(w,"SRGB8_ALPHA8_ASTC_12x10_Format",function(){return Pl}),S.d(w,"SRGB8_ALPHA8_ASTC_12x12_Format",function(){return yd}),S.d(w,"SRGB8_ALPHA8_ASTC_4x4_Format",function(){return rs}),S.d(w,"SRGB8_ALPHA8_ASTC_5x4_Format",function(){return ol}),S.d(w,"SRGB8_ALPHA8_ASTC_5x5_Format",function(){return Ra}),S.d(w,"SRGB8_ALPHA8_ASTC_6x5_Format",function(){return rh}),S.d(w,"SRGB8_ALPHA8_ASTC_6x6_Format",function(){return ih}),S.d(w,"SRGB8_ALPHA8_ASTC_8x5_Format",function(){return Al}),S.d(w,"SRGB8_ALPHA8_ASTC_8x6_Format",function(){return ei}),S.d(w,"SRGB8_ALPHA8_ASTC_8x8_Format",function(){return oh}),S.d(w,"Scene",function(){return Fh}),S.d(w,"SceneUtils",function(){return d0}),S.d(w,"ShaderChunk",function(){return vr}),S.d(w,"ShaderLib",function(){return _o}),S.d(w,"ShaderMaterial",function(){return vo}),S.d(w,"ShadowMaterial",function(){return Lf}),S.d(w,"Shape",function(){return ju}),S.d(w,"ShapeBufferGeometry",function(){return Zh}),S.d(w,"ShapeGeometry",function(){return Zh}),S.d(w,"ShapePath",function(){return au}),S.d(w,"ShapeUtils",function(){return Os}),S.d(w,"ShortType",function(){return Qs}),S.d(w,"Skeleton",function(){return Fu}),S.d(w,"SkeletonHelper",function(){return om}),S.d(w,"SkinnedMesh",function(){return jc}),S.d(w,"SmoothShading",function(){return ht}),S.d(w,"Sphere",function(){return bs}),S.d(w,"SphereBufferGeometry",function(){return Jh}),S.d(w,"SphereGeometry",function(){return Jh}),S.d(w,"Spherical",function(){return pg}),S.d(w,"SphericalHarmonics3",function(){return Re}),S.d(w,"SplineCurve",function(){return iu}),S.d(w,"SpotLight",function(){return ad}),S.d(w,"SpotLightHelper",function(){return mg}),S.d(w,"Sprite",function(){return Du}),S.d(w,"SpriteMaterial",function(){return yo}),S.d(w,"SrcAlphaFactor",function(){return le}),S.d(w,"SrcAlphaSaturateFactor",function(){return Ln}),S.d(w,"SrcColorFactor",function(){return te}),S.d(w,"StaticCopyUsage",function(){return Sd}),S.d(w,"StaticDrawUsage",function(){return Da}),S.d(w,"StaticReadUsage",function(){return Qi}),S.d(w,"StereoCamera",function(){return ug}),S.d(w,"StreamCopyUsage",function(){return Ol}),S.d(w,"StreamDrawUsage",function(){return mc}),S.d(w,"StreamReadUsage",function(){return gc}),S.d(w,"StringKeyframeTrack",function(){return Qa}),S.d(w,"SubtractEquation",function(){return bt}),S.d(w,"SubtractiveBlending",function(){return ft}),S.d(w,"TOUCH",function(){return lt}),S.d(w,"TangentSpaceNormalMap",function(){return Hr}),S.d(w,"TetrahedronBufferGeometry",function(){return nd}),S.d(w,"TetrahedronGeometry",function(){return nd}),S.d(w,"TextBufferGeometry",function(){return tf}),S.d(w,"TextGeometry",function(){return tf}),S.d(w,"Texture",function(){return ni}),S.d(w,"TextureLoader",function(){return Gf}),S.d(w,"TorusBufferGeometry",function(){return rd}),S.d(w,"TorusGeometry",function(){return rd}),S.d(w,"TorusKnotBufferGeometry",function(){return id}),S.d(w,"TorusKnotGeometry",function(){return id}),S.d(w,"Triangle",function(){return bi}),S.d(w,"TriangleFanDrawMode",function(){return vp}),S.d(w,"TriangleStripDrawMode",function(){return Zo}),S.d(w,"TrianglesDrawMode",function(){return Il}),S.d(w,"TubeBufferGeometry",function(){return od}),S.d(w,"TubeGeometry",function(){return od}),S.d(w,"UVMapping",function(){return ao}),S.d(w,"Uint16Attribute",function(){return Kv}),S.d(w,"Uint16BufferAttribute",function(){return er}),S.d(w,"Uint32Attribute",function(){return t0}),S.d(w,"Uint32BufferAttribute",function(){return fo}),S.d(w,"Uint8Attribute",function(){return Zv}),S.d(w,"Uint8BufferAttribute",function(){return Pd}),S.d(w,"Uint8ClampedAttribute",function(){return Jv}),S.d(w,"Uint8ClampedBufferAttribute",function(){return wi}),S.d(w,"Uniform",function(){return cd}),S.d(w,"UniformsLib",function(){return Ze}),S.d(w,"UniformsUtils",function(){return Od}),S.d(w,"UnsignedByteType",function(){return lo}),S.d(w,"UnsignedInt248Type",function(){return un}),S.d(w,"UnsignedIntType",function(){return Yo}),S.d(w,"UnsignedShort4444Type",function(){return Se}),S.d(w,"UnsignedShort5551Type",function(){return Ge}),S.d(w,"UnsignedShort565Type",function(){return Ve}),S.d(w,"UnsignedShortType",function(){return Aa}),S.d(w,"VSMShadowMap",function(){return Gt}),S.d(w,"Vector2",function(){return He}),S.d(w,"Vector3",function(){return gt}),S.d(w,"Vector4",function(){return Ir}),S.d(w,"VectorKeyframeTrack",function(){return zu}),S.d(w,"Vertex",function(){return Xv}),S.d(w,"VertexColors",function(){return jm}),S.d(w,"VideoTexture",function(){return Mt}),S.d(w,"WebGL1Renderer",function(){return qp}),S.d(w,"WebGLCubeRenderTarget",function(){return ds}),S.d(w,"WebGLMultipleRenderTargets",function(){return ia}),S.d(w,"WebGLMultisampleRenderTarget",function(){return vc}),S.d(w,"WebGLRenderTarget",function(){return Fo}),S.d(w,"WebGLRenderTargetCube",function(){return u0}),S.d(w,"WebGLRenderer",function(){return Fr}),S.d(w,"WebGLUtils",function(){return Gc}),S.d(w,"WireframeGeometry",function(){return If}),S.d(w,"WireframeHelper",function(){return s0}),S.d(w,"WrapAroundEnding",function(){return _s}),S.d(w,"XHRLoader",function(){return a0}),S.d(w,"ZeroCurvatureEnding",function(){return ta}),S.d(w,"ZeroFactor",function(){return Ut}),S.d(w,"ZeroSlopeEnding",function(){return La}),S.d(w,"ZeroStencilOp",function(){return bd}),S.d(w,"sRGBEncoding",function(){return Bs});/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2010-2021 Three.js Authors
|
|
30
30
|
* SPDX-License-Identifier: MIT
|
|
@@ -3177,7 +3177,7 @@ void main() {
|
|
|
3177
3177
|
return inputTexelToLinear( color );
|
|
3178
3178
|
|
|
3179
3179
|
}
|
|
3180
|
-
`}const lc=0,md=1,ff=0,zm=1,jm=2;function Vm(m){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),m}function kv(m=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),m.isMultiMaterial=!0,m.materials=m,m.clone=function(){return m.slice()},m}function Uv(m,t){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new q(m,t)}function Gv(m){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new Du(m)}function Hv(m,t){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new q(m,t)}function zv(m){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function jv(m){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function Vv(m){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function Wv(m,t,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new gt(m,t,i)}function Xv(m,t){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Kn(m,t).setUsage(al)}function qv(m,t){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new wc(m,t)}function Yv(m,t){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Pd(m,t)}function Zv(m,t){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new wi(m,t)}function Jv(m,t){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Lr(m,t)}function $v(m,t){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new er(m,t)}function Kv(m,t){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Rd(m,t)}function Qv(m,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new fo(m,t)}function t0(m,t){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new xn(m,t)}function e0(m,t){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Sc(m,t)}function n0(m){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new ue(m)}function r0(m,t){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new K(m,t)}function i0(m,t){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new io(new Yn(m.geometry),new ro({color:t!==void 0?t:16777215}))}function o0(m,t){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new io(new If(m.geometry),new ro({color:t!==void 0?t:16777215}))}function s0(m){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new ba(m)}function a0(m){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Am(m)}function l0(m,t,i){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new ds(m,i)}function u0(){console.error("THREE.CanvasRenderer has been removed")}function h0(){console.error("THREE.JSONLoader has been removed.")}wn.create=function(m,t){return console.log("THREE.Curve.create() has been deprecated"),m.prototype=Object.create(wn.prototype),m.prototype.constructor=m,m.prototype.getPoint=t,m},rc.prototype.fromPoints=function(m){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(m)},s.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},om.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Wo.prototype.extractUrlBase=function(m){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),oc.extractUrlBase(m)},Wo.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},pd.prototype.center=function(m){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(m)},pd.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},pd.prototype.isIntersectionBox=function(m){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},pd.prototype.size=function(m){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(m)},To.prototype.center=function(m){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(m)},To.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},To.prototype.isIntersectionBox=function(m){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},To.prototype.isIntersectionSphere=function(m){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(m)},To.prototype.size=function(m){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(m)},bs.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},ja.prototype.setFromMatrix=function(m){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(m)},Ta.prototype.center=function(m){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(m)},ji.prototype.flattenToArrayOffset=function(m,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(m,t)},ji.prototype.multiplyVector3=function(m){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),m.applyMatrix3(this)},ji.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},ji.prototype.applyToBufferAttribute=function(m){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),m.applyMatrix3(this)},ji.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},ji.prototype.getInverse=function(m){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(m).invert()},En.prototype.extractPosition=function(m){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(m)},En.prototype.flattenToArrayOffset=function(m,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(m,t)},En.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),new gt().setFromMatrixColumn(this,3)},En.prototype.setRotationFromQuaternion=function(m){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(m)},En.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},En.prototype.multiplyVector3=function(m){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.multiplyVector4=function(m){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},En.prototype.rotateAxis=function(m){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),m.transformDirection(this)},En.prototype.crossVector=function(m){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},En.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},En.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},En.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},En.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},En.prototype.applyToBufferAttribute=function(m){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},En.prototype.makeFrustum=function(m,t,i,a,l,d){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(m,t,a,i,l,d)},En.prototype.getInverse=function(m){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(m).invert()},Ko.prototype.isIntersectionLine=function(m){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(m)},Oi.prototype.multiplyVector3=function(m){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),m.applyQuaternion(this)},Oi.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},ka.prototype.isIntersectionBox=function(m){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},ka.prototype.isIntersectionPlane=function(m){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(m)},ka.prototype.isIntersectionSphere=function(m){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(m)},bi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},bi.prototype.barycoordFromPoint=function(m,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(m,t)},bi.prototype.midpoint=function(m){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(m)},bi.prototypenormal=function(m){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(m)},bi.prototype.plane=function(m){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(m)},bi.barycoordFromPoint=function(m,t,i,a,l){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),bi.getBarycoord(m,t,i,a,l)},bi.normal=function(m,t,i,a){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),bi.getNormal(m,t,i,a)},ju.prototype.extractAllPoints=function(m){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(m)},ju.prototype.extrude=function(m){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Ka(this,m)},ju.prototype.makeGeometry=function(m){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Zh(this,m)},He.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},He.prototype.distanceToManhattan=function(m){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(m)},He.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},gt.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},gt.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},gt.prototype.getPositionFromMatrix=function(m){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(m)},gt.prototype.getScaleFromMatrix=function(m){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(m)},gt.prototype.getColumnFromMatrix=function(m,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,m)},gt.prototype.applyProjection=function(m){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(m)},gt.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},gt.prototype.distanceToManhattan=function(m){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(m)},gt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Ir.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},Ir.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},ar.prototype.getChildByName=function(m){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(m)},ar.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},ar.prototype.translate=function(m,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,m)},ar.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},ar.prototype.applyMatrix=function(m){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(m)},Object.defineProperties(ar.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(m){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=m}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Bi.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(Bi.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Il},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),jc.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Yi.prototype.setLens=function(m,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),t!==void 0&&(this.filmGauge=t),this.setFocalLength(m)},Object.defineProperties(wa.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(m){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=m}},shadowCameraLeft:{set:function(m){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=m}},shadowCameraRight:{set:function(m){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=m}},shadowCameraTop:{set:function(m){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=m}},shadowCameraBottom:{set:function(m){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=m}},shadowCameraNear:{set:function(m){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=m}},shadowCameraFar:{set:function(m){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=m}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(m){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=m}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(m){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=m}},shadowMapHeight:{set:function(m){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=m}}}),Object.defineProperties(Kn.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===al},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(al)}}}),Kn.prototype.setDynamic=function(m){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(m===!0?al:Da),this},Kn.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Kn.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},zn.prototype.addIndex=function(m){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(m)},zn.prototype.addAttribute=function(m,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?m==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(m,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(m,new Kn(arguments[1],arguments[2])))},zn.prototype.addDrawCall=function(m,t,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(m,t)},zn.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},zn.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},zn.prototype.removeAttribute=function(m){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(m)},zn.prototype.applyMatrix=function(m){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(m)},Object.defineProperties(zn.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),_l.prototype.setDynamic=function(m){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(m===!0?al:Da),this},_l.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Ka.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Ka.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Ka.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Fh.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},cd.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Ni.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new pn}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(m){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=m===Y}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(m){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=m}}}),Object.defineProperties(vo.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(m){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=m}}}),Fr.prototype.clearTarget=function(m,t,i,a){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(m),this.clear(t,i,a)},Fr.prototype.animate=function(m){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(m)},Fr.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Fr.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Fr.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Fr.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Fr.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Fr.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Fr.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Fr.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Fr.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Fr.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Fr.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Fr.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Fr.prototype.enableScissorTest=function(m){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(m)},Fr.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Fr.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Fr.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Fr.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Fr.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Fr.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Fr.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Fr.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Fr.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Fr.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Fr.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(m){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=m}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(m){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=m}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(m){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=m===!0?Bs:Wr}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(or.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Fo.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(m){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=m}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(m){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=m}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(m){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=m}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(m){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=m}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(m){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=m}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(m){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=m}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(m){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=m}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(m){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=m}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(m){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=m}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(m){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=m}}}),tm.prototype.load=function(m){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const t=this;return new Lm().load(m,function(i){t.setBuffer(i)}),this},Nm.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Ec.prototype.updateCubeMap=function(m,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(m,t)},Ec.prototype.clear=function(m,t,i,a){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(m,t,i,a)},xs.crossOrigin=void 0,xs.loadTexture=function(m,t,i,a){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const l=new Gf;l.setCrossOrigin(this.crossOrigin);const d=l.load(m,i,void 0,a);return t&&(d.mapping=t),d},xs.loadTextureCube=function(m,t,i,a){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const l=new Uf;l.setCrossOrigin(this.crossOrigin);const d=l.load(m,i,void 0,a);return t&&(d.mapping=t),d},xs.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},xs.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const c0={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function d0(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:W}})),typeof window!="undefined"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=W)},function(N,w,S){var W=S(28),pt=S(29);function lt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}w.parse=B,w.resolve=function(Q,et){return B(Q,!1,!0).resolve(et)},w.resolveObject=function(Q,et){return Q?B(Q,!1,!0).resolveObject(et):et},w.format=function(Q){return pt.isString(Q)&&(Q=B(Q)),Q instanceof lt?Q.format():lt.prototype.format.call(Q)},w.Url=lt;var J=/^([a-z0-9.+-]+:)/i,X=/:[0-9]*$/,ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,tt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
3180
|
+
`}const lc=0,md=1,ff=0,zm=1,jm=2;function Vm(m){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),m}function Uv(m=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),m.isMultiMaterial=!0,m.materials=m,m.clone=function(){return m.slice()},m}function Gv(m,t){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new q(m,t)}function Hv(m){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new Du(m)}function zv(m,t){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new q(m,t)}function jv(m){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function Vv(m){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function Wv(m){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new xl(m)}function Xv(m,t,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new gt(m,t,i)}function qv(m,t){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Kn(m,t).setUsage(al)}function Yv(m,t){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new wc(m,t)}function Zv(m,t){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Pd(m,t)}function Jv(m,t){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new wi(m,t)}function $v(m,t){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Lr(m,t)}function Kv(m,t){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new er(m,t)}function Qv(m,t){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Rd(m,t)}function t0(m,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new fo(m,t)}function e0(m,t){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new xn(m,t)}function n0(m,t){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Sc(m,t)}function r0(m){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new ue(m)}function i0(m,t){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new K(m,t)}function o0(m,t){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new io(new Yn(m.geometry),new ro({color:t!==void 0?t:16777215}))}function s0(m,t){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new io(new If(m.geometry),new ro({color:t!==void 0?t:16777215}))}function a0(m){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new ba(m)}function l0(m){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Am(m)}function u0(m,t,i){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new ds(m,i)}function h0(){console.error("THREE.CanvasRenderer has been removed")}function c0(){console.error("THREE.JSONLoader has been removed.")}wn.create=function(m,t){return console.log("THREE.Curve.create() has been deprecated"),m.prototype=Object.create(wn.prototype),m.prototype.constructor=m,m.prototype.getPoint=t,m},rc.prototype.fromPoints=function(m){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(m)},s.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},om.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Wo.prototype.extractUrlBase=function(m){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),oc.extractUrlBase(m)},Wo.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},pd.prototype.center=function(m){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(m)},pd.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},pd.prototype.isIntersectionBox=function(m){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},pd.prototype.size=function(m){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(m)},To.prototype.center=function(m){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(m)},To.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},To.prototype.isIntersectionBox=function(m){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},To.prototype.isIntersectionSphere=function(m){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(m)},To.prototype.size=function(m){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(m)},bs.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},ja.prototype.setFromMatrix=function(m){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(m)},Ta.prototype.center=function(m){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(m)},ji.prototype.flattenToArrayOffset=function(m,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(m,t)},ji.prototype.multiplyVector3=function(m){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),m.applyMatrix3(this)},ji.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},ji.prototype.applyToBufferAttribute=function(m){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),m.applyMatrix3(this)},ji.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},ji.prototype.getInverse=function(m){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(m).invert()},En.prototype.extractPosition=function(m){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(m)},En.prototype.flattenToArrayOffset=function(m,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(m,t)},En.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),new gt().setFromMatrixColumn(this,3)},En.prototype.setRotationFromQuaternion=function(m){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(m)},En.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},En.prototype.multiplyVector3=function(m){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.multiplyVector4=function(m){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},En.prototype.rotateAxis=function(m){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),m.transformDirection(this)},En.prototype.crossVector=function(m){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},En.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},En.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},En.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},En.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},En.prototype.applyToBufferAttribute=function(m){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),m.applyMatrix4(this)},En.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},En.prototype.makeFrustum=function(m,t,i,a,l,d){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(m,t,a,i,l,d)},En.prototype.getInverse=function(m){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(m).invert()},Ko.prototype.isIntersectionLine=function(m){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(m)},Oi.prototype.multiplyVector3=function(m){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),m.applyQuaternion(this)},Oi.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},ka.prototype.isIntersectionBox=function(m){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(m)},ka.prototype.isIntersectionPlane=function(m){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(m)},ka.prototype.isIntersectionSphere=function(m){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(m)},bi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},bi.prototype.barycoordFromPoint=function(m,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(m,t)},bi.prototype.midpoint=function(m){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(m)},bi.prototypenormal=function(m){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(m)},bi.prototype.plane=function(m){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(m)},bi.barycoordFromPoint=function(m,t,i,a,l){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),bi.getBarycoord(m,t,i,a,l)},bi.normal=function(m,t,i,a){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),bi.getNormal(m,t,i,a)},ju.prototype.extractAllPoints=function(m){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(m)},ju.prototype.extrude=function(m){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Ka(this,m)},ju.prototype.makeGeometry=function(m){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Zh(this,m)},He.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},He.prototype.distanceToManhattan=function(m){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(m)},He.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},gt.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},gt.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},gt.prototype.getPositionFromMatrix=function(m){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(m)},gt.prototype.getScaleFromMatrix=function(m){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(m)},gt.prototype.getColumnFromMatrix=function(m,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,m)},gt.prototype.applyProjection=function(m){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(m)},gt.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},gt.prototype.distanceToManhattan=function(m){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(m)},gt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Ir.prototype.fromAttribute=function(m,t,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(m,t,i)},Ir.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},ar.prototype.getChildByName=function(m){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(m)},ar.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},ar.prototype.translate=function(m,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,m)},ar.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},ar.prototype.applyMatrix=function(m){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(m)},Object.defineProperties(ar.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(m){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=m}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Bi.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(Bi.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Il},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),jc.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Yi.prototype.setLens=function(m,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),t!==void 0&&(this.filmGauge=t),this.setFocalLength(m)},Object.defineProperties(wa.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(m){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=m}},shadowCameraLeft:{set:function(m){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=m}},shadowCameraRight:{set:function(m){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=m}},shadowCameraTop:{set:function(m){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=m}},shadowCameraBottom:{set:function(m){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=m}},shadowCameraNear:{set:function(m){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=m}},shadowCameraFar:{set:function(m){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=m}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(m){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=m}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(m){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=m}},shadowMapHeight:{set:function(m){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=m}}}),Object.defineProperties(Kn.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===al},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(al)}}}),Kn.prototype.setDynamic=function(m){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(m===!0?al:Da),this},Kn.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Kn.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},zn.prototype.addIndex=function(m){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(m)},zn.prototype.addAttribute=function(m,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?m==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(m,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(m,new Kn(arguments[1],arguments[2])))},zn.prototype.addDrawCall=function(m,t,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(m,t)},zn.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},zn.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},zn.prototype.removeAttribute=function(m){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(m)},zn.prototype.applyMatrix=function(m){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(m)},Object.defineProperties(zn.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),_l.prototype.setDynamic=function(m){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(m===!0?al:Da),this},_l.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Ka.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Ka.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Ka.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Fh.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},cd.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Ni.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new pn}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(m){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=m===Y}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(m){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=m}}}),Object.defineProperties(vo.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(m){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=m}}}),Fr.prototype.clearTarget=function(m,t,i,a){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(m),this.clear(t,i,a)},Fr.prototype.animate=function(m){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(m)},Fr.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Fr.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Fr.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Fr.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Fr.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Fr.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Fr.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Fr.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Fr.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Fr.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Fr.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Fr.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Fr.prototype.enableScissorTest=function(m){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(m)},Fr.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Fr.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Fr.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Fr.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Fr.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Fr.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Fr.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Fr.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Fr.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Fr.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Fr.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(m){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=m}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(m){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=m}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(m){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=m===!0?Bs:Wr}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(or.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Fo.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(m){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=m}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(m){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=m}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(m){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=m}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(m){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=m}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(m){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=m}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(m){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=m}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(m){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=m}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(m){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=m}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(m){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=m}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(m){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=m}}}),tm.prototype.load=function(m){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const t=this;return new Lm().load(m,function(i){t.setBuffer(i)}),this},Nm.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Ec.prototype.updateCubeMap=function(m,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(m,t)},Ec.prototype.clear=function(m,t,i,a){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(m,t,i,a)},xs.crossOrigin=void 0,xs.loadTexture=function(m,t,i,a){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const l=new Gf;l.setCrossOrigin(this.crossOrigin);const d=l.load(m,i,void 0,a);return t&&(d.mapping=t),d},xs.loadTextureCube=function(m,t,i,a){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const l=new Uf;l.setCrossOrigin(this.crossOrigin);const d=l.load(m,i,void 0,a);return t&&(d.mapping=t),d},xs.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},xs.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const d0={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function p0(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:W}})),typeof window!="undefined"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=W)},function(N,w,S){var W=S(28),pt=S(29);function lt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}w.parse=B,w.resolve=function(Q,et){return B(Q,!1,!0).resolve(et)},w.resolveObject=function(Q,et){return Q?B(Q,!1,!0).resolveObject(et):et},w.format=function(Q){return pt.isString(Q)&&(Q=B(Q)),Q instanceof lt?Q.format():lt.prototype.format.call(Q)},w.Url=lt;var J=/^([a-z0-9.+-]+:)/i,X=/:[0-9]*$/,ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,tt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
3181
3181
|
`," "]),$=["'"].concat(tt),ut=["%","/","?",";","#"].concat($),kt=["/","?","#"],Gt=/^[+a-z0-9A-Z_-]{0,63}$/,zt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,L={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ht=S(30);function B(Q,et,ft){if(Q&&pt.isObject(Q)&&Q instanceof lt)return Q;var ae=new lt;return ae.parse(Q,et,ft),ae}lt.prototype.parse=function(Q,et,ft){if(!pt.isString(Q))throw new TypeError("Parameter 'url' must be a string, not "+typeof Q);var ae=Q.indexOf("?"),Oe=ae!==-1&&ae<Q.indexOf("#")?"?":"#",ne=Q.split(Oe);ne[0]=ne[0].replace(/\\/g,"/");var bt=Q=ne.join(Oe);if(bt=bt.trim(),!ft&&Q.split("#").length===1){var Jt=ct.exec(bt);if(Jt)return this.path=bt,this.href=bt,this.pathname=Jt[1],Jt[2]?(this.search=Jt[2],this.query=et?ht.parse(this.search.substr(1)):this.search.substr(1)):et&&(this.search="",this.query={}),this}var Kt=J.exec(bt);if(Kt){var rt=(Kt=Kt[0]).toLowerCase();this.protocol=rt,bt=bt.substr(Kt.length)}if(ft||Kt||bt.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ut=bt.substr(0,2)==="//";!Ut||Kt&&k[Kt]||(bt=bt.substr(2),this.slashes=!0)}if(!k[Kt]&&(Ut||Kt&&!Y[Kt])){for(var Wt,te,Xt=-1,le=0;le<kt.length;le++)(fe=bt.indexOf(kt[le]))!==-1&&(Xt===-1||fe<Xt)&&(Xt=fe);for((te=Xt===-1?bt.lastIndexOf("@"):bt.lastIndexOf("@",Xt))!==-1&&(Wt=bt.slice(0,te),bt=bt.slice(te+1),this.auth=decodeURIComponent(Wt)),Xt=-1,le=0;le<ut.length;le++){var fe;(fe=bt.indexOf(ut[le]))!==-1&&(Xt===-1||fe<Xt)&&(Xt=fe)}Xt===-1&&(Xt=bt.length),this.host=bt.slice(0,Xt),bt=bt.slice(Xt),this.parseHost(),this.hostname=this.hostname||"";var Ye=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ye)for(var ke=this.hostname.split(/\./),Hn=(le=0,ke.length);le<Hn;le++){var Ke=ke[le];if(Ke&&!Ke.match(Gt)){for(var Ln="",Bn=0,Wn=Ke.length;Bn<Wn;Bn++)Ke.charCodeAt(Bn)>127?Ln+="x":Ln+=Ke[Bn];if(!Ln.match(Gt)){var vn=ke.slice(0,le),Pr=ke.slice(le+1),Ur=Ke.match(zt);Ur&&(vn.push(Ur[1]),Pr.unshift(Ur[2])),Pr.length&&(bt="/"+Pr.join(".")+bt),this.hostname=vn.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ye||(this.hostname=W.toASCII(this.hostname));var Rr=this.port?":"+this.port:"",qr=this.hostname||"";this.host=qr+Rr,this.href+=this.host,Ye&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),bt[0]!=="/"&&(bt="/"+bt))}if(!L[rt])for(le=0,Hn=$.length;le<Hn;le++){var yr=$[le];if(bt.indexOf(yr)!==-1){var br=encodeURIComponent(yr);br===yr&&(br=escape(yr)),bt=bt.split(yr).join(br)}}var gi=bt.indexOf("#");gi!==-1&&(this.hash=bt.substr(gi),bt=bt.slice(0,gi));var hr=bt.indexOf("?");if(hr!==-1?(this.search=bt.substr(hr),this.query=bt.substr(hr+1),et&&(this.query=ht.parse(this.query)),bt=bt.slice(0,hr)):et&&(this.search="",this.query={}),bt&&(this.pathname=bt),Y[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Rr=this.pathname||"";var Or=this.search||"";this.path=Rr+Or}return this.href=this.format(),this},lt.prototype.format=function(){var Q=this.auth||"";Q&&(Q=(Q=encodeURIComponent(Q)).replace(/%3A/i,":"),Q+="@");var et=this.protocol||"",ft=this.pathname||"",ae=this.hash||"",Oe=!1,ne="";this.host?Oe=Q+this.host:this.hostname&&(Oe=Q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Oe+=":"+this.port)),this.query&&pt.isObject(this.query)&&Object.keys(this.query).length&&(ne=ht.stringify(this.query));var bt=this.search||ne&&"?"+ne||"";return et&&et.substr(-1)!==":"&&(et+=":"),this.slashes||(!et||Y[et])&&Oe!==!1?(Oe="//"+(Oe||""),ft&&ft.charAt(0)!=="/"&&(ft="/"+ft)):Oe||(Oe=""),ae&&ae.charAt(0)!=="#"&&(ae="#"+ae),bt&&bt.charAt(0)!=="?"&&(bt="?"+bt),et+Oe+(ft=ft.replace(/[?#]/g,function(Jt){return encodeURIComponent(Jt)}))+(bt=bt.replace("#","%23"))+ae},lt.prototype.resolve=function(Q){return this.resolveObject(B(Q,!1,!0)).format()},lt.prototype.resolveObject=function(Q){if(pt.isString(Q)){var et=new lt;et.parse(Q,!1,!0),Q=et}for(var ft=new lt,ae=Object.keys(this),Oe=0;Oe<ae.length;Oe++){var ne=ae[Oe];ft[ne]=this[ne]}if(ft.hash=Q.hash,Q.href==="")return ft.href=ft.format(),ft;if(Q.slashes&&!Q.protocol){for(var bt=Object.keys(Q),Jt=0;Jt<bt.length;Jt++){var Kt=bt[Jt];Kt!=="protocol"&&(ft[Kt]=Q[Kt])}return Y[ft.protocol]&&ft.hostname&&!ft.pathname&&(ft.path=ft.pathname="/"),ft.href=ft.format(),ft}if(Q.protocol&&Q.protocol!==ft.protocol){if(!Y[Q.protocol]){for(var rt=Object.keys(Q),Ut=0;Ut<rt.length;Ut++){var Wt=rt[Ut];ft[Wt]=Q[Wt]}return ft.href=ft.format(),ft}if(ft.protocol=Q.protocol,Q.host||k[Q.protocol])ft.pathname=Q.pathname;else{for(var te=(Q.pathname||"").split("/");te.length&&!(Q.host=te.shift()););Q.host||(Q.host=""),Q.hostname||(Q.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),ft.pathname=te.join("/")}if(ft.search=Q.search,ft.query=Q.query,ft.host=Q.host||"",ft.auth=Q.auth,ft.hostname=Q.hostname||Q.host,ft.port=Q.port,ft.pathname||ft.search){var Xt=ft.pathname||"",le=ft.search||"";ft.path=Xt+le}return ft.slashes=ft.slashes||Q.slashes,ft.href=ft.format(),ft}var fe=ft.pathname&&ft.pathname.charAt(0)==="/",Ye=Q.host||Q.pathname&&Q.pathname.charAt(0)==="/",ke=Ye||fe||ft.host&&Q.pathname,Hn=ke,Ke=ft.pathname&&ft.pathname.split("/")||[],Ln=(te=Q.pathname&&Q.pathname.split("/")||[],ft.protocol&&!Y[ft.protocol]);if(Ln&&(ft.hostname="",ft.port=null,ft.host&&(Ke[0]===""?Ke[0]=ft.host:Ke.unshift(ft.host)),ft.host="",Q.protocol&&(Q.hostname=null,Q.port=null,Q.host&&(te[0]===""?te[0]=Q.host:te.unshift(Q.host)),Q.host=null),ke=ke&&(te[0]===""||Ke[0]==="")),Ye)ft.host=Q.host||Q.host===""?Q.host:ft.host,ft.hostname=Q.hostname||Q.hostname===""?Q.hostname:ft.hostname,ft.search=Q.search,ft.query=Q.query,Ke=te;else if(te.length)Ke||(Ke=[]),Ke.pop(),Ke=Ke.concat(te),ft.search=Q.search,ft.query=Q.query;else if(!pt.isNullOrUndefined(Q.search))return Ln&&(ft.hostname=ft.host=Ke.shift(),(Ur=!!(ft.host&&ft.host.indexOf("@")>0)&&ft.host.split("@"))&&(ft.auth=Ur.shift(),ft.host=ft.hostname=Ur.shift())),ft.search=Q.search,ft.query=Q.query,pt.isNull(ft.pathname)&&pt.isNull(ft.search)||(ft.path=(ft.pathname?ft.pathname:"")+(ft.search?ft.search:"")),ft.href=ft.format(),ft;if(!Ke.length)return ft.pathname=null,ft.search?ft.path="/"+ft.search:ft.path=null,ft.href=ft.format(),ft;for(var Bn=Ke.slice(-1)[0],Wn=(ft.host||Q.host||Ke.length>1)&&(Bn==="."||Bn==="..")||Bn==="",vn=0,Pr=Ke.length;Pr>=0;Pr--)(Bn=Ke[Pr])==="."?Ke.splice(Pr,1):Bn===".."?(Ke.splice(Pr,1),vn++):vn&&(Ke.splice(Pr,1),vn--);if(!ke&&!Hn)for(;vn--;vn)Ke.unshift("..");!ke||Ke[0]===""||Ke[0]&&Ke[0].charAt(0)==="/"||Ke.unshift(""),Wn&&Ke.join("/").substr(-1)!=="/"&&Ke.push("");var Ur,Rr=Ke[0]===""||Ke[0]&&Ke[0].charAt(0)==="/";return Ln&&(ft.hostname=ft.host=Rr?"":Ke.length?Ke.shift():"",(Ur=!!(ft.host&&ft.host.indexOf("@")>0)&&ft.host.split("@"))&&(ft.auth=Ur.shift(),ft.host=ft.hostname=Ur.shift())),(ke=ke||ft.host&&Ke.length)&&!Rr&&Ke.unshift(""),Ke.length?ft.pathname=Ke.join("/"):(ft.pathname=null,ft.path=null),pt.isNull(ft.pathname)&&pt.isNull(ft.search)||(ft.path=(ft.pathname?ft.pathname:"")+(ft.search?ft.search:"")),ft.auth=Q.auth||ft.auth,ft.slashes=ft.slashes||Q.slashes,ft.href=ft.format(),ft},lt.prototype.parseHost=function(){var Q=this.host,et=X.exec(Q);et&&((et=et[0])!==":"&&(this.port=et.substr(1)),Q=Q.substr(0,Q.length-et.length)),Q&&(this.hostname=Q)}},function(N,w,S){(function(W){N.exports=function pt(lt,J,X){function ct(ut,kt){if(!J[ut]){if(!lt[ut]){if(tt)return tt(ut,!0);var Gt=new Error("Cannot find module '"+ut+"'");throw Gt.code="MODULE_NOT_FOUND",Gt}var zt=J[ut]={exports:{}};lt[ut][0].call(zt.exports,function(L){var k=lt[ut][1][L];return ct(k||L)},zt,zt.exports,pt,lt,J,X)}return J[ut].exports}for(var tt=!1,$=0;$<X.length;$++)ct(X[$]);return ct}({1:[function(pt,lt,J){(function(X){var ct,tt,$=X.MutationObserver||X.WebKitMutationObserver;if($){var ut=0,kt=new $(k),Gt=X.document.createTextNode("");kt.observe(Gt,{characterData:!0}),ct=function(){Gt.data=ut=++ut%2}}else if(X.setImmediate||X.MessageChannel===void 0)ct="document"in X&&"onreadystatechange"in X.document.createElement("script")?function(){var Y=X.document.createElement("script");Y.onreadystatechange=function(){k(),Y.onreadystatechange=null,Y.parentNode.removeChild(Y),Y=null},X.document.documentElement.appendChild(Y)}:function(){setTimeout(k,0)};else{var zt=new X.MessageChannel;zt.port1.onmessage=k,ct=function(){zt.port2.postMessage(0)}}var L=[];function k(){var Y,ht;tt=!0;for(var B=L.length;B;){for(ht=L,L=[],Y=-1;++Y<B;)ht[Y]();B=L.length}tt=!1}lt.exports=function(Y){L.push(Y)!==1||tt||ct()}}).call(this,W!==void 0?W:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(pt,lt,J){var X=pt(1);function ct(){}var tt={},$=["REJECTED"],ut=["FULFILLED"],kt=["PENDING"];function Gt(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=kt,this.queue=[],this.outcome=void 0,B!==ct&&Y(this,B)}function zt(B,Q,et){this.promise=B,typeof Q=="function"&&(this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled),typeof et=="function"&&(this.onRejected=et,this.callRejected=this.otherCallRejected)}function L(B,Q,et){X(function(){var ft;try{ft=Q(et)}catch(ae){return tt.reject(B,ae)}ft===B?tt.reject(B,new TypeError("Cannot resolve promise with itself")):tt.resolve(B,ft)})}function k(B){var Q=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof Q=="function")return function(){Q.apply(B,arguments)}}function Y(B,Q){var et=!1;function ft(ne){et||(et=!0,tt.reject(B,ne))}function ae(ne){et||(et=!0,tt.resolve(B,ne))}var Oe=ht(function(){Q(ae,ft)});Oe.status==="error"&&ft(Oe.value)}function ht(B,Q){var et={};try{et.value=B(Q),et.status="success"}catch(ft){et.status="error",et.value=ft}return et}lt.exports=Gt,Gt.prototype.catch=function(B){return this.then(null,B)},Gt.prototype.then=function(B,Q){if(typeof B!="function"&&this.state===ut||typeof Q!="function"&&this.state===$)return this;var et=new this.constructor(ct);return this.state!==kt?L(et,this.state===ut?B:Q,this.outcome):this.queue.push(new zt(et,B,Q)),et},zt.prototype.callFulfilled=function(B){tt.resolve(this.promise,B)},zt.prototype.otherCallFulfilled=function(B){L(this.promise,this.onFulfilled,B)},zt.prototype.callRejected=function(B){tt.reject(this.promise,B)},zt.prototype.otherCallRejected=function(B){L(this.promise,this.onRejected,B)},tt.resolve=function(B,Q){var et=ht(k,Q);if(et.status==="error")return tt.reject(B,et.value);var ft=et.value;if(ft)Y(B,ft);else{B.state=ut,B.outcome=Q;for(var ae=-1,Oe=B.queue.length;++ae<Oe;)B.queue[ae].callFulfilled(Q)}return B},tt.reject=function(B,Q){B.state=$,B.outcome=Q;for(var et=-1,ft=B.queue.length;++et<ft;)B.queue[et].callRejected(Q);return B},Gt.resolve=function(B){return B instanceof this?B:tt.resolve(new this(ct),B)},Gt.reject=function(B){var Q=new this(ct);return tt.reject(Q,B)},Gt.all=function(B){var Q=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var et=B.length,ft=!1;if(!et)return this.resolve([]);for(var ae=new Array(et),Oe=0,ne=-1,bt=new this(ct);++ne<et;)Jt(B[ne],ne);return bt;function Jt(Kt,rt){Q.resolve(Kt).then(function(Ut){ae[rt]=Ut,++Oe!==et||ft||(ft=!0,tt.resolve(bt,ae))},function(Ut){ft||(ft=!0,tt.reject(bt,Ut))})}},Gt.race=function(B){var Q=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var et=B.length,ft=!1;if(!et)return this.resolve([]);for(var ae,Oe=-1,ne=new this(ct);++Oe<et;)ae=B[Oe],Q.resolve(ae).then(function(bt){ft||(ft=!0,tt.resolve(ne,bt))},function(bt){ft||(ft=!0,tt.reject(ne,bt))});return ne}},{1:1}],3:[function(pt,lt,J){(function(X){typeof X.Promise!="function"&&(X.Promise=pt(2))}).call(this,W!==void 0?W:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(pt,lt,J){var X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},ct=function(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch{return}}();function tt(I,z){I=I||[],z=z||{};try{return new Blob(I,z)}catch(nt){if(nt.name!=="TypeError")throw nt;for(var H=new(typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder),at=0;at<I.length;at+=1)H.append(I[at]);return H.getBlob(z.type)}}typeof Promise=="undefined"&&pt(3);var $=Promise;function ut(I,z){z&&I.then(function(H){z(null,H)},function(H){z(H)})}function kt(I,z,H){typeof z=="function"&&I.then(z),typeof H=="function"&&I.catch(H)}function Gt(I){return typeof I!="string"&&(console.warn(I+" used as a key, but it is not a string."),I=String(I)),I}function zt(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var L=void 0,k={},Y=Object.prototype.toString;function ht(I){return typeof L=="boolean"?$.resolve(L):function(z){return new $(function(H){var at=z.transaction("local-forage-detect-blob-support","readwrite"),nt=tt([""]);at.objectStore("local-forage-detect-blob-support").put(nt,"key"),at.onabort=function(it){it.preventDefault(),it.stopPropagation(),H(!1)},at.oncomplete=function(){var it=navigator.userAgent.match(/Chrome\/(\d+)/),yt=navigator.userAgent.match(/Edge\//);H(yt||!it||parseInt(it[1],10)>=43)}}).catch(function(){return!1})}(I).then(function(z){return L=z})}function B(I){var z=k[I.name],H={};H.promise=new $(function(at,nt){H.resolve=at,H.reject=nt}),z.deferredOperations.push(H),z.dbReady?z.dbReady=z.dbReady.then(function(){return H.promise}):z.dbReady=H.promise}function Q(I){var z=k[I.name].deferredOperations.pop();if(z)return z.resolve(),z.promise}function et(I,z){var H=k[I.name].deferredOperations.pop();if(H)return H.reject(z),H.promise}function ft(I,z){return new $(function(H,at){if(k[I.name]=k[I.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},I.db){if(!z)return H(I.db);B(I),I.db.close()}var nt=[I.name];z&&nt.push(I.version);var it=ct.open.apply(ct,nt);z&&(it.onupgradeneeded=function(yt){var St=it.result;try{St.createObjectStore(I.storeName),yt.oldVersion<=1&&St.createObjectStore("local-forage-detect-blob-support")}catch(Ct){if(Ct.name!=="ConstraintError")throw Ct;console.warn('The database "'+I.name+'" has been upgraded from version '+yt.oldVersion+" to version "+yt.newVersion+', but the storage "'+I.storeName+'" already exists.')}}),it.onerror=function(yt){yt.preventDefault(),at(it.error)},it.onsuccess=function(){var yt=it.result;yt.onversionchange=function(St){St.target.close()},H(yt),Q(I)}})}function ae(I){return ft(I,!1)}function Oe(I){return ft(I,!0)}function ne(I,z){if(!I.db)return!0;var H=!I.db.objectStoreNames.contains(I.storeName),at=I.version<I.db.version,nt=I.version>I.db.version;if(at&&(I.version!==z&&console.warn('The database "'+I.name+`" can't be downgraded from version `+I.db.version+" to version "+I.version+"."),I.version=I.db.version),nt||H){if(H){var it=I.db.version+1;it>I.version&&(I.version=it)}return!0}return!1}function bt(I){return tt([function(z){for(var H=z.length,at=new ArrayBuffer(H),nt=new Uint8Array(at),it=0;it<H;it++)nt[it]=z.charCodeAt(it);return at}(atob(I.data))],{type:I.type})}function Jt(I){return I&&I.__local_forage_encoded_blob}function Kt(I){var z=this,H=z._initReady().then(function(){var at=k[z._dbInfo.name];if(at&&at.dbReady)return at.dbReady});return kt(H,I,I),H}function rt(I,z,H,at){at===void 0&&(at=1);try{var nt=I.db.transaction(I.storeName,z);H(null,nt)}catch(it){if(at>0&&(!I.db||it.name==="InvalidStateError"||it.name==="NotFoundError"))return $.resolve().then(function(){if(!I.db||it.name==="NotFoundError"&&!I.db.objectStoreNames.contains(I.storeName)&&I.version<=I.db.version)return I.db&&(I.version=I.db.version+1),Oe(I)}).then(function(){return function(yt){B(yt);for(var St=k[yt.name],Ct=St.forages,wt=0;wt<Ct.length;wt++){var Vt=Ct[wt];Vt._dbInfo.db&&(Vt._dbInfo.db.close(),Vt._dbInfo.db=null)}return yt.db=null,ae(yt).then(function(Bt){return yt.db=Bt,ne(yt)?Oe(yt):Bt}).then(function(Bt){yt.db=St.db=Bt;for(var Le=0;Le<Ct.length;Le++)Ct[Le]._dbInfo.db=Bt}).catch(function(Bt){throw et(yt,Bt),Bt})}(I).then(function(){rt(I,z,H,at-1)})}).catch(H);H(it)}}var Ut={_driver:"asyncStorage",_initStorage:function(I){var z=this,H={db:null};if(I)for(var at in I)H[at]=I[at];var nt=k[H.name];nt||(nt={forages:[],db:null,dbReady:null,deferredOperations:[]},k[H.name]=nt),nt.forages.push(z),z._initReady||(z._initReady=z.ready,z.ready=Kt);var it=[];function yt(){return $.resolve()}for(var St=0;St<nt.forages.length;St++){var Ct=nt.forages[St];Ct!==z&&it.push(Ct._initReady().catch(yt))}var wt=nt.forages.slice(0);return $.all(it).then(function(){return H.db=nt.db,ae(H)}).then(function(Vt){return H.db=Vt,ne(H,z._defaultConfig.version)?Oe(H):Vt}).then(function(Vt){H.db=nt.db=Vt,z._dbInfo=H;for(var Bt=0;Bt<wt.length;Bt++){var Le=wt[Bt];Le!==z&&(Le._dbInfo.db=H.db,Le._dbInfo.version=H.version)}})},_support:function(){try{if(!ct||!ct.open)return!1;var I=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),z=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!I||z)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch{return!1}}(),iterate:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).openCursor(),wt=1;Ct.onsuccess=function(){var Vt=Ct.result;if(Vt){var Bt=Vt.value;Jt(Bt)&&(Bt=bt(Bt));var Le=I(Bt,Vt.key,wt++);Le!==void 0?nt(Le):Vt.continue()}else nt()},Ct.onerror=function(){it(Ct.error)}}catch(Vt){it(Vt)}})}).catch(it)});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).get(I);Ct.onsuccess=function(){var wt=Ct.result;wt===void 0&&(wt=null),Jt(wt)&&(wt=bt(wt)),nt(wt)},Ct.onerror=function(){it(Ct.error)}}catch(wt){it(wt)}})}).catch(it)});return ut(at,z),at},setItem:function(I,z,H){var at=this;I=Gt(I);var nt=new $(function(it,yt){var St;at.ready().then(function(){return St=at._dbInfo,Y.call(z)==="[object Blob]"?ht(St.db).then(function(Ct){return Ct?z:(wt=z,new $(function(Vt,Bt){var Le=new FileReader;Le.onerror=Bt,Le.onloadend=function(an){var Qe=btoa(an.target.result||"");Vt({__local_forage_encoded_blob:!0,data:Qe,type:wt.type})},Le.readAsBinaryString(wt)}));var wt}):z}).then(function(Ct){rt(at._dbInfo,"readwrite",function(wt,Vt){if(wt)return yt(wt);try{var Bt=Vt.objectStore(at._dbInfo.storeName);Ct===null&&(Ct=void 0);var Le=Bt.put(Ct,I);Vt.oncomplete=function(){Ct===void 0&&(Ct=null),it(Ct)},Vt.onabort=Vt.onerror=function(){var an=Le.error?Le.error:Le.transaction.error;yt(an)}}catch(an){yt(an)}})}).catch(yt)});return ut(nt,H),nt},removeItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readwrite",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).delete(I);St.oncomplete=function(){nt()},St.onerror=function(){it(Ct.error)},St.onabort=function(){var wt=Ct.error?Ct.error:Ct.transaction.error;it(wt)}}catch(wt){it(wt)}})}).catch(it)});return ut(at,z),at},clear:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readwrite",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).clear();yt.oncomplete=function(){at()},yt.onabort=yt.onerror=function(){var Ct=St.error?St.error:St.transaction.error;nt(Ct)}}catch(Ct){nt(Ct)}})}).catch(nt)});return ut(H,I),H},length:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readonly",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).count();St.onsuccess=function(){at(St.result)},St.onerror=function(){nt(St.error)}}catch(Ct){nt(Ct)}})}).catch(nt)});return ut(H,I),H},key:function(I,z){var H=this,at=new $(function(nt,it){I<0?nt(null):H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName),wt=!1,Vt=Ct.openKeyCursor();Vt.onsuccess=function(){var Bt=Vt.result;Bt?I===0||wt?nt(Bt.key):(wt=!0,Bt.advance(I)):nt(null)},Vt.onerror=function(){it(Vt.error)}}catch(Bt){it(Bt)}})}).catch(it)});return ut(at,z),at},keys:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readonly",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).openKeyCursor(),Ct=[];St.onsuccess=function(){var wt=St.result;wt?(Ct.push(wt.key),wt.continue()):at(Ct)},St.onerror=function(){nt(St.error)}}catch(wt){nt(wt)}})}).catch(nt)});return ut(H,I),H},dropInstance:function(I,z){z=zt.apply(this,arguments);var H=this.config();(I=typeof I!="function"&&I||{}).name||(I.name=I.name||H.name,I.storeName=I.storeName||H.storeName);var at,nt=this;if(I.name){var it=I.name===H.name&&nt._dbInfo.db,yt=it?$.resolve(nt._dbInfo.db):ae(I).then(function(St){var Ct=k[I.name],wt=Ct.forages;Ct.db=St;for(var Vt=0;Vt<wt.length;Vt++)wt[Vt]._dbInfo.db=St;return St});at=I.storeName?yt.then(function(St){if(St.objectStoreNames.contains(I.storeName)){var Ct=St.version+1;B(I);var wt=k[I.name],Vt=wt.forages;St.close();for(var Bt=0;Bt<Vt.length;Bt++){var Le=Vt[Bt];Le._dbInfo.db=null,Le._dbInfo.version=Ct}return new $(function(an,Qe){var Qn=ct.open(I.name,Ct);Qn.onerror=function(vi){Qn.result.close(),Qe(vi)},Qn.onupgradeneeded=function(){Qn.result.deleteObjectStore(I.storeName)},Qn.onsuccess=function(){var vi=Qn.result;vi.close(),an(vi)}}).then(function(an){wt.db=an;for(var Qe=0;Qe<Vt.length;Qe++){var Qn=Vt[Qe];Qn._dbInfo.db=an,Q(Qn._dbInfo)}}).catch(function(an){throw(et(I,an)||$.resolve()).catch(function(){}),an})}}):yt.then(function(St){B(I);var Ct=k[I.name],wt=Ct.forages;St.close();for(var Vt=0;Vt<wt.length;Vt++)wt[Vt]._dbInfo.db=null;return new $(function(Bt,Le){var an=ct.deleteDatabase(I.name);an.onerror=function(){var Qe=an.result;Qe&&Qe.close(),Le(an.error)},an.onblocked=function(){console.warn('dropInstance blocked for database "'+I.name+'" until all open connections are closed')},an.onsuccess=function(){var Qe=an.result;Qe&&Qe.close(),Bt(Qe)}}).then(function(Bt){Ct.db=Bt;for(var Le=0;Le<wt.length;Le++)Q(wt[Le]._dbInfo)}).catch(function(Bt){throw(et(I,Bt)||$.resolve()).catch(function(){}),Bt})})}else at=$.reject("Invalid arguments");return ut(at,z),at}},Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=/^~~local_forage_type~([^~]+)~/,Xt="__lfsc__:".length,le=Xt+"arbf".length,fe=Object.prototype.toString;function Ye(I){var z,H,at,nt,it,yt=.75*I.length,St=I.length,Ct=0;I[I.length-1]==="="&&(yt--,I[I.length-2]==="="&&yt--);var wt=new ArrayBuffer(yt),Vt=new Uint8Array(wt);for(z=0;z<St;z+=4)H=Wt.indexOf(I[z]),at=Wt.indexOf(I[z+1]),nt=Wt.indexOf(I[z+2]),it=Wt.indexOf(I[z+3]),Vt[Ct++]=H<<2|at>>4,Vt[Ct++]=(15&at)<<4|nt>>2,Vt[Ct++]=(3&nt)<<6|63⁢return wt}function ke(I){var z,H=new Uint8Array(I),at="";for(z=0;z<H.length;z+=3)at+=Wt[H[z]>>2],at+=Wt[(3&H[z])<<4|H[z+1]>>4],at+=Wt[(15&H[z+1])<<2|H[z+2]>>6],at+=Wt[63&H[z+2]];return H.length%3==2?at=at.substring(0,at.length-1)+"=":H.length%3==1&&(at=at.substring(0,at.length-2)+"=="),at}var Hn={serialize:function(I,z){var H="";if(I&&(H=fe.call(I)),I&&(H==="[object ArrayBuffer]"||I.buffer&&fe.call(I.buffer)==="[object ArrayBuffer]")){var at,nt="__lfsc__:";I instanceof ArrayBuffer?(at=I,nt+="arbf"):(at=I.buffer,H==="[object Int8Array]"?nt+="si08":H==="[object Uint8Array]"?nt+="ui08":H==="[object Uint8ClampedArray]"?nt+="uic8":H==="[object Int16Array]"?nt+="si16":H==="[object Uint16Array]"?nt+="ur16":H==="[object Int32Array]"?nt+="si32":H==="[object Uint32Array]"?nt+="ui32":H==="[object Float32Array]"?nt+="fl32":H==="[object Float64Array]"?nt+="fl64":z(new Error("Failed to get type for BinaryArray"))),z(nt+ke(at))}else if(H==="[object Blob]"){var it=new FileReader;it.onload=function(){var yt="~~local_forage_type~"+I.type+"~"+ke(this.result);z("__lfsc__:blob"+yt)},it.readAsArrayBuffer(I)}else try{z(JSON.stringify(I))}catch(yt){console.error("Couldn't convert value into a JSON string: ",I),z(null,yt)}},deserialize:function(I){if(I.substring(0,Xt)!=="__lfsc__:")return JSON.parse(I);var z,H=I.substring(le),at=I.substring(Xt,le);if(at==="blob"&&te.test(H)){var nt=H.match(te);z=nt[1],H=H.substring(nt[0].length)}var it=Ye(H);switch(at){case"arbf":return it;case"blob":return tt([it],{type:z});case"si08":return new Int8Array(it);case"ui08":return new Uint8Array(it);case"uic8":return new Uint8ClampedArray(it);case"si16":return new Int16Array(it);case"ur16":return new Uint16Array(it);case"si32":return new Int32Array(it);case"ui32":return new Uint32Array(it);case"fl32":return new Float32Array(it);case"fl64":return new Float64Array(it);default:throw new Error("Unkown type: "+at)}},stringToBuffer:Ye,bufferToString:ke};function Ke(I,z,H,at){I.executeSql("CREATE TABLE IF NOT EXISTS "+z.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],H,at)}function Ln(I,z,H,at,nt,it){I.executeSql(H,at,nt,function(yt,St){St.code===St.SYNTAX_ERR?yt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[z.storeName],function(Ct,wt){wt.rows.length?it(Ct,St):Ke(Ct,z,function(){Ct.executeSql(H,at,nt,it)},it)},it):it(yt,St)},it)}function Bn(I,z,H,at){var nt=this;I=Gt(I);var it=new $(function(yt,St){nt.ready().then(function(){z===void 0&&(z=null);var Ct=z,wt=nt._dbInfo;wt.serializer.serialize(z,function(Vt,Bt){Bt?St(Bt):wt.db.transaction(function(Le){Ln(Le,wt,"INSERT OR REPLACE INTO "+wt.storeName+" (key, value) VALUES (?, ?)",[I,Vt],function(){yt(Ct)},function(an,Qe){St(Qe)})},function(Le){if(Le.code===Le.QUOTA_ERR){if(at>0)return void yt(Bn.apply(nt,[I,Ct,H,at-1]));St(Le)}})})}).catch(St)});return ut(it,H),it}function Wn(I){return new $(function(z,H){I.transaction(function(at){at.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(nt,it){for(var yt=[],St=0;St<it.rows.length;St++)yt.push(it.rows.item(St).name);z({db:I,storeNames:yt})},function(nt,it){H(it)})},function(at){H(at)})})}var vn={_driver:"webSQLStorage",_initStorage:function(I){var z=this,H={db:null};if(I)for(var at in I)H[at]=typeof I[at]!="string"?I[at].toString():I[at];var nt=new $(function(it,yt){try{H.db=openDatabase(H.name,String(H.version),H.description,H.size)}catch(St){return yt(St)}H.db.transaction(function(St){Ke(St,H,function(){z._dbInfo=H,it()},function(Ct,wt){yt(wt)})},yt)});return H.serializer=Hn,nt},_support:typeof openDatabase=="function",iterate:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT * FROM "+yt.storeName,[],function(Ct,wt){for(var Vt=wt.rows,Bt=Vt.length,Le=0;Le<Bt;Le++){var an=Vt.item(Le),Qe=an.value;if(Qe&&(Qe=yt.serializer.deserialize(Qe)),(Qe=I(Qe,an.key,Le+1))!==void 0)return void nt(Qe)}nt()},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT * FROM "+yt.storeName+" WHERE key = ? LIMIT 1",[I],function(Ct,wt){var Vt=wt.rows.length?wt.rows.item(0).value:null;Vt&&(Vt=yt.serializer.deserialize(Vt)),nt(Vt)},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},setItem:function(I,z,H){return Bn.apply(this,[I,z,H,1])},removeItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"DELETE FROM "+yt.storeName+" WHERE key = ?",[I],function(){nt()},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},clear:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"DELETE FROM "+it.storeName,[],function(){at()},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},length:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"SELECT COUNT(key) as c FROM "+it.storeName,[],function(St,Ct){var wt=Ct.rows.item(0).c;at(wt)},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},key:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT key FROM "+yt.storeName+" WHERE id = ? LIMIT 1",[I+1],function(Ct,wt){var Vt=wt.rows.length?wt.rows.item(0).key:null;nt(Vt)},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},keys:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"SELECT key FROM "+it.storeName,[],function(St,Ct){for(var wt=[],Vt=0;Vt<Ct.rows.length;Vt++)wt.push(Ct.rows.item(Vt).key);at(wt)},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},dropInstance:function(I,z){z=zt.apply(this,arguments);var H=this.config();(I=typeof I!="function"&&I||{}).name||(I.name=I.name||H.name,I.storeName=I.storeName||H.storeName);var at,nt=this;return ut(at=I.name?new $(function(it){var yt;yt=I.name===H.name?nt._dbInfo.db:openDatabase(I.name,"","",0),I.storeName?it({db:yt,storeNames:[I.storeName]}):it(Wn(yt))}).then(function(it){return new $(function(yt,St){it.db.transaction(function(Ct){function wt(an){return new $(function(Qe,Qn){Ct.executeSql("DROP TABLE IF EXISTS "+an,[],function(){Qe()},function(vi,Yr){Qn(Yr)})})}for(var Vt=[],Bt=0,Le=it.storeNames.length;Bt<Le;Bt++)Vt.push(wt(it.storeNames[Bt]));$.all(Vt).then(function(){yt()}).catch(function(an){St(an)})},function(Ct){St(Ct)})})}):$.reject("Invalid arguments"),z),at}};function Pr(I,z){var H=I.name+"/";return I.storeName!==z.storeName&&(H+=I.storeName+"/"),H}function Ur(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch{return!0}}()||localStorage.length>0}var Rr={_driver:"localStorageWrapper",_initStorage:function(I){var z={};if(I)for(var H in I)z[H]=I[H];return z.keyPrefix=Pr(I,this._defaultConfig),Ur()?(this._dbInfo=z,z.serializer=Hn,$.resolve()):$.reject()},_support:function(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(I,z){var H=this,at=H.ready().then(function(){for(var nt=H._dbInfo,it=nt.keyPrefix,yt=it.length,St=localStorage.length,Ct=1,wt=0;wt<St;wt++){var Vt=localStorage.key(wt);if(Vt.indexOf(it)===0){var Bt=localStorage.getItem(Vt);if(Bt&&(Bt=nt.serializer.deserialize(Bt)),(Bt=I(Bt,Vt.substring(yt),Ct++))!==void 0)return Bt}}});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=H.ready().then(function(){var nt=H._dbInfo,it=localStorage.getItem(nt.keyPrefix+I);return it&&(it=nt.serializer.deserialize(it)),it});return ut(at,z),at},setItem:function(I,z,H){var at=this;I=Gt(I);var nt=at.ready().then(function(){z===void 0&&(z=null);var it=z;return new $(function(yt,St){var Ct=at._dbInfo;Ct.serializer.serialize(z,function(wt,Vt){if(Vt)St(Vt);else try{localStorage.setItem(Ct.keyPrefix+I,wt),yt(it)}catch(Bt){Bt.name!=="QuotaExceededError"&&Bt.name!=="NS_ERROR_DOM_QUOTA_REACHED"||St(Bt),St(Bt)}})})});return ut(nt,H),nt},removeItem:function(I,z){var H=this;I=Gt(I);var at=H.ready().then(function(){var nt=H._dbInfo;localStorage.removeItem(nt.keyPrefix+I)});return ut(at,z),at},clear:function(I){var z=this,H=z.ready().then(function(){for(var at=z._dbInfo.keyPrefix,nt=localStorage.length-1;nt>=0;nt--){var it=localStorage.key(nt);it.indexOf(at)===0&&localStorage.removeItem(it)}});return ut(H,I),H},length:function(I){var z=this.keys().then(function(H){return H.length});return ut(z,I),z},key:function(I,z){var H=this,at=H.ready().then(function(){var nt,it=H._dbInfo;try{nt=localStorage.key(I)}catch{nt=null}return nt&&(nt=nt.substring(it.keyPrefix.length)),nt});return ut(at,z),at},keys:function(I){var z=this,H=z.ready().then(function(){for(var at=z._dbInfo,nt=localStorage.length,it=[],yt=0;yt<nt;yt++){var St=localStorage.key(yt);St.indexOf(at.keyPrefix)===0&&it.push(St.substring(at.keyPrefix.length))}return it});return ut(H,I),H},dropInstance:function(I,z){if(z=zt.apply(this,arguments),!(I=typeof I!="function"&&I||{}).name){var H=this.config();I.name=I.name||H.name,I.storeName=I.storeName||H.storeName}var at,nt=this;return ut(at=I.name?new $(function(it){I.storeName?it(Pr(I,nt._defaultConfig)):it(I.name+"/")}).then(function(it){for(var yt=localStorage.length-1;yt>=0;yt--){var St=localStorage.key(yt);St.indexOf(it)===0&&localStorage.removeItem(St)}}):$.reject("Invalid arguments"),z),at}},qr=function(I,z){for(var H,at,nt=I.length,it=0;it<nt;){if((H=I[it])===(at=z)||typeof H=="number"&&typeof at=="number"&&isNaN(H)&&isNaN(at))return!0;it++}return!1},yr=Array.isArray||function(I){return Object.prototype.toString.call(I)==="[object Array]"},br={},gi={},hr={INDEXEDDB:Ut,WEBSQL:vn,LOCALSTORAGE:Rr},Or=[hr.INDEXEDDB._driver,hr.WEBSQL._driver,hr.LOCALSTORAGE._driver],Jr=["dropInstance"],Oo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Jr),On={description:"",driver:Or.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function $i(I,z){I[z]=function(){var H=arguments;return I.ready().then(function(){return I[z].apply(I,H)})}}function Pi(){for(var I=1;I<arguments.length;I++){var z=arguments[I];if(z)for(var H in z)z.hasOwnProperty(H)&&(yr(z[H])?arguments[0][H]=z[H].slice():arguments[0][H]=z[H])}return arguments[0]}var ao=new(function(){function I(z){for(var H in function(it,yt){if(!(it instanceof yt))throw new TypeError("Cannot call a class as a function")}(this,I),hr)if(hr.hasOwnProperty(H)){var at=hr[H],nt=at._driver;this[H]=nt,br[nt]||this.defineDriver(at)}this._defaultConfig=Pi({},On),this._config=Pi({},this._defaultConfig,z),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return I.prototype.config=function(z){if((z===void 0?"undefined":X(z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var H in z){if(H==="storeName"&&(z[H]=z[H].replace(/\W/g,"_")),H==="version"&&typeof z[H]!="number")return new Error("Database version must be a number.");this._config[H]=z[H]}return!("driver"in z)||!z.driver||this.setDriver(this._config.driver)}return typeof z=="string"?this._config[z]:this._config},I.prototype.defineDriver=function(z,H,at){var nt=new $(function(it,yt){try{var St=z._driver,Ct=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!z._driver)return void yt(Ct);for(var wt=Oo.concat("_initStorage"),Vt=0,Bt=wt.length;Vt<Bt;Vt++){var Le=wt[Vt];if((!qr(Jr,Le)||z[Le])&&typeof z[Le]!="function")return void yt(Ct)}(function(){for(var Qe=function(Ks){return function(){var lo=new Error("Method "+Ks+" is not implemented by the current driver"),gs=$.reject(lo);return ut(gs,arguments[arguments.length-1]),gs}},Qn=0,vi=Jr.length;Qn<vi;Qn++){var Yr=Jr[Qn];z[Yr]||(z[Yr]=Qe(Yr))}})();var an=function(Qe){br[St]&&console.info("Redefining LocalForage driver: "+St),br[St]=z,gi[St]=Qe,it()};"_support"in z?z._support&&typeof z._support=="function"?z._support().then(an,yt):an(!!z._support):an(!0)}catch(Qe){yt(Qe)}});return kt(nt,H,at),nt},I.prototype.driver=function(){return this._driver||null},I.prototype.getDriver=function(z,H,at){var nt=br[z]?$.resolve(br[z]):$.reject(new Error("Driver not found."));return kt(nt,H,at),nt},I.prototype.getSerializer=function(z){var H=$.resolve(Hn);return kt(H,z),H},I.prototype.ready=function(z){var H=this,at=H._driverSet.then(function(){return H._ready===null&&(H._ready=H._initDriver()),H._ready});return kt(at,z,z),at},I.prototype.setDriver=function(z,H,at){var nt=this;yr(z)||(z=[z]);var it=this._getSupportedDrivers(z);function yt(){nt._config.driver=nt.driver()}function St(wt){return nt._extend(wt),yt(),nt._ready=nt._initStorage(nt._config),nt._ready}var Ct=this._driverSet!==null?this._driverSet.catch(function(){return $.resolve()}):$.resolve();return this._driverSet=Ct.then(function(){var wt=it[0];return nt._dbInfo=null,nt._ready=null,nt.getDriver(wt).then(function(Vt){nt._driver=Vt._driver,yt(),nt._wrapLibraryMethodsWithReady(),nt._initDriver=function(Bt){return function(){var Le=0;return function an(){for(;Le<Bt.length;){var Qe=Bt[Le];return Le++,nt._dbInfo=null,nt._ready=null,nt.getDriver(Qe).then(St).catch(an)}yt();var Qn=new Error("No available storage method found.");return nt._driverSet=$.reject(Qn),nt._driverSet}()}}(it)})}).catch(function(){yt();var wt=new Error("No available storage method found.");return nt._driverSet=$.reject(wt),nt._driverSet}),kt(this._driverSet,H,at),this._driverSet},I.prototype.supports=function(z){return!!gi[z]},I.prototype._extend=function(z){Pi(this,z)},I.prototype._getSupportedDrivers=function(z){for(var H=[],at=0,nt=z.length;at<nt;at++){var it=z[at];this.supports(it)&&H.push(it)}return H},I.prototype._wrapLibraryMethodsWithReady=function(){for(var z=0,H=Oo.length;z<H;z++)$i(this,Oo[z])},I.prototype.createInstance=function(z){return new I(z)},I}());lt.exports=ao},{3:3}]},{},[4])(4)}).call(this,S(4))},function(N,w,S){N.exports=function(W,pt){if(W){pt=pt||{};for(var lt={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},J=lt.parser[pt.strictMode?"strict":"loose"].exec(W),X={},ct=14;ct--;)X[lt.key[ct]]=J[ct]||"";return X[lt.q.name]={},X[lt.key[12]].replace(lt.q.parser,function(tt,$,ut){$&&(X[lt.q.name][$]=ut)}),X}}},function(N,w,S){var W=S(33);N.exports=function(pt,lt){lt=lt||{};var J=new W,X=lt.inPlace||!1,ct=pt.map(function($){return X?$:{width:$.width,height:$.height,item:$}});ct=ct.sort(function($,ut){return ut.width*ut.height-$.width*$.height}),J.fit(ct);var tt={width:ct.reduce(function($,ut){return Math.max($,ut.x+ut.width)},0),height:ct.reduce(function($,ut){return Math.max($,ut.y+ut.height)},0)};return X||(tt.items=ct),tt}},function(N,w,S){(function(W){N.exports=function pt(lt,J,X){function ct(ut,kt){if(!J[ut]){if(!lt[ut]){if(tt)return tt(ut,!0);var Gt=new Error("Cannot find module '"+ut+"'");throw Gt.code="MODULE_NOT_FOUND",Gt}var zt=J[ut]={exports:{}};lt[ut][0].call(zt.exports,function(L){var k=lt[ut][1][L];return ct(k||L)},zt,zt.exports,pt,lt,J,X)}return J[ut].exports}for(var tt=!1,$=0;$<X.length;$++)ct(X[$]);return ct}({1:[function(pt,lt,J){(function(X){var ct,tt,$=X.MutationObserver||X.WebKitMutationObserver;if($){var ut=0,kt=new $(k),Gt=X.document.createTextNode("");kt.observe(Gt,{characterData:!0}),ct=function(){Gt.data=ut=++ut%2}}else if(X.setImmediate||X.MessageChannel===void 0)ct="document"in X&&"onreadystatechange"in X.document.createElement("script")?function(){var Y=X.document.createElement("script");Y.onreadystatechange=function(){k(),Y.onreadystatechange=null,Y.parentNode.removeChild(Y),Y=null},X.document.documentElement.appendChild(Y)}:function(){setTimeout(k,0)};else{var zt=new X.MessageChannel;zt.port1.onmessage=k,ct=function(){zt.port2.postMessage(0)}}var L=[];function k(){var Y,ht;tt=!0;for(var B=L.length;B;){for(ht=L,L=[],Y=-1;++Y<B;)ht[Y]();B=L.length}tt=!1}lt.exports=function(Y){L.push(Y)!==1||tt||ct()}}).call(this,W!==void 0?W:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(pt,lt,J){var X=pt(1);function ct(){}var tt={},$=["REJECTED"],ut=["FULFILLED"],kt=["PENDING"];function Gt(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=kt,this.queue=[],this.outcome=void 0,B!==ct&&Y(this,B)}function zt(B,Q,et){this.promise=B,typeof Q=="function"&&(this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled),typeof et=="function"&&(this.onRejected=et,this.callRejected=this.otherCallRejected)}function L(B,Q,et){X(function(){var ft;try{ft=Q(et)}catch(ae){return tt.reject(B,ae)}ft===B?tt.reject(B,new TypeError("Cannot resolve promise with itself")):tt.resolve(B,ft)})}function k(B){var Q=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof Q=="function")return function(){Q.apply(B,arguments)}}function Y(B,Q){var et=!1;function ft(ne){et||(et=!0,tt.reject(B,ne))}function ae(ne){et||(et=!0,tt.resolve(B,ne))}var Oe=ht(function(){Q(ae,ft)});Oe.status==="error"&&ft(Oe.value)}function ht(B,Q){var et={};try{et.value=B(Q),et.status="success"}catch(ft){et.status="error",et.value=ft}return et}lt.exports=Gt,Gt.prototype.catch=function(B){return this.then(null,B)},Gt.prototype.then=function(B,Q){if(typeof B!="function"&&this.state===ut||typeof Q!="function"&&this.state===$)return this;var et=new this.constructor(ct);return this.state!==kt?L(et,this.state===ut?B:Q,this.outcome):this.queue.push(new zt(et,B,Q)),et},zt.prototype.callFulfilled=function(B){tt.resolve(this.promise,B)},zt.prototype.otherCallFulfilled=function(B){L(this.promise,this.onFulfilled,B)},zt.prototype.callRejected=function(B){tt.reject(this.promise,B)},zt.prototype.otherCallRejected=function(B){L(this.promise,this.onRejected,B)},tt.resolve=function(B,Q){var et=ht(k,Q);if(et.status==="error")return tt.reject(B,et.value);var ft=et.value;if(ft)Y(B,ft);else{B.state=ut,B.outcome=Q;for(var ae=-1,Oe=B.queue.length;++ae<Oe;)B.queue[ae].callFulfilled(Q)}return B},tt.reject=function(B,Q){B.state=$,B.outcome=Q;for(var et=-1,ft=B.queue.length;++et<ft;)B.queue[et].callRejected(Q);return B},Gt.resolve=function(B){return B instanceof this?B:tt.resolve(new this(ct),B)},Gt.reject=function(B){var Q=new this(ct);return tt.reject(Q,B)},Gt.all=function(B){var Q=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var et=B.length,ft=!1;if(!et)return this.resolve([]);for(var ae=new Array(et),Oe=0,ne=-1,bt=new this(ct);++ne<et;)Jt(B[ne],ne);return bt;function Jt(Kt,rt){Q.resolve(Kt).then(function(Ut){ae[rt]=Ut,++Oe!==et||ft||(ft=!0,tt.resolve(bt,ae))},function(Ut){ft||(ft=!0,tt.reject(bt,Ut))})}},Gt.race=function(B){var Q=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var et=B.length,ft=!1;if(!et)return this.resolve([]);for(var ae,Oe=-1,ne=new this(ct);++Oe<et;)ae=B[Oe],Q.resolve(ae).then(function(bt){ft||(ft=!0,tt.resolve(ne,bt))},function(bt){ft||(ft=!0,tt.reject(ne,bt))});return ne}},{1:1}],3:[function(pt,lt,J){(function(X){typeof X.Promise!="function"&&(X.Promise=pt(2))}).call(this,W!==void 0?W:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(pt,lt,J){var X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},ct=function(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch{return}}();function tt(I,z){I=I||[],z=z||{};try{return new Blob(I,z)}catch(nt){if(nt.name!=="TypeError")throw nt;for(var H=new(typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder),at=0;at<I.length;at+=1)H.append(I[at]);return H.getBlob(z.type)}}typeof Promise=="undefined"&&pt(3);var $=Promise;function ut(I,z){z&&I.then(function(H){z(null,H)},function(H){z(H)})}function kt(I,z,H){typeof z=="function"&&I.then(z),typeof H=="function"&&I.catch(H)}function Gt(I){return typeof I!="string"&&(console.warn(I+" used as a key, but it is not a string."),I=String(I)),I}function zt(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var L=void 0,k={},Y=Object.prototype.toString;function ht(I){return typeof L=="boolean"?$.resolve(L):function(z){return new $(function(H){var at=z.transaction("local-forage-detect-blob-support","readwrite"),nt=tt([""]);at.objectStore("local-forage-detect-blob-support").put(nt,"key"),at.onabort=function(it){it.preventDefault(),it.stopPropagation(),H(!1)},at.oncomplete=function(){var it=navigator.userAgent.match(/Chrome\/(\d+)/),yt=navigator.userAgent.match(/Edge\//);H(yt||!it||parseInt(it[1],10)>=43)}}).catch(function(){return!1})}(I).then(function(z){return L=z})}function B(I){var z=k[I.name],H={};H.promise=new $(function(at,nt){H.resolve=at,H.reject=nt}),z.deferredOperations.push(H),z.dbReady?z.dbReady=z.dbReady.then(function(){return H.promise}):z.dbReady=H.promise}function Q(I){var z=k[I.name].deferredOperations.pop();if(z)return z.resolve(),z.promise}function et(I,z){var H=k[I.name].deferredOperations.pop();if(H)return H.reject(z),H.promise}function ft(I,z){return new $(function(H,at){if(k[I.name]=k[I.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},I.db){if(!z)return H(I.db);B(I),I.db.close()}var nt=[I.name];z&&nt.push(I.version);var it=ct.open.apply(ct,nt);z&&(it.onupgradeneeded=function(yt){var St=it.result;try{St.createObjectStore(I.storeName),yt.oldVersion<=1&&St.createObjectStore("local-forage-detect-blob-support")}catch(Ct){if(Ct.name!=="ConstraintError")throw Ct;console.warn('The database "'+I.name+'" has been upgraded from version '+yt.oldVersion+" to version "+yt.newVersion+', but the storage "'+I.storeName+'" already exists.')}}),it.onerror=function(yt){yt.preventDefault(),at(it.error)},it.onsuccess=function(){H(it.result),Q(I)}})}function ae(I){return ft(I,!1)}function Oe(I){return ft(I,!0)}function ne(I,z){if(!I.db)return!0;var H=!I.db.objectStoreNames.contains(I.storeName),at=I.version<I.db.version,nt=I.version>I.db.version;if(at&&(I.version!==z&&console.warn('The database "'+I.name+`" can't be downgraded from version `+I.db.version+" to version "+I.version+"."),I.version=I.db.version),nt||H){if(H){var it=I.db.version+1;it>I.version&&(I.version=it)}return!0}return!1}function bt(I){return tt([function(z){for(var H=z.length,at=new ArrayBuffer(H),nt=new Uint8Array(at),it=0;it<H;it++)nt[it]=z.charCodeAt(it);return at}(atob(I.data))],{type:I.type})}function Jt(I){return I&&I.__local_forage_encoded_blob}function Kt(I){var z=this,H=z._initReady().then(function(){var at=k[z._dbInfo.name];if(at&&at.dbReady)return at.dbReady});return kt(H,I,I),H}function rt(I,z,H,at){at===void 0&&(at=1);try{var nt=I.db.transaction(I.storeName,z);H(null,nt)}catch(it){if(at>0&&(!I.db||it.name==="InvalidStateError"||it.name==="NotFoundError"))return $.resolve().then(function(){if(!I.db||it.name==="NotFoundError"&&!I.db.objectStoreNames.contains(I.storeName)&&I.version<=I.db.version)return I.db&&(I.version=I.db.version+1),Oe(I)}).then(function(){return function(yt){B(yt);for(var St=k[yt.name],Ct=St.forages,wt=0;wt<Ct.length;wt++){var Vt=Ct[wt];Vt._dbInfo.db&&(Vt._dbInfo.db.close(),Vt._dbInfo.db=null)}return yt.db=null,ae(yt).then(function(Bt){return yt.db=Bt,ne(yt)?Oe(yt):Bt}).then(function(Bt){yt.db=St.db=Bt;for(var Le=0;Le<Ct.length;Le++)Ct[Le]._dbInfo.db=Bt}).catch(function(Bt){throw et(yt,Bt),Bt})}(I).then(function(){rt(I,z,H,at-1)})}).catch(H);H(it)}}var Ut={_driver:"asyncStorage",_initStorage:function(I){var z=this,H={db:null};if(I)for(var at in I)H[at]=I[at];var nt=k[H.name];nt||(nt={forages:[],db:null,dbReady:null,deferredOperations:[]},k[H.name]=nt),nt.forages.push(z),z._initReady||(z._initReady=z.ready,z.ready=Kt);var it=[];function yt(){return $.resolve()}for(var St=0;St<nt.forages.length;St++){var Ct=nt.forages[St];Ct!==z&&it.push(Ct._initReady().catch(yt))}var wt=nt.forages.slice(0);return $.all(it).then(function(){return H.db=nt.db,ae(H)}).then(function(Vt){return H.db=Vt,ne(H,z._defaultConfig.version)?Oe(H):Vt}).then(function(Vt){H.db=nt.db=Vt,z._dbInfo=H;for(var Bt=0;Bt<wt.length;Bt++){var Le=wt[Bt];Le!==z&&(Le._dbInfo.db=H.db,Le._dbInfo.version=H.version)}})},_support:function(){try{if(!ct||!ct.open)return!1;var I=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),z=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!I||z)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch{return!1}}(),iterate:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).openCursor(),wt=1;Ct.onsuccess=function(){var Vt=Ct.result;if(Vt){var Bt=Vt.value;Jt(Bt)&&(Bt=bt(Bt));var Le=I(Bt,Vt.key,wt++);Le!==void 0?nt(Le):Vt.continue()}else nt()},Ct.onerror=function(){it(Ct.error)}}catch(Vt){it(Vt)}})}).catch(it)});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).get(I);Ct.onsuccess=function(){var wt=Ct.result;wt===void 0&&(wt=null),Jt(wt)&&(wt=bt(wt)),nt(wt)},Ct.onerror=function(){it(Ct.error)}}catch(wt){it(wt)}})}).catch(it)});return ut(at,z),at},setItem:function(I,z,H){var at=this;I=Gt(I);var nt=new $(function(it,yt){var St;at.ready().then(function(){return St=at._dbInfo,Y.call(z)==="[object Blob]"?ht(St.db).then(function(Ct){return Ct?z:(wt=z,new $(function(Vt,Bt){var Le=new FileReader;Le.onerror=Bt,Le.onloadend=function(an){var Qe=btoa(an.target.result||"");Vt({__local_forage_encoded_blob:!0,data:Qe,type:wt.type})},Le.readAsBinaryString(wt)}));var wt}):z}).then(function(Ct){rt(at._dbInfo,"readwrite",function(wt,Vt){if(wt)return yt(wt);try{var Bt=Vt.objectStore(at._dbInfo.storeName);Ct===null&&(Ct=void 0);var Le=Bt.put(Ct,I);Vt.oncomplete=function(){Ct===void 0&&(Ct=null),it(Ct)},Vt.onabort=Vt.onerror=function(){var an=Le.error?Le.error:Le.transaction.error;yt(an)}}catch(an){yt(an)}})}).catch(yt)});return ut(nt,H),nt},removeItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){rt(H._dbInfo,"readwrite",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName).delete(I);St.oncomplete=function(){nt()},St.onerror=function(){it(Ct.error)},St.onabort=function(){var wt=Ct.error?Ct.error:Ct.transaction.error;it(wt)}}catch(wt){it(wt)}})}).catch(it)});return ut(at,z),at},clear:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readwrite",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).clear();yt.oncomplete=function(){at()},yt.onabort=yt.onerror=function(){var Ct=St.error?St.error:St.transaction.error;nt(Ct)}}catch(Ct){nt(Ct)}})}).catch(nt)});return ut(H,I),H},length:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readonly",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).count();St.onsuccess=function(){at(St.result)},St.onerror=function(){nt(St.error)}}catch(Ct){nt(Ct)}})}).catch(nt)});return ut(H,I),H},key:function(I,z){var H=this,at=new $(function(nt,it){I<0?nt(null):H.ready().then(function(){rt(H._dbInfo,"readonly",function(yt,St){if(yt)return it(yt);try{var Ct=St.objectStore(H._dbInfo.storeName),wt=!1,Vt=Ct.openKeyCursor();Vt.onsuccess=function(){var Bt=Vt.result;Bt?I===0||wt?nt(Bt.key):(wt=!0,Bt.advance(I)):nt(null)},Vt.onerror=function(){it(Vt.error)}}catch(Bt){it(Bt)}})}).catch(it)});return ut(at,z),at},keys:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){rt(z._dbInfo,"readonly",function(it,yt){if(it)return nt(it);try{var St=yt.objectStore(z._dbInfo.storeName).openKeyCursor(),Ct=[];St.onsuccess=function(){var wt=St.result;wt?(Ct.push(wt.key),wt.continue()):at(Ct)},St.onerror=function(){nt(St.error)}}catch(wt){nt(wt)}})}).catch(nt)});return ut(H,I),H},dropInstance:function(I,z){z=zt.apply(this,arguments);var H=this.config();(I=typeof I!="function"&&I||{}).name||(I.name=I.name||H.name,I.storeName=I.storeName||H.storeName);var at,nt=this;if(I.name){var it=I.name===H.name&&nt._dbInfo.db,yt=it?$.resolve(nt._dbInfo.db):ae(I).then(function(St){var Ct=k[I.name],wt=Ct.forages;Ct.db=St;for(var Vt=0;Vt<wt.length;Vt++)wt[Vt]._dbInfo.db=St;return St});at=I.storeName?yt.then(function(St){if(St.objectStoreNames.contains(I.storeName)){var Ct=St.version+1;B(I);var wt=k[I.name],Vt=wt.forages;St.close();for(var Bt=0;Bt<Vt.length;Bt++){var Le=Vt[Bt];Le._dbInfo.db=null,Le._dbInfo.version=Ct}return new $(function(an,Qe){var Qn=ct.open(I.name,Ct);Qn.onerror=function(vi){Qn.result.close(),Qe(vi)},Qn.onupgradeneeded=function(){Qn.result.deleteObjectStore(I.storeName)},Qn.onsuccess=function(){var vi=Qn.result;vi.close(),an(vi)}}).then(function(an){wt.db=an;for(var Qe=0;Qe<Vt.length;Qe++){var Qn=Vt[Qe];Qn._dbInfo.db=an,Q(Qn._dbInfo)}}).catch(function(an){throw(et(I,an)||$.resolve()).catch(function(){}),an})}}):yt.then(function(St){B(I);var Ct=k[I.name],wt=Ct.forages;St.close();for(var Vt=0;Vt<wt.length;Vt++)wt[Vt]._dbInfo.db=null;return new $(function(Bt,Le){var an=ct.deleteDatabase(I.name);an.onerror=an.onblocked=function(Qe){var Qn=an.result;Qn&&Qn.close(),Le(Qe)},an.onsuccess=function(){var Qe=an.result;Qe&&Qe.close(),Bt(Qe)}}).then(function(Bt){Ct.db=Bt;for(var Le=0;Le<wt.length;Le++)Q(wt[Le]._dbInfo)}).catch(function(Bt){throw(et(I,Bt)||$.resolve()).catch(function(){}),Bt})})}else at=$.reject("Invalid arguments");return ut(at,z),at}},Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=/^~~local_forage_type~([^~]+)~/,Xt="__lfsc__:".length,le=Xt+"arbf".length,fe=Object.prototype.toString;function Ye(I){var z,H,at,nt,it,yt=.75*I.length,St=I.length,Ct=0;I[I.length-1]==="="&&(yt--,I[I.length-2]==="="&&yt--);var wt=new ArrayBuffer(yt),Vt=new Uint8Array(wt);for(z=0;z<St;z+=4)H=Wt.indexOf(I[z]),at=Wt.indexOf(I[z+1]),nt=Wt.indexOf(I[z+2]),it=Wt.indexOf(I[z+3]),Vt[Ct++]=H<<2|at>>4,Vt[Ct++]=(15&at)<<4|nt>>2,Vt[Ct++]=(3&nt)<<6|63⁢return wt}function ke(I){var z,H=new Uint8Array(I),at="";for(z=0;z<H.length;z+=3)at+=Wt[H[z]>>2],at+=Wt[(3&H[z])<<4|H[z+1]>>4],at+=Wt[(15&H[z+1])<<2|H[z+2]>>6],at+=Wt[63&H[z+2]];return H.length%3==2?at=at.substring(0,at.length-1)+"=":H.length%3==1&&(at=at.substring(0,at.length-2)+"=="),at}var Hn={serialize:function(I,z){var H="";if(I&&(H=fe.call(I)),I&&(H==="[object ArrayBuffer]"||I.buffer&&fe.call(I.buffer)==="[object ArrayBuffer]")){var at,nt="__lfsc__:";I instanceof ArrayBuffer?(at=I,nt+="arbf"):(at=I.buffer,H==="[object Int8Array]"?nt+="si08":H==="[object Uint8Array]"?nt+="ui08":H==="[object Uint8ClampedArray]"?nt+="uic8":H==="[object Int16Array]"?nt+="si16":H==="[object Uint16Array]"?nt+="ur16":H==="[object Int32Array]"?nt+="si32":H==="[object Uint32Array]"?nt+="ui32":H==="[object Float32Array]"?nt+="fl32":H==="[object Float64Array]"?nt+="fl64":z(new Error("Failed to get type for BinaryArray"))),z(nt+ke(at))}else if(H==="[object Blob]"){var it=new FileReader;it.onload=function(){var yt="~~local_forage_type~"+I.type+"~"+ke(this.result);z("__lfsc__:blob"+yt)},it.readAsArrayBuffer(I)}else try{z(JSON.stringify(I))}catch(yt){console.error("Couldn't convert value into a JSON string: ",I),z(null,yt)}},deserialize:function(I){if(I.substring(0,Xt)!=="__lfsc__:")return JSON.parse(I);var z,H=I.substring(le),at=I.substring(Xt,le);if(at==="blob"&&te.test(H)){var nt=H.match(te);z=nt[1],H=H.substring(nt[0].length)}var it=Ye(H);switch(at){case"arbf":return it;case"blob":return tt([it],{type:z});case"si08":return new Int8Array(it);case"ui08":return new Uint8Array(it);case"uic8":return new Uint8ClampedArray(it);case"si16":return new Int16Array(it);case"ur16":return new Uint16Array(it);case"si32":return new Int32Array(it);case"ui32":return new Uint32Array(it);case"fl32":return new Float32Array(it);case"fl64":return new Float64Array(it);default:throw new Error("Unkown type: "+at)}},stringToBuffer:Ye,bufferToString:ke};function Ke(I,z,H,at){I.executeSql("CREATE TABLE IF NOT EXISTS "+z.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],H,at)}function Ln(I,z,H,at,nt,it){I.executeSql(H,at,nt,function(yt,St){St.code===St.SYNTAX_ERR?yt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[z.storeName],function(Ct,wt){wt.rows.length?it(Ct,St):Ke(Ct,z,function(){Ct.executeSql(H,at,nt,it)},it)},it):it(yt,St)},it)}function Bn(I,z,H,at){var nt=this;I=Gt(I);var it=new $(function(yt,St){nt.ready().then(function(){z===void 0&&(z=null);var Ct=z,wt=nt._dbInfo;wt.serializer.serialize(z,function(Vt,Bt){Bt?St(Bt):wt.db.transaction(function(Le){Ln(Le,wt,"INSERT OR REPLACE INTO "+wt.storeName+" (key, value) VALUES (?, ?)",[I,Vt],function(){yt(Ct)},function(an,Qe){St(Qe)})},function(Le){if(Le.code===Le.QUOTA_ERR){if(at>0)return void yt(Bn.apply(nt,[I,Ct,H,at-1]));St(Le)}})})}).catch(St)});return ut(it,H),it}function Wn(I){return new $(function(z,H){I.transaction(function(at){at.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(nt,it){for(var yt=[],St=0;St<it.rows.length;St++)yt.push(it.rows.item(St).name);z({db:I,storeNames:yt})},function(nt,it){H(it)})},function(at){H(at)})})}var vn={_driver:"webSQLStorage",_initStorage:function(I){var z=this,H={db:null};if(I)for(var at in I)H[at]=typeof I[at]!="string"?I[at].toString():I[at];var nt=new $(function(it,yt){try{H.db=openDatabase(H.name,String(H.version),H.description,H.size)}catch(St){return yt(St)}H.db.transaction(function(St){Ke(St,H,function(){z._dbInfo=H,it()},function(Ct,wt){yt(wt)})},yt)});return H.serializer=Hn,nt},_support:typeof openDatabase=="function",iterate:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT * FROM "+yt.storeName,[],function(Ct,wt){for(var Vt=wt.rows,Bt=Vt.length,Le=0;Le<Bt;Le++){var an=Vt.item(Le),Qe=an.value;if(Qe&&(Qe=yt.serializer.deserialize(Qe)),(Qe=I(Qe,an.key,Le+1))!==void 0)return void nt(Qe)}nt()},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT * FROM "+yt.storeName+" WHERE key = ? LIMIT 1",[I],function(Ct,wt){var Vt=wt.rows.length?wt.rows.item(0).value:null;Vt&&(Vt=yt.serializer.deserialize(Vt)),nt(Vt)},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},setItem:function(I,z,H){return Bn.apply(this,[I,z,H,1])},removeItem:function(I,z){var H=this;I=Gt(I);var at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"DELETE FROM "+yt.storeName+" WHERE key = ?",[I],function(){nt()},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},clear:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"DELETE FROM "+it.storeName,[],function(){at()},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},length:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"SELECT COUNT(key) as c FROM "+it.storeName,[],function(St,Ct){var wt=Ct.rows.item(0).c;at(wt)},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},key:function(I,z){var H=this,at=new $(function(nt,it){H.ready().then(function(){var yt=H._dbInfo;yt.db.transaction(function(St){Ln(St,yt,"SELECT key FROM "+yt.storeName+" WHERE id = ? LIMIT 1",[I+1],function(Ct,wt){var Vt=wt.rows.length?wt.rows.item(0).key:null;nt(Vt)},function(Ct,wt){it(wt)})})}).catch(it)});return ut(at,z),at},keys:function(I){var z=this,H=new $(function(at,nt){z.ready().then(function(){var it=z._dbInfo;it.db.transaction(function(yt){Ln(yt,it,"SELECT key FROM "+it.storeName,[],function(St,Ct){for(var wt=[],Vt=0;Vt<Ct.rows.length;Vt++)wt.push(Ct.rows.item(Vt).key);at(wt)},function(St,Ct){nt(Ct)})})}).catch(nt)});return ut(H,I),H},dropInstance:function(I,z){z=zt.apply(this,arguments);var H=this.config();(I=typeof I!="function"&&I||{}).name||(I.name=I.name||H.name,I.storeName=I.storeName||H.storeName);var at,nt=this;return ut(at=I.name?new $(function(it){var yt;yt=I.name===H.name?nt._dbInfo.db:openDatabase(I.name,"","",0),I.storeName?it({db:yt,storeNames:[I.storeName]}):it(Wn(yt))}).then(function(it){return new $(function(yt,St){it.db.transaction(function(Ct){function wt(an){return new $(function(Qe,Qn){Ct.executeSql("DROP TABLE IF EXISTS "+an,[],function(){Qe()},function(vi,Yr){Qn(Yr)})})}for(var Vt=[],Bt=0,Le=it.storeNames.length;Bt<Le;Bt++)Vt.push(wt(it.storeNames[Bt]));$.all(Vt).then(function(){yt()}).catch(function(an){St(an)})},function(Ct){St(Ct)})})}):$.reject("Invalid arguments"),z),at}};function Pr(I,z){var H=I.name+"/";return I.storeName!==z.storeName&&(H+=I.storeName+"/"),H}function Ur(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch{return!0}}()||localStorage.length>0}var Rr={_driver:"localStorageWrapper",_initStorage:function(I){var z={};if(I)for(var H in I)z[H]=I[H];return z.keyPrefix=Pr(I,this._defaultConfig),Ur()?(this._dbInfo=z,z.serializer=Hn,$.resolve()):$.reject()},_support:function(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(I,z){var H=this,at=H.ready().then(function(){for(var nt=H._dbInfo,it=nt.keyPrefix,yt=it.length,St=localStorage.length,Ct=1,wt=0;wt<St;wt++){var Vt=localStorage.key(wt);if(Vt.indexOf(it)===0){var Bt=localStorage.getItem(Vt);if(Bt&&(Bt=nt.serializer.deserialize(Bt)),(Bt=I(Bt,Vt.substring(yt),Ct++))!==void 0)return Bt}}});return ut(at,z),at},getItem:function(I,z){var H=this;I=Gt(I);var at=H.ready().then(function(){var nt=H._dbInfo,it=localStorage.getItem(nt.keyPrefix+I);return it&&(it=nt.serializer.deserialize(it)),it});return ut(at,z),at},setItem:function(I,z,H){var at=this;I=Gt(I);var nt=at.ready().then(function(){z===void 0&&(z=null);var it=z;return new $(function(yt,St){var Ct=at._dbInfo;Ct.serializer.serialize(z,function(wt,Vt){if(Vt)St(Vt);else try{localStorage.setItem(Ct.keyPrefix+I,wt),yt(it)}catch(Bt){Bt.name!=="QuotaExceededError"&&Bt.name!=="NS_ERROR_DOM_QUOTA_REACHED"||St(Bt),St(Bt)}})})});return ut(nt,H),nt},removeItem:function(I,z){var H=this;I=Gt(I);var at=H.ready().then(function(){var nt=H._dbInfo;localStorage.removeItem(nt.keyPrefix+I)});return ut(at,z),at},clear:function(I){var z=this,H=z.ready().then(function(){for(var at=z._dbInfo.keyPrefix,nt=localStorage.length-1;nt>=0;nt--){var it=localStorage.key(nt);it.indexOf(at)===0&&localStorage.removeItem(it)}});return ut(H,I),H},length:function(I){var z=this.keys().then(function(H){return H.length});return ut(z,I),z},key:function(I,z){var H=this,at=H.ready().then(function(){var nt,it=H._dbInfo;try{nt=localStorage.key(I)}catch{nt=null}return nt&&(nt=nt.substring(it.keyPrefix.length)),nt});return ut(at,z),at},keys:function(I){var z=this,H=z.ready().then(function(){for(var at=z._dbInfo,nt=localStorage.length,it=[],yt=0;yt<nt;yt++){var St=localStorage.key(yt);St.indexOf(at.keyPrefix)===0&&it.push(St.substring(at.keyPrefix.length))}return it});return ut(H,I),H},dropInstance:function(I,z){if(z=zt.apply(this,arguments),!(I=typeof I!="function"&&I||{}).name){var H=this.config();I.name=I.name||H.name,I.storeName=I.storeName||H.storeName}var at,nt=this;return ut(at=I.name?new $(function(it){I.storeName?it(Pr(I,nt._defaultConfig)):it(I.name+"/")}).then(function(it){for(var yt=localStorage.length-1;yt>=0;yt--){var St=localStorage.key(yt);St.indexOf(it)===0&&localStorage.removeItem(St)}}):$.reject("Invalid arguments"),z),at}},qr=function(I,z){for(var H,at,nt=I.length,it=0;it<nt;){if((H=I[it])===(at=z)||typeof H=="number"&&typeof at=="number"&&isNaN(H)&&isNaN(at))return!0;it++}return!1},yr=Array.isArray||function(I){return Object.prototype.toString.call(I)==="[object Array]"},br={},gi={},hr={INDEXEDDB:Ut,WEBSQL:vn,LOCALSTORAGE:Rr},Or=[hr.INDEXEDDB._driver,hr.WEBSQL._driver,hr.LOCALSTORAGE._driver],Jr=["dropInstance"],Oo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Jr),On={description:"",driver:Or.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function $i(I,z){I[z]=function(){var H=arguments;return I.ready().then(function(){return I[z].apply(I,H)})}}function Pi(){for(var I=1;I<arguments.length;I++){var z=arguments[I];if(z)for(var H in z)z.hasOwnProperty(H)&&(yr(z[H])?arguments[0][H]=z[H].slice():arguments[0][H]=z[H])}return arguments[0]}var ao=new(function(){function I(z){for(var H in function(it,yt){if(!(it instanceof yt))throw new TypeError("Cannot call a class as a function")}(this,I),hr)if(hr.hasOwnProperty(H)){var at=hr[H],nt=at._driver;this[H]=nt,br[nt]||this.defineDriver(at)}this._defaultConfig=Pi({},On),this._config=Pi({},this._defaultConfig,z),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return I.prototype.config=function(z){if((z===void 0?"undefined":X(z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var H in z){if(H==="storeName"&&(z[H]=z[H].replace(/\W/g,"_")),H==="version"&&typeof z[H]!="number")return new Error("Database version must be a number.");this._config[H]=z[H]}return!("driver"in z)||!z.driver||this.setDriver(this._config.driver)}return typeof z=="string"?this._config[z]:this._config},I.prototype.defineDriver=function(z,H,at){var nt=new $(function(it,yt){try{var St=z._driver,Ct=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!z._driver)return void yt(Ct);for(var wt=Oo.concat("_initStorage"),Vt=0,Bt=wt.length;Vt<Bt;Vt++){var Le=wt[Vt];if((!qr(Jr,Le)||z[Le])&&typeof z[Le]!="function")return void yt(Ct)}(function(){for(var Qe=function(Ks){return function(){var lo=new Error("Method "+Ks+" is not implemented by the current driver"),gs=$.reject(lo);return ut(gs,arguments[arguments.length-1]),gs}},Qn=0,vi=Jr.length;Qn<vi;Qn++){var Yr=Jr[Qn];z[Yr]||(z[Yr]=Qe(Yr))}})();var an=function(Qe){br[St]&&console.info("Redefining LocalForage driver: "+St),br[St]=z,gi[St]=Qe,it()};"_support"in z?z._support&&typeof z._support=="function"?z._support().then(an,yt):an(!!z._support):an(!0)}catch(Qe){yt(Qe)}});return kt(nt,H,at),nt},I.prototype.driver=function(){return this._driver||null},I.prototype.getDriver=function(z,H,at){var nt=br[z]?$.resolve(br[z]):$.reject(new Error("Driver not found."));return kt(nt,H,at),nt},I.prototype.getSerializer=function(z){var H=$.resolve(Hn);return kt(H,z),H},I.prototype.ready=function(z){var H=this,at=H._driverSet.then(function(){return H._ready===null&&(H._ready=H._initDriver()),H._ready});return kt(at,z,z),at},I.prototype.setDriver=function(z,H,at){var nt=this;yr(z)||(z=[z]);var it=this._getSupportedDrivers(z);function yt(){nt._config.driver=nt.driver()}function St(wt){return nt._extend(wt),yt(),nt._ready=nt._initStorage(nt._config),nt._ready}var Ct=this._driverSet!==null?this._driverSet.catch(function(){return $.resolve()}):$.resolve();return this._driverSet=Ct.then(function(){var wt=it[0];return nt._dbInfo=null,nt._ready=null,nt.getDriver(wt).then(function(Vt){nt._driver=Vt._driver,yt(),nt._wrapLibraryMethodsWithReady(),nt._initDriver=function(Bt){return function(){var Le=0;return function an(){for(;Le<Bt.length;){var Qe=Bt[Le];return Le++,nt._dbInfo=null,nt._ready=null,nt.getDriver(Qe).then(St).catch(an)}yt();var Qn=new Error("No available storage method found.");return nt._driverSet=$.reject(Qn),nt._driverSet}()}}(it)})}).catch(function(){yt();var wt=new Error("No available storage method found.");return nt._driverSet=$.reject(wt),nt._driverSet}),kt(this._driverSet,H,at),this._driverSet},I.prototype.supports=function(z){return!!gi[z]},I.prototype._extend=function(z){Pi(this,z)},I.prototype._getSupportedDrivers=function(z){for(var H=[],at=0,nt=z.length;at<nt;at++){var it=z[at];this.supports(it)&&H.push(it)}return H},I.prototype._wrapLibraryMethodsWithReady=function(){for(var z=0,H=Oo.length;z<H;z++)$i(this,Oo[z])},I.prototype.createInstance=function(z){return new I(z)},I}());lt.exports=ao},{3:3}]},{},[4])(4)}).call(this,S(4))},function(N,w){N.exports=function(S){return S.webpackPolyfill||(S.deprecate=function(){},S.paths=[],S.children||(S.children=[]),Object.defineProperty(S,"loaded",{enumerable:!0,get:function(){return S.l}}),Object.defineProperty(S,"id",{enumerable:!0,get:function(){return S.i}}),S.webpackPolyfill=1),S}},function(N,w,S){var W=Object.prototype.hasOwnProperty,pt="~";function lt(){}function J($,ut,kt){this.fn=$,this.context=ut,this.once=kt||!1}function X($,ut,kt,Gt,zt){if(typeof kt!="function")throw new TypeError("The listener must be a function");var L=new J(kt,Gt||$,zt),k=pt?pt+ut:ut;return $._events[k]?$._events[k].fn?$._events[k]=[$._events[k],L]:$._events[k].push(L):($._events[k]=L,$._eventsCount++),$}function ct($,ut){--$._eventsCount==0?$._events=new lt:delete $._events[ut]}function tt(){this._events=new lt,this._eventsCount=0}Object.create&&(lt.prototype=Object.create(null),new lt().__proto__||(pt=!1)),tt.prototype.eventNames=function(){var $,ut,kt=[];if(this._eventsCount===0)return kt;for(ut in $=this._events)W.call($,ut)&&kt.push(pt?ut.slice(1):ut);return Object.getOwnPropertySymbols?kt.concat(Object.getOwnPropertySymbols($)):kt},tt.prototype.listeners=function($){var ut=pt?pt+$:$,kt=this._events[ut];if(!kt)return[];if(kt.fn)return[kt.fn];for(var Gt=0,zt=kt.length,L=new Array(zt);Gt<zt;Gt++)L[Gt]=kt[Gt].fn;return L},tt.prototype.listenerCount=function($){var ut=pt?pt+$:$,kt=this._events[ut];return kt?kt.fn?1:kt.length:0},tt.prototype.emit=function($,ut,kt,Gt,zt,L){var k=pt?pt+$:$;if(!this._events[k])return!1;var Y,ht,B=this._events[k],Q=arguments.length;if(B.fn){switch(B.once&&this.removeListener($,B.fn,void 0,!0),Q){case 1:return B.fn.call(B.context),!0;case 2:return B.fn.call(B.context,ut),!0;case 3:return B.fn.call(B.context,ut,kt),!0;case 4:return B.fn.call(B.context,ut,kt,Gt),!0;case 5:return B.fn.call(B.context,ut,kt,Gt,zt),!0;case 6:return B.fn.call(B.context,ut,kt,Gt,zt,L),!0}for(ht=1,Y=new Array(Q-1);ht<Q;ht++)Y[ht-1]=arguments[ht];B.fn.apply(B.context,Y)}else{var et,ft=B.length;for(ht=0;ht<ft;ht++)switch(B[ht].once&&this.removeListener($,B[ht].fn,void 0,!0),Q){case 1:B[ht].fn.call(B[ht].context);break;case 2:B[ht].fn.call(B[ht].context,ut);break;case 3:B[ht].fn.call(B[ht].context,ut,kt);break;case 4:B[ht].fn.call(B[ht].context,ut,kt,Gt);break;default:if(!Y)for(et=1,Y=new Array(Q-1);et<Q;et++)Y[et-1]=arguments[et];B[ht].fn.apply(B[ht].context,Y)}}return!0},tt.prototype.on=function($,ut,kt){return X(this,$,ut,kt,!1)},tt.prototype.once=function($,ut,kt){return X(this,$,ut,kt,!0)},tt.prototype.removeListener=function($,ut,kt,Gt){var zt=pt?pt+$:$;if(!this._events[zt])return this;if(!ut)return ct(this,zt),this;var L=this._events[zt];if(L.fn)L.fn!==ut||Gt&&!L.once||kt&&L.context!==kt||ct(this,zt);else{for(var k=0,Y=[],ht=L.length;k<ht;k++)(L[k].fn!==ut||Gt&&!L[k].once||kt&&L[k].context!==kt)&&Y.push(L[k]);Y.length?this._events[zt]=Y.length===1?Y[0]:Y:ct(this,zt)}return this},tt.prototype.removeAllListeners=function($){var ut;return $?(ut=pt?pt+$:$,this._events[ut]&&ct(this,ut)):(this._events=new lt,this._eventsCount=0),this},tt.prototype.off=tt.prototype.removeListener,tt.prototype.addListener=tt.prototype.on,tt.prefixed=pt,tt.EventEmitter=tt,N.exports=tt},function(N,w,S){function W(rt,Ut,Wt){Wt=Wt||2;var te,Xt,le,fe,Ye,ke,Hn,Ke=Ut&&Ut.length,Ln=Ke?Ut[0]*Wt:rt.length,Bn=pt(rt,0,Ln,Wt,!0),Wn=[];if(!Bn||Bn.next===Bn.prev)return Wn;if(Ke&&(Bn=function(Pr,Ur,Rr,qr){var yr,br,gi,hr,Or,Jr=[];for(yr=0,br=Ur.length;yr<br;yr++)gi=Ur[yr]*qr,hr=yr<br-1?Ur[yr+1]*qr:Pr.length,(Or=pt(Pr,gi,hr,qr,!1))===Or.next&&(Or.steiner=!0),Jr.push(L(Or));for(Jr.sort(ut),yr=0;yr<Jr.length;yr++)Rr=lt(Rr=kt(Jr[yr],Rr),Rr.next);return Rr}(rt,Ut,Bn,Wt)),rt.length>80*Wt){te=le=rt[0],Xt=fe=rt[1];for(var vn=Wt;vn<Ln;vn+=Wt)(Ye=rt[vn])<te&&(te=Ye),(ke=rt[vn+1])<Xt&&(Xt=ke),Ye>le&&(le=Ye),ke>fe&&(fe=ke);Hn=(Hn=Math.max(le-te,fe-Xt))!==0?1/Hn:0}return J(Bn,Wn,Wt,te,Xt,Hn),Wn}function pt(rt,Ut,Wt,te,Xt){var le,fe;if(Xt===Kt(rt,Ut,Wt,te)>0)for(le=Ut;le<Wt;le+=te)fe=ne(le,rt[le],rt[le+1],fe);else for(le=Wt-te;le>=Ut;le-=te)fe=ne(le,rt[le],rt[le+1],fe);return fe&&B(fe,fe.next)&&(bt(fe),fe=fe.next),fe}function lt(rt,Ut){if(!rt)return rt;Ut||(Ut=rt);var Wt,te=rt;do if(Wt=!1,te.steiner||!B(te,te.next)&&ht(te.prev,te,te.next)!==0)te=te.next;else{if(bt(te),(te=Ut=te.prev)===te.next)break;Wt=!0}while(Wt||te!==Ut);return Ut}function J(rt,Ut,Wt,te,Xt,le,fe){if(rt){!fe&&le&&function(Ke,Ln,Bn,Wn){var vn=Ke;do vn.z===null&&(vn.z=zt(vn.x,vn.y,Ln,Bn,Wn)),vn.prevZ=vn.prev,vn.nextZ=vn.next,vn=vn.next;while(vn!==Ke);vn.prevZ.nextZ=null,vn.prevZ=null,function(Pr){var Ur,Rr,qr,yr,br,gi,hr,Or,Jr=1;do{for(Rr=Pr,Pr=null,br=null,gi=0;Rr;){for(gi++,qr=Rr,hr=0,Ur=0;Ur<Jr&&(hr++,qr=qr.nextZ);Ur++);for(Or=Jr;hr>0||Or>0&&qr;)hr!==0&&(Or===0||!qr||Rr.z<=qr.z)?(yr=Rr,Rr=Rr.nextZ,hr--):(yr=qr,qr=qr.nextZ,Or--),br?br.nextZ=yr:Pr=yr,yr.prevZ=br,br=yr;Rr=qr}br.nextZ=null,Jr*=2}while(gi>1)}(vn)}(rt,te,Xt,le);for(var Ye,ke,Hn=rt;rt.prev!==rt.next;)if(Ye=rt.prev,ke=rt.next,le?ct(rt,te,Xt,le):X(rt))Ut.push(Ye.i/Wt),Ut.push(rt.i/Wt),Ut.push(ke.i/Wt),bt(rt),rt=ke.next,Hn=ke.next;else if((rt=ke)===Hn){fe?fe===1?J(rt=tt(lt(rt),Ut,Wt),Ut,Wt,te,Xt,le,2):fe===2&&$(rt,Ut,Wt,te,Xt,le):J(lt(rt),Ut,Wt,te,Xt,le,1);break}}}function X(rt){var Ut=rt.prev,Wt=rt,te=rt.next;if(ht(Ut,Wt,te)>=0)return!1;for(var Xt=rt.next.next;Xt!==rt.prev;){if(k(Ut.x,Ut.y,Wt.x,Wt.y,te.x,te.y,Xt.x,Xt.y)&&ht(Xt.prev,Xt,Xt.next)>=0)return!1;Xt=Xt.next}return!0}function ct(rt,Ut,Wt,te){var Xt=rt.prev,le=rt,fe=rt.next;if(ht(Xt,le,fe)>=0)return!1;for(var Ye=Xt.x<le.x?Xt.x<fe.x?Xt.x:fe.x:le.x<fe.x?le.x:fe.x,ke=Xt.y<le.y?Xt.y<fe.y?Xt.y:fe.y:le.y<fe.y?le.y:fe.y,Hn=Xt.x>le.x?Xt.x>fe.x?Xt.x:fe.x:le.x>fe.x?le.x:fe.x,Ke=Xt.y>le.y?Xt.y>fe.y?Xt.y:fe.y:le.y>fe.y?le.y:fe.y,Ln=zt(Ye,ke,Ut,Wt,te),Bn=zt(Hn,Ke,Ut,Wt,te),Wn=rt.prevZ,vn=rt.nextZ;Wn&&Wn.z>=Ln&&vn&&vn.z<=Bn;){if(Wn!==rt.prev&&Wn!==rt.next&&k(Xt.x,Xt.y,le.x,le.y,fe.x,fe.y,Wn.x,Wn.y)&&ht(Wn.prev,Wn,Wn.next)>=0||(Wn=Wn.prevZ,vn!==rt.prev&&vn!==rt.next&&k(Xt.x,Xt.y,le.x,le.y,fe.x,fe.y,vn.x,vn.y)&&ht(vn.prev,vn,vn.next)>=0))return!1;vn=vn.nextZ}for(;Wn&&Wn.z>=Ln;){if(Wn!==rt.prev&&Wn!==rt.next&&k(Xt.x,Xt.y,le.x,le.y,fe.x,fe.y,Wn.x,Wn.y)&&ht(Wn.prev,Wn,Wn.next)>=0)return!1;Wn=Wn.prevZ}for(;vn&&vn.z<=Bn;){if(vn!==rt.prev&&vn!==rt.next&&k(Xt.x,Xt.y,le.x,le.y,fe.x,fe.y,vn.x,vn.y)&&ht(vn.prev,vn,vn.next)>=0)return!1;vn=vn.nextZ}return!0}function tt(rt,Ut,Wt){var te=rt;do{var Xt=te.prev,le=te.next.next;!B(Xt,le)&&Q(Xt,te,te.next,le)&&ae(Xt,le)&&ae(le,Xt)&&(Ut.push(Xt.i/Wt),Ut.push(te.i/Wt),Ut.push(le.i/Wt),bt(te),bt(te.next),te=rt=le),te=te.next}while(te!==rt);return lt(te)}function $(rt,Ut,Wt,te,Xt,le){var fe=rt;do{for(var Ye=fe.next.next;Ye!==fe.prev;){if(fe.i!==Ye.i&&Y(fe,Ye)){var ke=Oe(fe,Ye);return fe=lt(fe,fe.next),ke=lt(ke,ke.next),J(fe,Ut,Wt,te,Xt,le),void J(ke,Ut,Wt,te,Xt,le)}Ye=Ye.next}fe=fe.next}while(fe!==rt)}function ut(rt,Ut){return rt.x-Ut.x}function kt(rt,Ut){var Wt=function(le,fe){var Ye,ke=fe,Hn=le.x,Ke=le.y,Ln=-1/0;do{if(Ke<=ke.y&&Ke>=ke.next.y&&ke.next.y!==ke.y){var Bn=ke.x+(Ke-ke.y)*(ke.next.x-ke.x)/(ke.next.y-ke.y);if(Bn<=Hn&&Bn>Ln){if(Ln=Bn,Bn===Hn){if(Ke===ke.y)return ke;if(Ke===ke.next.y)return ke.next}Ye=ke.x<ke.next.x?ke:ke.next}}ke=ke.next}while(ke!==fe);if(!Ye)return null;if(Hn===Ln)return Ye;var Wn,vn=Ye,Pr=Ye.x,Ur=Ye.y,Rr=1/0;ke=Ye;do Hn>=ke.x&&ke.x>=Pr&&Hn!==ke.x&&k(Ke<Ur?Hn:Ln,Ke,Pr,Ur,Ke<Ur?Ln:Hn,Ke,ke.x,ke.y)&&(Wn=Math.abs(Ke-ke.y)/(Hn-ke.x),ae(ke,le)&&(Wn<Rr||Wn===Rr&&(ke.x>Ye.x||ke.x===Ye.x&&Gt(Ye,ke)))&&(Ye=ke,Rr=Wn)),ke=ke.next;while(ke!==vn);return Ye}(rt,Ut);if(!Wt)return Ut;var te=Oe(Wt,rt),Xt=lt(Wt,Wt.next);return lt(te,te.next),Ut===Wt?Xt:Ut}function Gt(rt,Ut){return ht(rt.prev,rt,Ut.prev)<0&&ht(Ut.next,rt,rt.next)<0}function zt(rt,Ut,Wt,te,Xt){return(rt=1431655765&((rt=858993459&((rt=252645135&((rt=16711935&((rt=32767*(rt-Wt)*Xt)|rt<<8))|rt<<4))|rt<<2))|rt<<1))|(Ut=1431655765&((Ut=858993459&((Ut=252645135&((Ut=16711935&((Ut=32767*(Ut-te)*Xt)|Ut<<8))|Ut<<4))|Ut<<2))|Ut<<1))<<1}function L(rt){var Ut=rt,Wt=rt;do(Ut.x<Wt.x||Ut.x===Wt.x&&Ut.y<Wt.y)&&(Wt=Ut),Ut=Ut.next;while(Ut!==rt);return Wt}function k(rt,Ut,Wt,te,Xt,le,fe,Ye){return(Xt-fe)*(Ut-Ye)-(rt-fe)*(le-Ye)>=0&&(rt-fe)*(te-Ye)-(Wt-fe)*(Ut-Ye)>=0&&(Wt-fe)*(le-Ye)-(Xt-fe)*(te-Ye)>=0}function Y(rt,Ut){return rt.next.i!==Ut.i&&rt.prev.i!==Ut.i&&!function(Wt,te){var Xt=Wt;do{if(Xt.i!==Wt.i&&Xt.next.i!==Wt.i&&Xt.i!==te.i&&Xt.next.i!==te.i&&Q(Xt,Xt.next,Wt,te))return!0;Xt=Xt.next}while(Xt!==Wt);return!1}(rt,Ut)&&(ae(rt,Ut)&&ae(Ut,rt)&&function(Wt,te){var Xt=Wt,le=!1,fe=(Wt.x+te.x)/2,Ye=(Wt.y+te.y)/2;do Xt.y>Ye!=Xt.next.y>Ye&&Xt.next.y!==Xt.y&&fe<(Xt.next.x-Xt.x)*(Ye-Xt.y)/(Xt.next.y-Xt.y)+Xt.x&&(le=!le),Xt=Xt.next;while(Xt!==Wt);return le}(rt,Ut)&&(ht(rt.prev,rt,Ut.prev)||ht(rt,Ut.prev,Ut))||B(rt,Ut)&&ht(rt.prev,rt,rt.next)>0&&ht(Ut.prev,Ut,Ut.next)>0)}function ht(rt,Ut,Wt){return(Ut.y-rt.y)*(Wt.x-Ut.x)-(Ut.x-rt.x)*(Wt.y-Ut.y)}function B(rt,Ut){return rt.x===Ut.x&&rt.y===Ut.y}function Q(rt,Ut,Wt,te){var Xt=ft(ht(rt,Ut,Wt)),le=ft(ht(rt,Ut,te)),fe=ft(ht(Wt,te,rt)),Ye=ft(ht(Wt,te,Ut));return Xt!==le&&fe!==Ye||!(Xt!==0||!et(rt,Wt,Ut))||!(le!==0||!et(rt,te,Ut))||!(fe!==0||!et(Wt,rt,te))||!(Ye!==0||!et(Wt,Ut,te))}function et(rt,Ut,Wt){return Ut.x<=Math.max(rt.x,Wt.x)&&Ut.x>=Math.min(rt.x,Wt.x)&&Ut.y<=Math.max(rt.y,Wt.y)&&Ut.y>=Math.min(rt.y,Wt.y)}function ft(rt){return rt>0?1:rt<0?-1:0}function ae(rt,Ut){return ht(rt.prev,rt,rt.next)<0?ht(rt,Ut,rt.next)>=0&&ht(rt,rt.prev,Ut)>=0:ht(rt,Ut,rt.prev)<0||ht(rt,rt.next,Ut)<0}function Oe(rt,Ut){var Wt=new Jt(rt.i,rt.x,rt.y),te=new Jt(Ut.i,Ut.x,Ut.y),Xt=rt.next,le=Ut.prev;return rt.next=Ut,Ut.prev=rt,Wt.next=Xt,Xt.prev=Wt,te.next=Wt,Wt.prev=te,le.next=te,te.prev=le,te}function ne(rt,Ut,Wt,te){var Xt=new Jt(rt,Ut,Wt);return te?(Xt.next=te.next,Xt.prev=te,te.next.prev=Xt,te.next=Xt):(Xt.prev=Xt,Xt.next=Xt),Xt}function bt(rt){rt.next.prev=rt.prev,rt.prev.next=rt.next,rt.prevZ&&(rt.prevZ.nextZ=rt.nextZ),rt.nextZ&&(rt.nextZ.prevZ=rt.prevZ)}function Jt(rt,Ut,Wt){this.i=rt,this.x=Ut,this.y=Wt,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Kt(rt,Ut,Wt,te){for(var Xt=0,le=Ut,fe=Wt-te;le<Wt;le+=te)Xt+=(rt[fe]-rt[le])*(rt[le+1]+rt[fe+1]),fe=le;return Xt}N.exports=W,N.exports.default=W,W.deviation=function(rt,Ut,Wt,te){var Xt=Ut&&Ut.length,le=Xt?Ut[0]*Wt:rt.length,fe=Math.abs(Kt(rt,0,le,Wt));if(Xt)for(var Ye=0,ke=Ut.length;Ye<ke;Ye++){var Hn=Ut[Ye]*Wt,Ke=Ye<ke-1?Ut[Ye+1]*Wt:rt.length;fe-=Math.abs(Kt(rt,Hn,Ke,Wt))}var Ln=0;for(Ye=0;Ye<te.length;Ye+=3){var Bn=te[Ye]*Wt,Wn=te[Ye+1]*Wt,vn=te[Ye+2]*Wt;Ln+=Math.abs((rt[Bn]-rt[vn])*(rt[Wn+1]-rt[Bn+1])-(rt[Bn]-rt[Wn])*(rt[vn+1]-rt[Bn+1]))}return fe===0&&Ln===0?0:Math.abs((Ln-fe)/fe)},W.flatten=function(rt){for(var Ut=rt[0][0].length,Wt={vertices:[],holes:[],dimensions:Ut},te=0,Xt=0;Xt<rt.length;Xt++){for(var le=0;le<rt[Xt].length;le++)for(var fe=0;fe<Ut;fe++)Wt.vertices.push(rt[Xt][le][fe]);Xt>0&&(te+=rt[Xt-1].length,Wt.holes.push(te))}return Wt}},function(N,w,S){N.exports=function(W){var pt={};function lt(J){if(pt[J])return pt[J].exports;var X=pt[J]={i:J,l:!1,exports:{}};return W[J].call(X.exports,X,X.exports,lt),X.l=!0,X.exports}return lt.m=W,lt.c=pt,lt.d=function(J,X,ct){lt.o(J,X)||Object.defineProperty(J,X,{enumerable:!0,get:ct})},lt.r=function(J){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(J,"__esModule",{value:!0})},lt.t=function(J,X){if(1&X&&(J=lt(J)),8&X||4&X&&typeof J=="object"&&J&&J.__esModule)return J;var ct=Object.create(null);if(lt.r(ct),Object.defineProperty(ct,"default",{enumerable:!0,value:J}),2&X&&typeof J!="string")for(var tt in J)lt.d(ct,tt,function($){return J[$]}.bind(null,tt));return ct},lt.n=function(J){var X=J&&J.__esModule?function(){return J.default}:function(){return J};return lt.d(X,"a",X),X},lt.o=function(J,X){return Object.prototype.hasOwnProperty.call(J,X)},lt.p="",lt(lt.s=34)}([function(W,pt){W.exports=S(5)},function(W,pt){W.exports=`varying vec2 vUv;
|
|
3182
3182
|
void main() {
|
|
3183
3183
|
vUv = uv;
|
|
@@ -6075,6 +6075,6 @@ void main(void){
|
|
|
6075
6075
|
`)}},n.prototype.emitSyncDispatch=function(e){if(!this.lock.isLocked(e.type)){var r=Math.random().toString(32).substr(2);this.lock.addLock(e.type,r),this.emit(Ds.syncDispatch,Yu(Yu({},e),{uuid:r})),this.log+="=== sync dispatch ["+new Date().toISOString()+`] ===
|
|
6076
6076
|
`,this.log+=JSON.stringify(e,null,2),this.log+=`
|
|
6077
6077
|
|
|
6078
|
-
`}},n.prototype.setMainSeqStep=function(e,r){var s;(s=this.player)===null||s===void 0||s.setMainSeqStep(e,r)},n.prototype.setInteractive=function(e){var r;this.interactive=e,(r=this.player)===null||r===void 0||r.setInteractive(e)},n.prototype.pause=function(){var e;(e=this.player)===null||e===void 0||e.pause()},n.prototype.resume=function(){var e;(e=this.player)===null||e===void 0||e.resume()},n.prototype.getPreviewImage=function(e){var r;return Ta(this,void 0,void 0,function(){return Ea(this,function(s){return[2,((r=this.player)===null||r===void 0?void 0:r.getPreviewImage(e))||null]})})},n.prototype.frozen=function(){var e;return Ta(this,void 0,void 0,function(){var r,s,u,h=this;return Ea(this,function(f){switch(f.label){case 0:return this.isFrowning?[2,fd(function(){return!h.isFrowning},6e4)]:this.view&&this.player?(this.isFrowning=!0,[4,this.player.clock.waitUntil(function(){return!h.isLoading},6e4)]):[3,2];case 1:for(s in f.sent(),r=this.player.getSnapshot()||"",this.cacheImage.src=r,this.cacheImage.style.position="absolute",this.cacheImage.style.zIndex="100",this.frame.appendChild(this.cacheImage),this.player.destroy(),(e=this.playerController)===null||e===void 0||e.destroy(),this.player=void 0,this.__slideState.mediaState)u=this.__slideState.mediaState[s],this.__slideState.mediaState[s]=Yu(Yu({},u),{frozenTime:this.timestamp()});this.isFrowning=!1,f.label=2;case 2:return[2]}})})},n.prototype.release=function(){var e;return Ta(this,void 0,void 0,function(){var r,s,u,h,f=this;return Ea(this,function(y){switch(y.label){case 0:if(this.isReleasing)return[2,fd(function(){return!f.isReleasing},6e4)];for(s in this.isReleasing=!0,this.initPlayer(this.config),this.player.view&&(this.player.view.style.visibility="hidden"),r=this.__slideState,this.__slideState=Object(X.cloneDeep)(om),r.mediaState)(u=r.mediaState[s]).type==="play"&&(h=Math.max((e=u.frozenTime)!==null&&e!==void 0?e:0,u.time),u.time=this.timestamp()-(h-u.time),u.frozenTime=void 0);return[4,this.setSlideState(r)];case 1:return y.sent(),[4,this.player.clock.delay(333)];case 2:y.sent(),this.player.view&&(this.player.view.style.visibility="visible");try{this.frame.removeChild(this.cacheImage)}catch{}return this.isReleasing=!1,[2]}})})},n.prototype.destroy=function(){var e,r,s,u;this.playerController&&this.playerController.destroy(),this.frameResizeObserver.disconnect(),(e=this.player)===null||e===void 0||e.removeAllListeners(),(r=this.player)===null||r===void 0||r.destroy(),(s=this.player)===null||s===void 0||s.removeAllListeners(),window.removeEventListener("__slide_log__",this.handleLogDownload),window.removeEventListener("__slide_state__",this.handleSlideStateLog),window.removeEventListener("__slide_ref__",this.handleSlideRef),window.clearInterval(this.persistLogId),Zu&&Zu.removeItem(this.logId).catch(function(){});try{((u=this.player)===null||u===void 0?void 0:u.view)&&this.anchor.removeChild(this.player.view)}catch{}},n}(J.a)}]);function Zg(N,w,S){return Math.min(Math.max(N,w),S)}function Jg(N){return typeof N=="object"&&N!==null}function cm(N){return JSON.parse(JSON.stringify(N))}var $g={exports:{}},b0={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Kg={exports:{}},w0=function(w){return!w||typeof w=="string"?!1:w instanceof Array||Array.isArray(w)||w.length>=0&&(w.splice instanceof Function||Object.getOwnPropertyDescriptor(w,w.length-1)&&w.constructor.name!=="String")},S0=w0,T0=Array.prototype.concat,E0=Array.prototype.slice,Qg=Kg.exports=function(w){for(var S=[],W=0,pt=w.length;W<pt;W++){var lt=w[W];S0(lt)?S=T0.call(S,E0.call(lt)):S.push(lt)}return S};Qg.wrap=function(N){return function(){return N(Qg(arguments))}};var dm=b0,pm=Kg.exports,tv=Object.hasOwnProperty,ev={};for(var yg in dm)tv.call(dm,yg)&&(ev[dm[yg]]=yg);var il=$g.exports={to:{},get:{}};il.get=function(N){var w=N.substring(0,3).toLowerCase(),S,W;switch(w){case"hsl":S=il.get.hsl(N),W="hsl";break;case"hwb":S=il.get.hwb(N),W="hwb";break;default:S=il.get.rgb(N),W="rgb";break}return S?{model:W,value:S}:null};il.get.rgb=function(N){if(!N)return null;var w=/^#([a-f0-9]{3,4})$/i,S=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,W=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,pt=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,lt=/^(\w+)$/,J=[0,0,0,1],X,ct,tt;if(X=N.match(S)){for(tt=X[2],X=X[1],ct=0;ct<3;ct++){var $=ct*2;J[ct]=parseInt(X.slice($,$+2),16)}tt&&(J[3]=parseInt(tt,16)/255)}else if(X=N.match(w)){for(X=X[1],tt=X[3],ct=0;ct<3;ct++)J[ct]=parseInt(X[ct]+X[ct],16);tt&&(J[3]=parseInt(tt+tt,16)/255)}else if(X=N.match(W)){for(ct=0;ct<3;ct++)J[ct]=parseInt(X[ct+1],0);X[4]&&(X[5]?J[3]=parseFloat(X[4])*.01:J[3]=parseFloat(X[4]))}else if(X=N.match(pt)){for(ct=0;ct<3;ct++)J[ct]=Math.round(parseFloat(X[ct+1])*2.55);X[4]&&(X[5]?J[3]=parseFloat(X[4])*.01:J[3]=parseFloat(X[4]))}else return(X=N.match(lt))?X[1]==="transparent"?[0,0,0,0]:tv.call(dm,X[1])?(J=dm[X[1]],J[3]=1,J):null:null;for(ct=0;ct<3;ct++)J[ct]=gd(J[ct],0,255);return J[3]=gd(J[3],0,1),J};il.get.hsl=function(N){if(!N)return null;var w=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?[\d\.]+)\s*)?\)$/,S=N.match(w);if(S){var W=parseFloat(S[4]),pt=(parseFloat(S[1])%360+360)%360,lt=gd(parseFloat(S[2]),0,100),J=gd(parseFloat(S[3]),0,100),X=gd(isNaN(W)?1:W,0,1);return[pt,lt,J,X]}return null};il.get.hwb=function(N){if(!N)return null;var w=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,S=N.match(w);if(S){var W=parseFloat(S[4]),pt=(parseFloat(S[1])%360+360)%360,lt=gd(parseFloat(S[2]),0,100),J=gd(parseFloat(S[3]),0,100),X=gd(isNaN(W)?1:W,0,1);return[pt,lt,J,X]}return null};il.to.hex=function(){var N=pm(arguments);return"#"+qm(N[0])+qm(N[1])+qm(N[2])+(N[3]<1?qm(Math.round(N[3]*255)):"")};il.to.rgb=function(){var N=pm(arguments);return N.length<4||N[3]===1?"rgb("+Math.round(N[0])+", "+Math.round(N[1])+", "+Math.round(N[2])+")":"rgba("+Math.round(N[0])+", "+Math.round(N[1])+", "+Math.round(N[2])+", "+N[3]+")"};il.to.rgb.percent=function(){var N=pm(arguments),w=Math.round(N[0]/255*100),S=Math.round(N[1]/255*100),W=Math.round(N[2]/255*100);return N.length<4||N[3]===1?"rgb("+w+"%, "+S+"%, "+W+"%)":"rgba("+w+"%, "+S+"%, "+W+"%, "+N[3]+")"};il.to.hsl=function(){var N=pm(arguments);return N.length<4||N[3]===1?"hsl("+N[0]+", "+N[1]+"%, "+N[2]+"%)":"hsla("+N[0]+", "+N[1]+"%, "+N[2]+"%, "+N[3]+")"};il.to.hwb=function(){var N=pm(arguments),w="";return N.length>=4&&N[3]!==1&&(w=", "+N[3]),"hwb("+N[0]+", "+N[1]+"%, "+N[2]+"%"+w+")"};il.to.keyword=function(N){return ev[N.slice(0,3)]};function gd(N,w,S){return Math.min(Math.max(w,N),S)}function qm(N){var w=Math.round(N).toString(16).toUpperCase();return w.length<2?"0"+w:w}var M0=$g.exports;class A0{constructor(w){this.enable=w,this.apps={},this.level="debug",this._onMessage=S=>{Jg(S.data)&&(typeof S.data.slide=="boolean"?this.enable=S.data.slide:S.data.slide==="__instance"&&console.log(this))},window.addEventListener("message",this._onMessage)}log(...w){this.enable&&console.log(...w)}verbose(...w){this.enable&&this.level==="verbose"&&console.log(...w)}dispose(w){this.enable=!1,delete this.apps[w],window.removeEventListener("message",this._onMessage)}}const $u=new A0(!1),es=$u.log.bind($u),C0=$u.verbose.bind($u);function nv(N){try{const w=window.getComputedStyle(N).backgroundColor;if(w!=="rgba(0, 0, 0, 0)"&&w!=="transparent")return w;if(N.parentElement)return nv(N.parentElement)}catch{}return"#ffffff"}function P0(N){const w=M0.get(N);if(w&&w.model==="rgb"){const S=w.value,pt=(((Math.round(S[0])&255)<<16)+((Math.round(S[1])&255)<<8)+(Math.round(S[2])&255)).toString(16);return"#"+"000000".substring(pt.length)+pt}else return N}let Ym="";function rv(N){return Ym||(Ym=P0(nv(N)),es("[Slide] guess bg color",Ym)),Ym}function iv(N){const{width:w,height:S,slideCount:W,slideState:pt}=N,{taskId:lt,url:J}=pt,X=[];for(let ct=1;ct<=W;++ct)X.push({width:w,height:S,thumbnail:`${J}/${lt}/preview/${ct}.png`,src:"ppt"});return X}function R0(N,w,S,W){var X;const pt=S.slideState.currentSlideIndex;if(!(pt>0)||!w.getIsWritable())return;const lt=[W,pt].join("/");if(N.scenePathType(lt)!=="page"){N.removeScenes(W);const ct=S.slideCount,tt=[];for(let $=1;$<=ct;++$)tt.push({name:`${$}`});N.putScenes(W,tt)}let J;w.getBox().focus?J=N.state.sceneState.scenePath:J=((X=w.getView())==null?void 0:X.focusScenePath)||"",J!==lt&&w.setScenePath(lt)}const xg="https://convertcdn.netless.link/dynamicConvert",I0=40,bg={taskId:"",url:"",state:null};class L0{constructor({context:w,anchor:S,onPageChanged:W,onTransitionStart:pt,onTransitionEnd:lt,onError:J}){this.sideEffect=new Xm,this.ready=!1,this.readyPromise=new Promise(X=>{this.resolveReady=()=>setTimeout(()=>{this.ready=!0,X()},1e3)}),this.onSyncDispatch=X=>{if(this.context.getIsWritable()&&this.room){const ct={type:bo.SLIDE_EVENTS.syncDispatch,payload:X};es("[Slide] dispatch",X),this.room.dispatchMagixEvent(this.channel,ct)}},this.magixEventListener=X=>{if(X.event===this.channel&&Jg(X.payload)){const{type:ct,payload:tt}=X.payload;ct===bo.SLIDE_EVENTS.syncDispatch&&(this.syncStateOnce(),es("[Slide] receive",tt),this.syncStateOnceFlag||this.slide.emit(bo.SLIDE_EVENTS.syncReceive,tt))}},this.onStateChange=X=>{this.context.getIsWritable()&&(C0("[Slide] state change",JSON.stringify(X,null,2)),this.context.updateAttributes(["state"],X))},this.onSeeked=()=>{const X=this.context.getAttributes().state;X&&this.slide.setSlideState(cm(X))},this.pollCount=0,this.pollReadyState=()=>{this.ready?this._toFreeze===1?this.freeze():this._toFreeze===-1&&this.unfreeze():this.pollCount<I0?(this.pollCount++,setTimeout(this.pollReadyState,500)):(this.pollCount=0,es("[Slide] renderSlide (retry after timeout)",1),this.slide.renderSlide(1))},this._pageCount=0,this.destroyed=!1,this.timestamp=()=>this.room&&this.room.calibrationTimestamp?this.room.calibrationTimestamp:this.player?this.player.beginTimestamp+this.player.progressTime:Date.now(),this.isFrozen=!1,this._toFreeze=0,this.freezePromise=null,this.freeze=()=>{this.ready?(es("[Slide] freeze",this.context.appId),this.freezePromise?this._toFreeze=1:this.isFrozen||(this._toFreeze=0,this.freezePromise=this.slide.frozen().then(this.afterFreeze.bind(this,1)))):this._toFreeze=1},this.unfreeze=async()=>{this.ready?(es("[Slide] unfreeze",this.context.appId),this.freezePromise?this._toFreeze=-1:this.isFrozen&&(this._toFreeze=0,this.freezePromise=this.slide.release().then(this.afterFreeze.bind(this,-1)))):this._toFreeze=-1},this.onPageChanged=W,this.onTransitionStart=pt,this.onTransitionEnd=lt,this.onError=J,this.context=w,this.channel=`channel-${w.appId}`,this.room=w.getRoom(),this.player=this.room?void 0:w.getDisplayer(),this.slide=this.createSlide(S),this.syncStateOnceFlag=!this.context.isAddApp,this.initialize()}jumpToPage(w){this.ready&&(w=Zg(w,1,this.pageCount),this.slide.renderSlide(w))}initialize(){this.registerEventListeners(),this.kickStart()}kickStart(){const{context:w,slide:S}=this,{taskId:W,url:pt,state:lt}=dp(dp({},bg),this.context.getAttributes());S.setResource(W,pt||xg),lt?(es("[Slide] init with state",cm(lt)),this.syncStateOnceFlag=!1,S.setSlideState(cm(lt))):w.isAddApp&&(es("[Slide] init by renderSlide",1),S.renderSlide(1)),this.pollReadyState()}registerEventListeners(){const{context:w,slide:S}=this;this.sideEffect.add(()=>{const W=w.mobxUtils.reaction(()=>w.getAttributes().state,()=>{this.syncStateOnce(),W()});return W}),this.sideEffect.add(()=>(w.emitter.on("seek",this.onSeeked),()=>w.emitter.off("seek",this.onSeeked))),this.sideEffect.add(()=>{const W=w.getDisplayer();return W.addMagixEventListener(this.channel,this.magixEventListener,{fireSelfEventAfterCommit:!0}),()=>W.removeMagixEventListener(this.channel)}),S.on(bo.SLIDE_EVENTS.slideChange,this.onPageChanged),S.on(bo.SLIDE_EVENTS.renderStart,this.onTransitionStart),S.on(bo.SLIDE_EVENTS.renderEnd,this.onTransitionEnd),S.on(bo.SLIDE_EVENTS.mainSeqStepStart,this.onTransitionStart),S.on(bo.SLIDE_EVENTS.mainSeqStepEnd,this.onTransitionEnd),S.on(bo.SLIDE_EVENTS.renderError,this.onError),S.on(bo.SLIDE_EVENTS.stateChange,this.onStateChange),S.on(bo.SLIDE_EVENTS.syncDispatch,this.onSyncDispatch),S.on(bo.SLIDE_EVENTS.renderEnd,this.resolveReady)}syncStateOnce(){if(this.syncStateOnceFlag){const{state:w}=dp(dp({},bg),this.context.getAttributes());w&&(es("[Slide] sync with state (once)",cm(w)),this.slide.setSlideState(cm(w)),this.syncStateOnceFlag=!1)}}get pageCount(){return this._pageCount>0?this._pageCount:(this._pageCount=this.slide.slideCount,this._pageCount)}get page(){return this.slide.slideState.currentSlideIndex}createSlide(w){var W,pt;return new bo.Slide({anchor:w,interactive:!0,mode:"interactive",resize:!0,controller:$u.enable,renderOptions:{minFPS:25,maxFPS:30,autoFPS:!0,autoResolution:!0,resolution:(W=this.context.getAppOptions())==null?void 0:W.resolution,transactionBgColor:((pt=this.context.getAppOptions())==null?void 0:pt.bgColor)||rv(w)},timestamp:this.timestamp})}destroy(){this.sideEffect.flushAll(),this.destroyed||(es("[Slide] destroy slide (once)"),this.slide.destroy(),this.destroyed=!0)}afterFreeze(w){w===1?(this.isFrozen=!0,this.freezePromise=null,this._toFreeze===-1&&this.unfreeze()):w===-1&&(this.isFrozen=!1,this.freezePromise=null,this._toFreeze===1&&this.freeze())}}function O0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-sidebar`),S.setAttribute("viewBox","0 0 64 64");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M50 8H14c-3.309 0-6 2.691-6 6v36c0 3.309 2.691 6 6 6h36c3.309 0 6-2.691 6-6V14c0-3.309-2.691-6-6-6zM12 50V14c0-1.103.897-2 2-2h8v40h-8c-1.103 0-2-.897-2-2zm40 0c0 1.103-.897 2-2 2H26V12h24c1.103 0 2 .897 2 2z"),S.appendChild(W),S}function D0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-arrow-left`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M177.81 249.959L337.473 90.295c2.722-2.865 2.651-7.378-.143-10.1-2.793-2.65-7.163-2.65-9.956 0l-164.75 164.75c-2.793 2.793-2.793 7.306 0 10.1l164.75 164.75c2.865 2.722 7.378 2.65 10.099-.143 2.651-2.794 2.651-7.163 0-9.957L177.809 249.959z"),S.appendChild(W),S}function N0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-arrow-right`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M322.19 250.041L162.527 409.705c-2.722 2.865-2.651 7.378.143 10.1 2.793 2.65 7.163 2.65 9.956 0l164.75-164.75c2.793-2.793 2.793-7.306 0-10.1l-164.75-164.75c-2.865-2.722-7.378-2.65-10.099.143-2.651 2.794-2.651 7.163 0 9.957l159.664 159.736z"),S.appendChild(W),S}function F0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-play`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M418.158 257.419L174.663 413.33c-6.017 3.919-15.708 3.772-21.291-.29-2.791-2.018-4.295-4.483-4.295-7.084V94.109c0-5.65 6.883-10.289 15.271-10.289 4.298 0 8.391 1.307 11.181 3.332l242.629 155.484c6.016 3.917 6.451 10.292.649 14.491-.216.154-.432.154-.649.292zM170.621 391.288l223.116-141.301L170.71 107.753l-.089 283.535z"),S.appendChild(W),S}function B0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-pause`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M312.491 78.261c0-6.159 4.893-11.213 11.04-11.213 6.158 0 11.211 5.054 11.211 11.213v343.478c0 6.159-5.053 11.213-11.211 11.213-6.147 0-11.04-5.054-11.04-11.213V78.261zM165.257 78.261c0-6.159 4.893-11.213 11.04-11.213 6.158 0 11.211 5.054 11.211 11.213v343.478c0 6.159-5.053 11.213-11.211 11.213-6.147 0-11.04-5.054-11.04-11.213V78.261z"),S.appendChild(W),S}const pp=typeof window!="undefined",ov=pp&&!("onscroll"in window)||typeof navigator!="undefined"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),sv=pp&&"IntersectionObserver"in window,av=pp&&"classList"in document.createElement("p"),lv=pp&&window.devicePixelRatio>1,k0={elements_selector:".lazy",container:ov||pp?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},uv=N=>Object.assign({},k0,N),hv=function(N,w){let S;const W="LazyLoad::Initialized",pt=new N(w);try{S=new CustomEvent(W,{detail:{instance:pt}})}catch{S=document.createEvent("CustomEvent"),S.initCustomEvent(W,!1,!1,{instance:pt})}window.dispatchEvent(S)},U0=(N,w)=>{if(!!w)if(!w.length)hv(N,w);else for(let S=0,W;W=w[S];S+=1)hv(N,W)},uc="src",wg="srcset",Sg="sizes",cv="poster",fm="llOriginalAttrs",Tg="loading",dv="loaded",pv="applied",G0="entered",Eg="error",fv="native",mv="data-",gv="ll-status",Tl=(N,w)=>N.getAttribute(mv+w),H0=(N,w,S)=>{var W=mv+w;if(S===null){N.removeAttribute(W);return}N.setAttribute(W,S)},mm=N=>Tl(N,gv),fp=(N,w)=>H0(N,gv,w),Zm=N=>fp(N,null),Mg=N=>mm(N)===null,z0=N=>mm(N)===Tg,j0=N=>mm(N)===Eg,Ag=N=>mm(N)===fv,V0=[Tg,dv,pv,Eg],W0=N=>V0.indexOf(mm(N))>=0,vd=(N,w,S,W)=>{if(!!N){if(W!==void 0){N(w,S,W);return}if(S!==void 0){N(w,S);return}N(w)}},mf=(N,w)=>{if(av){N.classList.add(w);return}N.className+=(N.className?" ":"")+w},Ku=(N,w)=>{if(av){N.classList.remove(w);return}N.className=N.className.replace(new RegExp("(^|\\s+)"+w+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},X0=N=>{N.llTempImage=document.createElement("IMG")},q0=N=>{delete N.llTempImage},vv=N=>N.llTempImage,Jm=(N,w)=>{if(!w)return;const S=w._observer;!S||S.unobserve(N)},Y0=N=>{N.disconnect()},Z0=(N,w,S)=>{w.unobserve_entered&&Jm(N,S)},Cg=(N,w)=>{!N||(N.loadingCount+=w)},J0=N=>{!N||(N.toLoadCount-=1)},_v=(N,w)=>{!N||(N.toLoadCount=w)},$0=N=>N.loadingCount>0,K0=N=>N.toLoadCount>0,yv=N=>{let w=[];for(let S=0,W;W=N.children[S];S+=1)W.tagName==="SOURCE"&&w.push(W);return w},Pg=(N,w)=>{const S=N.parentNode;if(!S||S.tagName!=="PICTURE")return;yv(S).forEach(w)},xv=(N,w)=>{yv(N).forEach(w)},$m=[uc],bv=[uc,cv],Km=[uc,wg,Sg],Qm=N=>!!N[fm],wv=N=>N[fm],Sv=N=>delete N[fm],gm=(N,w)=>{if(Qm(N))return;const S={};w.forEach(W=>{S[W]=N.getAttribute(W)}),N[fm]=S},Q0=N=>{Qm(N)||(N[fm]={backgroundImage:N.style.backgroundImage})},t_=(N,w,S)=>{if(!S){N.removeAttribute(w);return}N.setAttribute(w,S)},vm=(N,w)=>{if(!Qm(N))return;const S=wv(N);w.forEach(W=>{t_(N,W,S[W])})},e_=N=>{if(!Qm(N))return;const w=wv(N);N.style.backgroundImage=w.backgroundImage},n_=(N,w,S)=>{mf(N,w.class_applied),fp(N,pv),!!S&&(w.unobserve_completed&&Jm(N,w),vd(w.callback_applied,N,S))},Tv=(N,w,S)=>{mf(N,w.class_loading),fp(N,Tg),!!S&&(Cg(S,1),vd(w.callback_loading,N,S))},mp=(N,w,S)=>{!S||N.setAttribute(w,S)},Ev=(N,w)=>{mp(N,Sg,Tl(N,w.data_sizes)),mp(N,wg,Tl(N,w.data_srcset)),mp(N,uc,Tl(N,w.data_src))},r_=(N,w)=>{Pg(N,S=>{gm(S,Km),Ev(S,w)}),gm(N,Km),Ev(N,w)},i_=(N,w)=>{gm(N,$m),mp(N,uc,Tl(N,w.data_src))},o_=(N,w)=>{xv(N,S=>{gm(S,$m),mp(S,uc,Tl(S,w.data_src))}),gm(N,bv),mp(N,cv,Tl(N,w.data_poster)),mp(N,uc,Tl(N,w.data_src)),N.load()},s_=(N,w,S)=>{const W=Tl(N,w.data_bg),pt=Tl(N,w.data_bg_hidpi),lt=lv&&pt?pt:W;!lt||(N.style.backgroundImage=`url("${lt}")`,vv(N).setAttribute(uc,lt),Tv(N,w,S))},a_=(N,w,S)=>{const W=Tl(N,w.data_bg_multi),pt=Tl(N,w.data_bg_multi_hidpi),lt=lv&&pt?pt:W;!lt||(N.style.backgroundImage=lt,n_(N,w,S))},Mv={IMG:r_,IFRAME:i_,VIDEO:o_},l_=(N,w)=>{const S=Mv[N.tagName];!S||S(N,w)},u_=(N,w,S)=>{const W=Mv[N.tagName];!W||(W(N,w),Tv(N,w,S))},h_=["IMG","IFRAME","VIDEO"],c_=N=>h_.indexOf(N.tagName)>-1,Av=(N,w)=>{w&&!$0(w)&&!K0(w)&&vd(N.callback_finish,w)},Cv=(N,w,S)=>{N.addEventListener(w,S),N.llEvLisnrs[w]=S},d_=(N,w,S)=>{N.removeEventListener(w,S)},Rg=N=>!!N.llEvLisnrs,p_=(N,w,S)=>{Rg(N)||(N.llEvLisnrs={});const W=N.tagName==="VIDEO"?"loadeddata":"load";Cv(N,W,w),Cv(N,"error",S)},Ig=N=>{if(!Rg(N))return;const w=N.llEvLisnrs;for(let S in w){const W=w[S];d_(N,S,W)}delete N.llEvLisnrs},Pv=(N,w,S)=>{q0(N),Cg(S,-1),J0(S),Ku(N,w.class_loading),w.unobserve_completed&&Jm(N,S)},f_=(N,w,S,W)=>{const pt=Ag(w);Pv(w,S,W),mf(w,S.class_loaded),fp(w,dv),vd(S.callback_loaded,w,W),pt||Av(S,W)},m_=(N,w,S,W)=>{const pt=Ag(w);Pv(w,S,W),mf(w,S.class_error),fp(w,Eg),vd(S.callback_error,w,W),pt||Av(S,W)},Lg=(N,w,S)=>{const W=vv(N)||N;if(Rg(W))return;p_(W,J=>{f_(J,N,w,S),Ig(W)},J=>{m_(J,N,w,S),Ig(W)})},g_=(N,w,S)=>{X0(N),Lg(N,w,S),Q0(N),s_(N,w,S),a_(N,w,S)},v_=(N,w,S)=>{Lg(N,w,S),u_(N,w,S)},Og=(N,w,S)=>{c_(N)?v_(N,w,S):g_(N,w,S)},__=(N,w,S)=>{N.setAttribute("loading","lazy"),Lg(N,w,S),l_(N,w),fp(N,fv)},Rv=N=>{N.removeAttribute(uc),N.removeAttribute(wg),N.removeAttribute(Sg)},y_=N=>{Pg(N,w=>{Rv(w)}),Rv(N)},Iv=N=>{Pg(N,w=>{vm(w,Km)}),vm(N,Km)},x_=N=>{xv(N,w=>{vm(w,$m)}),vm(N,bv),N.load()},b_=N=>{vm(N,$m)},w_={IMG:Iv,IFRAME:b_,VIDEO:x_},S_=N=>{const w=w_[N.tagName];if(!w){e_(N);return}w(N)},T_=(N,w)=>{Mg(N)||Ag(N)||(Ku(N,w.class_entered),Ku(N,w.class_exited),Ku(N,w.class_applied),Ku(N,w.class_loading),Ku(N,w.class_loaded),Ku(N,w.class_error))},E_=(N,w)=>{S_(N),T_(N,w),Zm(N),Sv(N)},M_=(N,w,S,W)=>{!S.cancel_on_exit||!z0(N)||N.tagName==="IMG"&&(Ig(N),y_(N),Iv(N),Ku(N,S.class_loading),Cg(W,-1),Zm(N),vd(S.callback_cancel,N,w,W))},A_=(N,w,S,W)=>{const pt=W0(N);fp(N,G0),mf(N,S.class_entered),Ku(N,S.class_exited),Z0(N,S,W),vd(S.callback_enter,N,w,W),!pt&&Og(N,S,W)},C_=(N,w,S,W)=>{Mg(N)||(mf(N,S.class_exited),M_(N,w,S,W),vd(S.callback_exit,N,w,W))},P_=["IMG","IFRAME","VIDEO"],Lv=N=>N.use_native&&"loading"in HTMLImageElement.prototype,R_=(N,w,S)=>{N.forEach(W=>{P_.indexOf(W.tagName)!==-1&&__(W,w,S)}),_v(S,0)},I_=N=>N.isIntersecting||N.intersectionRatio>0,L_=N=>({root:N.container===document?null:N.container,rootMargin:N.thresholds||N.threshold+"px"}),O_=(N,w,S)=>{N.forEach(W=>I_(W)?A_(W.target,W,w,S):C_(W.target,W,w,S))},D_=(N,w)=>{w.forEach(S=>{N.observe(S)})},N_=(N,w)=>{Y0(N),D_(N,w)},F_=(N,w)=>{!sv||Lv(N)||(w._observer=new IntersectionObserver(S=>{O_(S,N,w)},L_(N)))},Ov=N=>Array.prototype.slice.call(N),tg=N=>N.container.querySelectorAll(N.elements_selector),B_=N=>Ov(N).filter(Mg),k_=N=>j0(N),U_=N=>Ov(N).filter(k_),Dv=(N,w)=>B_(N||tg(w)),G_=(N,w)=>{U_(tg(N)).forEach(W=>{Ku(W,N.class_error),Zm(W)}),w.update()},H_=(N,w)=>{!pp||window.addEventListener("online",()=>{G_(N,w)})},_m=function(N,w){const S=uv(N);this._settings=S,this.loadingCount=0,F_(S,this),H_(S,this),this.update(w)};_m.prototype={update:function(N){const w=this._settings,S=Dv(N,w);if(_v(this,S.length),ov||!sv){this.loadAll(S);return}if(Lv(w)){R_(S,w,this);return}N_(this._observer,S)},destroy:function(){this._observer&&this._observer.disconnect(),tg(this._settings).forEach(N=>{Sv(N)}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(N){const w=this._settings;Dv(N,w).forEach(W=>{Jm(W,this),Og(W,w,this)})},restoreAll:function(){const N=this._settings;tg(N).forEach(w=>{E_(w,N)})}};_m.load=(N,w)=>{const S=uv(w);Og(N,S)};_m.resetStatus=N=>{Zm(N)};pp&&U0(_m,window.lazyLoadOptions);class Nv{constructor({readonly:w,onNewPageIndex:S,onPlay:W}){this._pages=[],this.pageIndex=0,this.setPaused=()=>{this.$btnPlay.classList.toggle(this.wrapClassName("footer-btn-playing"),!1)},this.setPlaying=()=>{this.$btnPlay.classList.toggle(this.wrapClassName("footer-btn-playing"),!0)},this.namespace="netless-app-slide",this.isShowPreview=!1,this.isSmallBox=!1,this.sideEffect=new Xm,this.readonly=w,this.onNewPageIndex=S,this.onPlay=W,this.render()}set pages(w){this._pages=w,this.refreshPreview(),this.refreshTotalPage(),this.refreshBtnSidebar()}get pages(){return this._pages}unmount(){this.$content.remove(),this.$footer.remove()}setReadonly(w){this.readonly=w,this.$content.classList.toggle(this.wrapClassName("readonly"),w),this.$footer.classList.toggle(this.wrapClassName("readonly"),w),this.$pageNumberInput.disabled=w}destroy(){this.sideEffect.flushAll(),this.unmount()}setPageIndex(w){Number.isNaN(w)||(this.pageIndex=w,this.$pageNumberInput.value=String(w+1))}refreshTotalPage(){this.pages.length?this.$totalPage.textContent=" / "+this.pages.length:this.$totalPage.textContent=""}setSmallBox(w){this.isSmallBox!==w&&(this.isSmallBox=w,this.$footer.classList.toggle(this.wrapClassName("float-footer"),w))}render(){return this.renderContent(),this.renderFooter(),this.$content}renderContent(){if(!this.$content){const w=document.createElement("div");w.className=this.wrapClassName("content"),this.$content=w,this.readonly&&w.classList.add(this.wrapClassName("readonly")),w.appendChild(this.renderPreviewMask()),w.appendChild(this.renderPreview())}return this.$content}renderPreview(){if(!this.$preview){const w=document.createElement("div");w.className=this.wrapClassName("preview")+" tele-fancy-scrollbar",this.$preview=w,this.sideEffect.add(()=>(this.previewLazyLoad=new _m({container:this.$preview,elements_selector:`.${this.wrapClassName("preview-page>img")}`}),()=>{var S;return(S=this.previewLazyLoad)==null?void 0:S.destroy()})),this.refreshPreview(),this.sideEffect.addEventListener(w,"click",S=>{var pt;if(this.readonly)return;const W=(pt=S.target.dataset)==null?void 0:pt.pageIndex;W&&(S.preventDefault(),S.stopPropagation(),S.stopImmediatePropagation(),this.onNewPageIndex(Number(W)),this.togglePreview(!1))})}return this.$preview}refreshPreview(){var pt;const{$preview:w}=this,S=this.wrapClassName("preview-page"),W=this.wrapClassName("preview-page-name");for(;w.firstChild;)w.firstChild.remove();this.pages.forEach((lt,J)=>{var kt;const X=(kt=lt.thumbnail)!=null?kt:lt.src.startsWith("ppt")?void 0:lt.src;if(!X)return;const ct=String(J),tt=document.createElement("a");tt.className=S+" "+this.wrapClassName(`preview-page-${J}`),tt.setAttribute("href","#"),tt.dataset.pageIndex=ct;const $=document.createElement("span");$.className=W,$.textContent=String(J+1),$.dataset.pageIndex=ct;const ut=document.createElement("img");ut.width=lt.width,ut.height=lt.height,ut.dataset.src=X,ut.dataset.pageIndex=ct,tt.appendChild(ut),tt.appendChild($),w.appendChild(tt)}),(pt=this.previewLazyLoad)==null||pt.update()}renderPreviewMask(){return this.$previewMask||(this.$previewMask=document.createElement("div"),this.$previewMask.className=this.wrapClassName("preview-mask"),this.sideEffect.addEventListener(this.$previewMask,"click",w=>{this.readonly||w.target===this.$previewMask&&this.togglePreview(!1)})),this.$previewMask}refreshBtnSidebar(){this.$btnSidebar.style.display=this.pages.length>0?"":"none"}renderFooter(){if(!this.$footer){const w=document.createElement("div");w.className=this.wrapClassName("footer"),this.$footer=w,this.readonly&&w.classList.add(this.wrapClassName("readonly")),this.isSmallBox&&w.classList.add(this.wrapClassName("float-footer"));const S=this.renderFooterBtn("btn-sidebar",O0(this.namespace));this.sideEffect.addEventListener(S,"click",()=>{this.readonly||this.togglePreview()}),this.$btnSidebar=S,this.$btnSidebar.style.display="none",this.$footer.appendChild(S);const W=document.createElement("div");W.className=this.wrapClassName("page-jumps");const pt=this.renderFooterBtn("btn-page-back",D0(this.namespace));if(this.sideEffect.addEventListener(pt,"click",()=>{this.readonly||this.onNewPageIndex(this.pageIndex-1)}),W.appendChild(pt),this.onPlay){const tt=this.renderFooterBtn("btn-page-play",F0(this.namespace),B0(this.namespace));this.$btnPlay=tt,this.sideEffect.addEventListener(tt,"click",()=>{this.readonly||(this.setPlaying(),this.onPlay&&this.onPlay())}),W.appendChild(tt)}const lt=this.renderFooterBtn("btn-page-next",N0(this.namespace));this.sideEffect.addEventListener(lt,"click",()=>{this.readonly||this.onNewPageIndex(this.pageIndex+1)}),W.appendChild(lt);const J=document.createElement("div");J.className=this.wrapClassName("page-number");const X=document.createElement("input");X.className=this.wrapClassName("page-number-input"),X.value=String(this.pageIndex+1),this.readonly&&(X.disabled=!0),this.$pageNumberInput=X,this.sideEffect.addEventListener(X,"change",()=>{this.readonly||X.value&&this.onNewPageIndex(Number(X.value)-1)});const ct=document.createElement("span");this.$totalPage=ct,J.appendChild(X),J.appendChild(ct),this.$footer.appendChild(W),this.$footer.appendChild(J)}return this.$footer}renderFooterBtn(w,S,W){const pt=document.createElement("button");return pt.className=this.wrapClassName("footer-btn")+" "+this.wrapClassName(w),pt.appendChild(S),W&&pt.appendChild(W),pt}togglePreview(w){if(this.isShowPreview=w!=null?w:!this.isShowPreview,this.$content.classList.toggle(this.wrapClassName("preview-active"),this.isShowPreview),this.isShowPreview){const S=this.$preview.querySelector("."+this.wrapClassName(`preview-page-${this.pageIndex}`));S&&this.$preview.scrollTo({top:S.offsetTop-16})}}wrapClassName(w){return`${this.namespace}-${w}`}}const z_=new Set(["clicker"]);class j_{constructor({box:w,view:S,mountSlideController:W,mountWhiteboard:pt}){this.slideController=null,this.isViewMounted=!1,this.onError=({error:lt})=>{this.viewer.setPaused(),console.warn("[Slide] render error",lt)},this.refreshPages=()=>{this.slideController&&(this.viewer.pages=iv(this.slideController.slide),this.viewer.setPageIndex(this.getPageIndex(this.slideController.page)),this.scaleDocsToFit())},this.scaleDocsToFit=()=>{if(this.slideController){const{width:lt,height:J}=this.slideController.slide;lt&&J&&(this.whiteboardView.moveCameraToContain({originX:-lt/2,originY:-J/2,width:lt,height:J,animationMode:"immediately"}),this.isViewMounted||(this.isViewMounted=!0,console.log("[Slide] mount whiteboard view"),this.mountWhiteboard(this.$whiteboardView)))}},this.onPlay=()=>{this.slideController&&this.slideController.slide.nextStep()},this.onNewPageIndex=lt=>{this.slideController&&this.slideController.jumpToPage(lt+1)},this.sideEffect=new Xm,this.namespace="netless-app-slide",this.box=w,this.whiteboardView=S,this.mountSlideController=W,this.mountWhiteboard=pt,this.viewer=new Nv({readonly:w.readonly,onNewPageIndex:this.onNewPageIndex,onPlay:this.onPlay}),this.sideEffect.add(()=>{const lt=J=>{this.setReadonly(J)};return w.events.on("readonly",lt),()=>w.events.off("readonly",lt)}),this.render()}render(){this.viewer.$content.appendChild(this.renderSlideContainer()),this.viewer.$content.appendChild(this.renderWhiteboardView()),this.sideEffect.addEventListener(window,"keydown",w=>{if(this.box.focus&&this.slideController)switch(w.key){case"ArrowUp":case"ArrowLeft":{this.slideController.slide.prevStep();break}case"ArrowRight":case"ArrowDown":{this.slideController.slide.nextStep();break}}})}renderSlideContainer(){if(!this.$slide){const w=document.createElement("div");w.className=this.wrapClassName("slide"),w.dataset.appKind="Slide",this.$slide=w}return this.$slide}renderWhiteboardView(){return this.$whiteboardView||(this.$whiteboardView=document.createElement("div"),this.$whiteboardView.className=this.wrapClassName("wb-view")),this.$whiteboardView}mount(){return this.box.mountContent(this.viewer.$content),this.box.mountFooter(this.viewer.$footer),this.slideController=this.mountSlideController({anchor:this.$slide,onTransitionStart:this.viewer.setPlaying,onTransitionEnd:this.viewer.setPaused,onReady:this.refreshPages,onError:this.onError}),this.scaleDocsToFit(),this.sideEffect.add(()=>(this.whiteboardView.callbacks.on("onSizeUpdated",this.scaleDocsToFit),()=>this.whiteboardView.callbacks.off("onSizeUpdated",this.scaleDocsToFit))),this}getPageIndex(w){return(w>0?w:1)-1}unmount(){return this.slideController&&(this.slideController.destroy(),this.slideController=null),this.viewer.unmount(),this}setReadonly(w){this.viewer.setReadonly(w)}destroy(){this.sideEffect.flushAll(),this.unmount(),this.viewer.destroy()}toggleClickThrough(w){this.$whiteboardView.style.pointerEvents=!w||z_.has(w)?"none":"auto"}wrapClassName(w){return`${this.namespace}-${w}`}}const Fv=2,eg={map:new Map,queue:[],validateQueue(){for(es("[Slide] freezer: validate",this.queue);this.queue.length>Fv;){const N=this.queue.pop(),w=this.map.get(N);w&&(es("[Slide] freezer: validate-freeze",N,this.queue),w.freeze())}},set(N,w){es("[Slide] freezer: add",N,this.queue),this.map.set(N,w),this.queue.includes(N)||this.queue.unshift(N),this.validateQueue()},delete(N){es("[Slide] freezer: delete",N,this.queue),this.map.delete(N),this.queue=this.queue.filter(w=>w!==N)},focus(N){const w=this.map.get(N),S=this.queue.indexOf(N);S>-1&&this.queue.splice(S,1),this.queue.unshift(N),this.validateQueue(),es("[Slide] freezer: focus",N,this.queue),w&&w.unfreeze()}},V_=N=>{N.on("focus",({appId:w})=>{eg.focus(w)})};var W_=`.netless-app-slide-content{position:relative;height:100%;overflow:hidden}.netless-app-slide-preview-mask{display:none;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%}.netless-app-slide-preview{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:300;top:0;left:0;width:33%;max-width:200px;height:100%;padding-top:10px;transform:translate(-100%);background:rgba(237,237,240,.9);box-shadow:inset -1px 0 #0000001c;transition:transform .4s}.netless-app-slide-preview-active .netless-app-slide-preview-mask{display:block}.netless-app-slide-preview-active .netless-app-slide-preview{transform:translate(0)}.netless-app-slide-preview-page{position:relative;display:block;width:55%;margin-bottom:10px;font-size:0;color:transparent;outline:none;border:7px solid transparent;border-radius:4px;transition:border-color .3s;user-select:none}.netless-app-slide-preview-page:hover,.netless-app-slide-preview-page.netless-app-slide-preview-page-active{border-color:#444e601a}.netless-app-slide-preview-page>img{width:100%;height:auto;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);border-radius:1px;background-color:#fff;box-shadow:0 2px 8px #0000004d}.netless-app-slide-preview-page-name{position:absolute;top:1px;left:-10px;transform:translate(-100%);text-align:right;font-size:12px;color:#5f5f5f;user-select:none}.netless-app-slide-footer{box-sizing:border-box;height:26px;display:flex;align-items:center;padding:0 16px;border-top:1px solid #eeeef7;color:#191919}.netless-app-slide-float-footer{width:100%;min-height:26px;position:absolute;left:0;bottom:0;z-index:2000;background:rgba(249,249,252,.9);transition:opacity .4s}.netless-app-slide-footer-btn{box-sizing:border-box;width:26px;height:26px;font-size:0;margin:0;padding:3px;border:none;border-radius:1px;outline:none;color:currentColor;background:transparent;transition:background .4s;cursor:pointer;user-select:none}.netless-app-slide-footer-btn:hover{background:rgba(237,237,240,.9)}.netless-app-slide-footer-btn>svg{width:100%;height:100%}.netless-app-slide-footer-btn>svg:nth-of-type(2){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(1){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(2){display:initial}.netless-app-slide-footer-btn~.netless-app-slide-footer-btn{margin-left:15px}.netless-app-slide-page-jumps{flex:1;display:flex;justify-content:center;align-items:center}.netless-app-slide-page-number{margin-left:auto;font-size:13px;user-select:none;white-space:nowrap;word-break:keep-all}.netless-app-slide-page-number-input{border:none;outline:none;width:1.5em;text-align:right;border-radius:2px;color:currentColor;background:transparent;transition:background .4s;user-select:text}.netless-app-slide-page-number-input:hover,.netless-app-slide-page-number-input:focus,.netless-app-slide-page-number-input:active{background:#fff;box-shadow:#63636333 0 2px 8px}.netless-app-slide-readonly .netless-app-slide-footer-btn{cursor:not-allowed}.netless-app-slide-readonly .netless-app-slide-footer-btn:hover{background:transparent}.netless-app-slide-readonly .netless-app-slide-page-number-input{cursor:not-allowed}.netless-app-slide-readonly .netless-app-slide-page-number-input:hover,.netless-app-slide-readonly .netless-app-slide-page-number-input:focus,.netless-app-slide-readonly .netless-app-slide-page-number-input:active{background:transparent;box-shadow:none}.netless-app-slide-readonly .netless-app-slide-page-number-input:disabled{color:inherit}.netless-app-slide-readonly.netless-app-slide-float-footer{display:none}.netless-app-slide-wb-view{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;overflow:hidden}.netless-app-slide-slide{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.netless-app-slide-slide canvas{transform:scale(var(--netless-app-slide-scale, 1))}
|
|
6079
|
-
`;function X_({container:N,taskId:w,url:S=xg,debug:W=!1}){if(!w)throw new Error("[Slide] taskId is required");N.style.cssText+="display:flex;flex-direction:column";const pt=new
|
|
6078
|
+
`}},n.prototype.setMainSeqStep=function(e,r){var s;(s=this.player)===null||s===void 0||s.setMainSeqStep(e,r)},n.prototype.setInteractive=function(e){var r;this.interactive=e,(r=this.player)===null||r===void 0||r.setInteractive(e)},n.prototype.pause=function(){var e;(e=this.player)===null||e===void 0||e.pause()},n.prototype.resume=function(){var e;(e=this.player)===null||e===void 0||e.resume()},n.prototype.getPreviewImage=function(e){var r;return Ta(this,void 0,void 0,function(){return Ea(this,function(s){return[2,((r=this.player)===null||r===void 0?void 0:r.getPreviewImage(e))||null]})})},n.prototype.frozen=function(){var e;return Ta(this,void 0,void 0,function(){var r,s,u,h=this;return Ea(this,function(f){switch(f.label){case 0:return this.isFrowning?[2,fd(function(){return!h.isFrowning},6e4)]:this.view&&this.player?(this.isFrowning=!0,[4,this.player.clock.waitUntil(function(){return!h.isLoading},6e4)]):[3,2];case 1:for(s in f.sent(),r=this.player.getSnapshot()||"",this.cacheImage.src=r,this.cacheImage.style.position="absolute",this.cacheImage.style.zIndex="100",this.frame.appendChild(this.cacheImage),this.player.destroy(),(e=this.playerController)===null||e===void 0||e.destroy(),this.player=void 0,this.__slideState.mediaState)u=this.__slideState.mediaState[s],this.__slideState.mediaState[s]=Yu(Yu({},u),{frozenTime:this.timestamp()});this.isFrowning=!1,f.label=2;case 2:return[2]}})})},n.prototype.release=function(){var e;return Ta(this,void 0,void 0,function(){var r,s,u,h,f=this;return Ea(this,function(y){switch(y.label){case 0:if(this.isReleasing)return[2,fd(function(){return!f.isReleasing},6e4)];for(s in this.isReleasing=!0,this.initPlayer(this.config),this.player.view&&(this.player.view.style.visibility="hidden"),r=this.__slideState,this.__slideState=Object(X.cloneDeep)(om),r.mediaState)(u=r.mediaState[s]).type==="play"&&(h=Math.max((e=u.frozenTime)!==null&&e!==void 0?e:0,u.time),u.time=this.timestamp()-(h-u.time),u.frozenTime=void 0);return[4,this.setSlideState(r)];case 1:return y.sent(),[4,this.player.clock.delay(333)];case 2:y.sent(),this.player.view&&(this.player.view.style.visibility="visible");try{this.frame.removeChild(this.cacheImage)}catch{}return this.isReleasing=!1,[2]}})})},n.prototype.destroy=function(){var e,r,s,u;this.playerController&&this.playerController.destroy(),this.frameResizeObserver.disconnect(),(e=this.player)===null||e===void 0||e.removeAllListeners(),(r=this.player)===null||r===void 0||r.destroy(),(s=this.player)===null||s===void 0||s.removeAllListeners(),window.removeEventListener("__slide_log__",this.handleLogDownload),window.removeEventListener("__slide_state__",this.handleSlideStateLog),window.removeEventListener("__slide_ref__",this.handleSlideRef),window.clearInterval(this.persistLogId),Zu&&Zu.removeItem(this.logId).catch(function(){});try{((u=this.player)===null||u===void 0?void 0:u.view)&&this.anchor.removeChild(this.player.view)}catch{}},n}(J.a)}]);function Zg(N,w,S){return Math.min(Math.max(N,w),S)}function Jg(N){return typeof N=="object"&&N!==null}function cm(N){return JSON.parse(JSON.stringify(N))}var $g={exports:{}},w0={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Kg={exports:{}},S0=function(w){return!w||typeof w=="string"?!1:w instanceof Array||Array.isArray(w)||w.length>=0&&(w.splice instanceof Function||Object.getOwnPropertyDescriptor(w,w.length-1)&&w.constructor.name!=="String")},T0=S0,E0=Array.prototype.concat,M0=Array.prototype.slice,Qg=Kg.exports=function(w){for(var S=[],W=0,pt=w.length;W<pt;W++){var lt=w[W];T0(lt)?S=E0.call(S,M0.call(lt)):S.push(lt)}return S};Qg.wrap=function(N){return function(){return N(Qg(arguments))}};var dm=w0,pm=Kg.exports,tv=Object.hasOwnProperty,ev={};for(var yg in dm)tv.call(dm,yg)&&(ev[dm[yg]]=yg);var il=$g.exports={to:{},get:{}};il.get=function(N){var w=N.substring(0,3).toLowerCase(),S,W;switch(w){case"hsl":S=il.get.hsl(N),W="hsl";break;case"hwb":S=il.get.hwb(N),W="hwb";break;default:S=il.get.rgb(N),W="rgb";break}return S?{model:W,value:S}:null};il.get.rgb=function(N){if(!N)return null;var w=/^#([a-f0-9]{3,4})$/i,S=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,W=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,pt=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,lt=/^(\w+)$/,J=[0,0,0,1],X,ct,tt;if(X=N.match(S)){for(tt=X[2],X=X[1],ct=0;ct<3;ct++){var $=ct*2;J[ct]=parseInt(X.slice($,$+2),16)}tt&&(J[3]=parseInt(tt,16)/255)}else if(X=N.match(w)){for(X=X[1],tt=X[3],ct=0;ct<3;ct++)J[ct]=parseInt(X[ct]+X[ct],16);tt&&(J[3]=parseInt(tt+tt,16)/255)}else if(X=N.match(W)){for(ct=0;ct<3;ct++)J[ct]=parseInt(X[ct+1],0);X[4]&&(X[5]?J[3]=parseFloat(X[4])*.01:J[3]=parseFloat(X[4]))}else if(X=N.match(pt)){for(ct=0;ct<3;ct++)J[ct]=Math.round(parseFloat(X[ct+1])*2.55);X[4]&&(X[5]?J[3]=parseFloat(X[4])*.01:J[3]=parseFloat(X[4]))}else return(X=N.match(lt))?X[1]==="transparent"?[0,0,0,0]:tv.call(dm,X[1])?(J=dm[X[1]],J[3]=1,J):null:null;for(ct=0;ct<3;ct++)J[ct]=gd(J[ct],0,255);return J[3]=gd(J[3],0,1),J};il.get.hsl=function(N){if(!N)return null;var w=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?[\d\.]+)\s*)?\)$/,S=N.match(w);if(S){var W=parseFloat(S[4]),pt=(parseFloat(S[1])%360+360)%360,lt=gd(parseFloat(S[2]),0,100),J=gd(parseFloat(S[3]),0,100),X=gd(isNaN(W)?1:W,0,1);return[pt,lt,J,X]}return null};il.get.hwb=function(N){if(!N)return null;var w=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,S=N.match(w);if(S){var W=parseFloat(S[4]),pt=(parseFloat(S[1])%360+360)%360,lt=gd(parseFloat(S[2]),0,100),J=gd(parseFloat(S[3]),0,100),X=gd(isNaN(W)?1:W,0,1);return[pt,lt,J,X]}return null};il.to.hex=function(){var N=pm(arguments);return"#"+qm(N[0])+qm(N[1])+qm(N[2])+(N[3]<1?qm(Math.round(N[3]*255)):"")};il.to.rgb=function(){var N=pm(arguments);return N.length<4||N[3]===1?"rgb("+Math.round(N[0])+", "+Math.round(N[1])+", "+Math.round(N[2])+")":"rgba("+Math.round(N[0])+", "+Math.round(N[1])+", "+Math.round(N[2])+", "+N[3]+")"};il.to.rgb.percent=function(){var N=pm(arguments),w=Math.round(N[0]/255*100),S=Math.round(N[1]/255*100),W=Math.round(N[2]/255*100);return N.length<4||N[3]===1?"rgb("+w+"%, "+S+"%, "+W+"%)":"rgba("+w+"%, "+S+"%, "+W+"%, "+N[3]+")"};il.to.hsl=function(){var N=pm(arguments);return N.length<4||N[3]===1?"hsl("+N[0]+", "+N[1]+"%, "+N[2]+"%)":"hsla("+N[0]+", "+N[1]+"%, "+N[2]+"%, "+N[3]+")"};il.to.hwb=function(){var N=pm(arguments),w="";return N.length>=4&&N[3]!==1&&(w=", "+N[3]),"hwb("+N[0]+", "+N[1]+"%, "+N[2]+"%"+w+")"};il.to.keyword=function(N){return ev[N.slice(0,3)]};function gd(N,w,S){return Math.min(Math.max(w,N),S)}function qm(N){var w=Math.round(N).toString(16).toUpperCase();return w.length<2?"0"+w:w}var A0=$g.exports;class C0{constructor(w){this.enable=w,this.apps={},this.level="debug",this._onMessage=S=>{Jg(S.data)&&(typeof S.data.slide=="boolean"?this.enable=S.data.slide:S.data.slide==="__instance"&&console.log(this))},window.addEventListener("message",this._onMessage)}log(...w){this.enable&&console.log(...w)}verbose(...w){this.enable&&this.level==="verbose"&&console.log(...w)}dispose(w){this.enable=!1,delete this.apps[w],window.removeEventListener("message",this._onMessage)}}const $u=new C0(!1),es=$u.log.bind($u),P0=$u.verbose.bind($u);function nv(N){try{const w=window.getComputedStyle(N).backgroundColor;if(w!=="rgba(0, 0, 0, 0)"&&w!=="transparent")return w;if(N.parentElement)return nv(N.parentElement)}catch{}return"#ffffff"}function R0(N){const w=A0.get(N);if(w&&w.model==="rgb"){const S=w.value,pt=(((Math.round(S[0])&255)<<16)+((Math.round(S[1])&255)<<8)+(Math.round(S[2])&255)).toString(16);return"#"+"000000".substring(pt.length)+pt}else return N}let Ym="";function rv(N){return Ym||(Ym=R0(nv(N)),es("[Slide] guess bg color",Ym)),Ym}function iv(N){const{width:w,height:S,slideCount:W,slideState:pt}=N,{taskId:lt,url:J}=pt,X=[];for(let ct=1;ct<=W;++ct)X.push({width:w,height:S,thumbnail:`${J}/${lt}/preview/${ct}.png`,src:"ppt"});return X}function I0(N,w,S,W){var X;const pt=S.slideState.currentSlideIndex;if(!(pt>0)||!w.getIsWritable())return;const lt=[W,pt].join("/");if(N.scenePathType(lt)!=="page"){N.removeScenes(W);const ct=S.slideCount,tt=[];for(let $=1;$<=ct;++$)tt.push({name:`${$}`});N.putScenes(W,tt)}let J;w.getBox().focus?J=N.state.sceneState.scenePath:J=((X=w.getView())==null?void 0:X.focusScenePath)||"",J!==lt&&w.setScenePath(lt)}const xg="https://convertcdn.netless.link/dynamicConvert",L0=40,bg={taskId:"",url:"",state:null};class O0{constructor({context:w,anchor:S,onPageChanged:W,onTransitionStart:pt,onTransitionEnd:lt,onError:J}){this.sideEffect=new Xm,this.ready=!1,this.readyPromise=new Promise(X=>{this.resolveReady=()=>setTimeout(()=>{this.ready=!0,X()},1e3)}),this.onSyncDispatch=X=>{if(this.context.getIsWritable()&&this.room){const ct={type:bo.SLIDE_EVENTS.syncDispatch,payload:X};es("[Slide] dispatch",X),this.room.dispatchMagixEvent(this.channel,ct)}},this.magixEventListener=X=>{if(X.event===this.channel&&Jg(X.payload)){const{type:ct,payload:tt}=X.payload;ct===bo.SLIDE_EVENTS.syncDispatch&&(this.syncStateOnce(),es("[Slide] receive",tt),this.syncStateOnceFlag||this.slide.emit(bo.SLIDE_EVENTS.syncReceive,tt))}},this.onStateChange=X=>{this.context.getIsWritable()&&(P0("[Slide] state change",JSON.stringify(X,null,2)),this.context.updateAttributes(["state"],X))},this.onSeeked=()=>{const X=this.context.getAttributes().state;X&&this.slide.setSlideState(cm(X))},this.pollCount=0,this.pollReadyState=()=>{this.ready?this._toFreeze===1?this.freeze():this._toFreeze===-1&&this.unfreeze():this.pollCount<L0?(this.pollCount++,setTimeout(this.pollReadyState,500)):(this.pollCount=0,es("[Slide] renderSlide (retry after timeout)",1),this.slide.renderSlide(1))},this._pageCount=0,this.destroyed=!1,this.timestamp=()=>this.room&&this.room.calibrationTimestamp?this.room.calibrationTimestamp:this.player?this.player.beginTimestamp+this.player.progressTime:Date.now(),this.isFrozen=!1,this._toFreeze=0,this.freezePromise=null,this.freeze=()=>{this.ready?(es("[Slide] freeze",this.context.appId),this.freezePromise?this._toFreeze=1:this.isFrozen||(this._toFreeze=0,this.freezePromise=this.slide.frozen().then(this.afterFreeze.bind(this,1)))):this._toFreeze=1},this.unfreeze=async()=>{this.ready?(es("[Slide] unfreeze",this.context.appId),this.freezePromise?this._toFreeze=-1:this.isFrozen&&(this._toFreeze=0,this.freezePromise=this.slide.release().then(this.afterFreeze.bind(this,-1)))):this._toFreeze=-1},this.onPageChanged=W,this.onTransitionStart=pt,this.onTransitionEnd=lt,this.onError=J,this.context=w,this.channel=`channel-${w.appId}`,this.room=w.getRoom(),this.player=this.room?void 0:w.getDisplayer(),this.slide=this.createSlide(S),this.syncStateOnceFlag=!this.context.isAddApp,this.initialize()}jumpToPage(w){this.ready&&(w=Zg(w,1,this.pageCount),this.slide.renderSlide(w))}initialize(){this.registerEventListeners(),this.kickStart()}kickStart(){const{context:w,slide:S}=this,{taskId:W,url:pt,state:lt}=dp(dp({},bg),this.context.getAttributes());S.setResource(W,pt||xg),lt?(es("[Slide] init with state",cm(lt)),this.syncStateOnceFlag=!1,S.setSlideState(cm(lt))):w.isAddApp&&(es("[Slide] init by renderSlide",1),S.renderSlide(1)),this.pollReadyState()}registerEventListeners(){const{context:w,slide:S}=this;this.sideEffect.add(()=>{const W=w.mobxUtils.reaction(()=>w.getAttributes().state,()=>{this.syncStateOnce(),W()});return W}),this.sideEffect.add(()=>(w.emitter.on("seek",this.onSeeked),()=>w.emitter.off("seek",this.onSeeked))),this.sideEffect.add(()=>{const W=w.getDisplayer();return W.addMagixEventListener(this.channel,this.magixEventListener,{fireSelfEventAfterCommit:!0}),()=>W.removeMagixEventListener(this.channel)}),S.on(bo.SLIDE_EVENTS.slideChange,this.onPageChanged),S.on(bo.SLIDE_EVENTS.renderStart,this.onTransitionStart),S.on(bo.SLIDE_EVENTS.renderEnd,this.onTransitionEnd),S.on(bo.SLIDE_EVENTS.mainSeqStepStart,this.onTransitionStart),S.on(bo.SLIDE_EVENTS.mainSeqStepEnd,this.onTransitionEnd),S.on(bo.SLIDE_EVENTS.renderError,this.onError),S.on(bo.SLIDE_EVENTS.stateChange,this.onStateChange),S.on(bo.SLIDE_EVENTS.syncDispatch,this.onSyncDispatch),S.on(bo.SLIDE_EVENTS.renderEnd,this.resolveReady)}syncStateOnce(){if(this.syncStateOnceFlag){const{state:w}=dp(dp({},bg),this.context.getAttributes());w&&(es("[Slide] sync with state (once)",cm(w)),this.slide.setSlideState(cm(w)),this.syncStateOnceFlag=!1)}}get pageCount(){return this._pageCount>0?this._pageCount:(this._pageCount=this.slide.slideCount,this._pageCount)}get page(){return this.slide.slideState.currentSlideIndex}createSlide(w){var W,pt;return new bo.Slide({anchor:w,interactive:!0,mode:"interactive",resize:!0,controller:$u.enable,renderOptions:{minFPS:25,maxFPS:30,autoFPS:!0,autoResolution:!0,resolution:(W=this.context.getAppOptions())==null?void 0:W.resolution,transactionBgColor:((pt=this.context.getAppOptions())==null?void 0:pt.bgColor)||rv(w)},timestamp:this.timestamp})}destroy(){this.sideEffect.flushAll(),this.destroyed||(es("[Slide] destroy slide (once)"),this.slide.destroy(),this.destroyed=!0)}afterFreeze(w){w===1?(this.isFrozen=!0,this.freezePromise=null,this._toFreeze===-1&&this.unfreeze()):w===-1&&(this.isFrozen=!1,this.freezePromise=null,this._toFreeze===1&&this.freeze())}}function D0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-sidebar`),S.setAttribute("viewBox","0 0 64 64");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M50 8H14c-3.309 0-6 2.691-6 6v36c0 3.309 2.691 6 6 6h36c3.309 0 6-2.691 6-6V14c0-3.309-2.691-6-6-6zM12 50V14c0-1.103.897-2 2-2h8v40h-8c-1.103 0-2-.897-2-2zm40 0c0 1.103-.897 2-2 2H26V12h24c1.103 0 2 .897 2 2z"),S.appendChild(W),S}function N0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-arrow-left`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M177.81 249.959L337.473 90.295c2.722-2.865 2.651-7.378-.143-10.1-2.793-2.65-7.163-2.65-9.956 0l-164.75 164.75c-2.793 2.793-2.793 7.306 0 10.1l164.75 164.75c2.865 2.722 7.378 2.65 10.099-.143 2.651-2.794 2.651-7.163 0-9.957L177.809 249.959z"),S.appendChild(W),S}function F0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-arrow-right`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M322.19 250.041L162.527 409.705c-2.722 2.865-2.651 7.378.143 10.1 2.793 2.65 7.163 2.65 9.956 0l164.75-164.75c2.793-2.793 2.793-7.306 0-10.1l-164.75-164.75c-2.865-2.722-7.378-2.65-10.099.143-2.651 2.794-2.651 7.163 0 9.957l159.664 159.736z"),S.appendChild(W),S}function B0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-play`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M418.158 257.419L174.663 413.33c-6.017 3.919-15.708 3.772-21.291-.29-2.791-2.018-4.295-4.483-4.295-7.084V94.109c0-5.65 6.883-10.289 15.271-10.289 4.298 0 8.391 1.307 11.181 3.332l242.629 155.484c6.016 3.917 6.451 10.292.649 14.491-.216.154-.432.154-.649.292zM170.621 391.288l223.116-141.301L170.71 107.753l-.089 283.535z"),S.appendChild(W),S}function k0(N){const w="http://www.w3.org/2000/svg",S=document.createElementNS(w,"svg");S.setAttribute("class",`${N}-footer-icon-pause`),S.setAttribute("viewBox","0 0 500 500");const W=document.createElementNS(w,"path");return W.setAttribute("fill","currentColor"),W.setAttribute("d","M312.491 78.261c0-6.159 4.893-11.213 11.04-11.213 6.158 0 11.211 5.054 11.211 11.213v343.478c0 6.159-5.053 11.213-11.211 11.213-6.147 0-11.04-5.054-11.04-11.213V78.261zM165.257 78.261c0-6.159 4.893-11.213 11.04-11.213 6.158 0 11.211 5.054 11.211 11.213v343.478c0 6.159-5.053 11.213-11.211 11.213-6.147 0-11.04-5.054-11.04-11.213V78.261z"),S.appendChild(W),S}const pp=typeof window!="undefined",ov=pp&&!("onscroll"in window)||typeof navigator!="undefined"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),sv=pp&&"IntersectionObserver"in window,av=pp&&"classList"in document.createElement("p"),lv=pp&&window.devicePixelRatio>1,U0={elements_selector:".lazy",container:ov||pp?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},uv=N=>Object.assign({},U0,N),hv=function(N,w){let S;const W="LazyLoad::Initialized",pt=new N(w);try{S=new CustomEvent(W,{detail:{instance:pt}})}catch{S=document.createEvent("CustomEvent"),S.initCustomEvent(W,!1,!1,{instance:pt})}window.dispatchEvent(S)},G0=(N,w)=>{if(!!w)if(!w.length)hv(N,w);else for(let S=0,W;W=w[S];S+=1)hv(N,W)},uc="src",wg="srcset",Sg="sizes",cv="poster",fm="llOriginalAttrs",Tg="loading",dv="loaded",pv="applied",H0="entered",Eg="error",fv="native",mv="data-",gv="ll-status",Tl=(N,w)=>N.getAttribute(mv+w),z0=(N,w,S)=>{var W=mv+w;if(S===null){N.removeAttribute(W);return}N.setAttribute(W,S)},mm=N=>Tl(N,gv),fp=(N,w)=>z0(N,gv,w),Zm=N=>fp(N,null),Mg=N=>mm(N)===null,j0=N=>mm(N)===Tg,V0=N=>mm(N)===Eg,Ag=N=>mm(N)===fv,W0=[Tg,dv,pv,Eg],X0=N=>W0.indexOf(mm(N))>=0,vd=(N,w,S,W)=>{if(!!N){if(W!==void 0){N(w,S,W);return}if(S!==void 0){N(w,S);return}N(w)}},mf=(N,w)=>{if(av){N.classList.add(w);return}N.className+=(N.className?" ":"")+w},Ku=(N,w)=>{if(av){N.classList.remove(w);return}N.className=N.className.replace(new RegExp("(^|\\s+)"+w+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},q0=N=>{N.llTempImage=document.createElement("IMG")},Y0=N=>{delete N.llTempImage},vv=N=>N.llTempImage,Jm=(N,w)=>{if(!w)return;const S=w._observer;!S||S.unobserve(N)},Z0=N=>{N.disconnect()},J0=(N,w,S)=>{w.unobserve_entered&&Jm(N,S)},Cg=(N,w)=>{!N||(N.loadingCount+=w)},$0=N=>{!N||(N.toLoadCount-=1)},_v=(N,w)=>{!N||(N.toLoadCount=w)},K0=N=>N.loadingCount>0,Q0=N=>N.toLoadCount>0,yv=N=>{let w=[];for(let S=0,W;W=N.children[S];S+=1)W.tagName==="SOURCE"&&w.push(W);return w},Pg=(N,w)=>{const S=N.parentNode;if(!S||S.tagName!=="PICTURE")return;yv(S).forEach(w)},xv=(N,w)=>{yv(N).forEach(w)},$m=[uc],bv=[uc,cv],Km=[uc,wg,Sg],Qm=N=>!!N[fm],wv=N=>N[fm],Sv=N=>delete N[fm],gm=(N,w)=>{if(Qm(N))return;const S={};w.forEach(W=>{S[W]=N.getAttribute(W)}),N[fm]=S},t_=N=>{Qm(N)||(N[fm]={backgroundImage:N.style.backgroundImage})},e_=(N,w,S)=>{if(!S){N.removeAttribute(w);return}N.setAttribute(w,S)},vm=(N,w)=>{if(!Qm(N))return;const S=wv(N);w.forEach(W=>{e_(N,W,S[W])})},n_=N=>{if(!Qm(N))return;const w=wv(N);N.style.backgroundImage=w.backgroundImage},r_=(N,w,S)=>{mf(N,w.class_applied),fp(N,pv),!!S&&(w.unobserve_completed&&Jm(N,w),vd(w.callback_applied,N,S))},Tv=(N,w,S)=>{mf(N,w.class_loading),fp(N,Tg),!!S&&(Cg(S,1),vd(w.callback_loading,N,S))},mp=(N,w,S)=>{!S||N.setAttribute(w,S)},Ev=(N,w)=>{mp(N,Sg,Tl(N,w.data_sizes)),mp(N,wg,Tl(N,w.data_srcset)),mp(N,uc,Tl(N,w.data_src))},i_=(N,w)=>{Pg(N,S=>{gm(S,Km),Ev(S,w)}),gm(N,Km),Ev(N,w)},o_=(N,w)=>{gm(N,$m),mp(N,uc,Tl(N,w.data_src))},s_=(N,w)=>{xv(N,S=>{gm(S,$m),mp(S,uc,Tl(S,w.data_src))}),gm(N,bv),mp(N,cv,Tl(N,w.data_poster)),mp(N,uc,Tl(N,w.data_src)),N.load()},a_=(N,w,S)=>{const W=Tl(N,w.data_bg),pt=Tl(N,w.data_bg_hidpi),lt=lv&&pt?pt:W;!lt||(N.style.backgroundImage=`url("${lt}")`,vv(N).setAttribute(uc,lt),Tv(N,w,S))},l_=(N,w,S)=>{const W=Tl(N,w.data_bg_multi),pt=Tl(N,w.data_bg_multi_hidpi),lt=lv&&pt?pt:W;!lt||(N.style.backgroundImage=lt,r_(N,w,S))},Mv={IMG:i_,IFRAME:o_,VIDEO:s_},u_=(N,w)=>{const S=Mv[N.tagName];!S||S(N,w)},h_=(N,w,S)=>{const W=Mv[N.tagName];!W||(W(N,w),Tv(N,w,S))},c_=["IMG","IFRAME","VIDEO"],d_=N=>c_.indexOf(N.tagName)>-1,Av=(N,w)=>{w&&!K0(w)&&!Q0(w)&&vd(N.callback_finish,w)},Cv=(N,w,S)=>{N.addEventListener(w,S),N.llEvLisnrs[w]=S},p_=(N,w,S)=>{N.removeEventListener(w,S)},Rg=N=>!!N.llEvLisnrs,f_=(N,w,S)=>{Rg(N)||(N.llEvLisnrs={});const W=N.tagName==="VIDEO"?"loadeddata":"load";Cv(N,W,w),Cv(N,"error",S)},Ig=N=>{if(!Rg(N))return;const w=N.llEvLisnrs;for(let S in w){const W=w[S];p_(N,S,W)}delete N.llEvLisnrs},Pv=(N,w,S)=>{Y0(N),Cg(S,-1),$0(S),Ku(N,w.class_loading),w.unobserve_completed&&Jm(N,S)},m_=(N,w,S,W)=>{const pt=Ag(w);Pv(w,S,W),mf(w,S.class_loaded),fp(w,dv),vd(S.callback_loaded,w,W),pt||Av(S,W)},g_=(N,w,S,W)=>{const pt=Ag(w);Pv(w,S,W),mf(w,S.class_error),fp(w,Eg),vd(S.callback_error,w,W),pt||Av(S,W)},Lg=(N,w,S)=>{const W=vv(N)||N;if(Rg(W))return;f_(W,J=>{m_(J,N,w,S),Ig(W)},J=>{g_(J,N,w,S),Ig(W)})},v_=(N,w,S)=>{q0(N),Lg(N,w,S),t_(N),a_(N,w,S),l_(N,w,S)},__=(N,w,S)=>{Lg(N,w,S),h_(N,w,S)},Og=(N,w,S)=>{d_(N)?__(N,w,S):v_(N,w,S)},y_=(N,w,S)=>{N.setAttribute("loading","lazy"),Lg(N,w,S),u_(N,w),fp(N,fv)},Rv=N=>{N.removeAttribute(uc),N.removeAttribute(wg),N.removeAttribute(Sg)},x_=N=>{Pg(N,w=>{Rv(w)}),Rv(N)},Iv=N=>{Pg(N,w=>{vm(w,Km)}),vm(N,Km)},b_=N=>{xv(N,w=>{vm(w,$m)}),vm(N,bv),N.load()},w_=N=>{vm(N,$m)},S_={IMG:Iv,IFRAME:w_,VIDEO:b_},T_=N=>{const w=S_[N.tagName];if(!w){n_(N);return}w(N)},E_=(N,w)=>{Mg(N)||Ag(N)||(Ku(N,w.class_entered),Ku(N,w.class_exited),Ku(N,w.class_applied),Ku(N,w.class_loading),Ku(N,w.class_loaded),Ku(N,w.class_error))},M_=(N,w)=>{T_(N),E_(N,w),Zm(N),Sv(N)},A_=(N,w,S,W)=>{!S.cancel_on_exit||!j0(N)||N.tagName==="IMG"&&(Ig(N),x_(N),Iv(N),Ku(N,S.class_loading),Cg(W,-1),Zm(N),vd(S.callback_cancel,N,w,W))},C_=(N,w,S,W)=>{const pt=X0(N);fp(N,H0),mf(N,S.class_entered),Ku(N,S.class_exited),J0(N,S,W),vd(S.callback_enter,N,w,W),!pt&&Og(N,S,W)},P_=(N,w,S,W)=>{Mg(N)||(mf(N,S.class_exited),A_(N,w,S,W),vd(S.callback_exit,N,w,W))},R_=["IMG","IFRAME","VIDEO"],Lv=N=>N.use_native&&"loading"in HTMLImageElement.prototype,I_=(N,w,S)=>{N.forEach(W=>{R_.indexOf(W.tagName)!==-1&&y_(W,w,S)}),_v(S,0)},L_=N=>N.isIntersecting||N.intersectionRatio>0,O_=N=>({root:N.container===document?null:N.container,rootMargin:N.thresholds||N.threshold+"px"}),D_=(N,w,S)=>{N.forEach(W=>L_(W)?C_(W.target,W,w,S):P_(W.target,W,w,S))},N_=(N,w)=>{w.forEach(S=>{N.observe(S)})},F_=(N,w)=>{Z0(N),N_(N,w)},B_=(N,w)=>{!sv||Lv(N)||(w._observer=new IntersectionObserver(S=>{D_(S,N,w)},O_(N)))},Ov=N=>Array.prototype.slice.call(N),tg=N=>N.container.querySelectorAll(N.elements_selector),k_=N=>Ov(N).filter(Mg),U_=N=>V0(N),G_=N=>Ov(N).filter(U_),Dv=(N,w)=>k_(N||tg(w)),H_=(N,w)=>{G_(tg(N)).forEach(W=>{Ku(W,N.class_error),Zm(W)}),w.update()},z_=(N,w)=>{!pp||window.addEventListener("online",()=>{H_(N,w)})},_m=function(N,w){const S=uv(N);this._settings=S,this.loadingCount=0,B_(S,this),z_(S,this),this.update(w)};_m.prototype={update:function(N){const w=this._settings,S=Dv(N,w);if(_v(this,S.length),ov||!sv){this.loadAll(S);return}if(Lv(w)){I_(S,w,this);return}F_(this._observer,S)},destroy:function(){this._observer&&this._observer.disconnect(),tg(this._settings).forEach(N=>{Sv(N)}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(N){const w=this._settings;Dv(N,w).forEach(W=>{Jm(W,this),Og(W,w,this)})},restoreAll:function(){const N=this._settings;tg(N).forEach(w=>{M_(w,N)})}};_m.load=(N,w)=>{const S=uv(w);Og(N,S)};_m.resetStatus=N=>{Zm(N)};pp&&G0(_m,window.lazyLoadOptions);class Nv{constructor({readonly:w,onNewPageIndex:S,onPlay:W}){this._pages=[],this.pageIndex=0,this.setPaused=()=>{this.$btnPlay.classList.toggle(this.wrapClassName("footer-btn-playing"),!1)},this.setPlaying=()=>{this.$btnPlay.classList.toggle(this.wrapClassName("footer-btn-playing"),!0)},this.namespace="netless-app-slide",this.isShowPreview=!1,this.isSmallBox=!1,this.sideEffect=new Xm,this.readonly=w,this.onNewPageIndex=S,this.onPlay=W,this.render()}set pages(w){this._pages=w,this.refreshPreview(),this.refreshTotalPage(),this.refreshBtnSidebar()}get pages(){return this._pages}unmount(){this.$content.remove(),this.$footer.remove()}setReadonly(w){this.readonly=w,this.$content.classList.toggle(this.wrapClassName("readonly"),w),this.$footer.classList.toggle(this.wrapClassName("readonly"),w),this.$pageNumberInput.disabled=w}destroy(){this.sideEffect.flushAll(),this.unmount()}setPageIndex(w){Number.isNaN(w)||(this.pageIndex=w,this.$pageNumberInput.value=String(w+1))}refreshTotalPage(){this.pages.length?this.$totalPage.textContent=" / "+this.pages.length:this.$totalPage.textContent=""}setSmallBox(w){this.isSmallBox!==w&&(this.isSmallBox=w,this.$footer.classList.toggle(this.wrapClassName("float-footer"),w))}render(){return this.renderContent(),this.renderFooter(),this.$content}renderContent(){if(!this.$content){const w=document.createElement("div");w.className=this.wrapClassName("content"),this.$content=w,this.readonly&&w.classList.add(this.wrapClassName("readonly")),w.appendChild(this.renderPreviewMask()),w.appendChild(this.renderPreview())}return this.$content}renderPreview(){if(!this.$preview){const w=document.createElement("div");w.className=this.wrapClassName("preview")+" tele-fancy-scrollbar",this.$preview=w,this.sideEffect.add(()=>(this.previewLazyLoad=new _m({container:this.$preview,elements_selector:`.${this.wrapClassName("preview-page>img")}`}),()=>{var S;return(S=this.previewLazyLoad)==null?void 0:S.destroy()})),this.refreshPreview(),this.sideEffect.addEventListener(w,"click",S=>{var pt;if(this.readonly)return;const W=(pt=S.target.dataset)==null?void 0:pt.pageIndex;W&&(S.preventDefault(),S.stopPropagation(),S.stopImmediatePropagation(),this.onNewPageIndex(Number(W)),this.togglePreview(!1))})}return this.$preview}refreshPreview(){var pt;const{$preview:w}=this,S=this.wrapClassName("preview-page"),W=this.wrapClassName("preview-page-name");for(;w.firstChild;)w.firstChild.remove();this.pages.forEach((lt,J)=>{var kt;const X=(kt=lt.thumbnail)!=null?kt:lt.src.startsWith("ppt")?void 0:lt.src;if(!X)return;const ct=String(J),tt=document.createElement("a");tt.className=S+" "+this.wrapClassName(`preview-page-${J}`),tt.setAttribute("href","#"),tt.dataset.pageIndex=ct;const $=document.createElement("span");$.className=W,$.textContent=String(J+1),$.dataset.pageIndex=ct;const ut=document.createElement("img");ut.width=lt.width,ut.height=lt.height,ut.dataset.src=X,ut.dataset.pageIndex=ct,tt.appendChild(ut),tt.appendChild($),w.appendChild(tt)}),(pt=this.previewLazyLoad)==null||pt.update()}renderPreviewMask(){return this.$previewMask||(this.$previewMask=document.createElement("div"),this.$previewMask.className=this.wrapClassName("preview-mask"),this.sideEffect.addEventListener(this.$previewMask,"click",w=>{this.readonly||w.target===this.$previewMask&&this.togglePreview(!1)})),this.$previewMask}refreshBtnSidebar(){this.$btnSidebar.style.display=this.pages.length>0?"":"none"}renderFooter(){if(!this.$footer){const w=document.createElement("div");w.className=this.wrapClassName("footer"),this.$footer=w,this.readonly&&w.classList.add(this.wrapClassName("readonly")),this.isSmallBox&&w.classList.add(this.wrapClassName("float-footer"));const S=this.renderFooterBtn("btn-sidebar",D0(this.namespace));this.sideEffect.addEventListener(S,"click",()=>{this.readonly||this.togglePreview()}),this.$btnSidebar=S,this.$btnSidebar.style.display="none",this.$footer.appendChild(S);const W=document.createElement("div");W.className=this.wrapClassName("page-jumps");const pt=this.renderFooterBtn("btn-page-back",N0(this.namespace));if(this.sideEffect.addEventListener(pt,"click",()=>{this.readonly||this.onNewPageIndex(this.pageIndex-1)}),W.appendChild(pt),this.onPlay){const tt=this.renderFooterBtn("btn-page-play",B0(this.namespace),k0(this.namespace));this.$btnPlay=tt,this.sideEffect.addEventListener(tt,"click",()=>{this.readonly||(this.setPlaying(),this.onPlay&&this.onPlay())}),W.appendChild(tt)}const lt=this.renderFooterBtn("btn-page-next",F0(this.namespace));this.sideEffect.addEventListener(lt,"click",()=>{this.readonly||this.onNewPageIndex(this.pageIndex+1)}),W.appendChild(lt);const J=document.createElement("div");J.className=this.wrapClassName("page-number");const X=document.createElement("input");X.className=this.wrapClassName("page-number-input"),X.value=String(this.pageIndex+1),this.readonly&&(X.disabled=!0),this.$pageNumberInput=X,this.sideEffect.addEventListener(X,"change",()=>{this.readonly||X.value&&this.onNewPageIndex(Number(X.value)-1)});const ct=document.createElement("span");this.$totalPage=ct,J.appendChild(X),J.appendChild(ct),this.$footer.appendChild(W),this.$footer.appendChild(J)}return this.$footer}renderFooterBtn(w,S,W){const pt=document.createElement("button");return pt.className=this.wrapClassName("footer-btn")+" "+this.wrapClassName(w),pt.appendChild(S),W&&pt.appendChild(W),pt}togglePreview(w){if(this.isShowPreview=w!=null?w:!this.isShowPreview,this.$content.classList.toggle(this.wrapClassName("preview-active"),this.isShowPreview),this.isShowPreview){const S=this.$preview.querySelector("."+this.wrapClassName(`preview-page-${this.pageIndex}`));S&&this.$preview.scrollTo({top:S.offsetTop-16})}}wrapClassName(w){return`${this.namespace}-${w}`}}const j_=new Set(["clicker"]);class V_{constructor({box:w,view:S,mountSlideController:W,mountWhiteboard:pt}){this.slideController=null,this.isViewMounted=!1,this.onError=({error:lt})=>{this.viewer.setPaused(),console.warn("[Slide] render error",lt)},this.refreshPages=()=>{this.slideController&&(this.viewer.pages=iv(this.slideController.slide),this.viewer.setPageIndex(this.getPageIndex(this.slideController.page)),this.scaleDocsToFit())},this.scaleDocsToFit=()=>{if(this.slideController){const{width:lt,height:J}=this.slideController.slide;lt&&J&&(this.whiteboardView.moveCameraToContain({originX:-lt/2,originY:-J/2,width:lt,height:J,animationMode:"immediately"}),this.isViewMounted||(this.isViewMounted=!0,console.log("[Slide] mount whiteboard view"),this.mountWhiteboard(this.$whiteboardView)))}},this.onPlay=()=>{this.slideController&&this.slideController.slide.nextStep()},this.onNewPageIndex=lt=>{this.slideController&&this.slideController.jumpToPage(lt+1)},this.sideEffect=new Xm,this.namespace="netless-app-slide",this.box=w,this.whiteboardView=S,this.mountSlideController=W,this.mountWhiteboard=pt,this.viewer=new Nv({readonly:w.readonly,onNewPageIndex:this.onNewPageIndex,onPlay:this.onPlay}),this.sideEffect.add(()=>{const lt=J=>{this.setReadonly(J)};return w.events.on("readonly",lt),()=>w.events.off("readonly",lt)}),this.render()}render(){this.viewer.$content.appendChild(this.renderSlideContainer()),this.viewer.$content.appendChild(this.renderWhiteboardView()),this.sideEffect.addEventListener(window,"keydown",w=>{if(this.box.focus&&this.slideController)switch(w.key){case"ArrowUp":case"ArrowLeft":{this.slideController.slide.prevStep();break}case"ArrowRight":case"ArrowDown":{this.slideController.slide.nextStep();break}}})}renderSlideContainer(){if(!this.$slide){const w=document.createElement("div");w.className=this.wrapClassName("slide"),w.dataset.appKind="Slide",this.$slide=w}return this.$slide}renderWhiteboardView(){return this.$whiteboardView||(this.$whiteboardView=document.createElement("div"),this.$whiteboardView.className=this.wrapClassName("wb-view")),this.$whiteboardView}mount(){return this.box.mountContent(this.viewer.$content),this.box.mountFooter(this.viewer.$footer),this.slideController=this.mountSlideController({anchor:this.$slide,onTransitionStart:this.viewer.setPlaying,onTransitionEnd:this.viewer.setPaused,onReady:this.refreshPages,onError:this.onError}),this.scaleDocsToFit(),this.sideEffect.add(()=>(this.whiteboardView.callbacks.on("onSizeUpdated",this.scaleDocsToFit),()=>this.whiteboardView.callbacks.off("onSizeUpdated",this.scaleDocsToFit))),this}getPageIndex(w){return(w>0?w:1)-1}unmount(){return this.slideController&&(this.slideController.destroy(),this.slideController=null),this.viewer.unmount(),this}setReadonly(w){this.viewer.setReadonly(w)}destroy(){this.sideEffect.flushAll(),this.unmount(),this.viewer.destroy()}toggleClickThrough(w){this.$whiteboardView.style.pointerEvents=!w||j_.has(w)?"none":"auto"}wrapClassName(w){return`${this.namespace}-${w}`}}const Fv=2,eg={map:new Map,queue:[],validateQueue(){for(es("[Slide] freezer: validate",this.queue);this.queue.length>Fv;){const N=this.queue.pop(),w=this.map.get(N);w&&(es("[Slide] freezer: validate-freeze",N,this.queue),w.freeze())}},set(N,w){es("[Slide] freezer: add",N,this.queue),this.map.set(N,w),this.queue.includes(N)||this.queue.unshift(N),this.validateQueue()},delete(N){es("[Slide] freezer: delete",N,this.queue),this.map.delete(N),this.queue=this.queue.filter(w=>w!==N)},focus(N){const w=this.map.get(N),S=this.queue.indexOf(N);S>-1&&this.queue.splice(S,1),this.queue.unshift(N),this.validateQueue(),es("[Slide] freezer: focus",N,this.queue),w&&w.unfreeze()}},W_=N=>{N.on("focus",({appId:w})=>{eg.focus(w)})};var Bv=`.netless-app-slide-content{position:relative;height:100%;overflow:hidden}.netless-app-slide-preview-mask{display:none;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%}.netless-app-slide-preview{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:300;top:0;left:0;width:33%;max-width:200px;height:100%;padding-top:10px;transform:translate(-100%);background:rgba(237,237,240,.9);box-shadow:inset -1px 0 #0000001c;transition:transform .4s}.netless-app-slide-preview-active .netless-app-slide-preview-mask{display:block}.netless-app-slide-preview-active .netless-app-slide-preview{transform:translate(0)}.netless-app-slide-preview-page{position:relative;display:block;width:55%;margin-bottom:10px;font-size:0;color:transparent;outline:none;border:7px solid transparent;border-radius:4px;transition:border-color .3s;user-select:none}.netless-app-slide-preview-page:hover,.netless-app-slide-preview-page.netless-app-slide-preview-page-active{border-color:#444e601a}.netless-app-slide-preview-page>img{width:100%;height:auto;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);border-radius:1px;background-color:#fff;box-shadow:0 2px 8px #0000004d}.netless-app-slide-preview-page-name{position:absolute;top:1px;left:-10px;transform:translate(-100%);text-align:right;font-size:12px;color:#5f5f5f;user-select:none}.netless-app-slide-footer{box-sizing:border-box;height:26px;display:flex;align-items:center;padding:0 16px;border-top:1px solid #eeeef7;color:#191919}.netless-app-slide-float-footer{width:100%;min-height:26px;position:absolute;left:0;bottom:0;z-index:2000;background:rgba(249,249,252,.9);transition:opacity .4s}.netless-app-slide-footer-btn{box-sizing:border-box;width:26px;height:26px;font-size:0;margin:0;padding:3px;border:none;border-radius:1px;outline:none;color:currentColor;background:transparent;transition:background .4s;cursor:pointer;user-select:none}.netless-app-slide-footer-btn:hover{background:rgba(237,237,240,.9)}.netless-app-slide-footer-btn>svg{width:100%;height:100%}.netless-app-slide-footer-btn>svg:nth-of-type(2){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(1){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(2){display:initial}.netless-app-slide-footer-btn~.netless-app-slide-footer-btn{margin-left:15px}.netless-app-slide-page-jumps{flex:1;display:flex;justify-content:center;align-items:center}.netless-app-slide-page-number{margin-left:auto;font-size:13px;user-select:none;white-space:nowrap;word-break:keep-all}.netless-app-slide-page-number-input{border:none;outline:none;width:1.5em;text-align:right;border-radius:2px;color:currentColor;background:transparent;transition:background .4s;user-select:text}.netless-app-slide-page-number-input:hover,.netless-app-slide-page-number-input:focus,.netless-app-slide-page-number-input:active{background:#fff;box-shadow:#63636333 0 2px 8px}.netless-app-slide-readonly .netless-app-slide-footer-btn{cursor:not-allowed}.netless-app-slide-readonly .netless-app-slide-footer-btn:hover{background:transparent}.netless-app-slide-readonly .netless-app-slide-page-number-input{cursor:not-allowed}.netless-app-slide-readonly .netless-app-slide-page-number-input:hover,.netless-app-slide-readonly .netless-app-slide-page-number-input:focus,.netless-app-slide-readonly .netless-app-slide-page-number-input:active{background:transparent;box-shadow:none}.netless-app-slide-readonly .netless-app-slide-page-number-input:disabled{color:inherit}.netless-app-slide-readonly.netless-app-slide-float-footer{display:none}.netless-app-slide-wb-view{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;overflow:hidden}.netless-app-slide-slide{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.netless-app-slide-slide canvas{transform:scale(var(--netless-app-slide-scale, 1))}
|
|
6079
|
+
`;function X_({container:N,taskId:w,url:S=xg,debug:W=!1}){if(!w)throw new Error("[Slide] taskId is required");N.style.cssText+="display:flex;flex-direction:column";const pt=new kv({target:N});return pt.debug=!!W,pt.mount(w,S),pt}class kv{constructor(w){this.slide=null,this.debug=!1,this.ready=!1,this.readyPromise=new Promise(S=>{this.resolveReady=()=>{this.ready=!0,S()}}),this.onPageChanged=S=>{this.viewer.setPageIndex(S-1)},this.onTransitionStart=()=>{this.viewer.setPlaying()},this.onTransitionEnd=()=>{this.viewer.setPaused()},this.onError=({error:S})=>{this.viewer.setPaused(),console.warn("[Slide] render error",S)},this.destroyed=!1,this.refreshPages=()=>{this.slide&&(this.viewer.pages=iv(this.slide),this.viewer.setPageIndex(this.getPageIndex(this.slide.slideCount)))},this.onPlay=()=>{this.slide&&this.slide.nextStep()},this.onNewPageIndex=S=>{this.slide&&this.slide.slideCount>0&&this.slide.renderSlide(Zg(S+1,1,this.slide.slideCount))},this.namespace="netless-app-slide",this.target=w.target,this.bgColor=rv(this.target),this.viewer=new Nv({readonly:!1,onNewPageIndex:this.onNewPageIndex,onPlay:this.onPlay}),this.render()}render(){this.viewer.$content.appendChild(this.renderSlideContainer())}mount(w,S){this.target.appendChild(this.renderStyle()),this.target.appendChild(this.viewer.$content),this.target.appendChild(this.viewer.$footer),this.slide=new bo.Slide({anchor:this.$slide,interactive:!1,mode:"local",resize:!0,controller:this.debug,renderOptions:{minFPS:25,maxFPS:30,autoFPS:!0,autoResolution:!0,transactionBgColor:this.bgColor}}),this.registerEventListeners(),this.slide.setResource(w,S),this.slide.renderSlide(1)}renderStyle(){const w=document.createElement("style");return w.appendChild(document.createTextNode(Bv)),w}registerEventListeners(){if(!this.slide)return;const{slide:w}=this;w.on(bo.SLIDE_EVENTS.slideChange,this.onPageChanged),w.on(bo.SLIDE_EVENTS.renderStart,this.onTransitionStart),w.on(bo.SLIDE_EVENTS.renderEnd,this.onTransitionEnd),w.on(bo.SLIDE_EVENTS.mainSeqStepStart,this.onTransitionStart),w.on(bo.SLIDE_EVENTS.mainSeqStepEnd,this.onTransitionEnd),w.on(bo.SLIDE_EVENTS.renderError,this.onError),w.on(bo.SLIDE_EVENTS.renderEnd,this.resolveReady),this.readyPromise.then(this.refreshPages)}destroy(){this.slide&&!this.destroyed&&(es("[Slide] destroy slide (once)"),this.slide.destroy(),this.destroyed=!0),this.viewer.destroy()}getPageIndex(w){return(w>0?w:1)-1}renderSlideContainer(){if(!this.$slide){const w=document.createElement("div");w.className=this.wrapClassName("slide"),w.dataset.appKind="Slide",this.$slide=w}return this.$slide}wrapClassName(w){return`${this.namespace}-${w}`}}const q_={kind:"Slide",setup(N){N.getIsWritable()&&b0(N,bg);const w=N.getAttributes();if(!(w==null?void 0:w.taskId))throw new Error("[Slide] no taskId");const S=N.getView();if(!S)throw new Error("[Slide] no view, please set scenePath on addApp()");S.disableCameraTransform=!0;const W=N.getBox();W.mountStyles(Bv);const pt=N.getInitScenePath();let lt=null;const J=$=>{const ut=N.getRoom();if(lt&<.slideController){let kt=!1;ut&&N.getIsWritable()&&(I0(ut,N,lt.slideController.slide,pt),kt=!0),es("[Slide] page to",$,kt),lt.viewer.setPageIndex($-1)}},X=$=>{var kt,Gt;const ut=new O0(Xg(dp({context:N},$),{onPageChanged:J}));return eg.set(N.appId,ut),((kt=$u.apps)[Gt=N.appId]||(kt[Gt]={})).controller=ut,ut.readyPromise.then($.onReady),ut};lt=new V_({box:W,view:S,mountSlideController:X,mountWhiteboard:N.mountView.bind(N)});const ct=N.getRoom(),tt=new Xm;tt.add(()=>{var $,ut,kt;return(($=$u.apps)[ut=N.appId]||($[ut]={})).context=N,$u.enable=((kt=N.getAppOptions())==null?void 0:kt.debug)||!1,$u.level="debug",()=>$u.dispose(N.appId)}),ct&&(lt.toggleClickThrough(ct.state.memberState.currentApplianceName),tt.add(()=>{const $=ut=>{ut.memberState&<&<.toggleClickThrough(ut.memberState.currentApplianceName)};return ct.callbacks.on("onRoomStateChanged",$),()=>ct.callbacks.off("onRoomStateChanged",$)})),N.emitter.on("destroy",()=>{es("[Slide]: destroy"),eg.delete(N.appId),tt.flushAll(),lt&&(lt.destroy(),lt=null)}),lt.mount()}};exports.DefaultUrl=xg;exports.FreezerLength=Fv;exports.SlidePreviewer=kv;exports.addHooks=W_;exports.apps=eg;exports.default=q_;exports.previewSlide=X_;
|
|
6080
6080
|
//# sourceMappingURL=main.cjs.js.map
|