archgine 2.0.2 → 2.0.3

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.
@@ -19,4 +19,3 @@ function go(){let t=null,e=!1,n=null,i=null;function r(e,s){n(e,s),i=t.requestAn
19
19
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
20
20
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
21
  */!function(t,e){(function(){var n,i="Expected a function",r="__lodash_hash_undefined__",s="__lodash_placeholder__",a=32,o=128,l=256,c=1/0,h=9007199254740991,u=NaN,d=4294967295,p=[["ary",o],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],f="[object Arguments]",m="[object Array]",g="[object Boolean]",v="[object Date]",_="[object Error]",y="[object Function]",x="[object GeneratorFunction]",b="[object Map]",M="[object Number]",S="[object Object]",E="[object Promise]",w="[object RegExp]",T="[object Set]",A="[object String]",C="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",U="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",k="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,j=RegExp(W.source),X=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),nt=/^\s+/,it=/\s/,rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,yt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Mt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",wt="\\ufe0e\\ufe0f",Tt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Ct="["+xt+"]",Rt="["+Tt+"]",Pt="["+bt+"]",It="\\d+",Nt="["+Mt+"]",Dt="["+St+"]",Lt="[^"+xt+Tt+It+Mt+St+Et+"]",Ut="\\ud83c[\\udffb-\\udfff]",Ot="[^"+xt+"]",Ft="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Et+"]",kt="\\u200d",Vt="(?:"+Dt+"|"+Lt+")",Ht="(?:"+zt+"|"+Lt+")",Gt="(?:['’](?:d|ll|m|re|s|t|ve))?",Wt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Pt+"|"+Ut+")?",jt="["+wt+"]?",Xt=jt+qt+"(?:"+kt+"(?:"+[Ot,Ft,Bt].join("|")+")"+jt+qt+")*",Yt="(?:"+[Nt,Ft,Bt].join("|")+")"+Xt,Zt="(?:"+[Ot+Pt+"?",Pt,Ft,Bt,Ct].join("|")+")",Kt=RegExp(At,"g"),Jt=RegExp(Pt,"g"),$t=RegExp(Ut+"(?="+Ut+")|"+Zt+Xt,"g"),Qt=RegExp([zt+"?"+Dt+"+"+Gt+"(?="+[Rt,zt,"$"].join("|")+")",Ht+"+"+Wt+"(?="+[Rt,zt+Vt,"$"].join("|")+")",zt+"?"+Vt+"+"+Gt,zt+"+"+Wt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Yt].join("|"),"g"),te=RegExp("["+kt+xt+bt+wt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,re={};re[N]=re[D]=re[L]=re[U]=re[O]=re[F]=re[B]=re[z]=re[k]=!0,re[f]=re[m]=re[P]=re[g]=re[I]=re[v]=re[_]=re[y]=re[b]=re[M]=re[S]=re[w]=re[T]=re[A]=re[R]=!1;var se={};se[f]=se[m]=se[P]=se[I]=se[g]=se[v]=se[N]=se[D]=se[L]=se[U]=se[O]=se[b]=se[M]=se[S]=se[w]=se[T]=se[A]=se[C]=se[F]=se[B]=se[z]=se[k]=!0,se[_]=se[y]=se[R]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oe=parseFloat,le=parseInt,ce="object"==typeof ch&&ch&&ch.Object===Object&&ch,he="object"==typeof self&&self&&self.Object===Object&&self,ue=ce||he||Function("return this")(),de=e&&!e.nodeType&&e,pe=de&&t&&!t.nodeType&&t,fe=pe&&pe.exports===de,me=fe&&ce.process,ge=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||me&&me.binding&&me.binding("util")}catch(t){}}(),ve=ge&&ge.isArrayBuffer,_e=ge&&ge.isDate,ye=ge&&ge.isMap,xe=ge&&ge.isRegExp,be=ge&&ge.isSet,Me=ge&&ge.isTypedArray;function Se(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ee(t,e,n,i){for(var r=-1,s=null==t?0:t.length;++r<s;){var a=t[r];e(i,a,n(a),t)}return i}function we(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Ce(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++n<i;){var a=t[n];e(a,n,t)&&(s[r++]=a)}return s}function Re(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Pe(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Ie(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Ne(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function De(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r<s;)n=e(n,t[r],r,t);return n}function Le(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function Ue(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Oe=Ge("length");function Fe(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function Be(t,e,n,i){for(var r=t.length,s=n+(i?1:-1);i?s--:++s<r;)if(e(t[s],s,t))return s;return-1}function ze(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):Be(t,Ve,n)}function ke(t,e,n,i){for(var r=n-1,s=t.length;++r<s;)if(i(t[r],e))return r;return-1}function Ve(t){return t!=t}function He(t,e){var n=null==t?0:t.length;return n?je(t,e)/n:u}function Ge(t){return function(e){return null==e?n:e[t]}}function We(t){return function(e){return null==t?n:t[e]}}function qe(t,e,n,i,r){return r(t,(function(t,r,s){n=i?(i=!1,t):e(n,t,r,s)})),n}function je(t,e){for(var i,r=-1,s=t.length;++r<s;){var a=e(t[r]);a!==n&&(i=i===n?a:i+a)}return i}function Xe(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Ye(t){return t?t.slice(0,un(t)+1).replace(nt,""):t}function Ze(t){return function(e){return t(e)}}function Ke(t,e){return Ie(e,(function(e){return t[e]}))}function Je(t,e){return t.has(e)}function $e(t,e){for(var n=-1,i=t.length;++n<i&&ze(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&ze(e,t[n],0)>-1;);return n}var tn=We({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=We({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+ae[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function an(t,e){return function(n){return t(e(n))}}function on(t,e){for(var n=-1,i=t.length,r=0,a=[];++n<i;){var o=t[n];o!==e&&o!==s||(t[n]=s,a[r++]=n)}return a}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function cn(t){return rn(t)?function(t){for(var e=$t.lastIndex=0;$t.test(t);)++e;return e}(t):Oe(t)}function hn(t){return rn(t)?function(t){return t.match($t)||[]}(t):function(t){return t.split("")}(t)}function un(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=We({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function t(e){var it,xt=(e=null==e?ue:pn.defaults(ue.Object(),e,pn.pick(ue,ne))).Array,bt=e.Date,Mt=e.Error,St=e.Function,Et=e.Math,wt=e.Object,Tt=e.RegExp,At=e.String,Ct=e.TypeError,Rt=xt.prototype,Pt=St.prototype,It=wt.prototype,Nt=e["__core-js_shared__"],Dt=Pt.toString,Lt=It.hasOwnProperty,Ut=0,Ot=(it=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||""))?"Symbol(src)_1."+it:"",Ft=It.toString,Bt=Dt.call(wt),zt=ue._,kt=Tt("^"+Dt.call(Lt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=fe?e.Buffer:n,Ht=e.Symbol,Gt=e.Uint8Array,Wt=Vt?Vt.allocUnsafe:n,qt=an(wt.getPrototypeOf,wt),jt=wt.create,Xt=It.propertyIsEnumerable,Yt=Rt.splice,Zt=Ht?Ht.isConcatSpreadable:n,$t=Ht?Ht.iterator:n,te=Ht?Ht.toStringTag:n,ae=function(){try{var t=cs(wt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,he=bt&&bt.now!==ue.Date.now&&bt.now,de=e.setTimeout!==ue.setTimeout&&e.setTimeout,pe=Et.ceil,me=Et.floor,ge=wt.getOwnPropertySymbols,Oe=Vt?Vt.isBuffer:n,We=e.isFinite,fn=Rt.join,mn=an(wt.keys,wt),gn=Et.max,vn=Et.min,_n=bt.now,yn=e.parseInt,xn=Et.random,bn=Rt.reverse,Mn=cs(e,"DataView"),Sn=cs(e,"Map"),En=cs(e,"Promise"),wn=cs(e,"Set"),Tn=cs(e,"WeakMap"),An=cs(wt,"create"),Cn=Tn&&new Tn,Rn={},Pn=Bs(Mn),In=Bs(Sn),Nn=Bs(En),Dn=Bs(wn),Ln=Bs(Tn),Un=Ht?Ht.prototype:n,On=Un?Un.valueOf:n,Fn=Un?Un.toString:n;function Bn(t){if(eo(t)&&!Wa(t)&&!(t instanceof Hn)){if(t instanceof Vn)return t;if(Lt.call(t,"__wrapped__"))return zs(t)}return new Vn(t)}var zn=function(){function t(){}return function(e){if(!to(e))return{};if(jt)return jt(e);t.prototype=e;var i=new t;return t.prototype=n,i}}();function kn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Hn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Wn(t);this.size=e.size}function Yn(t,e){var n=Wa(t),i=!n&&Ga(t),r=!n&&!i&&Ya(t),s=!n&&!i&&!r&&co(t),a=n||i||r||s,o=a?Xe(t.length,At):[],l=o.length;for(var c in t)!e&&!Lt.call(t,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gs(c,l))||o.push(c);return o}function Zn(t){var e=t.length;return e?t[ji(0,e-1)]:n}function Kn(t,e){return Ns(Ar(t),si(e,0,t.length))}function Jn(t){return Ns(Ar(t))}function $n(t,e,i){(i!==n&&!ka(t[e],i)||i===n&&!(e in t))&&ii(t,e,i)}function Qn(t,e,i){var r=t[e];Lt.call(t,e)&&ka(r,i)&&(i!==n||e in t)||ii(t,e,i)}function ti(t,e){for(var n=t.length;n--;)if(ka(t[n][0],e))return n;return-1}function ei(t,e,n,i){return hi(t,(function(t,r,s){e(i,t,n(t),s)})),i}function ni(t,e){return t&&Cr(e,No(e),t)}function ii(t,e,n){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ri(t,e){for(var i=-1,r=e.length,s=xt(r),a=null==t;++i<r;)s[i]=a?n:Ao(t,e[i]);return s}function si(t,e,i){return t==t&&(i!==n&&(t=t<=i?t:i),e!==n&&(t=t>=e?t:e)),t}function ai(t,e,i,r,s,a){var o,l=1&e,c=2&e,h=4&e;if(i&&(o=s?i(t,r,s,a):i(t)),o!==n)return o;if(!to(t))return t;var u=Wa(t);if(u){if(o=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return Ar(t,o)}else{var d=ds(t),p=d==y||d==x;if(Ya(t))return br(t,l);if(d==S||d==f||p&&!s){if(o=c||p?{}:fs(t),!l)return c?function(t,e){return Cr(t,us(t),e)}(t,function(t,e){return t&&Cr(e,Do(e),t)}(o,t)):function(t,e){return Cr(t,hs(t),e)}(t,ni(o,t))}else{if(!se[d])return s?t:{};o=function(t,e,n){var i,r=t.constructor;switch(e){case P:return Mr(t);case g:case v:return new r(+t);case I:return function(t,e){var n=e?Mr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case D:case L:case U:case O:case F:case B:case z:case k:return Sr(t,n);case b:return new r;case M:case A:return new r(t);case w:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case T:return new r;case C:return i=t,On?wt(On.call(i)):{}}}(t,d,l)}}a||(a=new Xn);var m=a.get(t);if(m)return m;a.set(t,o),ao(t)?t.forEach((function(n){o.add(ai(n,e,i,n,t,a))})):no(t)&&t.forEach((function(n,r){o.set(r,ai(n,e,i,r,t,a))}));var _=u?n:(h?c?ns:es:c?Do:No)(t);return we(_||t,(function(n,r){_&&(n=t[r=n]),Qn(o,r,ai(n,e,i,r,t,a))})),o}function oi(t,e,i){var r=i.length;if(null==t)return!r;for(t=wt(t);r--;){var s=i[r],a=e[s],o=t[s];if(o===n&&!(s in t)||!a(o))return!1}return!0}function li(t,e,r){if("function"!=typeof t)throw new Ct(i);return Cs((function(){t.apply(n,r)}),e)}function ci(t,e,n,i){var r=-1,s=Re,a=!0,o=t.length,l=[],c=e.length;if(!o)return l;n&&(e=Ie(e,Ze(n))),i?(s=Pe,a=!1):e.length>=200&&(s=Je,a=!1,e=new jn(e));t:for(;++r<o;){var h=t[r],u=null==n?h:n(h);if(h=i||0!==h?h:0,a&&u==u){for(var d=c;d--;)if(e[d]===u)continue t;l.push(h)}else s(e,u,i)||l.push(h)}return l}Bn.templateSettings={escape:Y,evaluate:Z,interpolate:K,variable:"",imports:{_:Bn}},Bn.prototype=kn.prototype,Bn.prototype.constructor=Bn,Vn.prototype=zn(kn.prototype),Vn.prototype.constructor=Vn,Hn.prototype=zn(kn.prototype),Hn.prototype.constructor=Hn,Gn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Gn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Gn.prototype.get=function(t){var e=this.__data__;if(An){var i=e[t];return i===r?n:i}return Lt.call(e,t)?e[t]:n},Gn.prototype.has=function(t){var e=this.__data__;return An?e[t]!==n:Lt.call(e,t)},Gn.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=An&&e===n?r:e,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(t){var e=this.__data__,n=ti(e,t);return!(n<0||(n==e.length-1?e.pop():Yt.call(e,n,1),--this.size,0))},Wn.prototype.get=function(t){var e=this.__data__,i=ti(e,t);return i<0?n:e[i][1]},Wn.prototype.has=function(t){return ti(this.__data__,t)>-1},Wn.prototype.set=function(t,e){var n=this.__data__,i=ti(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Sn||Wn),string:new Gn}},qn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return os(this,t).get(t)},qn.prototype.has=function(t){return os(this,t).has(t)},qn.prototype.set=function(t,e){var n=os(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,r),this},jn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!Sn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(i)}return n.set(t,e),this.size=n.size,this};var hi=Ir(_i),ui=Ir(yi,!0);function di(t,e){var n=!0;return hi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function pi(t,e,i){for(var r=-1,s=t.length;++r<s;){var a=t[r],o=e(a);if(null!=o&&(l===n?o==o&&!lo(o):i(o,l)))var l=o,c=a}return c}function fi(t,e){var n=[];return hi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function mi(t,e,n,i,r){var s=-1,a=t.length;for(n||(n=ms),r||(r=[]);++s<a;){var o=t[s];e>0&&n(o)?e>1?mi(o,e-1,n,i,r):Ne(r,o):i||(r[r.length]=o)}return r}var gi=Nr(),vi=Nr(!0);function _i(t,e){return t&&gi(t,e,No)}function yi(t,e){return t&&vi(t,e,No)}function xi(t,e){return Ce(e,(function(e){return Ja(t[e])}))}function bi(t,e){for(var i=0,r=(e=vr(e,t)).length;null!=t&&i<r;)t=t[Fs(e[i++])];return i&&i==r?t:n}function Mi(t,e,n){var i=e(t);return Wa(t)?i:Ne(i,n(t))}function Si(t){return null==t?t===n?"[object Undefined]":"[object Null]":te&&te in wt(t)?function(t){var e=Lt.call(t,te),i=t[te];try{t[te]=n;var r=!0}catch(t){}var s=Ft.call(t);return r&&(e?t[te]=i:delete t[te]),s}(t):function(t){return Ft.call(t)}(t)}function Ei(t,e){return t>e}function wi(t,e){return null!=t&&Lt.call(t,e)}function Ti(t,e){return null!=t&&e in wt(t)}function Ai(t,e,i){for(var r=i?Pe:Re,s=t[0].length,a=t.length,o=a,l=xt(a),c=1/0,h=[];o--;){var u=t[o];o&&e&&(u=Ie(u,Ze(e))),c=vn(u.length,c),l[o]=!i&&(e||s>=120&&u.length>=120)?new jn(o&&u):n}u=t[0];var d=-1,p=l[0];t:for(;++d<s&&h.length<c;){var f=u[d],m=e?e(f):f;if(f=i||0!==f?f:0,!(p?Je(p,m):r(h,m,i))){for(o=a;--o;){var g=l[o];if(!(g?Je(g,m):r(t[o],m,i)))continue t}p&&p.push(m),h.push(f)}}return h}function Ci(t,e,i){var r=null==(t=ws(t,e=vr(e,t)))?t:t[Fs(Ks(e))];return null==r?n:Se(r,t,i)}function Ri(t){return eo(t)&&Si(t)==f}function Pi(t,e,i,r,s){return t===e||(null==t||null==e||!eo(t)&&!eo(e)?t!=t&&e!=e:function(t,e,i,r,s,a){var o=Wa(t),l=Wa(e),c=o?m:ds(t),h=l?m:ds(e),u=(c=c==f?S:c)==S,d=(h=h==f?S:h)==S,p=c==h;if(p&&Ya(t)){if(!Ya(e))return!1;o=!0,u=!1}if(p&&!u)return a||(a=new Xn),o||co(t)?Qr(t,e,i,r,s,a):function(t,e,n,i,r,s,a){switch(n){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!s(new Gt(t),new Gt(e)));case g:case v:case M:return ka(+t,+e);case _:return t.name==e.name&&t.message==e.message;case w:case A:return t==e+"";case b:var o=sn;case T:var l=1&i;if(o||(o=ln),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;i|=2,a.set(t,e);var h=Qr(o(t),o(e),i,r,s,a);return a.delete(t),h;case C:if(On)return On.call(t)==On.call(e)}return!1}(t,e,c,i,r,s,a);if(!(1&i)){var y=u&&Lt.call(t,"__wrapped__"),x=d&&Lt.call(e,"__wrapped__");if(y||x){var E=y?t.value():t,R=x?e.value():e;return a||(a=new Xn),s(E,R,i,r,a)}}return!!p&&(a||(a=new Xn),function(t,e,i,r,s,a){var o=1&i,l=es(t),c=l.length,h=es(e),u=h.length;if(c!=u&&!o)return!1;for(var d=c;d--;){var p=l[d];if(!(o?p in e:Lt.call(e,p)))return!1}var f=a.get(t),m=a.get(e);if(f&&m)return f==e&&m==t;var g=!0;a.set(t,e),a.set(e,t);for(var v=o;++d<c;){var _=t[p=l[d]],y=e[p];if(r)var x=o?r(y,_,p,e,t,a):r(_,y,p,t,e,a);if(!(x===n?_===y||s(_,y,i,r,a):x)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var b=t.constructor,M=e.constructor;b==M||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(g=!1)}return a.delete(t),a.delete(e),g}(t,e,i,r,s,a))}(t,e,i,r,Pi,s))}function Ii(t,e,i,r){var s=i.length,a=s,o=!r;if(null==t)return!a;for(t=wt(t);s--;){var l=i[s];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var c=(l=i[s])[0],h=t[c],u=l[1];if(o&&l[2]){if(h===n&&!(c in t))return!1}else{var d=new Xn;if(r)var p=r(h,u,c,t,e,d);if(!(p===n?Pi(u,h,3,r,d):p))return!1}}return!0}function Ni(t){return!(!to(t)||(e=t,Ot&&Ot in e))&&(Ja(t)?kt:ft).test(Bs(t));var e}function Di(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Wa(t)?zi(t[0],t[1]):Bi(t):pl(t)}function Li(t){if(!bs(t))return mn(t);var e=[];for(var n in wt(t))Lt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ui(t){if(!to(t))return function(t){var e=[];if(null!=t)for(var n in wt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var i in t)("constructor"!=i||!e&&Lt.call(t,i))&&n.push(i);return n}function Oi(t,e){return t<e}function Fi(t,e){var n=-1,i=ja(t)?xt(t.length):[];return hi(t,(function(t,r,s){i[++n]=e(t,r,s)})),i}function Bi(t){var e=ls(t);return 1==e.length&&e[0][2]?Ss(e[0][0],e[0][1]):function(n){return n===t||Ii(n,t,e)}}function zi(t,e){return _s(t)&&Ms(e)?Ss(Fs(t),e):function(i){var r=Ao(i,t);return r===n&&r===e?Co(i,t):Pi(e,r,3)}}function ki(t,e,i,r,s){t!==e&&gi(e,(function(a,o){if(s||(s=new Xn),to(a))!function(t,e,i,r,s,a,o){var l=Ts(t,i),c=Ts(e,i),h=o.get(c);if(h)$n(t,i,h);else{var u=a?a(l,c,i+"",t,e,o):n,d=u===n;if(d){var p=Wa(c),f=!p&&Ya(c),m=!p&&!f&&co(c);u=c,p||f||m?Wa(l)?u=l:Xa(l)?u=Ar(l):f?(d=!1,u=br(c,!0)):m?(d=!1,u=Sr(c,!0)):u=[]:ro(c)||Ga(c)?(u=l,Ga(l)?u=_o(l):to(l)&&!Ja(l)||(u=fs(c))):d=!1}d&&(o.set(c,u),s(u,c,r,a,o),o.delete(c)),$n(t,i,u)}}(t,e,o,i,ki,r,s);else{var l=r?r(Ts(t,o),a,o+"",t,e,s):n;l===n&&(l=a),$n(t,o,l)}}),Do)}function Vi(t,e){var i=t.length;if(i)return gs(e+=e<0?i:0,i)?t[e]:n}function Hi(t,e,n){e=e.length?Ie(e,(function(t){return Wa(t)?function(e){return bi(e,1===t.length?t[0]:t)}:t})):[rl];var i=-1;return e=Ie(e,Ze(as())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Fi(t,(function(t,n,r){return{criteria:Ie(e,(function(e){return e(t)})),index:++i,value:t}})),(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,s=e.criteria,a=r.length,o=n.length;++i<a;){var l=Er(r[i],s[i]);if(l)return i>=o?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function Gi(t,e,n){for(var i=-1,r=e.length,s={};++i<r;){var a=e[i],o=bi(t,a);n(o,a)&&Ji(s,vr(a,t),o)}return s}function Wi(t,e,n,i){var r=i?ke:ze,s=-1,a=e.length,o=t;for(t===e&&(e=Ar(e)),n&&(o=Ie(t,Ze(n)));++s<a;)for(var l=0,c=e[s],h=n?n(c):c;(l=r(o,h,l,i))>-1;)o!==t&&Yt.call(o,l,1),Yt.call(t,l,1);return t}function qi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==s){var s=r;gs(r)?Yt.call(t,r,1):cr(t,r)}}return t}function ji(t,e){return t+me(xn()*(e-t+1))}function Xi(t,e){var n="";if(!t||e<1||e>h)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Yi(t,e){return Rs(Es(t,e,rl),t+"")}function Zi(t){return Zn(Vo(t))}function Ki(t,e){var n=Vo(t);return Ns(n,si(e,0,n.length))}function Ji(t,e,i,r){if(!to(t))return t;for(var s=-1,a=(e=vr(e,t)).length,o=a-1,l=t;null!=l&&++s<a;){var c=Fs(e[s]),h=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(s!=o){var u=l[c];(h=r?r(u,c,l):n)===n&&(h=to(u)?u:gs(e[s+1])?[]:{})}Qn(l,c,h),l=l[c]}return t}var $i=Cn?function(t,e){return Cn.set(t,e),t}:rl,Qi=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:rl;function tr(t){return Ns(Vo(t))}function er(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=xt(r);++i<r;)s[i]=t[i+e];return s}function nr(t,e){var n;return hi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function ir(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var s=i+r>>>1,a=t[s];null!==a&&!lo(a)&&(n?a<=e:a<e)?i=s+1:r=s}return r}return rr(t,e,rl,n)}function rr(t,e,i,r){var s=0,a=null==t?0:t.length;if(0===a)return 0;for(var o=(e=i(e))!=e,l=null===e,c=lo(e),h=e===n;s<a;){var u=me((s+a)/2),d=i(t[u]),p=d!==n,f=null===d,m=d==d,g=lo(d);if(o)var v=r||m;else v=h?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?d<=e:d<e);v?s=u+1:a=u}return vn(a,4294967294)}function sr(t,e){for(var n=-1,i=t.length,r=0,s=[];++n<i;){var a=t[n],o=e?e(a):a;if(!n||!ka(o,l)){var l=o;s[r++]=0===a?0:a}}return s}function ar(t){return"number"==typeof t?t:lo(t)?u:+t}function or(t){if("string"==typeof t)return t;if(Wa(t))return Ie(t,or)+"";if(lo(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function lr(t,e,n){var i=-1,r=Re,s=t.length,a=!0,o=[],l=o;if(n)a=!1,r=Pe;else if(s>=200){var c=e?null:Xr(t);if(c)return ln(c);a=!1,r=Je,l=new jn}else l=e?[]:o;t:for(;++i<s;){var h=t[i],u=e?e(h):h;if(h=n||0!==h?h:0,a&&u==u){for(var d=l.length;d--;)if(l[d]===u)continue t;e&&l.push(u),o.push(h)}else r(l,u,n)||(l!==o&&l.push(u),o.push(h))}return o}function cr(t,e){return null==(t=ws(t,e=vr(e,t)))||delete t[Fs(Ks(e))]}function hr(t,e,n,i){return Ji(t,e,n(bi(t,e)),i)}function ur(t,e,n,i){for(var r=t.length,s=i?r:-1;(i?s--:++s<r)&&e(t[s],s,t););return n?er(t,i?0:s,i?s+1:r):er(t,i?s+1:0,i?r:s)}function dr(t,e){var n=t;return n instanceof Hn&&(n=n.value()),De(e,(function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))}),n)}function pr(t,e,n){var i=t.length;if(i<2)return i?lr(t[0]):[];for(var r=-1,s=xt(i);++r<i;)for(var a=t[r],o=-1;++o<i;)o!=r&&(s[r]=ci(s[r]||a,t[o],e,n));return lr(mi(s,1),e,n)}function fr(t,e,i){for(var r=-1,s=t.length,a=e.length,o={};++r<s;){var l=r<a?e[r]:n;i(o,t[r],l)}return o}function mr(t){return Xa(t)?t:[]}function gr(t){return"function"==typeof t?t:rl}function vr(t,e){return Wa(t)?t:_s(t,e)?[t]:Os(yo(t))}var _r=Yi;function yr(t,e,i){var r=t.length;return i=i===n?r:i,!e&&i>=r?t:er(t,e,i)}var xr=ce||function(t){return ue.clearTimeout(t)};function br(t,e){if(e)return t.slice();var n=t.length,i=Wt?Wt(n):new t.constructor(n);return t.copy(i),i}function Mr(t){var e=new t.constructor(t.byteLength);return new Gt(e).set(new Gt(t)),e}function Sr(t,e){var n=e?Mr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Er(t,e){if(t!==e){var i=t!==n,r=null===t,s=t==t,a=lo(t),o=e!==n,l=null===e,c=e==e,h=lo(e);if(!l&&!h&&!a&&t>e||a&&o&&c&&!l&&!h||r&&o&&c||!i&&c||!s)return 1;if(!r&&!a&&!h&&t<e||h&&i&&s&&!r&&!a||l&&i&&s||!o&&s||!c)return-1}return 0}function wr(t,e,n,i){for(var r=-1,s=t.length,a=n.length,o=-1,l=e.length,c=gn(s-a,0),h=xt(l+c),u=!i;++o<l;)h[o]=e[o];for(;++r<a;)(u||r<s)&&(h[n[r]]=t[r]);for(;c--;)h[o++]=t[r++];return h}function Tr(t,e,n,i){for(var r=-1,s=t.length,a=-1,o=n.length,l=-1,c=e.length,h=gn(s-o,0),u=xt(h+c),d=!i;++r<h;)u[r]=t[r];for(var p=r;++l<c;)u[p+l]=e[l];for(;++a<o;)(d||r<s)&&(u[p+n[a]]=t[r++]);return u}function Ar(t,e){var n=-1,i=t.length;for(e||(e=xt(i));++n<i;)e[n]=t[n];return e}function Cr(t,e,i,r){var s=!i;i||(i={});for(var a=-1,o=e.length;++a<o;){var l=e[a],c=r?r(i[l],t[l],l,i,t):n;c===n&&(c=t[l]),s?ii(i,l,c):Qn(i,l,c)}return i}function Rr(t,e){return function(n,i){var r=Wa(n)?Ee:ei,s=e?e():{};return r(n,t,as(i,2),s)}}function Pr(t){return Yi((function(e,i){var r=-1,s=i.length,a=s>1?i[s-1]:n,o=s>2?i[2]:n;for(a=t.length>3&&"function"==typeof a?(s--,a):n,o&&vs(i[0],i[1],o)&&(a=s<3?n:a,s=1),e=wt(e);++r<s;){var l=i[r];l&&t(e,l,r,a)}return e}))}function Ir(t,e){return function(n,i){if(null==n)return n;if(!ja(n))return t(n,i);for(var r=n.length,s=e?r:-1,a=wt(n);(e?s--:++s<r)&&!1!==i(a[s],s,a););return n}}function Nr(t){return function(e,n,i){for(var r=-1,s=wt(e),a=i(e),o=a.length;o--;){var l=a[t?o:++r];if(!1===n(s[l],l,s))break}return e}}function Dr(t){return function(e){var i=rn(e=yo(e))?hn(e):n,r=i?i[0]:e.charAt(0),s=i?yr(i,1).join(""):e.slice(1);return r[t]()+s}}function Lr(t){return function(e){return De($o(Wo(e).replace(Kt,"")),t,"")}}function Ur(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=zn(t.prototype),i=t.apply(n,e);return to(i)?i:n}}function Or(t){return function(e,i,r){var s=wt(e);if(!ja(e)){var a=as(i,3);e=No(e),i=function(t){return a(s[t],t,s)}}var o=t(e,i,r);return o>-1?s[a?e[o]:o]:n}}function Fr(t){return ts((function(e){var r=e.length,s=r,a=Vn.prototype.thru;for(t&&e.reverse();s--;){var o=e[s];if("function"!=typeof o)throw new Ct(i);if(a&&!l&&"wrapper"==rs(o))var l=new Vn([],!0)}for(s=l?s:r;++s<r;){var c=rs(o=e[s]),h="wrapper"==c?is(o):n;l=h&&ys(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?l[rs(h[0])].apply(l,h[3]):1==o.length&&ys(o)?l[c]():l.thru(o)}return function(){var t=arguments,n=t[0];if(l&&1==t.length&&Wa(n))return l.plant(n).value();for(var i=0,s=r?e[i].apply(this,t):n;++i<r;)s=e[i].call(this,s);return s}}))}function Br(t,e,i,r,s,a,l,c,h,u){var d=e&o,p=1&e,f=2&e,m=24&e,g=512&e,v=f?n:Ur(t);return function o(){for(var _=arguments.length,y=xt(_),x=_;x--;)y[x]=arguments[x];if(m)var b=ss(o),M=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(y,b);if(r&&(y=wr(y,r,s,m)),a&&(y=Tr(y,a,l,m)),_-=M,m&&_<u){var S=on(y,b);return qr(t,e,Br,o.placeholder,i,y,S,c,h,u-_)}var E=p?i:this,w=f?E[t]:t;return _=y.length,c?y=function(t,e){for(var i=t.length,r=vn(e.length,i),s=Ar(t);r--;){var a=e[r];t[r]=gs(a,i)?s[a]:n}return t}(y,c):g&&_>1&&y.reverse(),d&&h<_&&(y.length=h),this&&this!==ue&&this instanceof o&&(w=v||Ur(w)),w.apply(E,y)}}function zr(t,e){return function(n,i){return function(t,e,n,i){return _i(t,(function(t,r,s){e(i,n(t),r,s)})),i}(n,t,e(i),{})}}function kr(t,e){return function(i,r){var s;if(i===n&&r===n)return e;if(i!==n&&(s=i),r!==n){if(s===n)return r;"string"==typeof i||"string"==typeof r?(i=or(i),r=or(r)):(i=ar(i),r=ar(r)),s=t(i,r)}return s}}function Vr(t){return ts((function(e){return e=Ie(e,Ze(as())),Yi((function(n){var i=this;return t(e,(function(t){return Se(t,i,n)}))}))}))}function Hr(t,e){var i=(e=e===n?" ":or(e)).length;if(i<2)return i?Xi(e,t):e;var r=Xi(e,pe(t/cn(e)));return rn(e)?yr(hn(r),0,t).join(""):r.slice(0,t)}function Gr(t){return function(e,i,r){return r&&"number"!=typeof r&&vs(e,i,r)&&(i=r=n),e=fo(e),i===n?(i=e,e=0):i=fo(i),function(t,e,n,i){for(var r=-1,s=gn(pe((e-t)/(n||1)),0),a=xt(s);s--;)a[i?s:++r]=t,t+=n;return a}(e,i,r=r===n?e<i?1:-1:fo(r),t)}}function Wr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=vo(e),n=vo(n)),t(e,n)}}function qr(t,e,i,r,s,o,l,c,h,u){var d=8&e;e|=d?a:64,4&(e&=~(d?64:a))||(e&=-4);var p=[t,e,s,d?o:n,d?l:n,d?n:o,d?n:l,c,h,u],f=i.apply(n,p);return ys(t)&&As(f,p),f.placeholder=r,Ps(f,t,e)}function jr(t){var e=Et[t];return function(t,n){if(t=vo(t),(n=null==n?0:vn(mo(n),292))&&We(t)){var i=(yo(t)+"e").split("e");return+((i=(yo(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Xr=wn&&1/ln(new wn([,-0]))[1]==c?function(t){return new wn(t)}:cl;function Yr(t){return function(e){var n=ds(e);return n==b?sn(e):n==T?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zr(t,e,r,c,h,u,d,p){var f=2&e;if(!f&&"function"!=typeof t)throw new Ct(i);var m=c?c.length:0;if(m||(e&=-97,c=h=n),d=d===n?d:gn(mo(d),0),p=p===n?p:mo(p),m-=h?h.length:0,64&e){var g=c,v=h;c=h=n}var _=f?n:is(t),y=[t,e,r,c,h,g,v,u,d,p];if(_&&function(t,e){var n=t[1],i=e[1],r=n|i,a=r<131,c=i==o&&8==n||i==o&&n==l&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!a&&!c)return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var h=e[3];if(h){var u=t[3];t[3]=u?wr(u,h,e[4]):h,t[4]=u?on(t[3],s):e[4]}(h=e[5])&&(u=t[5],t[5]=u?Tr(u,h,e[6]):h,t[6]=u?on(t[5],s):e[6]),(h=e[7])&&(t[7]=h),i&o&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(y,_),t=y[0],e=y[1],r=y[2],c=y[3],h=y[4],!(p=y[9]=y[9]===n?f?0:t.length:gn(y[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?function(t,e,i){var r=Ur(t);return function s(){for(var a=arguments.length,o=xt(a),l=a,c=ss(s);l--;)o[l]=arguments[l];var h=a<3&&o[0]!==c&&o[a-1]!==c?[]:on(o,c);return(a-=h.length)<i?qr(t,e,Br,s.placeholder,n,o,h,n,n,i-a):Se(this&&this!==ue&&this instanceof s?r:t,this,o)}}(t,e,p):e!=a&&33!=e||h.length?Br.apply(n,y):function(t,e,n,i){var r=1&e,s=Ur(t);return function e(){for(var a=-1,o=arguments.length,l=-1,c=i.length,h=xt(c+o),u=this&&this!==ue&&this instanceof e?s:t;++l<c;)h[l]=i[l];for(;o--;)h[l++]=arguments[++a];return Se(u,r?n:this,h)}}(t,e,r,c);else var x=function(t,e,n){var i=1&e,r=Ur(t);return function e(){return(this&&this!==ue&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,r);return Ps((_?$i:As)(x,y),t,e)}function Kr(t,e,i,r){return t===n||ka(t,It[i])&&!Lt.call(r,i)?e:t}function Jr(t,e,i,r,s,a){return to(t)&&to(e)&&(a.set(e,t),ki(t,e,n,Jr,a),a.delete(e)),t}function $r(t){return ro(t)?n:t}function Qr(t,e,i,r,s,a){var o=1&i,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var h=a.get(t),u=a.get(e);if(h&&u)return h==e&&u==t;var d=-1,p=!0,f=2&i?new jn:n;for(a.set(t,e),a.set(e,t);++d<l;){var m=t[d],g=e[d];if(r)var v=o?r(g,m,d,e,t,a):r(m,g,d,t,e,a);if(v!==n){if(v)continue;p=!1;break}if(f){if(!Ue(e,(function(t,e){if(!Je(f,e)&&(m===t||s(m,t,i,r,a)))return f.push(e)}))){p=!1;break}}else if(m!==g&&!s(m,g,i,r,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function ts(t){return Rs(Es(t,n,qs),t+"")}function es(t){return Mi(t,No,hs)}function ns(t){return Mi(t,Do,us)}var is=Cn?function(t){return Cn.get(t)}:cl;function rs(t){for(var e=t.name+"",n=Rn[e],i=Lt.call(Rn,e)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==t)return r.name}return e}function ss(t){return(Lt.call(Bn,"placeholder")?Bn:t).placeholder}function as(){var t=Bn.iteratee||sl;return t=t===sl?Di:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function ls(t){for(var e=No(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Ms(r)]}return e}function cs(t,e){var i=function(t,e){return null==t?n:t[e]}(t,e);return Ni(i)?i:n}var hs=ge?function(t){return null==t?[]:(t=wt(t),Ce(ge(t),(function(e){return Xt.call(t,e)})))}:gl,us=ge?function(t){for(var e=[];t;)Ne(e,hs(t)),t=qt(t);return e}:gl,ds=Si;function ps(t,e,n){for(var i=-1,r=(e=vr(e,t)).length,s=!1;++i<r;){var a=Fs(e[i]);if(!(s=null!=t&&n(t,a)))break;t=t[a]}return s||++i!=r?s:!!(r=null==t?0:t.length)&&Qa(r)&&gs(a,r)&&(Wa(t)||Ga(t))}function fs(t){return"function"!=typeof t.constructor||bs(t)?{}:zn(qt(t))}function ms(t){return Wa(t)||Ga(t)||!!(Zt&&t&&t[Zt])}function gs(t,e){var n=typeof t;return!!(e=null==e?h:e)&&("number"==n||"symbol"!=n&&gt.test(t))&&t>-1&&t%1==0&&t<e}function vs(t,e,n){if(!to(n))return!1;var i=typeof e;return!!("number"==i?ja(n)&&gs(e,n.length):"string"==i&&e in n)&&ka(n[e],t)}function _s(t,e){if(Wa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!lo(t))||$.test(t)||!J.test(t)||null!=e&&t in wt(e)}function ys(t){var e=rs(t),n=Bn[e];if("function"!=typeof n||!(e in Hn.prototype))return!1;if(t===n)return!0;var i=is(n);return!!i&&t===i[0]}(Mn&&ds(new Mn(new ArrayBuffer(1)))!=I||Sn&&ds(new Sn)!=b||En&&ds(En.resolve())!=E||wn&&ds(new wn)!=T||Tn&&ds(new Tn)!=R)&&(ds=function(t){var e=Si(t),i=e==S?t.constructor:n,r=i?Bs(i):"";if(r)switch(r){case Pn:return I;case In:return b;case Nn:return E;case Dn:return T;case Ln:return R}return e});var xs=Nt?Ja:vl;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||It)}function Ms(t){return t==t&&!to(t)}function Ss(t,e){return function(i){return null!=i&&i[t]===e&&(e!==n||t in wt(i))}}function Es(t,e,i){return e=gn(e===n?t.length-1:e,0),function(){for(var n=arguments,r=-1,s=gn(n.length-e,0),a=xt(s);++r<s;)a[r]=n[e+r];r=-1;for(var o=xt(e+1);++r<e;)o[r]=n[r];return o[e]=i(a),Se(t,this,o)}}function ws(t,e){return e.length<2?t:bi(t,er(e,0,-1))}function Ts(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var As=Is($i),Cs=de||function(t,e){return ue.setTimeout(t,e)},Rs=Is(Qi);function Ps(t,e,n){var i=e+"";return Rs(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(rt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return we(p,(function(n){var i="_."+n[0];e&n[1]&&!Re(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(i),n)))}function Is(t){var e=0,i=0;return function(){var r=_n(),s=16-(r-i);if(i=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function Ns(t,e){var i=-1,r=t.length,s=r-1;for(e=e===n?r:e;++i<e;){var a=ji(i,s),o=t[a];t[a]=t[i],t[i]=o}return t.length=e,t}var Ds,Ls,Us,Os=(Ds=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,n,i,r){e.push(i?r.replace(ct,"$1"):n||t)})),e},Ls=La(Ds,(function(t){return 500===Us.size&&Us.clear(),t})),Us=Ls.cache,Ls);function Fs(t){if("string"==typeof t||lo(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bs(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zs(t){if(t instanceof Hn)return t.clone();var e=new Vn(t.__wrapped__,t.__chain__);return e.__actions__=Ar(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ks=Yi((function(t,e){return Xa(t)?ci(t,mi(e,1,Xa,!0)):[]})),Vs=Yi((function(t,e){var i=Ks(e);return Xa(i)&&(i=n),Xa(t)?ci(t,mi(e,1,Xa,!0),as(i,2)):[]})),Hs=Yi((function(t,e){var i=Ks(e);return Xa(i)&&(i=n),Xa(t)?ci(t,mi(e,1,Xa,!0),n,i):[]}));function Gs(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:mo(n);return r<0&&(r=gn(i+r,0)),Be(t,as(e,3),r)}function Ws(t,e,i){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return i!==n&&(s=mo(i),s=i<0?gn(r+s,0):vn(s,r-1)),Be(t,as(e,3),s,!0)}function qs(t){return null!=t&&t.length?mi(t,1):[]}function js(t){return t&&t.length?t[0]:n}var Xs=Yi((function(t){var e=Ie(t,mr);return e.length&&e[0]===t[0]?Ai(e):[]})),Ys=Yi((function(t){var e=Ks(t),i=Ie(t,mr);return e===Ks(i)?e=n:i.pop(),i.length&&i[0]===t[0]?Ai(i,as(e,2)):[]})),Zs=Yi((function(t){var e=Ks(t),i=Ie(t,mr);return(e="function"==typeof e?e:n)&&i.pop(),i.length&&i[0]===t[0]?Ai(i,n,e):[]}));function Ks(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Js=Yi($s);function $s(t,e){return t&&t.length&&e&&e.length?Wi(t,e):t}var Qs=ts((function(t,e){var n=null==t?0:t.length,i=ri(t,e);return qi(t,Ie(e,(function(t){return gs(t,n)?+t:t})).sort(Er)),i}));function ta(t){return null==t?t:bn.call(t)}var ea=Yi((function(t){return lr(mi(t,1,Xa,!0))})),na=Yi((function(t){var e=Ks(t);return Xa(e)&&(e=n),lr(mi(t,1,Xa,!0),as(e,2))})),ia=Yi((function(t){var e=Ks(t);return e="function"==typeof e?e:n,lr(mi(t,1,Xa,!0),n,e)}));function ra(t){if(!t||!t.length)return[];var e=0;return t=Ce(t,(function(t){if(Xa(t))return e=gn(t.length,e),!0})),Xe(e,(function(e){return Ie(t,Ge(e))}))}function sa(t,e){if(!t||!t.length)return[];var i=ra(t);return null==e?i:Ie(i,(function(t){return Se(e,n,t)}))}var aa=Yi((function(t,e){return Xa(t)?ci(t,e):[]})),oa=Yi((function(t){return pr(Ce(t,Xa))})),la=Yi((function(t){var e=Ks(t);return Xa(e)&&(e=n),pr(Ce(t,Xa),as(e,2))})),ca=Yi((function(t){var e=Ks(t);return e="function"==typeof e?e:n,pr(Ce(t,Xa),n,e)})),ha=Yi(ra),ua=Yi((function(t){var e=t.length,i=e>1?t[e-1]:n;return i="function"==typeof i?(t.pop(),i):n,sa(t,i)}));function da(t){var e=Bn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var fa=ts((function(t){var e=t.length,i=e?t[0]:0,r=this.__wrapped__,s=function(e){return ri(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Hn&&gs(i)?((r=r.slice(i,+i+(e?1:0))).__actions__.push({func:pa,args:[s],thisArg:n}),new Vn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(n),t}))):this.thru(s)})),ma=Rr((function(t,e,n){Lt.call(t,n)?++t[n]:ii(t,n,1)})),ga=Or(Gs),va=Or(Ws);function _a(t,e){return(Wa(t)?we:hi)(t,as(e,3))}function ya(t,e){return(Wa(t)?Te:ui)(t,as(e,3))}var xa=Rr((function(t,e,n){Lt.call(t,n)?t[n].push(e):ii(t,n,[e])})),ba=Yi((function(t,e,n){var i=-1,r="function"==typeof e,s=ja(t)?xt(t.length):[];return hi(t,(function(t){s[++i]=r?Se(e,t,n):Ci(t,e,n)})),s})),Ma=Rr((function(t,e,n){ii(t,n,e)}));function Sa(t,e){return(Wa(t)?Ie:Fi)(t,as(e,3))}var Ea=Rr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),wa=Yi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vs(t,e[0],e[1])?e=[]:n>2&&vs(e[0],e[1],e[2])&&(e=[e[0]]),Hi(t,mi(e,1),[])})),Ta=he||function(){return ue.Date.now()};function Aa(t,e,i){return e=i?n:e,e=t&&null==e?t.length:e,Zr(t,o,n,n,n,n,e)}function Ca(t,e){var r;if("function"!=typeof e)throw new Ct(i);return t=mo(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var Ra=Yi((function(t,e,n){var i=1;if(n.length){var r=on(n,ss(Ra));i|=a}return Zr(t,i,e,n,r)})),Pa=Yi((function(t,e,n){var i=3;if(n.length){var r=on(n,ss(Pa));i|=a}return Zr(e,i,t,n,r)}));function Ia(t,e,r){var s,a,o,l,c,h,u=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new Ct(i);function m(e){var i=s,r=a;return s=a=n,u=e,l=t.apply(r,i)}function g(t){var i=t-h;return h===n||i>=e||i<0||p&&t-u>=o}function v(){var t=Ta();if(g(t))return _(t);c=Cs(v,function(t){var n=e-(t-h);return p?vn(n,o-(t-u)):n}(t))}function _(t){return c=n,f&&s?m(t):(s=a=n,l)}function y(){var t=Ta(),i=g(t);if(s=arguments,a=this,h=t,i){if(c===n)return function(t){return u=t,c=Cs(v,e),d?m(t):l}(h);if(p)return xr(c),c=Cs(v,e),m(h)}return c===n&&(c=Cs(v,e)),l}return e=vo(e)||0,to(r)&&(d=!!r.leading,o=(p="maxWait"in r)?gn(vo(r.maxWait)||0,e):o,f="trailing"in r?!!r.trailing:f),y.cancel=function(){c!==n&&xr(c),u=0,s=h=a=c=n},y.flush=function(){return c===n?l:_(Ta())},y}var Na=Yi((function(t,e){return li(t,1,e)})),Da=Yi((function(t,e,n){return li(t,vo(e)||0,n)}));function La(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(i);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var a=t.apply(this,i);return n.cache=s.set(r,a)||s,a};return n.cache=new(La.Cache||qn),n}function Ua(t){if("function"!=typeof t)throw new Ct(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}La.Cache=qn;var Oa=_r((function(t,e){var n=(e=1==e.length&&Wa(e[0])?Ie(e[0],Ze(as())):Ie(mi(e,1),Ze(as()))).length;return Yi((function(i){for(var r=-1,s=vn(i.length,n);++r<s;)i[r]=e[r].call(this,i[r]);return Se(t,this,i)}))})),Fa=Yi((function(t,e){var i=on(e,ss(Fa));return Zr(t,a,n,e,i)})),Ba=Yi((function(t,e){var i=on(e,ss(Ba));return Zr(t,64,n,e,i)})),za=ts((function(t,e){return Zr(t,l,n,n,n,e)}));function ka(t,e){return t===e||t!=t&&e!=e}var Va=Wr(Ei),Ha=Wr((function(t,e){return t>=e})),Ga=Ri(function(){return arguments}())?Ri:function(t){return eo(t)&&Lt.call(t,"callee")&&!Xt.call(t,"callee")},Wa=xt.isArray,qa=ve?Ze(ve):function(t){return eo(t)&&Si(t)==P};function ja(t){return null!=t&&Qa(t.length)&&!Ja(t)}function Xa(t){return eo(t)&&ja(t)}var Ya=Oe||vl,Za=_e?Ze(_e):function(t){return eo(t)&&Si(t)==v};function Ka(t){if(!eo(t))return!1;var e=Si(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ro(t)}function Ja(t){if(!to(t))return!1;var e=Si(t);return e==y||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $a(t){return"number"==typeof t&&t==mo(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function to(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function eo(t){return null!=t&&"object"==typeof t}var no=ye?Ze(ye):function(t){return eo(t)&&ds(t)==b};function io(t){return"number"==typeof t||eo(t)&&Si(t)==M}function ro(t){if(!eo(t)||Si(t)!=S)return!1;var e=qt(t);if(null===e)return!0;var n=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Dt.call(n)==Bt}var so=xe?Ze(xe):function(t){return eo(t)&&Si(t)==w},ao=be?Ze(be):function(t){return eo(t)&&ds(t)==T};function oo(t){return"string"==typeof t||!Wa(t)&&eo(t)&&Si(t)==A}function lo(t){return"symbol"==typeof t||eo(t)&&Si(t)==C}var co=Me?Ze(Me):function(t){return eo(t)&&Qa(t.length)&&!!re[Si(t)]},ho=Wr(Oi),uo=Wr((function(t,e){return t<=e}));function po(t){if(!t)return[];if(ja(t))return oo(t)?hn(t):Ar(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=ds(t);return(e==b?sn:e==T?ln:Vo)(t)}function fo(t){return t?(t=vo(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function mo(t){var e=fo(t),n=e%1;return e==e?n?e-n:e:0}function go(t){return t?si(mo(t),0,d):0}function vo(t){if("number"==typeof t)return t;if(lo(t))return u;if(to(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=to(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||mt.test(t)?le(t.slice(2),n?2:8):dt.test(t)?u:+t}function _o(t){return Cr(t,Do(t))}function yo(t){return null==t?"":or(t)}var xo=Pr((function(t,e){if(bs(e)||ja(e))Cr(e,No(e),t);else for(var n in e)Lt.call(e,n)&&Qn(t,n,e[n])})),bo=Pr((function(t,e){Cr(e,Do(e),t)})),Mo=Pr((function(t,e,n,i){Cr(e,Do(e),t,i)})),So=Pr((function(t,e,n,i){Cr(e,No(e),t,i)})),Eo=ts(ri),wo=Yi((function(t,e){t=wt(t);var i=-1,r=e.length,s=r>2?e[2]:n;for(s&&vs(e[0],e[1],s)&&(r=1);++i<r;)for(var a=e[i],o=Do(a),l=-1,c=o.length;++l<c;){var h=o[l],u=t[h];(u===n||ka(u,It[h])&&!Lt.call(t,h))&&(t[h]=a[h])}return t})),To=Yi((function(t){return t.push(n,Jr),Se(Uo,n,t)}));function Ao(t,e,i){var r=null==t?n:bi(t,e);return r===n?i:r}function Co(t,e){return null!=t&&ps(t,e,Ti)}var Ro=zr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n}),el(rl)),Po=zr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Lt.call(t,e)?t[e].push(n):t[e]=[n]}),as),Io=Yi(Ci);function No(t){return ja(t)?Yn(t):Li(t)}function Do(t){return ja(t)?Yn(t,!0):Ui(t)}var Lo=Pr((function(t,e,n){ki(t,e,n)})),Uo=Pr((function(t,e,n,i){ki(t,e,n,i)})),Oo=ts((function(t,e){var n={};if(null==t)return n;var i=!1;e=Ie(e,(function(e){return e=vr(e,t),i||(i=e.length>1),e})),Cr(t,ns(t),n),i&&(n=ai(n,7,$r));for(var r=e.length;r--;)cr(n,e[r]);return n})),Fo=ts((function(t,e){return null==t?{}:function(t,e){return Gi(t,e,(function(e,n){return Co(t,n)}))}(t,e)}));function Bo(t,e){if(null==t)return{};var n=Ie(ns(t),(function(t){return[t]}));return e=as(e),Gi(t,n,(function(t,n){return e(t,n[0])}))}var zo=Yr(No),ko=Yr(Do);function Vo(t){return null==t?[]:Ke(t,No(t))}var Ho=Lr((function(t,e,n){return e=e.toLowerCase(),t+(n?Go(e):e)}));function Go(t){return Jo(yo(t).toLowerCase())}function Wo(t){return(t=yo(t))&&t.replace(vt,tn).replace(Jt,"")}var qo=Lr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),jo=Lr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Xo=Dr("toLowerCase"),Yo=Lr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Zo=Lr((function(t,e,n){return t+(n?" ":"")+Jo(e)})),Ko=Lr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Jo=Dr("toUpperCase");function $o(t,e,i){return t=yo(t),(e=i?n:e)===n?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ot)||[]}(t):t.match(e)||[]}var Qo=Yi((function(t,e){try{return Se(t,n,e)}catch(t){return Ka(t)?t:new Mt(t)}})),tl=ts((function(t,e){return we(e,(function(e){e=Fs(e),ii(t,e,Ra(t[e],t))})),t}));function el(t){return function(){return t}}var nl=Fr(),il=Fr(!0);function rl(t){return t}function sl(t){return Di("function"==typeof t?t:ai(t,1))}var al=Yi((function(t,e){return function(n){return Ci(n,t,e)}})),ol=Yi((function(t,e){return function(n){return Ci(t,n,e)}}));function ll(t,e,n){var i=No(e),r=xi(e,i);null!=n||to(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=xi(e,No(e)));var s=!(to(n)&&"chain"in n&&!n.chain),a=Ja(t);return we(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Ar(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Ne([this.value()],arguments))})})),t}function cl(){}var hl=Vr(Ie),ul=Vr(Ae),dl=Vr(Ue);function pl(t){return _s(t)?Ge(Fs(t)):function(t){return function(e){return bi(e,t)}}(t)}var fl=Gr(),ml=Gr(!0);function gl(){return[]}function vl(){return!1}var _l,yl=kr((function(t,e){return t+e}),0),xl=jr("ceil"),bl=kr((function(t,e){return t/e}),1),Ml=jr("floor"),Sl=kr((function(t,e){return t*e}),1),El=jr("round"),wl=kr((function(t,e){return t-e}),0);return Bn.after=function(t,e){if("function"!=typeof e)throw new Ct(i);return t=mo(t),function(){if(--t<1)return e.apply(this,arguments)}},Bn.ary=Aa,Bn.assign=xo,Bn.assignIn=bo,Bn.assignInWith=Mo,Bn.assignWith=So,Bn.at=Eo,Bn.before=Ca,Bn.bind=Ra,Bn.bindAll=tl,Bn.bindKey=Pa,Bn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]},Bn.chain=da,Bn.chunk=function(t,e,i){e=(i?vs(t,e,i):e===n)?1:gn(mo(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var s=0,a=0,o=xt(pe(r/e));s<r;)o[a++]=er(t,s,s+=e);return o},Bn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var s=t[e];s&&(r[i++]=s)}return r},Bn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=xt(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ne(Wa(n)?Ar(n):[n],mi(e,1))},Bn.cond=function(t){var e=null==t?0:t.length,n=as();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new Ct(i);return[n(t[0]),t[1]]})):[],Yi((function(n){for(var i=-1;++i<e;){var r=t[i];if(Se(r[0],this,n))return Se(r[1],this,n)}}))},Bn.conforms=function(t){return function(t){var e=No(t);return function(n){return oi(n,t,e)}}(ai(t,1))},Bn.constant=el,Bn.countBy=ma,Bn.create=function(t,e){var n=zn(t);return null==e?n:ni(n,e)},Bn.curry=function t(e,i,r){var s=Zr(e,8,n,n,n,n,n,i=r?n:i);return s.placeholder=t.placeholder,s},Bn.curryRight=function t(e,i,r){var s=Zr(e,16,n,n,n,n,n,i=r?n:i);return s.placeholder=t.placeholder,s},Bn.debounce=Ia,Bn.defaults=wo,Bn.defaultsDeep=To,Bn.defer=Na,Bn.delay=Da,Bn.difference=ks,Bn.differenceBy=Vs,Bn.differenceWith=Hs,Bn.drop=function(t,e,i){var r=null==t?0:t.length;return r?er(t,(e=i||e===n?1:mo(e))<0?0:e,r):[]},Bn.dropRight=function(t,e,i){var r=null==t?0:t.length;return r?er(t,0,(e=r-(e=i||e===n?1:mo(e)))<0?0:e):[]},Bn.dropRightWhile=function(t,e){return t&&t.length?ur(t,as(e,3),!0,!0):[]},Bn.dropWhile=function(t,e){return t&&t.length?ur(t,as(e,3),!0):[]},Bn.fill=function(t,e,i,r){var s=null==t?0:t.length;return s?(i&&"number"!=typeof i&&vs(t,e,i)&&(i=0,r=s),function(t,e,i,r){var s=t.length;for((i=mo(i))<0&&(i=-i>s?0:s+i),(r=r===n||r>s?s:mo(r))<0&&(r+=s),r=i>r?0:go(r);i<r;)t[i++]=e;return t}(t,e,i,r)):[]},Bn.filter=function(t,e){return(Wa(t)?Ce:fi)(t,as(e,3))},Bn.flatMap=function(t,e){return mi(Sa(t,e),1)},Bn.flatMapDeep=function(t,e){return mi(Sa(t,e),c)},Bn.flatMapDepth=function(t,e,i){return i=i===n?1:mo(i),mi(Sa(t,e),i)},Bn.flatten=qs,Bn.flattenDeep=function(t){return null!=t&&t.length?mi(t,c):[]},Bn.flattenDepth=function(t,e){return null!=t&&t.length?mi(t,e=e===n?1:mo(e)):[]},Bn.flip=function(t){return Zr(t,512)},Bn.flow=nl,Bn.flowRight=il,Bn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},Bn.functions=function(t){return null==t?[]:xi(t,No(t))},Bn.functionsIn=function(t){return null==t?[]:xi(t,Do(t))},Bn.groupBy=xa,Bn.initial=function(t){return null!=t&&t.length?er(t,0,-1):[]},Bn.intersection=Xs,Bn.intersectionBy=Ys,Bn.intersectionWith=Zs,Bn.invert=Ro,Bn.invertBy=Po,Bn.invokeMap=ba,Bn.iteratee=sl,Bn.keyBy=Ma,Bn.keys=No,Bn.keysIn=Do,Bn.map=Sa,Bn.mapKeys=function(t,e){var n={};return e=as(e,3),_i(t,(function(t,i,r){ii(n,e(t,i,r),t)})),n},Bn.mapValues=function(t,e){var n={};return e=as(e,3),_i(t,(function(t,i,r){ii(n,i,e(t,i,r))})),n},Bn.matches=function(t){return Bi(ai(t,1))},Bn.matchesProperty=function(t,e){return zi(t,ai(e,1))},Bn.memoize=La,Bn.merge=Lo,Bn.mergeWith=Uo,Bn.method=al,Bn.methodOf=ol,Bn.mixin=ll,Bn.negate=Ua,Bn.nthArg=function(t){return t=mo(t),Yi((function(e){return Vi(e,t)}))},Bn.omit=Oo,Bn.omitBy=function(t,e){return Bo(t,Ua(as(e)))},Bn.once=function(t){return Ca(2,t)},Bn.orderBy=function(t,e,i,r){return null==t?[]:(Wa(e)||(e=null==e?[]:[e]),Wa(i=r?n:i)||(i=null==i?[]:[i]),Hi(t,e,i))},Bn.over=hl,Bn.overArgs=Oa,Bn.overEvery=ul,Bn.overSome=dl,Bn.partial=Fa,Bn.partialRight=Ba,Bn.partition=Ea,Bn.pick=Fo,Bn.pickBy=Bo,Bn.property=pl,Bn.propertyOf=function(t){return function(e){return null==t?n:bi(t,e)}},Bn.pull=Js,Bn.pullAll=$s,Bn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,as(n,2)):t},Bn.pullAllWith=function(t,e,i){return t&&t.length&&e&&e.length?Wi(t,e,n,i):t},Bn.pullAt=Qs,Bn.range=fl,Bn.rangeRight=ml,Bn.rearg=za,Bn.reject=function(t,e){return(Wa(t)?Ce:fi)(t,Ua(as(e,3)))},Bn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],s=t.length;for(e=as(e,3);++i<s;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return qi(t,r),n},Bn.rest=function(t,e){if("function"!=typeof t)throw new Ct(i);return Yi(t,e=e===n?e:mo(e))},Bn.reverse=ta,Bn.sampleSize=function(t,e,i){return e=(i?vs(t,e,i):e===n)?1:mo(e),(Wa(t)?Kn:Ki)(t,e)},Bn.set=function(t,e,n){return null==t?t:Ji(t,e,n)},Bn.setWith=function(t,e,i,r){return r="function"==typeof r?r:n,null==t?t:Ji(t,e,i,r)},Bn.shuffle=function(t){return(Wa(t)?Jn:tr)(t)},Bn.slice=function(t,e,i){var r=null==t?0:t.length;return r?(i&&"number"!=typeof i&&vs(t,e,i)?(e=0,i=r):(e=null==e?0:mo(e),i=i===n?r:mo(i)),er(t,e,i)):[]},Bn.sortBy=wa,Bn.sortedUniq=function(t){return t&&t.length?sr(t):[]},Bn.sortedUniqBy=function(t,e){return t&&t.length?sr(t,as(e,2)):[]},Bn.split=function(t,e,i){return i&&"number"!=typeof i&&vs(t,e,i)&&(e=i=n),(i=i===n?d:i>>>0)?(t=yo(t))&&("string"==typeof e||null!=e&&!so(e))&&!(e=or(e))&&rn(t)?yr(hn(t),0,i):t.split(e,i):[]},Bn.spread=function(t,e){if("function"!=typeof t)throw new Ct(i);return e=null==e?0:gn(mo(e),0),Yi((function(n){var i=n[e],r=yr(n,0,e);return i&&Ne(r,i),Se(t,this,r)}))},Bn.tail=function(t){var e=null==t?0:t.length;return e?er(t,1,e):[]},Bn.take=function(t,e,i){return t&&t.length?er(t,0,(e=i||e===n?1:mo(e))<0?0:e):[]},Bn.takeRight=function(t,e,i){var r=null==t?0:t.length;return r?er(t,(e=r-(e=i||e===n?1:mo(e)))<0?0:e,r):[]},Bn.takeRightWhile=function(t,e){return t&&t.length?ur(t,as(e,3),!1,!0):[]},Bn.takeWhile=function(t,e){return t&&t.length?ur(t,as(e,3)):[]},Bn.tap=function(t,e){return e(t),t},Bn.throttle=function(t,e,n){var r=!0,s=!0;if("function"!=typeof t)throw new Ct(i);return to(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Ia(t,e,{leading:r,maxWait:e,trailing:s})},Bn.thru=pa,Bn.toArray=po,Bn.toPairs=zo,Bn.toPairsIn=ko,Bn.toPath=function(t){return Wa(t)?Ie(t,Fs):lo(t)?[t]:Ar(Os(yo(t)))},Bn.toPlainObject=_o,Bn.transform=function(t,e,n){var i=Wa(t),r=i||Ya(t)||co(t);if(e=as(e,4),null==n){var s=t&&t.constructor;n=r?i?new s:[]:to(t)&&Ja(s)?zn(qt(t)):{}}return(r?we:_i)(t,(function(t,i,r){return e(n,t,i,r)})),n},Bn.unary=function(t){return Aa(t,1)},Bn.union=ea,Bn.unionBy=na,Bn.unionWith=ia,Bn.uniq=function(t){return t&&t.length?lr(t):[]},Bn.uniqBy=function(t,e){return t&&t.length?lr(t,as(e,2)):[]},Bn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?lr(t,n,e):[]},Bn.unset=function(t,e){return null==t||cr(t,e)},Bn.unzip=ra,Bn.unzipWith=sa,Bn.update=function(t,e,n){return null==t?t:hr(t,e,gr(n))},Bn.updateWith=function(t,e,i,r){return r="function"==typeof r?r:n,null==t?t:hr(t,e,gr(i),r)},Bn.values=Vo,Bn.valuesIn=function(t){return null==t?[]:Ke(t,Do(t))},Bn.without=aa,Bn.words=$o,Bn.wrap=function(t,e){return Fa(gr(e),t)},Bn.xor=oa,Bn.xorBy=la,Bn.xorWith=ca,Bn.zip=ha,Bn.zipObject=function(t,e){return fr(t||[],e||[],Qn)},Bn.zipObjectDeep=function(t,e){return fr(t||[],e||[],Ji)},Bn.zipWith=ua,Bn.entries=zo,Bn.entriesIn=ko,Bn.extend=bo,Bn.extendWith=Mo,ll(Bn,Bn),Bn.add=yl,Bn.attempt=Qo,Bn.camelCase=Ho,Bn.capitalize=Go,Bn.ceil=xl,Bn.clamp=function(t,e,i){return i===n&&(i=e,e=n),i!==n&&(i=(i=vo(i))==i?i:0),e!==n&&(e=(e=vo(e))==e?e:0),si(vo(t),e,i)},Bn.clone=function(t){return ai(t,4)},Bn.cloneDeep=function(t){return ai(t,5)},Bn.cloneDeepWith=function(t,e){return ai(t,5,e="function"==typeof e?e:n)},Bn.cloneWith=function(t,e){return ai(t,4,e="function"==typeof e?e:n)},Bn.conformsTo=function(t,e){return null==e||oi(t,e,No(e))},Bn.deburr=Wo,Bn.defaultTo=function(t,e){return null==t||t!=t?e:t},Bn.divide=bl,Bn.endsWith=function(t,e,i){t=yo(t),e=or(e);var r=t.length,s=i=i===n?r:si(mo(i),0,r);return(i-=e.length)>=0&&t.slice(i,s)==e},Bn.eq=ka,Bn.escape=function(t){return(t=yo(t))&&X.test(t)?t.replace(q,en):t},Bn.escapeRegExp=function(t){return(t=yo(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Bn.every=function(t,e,i){var r=Wa(t)?Ae:di;return i&&vs(t,e,i)&&(e=n),r(t,as(e,3))},Bn.find=ga,Bn.findIndex=Gs,Bn.findKey=function(t,e){return Fe(t,as(e,3),_i)},Bn.findLast=va,Bn.findLastIndex=Ws,Bn.findLastKey=function(t,e){return Fe(t,as(e,3),yi)},Bn.floor=Ml,Bn.forEach=_a,Bn.forEachRight=ya,Bn.forIn=function(t,e){return null==t?t:gi(t,as(e,3),Do)},Bn.forInRight=function(t,e){return null==t?t:vi(t,as(e,3),Do)},Bn.forOwn=function(t,e){return t&&_i(t,as(e,3))},Bn.forOwnRight=function(t,e){return t&&yi(t,as(e,3))},Bn.get=Ao,Bn.gt=Va,Bn.gte=Ha,Bn.has=function(t,e){return null!=t&&ps(t,e,wi)},Bn.hasIn=Co,Bn.head=js,Bn.identity=rl,Bn.includes=function(t,e,n,i){t=ja(t)?t:Vo(t),n=n&&!i?mo(n):0;var r=t.length;return n<0&&(n=gn(r+n,0)),oo(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&ze(t,e,n)>-1},Bn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:mo(n);return r<0&&(r=gn(i+r,0)),ze(t,e,r)},Bn.inRange=function(t,e,i){return e=fo(e),i===n?(i=e,e=0):i=fo(i),function(t,e,n){return t>=vn(e,n)&&t<gn(e,n)}(t=vo(t),e,i)},Bn.invoke=Io,Bn.isArguments=Ga,Bn.isArray=Wa,Bn.isArrayBuffer=qa,Bn.isArrayLike=ja,Bn.isArrayLikeObject=Xa,Bn.isBoolean=function(t){return!0===t||!1===t||eo(t)&&Si(t)==g},Bn.isBuffer=Ya,Bn.isDate=Za,Bn.isElement=function(t){return eo(t)&&1===t.nodeType&&!ro(t)},Bn.isEmpty=function(t){if(null==t)return!0;if(ja(t)&&(Wa(t)||"string"==typeof t||"function"==typeof t.splice||Ya(t)||co(t)||Ga(t)))return!t.length;var e=ds(t);if(e==b||e==T)return!t.size;if(bs(t))return!Li(t).length;for(var n in t)if(Lt.call(t,n))return!1;return!0},Bn.isEqual=function(t,e){return Pi(t,e)},Bn.isEqualWith=function(t,e,i){var r=(i="function"==typeof i?i:n)?i(t,e):n;return r===n?Pi(t,e,n,i):!!r},Bn.isError=Ka,Bn.isFinite=function(t){return"number"==typeof t&&We(t)},Bn.isFunction=Ja,Bn.isInteger=$a,Bn.isLength=Qa,Bn.isMap=no,Bn.isMatch=function(t,e){return t===e||Ii(t,e,ls(e))},Bn.isMatchWith=function(t,e,i){return i="function"==typeof i?i:n,Ii(t,e,ls(e),i)},Bn.isNaN=function(t){return io(t)&&t!=+t},Bn.isNative=function(t){if(xs(t))throw new Mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(t)},Bn.isNil=function(t){return null==t},Bn.isNull=function(t){return null===t},Bn.isNumber=io,Bn.isObject=to,Bn.isObjectLike=eo,Bn.isPlainObject=ro,Bn.isRegExp=so,Bn.isSafeInteger=function(t){return $a(t)&&t>=-9007199254740991&&t<=h},Bn.isSet=ao,Bn.isString=oo,Bn.isSymbol=lo,Bn.isTypedArray=co,Bn.isUndefined=function(t){return t===n},Bn.isWeakMap=function(t){return eo(t)&&ds(t)==R},Bn.isWeakSet=function(t){return eo(t)&&"[object WeakSet]"==Si(t)},Bn.join=function(t,e){return null==t?"":fn.call(t,e)},Bn.kebabCase=qo,Bn.last=Ks,Bn.lastIndexOf=function(t,e,i){var r=null==t?0:t.length;if(!r)return-1;var s=r;return i!==n&&(s=(s=mo(i))<0?gn(r+s,0):vn(s,r-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,s):Be(t,Ve,s,!0)},Bn.lowerCase=jo,Bn.lowerFirst=Xo,Bn.lt=ho,Bn.lte=uo,Bn.max=function(t){return t&&t.length?pi(t,rl,Ei):n},Bn.maxBy=function(t,e){return t&&t.length?pi(t,as(e,2),Ei):n},Bn.mean=function(t){return He(t,rl)},Bn.meanBy=function(t,e){return He(t,as(e,2))},Bn.min=function(t){return t&&t.length?pi(t,rl,Oi):n},Bn.minBy=function(t,e){return t&&t.length?pi(t,as(e,2),Oi):n},Bn.stubArray=gl,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Sl,Bn.nth=function(t,e){return t&&t.length?Vi(t,mo(e)):n},Bn.noConflict=function(){return ue._===this&&(ue._=zt),this},Bn.noop=cl,Bn.now=Ta,Bn.pad=function(t,e,n){t=yo(t);var i=(e=mo(e))?cn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Hr(me(r),n)+t+Hr(pe(r),n)},Bn.padEnd=function(t,e,n){t=yo(t);var i=(e=mo(e))?cn(t):0;return e&&i<e?t+Hr(e-i,n):t},Bn.padStart=function(t,e,n){t=yo(t);var i=(e=mo(e))?cn(t):0;return e&&i<e?Hr(e-i,n)+t:t},Bn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),yn(yo(t).replace(nt,""),e||0)},Bn.random=function(t,e,i){if(i&&"boolean"!=typeof i&&vs(t,e,i)&&(e=i=n),i===n&&("boolean"==typeof e?(i=e,e=n):"boolean"==typeof t&&(i=t,t=n)),t===n&&e===n?(t=0,e=1):(t=fo(t),e===n?(e=t,t=0):e=fo(e)),t>e){var r=t;t=e,e=r}if(i||t%1||e%1){var s=xn();return vn(t+s*(e-t+oe("1e-"+((s+"").length-1))),e)}return ji(t,e)},Bn.reduce=function(t,e,n){var i=Wa(t)?De:qe,r=arguments.length<3;return i(t,as(e,4),n,r,hi)},Bn.reduceRight=function(t,e,n){var i=Wa(t)?Le:qe,r=arguments.length<3;return i(t,as(e,4),n,r,ui)},Bn.repeat=function(t,e,i){return e=(i?vs(t,e,i):e===n)?1:mo(e),Xi(yo(t),e)},Bn.replace=function(){var t=arguments,e=yo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Bn.result=function(t,e,i){var r=-1,s=(e=vr(e,t)).length;for(s||(s=1,t=n);++r<s;){var a=null==t?n:t[Fs(e[r])];a===n&&(r=s,a=i),t=Ja(a)?a.call(t):a}return t},Bn.round=El,Bn.runInContext=t,Bn.sample=function(t){return(Wa(t)?Zn:Zi)(t)},Bn.size=function(t){if(null==t)return 0;if(ja(t))return oo(t)?cn(t):t.length;var e=ds(t);return e==b||e==T?t.size:Li(t).length},Bn.snakeCase=Yo,Bn.some=function(t,e,i){var r=Wa(t)?Ue:nr;return i&&vs(t,e,i)&&(e=n),r(t,as(e,3))},Bn.sortedIndex=function(t,e){return ir(t,e)},Bn.sortedIndexBy=function(t,e,n){return rr(t,e,as(n,2))},Bn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=ir(t,e);if(i<n&&ka(t[i],e))return i}return-1},Bn.sortedLastIndex=function(t,e){return ir(t,e,!0)},Bn.sortedLastIndexBy=function(t,e,n){return rr(t,e,as(n,2),!0)},Bn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ir(t,e,!0)-1;if(ka(t[n],e))return n}return-1},Bn.startCase=Zo,Bn.startsWith=function(t,e,n){return t=yo(t),n=null==n?0:si(mo(n),0,t.length),e=or(e),t.slice(n,n+e.length)==e},Bn.subtract=wl,Bn.sum=function(t){return t&&t.length?je(t,rl):0},Bn.sumBy=function(t,e){return t&&t.length?je(t,as(e,2)):0},Bn.template=function(t,e,i){var r=Bn.templateSettings;i&&vs(t,e,i)&&(e=n),t=yo(t),e=Mo({},e,r,Kr);var s,a,o=Mo({},e.imports,r.imports,Kr),l=No(o),c=Ke(o,l),h=0,u=e.interpolate||_t,d="__p += '",p=Tt((e.escape||_t).source+"|"+u.source+"|"+(u===K?ht:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),f="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(p,(function(e,n,i,r,o,l){return i||(i=r),d+=t.slice(h,l).replace(yt,nn),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),o&&(a=!0,d+="';\n"+o+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),h=l+e.length,e})),d+="';\n";var m=Lt.call(e,"variable")&&e.variable;if(m){if(lt.test(m))throw new Mt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(H,"$1").replace(G,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Qo((function(){return St(l,f+"return "+d).apply(n,c)}));if(g.source=d,Ka(g))throw g;return g},Bn.times=function(t,e){if((t=mo(t))<1||t>h)return[];var n=d,i=vn(t,d);e=as(e),t-=d;for(var r=Xe(i,e);++n<t;)e(n);return r},Bn.toFinite=fo,Bn.toInteger=mo,Bn.toLength=go,Bn.toLower=function(t){return yo(t).toLowerCase()},Bn.toNumber=vo,Bn.toSafeInteger=function(t){return t?si(mo(t),-9007199254740991,h):0===t?t:0},Bn.toString=yo,Bn.toUpper=function(t){return yo(t).toUpperCase()},Bn.trim=function(t,e,i){if((t=yo(t))&&(i||e===n))return Ye(t);if(!t||!(e=or(e)))return t;var r=hn(t),s=hn(e);return yr(r,$e(r,s),Qe(r,s)+1).join("")},Bn.trimEnd=function(t,e,i){if((t=yo(t))&&(i||e===n))return t.slice(0,un(t)+1);if(!t||!(e=or(e)))return t;var r=hn(t);return yr(r,0,Qe(r,hn(e))+1).join("")},Bn.trimStart=function(t,e,i){if((t=yo(t))&&(i||e===n))return t.replace(nt,"");if(!t||!(e=or(e)))return t;var r=hn(t);return yr(r,$e(r,hn(e))).join("")},Bn.truncate=function(t,e){var i=30,r="...";if(to(e)){var s="separator"in e?e.separator:s;i="length"in e?mo(e.length):i,r="omission"in e?or(e.omission):r}var a=(t=yo(t)).length;if(rn(t)){var o=hn(t);a=o.length}if(i>=a)return t;var l=i-cn(r);if(l<1)return r;var c=o?yr(o,0,l).join(""):t.slice(0,l);if(s===n)return c+r;if(o&&(l+=c.length-l),so(s)){if(t.slice(l).search(s)){var h,u=c;for(s.global||(s=Tt(s.source,yo(ut.exec(s))+"g")),s.lastIndex=0;h=s.exec(u);)var d=h.index;c=c.slice(0,d===n?l:d)}}else if(t.indexOf(or(s),l)!=l){var p=c.lastIndexOf(s);p>-1&&(c=c.slice(0,p))}return c+r},Bn.unescape=function(t){return(t=yo(t))&&j.test(t)?t.replace(W,dn):t},Bn.uniqueId=function(t){var e=++Ut;return yo(t)+e},Bn.upperCase=Ko,Bn.upperFirst=Jo,Bn.each=_a,Bn.eachRight=ya,Bn.first=js,ll(Bn,(_l={},_i(Bn,(function(t,e){Lt.call(Bn.prototype,e)||(_l[e]=t)})),_l),{chain:!1}),Bn.VERSION="4.17.21",we(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bn[t].placeholder=Bn})),we(["drop","take"],(function(t,e){Hn.prototype[t]=function(i){i=i===n?1:gn(mo(i),0);var r=this.__filtered__&&!e?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(i,r.__takeCount__):r.__views__.push({size:vn(i,d),type:t+(r.__dir__<0?"Right":"")}),r},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),we(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Hn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:as(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),we(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Hn.prototype[t]=function(){return this[n](1).value()[0]}})),we(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Hn.prototype[t]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(rl)},Hn.prototype.find=function(t){return this.filter(t).head()},Hn.prototype.findLast=function(t){return this.reverse().find(t)},Hn.prototype.invokeMap=Yi((function(t,e){return"function"==typeof t?new Hn(this):this.map((function(n){return Ci(n,t,e)}))})),Hn.prototype.reject=function(t){return this.filter(Ua(as(t)))},Hn.prototype.slice=function(t,e){t=mo(t);var i=this;return i.__filtered__&&(t>0||e<0)?new Hn(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==n&&(i=(e=mo(e))<0?i.dropRight(-e):i.take(e-t)),i)},Hn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hn.prototype.toArray=function(){return this.take(d)},_i(Hn.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Bn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);s&&(Bn.prototype[e]=function(){var e=this.__wrapped__,o=r?[1]:arguments,l=e instanceof Hn,c=o[0],h=l||Wa(e),u=function(t){var e=s.apply(Bn,Ne([t],o));return r&&d?e[0]:e};h&&i&&"function"==typeof c&&1!=c.length&&(l=h=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,m=l&&!p;if(!a&&h){e=m?e:new Hn(this);var g=t.apply(e,o);return g.__actions__.push({func:pa,args:[u],thisArg:n}),new Vn(g,d)}return f&&m?t.apply(this,o):(g=this.thru(u),f?r?g.value()[0]:g.value():g)})})),we(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Rt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Bn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Wa(r)?r:[],t)}return this[n]((function(n){return e.apply(Wa(n)?n:[],t)}))}})),_i(Hn.prototype,(function(t,e){var n=Bn[e];if(n){var i=n.name+"";Lt.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:e,func:n})}})),Rn[Br(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var t=new Hn(this.__wrapped__);return t.__actions__=Ar(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ar(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ar(this.__views__),t},Hn.prototype.reverse=function(){if(this.__filtered__){var t=new Hn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Wa(t),i=e<0,r=n?t.length:0,s=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var s=n[i],a=s.size;switch(s.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=vn(e,t+a);break;case"takeRight":t=gn(t,e-a)}}return{start:t,end:e}}(0,r,this.__views__),a=s.start,o=s.end,l=o-a,c=i?o:a-1,h=this.__iteratees__,u=h.length,d=0,p=vn(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return dr(t,this.__actions__);var f=[];t:for(;l--&&d<p;){for(var m=-1,g=t[c+=e];++m<u;){var v=h[m],_=v.iteratee,y=v.type,x=_(g);if(2==y)g=x;else if(!x){if(1==y)continue t;break t}}f[d++]=g}return f},Bn.prototype.at=fa,Bn.prototype.chain=function(){return da(this)},Bn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===n&&(this.__values__=po(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var e,i=this;i instanceof kn;){var r=zs(i);r.__index__=0,r.__values__=n,e?s.__wrapped__=r:e=r;var s=r;i=i.__wrapped__}return s.__wrapped__=t,e},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var e=t;return this.__actions__.length&&(e=new Hn(this)),(e=e.reverse()).__actions__.push({func:pa,args:[ta],thisArg:n}),new Vn(e,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,$t&&(Bn.prototype[$t]=function(){return this}),Bn}();pe?((pe.exports=pn)._=pn,de._=pn):ue._=pn}).call(ch)}(bp,bp.exports);var Mp=hh(bp.exports);class Sp extends Ks{constructor(t,e={}){const n=e.font;if(void 0===n)super();else{const i=n.generateShapes(t,e.size);void 0===e.depth&&(e.depth=50),void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(i,e)}this.type="TextGeometry"}}class Ep{constructor(t={}){var e,n;d(this,"params"),d(this,"light"),d(this,"lightHelper"),this.params=t;const{color:i=16777215,intensity:r=.8,position:s=[0,1,0],castShadow:a=!1}=this.params.light||{};this.light=new za(i,r),this.light.position.set(-30,60,100),this.light.castShadow=a,this.light.shadow.camera.top=2e3,this.light.shadow.camera.bottom=-2e3,this.light.shadow.camera.left=-2e3,this.light.shadow.camera.right=2e3,this.light.shadow.camera.near=1,this.light.shadow.camera.far=2e3,this.light.shadow.mapSize.width=4096,this.light.shadow.mapSize.height=4096,this.light.shadow.radius=3,this.light.shadow.bias=-6e-5;const{helperSize:o=100,helperColor:l=16711680}=this.params.light||{};(null==(n=null==(e=this.params)?void 0:e.light)?void 0:n.helperEnable)&&(this.lightHelper=new oo(this.light,o,l))}destroy(){}bindScene(t){var e,n,i,r,s,a;t&&(t.add&&t.add(this.light),this.lightHelper&&t.add&&t.add(this.lightHelper),this.light.target.updateMatrixWorld(),null==(e=this.lightHelper)||e.update(),(null==(i=null==(n=this.params)?void 0:n.light)?void 0:i.castShadow)&&(!(null==(r=t.userData)?void 0:r.boundingBox)||(null==(a=null==(s=t.userData)?void 0:s.boundingBox)?void 0:a.isEmpty())?wd(t,wp):wp.copy(t.userData.boundingBox),this.light.shadow.camera.top=wp.max.y,this.light.shadow.camera.bottom=wp.min.y,this.light.shadow.camera.left=wp.min.x,this.light.shadow.camera.right=wp.max.x))}}const wp=new on;class Tp extends Sr{constructor(t={}){super(),d(this,"name","LoadingScene3"),d(this,"isDynamic",!0),d(this,"lights"),d(this,"g",new xr),this.params=t,this.background=new Ti(15921906),this.init(),this.userData.boundingBox=new Ed(new Sd(-300,-300,0),new Sd(300,300,0)),this.lights=new Ep(t),this.lights.bindScene(this)}destroy(){}init(){return p(this,null,(function*(){const t=new ka(4210752);this.add(t);const e=new Qs(3e4,3e4,32,32),n=new ia({color:16777215,transparent:!0,opacity:.3}),i=new ir(e,n);i.receiveShadow=!0,this.add(i);const r=Mp.cloneDeep(xp);Mp.set(r,"uniforms.iResolution.value",new Pe(this.params.width,this.params.height)),Mp.set(r,"uniforms.iTime.value",0);const s=new Qs(2,2),a=new hr(r);this.mesh=new ir(s,a),this.g.add(this.mesh),this.add(this.g)}))}initFont(t){if(!t)return;const e=new Sp("LOADING...",{font:t,size:20,depth:2});e.computeBoundingBox();const n=-.5*(e.boundingBox.max.x-e.boundingBox.min.x),i=new ra({color:16711680,specular:328965,shininess:50,emissive:0}),r=new ir(e,i);r.position.x=n,r.castShadow=!0,r.receiveShadow=!1,r.position.setZ(10),this.g.add(r)}update(t){var e,n;Rp+=.001*Ap,Rp>Cp?Ap=-1:Rp<-.1&&(Ap=1),this.g.rotation.y=Rp,this.g.rotation.z=Rp/10,(null==(e=this.mesh)?void 0:e.material)&&((null==(n=this.mesh)?void 0:n.material).uniforms.iTime.value=performance.now()/500)}}let Ap=1,Cp=.1,Rp=0;function Pp(t,e=!1){const n=null!==t[0].index,i=new Set(Object.keys(t[0].attributes)),r=new Set(Object.keys(t[0].morphAttributes)),s={},a={},o=t[0].morphTargetsRelative,l=new qi;let c=0;for(let h=0;h<t.length;++h){const u=t[h];let d=0;if(n!==(null!==u.index))return null;for(const t in u.attributes){if(!i.has(t))return null;void 0===s[t]&&(s[t]=[]),s[t].push(u.attributes[t]),d++}if(d!==i.size)return null;if(o!==u.morphTargetsRelative)return null;for(const t in u.morphAttributes){if(!r.has(t))return null;void 0===a[t]&&(a[t]=[]),a[t].push(u.morphAttributes[t])}if(e){let t;if(n)t=u.index.count;else{if(void 0===u.attributes.position)return null;t=u.attributes.position.count}l.addGroup(c,t,h),c+=t}}if(n){let e=0;const n=[];for(let i=0;i<t.length;++i){const r=t[i].index;for(let t=0;t<r.count;++t)n.push(r.getX(t)+e);e+=t[i].attributes.position.count}l.setIndex(n)}for(const t in s){const e=Ip(s[t]);if(!e)return null;l.setAttribute(t,e)}for(const t in a){const e=a[t][0].length;if(0===e)break;l.morphAttributes=l.morphAttributes||{},l.morphAttributes[t]=[];for(let n=0;n<e;++n){const e=[];for(let i=0;i<a[t].length;++i)e.push(a[t][i][n]);const i=Ip(e);if(!i)return null;l.morphAttributes[t].push(i)}}return l}function Ip(t){let e,n,i,r=-1,s=0;for(let a=0;a<t.length;++a){const o=t[a];if(void 0===e&&(e=o.array.constructor),e!==o.array.constructor)return null;if(void 0===n&&(n=o.itemSize),n!==o.itemSize)return null;if(void 0===i&&(i=o.normalized),i!==o.normalized)return null;if(-1===r&&(r=o.gpuType),r!==o.gpuType)return null;s+=o.count*n}const a=new e(s),o=new Li(a,n,i);let l=0;for(let e=0;e<t.length;++e){const i=t[e];if(i.isInterleavedBufferAttribute){const t=l/n;for(let e=0,r=i.count;e<r;e++)for(let r=0;r<n;r++){const n=i.getComponent(e,r);o.setComponent(e+t,r,n)}}else a.set(i.array,l);l+=i.count*n}return void 0!==r&&(o.gpuType=r),o}const Np=re;class Dp extends Ca{constructor(t){super(t),this.defaultDPI=90,this.defaultUnit="px"}load(t,e,n,i){const r=this,s=new Ia(r.manager);s.setPath(r.path),s.setRequestHeader(r.requestHeader),s.setWithCredentials(r.withCredentials),s.load(t,(function(n){try{e(r.parse(n))}catch(e){i&&i(e),r.manager.itemError(t)}}),n,i)}parse(t){const e=this;function n(t,e,n,r,s,a,o,l){if(0==e||0==n)return void t.lineTo(l.x,l.y);r=r*Math.PI/180,e=Math.abs(e),n=Math.abs(n);const c=(o.x-l.x)/2,h=(o.y-l.y)/2,u=Math.cos(r)*c+Math.sin(r)*h,d=-Math.sin(r)*c+Math.cos(r)*h;let p=e*e,f=n*n;const m=u*u,g=d*d,v=m/p+g/f;if(v>1){const t=Math.sqrt(v);p=(e*=t)*e,f=(n*=t)*n}const _=p*g+f*m,y=(p*f-_)/_;let x=Math.sqrt(Math.max(0,y));s===a&&(x=-x);const b=x*e*d/n,M=-x*n*u/e,S=Math.cos(r)*b-Math.sin(r)*M+(o.x+l.x)/2,E=Math.sin(r)*b+Math.cos(r)*M+(o.y+l.y)/2,w=i(1,0,(u-b)/e,(d-M)/n),T=i((u-b)/e,(d-M)/n,(-u-b)/e,(-d-M)/n)%(2*Math.PI);t.currentPath.absellipse(S,E,e,n,w,w+T,0===a,r)}function i(t,e,n,i){const r=t*n+e*i,s=Math.sqrt(t*t+e*e)*Math.sqrt(n*n+i*i);let a=Math.acos(Math.max(-1,Math.min(1,r/s)));return t*i-e*n<0&&(a=-a),a}function r(t,e){e=Object.assign({},e);let n={};if(t.hasAttribute("class")){const e=t.getAttribute("class").split(/\s/).filter(Boolean).map((t=>t.trim()));for(let t=0;t<e.length;t++)n=Object.assign(n,m["."+e[t]])}function i(i,r,s){void 0===s&&(s=function(t){return t.startsWith("url"),t}),t.hasAttribute(i)&&(e[r]=s(t.getAttribute(i))),n[i]&&(e[r]=s(n[i])),t.style&&""!==t.style[i]&&(e[r]=s(t.style[i]))}function r(t){return Math.max(0,Math.min(1,c(t)))}function s(t){return Math.max(0,c(t))}return t.hasAttribute("id")&&(n=Object.assign(n,m["#"+t.getAttribute("id")])),i("fill","fill"),i("fill-opacity","fillOpacity",r),i("fill-rule","fillRule"),i("opacity","opacity",r),i("stroke","stroke"),i("stroke-opacity","strokeOpacity",r),i("stroke-width","strokeWidth",s),i("stroke-linejoin","strokeLineJoin"),i("stroke-linecap","strokeLineCap"),i("stroke-miterlimit","strokeMiterLimit",s),i("visibility","visibility"),e}function s(t,e){return t-(e-t)}function a(t,e,n){if("string"!=typeof t)throw new TypeError("Invalid input: "+typeof t);const i={WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};let r=0,s=!0,a="",o="";const l=[];function c(t,e,n){const i=new SyntaxError('Unexpected character "'+t+'" at index '+e+".");throw i.partial=n,i}function h(){""!==a&&(""===o?l.push(Number(a)):l.push(Number(a)*Math.pow(10,Number(o)))),a="",o=""}let u;const d=t.length;for(let p=0;p<d;p++)if(u=t[p],Array.isArray(e)&&e.includes(l.length%n)&&i.FLAGS.test(u))r=1,a=u,h();else{if(0===r){if(i.WHITESPACE.test(u))continue;if(i.DIGIT.test(u)||i.SIGN.test(u)){r=1,a=u;continue}if(i.POINT.test(u)){r=2,a=u;continue}i.COMMA.test(u)&&(s&&c(u,p,l),s=!0)}if(1===r){if(i.DIGIT.test(u)){a+=u;continue}if(i.POINT.test(u)){a+=u,r=2;continue}if(i.EXP.test(u)){r=3;continue}i.SIGN.test(u)&&1===a.length&&i.SIGN.test(a[0])&&c(u,p,l)}if(2===r){if(i.DIGIT.test(u)){a+=u;continue}if(i.EXP.test(u)){r=3;continue}i.POINT.test(u)&&"."===a[a.length-1]&&c(u,p,l)}if(3===r){if(i.DIGIT.test(u)){o+=u;continue}if(i.SIGN.test(u)){if(""===o){o+=u;continue}1===o.length&&i.SIGN.test(o)&&c(u,p,l)}}i.WHITESPACE.test(u)?(h(),r=0,s=!1):i.COMMA.test(u)?(h(),r=0,s=!0):i.SIGN.test(u)?(h(),r=1,a=u):i.POINT.test(u)?(h(),r=2,a=u):c(u,p,l)}return h(),l}const o=["mm","cm","in","pt","pc","px"],l={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:12,pc:1,px:-1},px:{px:1}};function c(t){let n,i="px";if("string"==typeof t||t instanceof String)for(let e=0,n=o.length;e<n;e++){const n=o[e];if(t.endsWith(n)){i=n,t=t.substring(0,t.length-n.length);break}}return"px"===i&&"px"!==e.defaultUnit?n=l.in[e.defaultUnit]/e.defaultDPI:(n=l[i][e.defaultUnit],n<0&&(n=l[i].in*e.defaultDPI)),n*parseFloat(t)}function h(t){const e=t.elements;return e[0]*e[4]-e[1]*e[3]<0}function u(t){const e=t.elements,n=e[0]*e[3]+e[1]*e[4];if(0===n)return!1;const i=d(t),r=p(t);return Math.abs(n/(i*r))>Number.EPSILON}function d(t){const e=t.elements;return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function p(t){const e=t.elements;return Math.sqrt(e[3]*e[3]+e[4]*e[4])}const f=[],m={},g=[],v=new Ie,_=new Ie,y=new Ie,x=new Ie,b=new Pe,M=new rn,S=new Ie,E=(new DOMParser).parseFromString(t,"image/svg+xml");return function t(e,i){if(1!==e.nodeType)return;const o=function(t){if(!(t.hasAttribute("transform")||"use"===t.nodeName&&(t.hasAttribute("x")||t.hasAttribute("y"))))return null;const e=function(t){const e=new Ie,n=v;if("use"===t.nodeName&&(t.hasAttribute("x")||t.hasAttribute("y"))){const n=c(t.getAttribute("x")),i=c(t.getAttribute("y"));e.translate(n,i)}if(t.hasAttribute("transform")){const i=t.getAttribute("transform").split(")");for(let t=i.length-1;t>=0;t--){const r=i[t].trim();if(""===r)continue;const s=r.indexOf("("),o=r.length;if(s>0&&s<o){const t=r.slice(0,s),e=a(r.slice(s+1));switch(n.identity(),t){case"translate":if(e.length>=1){const t=e[0];let i=0;e.length>=2&&(i=e[1]),n.translate(t,i)}break;case"rotate":if(e.length>=1){let t=0,i=0,r=0;t=e[0]*Math.PI/180,e.length>=3&&(i=e[1],r=e[2]),_.makeTranslation(-i,-r),y.makeRotation(t),x.multiplyMatrices(y,_),_.makeTranslation(i,r),n.multiplyMatrices(_,x)}break;case"scale":if(e.length>=1){const t=e[0];let i=t;e.length>=2&&(i=e[1]),n.scale(t,i)}break;case"skewX":1===e.length&&n.set(1,Math.tan(e[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":1===e.length&&n.set(1,0,0,Math.tan(e[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":6===e.length&&n.set(e[0],e[2],e[4],e[1],e[3],e[5],0,0,1)}}e.premultiply(n)}}return e}(t);return g.length>0&&e.premultiply(g[g.length-1]),S.copy(e),g.push(e),e}(e);let l=!1,E=null;switch(e.nodeName){case"svg":case"g":i=r(e,i);break;case"style":!function(t){if(t.sheet&&t.sheet.cssRules&&t.sheet.cssRules.length)for(let e=0;e<t.sheet.cssRules.length;e++){const n=t.sheet.cssRules[e];if(1!==n.type)continue;const i=n.selectorText.split(/,/gm).filter(Boolean).map((t=>t.trim()));for(let t=0;t<i.length;t++){const e=Object.fromEntries(Object.entries(n.style).filter((([,t])=>""!==t)));m[i[t]]=Object.assign(m[i[t]]||{},e)}}}(e);break;case"path":i=r(e,i),e.hasAttribute("d")&&(E=function(t){const e=new po,i=new Pe,r=new Pe,o=new Pe;let l=!0,c=!1;const h=t.getAttribute("d");if(""===h||"none"===h)return null;const u=h.match(/[a-df-z][^a-df-z]*/gi);for(let t=0,h=u.length;t<h;t++){const h=u[t],d=h.charAt(0),p=h.slice(1).trim();let f;switch(!0===l&&(c=!0,l=!1),d){case"M":f=a(p);for(let t=0,n=f.length;t<n;t+=2)i.x=f[t+0],i.y=f[t+1],r.x=i.x,r.y=i.y,0===t?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y),0===t&&o.copy(i);break;case"H":f=a(p);for(let t=0,n=f.length;t<n;t++)i.x=f[t],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"V":f=a(p);for(let t=0,n=f.length;t<n;t++)i.y=f[t],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"L":f=a(p);for(let t=0,n=f.length;t<n;t+=2)i.x=f[t+0],i.y=f[t+1],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"C":f=a(p);for(let t=0,n=f.length;t<n;t+=6)e.bezierCurveTo(f[t+0],f[t+1],f[t+2],f[t+3],f[t+4],f[t+5]),r.x=f[t+2],r.y=f[t+3],i.x=f[t+4],i.y=f[t+5],0===t&&!0===c&&o.copy(i);break;case"S":f=a(p);for(let t=0,n=f.length;t<n;t+=4)e.bezierCurveTo(s(i.x,r.x),s(i.y,r.y),f[t+0],f[t+1],f[t+2],f[t+3]),r.x=f[t+0],r.y=f[t+1],i.x=f[t+2],i.y=f[t+3],0===t&&!0===c&&o.copy(i);break;case"Q":f=a(p);for(let t=0,n=f.length;t<n;t+=4)e.quadraticCurveTo(f[t+0],f[t+1],f[t+2],f[t+3]),r.x=f[t+0],r.y=f[t+1],i.x=f[t+2],i.y=f[t+3],0===t&&!0===c&&o.copy(i);break;case"T":f=a(p);for(let t=0,n=f.length;t<n;t+=2){const n=s(i.x,r.x),a=s(i.y,r.y);e.quadraticCurveTo(n,a,f[t+0],f[t+1]),r.x=n,r.y=a,i.x=f[t+0],i.y=f[t+1],0===t&&!0===c&&o.copy(i)}break;case"A":f=a(p,[3,4],7);for(let t=0,s=f.length;t<s;t+=7){if(f[t+5]==i.x&&f[t+6]==i.y)continue;const s=i.clone();i.x=f[t+5],i.y=f[t+6],r.x=i.x,r.y=i.y,n(e,f[t],f[t+1],f[t+2],f[t+3],f[t+4],s,i),0===t&&!0===c&&o.copy(i)}break;case"m":f=a(p);for(let t=0,n=f.length;t<n;t+=2)i.x+=f[t+0],i.y+=f[t+1],r.x=i.x,r.y=i.y,0===t?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y),0===t&&o.copy(i);break;case"h":f=a(p);for(let t=0,n=f.length;t<n;t++)i.x+=f[t],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"v":f=a(p);for(let t=0,n=f.length;t<n;t++)i.y+=f[t],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"l":f=a(p);for(let t=0,n=f.length;t<n;t+=2)i.x+=f[t+0],i.y+=f[t+1],r.x=i.x,r.y=i.y,e.lineTo(i.x,i.y),0===t&&!0===c&&o.copy(i);break;case"c":f=a(p);for(let t=0,n=f.length;t<n;t+=6)e.bezierCurveTo(i.x+f[t+0],i.y+f[t+1],i.x+f[t+2],i.y+f[t+3],i.x+f[t+4],i.y+f[t+5]),r.x=i.x+f[t+2],r.y=i.y+f[t+3],i.x+=f[t+4],i.y+=f[t+5],0===t&&!0===c&&o.copy(i);break;case"s":f=a(p);for(let t=0,n=f.length;t<n;t+=4)e.bezierCurveTo(s(i.x,r.x),s(i.y,r.y),i.x+f[t+0],i.y+f[t+1],i.x+f[t+2],i.y+f[t+3]),r.x=i.x+f[t+0],r.y=i.y+f[t+1],i.x+=f[t+2],i.y+=f[t+3],0===t&&!0===c&&o.copy(i);break;case"q":f=a(p);for(let t=0,n=f.length;t<n;t+=4)e.quadraticCurveTo(i.x+f[t+0],i.y+f[t+1],i.x+f[t+2],i.y+f[t+3]),r.x=i.x+f[t+0],r.y=i.y+f[t+1],i.x+=f[t+2],i.y+=f[t+3],0===t&&!0===c&&o.copy(i);break;case"t":f=a(p);for(let t=0,n=f.length;t<n;t+=2){const n=s(i.x,r.x),a=s(i.y,r.y);e.quadraticCurveTo(n,a,i.x+f[t+0],i.y+f[t+1]),r.x=n,r.y=a,i.x=i.x+f[t+0],i.y=i.y+f[t+1],0===t&&!0===c&&o.copy(i)}break;case"a":f=a(p,[3,4],7);for(let t=0,s=f.length;t<s;t+=7){if(0==f[t+5]&&0==f[t+6])continue;const s=i.clone();i.x+=f[t+5],i.y+=f[t+6],r.x=i.x,r.y=i.y,n(e,f[t],f[t+1],f[t+2],f[t+3],f[t+4],s,i),0===t&&!0===c&&o.copy(i)}break;case"Z":case"z":e.currentPath.autoClose=!0,e.currentPath.curves.length>0&&(i.copy(o),e.currentPath.currentPoint.copy(i),l=!0)}c=!1}return e}(e));break;case"rect":i=r(e,i),E=function(t){const e=c(t.getAttribute("x")||0),n=c(t.getAttribute("y")||0),i=c(t.getAttribute("rx")||t.getAttribute("ry")||0),r=c(t.getAttribute("ry")||t.getAttribute("rx")||0),s=c(t.getAttribute("width")),a=c(t.getAttribute("height")),o=.448084975506,l=new po;return l.moveTo(e+i,n),l.lineTo(e+s-i,n),(0!==i||0!==r)&&l.bezierCurveTo(e+s-i*o,n,e+s,n+r*o,e+s,n+r),l.lineTo(e+s,n+a-r),(0!==i||0!==r)&&l.bezierCurveTo(e+s,n+a-r*o,e+s-i*o,n+a,e+s-i,n+a),l.lineTo(e+i,n+a),(0!==i||0!==r)&&l.bezierCurveTo(e+i*o,n+a,e,n+a-r*o,e,n+a-r),l.lineTo(e,n+r),(0!==i||0!==r)&&l.bezierCurveTo(e,n+r*o,e+i*o,n,e+i,n),l}(e);break;case"polygon":i=r(e,i),E=function(t){function e(t,e,n){const s=c(e),a=c(n);0===r?i.moveTo(s,a):i.lineTo(s,a),r++}const n=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,i=new po;let r=0;return t.getAttribute("points").replace(n,e),i.currentPath.autoClose=!0,i}(e);break;case"polyline":i=r(e,i),E=function(t){function e(t,e,n){const s=c(e),a=c(n);0===r?i.moveTo(s,a):i.lineTo(s,a),r++}const n=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,i=new po;let r=0;return t.getAttribute("points").replace(n,e),i.currentPath.autoClose=!1,i}(e);break;case"circle":i=r(e,i),E=function(t){const e=c(t.getAttribute("cx")||0),n=c(t.getAttribute("cy")||0),i=c(t.getAttribute("r")||0),r=new _s;r.absarc(e,n,i,0,2*Math.PI);const s=new po;return s.subPaths.push(r),s}(e);break;case"ellipse":i=r(e,i),E=function(t){const e=c(t.getAttribute("cx")||0),n=c(t.getAttribute("cy")||0),i=c(t.getAttribute("rx")||0),r=c(t.getAttribute("ry")||0),s=new _s;s.absellipse(e,n,i,r,0,2*Math.PI);const a=new po;return a.subPaths.push(s),a}(e);break;case"line":i=r(e,i),E=function(t){const e=c(t.getAttribute("x1")||0),n=c(t.getAttribute("y1")||0),i=c(t.getAttribute("x2")||0),r=c(t.getAttribute("y2")||0),s=new po;return s.moveTo(e,n),s.lineTo(i,r),s.currentPath.autoClose=!1,s}(e);break;case"defs":l=!0;break;case"use":i=r(e,i);const o=(e.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),h=e.viewportElement.getElementById(o);h&&t(h,i)}E&&(void 0!==i.fill&&"none"!==i.fill&&E.color.setStyle(i.fill,Np),function(t,e){function n(t){M.set(t.x,t.y,1).applyMatrix3(e),t.set(M.x,M.y)}function i(t){const n=t.xRadius,i=t.yRadius,r=Math.cos(t.aRotation),s=Math.sin(t.aRotation),a=new rn(n*r,n*s,0),o=new rn(-i*s,i*r,0),l=a.applyMatrix3(e),c=o.applyMatrix3(e),u=v.set(l.x,c.x,0,l.y,c.y,0,0,0,1),d=_.copy(u).invert(),p=y.copy(d).transpose().multiply(d).elements,f=function(t,e,n){let i,r,s,a,o;const l=t+n,c=t-n,h=Math.sqrt(c*c+4*e*e);return l>0?(i=.5*(l+h),o=1/i,r=t*o*n-e*o*e):l<0?r=.5*(l-h):(i=.5*h,r=-.5*h),s=c>0?c+h:c-h,Math.abs(s)>2*Math.abs(e)?(o=-2*e/s,a=1/Math.sqrt(1+o*o),s=o*a):0===Math.abs(e)?(s=1,a=0):(o=-.5*s/e,s=1/Math.sqrt(1+o*o),a=o*s),c>0&&(o=s,s=-a,a=o),{rt1:i,rt2:r,cs:s,sn:a}}(p[0],p[1],p[4]),m=Math.sqrt(f.rt1),g=Math.sqrt(f.rt2);if(t.xRadius=1/m,t.yRadius=1/g,t.aRotation=Math.atan2(f.sn,f.cs),!((t.aEndAngle-t.aStartAngle)%(2*Math.PI)<Number.EPSILON)){const n=_.set(m,0,0,0,g,0,0,0,1),i=y.set(f.cs,f.sn,0,-f.sn,f.cs,0,0,0,1),r=n.multiply(i).multiply(u),s=t=>{const{x:e,y:n}=new rn(Math.cos(t),Math.sin(t),0).applyMatrix3(r);return Math.atan2(n,e)};t.aStartAngle=s(t.aStartAngle),t.aEndAngle=s(t.aEndAngle),h(e)&&(t.aClockwise=!t.aClockwise)}}function r(t){const n=d(e),i=p(e);t.xRadius*=n,t.yRadius*=i;const r=n>Number.EPSILON?Math.atan2(e.elements[1],e.elements[0]):Math.atan2(-e.elements[3],e.elements[4]);t.aRotation+=r,h(e)&&(t.aStartAngle*=-1,t.aEndAngle*=-1,t.aClockwise=!t.aClockwise)}const s=t.subPaths;for(let t=0,a=s.length;t<a;t++){const a=s[t].curves;for(let t=0;t<a.length;t++){const s=a[t];s.isLineCurve?(n(s.v1),n(s.v2)):s.isCubicBezierCurve?(n(s.v0),n(s.v1),n(s.v2),n(s.v3)):s.isQuadraticBezierCurve?(n(s.v0),n(s.v1),n(s.v2)):s.isEllipseCurve&&(b.set(s.aX,s.aY),n(b),s.aX=b.x,s.aY=b.y,u(e)?i(s):r(s))}}}(E,S),f.push(E),E.userData={node:e,style:i});const w=e.childNodes;for(let e=0;e<w.length;e++){const n=w[e];l&&"style"!==n.nodeName&&"defs"!==n.nodeName||t(n,i)}o&&(g.pop(),g.length>0?S.copy(g[g.length-1]):S.identity())}(E.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:f,xml:E.documentElement}}static createShapes(t){const e=999999999,n=0,i=1,r=2,s=3,a=4,o=5,l=6,c={loc:n,t:0};function h(t,e,i,s){const a=t.x,o=e.x,l=i.x,h=s.x,d=t.y,p=e.y,f=i.y,m=s.y,g=(h-l)*(d-f)-(m-f)*(a-l),v=(m-f)*(o-a)-(h-l)*(p-d),_=g/v,y=((o-a)*(d-f)-(p-d)*(a-l))/v;if(0===v&&0!==g||_<=0||_>=1||y<0||y>1)return null;if(0===g&&0===v){for(let l=0;l<2;l++){if(u(0===l?i:s,t,e),c.loc==n){const t=0===l?i:s;return{x:t.x,y:t.y,t:c.t}}if(c.loc==r)return{x:+(a+c.t*(o-a)).toPrecision(10),y:+(d+c.t*(p-d)).toPrecision(10),t:c.t}}return null}for(let r=0;r<2;r++)if(u(0===r?i:s,t,e),c.loc==n){const t=0===r?i:s;return{x:t.x,y:t.y,t:c.t}}return{x:+(a+_*(o-a)).toPrecision(10),y:+(d+_*(p-d)).toPrecision(10),t:_}}function u(t,e,h){const u=h.x-e.x,d=h.y-e.y,p=t.x-e.x,f=t.y-e.y,m=u*f-p*d;if(t.x===e.x&&t.y===e.y)return c.loc=n,void(c.t=0);if(t.x===h.x&&t.y===h.y)return c.loc=i,void(c.t=1);if(m<-Number.EPSILON)return void(c.loc=s);if(m>Number.EPSILON)return void(c.loc=a);if(u*p<0||d*f<0)return void(c.loc=o);if(Math.sqrt(u*u+d*d)<Math.sqrt(p*p+f*f))return void(c.loc=l);let g;g=0!==u?p/u:f/d,c.loc=r,c.t=g}function d(t,e,n){const i=new Pe;e.getCenter(i);const r=[];return n.forEach((e=>{e.boundingBox.containsPoint(i)&&function(t,e){const n=[],i=[];for(let r=1;r<t.length;r++){const s=t[r-1],a=t[r];for(let t=1;t<e.length;t++){const r=h(s,a,e[t-1],e[t]);null!==r&&void 0===n.find((t=>t.t<=r.t+Number.EPSILON&&t.t>=r.t-Number.EPSILON))&&(n.push(r),i.push(new Pe(r.x,r.y)))}}return i}(t,e.points).forEach((t=>{r.push({identifier:e.identifier,isCW:e.isCW,point:t})}))})),r.sort(((t,e)=>t.point.x-e.point.x)),r}let p=e,f=-999999999,m=t.subPaths.map((t=>{const n=t.getPoints();let i=-999999999,r=e,s=-999999999,a=e;for(let t=0;t<n.length;t++){const e=n[t];e.y>i&&(i=e.y),e.y<r&&(r=e.y),e.x>s&&(s=e.x),e.x<a&&(a=e.x)}return f<=s&&(f=s+1),p>=a&&(p=a-1),{curves:t.curves,points:n,isCW:Xs.isClockWise(n),identifier:-1,boundingBox:new io(new Pe(a,r),new Pe(s,i))}}));m=m.filter((t=>t.points.length>1));for(let t=0;t<m.length;t++)m[t].identifier=t;const g=m.map((e=>function(t,e,n,i,r){null!=r&&""!==r||(r="nonzero");const s=new Pe;t.boundingBox.getCenter(s);const a=d([new Pe(n,s.y),new Pe(i,s.y)],t.boundingBox,e);a.sort(((t,e)=>t.point.x-e.point.x));const o=[],l=[];a.forEach((e=>{e.identifier===t.identifier?o.push(e):l.push(e)}));const c=o[0].point.x,h=[];let u=0;for(;u<l.length&&l[u].point.x<c;)h.length>0&&h[h.length-1]===l[u].identifier?h.pop():h.push(l[u].identifier),u++;if(h.push(t.identifier),"evenodd"===r){const e=h.length%2==0,n=h[h.length-2];return{identifier:t.identifier,isHole:e,for:n}}if("nonzero"===r){let n=!0,i=null,r=null;for(let t=0;t<h.length;t++){const s=h[t];n?(r=e[s].isCW,n=!1,i=s):r!==e[s].isCW&&(r=e[s].isCW,n=!0)}return{identifier:t.identifier,isHole:n,for:i}}}(e,m,p,f,t.userData?t.userData.style.fillRule:void 0))),v=[];return m.forEach((t=>{if(!g[t.identifier].isHole){const e=new ys;e.curves=t.curves,g.filter((e=>e.isHole&&e.for===t.identifier)).forEach((t=>{const n=m[t.identifier],i=new _s;i.curves=n.curves,e.holes.push(i)})),v.push(e)}})),v}static getStrokeStyle(t,e,n,i,r){return{strokeColor:e=void 0!==e?e:"#000",strokeWidth:t=void 0!==t?t:1,strokeLineJoin:n=void 0!==n?n:"miter",strokeLineCap:i=void 0!==i?i:"butt",strokeMiterLimit:r=void 0!==r?r:4}}static pointsToStroke(t,e,n,i){const r=[],s=[],a=[];if(0===Dp.pointsToStrokeWithBuffers(t,e,n,i,r,s,a))return null;const o=new qi;return o.setAttribute("position",new Fi(r,3)),o.setAttribute("normal",new Fi(s,3)),o.setAttribute("uv",new Fi(a,2)),o}static pointsToStrokeWithBuffers(t,e,n,i,r,s,a,o){const l=new Pe,c=new Pe,h=new Pe,u=new Pe,d=new Pe,p=new Pe,f=new Pe,m=new Pe,g=new Pe,v=new Pe,_=new Pe,y=new Pe,x=new Pe,b=new Pe,M=new Pe,S=new Pe,E=new Pe;n=void 0!==n?n:12,i=void 0!==i?i:.001,o=void 0!==o?o:0;const w=(t=function(t){let e=!1;for(let n=1,r=t.length-1;n<r;n++)if(t[n].distanceTo(t[n+1])<i){e=!0;break}if(!e)return t;const n=[];n.push(t[0]);for(let e=1,r=t.length-1;e<r;e++)t[e].distanceTo(t[e+1])>=i&&n.push(t[e]);return n.push(t[t.length-1]),n}(t)).length;if(w<2)return 0;const T=t[0].equals(t[w-1]);let A,C,R=t[0];const P=e.strokeWidth/2,I=1/(w-1);let N,D,L,U,O=0,F=!1,B=0,z=3*o,k=2*o;V(t[0],t[1],l).multiplyScalar(P),m.copy(t[0]).sub(l),g.copy(t[0]).add(l),v.copy(m),_.copy(g);for(let n=1;n<w;n++){A=t[n],C=n===w-1?T?t[1]:void 0:t[n+1];const i=l;if(V(R,A,i),h.copy(i).multiplyScalar(P),y.copy(A).sub(h),x.copy(A).add(h),N=O+I,D=!1,void 0!==C){V(A,C,c),h.copy(c).multiplyScalar(P),b.copy(A).sub(h),M.copy(A).add(h),L=!0,h.subVectors(C,R),i.dot(h)<0&&(L=!1),1===n&&(F=L),h.subVectors(C,A),h.normalize();const t=Math.abs(i.dot(h));if(t>Number.EPSILON){const n=P/t;h.multiplyScalar(-n),u.subVectors(A,R),d.copy(u).setLength(n).add(h),S.copy(d).negate();const i=d.length(),r=u.length();u.divideScalar(r),p.subVectors(C,A);const s=p.length();switch(p.divideScalar(s),u.dot(S)<r&&p.dot(S)<s&&(D=!0),E.copy(d).add(A),S.add(A),U=!1,D?L?(M.copy(S),x.copy(S)):(b.copy(S),y.copy(S)):W(),e.strokeLineJoin){case"bevel":q(L,D,N);break;case"round":j(L,D),L?G(A,y,b,N,0):G(A,M,x,N,1);break;default:const t=P*e.strokeMiterLimit/i;if(t<1){if("miter-clip"!==e.strokeLineJoin){q(L,D,N);break}j(L,D),L?(p.subVectors(E,y).multiplyScalar(t).add(y),f.subVectors(E,b).multiplyScalar(t).add(b),H(y,N,0),H(p,N,0),H(A,N,.5),H(A,N,.5),H(p,N,0),H(f,N,0),H(A,N,.5),H(f,N,0),H(b,N,0)):(p.subVectors(E,x).multiplyScalar(t).add(x),f.subVectors(E,M).multiplyScalar(t).add(M),H(x,N,1),H(p,N,1),H(A,N,.5),H(A,N,.5),H(p,N,1),H(f,N,1),H(A,N,.5),H(f,N,1),H(M,N,1))}else D?(L?(H(g,O,1),H(m,O,0),H(E,N,0),H(g,O,1),H(E,N,0),H(S,N,1)):(H(g,O,1),H(m,O,0),H(E,N,1),H(m,O,0),H(S,N,0),H(E,N,1)),L?b.copy(E):M.copy(E)):L?(H(y,N,0),H(E,N,0),H(A,N,.5),H(A,N,.5),H(E,N,0),H(b,N,0)):(H(x,N,1),H(E,N,1),H(A,N,.5),H(A,N,.5),H(E,N,1),H(M,N,1)),U=!0}}else W()}else W();T||n!==w-1||X(t[0],v,_,L,!0,O),O=N,R=A,m.copy(b),g.copy(M)}if(T){if(D&&r){let t=E,e=S;F!==L&&(t=S,e=E),L?(U||F)&&(e.toArray(r,0),e.toArray(r,9),U&&t.toArray(r,3)):!U&&F||(e.toArray(r,3),e.toArray(r,9),U&&t.toArray(r,0))}}else X(A,y,x,L,!1,N);return B;function V(t,e,n){return n.subVectors(e,t),n.set(-n.y,n.x).normalize()}function H(t,e,n){r&&(r[z]=t.x,r[z+1]=t.y,r[z+2]=0,s&&(s[z]=0,s[z+1]=0,s[z+2]=1),z+=3,a&&(a[k]=e,a[k+1]=n,k+=2)),B+=3}function G(t,e,i,r,s){l.copy(e).sub(t).normalize(),c.copy(i).sub(t).normalize();let a=Math.PI;const o=l.dot(c);Math.abs(o)<1&&(a=Math.abs(Math.acos(o))),a/=n,h.copy(e);for(let e=0,i=n-1;e<i;e++)u.copy(h).rotateAround(t,a),H(h,r,s),H(u,r,s),H(t,r,.5),h.copy(u);H(u,r,s),H(i,r,s),H(t,r,.5)}function W(){H(g,O,1),H(m,O,0),H(y,N,0),H(g,O,1),H(y,N,0),H(x,N,1)}function q(t,e,n){e?t?(H(g,O,1),H(m,O,0),H(y,N,0),H(g,O,1),H(y,N,0),H(S,N,1),H(y,n,0),H(b,n,0),H(S,n,.5)):(H(g,O,1),H(m,O,0),H(x,N,1),H(m,O,0),H(S,N,0),H(x,N,1),H(x,n,1),H(S,n,0),H(M,n,1)):t?(H(y,n,0),H(b,n,0),H(A,n,.5)):(H(x,n,1),H(M,n,0),H(A,n,.5))}function j(t,e){e&&(t?(H(g,O,1),H(m,O,0),H(y,N,0),H(g,O,1),H(y,N,0),H(S,N,1),H(y,O,0),H(A,N,.5),H(S,N,1),H(A,N,.5),H(b,O,0),H(S,N,1)):(H(g,O,1),H(m,O,0),H(x,N,1),H(m,O,0),H(S,N,0),H(x,N,1),H(x,O,1),H(S,N,0),H(A,N,.5),H(A,N,.5),H(S,N,0),H(M,O,1)))}function X(t,n,i,s,o,d){switch(e.strokeLineCap){case"round":o?G(t,i,n,d,.5):G(t,n,i,d,.5);break;case"square":if(o)l.subVectors(n,t),c.set(l.y,-l.x),h.addVectors(l,c).add(t),u.subVectors(c,l).add(t),s?(h.toArray(r,3),u.toArray(r,0),u.toArray(r,9)):(h.toArray(r,3),1===a[7]?u.toArray(r,9):h.toArray(r,9),u.toArray(r,0));else{l.subVectors(i,t),c.set(l.y,-l.x),h.addVectors(l,c).add(t),u.subVectors(c,l).add(t);const e=r.length;s?(h.toArray(r,e-3),u.toArray(r,e-6),u.toArray(r,e-12)):(u.toArray(r,e-6),h.toArray(r,e-3),u.toArray(r,e-12))}}}}}class Lp{constructor(){}static getZ(){return this._z=Math.round(100*(this._z+.01))/100,this._z}static getPolygons3ByPaths(t){var e,n,i,r,s,a;const o=[];if(!(null==t?void 0:t.length))return o;for(let l,c=0,h=(null==t?void 0:t.length)||0;c<h;c++){if(l=t[c],!l)continue;const{fill:h,stroke:u}=(null==(e=l.userData)?void 0:e.style)||{};if(h&&"none"!==h&&"transparent"!==h){const t=new Pi({color:(new Ti).setStyle(h),opacity:(null==(n=l.userData)?void 0:n.style.fillOpacity)||0,transparent:!0,depthWrite:!1,wireframe:!1}),e=[],i=Dp.createShapes(l);for(let t=0,n=(null==i?void 0:i.length)||0;t<n;t++){const n=new ta(i[t]);e.push(n)}if(null==e?void 0:e.length){const n=Pp(e,!1),i=new ir(n,t);i.renderOrder=Up++,i.userData=Mp.merge({},l.userData),o.push(i)}}else if(u&&"none"!==u&&"transparent"!==u){const t=new Pi({color:(new Ti).setStyle(u),opacity:(null==(r=null==(i=l.userData)?void 0:i.style)?void 0:r.strokeOpacity)||0,transparent:!0,side:2,depthWrite:!1,depthTest:!1,wireframe:!1}),e=[];for(let t,n=0,i=(null==(s=l.subPaths)?void 0:s.length)||0;n<i;n++){t=l.subPaths[n];const i=Dp.pointsToStroke(t.getPoints(),null==(a=l.userData)?void 0:a.style);i&&e.push(i)}if(null==e?void 0:e.length){const n=Pp(e,!1),i=new ir(n,t);i.renderOrder=Up++,i.userData=Mp.merge({},l.userData),o.push(i)}}}return o}static getPolygons3BySymbolUses(t,e){var n,i,r,s,a,o,l,c,h;const u=[];if(!t||!(null==e?void 0:e.length))return u;const d={};for(let e in t){const p=[];for(let o,l=0,c=(null==(i=null==(n=t[e])?void 0:n.paths)?void 0:i.length)||0;l<c;l++){if(o=t[e].paths[l],!(null==(r=null==o?void 0:o.subPaths)?void 0:r.length))continue;const n=Dp.createShapes(o);for(let t=0,e=(null==n?void 0:n.length)||0;t<e;t++)n[t].autoClose=!0,new ta(n[t]);for(let t,e=0,n=(null==(s=o.subPaths)?void 0:s.length)||0;e<n;e++){t=o.subPaths[e];const n=Dp.pointsToStroke(t.getPoints(),null==(a=o.userData)?void 0:a.style);n&&(n.index=null,p.push(n))}}if(!(null==p?void 0:p.length))continue;const f=Pp(p),m=new Pi({color:(new Ti).setStyle((null==(l=null==(o=t[e])?void 0:o.style)?void 0:l.stroke)||3355443),opacity:(null==(h=null==(c=t[e])?void 0:c.style)?void 0:h.strokeOpacity)||1,transparent:!0,side:2,depthWrite:!1,wireframe:!0}),g=new Dr(f,m,t[e].len);u.push(g),d[e]=g}const p=new oi;for(let t,n=0,i=(null==e?void 0:e.length)||0;n<i;n++)t=d[e[n].symbolId],t&&e[n].transform&&(Op.setByMatrix3(e[n].transform),p.position.set(0,0,0),p.rotation.set(0,0,0),p.scale.set(1,1,1),p.applyMatrix4(Op),p.updateMatrix(),t.setMatrixAt(e[n].idx,p.matrix));return u}static getLabels3ByPaths(t,e){var n;const i=[];if(!(null==t?void 0:t.length)||!e)return i;for(let r,s=0,a=(null==t?void 0:t.length)||0;s<a;s++){if(r=t[s],"text"!==r.type)continue;const{fill:a,fontSize:o}=(null==(n=r.userData)?void 0:n.style)||{},l=new Sp(r.textContent,{font:e,size:o,depth:o/10}).scale(1,-1,1);l.computeBoundingBox();const c=new Pi({color:new Ti(a&&"none"!==a&&"transparent"!==a?a:4013373)}),h=new ir(l,c);r.transform&&(Op.setByMatrix3(r.transform),h.applyMatrix4(Op)),h.userData=Mp.merge({},r.userData),h.renderOrder=Up++,i.push(h)}return i}}d(Lp,"_z",.1);let Up=0;const Op=new rp;class Fp extends Sr{constructor(t={}){super(),d(this,"name","DrawingScene3"),d(this,"isStatic",!0),d(this,"lights"),d(this,"adapter"),d(this,"font"),d(this,"defaultLayersIds"),this.params=t,this.lights=new Ep(t),this.lights.bindScene(this)}destroy(){}init(t){var e,n,i,r;if(!t)return;this.adapter=t;const s=new xr;s.scale.y*=-1;const a=Lp.getPolygons3ByPaths(null==(e=this.adapter)?void 0:e.paths);(null==a?void 0:a.length)&&s.add(...a);const o=Lp.getPolygons3BySymbolUses(null==(n=this.adapter)?void 0:n.symbolsMap,null==(i=this.adapter)?void 0:i.uses);(null==o?void 0:o.length)&&s.add(...o);const l=Lp.getLabels3ByPaths(null==(r=this.adapter)?void 0:r.labels,this.font);(null==l?void 0:l.length)&&s.add(...l),this.add(s)}initFont(t){this.font=t}showDefaultLayers(t,e=!1){var n,i,r;if(!(null==t?void 0:t.length))return;let s=null==(n=this.adapter)?void 0:n.getAllChildrenById(t);s=Mp.uniq(Mp.compact(s)),(null==s?void 0:s.length)&&((null==(i=this.defaultLayersIds)?void 0:i.length)||(this.defaultLayersIds=s),null==(r=this.adapter)||r.updateLayersVisibility(s,e))}update(t){}}function Bp(t){return t>-1e-8&&t<1e-8}function zp(t,e,n,i,r){const s=1-r;return s*s*(s*t+3*r*e)+r*r*(r*i+3*s*n)}function kp(t,e,n,i,r){const s=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,o=3*e-3*t;let l=0;if(Bp(a)){if((c=s)>1e-8||c<-1e-8){const t=-o/s;t>=0&&t<=1&&(r[l++]=t)}}else{const t=s*s-4*a*o;if(Bp(t))r[0]=-s/(2*a);else if(t>0){const e=Math.sqrt(t),n=(-s+e)/(2*a),i=(-s-e)/(2*a);n>=0&&n<=1&&(r[l++]=n),i>=0&&i<=1&&(r[l++]=i)}}var c;return l}function Vp(t,e,n){const i=t+n-2*e;return 0===i?.5:(t-e)/i}function Hp(t,e,n,i){const r=1-i;return r*(r*t+2*i*e)+i*i*n}const Gp=2*Math.PI;function Wp(t){return(t%=Gp)<0&&(t+=Gp),t}function qp(t,e,n,i){if(Bp(e-n))return!0;const r=1e-8;return t=Wp(t),e=Wp(e),n=Wp(n),i?n<=e?t-r>=n&&t+r<=e:t-r>=n||t+r<=e:e<=n?t+r>=e&&t-r<=n:t+r>=e||t-r<=n}class jp{constructor(t=new mp(1/0,1/0),e=new mp(-1/0,-1/0)){d(this,"isBox2",!0),d(this,"min"),d(this,"max"),this.min=t,this.max=e}applyMatrix3(t){return this.isEmpty()||(Xp[0].set(this.min.x,this.min.y).applyMatrix3(t),Xp[1].set(this.min.x,this.max.y).applyMatrix3(t),Xp[3].set(this.max.x,this.max.y).applyMatrix3(t),Xp[2].set(this.max.x,this.min.y).applyMatrix3(t),this.setFromPoints(Xp)),this}clone(){return(new jp).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}ceil(){return this.min.ceilToZero(),this.max.ceilToZero(),this}distanceToPoint(t){return Yp.copy(t).clamp(this.min,this.max).sub(t).length()}expandByXY(t,e){return this.min.minXY(t,e),this.max.maxXY(t,e),this}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByPoints(t){if(!t||!t.length)return this;for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){var e;this.union(t.boundingBoxWorld);for(let n=0,i=(null==(e=t.children)?void 0:e.length)||0;n<i;n++)this.expandByObject(t.children[n]);return this}expandByObjects(t){for(let e=0,n=t.length;e<n;e++)this.expandByObject(t[e]);return this}expandByBox(t){t.isEmpty()||(this.expandByPoint(t.min),this.expandByPoint(t.max))}expandByCubic(t,e,n,i,r,s,a,o){this.makeEmpty();let l=kp(t,n,r,a,Kp);for(let e=0;e<l;e++){const i=zp(t,n,r,a,Kp[e]);this.min.x=Math.min(i,this.min.x),this.max.x=Math.max(i,this.max.x)}l=kp(e,i,s,o,Jp);for(let t=0;t<l;t++){const n=zp(e,i,s,o,Jp[t]);this.min.y=Math.min(n,this.min.y),this.max.y=Math.max(n,this.max.y)}return this.expandByXY(t,e),this.expandByXY(a,o),this}expandByQuadratic(t,e,n,i,r,s){const a=Math.max(0,Math.min(1,Vp(t,n,r))),o=Math.max(0,Math.min(1,Vp(e,i,s))),l=Hp(t,n,r,a),c=Hp(e,i,s,o);return this.expandByXY(t,e),this.expandByXY(r,s),this.expandByXY(l,c),this}expandByArc(t,e,n,i,r,s,a){let o=r%(2*Math.PI);o<0&&(o+=2*Math.PI);let l=s%(2*Math.PI);if(l<0&&(l+=2*Math.PI),o===l)return this.expandByXY(t-n,e-i),this.expandByXY(t+n,e+i),this;if(a){const t=o;o=l,l=t}return l<o&&(l+=2*Math.PI),this.expandByXY(t+n*Math.cos(o),e+i*Math.sin(o)),this.expandByXY(t+n*Math.cos(l),e+i*Math.sin(l)),o>.5*Math.PI&&l<2*Math.PI+.5*Math.PI&&this.expandByXY(t,e+i),o>Math.PI&&l<2*Math.PI+Math.PI&&this.expandByXY(t-n,e),o>1.5*Math.PI&&l<2*Math.PI+1.5*Math.PI&&this.expandByXY(t,e-i),o>0&&l<2*Math.PI&&this.expandByXY(t+n,e),this}expandByEllipse(t,e,n,i,r,s,a,o){$p[0]=s,$p[1]=a,function(t,e){let n=Wp(t[0]),i=Wp(t[1]);e?n<i&&(n+=Gp):i<n&&(i+=Gp),t[0]=n,t[1]=i}($p,o),s=$p[0],a=$p[1];const l=t+n*Math.cos(s),c=e+i*Math.sin(s),h=t+n*Math.cos(a),u=e+i*Math.sin(a);this.expandByXY(l,c),this.expandByXY(h,u);const d=[0,Math.PI/2,Math.PI,3*Math.PI/2];for(const l of d)if(qp(l,s,a,o)){const s=t+n*Math.cos(l),a=e+i*Math.sin(l),o=t+(s-t)*Math.cos(r)-(a-e)*Math.sin(r),c=e+(s-t)*Math.sin(r)+(a-e)*Math.cos(r);this.expandByXY(o,c)}return this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}floor(){return this.min.floorToZero(),this.max.floorToZero(),this}getCenter(t=new mp){return this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t=new mp){return this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}getPoints(t=[]){return t.length=0,t[0]={x:this.min.x,y:this.min.y},t[1]={x:this.min.x,y:this.max.y},t[2]={x:this.max.x,y:this.max.y},t[3]={x:this.max.x,y:this.min.y},t}getNumbersArray(t=[]){return[this.min.x,this.min.y,this.min.x,this.max.y,this.max.x,this.max.y,this.max.x,this.min.y]}getArea(){return this.getSize(Yp),Yp.x*Yp.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}intersectsBox(t){return!!t&&!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}intersectsObject(t){return!(!t||!t.geometry)&&this.intersectsBox(t.geometry.boundingBox)}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}round(){return this.min.roundToZero(),this.max.roundToZero(),this}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e+=3)this.expandByPoint(Yp.fromArray(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=Yp.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromProjectionMatrix(t){return this.min.set(t.elements[6],t.elements[7]),this.max.set(t.elements[6],t.elements[7]),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}setFromMinMaxString(t,e=" "){if(this.makeEmpty(),!(null==t?void 0:t.length))return this;let n=t.split(e),i=Mp.map(n,(t=>parseFloat(t)));for(let t=0,e=i.length;t<e;t+=2)this.expandByPoint(Yp.fromArray(i,t));return this}setFromXYXY(t,e,n,i){return this.makeEmpty(),this.expandByXY(t,e),this.expandByXY(n,i),this}translate(t){return this.min.add(t),this.max.add(t),this}toString(){return`{"min":${this.min.toString()},"max":${this.max.toString()}}`}fromString(t){return t?(this.copy(JSON.parse(t)),this):this}union(t){return t.validate()?(this.min.min(t.min),this.max.max(t.max),this):this}validate(){return this.min.validate()&&this.max.validate()}unproject(t){return this.applyMatrix3(t.projectionMatrixInverse).applyMatrix3(t.matrixWorld)}centralArrange(t=1,e=20,n=10,i){const r=e+n;i?Yp.copy(i):this.getCenter(Yp),this.getSize(Zp),Zp.subScalar(e);const s=Math.floor(Zp.x/r),a=s*r,o=Math.ceil(t/s)*r;if(Zp.x<r||Zp.y<r||a>=Zp.x||o>=Zp.y)return Yp.clone();let l=[],c=0,h=0;for(let e=0;e<t;e++){const e=s>t?t*r:a,n=Yp.x-e/2+h*r+r/2,i=Yp.y-o/2+c*r+r/2;l.push(new mp(n,i)),h++,h>=s&&(h=0,c++)}return l}flipY(){return Yp.copy(this.min).multiplyScalar(1,-1),Zp.copy(this.max).multiplyScalar(1,-1),this.min.set(Yp.x,Zp.y),this.max.set(Zp.x,Yp.y),this}}const Xp=[new mp,new mp,new mp,new mp],Yp=new mp,Zp=new mp,Kp=[],Jp=[],$p=[];class Qp{constructor(){d(this,"isMatrix3",!0),d(this,"elements",[1,0,0,0,1,0,0,0,1])}static equals(t,e,n=1e-6){if(t.elements.length!=e.elements.length)return!1;for(let i=0,r=t.elements.length;i<r;i++){const r=t.elements[i]-e.elements[i];if(Math.abs(r)>n)return!1}return!0}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}clone(){return(new Qp).fromArray(this.elements)}compose(t,e,n){const i=Math.sin(e.x),r=Math.cos(e.x);return this.set(n.x*r,n.y*i*-1,t.x,n.x*i,n.y*r,t.y,0,0,1)}composeWithCenter(t,e,n,i){return sf.identity(),af.makeTranslation(t.x,t.y),of.makeRotation(e.x),lf.makeScale(n.x,n.y),nf.copy(i).applyMatrix3(lf),sf.multiply(cf.makeTranslation(-nf.x,-nf.y)).multiply(af).multiply(cf.makeTranslation(nf.x,nf.y)).multiply(of).multiply(cf.makeTranslation(-nf.x,-nf.y)).multiply(lf),this.copy(sf)}decompose(t,e,n){const i=sf.copy(this).elements,r=Math.sqrt(i[0]*i[0]+i[3]*i[3]),s=Math.sqrt(i[1]*i[1]+i[4]*i[4]),a=i[0]*i[4]-i[3]*i[1];i[0]||i[3]?n.set(r,a/r):i[1]||i[4]?n.set(a/s,s):n.set(0,0);let o=0;o=i[0]||i[3]?i[3]>0?-Math.acos(i[0]/r):Math.acos(i[0]/r):i[1]||i[4]?Math.PI/2-(i[4]>0?Math.acos(-i[1]/s):-Math.acos(i[1]/s)):0,0!==o&&n.y<0&&(o*=-1),e.set(o,o),t.set(i[6],i[7])}compose2(t,e,n){return this.identity().translate(t.x,t.y).rotate(e.x).scale(n.x,n.y),this}decompose2(t,e,n){const i=this.clone();i.scale(-1,1);const r=i.elements[0],s=i.elements[1],a=i.elements[3],o=i.elements[4];let l=0,c=0,h=0;if(0!==r||0!==a){const t=Math.hypot(r,a);l=t,c=(r*o-s*a)/t;const e=Math.acos(r/t);h=a>0?-e:e}else if(0!==s||0!==o){const t=Math.hypot(s,o);l=(r*o-s*a)/t,c=t;const e=Math.acos(s/t);h=Math.PI/2+(o>0?-e:e)}else l=0,c=0,h=0;l=-l,t.x=i.elements[6],t.y=i.elements[7],e.x=e.y=h/Math.PI/180,n.x=l,n.y=c}composeSvgTransform(t=0,e=0,n,i=!1){if(!n&&!t&&!e)return this;this.identity(),sf.identity();let r=n.split(") ").map((t=>t.trim()+")")).filter((t=>")"!==t));return r||(r=[]),(t||e)&&r.push(`translate(${t},${e})`),r.forEach((t=>{const e=/scale\(\s*([^\s,)]+)[ ,]([^\s,)]+)/.exec(t),n=/rotate\(\s*(-?\d*\.?\d+)(?:[ ,](-?\d*\.?\d+)(?:[ ,](-?\d*\.?\d+))?)?\s*\)/.exec(t),i=/translate\(\s*([^\s,)]+)[ ,]([^\s,)]+)/.exec(t);if(e){const t=Number(e[1])||1,n=Number(e[2])||t;sf.multiply(lf.makeScale(t,n))}else if(n){const t=(Number(n[1])||0)*(Math.PI/180);Number(n[2])||Number(n[3])?(ef.set(Number(n[2]||"0"),Number(n[3]||"0")),sf.multiply(of.makeRotationByPoint(t,ef))):sf.multiply(of.makeRotation(t))}else i&&sf.multiply(af.makeTranslation(Number(i[1])||0,Number(i[2])||0))})),this.copy(sf),i&&this.premultiply(lf.makeScale(1,-1)),this}decomposeSvgMatrix(t,e,n){const i=sf.copy(this).elements;ef.set(i[0],i[1]),nf.set(i[3],i[4]);let r=ef.length();ef.normalize();let s=ef.dot(nf);rf.copy(ef).multiplyScalar(-s),nf.add(rf);const a=nf.length()||0;nf.normalize(),ef.x*nf.y<nf.x*ef.y&&(ef.x=-ef.x,ef.y=-ef.y,r=-r,s=-s);const o=r?Math.atan2(ef.y,ef.x):Math.atan2(-ef.x,nf.y);t.set(i[6],i[7]),e.set(o,o),n.set(r,a)}determinant(){const t=this.elements,e=t[0],n=t[3],i=t[6],r=t[1],s=t[4],a=t[7],o=t[2],l=t[5],c=t[8];return e*s*c-e*l*a-r*n*c+r*l*i+o*n*a-o*s*i}equals(t,e=0){const n=this.elements,i=t.elements;for(let t=0;t<9;t++)if(Math.abs(n[t]-i[t])>e)return!1;return!0}extractBasis2(t,e){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),this}flipY(){return this.premultiply(lf.makeScale(1,-1))}flipSvgY(){return this.elements[1]*=-1,this.elements[3]*=-1,this.elements[7]*=-1,this}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}getComponents(t=[1,0,0,1,0,0]){return t[0]=this.elements[0],t[1]=this.elements[1],t[2]=this.elements[3],t[3]=this.elements[4],t[4]=this.elements[6],t[5]=this.elements[7],t}fromComponents(t){return this}getNormalMatrix(t){return this.setFromMatrix(t).invert().transpose()}getRotation(t){let e=this.elements;const n=Math.sqrt(e[0]*e[0]+e[3]*e[3]),i=Math.sqrt(e[1]*e[1]+e[4]*e[4]);let r=0;r=e[0]||e[3]?e[3]>0?-Math.acos(e[0]/n):Math.acos(e[0]/n):e[1]||e[4]?Math.PI/2-(e[4]>0?Math.acos(-e[1]/i):-Math.acos(e[1]/i)):0,this.getScale(nf),0!==r&&nf.x<0&&(r*=-1),t.set(r,r)}getScale(t){let e=this.elements,n=Math.sqrt(e[0]*e[0]+e[1]*e[1]),i=Math.sqrt(e[3]*e[3]+e[4]*e[4]),r=e[0]*e[4]-e[3]*e[1];e[0]||e[1]?t.set(r/i,i):e[3]||e[4]?t.set(n,r/n):t.set(0,0)}getTransition(t){t.set(this.elements[6],this.elements[7])}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}hasChange(){for(let t=0,e=this.elements.length;t<e;t++)if(Math.abs(this.elements[t]-tf[t])>Number.EPSILON)return!0;return!1}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+n*u+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return t[0]=h*f,t[1]=(i*l-c*n)*f,t[2]=(a*n-i*s)*f,t[3]=u*f,t[4]=(c*e-i*o)*f,t[5]=(i*r-a*e)*f,t[6]=d*f,t[7]=(n*o-l*e)*f,t[8]=(s*e-n*r)*f,this}lookAt(t,e,n){return this.identity().rotate(e.angle()-t.angle()+n.angle())}makeProjection(t,e,n,i,r,s){const a=r/(e-t),o=s/(n-i),l=r/2-(e+t)*a,c=s/2+(n+i)*o;return this.elements[0]=a,this.elements[3]=0,this.elements[6]=l,this.elements[1]=0,this.elements[4]=-o,this.elements[7]=c,this.elements[2]=0,this.elements[5]=0,this.elements[8]=1,this}makeRotation(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeRotationByPoint(t,e){const n=Math.cos(t),i=Math.sin(t),r=-e.x*n+e.y*i+e.x,s=-e.x*i-e.y*n+e.y;return this.set(n,-i,r,i,n,s,0,0,1),this}makeRotationFromQuaternion(t){return this.compose(hf,t,uf)}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}makeTranslation(t,e){return this.set(1,0,t,0,1,e,0,0,1),this}multiply(t){return this.multiplyMatrices(this,t)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[3],o=n[6],l=n[1],c=n[4],h=n[7],u=n[2],d=n[5],p=n[8],f=i[0],m=i[3],g=i[6],v=i[1],_=i[4],y=i[7],x=i[2],b=i[5],M=i[8];return r[0]=s*f+a*v+o*x,r[3]=s*m+a*_+o*b,r[6]=s*g+a*y+o*M,r[1]=l*f+c*v+h*x,r[4]=l*m+c*_+h*b,r[7]=l*g+c*y+h*M,r[2]=u*f+d*v+p*x,r[5]=u*m+d*_+p*b,r[8]=u*g+d*y+p*M,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}premultiply(t){return this.multiplyMatrices(t,this)}rotate(t){return this.premultiply(of.makeRotation(-t))}scale(t,e){return this.premultiply(lf.makeScale(t,e))}set(t,e,n,i,r,s,a,o,l){return this.elements[0]=t,this.elements[3]=e,this.elements[6]=n,this.elements[1]=i,this.elements[4]=r,this.elements[7]=s,this.elements[2]=a,this.elements[5]=o,this.elements[8]=l,this}setFromDomMatrix(t){return void 0!==t.m11&&void 0!==t.m21&&void 0!==t.m41&&void 0!==t.m12&&void 0!==t.m22&&void 0!==t.m42&&void 0!==t.m14&&void 0!==t.m24&&void 0!==t.m44?this.set(t.m11,t.m21,t.m41,t.m12,t.m22,t.m42,t.m14,t.m24,t.m44):void 0!==t.a&&void 0!==t.b&&void 0!==t.c&&void 0!==t.d&&void 0!==t.e&&void 0!==t.f&&this.set(t.a,t.c,t.e,t.b,t.d,t.f,0,0,1),this}setFromMatrix(t){const e=t.elements;return this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this}setUvTransform(t,e,n,i,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*s+l*a)+s+t,-i*l,i*o,-i*(-l*s+o*a)+a+e,0,0,1),this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}toString(){return`[${this.elements[0]},${this.elements[1]}, ${this.elements[3]},${this.elements[4]}, ${this.elements[6]},${this.elements[7]}]`}translate(t,e){return this.premultiply(af.makeTranslation(t,e))}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}getTransformScaleX(){return Math.sqrt(this.elements[0]*this.elements[0]+this.elements[1]*this.elements[1])}getTransformScaleY(){return Math.sqrt(this.elements[3]*this.elements[3]+this.elements[4]*this.elements[4])}isTransformSkewed(){const t=this.elements[0]*this.elements[3]+this.elements[1]*this.elements[4];return 0!==t&&Math.abs(t/(this.getTransformScaleX()*this.getTransformScaleY()))>Number.EPSILON}isTransformFlipped(){return this.elements[0]*this.elements[4]-this.elements[1]*this.elements[3]<0}hasMirror(){return this.elements[0]*this.elements[4]-this.elements[1]*this.elements[3]<0}hasMirrorY(){return this.elements[0]<0&&this.elements[4]>0}hasMirrorX(){return this.elements[4]<0&&this.elements[0]>0}}const tf=[1,0,0,0,1,0,0,0,1],ef=new mp,nf=new mp,rf=new mp,sf=new Qp,af=new Qp,of=new Qp,lf=new Qp,cf=new Qp,hf=new mp(0,0,0),uf=new mp(1,1,1),df=["view"],pf=["viewer","mirror"];let ff=0;function mf(t,e=0,n=0,i=[]){var r,s;if(!t)return i;const a=function(t,e,n){if(!t)return n;let i=n;return"function"==typeof t.getAttribute?i=null==t?void 0:t.getAttribute(e):Object.hasOwnProperty.call(t,"attributes")&&(i=t.attributes[e]),i||n}(t,"id","");if(df.includes(t.nodeName)||"defs"===t.nodeName)return ff--,i;if(e&&ff>e)return i;let o;a&&!pf.includes(a)&&(o={label:a,value:a,children:[]},i.push(o)),ff++;for(let n=0,s=null==(r=t.childNodes)?void 0:r.length;n<s;n++)mf(t.childNodes[n],e,ff,o?o.children:i);return 0===(null==(s=null==o?void 0:o.children)?void 0:s.length)&&delete o.children,ff=n,i}function gf(t,e){var n;if(Array.isArray(t))for(let n=0,i=t.length||0;n<i;n++)gf(t[n],e);else if(e(t),null==(n=t.children)?void 0:n.length)for(let n=0,i=t.children.length;n<i;n++)gf(t.children[n],e)}function vf(t){var e,n,i;const r=[];if(!(null==(e=null==t?void 0:t.children)?void 0:e.length))return r;for(let e,s=0,a=(null==(n=null==t?void 0:t.children)?void 0:n.length)||0;s<a;s++)e=t.children[s],r.push(e),(null==(i=e.children)?void 0:i.length)&&r.push(...vf(e));return r}var _f=(t=>(t.GROS="gros",t.RM="rm",t.WS="ws",t.SU="su",t.EQ="eq",t.FN="fn",t.GL="gl",t.IP="ip",t))(_f||{}),yf=(t=>(t.BACKGROUND="background",t.BACKGROUND_LABELS="background-labels",t.ASSETS="assets",t.ANNOTATIONS="annotations",t.TEXT="text",t.ASSET_LABELS="asset-labels",t.LABELS="labels",t))(yf||{});class xf extends Dp{constructor(t=void 0){super(t),d(this,"viewportElement"),d(this,"instancedMesh",!1),d(this,"dpr",1)}setRequestHeader(t){return this.requestHeader=t,this}setInstancedMesh(t=!1){return this.instancedMesh=t,this}setPixelRatio(t){return this.dpr=t,this}parse(t,e=!0){const n=this;function i(t,e,n,i,s,a,o,l){var c;if(0==e||0==n)return void t.lineTo(l.x,l.y);i=i*Math.PI/180,e=Math.abs(e),n=Math.abs(n);const h=(o.x-l.x)/2,u=(o.y-l.y)/2,d=Math.cos(i)*h+Math.sin(i)*u,p=-Math.sin(i)*h+Math.cos(i)*u;let f=e*e,m=n*n;const g=d*d,v=p*p,_=g/f+v/m;if(_>1){const t=Math.sqrt(_);f=(e*=t)*e,m=(n*=t)*n}const y=f*v+m*g,x=(f*m-y)/y;let b=Math.sqrt(Math.max(0,x));s===a&&(b=-b);const M=b*e*p/n,S=-b*n*d/e,E=Math.cos(i)*M-Math.sin(i)*S+(o.x+l.x)/2,w=Math.sin(i)*M+Math.cos(i)*S+(o.y+l.y)/2,T=r(1,0,(d-M)/e,(p-S)/n),A=r((d-M)/e,(p-S)/n,(-d-M)/e,(-p-S)/n)%(2*Math.PI);null==(c=t.currentPath)||c.absellipse(E,w,e,n,T,T+A,0===a,i)}function r(t,e,n,i){const r=t*n+e*i,s=Math.sqrt(t*t+e*e)*Math.sqrt(n*n+i*i);let a=Math.acos(Math.max(-1,Math.min(1,r/s)));return t*i-e*n<0&&(a=-a),a}function s(t,e){var n;e=Object.assign({},e);let i={};if(t.hasAttribute("class")){const e=null==(n=t.getAttribute("class"))?void 0:n.split(/\s/).filter(Boolean).map((t=>t.trim()));for(let t=0,n=(null==e?void 0:e.length)||0;t<n;t++)i=Object.assign(i,T["."+e[t]])}function r(n,r,s){void 0===s&&(s=function(t){return t.startsWith("url"),t}),t.hasAttribute(n)&&(e[r]=s(t.getAttribute(n))),i[n]&&(e[r]=s(i[n])),t.style&&""!==t.style[n]&&(e[r]=s(t.style[n]))}t.hasAttribute("id")&&(i=Object.assign(i,T["#"+t.getAttribute("id")]));const{fontSize:s,strokeWidth:a}=e;function o(t){return Math.max(0,Math.min(1,u(t)))}function l(t){return Math.max(0,u(t,{fontSize:s}))}r("font-size","fontSize",l),r("fill","fill"),r("fill-opacity","fillOpacity",o),r("fill-rule","fillRule"),r("opacity","opacity",o),r("stroke","stroke"),r("stroke-opacity","strokeOpacity",o),r("stroke-width","strokeWidth",(function(t){return Math.max(0,u(t,{}))})),r("stroke-linejoin","strokeLineJoin"),r("stroke-linecap","strokeLineCap"),r("stroke-miterlimit","strokeMiterLimit",l),r("visibility","visibility");const c=t.getAttribute("stroke-width")||e.strokeWidth;return Mp.endsWith(c,"%")&&(e.thinLine=!0),e}function a(t,e){return t-(e-t)}function o(t,e,n){if("string"!=typeof t)throw new TypeError("Invalid input: "+typeof t);const i={WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};let r=0,s=!0,a="",o="";const l=[];function c(t,e,n){const i=new SyntaxError('Unexpected character "'+t+'" at index '+e+".");throw i.partial=n,i}function h(){""!==a&&(""===o?l.push(Number(a)):l.push(Number(a)*Math.pow(10,Number(o)))),a="",o=""}let u;const d=t.length;for(let p=0;p<d;p++)if(u=t[p],Array.isArray(e)&&e.includes(l.length%(n||0))&&i.FLAGS.test(u))r=1,a=u,h();else{if(0===r){if(i.WHITESPACE.test(u))continue;if(i.DIGIT.test(u)||i.SIGN.test(u)){r=1,a=u;continue}if(i.POINT.test(u)){r=2,a=u;continue}i.COMMA.test(u)&&(s&&c(u,p,l),s=!0)}if(1===r){if(i.DIGIT.test(u)){a+=u;continue}if(i.POINT.test(u)){a+=u,r=2;continue}if(i.EXP.test(u)){r=3;continue}i.SIGN.test(u)&&1===a.length&&i.SIGN.test(a[0])&&c(u,p,l)}if(2===r){if(i.DIGIT.test(u)){a+=u;continue}if(i.EXP.test(u)){r=3;continue}i.POINT.test(u)&&"."===a[a.length-1]&&c(u,p,l)}if(3===r){if(i.DIGIT.test(u)){o+=u;continue}if(i.SIGN.test(u)){if(""===o){o+=u;continue}1===o.length&&i.SIGN.test(o)&&c(u,p,l)}}i.WHITESPACE.test(u)?(h(),r=0,s=!1):i.COMMA.test(u)?(h(),r=0,s=!0):i.SIGN.test(u)?(h(),r=1,a=u):i.POINT.test(u)?(h(),r=2,a=u):c(u,p,l)}return h(),l}const l=["mm","cm","in","pt","pc","px","em","%"],c={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:12,pc:1,px:-1},px:{px:1},"%":{"%":1,px:-1}};function u(t,e){let i,r="px";if("string"==typeof t||t instanceof String){t=null==t?void 0:t.trim();for(let e=0,n=l.length;e<n;e++){const n=l[e];if(t.endsWith(n)){r=n,t=t.substring(0,t.length-n.length);break}}}if("px"===r&&"px"!==n.defaultUnit)i=c.in[n.defaultUnit]/n.defaultDPI;else if("%"===r){B.getSize(Sf),Mf.copy(L).getScale(Ef);const t=Math.abs(Ef.x||1);i=Sf.x/100*t}else"em"===r?i=(null==e?void 0:e.fontSize)||V:(i=c[r][n.defaultUnit],i<0&&(i=c[r].in*n.defaultDPI));return i*parseFloat(t)}function d(t){const e=t.elements;return e[0]*e[4]-e[1]*e[3]<0}function p(t){const e=t.elements,n=e[0]*e[3]+e[1]*e[4];if(0===n)return!1;const i=f(t),r=m(t);return Math.abs(n/(i*r))>Number.EPSILON}function f(t){const e=t.elements;return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function m(t){const e=t.elements;return Math.sqrt(e[3]*e[3]+e[4]*e[4])}function g(t){return Math.round(t*k*100)/100}function v(t){return Math.round(t*k*100)/100}function _(t){return Math.round(t*k*100)/100}function y(t){return Math.round(t*k*100)/100}function x(t,e="asset"){let n;const i="function"==typeof t.getAttribute?t.getAttribute("id"):"";if(!i&&t.parentNode)return x(t.parentNode,e);if(!i)return n;if("layer"===e)n=Z.find((t=>i===t));else{const t=null==i?void 0:i.replace(/-assets/g,"");n=Y.find((e=>t===e))}return!n&&t.parentNode&&(n=x(t.parentNode,e)),n}function b(t){let e;const n="function"==typeof t.getAttribute?t.getAttribute("id"):"";return e=!n&&t.parentNode?b(t.parentNode):n,e}function M(t,e){let n;const i=b(t);return n=t.parentNode&&b(t.parentNode),n&&i!==e||(n=M(t.parentNode,e)),n||i||""}function S(t){let e;return b(t),e="function"==typeof t.getAttribute?t.getAttribute("aid"):"",!e&&t.parentNode&&(e=S(t.parentNode)),e}const E=[],w=[],T={},A=[],C=new Ie,R=new Ie,P=new Ie,I=new Ie,N=new Pe,D=new rn,L=new Ie,U={},O={},F=[],B=new jp,z=new mp,k=1,V=16,H=(new DOMParser).parseFromString(t,"image/svg+xml");n.viewportElement=H.documentElement,function(t,e=new jp){if(!t)return e;let n=t.split(" "),i=Mp.map(n,(t=>parseFloat(t)));4!==(null==i?void 0:i.length)||(e.min.set(i[0],i[1]),e.max.set(i[0]+i[2],i[1]+i[3]))}(n.viewportElement.getAttribute("viewBox")||"",B);const G=H.getElementsByTagName("view"),W=(null==G?void 0:G.length)?G[0]:null,q=(null==W?void 0:W.getAttribute("units"))||"";B.getCenter(z);const j=mf(H.documentElement);let X=[];gf(j||[],(t=>{var e;if("assets"===t.label&&(null==(e=t.children)?void 0:e.length))for(let e,n=0,i=t.children.length;n<i;n++)e=t.children[n],e.label&&X.push(Mp.head(Mp.split(e.label,"-"))||"")})),X=Mp.uniq(Mp.compact(X));const Y=Mp.uniq(Mp.compact([...X,...Object.values(_f)])),Z=Object.values(yf);!function t(e,n,r,l=!1){var c;if(1!==e.nodeType)return;const U=function(t,e){if(!(t.hasAttribute("transform")||"use"===t.nodeName&&(t.hasAttribute("x")||t.hasAttribute("y"))||"text"===t.nodeName&&(t.hasAttribute("dx")||t.hasAttribute("dy"))))return null;const n=function(t,e){var n;const i=new Ie,r=C;if("use"===t.nodeName&&(t.hasAttribute("x")||t.hasAttribute("y"))){let e=u(t.getAttribute("x")),n=u(t.getAttribute("y"));i.translate(e,n)}else if("text"===t.nodeName&&(t.hasAttribute("dx")||t.hasAttribute("dy"))){let n=0,r=0;n=t.hasAttribute("dx")?u(t.getAttribute("dx")||0,{fontSize:null==e?void 0:e.fontSize}):0,r=t.hasAttribute("dy")?u(t.getAttribute("dy")||0,{fontSize:null==e?void 0:e.fontSize}):0,i.translate(n,r)}if(t.hasAttribute("transform")){const e=null==(n=t.getAttribute("transform"))?void 0:n.split(")");for(let t=((null==e?void 0:e.length)||0)-1;t>=0;t--){const n=e[t].trim();if(""===n)continue;const s=n.indexOf("("),a=n.length;if(s>0&&s<a){const t=n.slice(0,s),e=o(n.slice(s+1));switch(r.identity(),t){case"translate":if(e.length>=1){const t=e[0];let n=0;e.length>=2&&(n=e[1]),r.translate(t,n)}break;case"rotate":if(e.length>=1){let t=0,n=0,i=0;t=e[0]*Math.PI/180,e.length>=3&&(n=e[1],i=e[2]),R.makeTranslation(-n,-i),P.makeRotation(t),I.multiplyMatrices(P,R),R.makeTranslation(n,i),r.multiplyMatrices(R,I)}break;case"scale":if(e.length>=1){const t=e[0];let n=t;e.length>=2&&(n=e[1]),r.scale(t,n)}break;case"skewX":1===e.length&&r.set(1,Math.tan(e[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":1===e.length&&r.set(1,0,0,Math.tan(e[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":6===e.length&&r.set(e[0],e[2],e[4],e[1],e[3],e[5],0,0,1)}}i.premultiply(r)}}return i}(t,e);return A.length>0&&n.premultiply(A[A.length-1]),L.copy(n),A.push(n),n}(e,n);let F=!1,B=null,z=[];const k="function"==typeof e.getAttribute?e.getAttribute("id"):null;switch(e.nodeName){case"svg":case"g":n=s(e,n);break;case"style":!function(t){const e=t.textContent,n=null==e?void 0:e.replace(/\/\*[\s\S]*?\*\//g,""),i=null==n?void 0:n.replace(/([^;])}/g,"$1;}");if(!i)return;const r=[];let s="",a=0;for(const t of i)"{"===t?a++:"}"===t&&a--,s+=t,"}"===t&&0===a&&(r.push(s.trim()),s="");for(const t of r){if(!t.includes("{"))continue;const[e,n]=t.split(/\s*\{\s*/);if(!e||!n)continue;const i=e.split(",").map((t=>t.trim())).filter(Boolean),r={};n.replace(/}\s*$/,"").split(";").map((t=>t.trim())).filter(Boolean).forEach((t=>{const[e,n]=t.split(/:\s*/);if(e&&n){const t=n.replace(/\s*!important\s*$/,"").trim();r[e.trim()]=t}})),i.forEach((t=>{t&&(T[t]=h(h({},T[t]||{}),r))}))}}(e);break;case"path":n=s(e,n),e.hasAttribute("d")&&(B=function(t,e=!1){const n=new po,r=new mp,s=new mp,l=new mp;let c=!0,h=!1;const u=t.getAttribute("d");if(!u||""===u||"none"===u)return null;const d=u.match(/[a-df-z][^a-df-z]*/gi);if(!(null==d?void 0:d.length))return null;for(let t=0,u=(null==d?void 0:d.length)||0;t<u;t++){const u=d[t],p=u.charAt(0),f=u.slice(1).trim();let m;switch(!0===c&&(h=!0,c=!1),p){case"M":m=o(f);for(let t=0,i=m.length;t<i;t+=2)r.x=e?m[t]:g(m[t]),r.y=e?m[t+1]:v(m[t+1]),s.x=r.x,s.y=r.y,0===t?n.moveTo(r.x,r.y):n.lineTo(r.x,r.y),0===t&&l.copy(r);break;case"H":m=o(f);for(let t=0,i=m.length;t<i;t++)r.x=e?m[t]:g(m[t]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"V":m=o(f);for(let t=0,i=m.length;t<i;t++)r.y=e?m[t]:v(m[t]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"L":m=o(f);for(let t=0,i=m.length;t<i;t+=2)r.x=e?m[t]:g(m[t]),r.y=e?m[t+1]:v(m[t+1]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"C":m=o(f);for(let t,i=0,a=m.length;i<a;i+=6)t=e?[m[i],m[i+1],m[i+2],m[i+3],m[i+4],m[i+5]]:[g(m[i]),v(m[i+1]),g(m[i+2]),v(m[i+3]),g(m[i+4]),v(m[i+5])],n.bezierCurveTo(...t),s.x=t[2],s.y=t[3],r.x=t[4],r.y=t[5],0===i&&!0===h&&l.copy(r);break;case"S":m=o(f);for(let t,i=0,o=m.length;i<o;i+=4)t=e?[m[i],m[i+1],m[i+2],m[i+3]]:[g(m[i]),v(m[i+1]),g(m[i+2]),v(m[i+3])],n.bezierCurveTo(a(r.x,s.x),a(r.y,s.y),t[0],t[1],t[2],t[3]),s.x=t[0],s.y=t[1],r.x=t[2],r.y=t[3],0===i&&!0===h&&l.copy(r);break;case"Q":m=o(f);for(let t,i=0,a=m.length;i<a;i+=4)t=e?[m[i],m[i+1],m[i+2],m[i+3]]:[g(m[i]),v(m[i+1]),g(m[i+2]),v(m[i+3])],n.quadraticCurveTo(t[0],t[1],t[2],t[3]),s.x=t[0],s.y=t[1],r.x=t[2],r.y=t[3],0===i&&!0===h&&l.copy(r);break;case"T":m=o(f);for(let t,i=0,o=m.length;i<o;i+=2){const o=a(r.x,s.x),c=a(r.y,s.y);t=e?[m[i],m[i+1]]:[g(m[i]),v(m[i+1])],n.quadraticCurveTo(o,c,t[0],t[1]),s.x=o,s.y=c,r.x=t[0],r.y=t[1],0===i&&!0===h&&l.copy(r)}break;case"A":m=o(f,[3,4],7);for(let t,a=0,o=m.length;a<o;a+=7){if(t=e?[m[a],m[a+1],m[a+2],m[a+3],m[a+4],m[a+5],m[a+6]]:[g(m[a]),v(m[a+1]),m[a+2],m[a+3],m[a+4],_(m[a+5]),y(m[a+6])],t[5]==r.x&&t[6]==r.y)continue;const o=r.clone();r.x=t[5],r.y=t[6],s.x=r.x,s.y=r.y,i(n,t[a],t[1],t[2],t[3],t[4],o,r),0===a&&!0===h&&l.copy(r)}break;case"m":m=o(f);for(let t=0,i=m.length;t<i;t+=2)r.x+=e?m[t]:_(m[t]),r.y+=e?m[t+1]:y(m[t+1]),s.x=r.x,s.y=r.y,0===t?n.moveTo(r.x,r.y):n.lineTo(r.x,r.y),0===t&&l.copy(r);break;case"h":m=o(f);for(let t=0,i=m.length;t<i;t++)r.x+=e?m[t]:_(m[t]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"v":m=o(f);for(let t=0,i=m.length;t<i;t++)r.y+=e?m[t]:y(m[t]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"l":m=o(f);for(let t=0,i=m.length;t<i;t+=2)r.x+=e?m[t]:_(m[t]),r.y+=e?m[t+1]:y(m[t+1]),s.x=r.x,s.y=r.y,n.lineTo(r.x,r.y),0===t&&!0===h&&l.copy(r);break;case"c":m=o(f);for(let t,i=0,a=m.length;i<a;i+=6)t=e?[m[i],m[i+1],m[i+2],m[i+3],m[i+4],m[i+5]]:[_(m[i]),y(m[i+1]),_(m[i+2]),y(m[i+3]),_(m[i+4]),y(m[i+5])],n.bezierCurveTo(r.x+t[0],r.y+t[1],r.x+t[2],r.y+t[3],r.x+t[4],r.y+t[5]),s.x=r.x+t[2],s.y=r.y+t[3],r.x+=t[4],r.y+=t[5],0===i&&!0===h&&l.copy(r);break;case"s":m=o(f);for(let t,i=0,o=m.length;i<o;i+=4)t=e?[m[i],m[i+1],m[i+2],m[i+3]]:[_(m[i]),y(m[i+1]),_(m[i+2]),y(m[i+3])],n.bezierCurveTo(a(r.x,s.x),a(r.y,s.y),r.x+t[0],r.y+t[1],r.x+t[2],r.y+t[3]),s.x=r.x+t[0],s.y=r.y+t[1],r.x+=t[2],r.y+=t[3],0===i&&!0===h&&l.copy(r);break;case"q":m=o(f);for(let t,i=0,a=m.length;i<a;i+=4)t=e?[m[i],m[i+1],m[i+2],m[i+3]]:[_(m[i]),y(m[i+1]),_(m[i+2]),y(m[i+3])],n.quadraticCurveTo(r.x+t[0],r.y+t[1],r.x+t[2],r.y+t[3]),s.x=r.x+t[0],s.y=r.y+t[1],r.x+=t[2],r.y+=t[3],0===i&&!0===h&&l.copy(r);break;case"t":m=o(f);for(let t,i=0,o=m.length;i<o;i+=2){const o=a(r.x,s.x),c=a(r.y,s.y);t=e?[m[i],m[i+1]]:[_(m[i]),y(m[i+1])],n.quadraticCurveTo(o,c,r.x+t[0],r.y+t[1]),s.x=o,s.y=c,r.x=r.x+t[0],r.y=r.y+t[1],0===i&&!0===h&&l.copy(r)}break;case"a":m=o(f,[3,4],7);for(let t,a=0,o=m.length;a<o;a+=7){if(t=e?[m[a],m[a+1],m[a+2],m[a+3],m[a+4],m[a+5],m[a+6]]:[_(m[a]),y(m[a+1]),m[a+2],m[a+3],m[a+4],_(m[a+5]),y(m[a+6])],0==t[5]&&0==t[6])continue;const o=r.clone();r.x+=t[5],r.y+=t[6],s.x=r.x,s.y=r.y,i(n,t[0],t[1],t[2],t[3],t[4],o,r),0===a&&!0===h&&l.copy(r)}break;case"Z":case"z":n.currentPath.autoClose=!0,n.currentPath.curves.length>0&&(r.copy(l),n.currentPath.currentPoint.copy(r),c=!0)}h=!1}return n}(e,l));break;case"rect":n=s(e,n),B=function(t,e=!1){let n=u(t.getAttribute("x")||0),i=u(t.getAttribute("y")||0),r=u(t.getAttribute("rx")||t.getAttribute("ry")||0),s=u(t.getAttribute("ry")||t.getAttribute("rx")||0),a=u(t.getAttribute("width")),o=u(t.getAttribute("height"));e||(n=g(n),i=v(i),r=_(r),s=y(s),a=_(a),o=y(o));const l=.448084975506,c=new po;return c.moveTo(n+r,i),c.lineTo(n+a-r,i),(0!==r||0!==s)&&c.bezierCurveTo(n+a-r*l,i,n+a,i+s*l,n+a,i+s),c.lineTo(n+a,i+o-s),(0!==r||0!==s)&&c.bezierCurveTo(n+a,i+o-s*l,n+a-r*l,i+o,n+a-r,i+o),c.lineTo(n+r,i+o),(0!==r||0!==s)&&c.bezierCurveTo(n+r*l,i+o,n,i+o-s*l,n,i+o-s),c.lineTo(n,i+s),(0!==r||0!==s)&&c.bezierCurveTo(n,i+s*l,n+r*l,i,n+r,i),c}(e,l);break;case"polygon":n=s(e,n),B=function(t,e=!1){var n;function i(t,n,i){const r=e?u(n):g(u(n)),o=e?u(i):v(u(i));return 0===a?s.moveTo(r,o):s.lineTo(r,o),a++,t}const r=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,s=new po;let a=0;return null==(n=t.getAttribute("points"))||n.replace(r,i),s.currentPath.autoClose=!0,s}(e,l);break;case"polyline":n=s(e,n),B=function(t,e=!1){var n;function i(t,n,i){const r=e?u(n):g(u(n)),o=e?u(i):v(u(i));return 0===a?s.moveTo(r,o):s.lineTo(r,o),a++,t}const r=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,s=new po;let a=0;return null==(n=t.getAttribute("points"))||n.replace(r,i),s.currentPath.autoClose=!1,s}(e,l);break;case"circle":n=s(e,n),B=function(t,e=!1){let n=u(t.getAttribute("cx")||0),i=u(t.getAttribute("cy")||0),r=u(t.getAttribute("r")||0);e||(n=g(n),i=v(i),r=_(r));const s=new _s;s.absarc(n,i,r,0,2*Math.PI);const a=new po;return a.subPaths.push(s),a}(e,l);break;case"ellipse":n=s(e,n),B=function(t,e=!1){let n=u(t.getAttribute("cx")||0),i=u(t.getAttribute("cy")||0),r=u(t.getAttribute("rx")||0),s=u(t.getAttribute("ry")||0);e||(n=g(n),i=v(i),r=_(r),s=y(s));const a=new _s;a.absellipse(n,i,r,s,0,2*Math.PI);const o=new po;return o.subPaths.push(a),o}(e,l);break;case"line":n=s(e,n),B=function(t,e=!1){let n=u(t.getAttribute("x1")||0),i=u(t.getAttribute("y1")||0),r=u(t.getAttribute("x2")||0),s=u(t.getAttribute("y2")||0);e||(n=g(n),i=v(i),r=g(r),s=v(s));const a=new po;return a.moveTo(n,i),a.lineTo(r,s),a.currentPath.autoClose=!1,a}(e,l);break;case"defs":F=!0;break;case"use":const c=(e.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),d=O[c];d&&(n=s(e,n),void 0===(n=s(d,n)).assetType&&(n.assetType=x(e)),void 0===n.layerType&&(n.layerType=x(e,"layer")),t(d,n,k||r,l));break;case"text":n=s(e,n),B=function(t,e){parseFloat(t.getAttribute("x")||"0"),parseFloat(t.getAttribute("y")||"0");const n=t.textContent;if(!n||!e.fontSize)return;const i=Object.assign({},e);return i.fill=t.getAttribute("fill")||e.fill||"#000",i.fontSize=parseFloat(t.getAttribute("font-size")||e.fontSize||"72"),i.fontFamily=t.getAttribute("font-family")||e.fontFamily||"Arial",{type:"text",textContent:n,style:i,color:new Ti,subPaths:[],userData:{}}}(e,n)}if(B){void 0!==n.fill&&"transparent"===n.fill||void 0!==n.fill&&"none"!==n.fill&&B.color.setStyle(n.fill,bf);const t=n.assetType||x(e),i=n.layerType||x(e,"layer");if(B.userData={pid:r,id:k||r,nodeName:e.nodeName,layerType:i,assetType:t,style:n},"text"===e.nodeName){r||Mp.set(B,"userData.pid",b(e)),B.userData.textContent=e.textContent,B.transform=Mp.cloneDeep(L),B.userData.id=Mp.get(B,"userData.pid"),Mp.set(B,"userData.pid",M(e,r));const t=S(e);t?Mp.set(B,"userData.aid",t):Mp.set(B,"userData.aid",Mp.split(null==(c=B.userData)?void 0:c.id,"-").splice(2).join("-")),E.find((t=>t.userData.id===B.userData.aid))}else!function(t,e){function n(t){D.set(t.x,t.y,1).applyMatrix3(e),t.set(D.x,D.y)}function i(t){const n=t.xRadius,i=t.yRadius,r=Math.cos(t.aRotation),s=Math.sin(t.aRotation),a=new Sd(n*r,n*s,0),o=new Sd(-i*s,i*r,0),l=a.applyMatrix3(e),c=o.applyMatrix3(e),h=C.set(l.x,c.x,0,l.y,c.y,0,0,0,1),u=R.copy(h).invert(),p=P.copy(u).transpose().multiply(u).elements,f=function(t,e,n){let i,r,s,a,o;const l=t+n,c=t-n,h=Math.sqrt(c*c+4*e*e);return l>0?(i=.5*(l+h),o=1/i,r=t*o*n-e*o*e):l<0?r=.5*(l-h):(i=.5*h,r=-.5*h),s=c>0?c+h:c-h,Math.abs(s)>2*Math.abs(e)?(o=-2*e/s,a=1/Math.sqrt(1+o*o),s=o*a):0===Math.abs(e)?(s=1,a=0):(o=-.5*s/e,s=1/Math.sqrt(1+o*o),a=o*s),c>0&&(o=s,s=-a,a=o),{rt1:i,rt2:r,cs:s,sn:a}}(p[0],p[1],p[4]),m=Math.sqrt(f.rt1),g=Math.sqrt(f.rt2);if(t.xRadius=1/m,t.yRadius=1/g,t.aRotation=Math.atan2(f.sn,f.cs),!((t.aEndAngle-t.aStartAngle)%(2*Math.PI)<Number.EPSILON)){const n=R.set(m,0,0,0,g,0,0,0,1),i=P.set(f.cs,f.sn,0,-f.sn,f.cs,0,0,0,1),r=n.multiply(i).multiply(h),s=t=>{const{x:e,y:n}=new Sd(Math.cos(t),Math.sin(t),0).applyMatrix3(r);return Math.atan2(n,e)};t.aStartAngle=s(t.aStartAngle),t.aEndAngle=s(t.aEndAngle),d(e)&&(t.aClockwise=!t.aClockwise)}}function r(t){const n=f(e),i=m(e);t.xRadius*=n,t.yRadius*=i;const r=n>Number.EPSILON?Math.atan2(e.elements[1],e.elements[0]):Math.atan2(-e.elements[3],e.elements[4]);t.aRotation+=r,d(e)&&(t.aStartAngle*=-1,t.aEndAngle*=-1,t.aClockwise=!t.aClockwise)}const s=t.subPaths;for(let t=0,a=(null==s?void 0:s.length)||0;t<a;t++){const a=s[t].curves;for(let t=0;t<a.length;t++){const s=a[t];s.isLineCurve?(n(s.v1),n(s.v2)):s.isCubicBezierCurve?(n(s.v0),n(s.v1),n(s.v2),n(s.v3)):s.isQuadraticBezierCurve?(n(s.v0),n(s.v1),n(s.v2)):s.isEllipseCurve&&(N.set(s.aX,s.aY),n(N),s.aX=N.x,s.aY=N.y,p(e)?i(s):r(s))}}}(B,L);"text"!==e.nodeName?E.push(B):"text"===e.nodeName&&w.push(B)}const V=e.childNodes,H="symbol"===e.nodeName?r:k;for(let e=0,i=(null==V?void 0:V.length)||0;e<i;e++){const i=V[e];if(F){const t="function"==typeof i.getAttribute?i.getAttribute("id"):null;"symbol"===i.nodeName&&t&&(O[t]=i)}if(F&&"style"!==i.nodeName&&"defs"!==i.nodeName)continue;let r=t(i,n,H,l);r&&z.push(r)}return U&&(A.pop(),A.length>0?L.copy(A[A.length-1]):L.identity()),B||((null==z?void 0:z.length)?z:void 0)}(H.documentElement,{fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4,fontSize:V});for(let t in U)U[t].len=Mp.sumBy(F,(e=>e.symbolId===t?1:0));return F.forEach((t=>{var e;return t.len=null==(e=U[t.symbolId])?void 0:e.len})),{xml:H.documentElement,viewBox:B,paths:E,labels:w,idsTree:j,assetTypes:X,symbolsMap:U,uses:F,units:q}}}const bf=re,Mf=new Qp;new Ie,new rp;const Sf=new mp,Ef=new Pe;new Sd,new Sd,new Sd,new Sd;class wf extends Sr{constructor(t={}){super(),d(this,"name","EmptyScene3"),d(this,"isDynamic",!0),d(this,"lights"),d(this,"g",new xr),this.lights=new Ep(t),this.lights.bindScene(this),this.init(),this.userData.boundingBox=new Ed(new Sd(-300,-300,0),new Sd(300,300,0))}destroy(){}init(){return p(this,null,(function*(){}))}initFont(t){if(!t)return;const e=new Sp("EMPTY",{font:t,size:20,depth:2});e.computeBoundingBox();const n=-.5*(e.boundingBox.max.x-e.boundingBox.min.x),i=new ra({color:16711680,specular:328965,shininess:50,emissive:0}),r=new ir(e,i);r.position.x=n,this.g.add(r),this.add(this.g)}update(t){Cf+=.003*Tf,Cf>Af?Tf=-1:Cf<-.5&&(Tf=1),this.g.rotation.y=Cf}}let Tf=1,Af=.5,Cf=0;class Rf{constructor(){d(this,"_listeners",new Map)}destroy(){this._listeners.clear()}addEventListener(t,e){let n=this._listeners.get(t);n||(n=[],this._listeners.set(t,n)),n.includes(e)||n.push(e)}addEventListeners(t,e){const n=t.split(","),i=n.length;for(let t=0;t<i;t++)this.addEventListener(n[t].trim(),e)}isListening(t){var e;return this._listeners.has(t)&&!!(null==(e=this._listeners.get(t))?void 0:e.length)}hasEventListener(t,e){var n;return 0!==this._listeners.size&&this._listeners.has(t)&&!!(null==(n=this._listeners.get(t))?void 0:n.includes(e))}removeEventListener(t,e){const n=this._listeners.get(t);if(n){const t=n.indexOf(e);t>-1&&n.splice(t,1)}}dispatchEvent(t){const e=this._listeners.get(t.type);if(e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=void 0}}dispatchEventAsync(t){const e=this._listeners.get(t.type);e&&setTimeout((()=>{for(const n of e)n.call(this,t)}))}}class Pf extends Rf{constructor(){super(),d(this,"xml"),d(this,"paths"),d(this,"symbolsMap"),d(this,"uses"),d(this,"labels"),d(this,"idsTree"),d(this,"idsMap",{}),d(this,"boundingBox",new jp),d(this,"_resourcesMap"),d(this,"scene")}destroy(){super.destroy(),this.xml=void 0,this._resourcesMap=void 0,this.boundingBox.makeEmpty(),this.scene=void 0}init(t={}){return this.params=t,this}initResources(t){this.xml=null==t?void 0:t.xml,this.paths=null==t?void 0:t.paths,this.symbolsMap=null==t?void 0:t.symbolsMap,this.uses=null==t?void 0:t.uses,this.labels=null==t?void 0:t.labels,this.idsTree=null==t?void 0:t.idsTree,this.recomputeIdsMap()}recomputeIdsMap(){var t;if(!(null==(t=this.idsTree)?void 0:t.length))return;const e=[];gf(this.idsTree,(t=>{var n;if(e.push(t.value),!(null==(n=t.children)?void 0:n.length))return;const i=vf(t);this.idsMap[t.value]=Mp.map(i,"value")}))}getAllChildrenById(t,e=[]){if(!t)return e;if(Array.isArray(t)){for(let n=0,i=t.length||0;n<i;n++)this.getAllChildrenById(t[n],e);return e}return this.idsMap.hasOwnProperty(t)&&e.push(...this.idsMap[t]),e.push(t),e}bindScene(t){this.scene=t}unbindScene(){this.scene=void 0}getLayers(t=2){return this.xml?mf(this.xml,t):[]}updateLayersVisibility(t,e=!1){if(!this.scene)throw new Error("please bind a Scene first");this.scene.traverse((n=>{var i,r;(null==(i=n.userData)?void 0:i.id)&&t.includes(n.userData.id)?n.visible=e:(null==(r=n.userData)?void 0:r.id)&&(n.visible=!e)})),this.scene.userData.version=(this.scene.userData.version||0)+1}}const If={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\n\t\t}"};class Nf{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){}dispose(){}}const Df=new Fa(-1,1,1,-1,0,1),Lf=new class extends qi{constructor(){super(),this.setAttribute("position",new Fi([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new Fi([0,2,0,0,2,0],2))}};class Uf{constructor(t){this._mesh=new ir(Lf,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,Df)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}class Of extends Nf{constructor(t,e="tDiffuse"){super(),this.textureID=e,this.uniforms=null,this.material=null,t instanceof hr?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=cr.clone(t.uniforms),this.material=new hr({name:void 0!==t.name?t.name:"unspecified",defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this._fsQuad=new Uf(this.material)}render(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?(t.setRenderTarget(null),this._fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this._fsQuad.render(t))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class Ff extends Nf{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){const i=t.getContext(),r=t.state;let s,a;r.buffers.color.setMask(!1),r.buffers.depth.setMask(!1),r.buffers.color.setLocked(!0),r.buffers.depth.setLocked(!0),this.inverse?(s=0,a=1):(s=1,a=0),r.buffers.stencil.setTest(!0),r.buffers.stencil.setOp(i.REPLACE,i.REPLACE,i.REPLACE),r.buffers.stencil.setFunc(i.ALWAYS,s,4294967295),r.buffers.stencil.setClear(a),r.buffers.stencil.setLocked(!0),t.setRenderTarget(n),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),r.buffers.color.setLocked(!1),r.buffers.depth.setLocked(!1),r.buffers.color.setMask(!0),r.buffers.depth.setMask(!0),r.buffers.stencil.setLocked(!1),r.buffers.stencil.setFunc(i.EQUAL,1,4294967295),r.buffers.stencil.setOp(i.KEEP,i.KEEP,i.KEEP),r.buffers.stencil.setLocked(!0)}}class Bf extends Nf{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class zf{constructor(t,e){if(this.renderer=t,this._pixelRatio=t.getPixelRatio(),void 0===e){const n=t.getSize(new Pe);this._width=n.width,this._height=n.height,(e=new Qe(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:ot})).texture.name="EffectComposer.rt1"}else this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new Of(If),this.copyPass.material.blending=0,this.clock=new Ha}swapBuffers(){const t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){const e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e<this.passes.length;e++)if(this.passes[e].enabled)return!1;return!0}render(t){void 0===t&&(t=this.clock.getDelta());const e=this.renderer.getRenderTarget();let n=!1;for(let e=0,i=this.passes.length;e<i;e++){const i=this.passes[e];if(!1!==i.enabled){if(i.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(e),i.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),i.needsSwap){if(n){const e=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(e.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,t),n.setFunc(e.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==Ff&&(i instanceof Ff?n=!0:i instanceof Bf&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){const e=this.renderer.getSize(new Pe);this._pixelRatio=this.renderer.getPixelRatio(),this._width=e.width,this._height=e.height,(t=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(t,e){this._width=t,this._height=e;const n=this._width*this._pixelRatio,i=this._height*this._pixelRatio;this.renderTarget1.setSize(n,i),this.renderTarget2.setSize(n,i);for(let t=0;t<this.passes.length;t++)this.passes[t].setSize(n,i)}setPixelRatio(t){this._pixelRatio=t,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class kf extends Nf{constructor(t,e,n=null,i=null,r=null){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=i,this.clearAlpha=r,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new Ti}render(t,e,n){const i=t.autoClear;let r,s;t.autoClear=!1,null!==this.overrideMaterial&&(s=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),null!==this.clearColor&&(t.getClearColor(this._oldClearColor),t.setClearColor(this.clearColor,t.getClearAlpha())),null!==this.clearAlpha&&(r=t.getClearAlpha(),t.setClearAlpha(this.clearAlpha)),1==this.clearDepth&&t.clearDepth(),t.setRenderTarget(this.renderToScreen?null:n),!0===this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),t.render(this.scene,this.camera),null!==this.clearColor&&t.setClearColor(this._oldClearColor),null!==this.clearAlpha&&t.setClearAlpha(r),null!==this.overrideMaterial&&(this.scene.overrideMaterial=s),t.autoClear=i}}class Vf extends Ca{constructor(t){super(t)}load(t,e,n,i){const r=this,s=new Ia(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,(function(t){const n=r.parse(JSON.parse(t));e&&e(n)}),n,i)}parse(t){return new Hf(t)}}class Hf{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100){const n=[],i=function(t,e,n){const i=Array.from(t),r=e/n.resolution,s=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*r,a=[];let o=0,l=0;for(let t=0;t<i.length;t++){const e=i[t];if("\n"===e)o=0,l-=s;else{const t=Gf(e,r,o,l,n);o+=t.offsetX,a.push(t.path)}}return a}(t,e,this.data);for(let t=0,e=i.length;t<e;t++)n.push(...i[t].toShapes());return n}}function Gf(t,e,n,i,r){const s=r.glyphs[t]||r.glyphs["?"];if(!s)return;const a=new po;let o,l,c,h,u,d,p,f;if(s.o){const t=s._cachedOutline||(s._cachedOutline=s.o.split(" "));for(let r=0,s=t.length;r<s;)switch(t[r++]){case"m":o=t[r++]*e+n,l=t[r++]*e+i,a.moveTo(o,l);break;case"l":o=t[r++]*e+n,l=t[r++]*e+i,a.lineTo(o,l);break;case"q":c=t[r++]*e+n,h=t[r++]*e+i,u=t[r++]*e+n,d=t[r++]*e+i,a.quadraticCurveTo(u,d,c,h);break;case"b":c=t[r++]*e+n,h=t[r++]*e+i,u=t[r++]*e+n,d=t[r++]*e+i,p=t[r++]*e+n,f=t[r++]*e+i,a.bezierCurveTo(u,d,p,f,c,h)}}return{offsetX:s.ha*e,path:a}}class Wf extends xe{constructor(){super(),d(this,"oriScene"),d(this,"desScene"),d(this,"mixer"),d(this,"selectedAction"),d(this,"_selectedClip"),d(this,"_selectedIds",[]);const t=new ma(".dynamicFill",[0,1.2,2],[.95,.38,.38,.5,.95,.68,.68,.5,.95,.38,.38,.5]);this._selectedClip=new Sa("selected",3,[t])}destroy(){}init(t={}){this.params=t}bindScene(t,e){var n;this.oriScene=t,this.desScene=e,this.desScene&&(this.mixer=new to(this.desScene),this.selectedAction=null==(n=this.mixer)?void 0:n.clipAction(this._selectedClip,this.desScene))}clearSelected(t){if(this.desScene&&(!t||!t.length))for(let t=0,e=this._selectedIds.length;t<e;t++);}selectByIds(t,e){this.oriScene&&this.desScene}}class qf extends Sr{constructor(t={}){super(),d(this,"name","AnimateScene"),d(this,"params"),d(this,"isDynamic",!0),d(this,"lights"),d(this,"central"),this.params=t,this.lights=new Ep(t),this.lights.bindScene(this),this.central=function(t={}){const{color:e=15599624,radius:n=10,opacity:i=1}=t,r=new $s(n,0),s=new ra({color:e});s.transparent=!0,s.opacity=i,s.depthTest=!0,s.depthWrite=!1;const a=new ir(r,s);return a.name="CentralMarker",a}({radius:68,color:16711680,opacity:.8}),this.add(this.central),this.central.position.setZ(50)}destroy(){}init(t={}){this.params=t}update(t){const e=3e-4*(t||0);this.central.rotation.z=e}}const jf={name:"OutputShader",uniforms:{tDiffuse:{value:null},toneMappingExposure:{value:1}},vertexShader:"\n\t\tprecision highp float;\n\n\t\tuniform mat4 modelViewMatrix;\n\t\tuniform mat4 projectionMatrix;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tprecision highp float;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\t#include <tonemapping_pars_fragment>\n\t\t#include <colorspace_pars_fragment>\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = texture2D( tDiffuse, vUv );\n\n\t\t\t// tone mapping\n\n\t\t\t#ifdef LINEAR_TONE_MAPPING\n\n\t\t\t\tgl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( REINHARD_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( CINEON_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( ACES_FILMIC_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( AGX_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( NEUTRAL_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb );\n\n\t\t\t#elif defined( CUSTOM_TONE_MAPPING )\n\n\t\t\t\tgl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb );\n\n\t\t\t#endif\n\n\t\t\t// color space\n\n\t\t\t#ifdef SRGB_TRANSFER\n\n\t\t\t\tgl_FragColor = sRGBTransferOETF( gl_FragColor );\n\n\t\t\t#endif\n\n\t\t}"};class Xf extends Nf{constructor(){super(),this.uniforms=cr.clone(jf.uniforms),this.material=new na({name:jf.name,uniforms:this.uniforms,vertexShader:jf.vertexShader,fragmentShader:jf.fragmentShader}),this._fsQuad=new Uf(this.material),this._outputColorSpace=null,this._toneMapping=null}render(t,e,n){this.uniforms.tDiffuse.value=n.texture,this.uniforms.toneMappingExposure.value=t.toneMappingExposure,this._outputColorSpace===t.outputColorSpace&&this._toneMapping===t.toneMapping||(this._outputColorSpace=t.outputColorSpace,this._toneMapping=t.toneMapping,this.material.defines={},Ve.getTransfer(this._outputColorSpace)===oe&&(this.material.defines.SRGB_TRANSFER=""),1===this._toneMapping?this.material.defines.LINEAR_TONE_MAPPING="":2===this._toneMapping?this.material.defines.REINHARD_TONE_MAPPING="":3===this._toneMapping?this.material.defines.CINEON_TONE_MAPPING="":4===this._toneMapping?this.material.defines.ACES_FILMIC_TONE_MAPPING="":6===this._toneMapping?this.material.defines.AGX_TONE_MAPPING="":7===this._toneMapping?this.material.defines.NEUTRAL_TONE_MAPPING="":5===this._toneMapping&&(this.material.defines.CUSTOM_TONE_MAPPING=""),this.material.needsUpdate=!0),!0===this.renderToScreen?(t.setRenderTarget(null),this._fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this._fsQuad.render(t))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}const Yf={uniforms:{tDiffuse:{value:null},tDepth:{value:null},currentProjectionMatrix:{value:new Ln},currentViewMatrix:{value:new Ln},previousProjectionMatrix:{value:new Ln},previousViewMatrix:{value:new Ln},cameraNear:{value:.1},cameraFar:{value:1e3}},vertexShader:"\nvarying vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = vec4(position.xy, 0.0, 1.0);\n}\n ",fragmentShader:"\nuniform sampler2D tDiffuse;\nuniform sampler2D tDepth;\nuniform mat4 currentProjectionMatrix;\nuniform mat4 currentViewMatrix;\nuniform mat4 previousProjectionMatrix;\nuniform mat4 previousViewMatrix;\nuniform float cameraNear;\nuniform float cameraFar;\nvarying vec2 vUv;\n\nfloat linearizeDepth(float depth) {\n float z = depth * 2.0 - 1.0;\n return (2.0 * cameraNear * cameraFar) / (cameraFar + cameraNear - z * (cameraFar - cameraNear));\n}\nvec3 reconstructViewPosition(vec2 uv, float depth) {\n vec3 ndc = vec3(uv.x * 2.0 - 1.0, uv.y * 2.0 - 1.0, depth * 2.0 - 1.0);\n vec4 viewPos = inverse(currentProjectionMatrix) * vec4(ndc, 1.0);\n return viewPos.xyz / viewPos.w;\n}\n\nvoid main() {\n float depth = texture2D(tDepth, vUv).r;\n float linearDepth = linearizeDepth(depth);\n\n vec3 viewPos = reconstructViewPosition(vUv, depth);\n\n vec4 worldPos = inverse(currentViewMatrix) * vec4(viewPos, 1.0);\n\n vec4 prevClipPos = previousProjectionMatrix * previousViewMatrix * worldPos;\n\n vec3 prevNDC = prevClipPos.xyz / prevClipPos.w;\n vec2 pUv = prevNDC.xy * 0.5 + 0.5;\n\n if (pUv.x < 0.0 || pUv.x > 1.0 || pUv.y < 0.0 || pUv.y > 1.0) {\n gl_FragColor = vec4(0.0);\n return;\n }\n\n vec4 color = texture2D(tDiffuse, pUv);\n gl_FragColor = color;\n}\n "};class Zf extends Nf{constructor(t,e,n={}){super(),d(this,"name","DebouncePass3"),d(this,"scene"),d(this,"camera"),d(this,"version",-1),d(this,"debouncedVersion",-2),d(this,"debounceTarget"),d(this,"cacheTarget"),d(this,"finalTarget"),d(this,"uniforms"),d(this,"material"),d(this,"copyUniforms"),d(this,"materialCopy"),d(this,"fsQuad"),d(this,"opacity",1),d(this,"duration",300),d(this,"sliceRendering"),d(this,"renderTimestamp",Date.now()),d(this,"debounceRenderHandler",Mp.debounce(this.debounceRender.bind(this),this.duration)),this.clear=!1,this.needsSwap=!1,this.scene=t,this.camera=e;let{width:i=1,height:r=1,dpr:s=1,sliceRendering:a}=n;this.sliceRendering=a,this.debounceTarget=new Qe(i*s,r*s,{type:ot}),this.debounceTarget.texture.name="DebouncePass.debounceTarget",this.debounceTarget.texture.generateMipmaps=!1,this.cacheTarget=new Qe(i*s,r*s,{type:ot}),this.cacheTarget.texture.name="DebouncePass.cacheTarget",this.cacheTarget.texture.generateMipmaps=!1,this.finalTarget=new Qe(i*s,r*s,{type:ot}),this.finalTarget.texture.name="DebouncePass.finalTarget",this.finalTarget.texture.generateMipmaps=!1;const o=Yf;this.uniforms=cr.clone(o.uniforms),this.material=new hr({uniforms:this.uniforms,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader}),this.copyUniforms=cr.clone(If.uniforms),this.materialCopy=new hr({uniforms:this.copyUniforms,vertexShader:If.vertexShader,fragmentShader:If.fragmentShader,blending:0,depthTest:!1,depthWrite:!1}),this.fsQuad=new Uf}destroy(){super.dispose(),this.debounceTarget.dispose(),this.cacheTarget.dispose(),this.finalTarget.dispose(),this.material.dispose(),this.fsQuad.dispose()}get currentVersion(){var t;return(this.scene.userData.version||0)+((null==(t=this.camera)?void 0:t.userData.version)||0)}get isChanged(){return this.version!==this.currentVersion}get isDebounceChanged(){return this.debouncedVersion!==this.currentVersion}isRenderTicComplete(t){return this.renderTimestamp<t.lastTicCompleteTimestamp}render(t,e,n){const i=t.autoClear;t.autoClear=!1,this.isChanged?(this.renderTimestamp=Date.now(),this.debounceRender(t,e,n),this.copyTargetTexture(t,this.debounceTarget,this.cacheTarget,Kf,Jf),this.finalRender(this.cacheTarget,t,e,n),this.debounceRenderHandler(t,e,n)):(t.lastTicCompleted>=this.renderTimestamp&&(this.renderTimestamp=Date.now()),this.copyTargetTexture(t,this.debounceTarget,this.cacheTarget,Kf,Jf),this.finalRender(this.cacheTarget,t,e,n)),t.autoClear=i,this.version=this.currentVersion}copyTargetTexture(t,e,n,i,r){var s;null==(s=this.camera)||s.updateMatrixWorld(),this.material.uniforms.currentProjectionMatrix.value.copy(this.camera.projectionMatrix),this.material.uniforms.currentViewMatrix.value.copy(this.camera.matrixWorldInverse),this.material.uniforms.cameraNear.value=this.camera.near,this.material.uniforms.cameraFar.value=this.camera.far,this.material.uniforms.previousProjectionMatrix.value.copy(i),this.material.uniforms.previousViewMatrix.value.copy(r),this.fsQuad.material=this.material,this.material.uniforms.tDiffuse.value=e.texture,this.material.uniforms.tDepth.value=e.depthTexture,t.setRenderTarget(n),this.fsQuad.render(t)}debounceRender(t,e,n){t.setRenderTarget(this.debounceTarget),t.clear(),t.render(this.scene,this.camera),Kf.copy(this.camera.projectionMatrix),Jf.copy(this.camera.matrixWorldInverse)}finalRender(t,e,n,i){e.setRenderTarget(this.renderToScreen?null:i),this.clear&&e.clear(),e.copyTextureToTexture(t.texture,i.texture)}}const Kf=new Ln,Jf=new Ln;class $f extends Nf{constructor(t,e,n={}){super(),d(this,"name","DynamicPass3"),d(this,"scene"),d(this,"camera"),this.scene=t,this.camera=e,this.clear=!1,this.needsSwap=!1}render(t,e,n){const i=t.autoClear;t.autoClear=!1,t.setRenderTarget(this.renderToScreen?null:n),t.render(this.scene,this.camera),t.autoClear=i}}class Qf extends Sr{constructor(t={}){super(),d(this,"name","ShadowScene3"),d(this,"lights"),d(this,"adapter"),this.params=t,this.lights=new Ep(t),this.lights.bindScene(this),new Qe(512,5112);const e=new Qs(1e3,1e3),n=new ea({opacity:.5}),i=new ir(e,n);i.castShadow=!0,i.receiveShadow=!0,this.add(i);const r=new sr(100,100,100),s=new Pi({color:4013373,opacity:.99,transparent:!0,depthWrite:!1}),a=new ir(r,s);a.castShadow=!0,a.position.set(100,100,50),this.add(a)}destroy(){}init(t){if(!t)return;this.adapter=t;const e=new xr;e.scale.y*=-1,this.add(e)}update(t){}}new Ed;var tm=(t=>(t.INIT="init",t.LOAD="load",t.LOADED="loaded",t.RESIZE="resize",t.SET_SIZE="setSize",t.GET_LAYERS="getLayers",t.GET_ASSET_IDS_BY_TYPE="getAssetIdsByType",t.SET_FILL_BY_IDS="setFillByIds",t.CLEAR_FILL_BY_IDS="clearFillByIds",t.CLEAR_FILL="clearFill",t.SET_STROKE_BY_IDS="setStrokeByIds",t.CLEAR_STROKE="clearStroke",t.TERMINATE="terminate",t.CAMERA_SYNC="cameraSync",t.SLICE_DURATION_CHANGED="sliceDurationChanged",t.ASSET_TYPE_CHANGED="assetTypeChanged",t.FN_ENABLE_CHANGED="fnEnableChanged",t.SVG_LOADING_TYPE_CHANGED="svgLoadingTypeChanged",t.USED_CACHE_CHANGED="usedCacheChanged",t.DEBOUNCE_CACHE_CHANGED="debounceCacheChanged",t.WIREFRAME_CHANGED="wireframeChanged",t.BG_PASS_CHANGED="bgPass",t.SELECT_ENABLE_CHANGED="selectEnableChanged",t.MULTI_SELECT_ENABLE_CHANGED="multiSelectEnableChanged",t.MULTI_SELECT_BY_RANGE="multiSelectByRange",t.ZOOM_TO_SELECT_ENABLE_CHANGED="zoomToSelectEnableChanged",t.SOCIAL_DISTANCE_ENABLE_CHANGED="socialDistanceEnableChanged",t.ENABLE_HOVER_CHANGED="enableHover",t.FONT_ZOOM_IN="fontZoomIn",t.FONT_ZOOM_OUT="fontZoomOut",t.UNPROJECT="unproject",t.STROKE_MORE="strokeMore",t.STROKE_LESS="strokeLess",t.CAMERA_CHANGED="cameraChanged",t.SCENES_CHANGED="scenesChanged",t.UPDATE_LAYERS_VISIBILITY="updateLayersVisibility",t.DYNAMIC_LOADED="dynamicLoaded",t.SYNC_TEXTURE_HELPER_CACHED="syncTextureHelperCached",t.INIT_FONT="initFont",t.INIT_LOADING_FONT="initLoadingFont",t.REFRESH="refresh",t.FULLSCREEN="fullscreen",t.GET_CAMERA_POSITION="getCameraPosition",t.SET_CAMERA_POSITION="setCameraPosition",t.SAVE_CAMERA_POSITION="saveCameraPosition",t.RESTORE_CAMERA_POSITION="restoreCameraPosition",t.FOCUS_AT_IDS="focusAtIds",t.GET_LEGEND="getLegend",t.GET_ASSET_LABELS="getAssetLabels",t.SET_ASSET_LABELS="setAssetLabels",t.CLEAR_ASSET_LABELS="clearAssetLabels",t.CLEAR_DUMMIES="clearDummies",t.SET_DUMMIES="setDummies",t.FOCUS_AT_DUMMY="focusAtDummy",t.HIGHLIGHT_DUMMIES="highlightDummies",t.RESET_HIGHLIGHT_DUMMIES="resetHighlightDummies",t.SET_EDITOR_MODE="setEditorMode",t.BIND_EDITOR_DRAG="bindEditorDrag",t.SET_EDITOR_DRAGGING_OBJECT="setEditorDraggingObject",t.HANDLE_EXTERNAL_EVENT="handleExternalEvent",t.GET_DUMMIES="getDummies",t.ZOOM_IN="zoomIn",t.ZOOM_OUT="zoomOut",t.INITIALIZATION_START="INITIALIZATION_START",t.INITIALIZATION_COMPLETE="INITIALIZATION_COMPLETE",t.POINTER_OVER="pointerover",t.POINTER_OUT="pointerout",t.POINTER_LEAVE="pointerleave",t.SELECTED="selected",t.SELECT_BY_IDS="selectByIds",t.GET_ASSET_BOUNDING_BOX="getAssetBoundingBox",t.SET_ASSET_TYPE="setAssetType",t.LINK_ASSETS_BY_TREE="linkAssetsByTree",t.CLEAR_SELECTED="clearSelected",t.TARGET_BY_IDS="targetByIds",t.SHOW_ASSETS_LABEL="showAssetsLabel",t.HIDE_ASSETS_LABEL="hideAssetsLabel",t.TAP="tap",t.SINGLE_TAP="singletap",t.DOUBLE_TAP="doubletap",t.PRESS="press",t.PAN="pan",t.PAN_START="panstart",t.PAN_MOVE="panmove",t.PAN_END="panend",t.ROTATE="rotate",t.ROTATE_START="rotatestart",t.ROTATE_MOVE="rotatemove",t.ROTATE_END="rotateend",t.PINCH="pinch",t.PINCH_START="pinchstart",t.PINCH_MOVE="pinchmove",t.PINCH_END="pinchend",t.PINCH_IN="pinchin",t.PINCH_OUT="pinchout",t.SWIPE="swipe",t.SET_CURSOR="setCursor",t.DRAG_END="dragEnd",t))(tm||{});const em=new th,nm=new class extends xe{constructor(){super(),d(this,"name","App3"),d(this,"adapter"),d(this,"inpEl"),d(this,"_viewVersion",-1/0),d(this,"animateScene"),d(this,"shadowScene"),d(this,"_requestHeader",{}),d(this,"loadingFont"),d(this,"font"),d(this,"director"),d(this,"runningHandler",this.running.bind(this)),this.adapter=new Pf,this.director=new Wf}get isLoadingScene(){var t;return"LoadingScene"===(null==(t=this.scene)?void 0:t.name)}destroy(){var t;null==(t=this.view)||t.destroy(),this.renderer.dispose()}init(t={}){var e,n,i;return this.params=t,this.params.cvs||(this.params.cvs=_p.createCanvas(t)),"undefined"!=typeof window&&(this.params.dpr=window.devicePixelRatio||1),this.view=new sp(this.params),this.view.camera.position.set(0,0,1e3),(null==(e=this.params)?void 0:e.workerRender)?this.inpEl=this.params.inpEl:this.inpEl=this.params.cvs,this.renderer=new Jc({antialias:!0,canvas:t.cvs,alpha:t.alpha}),this.renderer.setPixelRatio(this.params.dpr||1),this.renderer.shadowMap.enabled=null==(i=null==(n=this.params)?void 0:n.light)?void 0:i.castShadow,this.renderer.shadowMap.type=0,this.rendererResize(),new Qe(this.params.width,this.params.height,{stencilBuffer:!0}),this.composer=new zf(this.renderer),this.adapter.init(t),this.director.init(t),this.trans2LoadingScene(),this}initLoadingFont(t){return p(this,null,(function*(){var e,n;t&&(this.loadingFont="string"==typeof t?yield(new Vf).loadAsync(t):t,"function"==typeof(null==(e=this.loadingScene)?void 0:e.initFont)&&(null==(n=this.loadingScene)||n.initFont(this.loadingFont)))}))}initFont(t){return p(this,null,(function*(){var e,n;t&&(this.font="string"==typeof t?yield(new Vf).loadAsync(t):t,"function"==typeof(null==(e=this.mainScene)?void 0:e.initFont)&&(null==(n=this.mainScene)||n.initFont(this.font)))}))}rendererResize(){const t=this.renderer.domElement,e=this.inpEl.clientWidth,n=this.inpEl.clientHeight,i=t.width!==e||t.height!==n;return i&&this.renderer.setSize(e,n,!1),i}resize(){}trans2LoadingScene(){var t;this.loadingScene=new Tp(this.params),this.loadingFont&&this.loadingScene.initFont(this.loadingFont),this.scene=this.loadingScene,this.adapter.unbindScene(),null==(t=this.view)||t.clearScenes().pushScenes(this.scene).bindScene(this.scene),this._viewVersion=-1/0,this.view.fullscreen(!1),this.view.camera.position.setY(200),this.view.camera.lookAt(new rn(0,0,0)),this.view.camera.updateProjectionMatrix();const e=new kf(this.scene,this.view.camera);this.composer.passes=[],this.composer.addPass(e)}trans2MainScene(){return p(this,null,(function*(){var t;this.animateScene||(this.animateScene=new qf(this.params)),this.shadowScene||(this.shadowScene=new Qf(this.params)),this.scene=this.mainScene,this.adapter.bindScene(this.scene),null==(t=this.view)||t.clearScenes().pushScenes(this.animateScene,this.scene).bindScene(this.scene),this._viewVersion=-1/0,this.director.bindScene(this.mainScene,this.animateScene),wd(this.mainScene),this.view.fullscreen();const e=new Zf(this.scene,this.view.camera,this.params),n=new $f(this.animateScene,this.view.camera),i=new $f(this.shadowScene,this.view.camera),r=new Xf;this.composer.passes=[],this.composer.addPass(e),this.composer.addPass(n),this.composer.addPass(i),this.composer.addPass(r)}))}trans2EmptyScene(){return p(this,null,(function*(){var t;this.emptyScene=new wf(this.params),this.loadingFont&&this.emptyScene.initFont(this.loadingFont),this.scene=this.emptyScene,this.adapter.unbindScene(),null==(t=this.view)||t.clearScenes().pushScenes(this.scene).bindScene(this.scene),this._viewVersion=-1/0,wd(this.emptyScene),this.view.fullscreen(!1);const e=new kf(this.scene,this.view.camera);this.composer.passes=[],this.composer.addPass(e)}))}fullscreen(){this.view.fullscreen()}saveCameraPosition(t){this.view.saveCameraPosition(t)}restoreCameraPosition(t){this.view.restoreCameraPosition(t)}clearCameraPosition(t){this.view.clearCameraPosition(t)}zoomIn(){this.view.zoomIn()}zoomOut(){this.view.zoomOut()}setRequestHeader(t){return this._requestHeader=t,this}load(t,e,n=2,i){return p(this,null,(function*(){var n,i;this.isLoadingScene||this.trans2LoadingScene(),yield function(t=2e3){return p(this,null,(function*(){return new Promise((e=>setTimeout(e,(Math.random()+.5)*t)))}))}(this.params.syncDelay);const r=yield(new xf).setRequestHeader(this._requestHeader).setInstancedMesh(null==(n=this.params)?void 0:n.instancedMesh).setPixelRatio(this.params.dpr||1).loadAsync(t).catch((()=>({})));return(null==(i=null==r?void 0:r.paths)?void 0:i.length)?(this.mainScene=new Fp(this.params),this.mainScene.initFont(this.font),this.adapter.initResources(r),this.adapter.bindScene(this.mainScene),this.mainScene.init(this.adapter),this.mainScene.showDefaultLayers(e,!0),yield this.trans2MainScene(),(r||{}).idsTree):(yield this.trans2EmptyScene(),(r||{}).idsTree)}))}sliceDurationChanged(t=0){this.renderer.sliceDuration=t}getLayers(t=2){return p(this,null,(function*(){var e;return null==(e=this.adapter)?void 0:e.getLayers(t)}))}updateLayersVisibility(t,e=!1){this.adapter.updateLayersVisibility(t,e),this.view.needsUpdate=!0}targetByIds(t){this.scene&&(this.director.clearSelected(),this.director.selectByIds(t,!1),this.view.needsUpdate=!0)}setSize(t,e){this.composer.setSize(t,e)}start(){requestAnimationFrame(this.runningHandler)}running(t){this.scene&&(this.view.update(t),(this.params.sliceRendering||this.scene.isDynamic||this._viewVersion!==this.view.version)&&(this.composer.render(t),this._viewVersion=this.view.version),requestAnimationFrame(this.runningHandler))}},im={makeProxy:function(t){em.makeProxy(t)},start:function(t){const e=em.getProxy(t.proxyId);e.ownerDocument=e,self.document={};const n=u(h({},t.conf),{cvs:t.canvas,workerRender:!0,inpEl:e});nm.init(n).start()},event:em.handleEvent,ping:()=>self.postMessage({type:"pang"}),[tm.LOAD]:function(t){return p(this,null,(function*(){const e=yield nm.load(null==t?void 0:t.url,null==t?void 0:t.layers,null==t?void 0:t.lv);self.postMessage({type:"load",data:e})}))},[tm.SLICE_DURATION_CHANGED]:t=>nm.sliceDurationChanged(t.v),getLayers:function(t){return p(this,null,(function*(){const e=yield nm.getLayers(null==t?void 0:t.lv);self.postMessage({type:tm.GET_LAYERS,data:e})}))},[tm.UPDATE_LAYERS_VISIBILITY]:function(t){nm.updateLayersVisibility(null==t?void 0:t.ids,null==t?void 0:t.visible)},[tm.TARGET_BY_IDS]:function(t){nm.targetByIds(null==t?void 0:t.ids)},[tm.INIT_LOADING_FONT]:function(t){nm.initLoadingFont(null==t?void 0:t.font)},[tm.INIT_FONT]:function(t){nm.initFont(null==t?void 0:t.font)},[tm.FULLSCREEN]:function(){nm.fullscreen(),self.postMessage({type:tm.FULLSCREEN})},[tm.GET_CAMERA_POSITION]:function(t){var e;const n=null==(e=nm.view)?void 0:e.getCameraPosition(null==t?void 0:t.id);self.postMessage({type:tm.GET_CAMERA_POSITION,data:n})},[tm.SET_CAMERA_POSITION]:function(t){var e;const n=null==(e=nm.view)?void 0:e.setCameraPosition(null==t?void 0:t.data,!0);self.postMessage({type:tm.SET_CAMERA_POSITION,data:n})}};self.onmessage=function(t){var e,n;const i=im[null==(e=t.data)?void 0:e.type];if("function"!=typeof i)throw new Error(`unsupported command: ${null==(n=t.data)?void 0:n.type}`);i(t.data)}}},function(){return e||(0,t[s(t)[0]])((e={exports:{}}).exports,e),e.exports});export default f();
22
- //# sourceMappingURL=renderer3.worker.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgine",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A simple rendering engine developed by archbds.",
5
5
  "author": "diozhu@163.com",
6
6
  "license": "ISC",