@zyzgroup/core-web 0.0.11 → 0.0.12

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.
@@ -1,4 +1,10 @@
1
- (function(w,gt){typeof exports=="object"&&typeof module<"u"?gt(exports):typeof define=="function"&&define.amd?define(["exports"],gt):(w=typeof globalThis<"u"?globalThis:w||self,gt(w.ZYZGroupCoreWeb={}))})(this,function(w){"use strict";class gt extends Error{cause;constructor(e,n){super(e,n),this.name=this.constructor.name}}class Oi extends gt{constructor(){super("This is not a browser environment")}}class pn extends gt{constructor(){super("Cancel select")}}class Ui extends gt{accepts;constructor(e){super(`Please select files in ${e} format`),this.accepts=e}}function Oo(t){const e=t.slice(0,4),n=new FileReader;let i="";return new Promise((r,s)=>{n.onload=function(){const o=n.result;switch(new DataView(o).getUint32(0,!1)){case 2303741511:i="image/png";break;case 1195984440:i="image/gif";break;case 626017350:i="application/pdf";break;case 1347093252:i="application/zip";break}return r(i)},n.readAsArrayBuffer(e)})}function Uo(t,e){t.addEventListener("change",function(){e(t.files)},!1)}function Fo(t,e){t.addEventListener("dragover",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="copy")},!1),t.addEventListener("drop",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&e(n.dataTransfer.files)},!1)}const zo=(t=["*"],e)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new Oi;const n=globalThis.document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&n.setAttribute("accept",t.join(",")),e&&n.setAttribute("multiple","true"),n.click(),new Promise((r,s)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!n.files||n.files?.length===0)&&s(new pn)},1e3)},{once:!0}),n.addEventListener("change",()=>{if(!n.files||n.files?.length===0)s(new pn);else{const o=Array.from(n.files);i(o)&&s(new Ui(t)),r(o)}})});function i(r){return!t.includes("*")&&r.some(s=>!t.includes(`.${Fi(s)}`))}},Bo=t=>{const e=new FileReader;return new Promise((n,i)=>{e.addEventListener("progress",r=>{const s="("+Math.floor(r.total/1e3)+" KB)",o=Math.floor(r.loaded/r.total*100)+"%";console.log(`Loading size: ${s} progress: ${o}`)}),e.addEventListener("load",r=>{n(r.target?.result)}),e.addEventListener("error",r=>{i(r)}),t(e)})},Fi=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function No(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function jo(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function zi(t,e,n){if(!t){n&&e&&n.appendChild(e);return}if(!t.isEqualNode(e)){if(t.nodeName!==e.nodeName){n.replaceChild(e,t);return}if(t.nodeType===Node.TEXT_NODE){t.textContent!==e.textContent&&(t.textContent=e.textContent);return}for(let i=t.attributes.length-1;i>=0;i--){const r=t.attributes[i].name;!e.hasAttribute(r)&&r!=="open"&&t.removeAttribute(r)}for(let i=0;i<e.attributes.length;i++){const r=e.attributes[i].name,s=e.attributes[i].value;t.setAttribute(r,s)}for(let i=0;i<e.childNodes.length;i++)t.childNodes[i]?zi(t.childNodes[i],e.childNodes[i],t):t.appendChild(e.childNodes[i].cloneNode(!0));for(;t.childNodes.length>e.childNodes.length;)t.lastChild&&t.removeChild(t.lastChild)}}function Ho(t,e,n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=t+"="+e+"; "+r}function qo(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(r.indexOf(e)==0)return r.substring(e.length,r.length)}return""}const Zo=()=>document.cookie.split(";").map(t=>t.split("=")).reduce((t,[e,n])=>(t[e.trim().replace('"',"")]=n)&&t,{}),Go=()=>document.cookie.split(";").forEach(t=>document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class te{constructor(e){this.waitingResponse=[],this.messageQueue=[],this.url=e,this.createSocket()}createSocket(){this.socket=new te(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(e=>this.socket.send(e)),this.messageQueue=[]},this.socket.onclose=e=>{const{code:n,reason:i,wasClean:r}=e;console.log(`ws closed : ${n} ${i} ${r}`)},this.socket.onerror=e=>{console.log(`ws error : ${e}`)},this.socket.onmessage=e=>{this.processMessage(e)}}recreateSocket(e){console.log("Reconnection Attempted"),this.messageQueue.push(e),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(e){let n=+new Date;const i=this.waitingResponse[n]={sent:n},r={...i,...e};try{this.socket.readyState===te.OPEN?this.socket.send(JSON.stringify(r)):this.recreateSocket(JSON.stringify(r));const s=await new Promise(function(o,a){i.resolve=o,console.log(i),setTimeout(()=>{a("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),s}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[n]}}async processMessage(e){try{let n=JSON.parse(e.data);if(Object.prototype.hasOwnProperty.call(n,"requestid")){const i=this.waitingResponse[n.requestid];i?i.resolve(n):console.warn("Got data but found no associated request, already timed out?",n)}else console.warn("Got data without request id",n)}catch{console.log(e.data)}}async sendRequest(e,n,i=r=>{console.log(r)}){this.sendPayload(e).then(function(r){n(r)},function(r){i(r)})}sendMessage(e){const n=(()=>{try{return JSON.stringify(e)}catch{return e}})();this.socket.readyState===te.OPEN?this.socket.send(n):this.recreateSocket(n)}}function Bt(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Re(){const t=Bt();return{width:t.clientWidth||window.innerWidth,height:t.clientHeight||window.innerHeight}}function Xo(){const t=Bt(),e=Re();return{width:Math.max(t.scrollWidth,e.width),height:Math.max(t.scrollHeight,e.height)}}function $o(t){const e=Re(),n=t.getBoundingClientRect();return n.bottom>0&&n.top<e.height&&n.right>0&&n.left<e.width}function mn(){const t=Bt();return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function wn(){const t=Bt();return{clientLeft:t.clientLeft,clientTop:t.clientTop}}function Bi(t){const e=t.getBoundingClientRect(),n=mn(),i=wn();return{x:e.left+n.scrollLeft-i.clientLeft,y:e.top+n.scrollTop-i.clientTop}}function Vo(t){return{x:Ni(t),y:ji(t)}}function Ni(t){let e=0;for(;t!==null;)e+=t.offsetLeft,t=t.offsetParent;return e}function ji(t){let e=0;for(;t!==null;)e+=t.offsetTop,t=t.offsetParent;return e}function Yo(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top}}function Wo(){const t=Bt(),e=t.scrollHeight-t.clientHeight;return e<=0?0:t.scrollTop/e*100}function Hi(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=mn(),n=wn();return{x:t.clientX+e.scrollLeft-n.clientLeft,y:t.clientY+e.scrollTop-n.clientTop}}function Me(t,e){const n=Hi(e),i=Bi(t);return{x:n.x-i.x,y:n.y-i.y}}function Ko(t){return{x:t.clientX,y:t.clientY}}const ee=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return t.includes("mac")?e="macOS":t.includes("win")?e="Windows":/android/.test(t)?e="Android":/iphone|ipad|ipod/.test(t)?e="iOS":/linux/.test(t)?e="Linux":/bsd/.test(t)&&(e="BSD"),e.toLowerCase()},Jo=()=>{const t=navigator.userAgent;let e="Unknown";if(/Windows NT/.test(t)){const n=t.match(/Windows NT (\d+\.\d+)/);n&&(e=n[1])}else if(/Mac OS X/.test(t)){const n=t.match(/Mac OS X (\d+_\d+)/);n&&(e=n[1].replace("_","."))}else if(/Android/.test(t)){const n=t.match(/Android (\d+\.\d+)/);n&&(e=n[1])}else if(/iPhone|iPad|iPod/.test(t)){const n=t.match(/OS (\d+_\d+)/);n&&(e=n[1].replace("_","."))}return e.toLowerCase()},Qo=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/chrome/.test(t)?e="Chrome":/firefox/.test(t)?e="Firefox":/safari/.test(t)?e="Safari":/edge/.test(t)?e="Edge":/msie|trident/.test(t)&&(e="IE"),e.toLowerCase()},ta=()=>{const t=navigator.userAgent;let e="Unknown";if(/Chrome/.test(t)){const n=t.match(/Chrome\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Firefox/.test(t)){const n=t.match(/Firefox\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Safari/.test(t)){const n=t.match(/Version\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Edge/.test(t)){const n=t.match(/Edge\/(\d+\.\d+)/);n&&(e=n[1])}else if(/MSIE|Trident/.test(t)){const n=t.match(/(?:MSIE|rv:)(\d+\.\d+)/);n&&(e=n[1])}return e},ea=()=>"geolocation"in navigator?new Promise((t,e)=>{navigator.geolocation.getCurrentPosition(n=>{const i=n.coords.latitude,r=n.coords.longitude;t({latitude:i,longitude:r})},n=>{e(n)})}):Promise.reject("Geolocation is not available.");function na(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function ia(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function qi(){return ee()==="ios"}function ra(){return ee()==="ios"|ee()==="macos"}function Zi(){return ee()==="android"}function sa(){return qi()||Zi()}function oa(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function Gi(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}const i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}const aa=Gi()!==-1,la=typeof window=="object"&&typeof document=="object",ca=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ha=typeof document<"u",Xi=typeof window<"u",fa=typeof history<"u",ua=typeof process<"u",da=Xi&&window.File&&window.FileReader&&window.FileList&&window.Blob;function _a(t){var e=document.documentElement,n=window.devicePixelRatio;e.dataset.dpr=n;var i=100,r=function(){var s=Math.min(e.clientWidth,t);e.dataset.width=s,e.dataset.rem=i=Math.round(100*(s/t)),e.style.fontSize=i+"px"};r(),window.rem2px=function(s){return s=parseFloat(s),s*i},window.px2rem=function(s){return s=parseFloat(s),s/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function ga(t){return btoa(encodeURIComponent(t)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function pa(t){let e=t.replaceAll("*","+").replaceAll("-","/"),n=e.length%4;return n&&(e=e.padEnd(e.length+(4-n),"=")),decodeURIComponent(atob(e))}const ma=t=>!/^([a-z]+:)?[\\/]/i.test(t);function $i(t){return new URL(t)}function wa(t){let e=$i(t);return e.protocol==="http:"||e.protocol==="https:"}const ya=t=>Array.from(new URLSearchParams(t)).reduce((e,[n,i])=>Object.assign({},e,{[n]:e[n]?(Array.isArray(e[n])?e[n]:[e[n]]).concat(i):i}),{});function va(){let t={},e=location.search;return e&&(e=e.substring(1,e.length),e.split("&").forEach(i=>{const r=i.split("=");t[r[0]]=decodeURIComponent(r[1])})),t}function ba(t){let e="";new MutationObserver(function(i){window.location.href!==e&&(e=window.location.href,console.log(`URL data changed to ${window.location.href}`),t&&t(location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0})}function xa(t){window.addEventListener("hashchange",()=>{t(location.hash)})}function Ea(t){window.addEventListener("popstate",t,!1)}class Tt{static getEvent(e){const n=e.keyCode||e.charCode;return{code:n,key:Tt.codeToKey(n)}}static keyToCode(e){return Object.prototype.hasOwnProperty.call(Tt.keyToCodes,e)?Tt.keyToCodes[e]:-1}static codeToKey(e){return Object.prototype.hasOwnProperty.call(Tt.codeToKeys,e.toString())?Tt.codeToKeys[e.toString()]:""}static keyToCodes={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,command:15,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,numpad:21,escape:27,spacebar:32,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_braket:221,single_quote:222};static codeToKeys={8:"backspace",9:"tab",13:"enter",15:"command",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",21:"numpad",27:"escape",32:"spacebar",33:"page_up",34:"page_down",35:"end",36:"home",37:"left_arrow",38:"up_arrow",39:"right_arrow",40:"down_arrow",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left_window_key",92:"right_window_key",93:"select_key",96:"numpad_0",97:"numpad_1",98:"numpad_2",99:"numpad_3",100:"numpad_4",101:"numpad_5",102:"numpad_6",103:"numpad_7",104:"numpad_8",105:"numpad_9",106:"multiply",107:"add",109:"subtract",110:"decimal_point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",144:"num_lock",145:"scroll_lock",186:"semi_colon",187:"equal_sign",188:"comma",189:"dash",190:"period",191:"forward_slash",192:"grave_accent",219:"open_bracket",220:"back_slash",221:"close_braket",222:"single_quote"}}const Sa=t=>navigator.clipboard.writeText(t),ka=()=>window.getSelection()?.toString(),Ta=t=>t===document.activeElement,Aa=t=>Array.prototype.slice.call(t.parentNode?.children).filter(e=>e!==t),Ca=()=>!document.hidden,Ia=()=>history.back(),Da=()=>history.go(-1);function Pa(t){const e=document.createElement("script");e.type="text/javascript",e.src=t,e.async=!1,document.body.appendChild(e),e.onload=()=>{},e.onerror=()=>{}}function Ra(){const t=document.getElementsByTagName("img"),e=Re().height;let n=0;return()=>{for(let i=n;i<t.length;i++)t[i].getBoundingClientRect().top<e&&(t[i].src=t[i].getAttribute("data-src")??"",n=i+1)}}const Ma=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})}),La=(t,e,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e>12?e+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r},Oa=(t,e,n=12,i=400,r=!0)=>{let s="",o="",a="";if(!t||e<n||typeof t!="string")return s;const c=t.split(""),l=document.createElement("span");l.style.visibility="hidden",l.style.padding="0",l.style.whiteSpace="nowrap",l.style.overflow="visible",l.style.fontSize=n>12?n+"px":"12px",l.style.fontWeight=i.toString(),document.body.appendChild(l);for(let f=0,u=c.length;f<u;f++){const d=c[f];if(o=a,a+=d,s=a,l.innerText=a,l.offsetWidth>e){r?s=o+"...":s=o;break}}return document.body.removeChild(l),s};function Ua(t,e="encode"){const n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=new RegExp(e=="decode"?i:n[i],"g");t=t.replace(r,e=="decode"?n[i]:i)}return t}function Fa(t){const e=/<%=(.+?)%>/g,n=/<%([\s\S]+?)%>/g;return t=t.replace(e,"`); \n echo( $1 ); \n echo(`").replace(n,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
1
+ (function(w,gt){typeof exports=="object"&&typeof module<"u"?gt(exports):typeof define=="function"&&define.amd?define(["exports"],gt):(w=typeof globalThis<"u"?globalThis:w||self,gt(w.ZYZGroupCoreWeb={}))})(this,function(w){"use strict";class gt extends Error{cause;constructor(e,n){super(e,n),this.name=this.constructor.name}}class Fi extends gt{constructor(){super("This is not a browser environment")}}class mn extends gt{constructor(){super("Cancel select")}}class zi extends gt{accepts;constructor(e){super(`Please select files in ${e} format`),this.accepts=e}}var Q=(t=>(t.UNKNOWN="",t.HTML="text/html",t.CSS="text/css",t.JPEG="image/jpeg",t.PNG="image/png",t.GIF="image/gif",t.WEBP="image/webp",t.SVG="image/svg+xml",t.MPEG="audio/mpeg",t.OGG="audio/ogg",t.MP4="video/mp4",t.JSON="application/json",t.JAVASCRIPT="application/javascript",t.ECMASCRIPT="application/ecmascript",t.EXCEL="application/vnb.ms-excel",t.CSV="application/x-csv",t.PDF="application/pdf",t.ZIP="application/zip",t.TGZ="application/x-gtar",t.TAR_GZ="application/x-gzip",t.XML="text/xml",t.TEXT="text/plain",t))(Q||{});const wn=t=>{let e=Q.UNKNOWN;switch(new DataView(t).getUint32(0,!1).toString(16).toUpperCase()){case"FFD8FFDB":e=Q.JPEG;break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":e=Q.JPEG;break;case"89504E47":e=Q.PNG;break;case"47494638":e=Q.GIF;break;case"52494646":e=Q.WEBP;break;case"25504446":e=Q.PDF;break;case"504B0304":e=Q.ZIP;break}return e};function Fs(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1].toLowerCase()}function zs(t){return Fs(t)==="array"}var yn={exports:{}},Nt=typeof Reflect=="object"?Reflect:null,Bi=Nt&&typeof Nt.apply=="function"?Nt.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},Re;Nt&&typeof Nt.ownKeys=="function"?Re=Nt.ownKeys:Object.getOwnPropertySymbols?Re=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Re=function(t){return Object.getOwnPropertyNames(t)};function Bs(t){console&&console.warn&&console.warn(t)}var Ni=Number.isNaN||function(t){return t!==t};function F(){F.init.call(this)}yn.exports=F,yn.exports.once=qs,F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var ji=10;function Oe(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(F,"defaultMaxListeners",{enumerable:!0,get:function(){return ji},set:function(t){if(typeof t!="number"||t<0||Ni(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");ji=t}}),F.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},F.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Ni(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Hi(t){return t._maxListeners===void 0?F.defaultMaxListeners:t._maxListeners}F.prototype.getMaxListeners=function(){return Hi(this)},F.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=t==="error",r=this._events;if(r!==void 0)i=i&&r.error===void 0;else if(!i)return!1;if(i){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=r[t];if(a===void 0)return!1;if(typeof a=="function")Bi(a,this,e);else for(var c=a.length,l=$i(a,c),n=0;n<c;++n)Bi(l[n],this,e);return!0};function qi(t,e,n,i){var r,o,s;if(Oe(n),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),s===void 0)s=o[e]=n,++t._eventsCount;else if(typeof s=="function"?s=o[e]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),r=Hi(t),r>0&&s.length>r&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,Bs(a)}return t}F.prototype.addListener=function(t,e){return qi(this,t,e,!1)},F.prototype.on=F.prototype.addListener,F.prototype.prependListener=function(t,e){return qi(this,t,e,!0)};function Ns(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Zi(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=Ns.bind(i);return r.listener=n,i.wrapFn=r,r}F.prototype.once=function(t,e){return Oe(e),this.on(t,Zi(this,t,e)),this},F.prototype.prependOnceListener=function(t,e){return Oe(e),this.prependListener(t,Zi(this,t,e)),this},F.prototype.removeListener=function(t,e){var n,i,r,o,s;if(Oe(e),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,r=o;break}if(r<0)return this;r===0?n.shift():js(n,r),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||e)}return this},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(t){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var r=Object.keys(n),o;for(i=0;i<r.length;++i)o=r[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this};function Gi(t,e,n){var i=t._events;if(i===void 0)return[];var r=i[e];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?Hs(r):$i(r,r.length)}F.prototype.listeners=function(t){return Gi(this,t,!0)},F.prototype.rawListeners=function(t){return Gi(this,t,!1)},F.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Xi.call(t,e)},F.prototype.listenerCount=Xi;function Xi(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}F.prototype.eventNames=function(){return this._eventsCount>0?Re(this._events):[]};function $i(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function js(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Hs(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function qs(t,e){return new Promise(function(n,i){function r(s){t.removeListener(e,o),i(s)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",r),n([].slice.call(arguments))}Vi(t,e,o,{once:!0}),e!=="error"&&Zs(t,r,{once:!0})})}function Zs(t,e,n){typeof t.on=="function"&&Vi(t,"error",e,n)}function Vi(t,e,n,i){if(typeof t.on=="function")i.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function r(o){i.once&&t.removeEventListener(e,r),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var Gs=yn.exports;class F0 extends Gs.EventEmitter{constructor(){super()}on(e,n){return super.on(e,n)}addListener(e,n){return super.on(e,n)}once(e,n){return super.once(e,n)}removeListener(e,n){return super.removeListener(e,n)}off(e,n){return super.off(e,n)}removeAllListeners(e){return super.removeAllListeners(e)}emit(e,n){return super.emit(e,n)}listeners(e){return super.listeners(e)}rawListeners(e){return super.rawListeners(e)}listenerCount(e){return super.listenerCount(e)}prependListener(e,n){return super.prependListener(e,n)}prependOnceListener(e,n){return super.prependOnceListener(e,n)}}function Yi(t,e){return function(){return t.apply(e,arguments)}}const{toString:Xs}=Object.prototype,{getPrototypeOf:vn}=Object,Le=(t=>e=>{const n=Xs.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tt=t=>(t=t.toLowerCase(),e=>Le(e)===t),Ue=t=>e=>typeof e===t,{isArray:jt}=Array,ee=Ue("undefined");function $s(t){return t!==null&&!ee(t)&&t.constructor!==null&&!ee(t.constructor)&&V(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wi=tt("ArrayBuffer");function Vs(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wi(t.buffer),e}const Ys=Ue("string"),V=Ue("function"),Ki=Ue("number"),Fe=t=>t!==null&&typeof t=="object",Ws=t=>t===!0||t===!1,ze=t=>{if(Le(t)!=="object")return!1;const e=vn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ks=tt("Date"),Js=tt("File"),Qs=tt("Blob"),ta=tt("FileList"),ea=t=>Fe(t)&&V(t.pipe),na=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||V(t.append)&&((e=Le(t))==="formdata"||e==="object"&&V(t.toString)&&t.toString()==="[object FormData]"))},ia=tt("URLSearchParams"),ra=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),jt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(i=0;i<s;i++)a=o[i],e.call(null,t[a],a,t)}}function Ji(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Qi=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),tr=t=>!ee(t)&&t!==Qi;function bn(){const{caseless:t}=tr(this)&&this||{},e={},n=(i,r)=>{const o=t&&Ji(e,r)||r;ze(e[o])&&ze(i)?e[o]=bn(e[o],i):ze(i)?e[o]=bn({},i):jt(i)?e[o]=i.slice():e[o]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&ne(arguments[i],n);return e}const oa=(t,e,n,{allOwnKeys:i}={})=>(ne(e,(r,o)=>{n&&V(r)?t[o]=Yi(r,n):t[o]=r},{allOwnKeys:i}),t),sa=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),aa=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},la=(t,e,n,i)=>{let r,o,s;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],(!i||i(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&vn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ca=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},ha=t=>{if(!t)return null;if(jt(t))return t;let e=t.length;if(!Ki(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},fa=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vn(Uint8Array)),ua=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const r=i.value;e.call(t,r[0],r[1])}},da=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},_a=tt("HTMLFormElement"),pa=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),er=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ga=tt("RegExp"),nr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ne(n,(r,o)=>{let s;(s=e(r,o,t))!==!1&&(i[o]=s||r)}),Object.defineProperties(t,i)},ma=t=>{nr(t,(e,n)=>{if(V(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(V(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wa=(t,e)=>{const n={},i=r=>{r.forEach(o=>{n[o]=!0})};return jt(t)?i(t):i(String(t).split(e)),n},ya=()=>{},va=(t,e)=>(t=+t,Number.isFinite(t)?t:e),xn="abcdefghijklmnopqrstuvwxyz",ir="0123456789",rr={DIGIT:ir,ALPHA:xn,ALPHA_DIGIT:xn+xn.toUpperCase()+ir},ba=(t=16,e=rr.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xa(t){return!!(t&&V(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Ea=t=>{const e=new Array(10),n=(i,r)=>{if(Fe(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const o=jt(i)?[]:{};return ne(i,(s,a)=>{const c=n(s,r+1);!ee(c)&&(o[a]=c)}),e[r]=void 0,o}}return i};return n(t,0)},Sa=tt("AsyncFunction"),Ta=t=>t&&(Fe(t)||V(t))&&V(t.then)&&V(t.catch),T={isArray:jt,isArrayBuffer:Wi,isBuffer:$s,isFormData:na,isArrayBufferView:Vs,isString:Ys,isNumber:Ki,isBoolean:Ws,isObject:Fe,isPlainObject:ze,isUndefined:ee,isDate:Ks,isFile:Js,isBlob:Qs,isRegExp:ga,isFunction:V,isStream:ea,isURLSearchParams:ia,isTypedArray:fa,isFileList:ta,forEach:ne,merge:bn,extend:oa,trim:ra,stripBOM:sa,inherits:aa,toFlatObject:la,kindOf:Le,kindOfTest:tt,endsWith:ca,toArray:ha,forEachEntry:ua,matchAll:da,isHTMLForm:_a,hasOwnProperty:er,hasOwnProp:er,reduceDescriptors:nr,freezeMethods:ma,toObjectSet:wa,toCamelCase:pa,noop:ya,toFiniteNumber:va,findKey:Ji,global:Qi,isContextDefined:tr,ALPHABET:rr,generateString:ba,isSpecCompliantForm:xa,toJSONObject:Ea,isAsyncFn:Sa,isThenable:Ta};function O(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}T.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const or=O.prototype,sr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{sr[t]={value:t}}),Object.defineProperties(O,sr),Object.defineProperty(or,"isAxiosError",{value:!0}),O.from=(t,e,n,i,r,o)=>{const s=Object.create(or);return T.toFlatObject(t,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),O.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const ka=null;function En(t){return T.isPlainObject(t)||T.isArray(t)}function ar(t){return T.endsWith(t,"[]")?t.slice(0,-2):t}function lr(t,e,n){return t?t.concat(e).map(function(i,r){return i=ar(i),!n&&r?"["+i+"]":i}).join(n?".":""):e}function Aa(t){return T.isArray(t)&&!t.some(En)}const Ca=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Be(t,e,n){if(!T.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!T.isUndefined(_[h])});const i=n.metaTokens,r=n.visitor||l,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(e);if(!T.isFunction(r))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(T.isDate(h))return h.toISOString();if(!a&&T.isBlob(h))throw new O("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(h)||T.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,_,g){let p=h;if(h&&!g&&typeof h=="object"){if(T.endsWith(_,"{}"))_=i?_:_.slice(0,-2),h=JSON.stringify(h);else if(T.isArray(h)&&Aa(h)||(T.isFileList(h)||T.endsWith(_,"[]"))&&(p=T.toArray(h)))return _=ar(_),p.forEach(function(m,y){!(T.isUndefined(m)||m===null)&&e.append(s===!0?lr([_],y,o):s===null?_:_+"[]",c(m))}),!1}return En(h)?!0:(e.append(lr(g,_,o),c(h)),!1)}const f=[],u=Object.assign(Ca,{defaultVisitor:l,convertValue:c,isVisitable:En});function d(h,_){if(!T.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(h),T.forEach(h,function(g,p){(!(T.isUndefined(g)||g===null)&&r.call(e,g,T.isString(p)?p.trim():p,_,u))===!0&&d(g,_?_.concat(p):[p])}),f.pop()}}if(!T.isObject(t))throw new TypeError("data must be an object");return d(t),e}function cr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Sn(t,e){this._pairs=[],t&&Be(t,this,e)}const hr=Sn.prototype;hr.append=function(t,e){this._pairs.push([t,e])},hr.toString=function(t){const e=t?function(n){return t.call(this,n,cr)}:cr;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Ia(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fr(t,e,n){if(!e)return t;const i=n&&n.encode||Ia,r=n&&n.serialize;let o;if(r?o=r(e,n):o=T.isURLSearchParams(e)?e.toString():new Sn(e,n).toString(i),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Da{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){T.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ur=Da,dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pa=typeof URLSearchParams<"u"?URLSearchParams:Sn,Ma=typeof FormData<"u"?FormData:null,Ra=typeof Blob<"u"?Blob:null,Oa=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),La=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),et={isBrowser:!0,classes:{URLSearchParams:Pa,FormData:Ma,Blob:Ra},isStandardBrowserEnv:Oa,isStandardBrowserWebWorkerEnv:La,protocols:["http","https","file","blob","url","data"]};function Ua(t,e){return Be(t,new et.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,o){return et.isNode&&T.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Fa(t){return T.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function za(t){const e={},n=Object.keys(t);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],e[o]=t[o];return e}function _r(t){function e(n,i,r,o){let s=n[o++];const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&T.isArray(r)?r.length:s,c?(T.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!a):((!r[s]||!T.isObject(r[s]))&&(r[s]=[]),e(n,i,r[s],o)&&T.isArray(r[s])&&(r[s]=za(r[s])),!a)}if(T.isFormData(t)&&T.isFunction(t.entries)){const n={};return T.forEachEntry(t,(i,r)=>{e(Fa(i),r,n,0)}),n}return null}function Ba(t,e,n){if(T.isString(t))try{return(e||JSON.parse)(t),T.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Tn={transitional:dr,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=T.isObject(t);if(r&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return i&&i?JSON.stringify(_r(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ua(t,this.formSerializer).toString();if((o=T.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Be(o?{"files[]":t}:t,s&&new s,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),Ba(t)):t}],transformResponse:[function(t){const e=this.transitional||Tn.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(t&&T.isString(t)&&(n&&!this.responseType||i)){const r=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(r)throw o.name==="SyntaxError"?O.from(o,O.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],t=>{Tn.headers[t]={}});const kn=Tn,Na=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ja=t=>{const e={};let n,i,r;return t&&t.split(`
2
+ `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||e[n]&&Na[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},pr=Symbol("internals");function ie(t){return t&&String(t).trim().toLowerCase()}function Ne(t){return t===!1||t==null?t:T.isArray(t)?t.map(Ne):String(t)}function Ha(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const qa=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function An(t,e,n,i,r){if(T.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!T.isString(e)){if(T.isString(i))return e.indexOf(i)!==-1;if(T.isRegExp(i))return i.test(e)}}function Za(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Ga(t,e){const n=T.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,o,s){return this[i].call(this,e,r,o,s)},configurable:!0})})}class je{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function o(a,c,l){const f=ie(c);if(!f)throw new Error("header name must be a non-empty string");const u=T.findKey(r,f);(!u||r[u]===void 0||l===!0||l===void 0&&r[u]!==!1)&&(r[u||c]=Ne(a))}const s=(a,c)=>T.forEach(a,(l,f)=>o(l,f,c));return T.isPlainObject(e)||e instanceof this.constructor?s(e,n):T.isString(e)&&(e=e.trim())&&!qa(e)?s(ja(e),n):e!=null&&o(n,e,i),this}get(e,n){if(e=ie(e),e){const i=T.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Ha(r);if(T.isFunction(n))return n.call(this,r,i);if(T.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ie(e),e){const i=T.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||An(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function o(s){if(s=ie(s),s){const a=T.findKey(i,s);a&&(!n||An(i,i[a],a,n))&&(delete i[a],r=!0)}}return T.isArray(e)?e.forEach(o):o(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const o=n[i];(!e||An(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const n=this,i={};return T.forEach(this,(r,o)=>{const s=T.findKey(i,o);if(s){n[s]=Ne(r),delete n[o];return}const a=e?Za(o):String(o).trim();a!==o&&delete n[o],n[a]=Ne(r),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return T.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&T.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const n=(this[pr]=this[pr]={accessors:{}}).accessors,i=this.prototype;function r(o){const s=ie(o);n[s]||(Ga(i,o),n[s]=!0)}return T.isArray(e)?e.forEach(r):r(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(je.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),T.freezeMethods(je);const at=je;function Cn(t,e){const n=this||kn,i=e||n,r=at.from(i.headers);let o=i.data;return T.forEach(t,function(s){o=s.call(n,o,r.normalize(),e?e.status:void 0)}),r.normalize(),o}function gr(t){return!!(t&&t.__CANCEL__)}function re(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}T.inherits(re,O,{__CANCEL__:!0});function Xa(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $a=et.isStandardBrowserEnv?function(){return{write:function(t,e,n,i,r,o){const s=[];s.push(t+"="+encodeURIComponent(e)),T.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),T.isString(i)&&s.push("path="+i),T.isString(r)&&s.push("domain="+r),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Va(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ya(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function mr(t,e){return t&&!Va(e)?Ya(t,e):e}const Wa=et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(r){let o=r;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(r){const o=T.isString(r)?i(r):r;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Ka(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ja(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,o=0,s;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),l=i[o];s||(s=c),n[r]=a,i[r]=c;let f=o,u=0;for(;f!==r;)u+=n[f++],f=f%t;if(r=(r+1)%t,r===o&&(o=(o+1)%t),c-s<e)return;const d=l&&c-l;return d?Math.round(u*1e3/d):void 0}}function wr(t,e){let n=0;const i=Ja(50,250);return r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,c=i(a),l=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:r};f[e?"download":"upload"]=!0,t(f)}}const Qa=typeof XMLHttpRequest<"u",tl=Qa&&function(t){return new Promise(function(e,n){let i=t.data;const r=at.from(t.headers).normalize(),o=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}let c;T.isFormData(i)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?T.isString(c=r.getContentType())&&r.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(h+":"+_))}const f=mr(t.baseURL,t.url);l.open(t.method.toUpperCase(),fr(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!l)return;const h=at.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),_={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:t,request:l};Xa(function(g){e(g),a()},function(g){n(g),a()},_),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(n(new O("Request aborted",O.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new O("Network Error",O.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let h=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const _=t.transitional||dr;t.timeoutErrorMessage&&(h=t.timeoutErrorMessage),n(new O(h,_.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,l)),l=null},et.isStandardBrowserEnv){const h=(t.withCredentials||Wa(f))&&t.xsrfCookieName&&$a.read(t.xsrfCookieName);h&&r.set(t.xsrfHeaderName,h)}i===void 0&&r.setContentType(null),"setRequestHeader"in l&&T.forEach(r.toJSON(),function(h,_){l.setRequestHeader(_,h)}),T.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",wr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",wr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{l&&(n(!h||h.type?new re(null,t,l):h),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const d=Ka(f);if(d&&et.protocols.indexOf(d)===-1){n(new O("Unsupported protocol "+d+":",O.ERR_BAD_REQUEST,t));return}l.send(i||null)})},In={http:ka,xhr:tl};T.forEach(In,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const yr=t=>`- ${t}`,el=t=>T.isFunction(t)||t===null||t===!1,vr={getAdapter:t=>{t=T.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let o=0;o<e;o++){n=t[o];let s;if(i=n,!el(n)&&(i=In[(s=String(n)).toLowerCase()],i===void 0))throw new O(`Unknown adapter '${s}'`);if(i)break;r[s||"#"+o]=i}if(!i){const o=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
4
+ `+o.map(yr).join(`
5
+ `):" "+yr(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:In};function Dn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new re(null,t)}function br(t){return Dn(t),t.headers=at.from(t.headers),t.data=Cn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),vr.getAdapter(t.adapter||kn.adapter)(t).then(function(e){return Dn(t),e.data=Cn.call(t,t.transformResponse,e),e.headers=at.from(e.headers),e},function(e){return gr(e)||(Dn(t),e&&e.response&&(e.response.data=Cn.call(t,t.transformResponse,e.response),e.response.headers=at.from(e.response.headers))),Promise.reject(e)})}const xr=t=>t instanceof at?t.toJSON():t;function Ht(t,e){e=e||{};const n={};function i(l,f,u){return T.isPlainObject(l)&&T.isPlainObject(f)?T.merge.call({caseless:u},l,f):T.isPlainObject(f)?T.merge({},f):T.isArray(f)?f.slice():f}function r(l,f,u){if(T.isUndefined(f)){if(!T.isUndefined(l))return i(void 0,l,u)}else return i(l,f,u)}function o(l,f){if(!T.isUndefined(f))return i(void 0,f)}function s(l,f){if(T.isUndefined(f)){if(!T.isUndefined(l))return i(void 0,l)}else return i(void 0,f)}function a(l,f,u){if(u in e)return i(l,f);if(u in t)return i(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,f)=>r(xr(l),xr(f),!0)};return T.forEach(Object.keys(Object.assign({},t,e)),function(l){const f=c[l]||r,u=f(t[l],e[l],l);T.isUndefined(u)&&f!==a||(n[l]=u)}),n}const Er="1.5.1",Pn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Pn[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Sr={};Pn.transitional=function(t,e,n){function i(r,o){return"[Axios v"+Er+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,s)=>{if(t===!1)throw new O(i(o," has been removed"+(e?" in "+e:"")),O.ERR_DEPRECATED);return e&&!Sr[o]&&(Sr[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,o,s):!0}};function nl(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=e[o];if(s){const a=t[o],c=a===void 0||s(a,o,t);if(c!==!0)throw new O("option "+o+" must be "+c,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const Mn={assertOptions:nl,validators:Pn},mt=Mn.validators;class He{constructor(e){this.defaults=e,this.interceptors={request:new ur,response:new ur}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ht(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:o}=n;i!==void 0&&Mn.assertOptions(i,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),r!=null&&(T.isFunction(r)?n.paramsSerializer={serialize:r}:Mn.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&T.merge(o.common,o[n.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=at.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const l=[];this.interceptors.response.forEach(function(_){l.push(_.fulfilled,_.rejected)});let f,u=0,d;if(!c){const _=[br.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,l),d=_.length,f=Promise.resolve(n);u<d;)f=f.then(_[u++],_[u++]);return f}d=a.length;let h=n;for(u=0;u<d;){const _=a[u++],g=a[u++];try{h=_(h)}catch(p){g.call(this,p);break}}try{f=br.call(this,h)}catch(_){return Promise.reject(_)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(e){e=Ht(this.defaults,e);const n=mr(e.baseURL,e.url);return fr(n,e.params,e.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(t){He.prototype[t]=function(e,n){return this.request(Ht(n||{},{method:t,url:e,data:(n||{}).data}))}}),T.forEach(["post","put","patch"],function(t){function e(n){return function(i,r,o){return this.request(Ht(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}He.prototype[t]=e(),He.prototype[t+"Form"]=e(!0)});const qe=He;class Rn{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(r=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](r);i._listeners=null}),this.promise.then=r=>{let o;const s=new Promise(a=>{i.subscribe(a),o=a}).then(r);return s.cancel=function(){i.unsubscribe(o)},s},e(function(r,o,s){i.reason||(i.reason=new re(r,o,s),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Rn(function(n){e=n}),cancel:e}}}const il=Rn;function rl(t){return function(e){return t.apply(null,e)}}function ol(t){return T.isObject(t)&&t.isAxiosError===!0}const On={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(On).forEach(([t,e])=>{On[e]=t});const sl=On;function Tr(t){const e=new qe(t),n=Yi(qe.prototype.request,e);return T.extend(n,qe.prototype,e,{allOwnKeys:!0}),T.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Tr(Ht(t,i))},n}const N=Tr(kn);N.Axios=qe,N.CanceledError=re,N.CancelToken=il,N.isCancel=gr,N.VERSION=Er,N.toFormData=Be,N.AxiosError=O,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=rl,N.isAxiosError=ol,N.mergeConfig=Ht,N.AxiosHeaders=at,N.formToJSON=t=>_r(T.isHTMLForm(t)?new FormData(t):t),N.getAdapter=vr.getAdapter,N.HttpStatusCode=sl,N.default=N;var Ln=function(t,e){return Ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Ln(t,e)};function wt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ln(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Un(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,o=[],s;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return o}function se(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,o;i<r;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))}function lt(t){return typeof t=="function"}function Fn(t){var e=function(i){Error.call(i),i.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var zn=Fn(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
6
+ `+e.map(function(n,i){return i+1+") "+n.toString()}).join(`
7
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function Ze(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ae=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,i,r,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Un(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else s.remove(this);var f=this.initialTeardown;if(lt(f))try{f()}catch(g){o=g instanceof zn?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=Un(u),h=d.next();!h.done;h=d.next()){var _=h.value;try{Cr(_)}catch(g){o=o??[],g instanceof zn?o=se(se([],oe(o)),oe(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(o)throw new zn(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Cr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Ze(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Ze(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),kr=ae.EMPTY;function Ar(t){return t instanceof ae||t&&"closed"in t&&lt(t.remove)&&lt(t.add)&&lt(t.unsubscribe)}function Cr(t){lt(t)?t():t.unsubscribe()}var Ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},al={setTimeout:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,se([t,e],oe(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function ll(t){al.setTimeout(function(){throw t})}function Dr(){}function Ge(t){t()}var Bn=function(t){wt(e,t);function e(n){var i=t.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Ar(n)&&n.add(i)):i.destination=ul,i}return e.create=function(n,i,r){return new jn(n,i,r)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ae),cl=Function.prototype.bind;function Nn(t,e){return cl.call(t,e)}var hl=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(i){Xe(i)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(i){Xe(i)}else Xe(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Xe(n)}},t}(),jn=function(t){wt(e,t);function e(n,i,r){var o=t.call(this)||this,s;if(lt(n)||!n)s={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;o&&Ir.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&Nn(n.next,a),error:n.error&&Nn(n.error,a),complete:n.complete&&Nn(n.complete,a)}):s=n}return o.destination=new hl(s),o}return e}(Bn);function Xe(t){ll(t)}function fl(t){throw t}var ul={closed:!0,next:Dr,error:fl,complete:Dr},dl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _l(t){return t}function pl(t){return t.length===0?_l:t.length===1?t[0]:function(e){return t.reduce(function(n,i){return i(n)},e)}}var Pr=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,i){var r=this,o=ml(e)?e:new jn(e,n,i);return Ge(function(){var s=r,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var i=this;return n=Mr(n),new n(function(r,o){var s=new jn({next:function(a){try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});i.subscribe(s)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[dl]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return pl(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Mr(e),new e(function(i,r){var o;n.subscribe(function(s){return o=s},function(s){return r(s)},function(){return i(o)})})},t.create=function(e){return new t(e)},t}();function Mr(t){var e;return(e=t??Ir.Promise)!==null&&e!==void 0?e:Promise}function gl(t){return t&&lt(t.next)&&lt(t.error)&&lt(t.complete)}function ml(t){return t&&t instanceof Bn||gl(t)&&Ar(t)}(function(t){wt(e,t);function e(n,i,r,o,s,a){var c=t.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=i?function(l){try{i(l)}catch(f){n.error(f)}}:t.prototype._next,c._error=o?function(l){try{o(l)}catch(f){n.error(f)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(Bn);var wl=Fn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yl=function(t){wt(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var i=new Rr(this,this);return i.operator=n,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new wl},e.prototype.next=function(n){var i=this;Ge(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=Un(i.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}}})},e.prototype.error=function(n){var i=this;Ge(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},e.prototype.complete=function(){var n=this;Ge(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var i=this,r=this,o=r.hasError,s=r.isStopped,a=r.observers;return o||s?kr:(this.currentObservers=null,a.push(n),new ae(function(){i.currentObservers=null,Ze(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,o=i.thrownError,s=i.isStopped;r?n.error(o):s&&n.complete()},e.prototype.asObservable=function(){var n=new Pr;return n.source=this,n},e.create=function(n,i){return new Rr(n,i)},e}(Pr),Rr=function(t){wt(e,t);function e(n,i){var r=t.call(this)||this;return r.destination=n,r.source=i,r}return e.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},e.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},e.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},e.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:kr},e}(yl),vl={now:function(){return Date.now()},delegate:void 0},bl=function(t){wt(e,t);function e(n,i){return t.call(this)||this}return e.prototype.schedule=function(n,i){return this},e}(ae),Hn={setInterval:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Hn.delegate;return r?.setInterval?r.setInterval.apply(r,se([t,e],oe(n))):setInterval.apply(void 0,se([t,e],oe(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},xl=function(t){wt(e,t);function e(n,i){var r=t.call(this,n,i)||this;return r.scheduler=n,r.work=i,r.pending=!1,r}return e.prototype.schedule=function(n,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(s,this.id,i),this},e.prototype.requestAsyncId=function(n,i,r){return r===void 0&&(r=0),Hn.setInterval(n.flush.bind(n,this),r)},e.prototype.recycleAsyncId=function(n,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&Hn.clearInterval(i)},e.prototype.execute=function(n,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,i){var r=!1,o;try{this.work(n)}catch(s){r=!0,o=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,i=n.id,r=n.scheduler,o=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ze(o,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(bl),Or=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,i){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(i,n)},t.now=vl.now,t}(),El=function(t){wt(e,t);function e(n,i){i===void 0&&(i=Or.now);var r=t.call(this,n,i)||this;return r.actions=[],r._active=!1,r}return e.prototype.flush=function(n){var i=this.actions;if(this._active){i.push(n);return}var r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=i.shift());if(this._active=!1,r){for(;n=i.shift();)n.unsubscribe();throw r}},e}(Or);new El(xl);function Sl(t){switch(t.responseType){case"json":{if("response"in t)return t.response;var e=t;return JSON.parse(e.responseText)}case"document":return t.responseXML;case"text":default:{if("response"in t)return t.response;var e=t;return e.responseText}}}var Lr=Fn(function(t){return function(e,n,i){this.message=e,this.name="AjaxError",this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType;var r;try{r=Sl(n)}catch{r=n.responseText}this.response=r}});(function(){function t(e,n){return Lr.call(this,"ajax timeout",e,n),this.name="AjaxTimeoutError",this}return t.prototype=Object.create(Lr.prototype),t})();function Ur(t,e,n){return new Promise((i,r)=>{const o=new FileReader;if(o.onload=()=>i(o.result),o.onerror=s=>r(s),e){const s=t.slice(e,n);o.readAsArrayBuffer(s)}else o.readAsArrayBuffer(t)})}async function Tl(t){const e=await Ur(t,0,4);return wn(e)}const Fr=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function kl(t,e){t.addEventListener("change",function(){e(t.files)},!1)}function Al(t,e){t.addEventListener("dragover",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="copy")},!1),t.addEventListener("drop",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&e(n.dataTransfer.files)},!1)}const Cl=(t=["*"],e)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new Fi;const n=globalThis.document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&n.setAttribute("accept",t.join(",")),e&&n.setAttribute("multiple","true"),n.click(),new Promise((r,o)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!n.files||n.files?.length===0)&&o(new mn)},1e3)},{once:!0}),n.addEventListener("change",()=>{if(!n.files||n.files?.length===0)o(new mn);else{const s=Array.from(n.files);i(s)&&o(new zi(t)),r(s)}})});function i(r){return!t.includes("*")&&r.some(o=>!t.includes(`.${Fr(o)}`))}},Il=t=>{const e=new FileReader;return new Promise((n,i)=>{e.addEventListener("progress",r=>{const o="("+Math.floor(r.total/1e3)+" KB)",s=Math.floor(r.loaded/r.total*100)+"%";console.log(`Loading size: ${o} progress: ${s}`)}),e.addEventListener("load",r=>{n(r.target?.result)}),e.addEventListener("error",r=>{i(r)}),t(e)})};function Dl(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function Pl(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function zr(t,e,n){if(!t){n&&e&&n.appendChild(e);return}if(!t.isEqualNode(e)){if(t.nodeName!==e.nodeName){n.replaceChild(e,t);return}if(t.nodeType===Node.TEXT_NODE){t.textContent!==e.textContent&&(t.textContent=e.textContent);return}for(let i=t.attributes.length-1;i>=0;i--){const r=t.attributes[i].name;!e.hasAttribute(r)&&r!=="open"&&t.removeAttribute(r)}for(let i=0;i<e.attributes.length;i++){const r=e.attributes[i].name,o=e.attributes[i].value;t.setAttribute(r,o)}for(let i=0;i<e.childNodes.length;i++)t.childNodes[i]?zr(t.childNodes[i],e.childNodes[i],t):t.appendChild(e.childNodes[i].cloneNode(!0));for(;t.childNodes.length>e.childNodes.length;)t.lastChild&&t.removeChild(t.lastChild)}}function Ml(t,e,n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=t+"="+e+"; "+r}function Rl(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(r.indexOf(e)==0)return r.substring(e.length,r.length)}return""}const Ol=()=>document.cookie.split(";").map(t=>t.split("=")).reduce((t,[e,n])=>(t[e.trim().replace('"',"")]=n)&&t,{}),Ll=()=>document.cookie.split(";").forEach(t=>document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class le{constructor(e){this.waitingResponse=[],this.messageQueue=[],this.url=e,this.createSocket()}createSocket(){this.socket=new le(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(e=>this.socket.send(e)),this.messageQueue=[]},this.socket.onclose=e=>{const{code:n,reason:i,wasClean:r}=e;console.log(`ws closed : ${n} ${i} ${r}`)},this.socket.onerror=e=>{console.log(`ws error : ${e}`)},this.socket.onmessage=e=>{this.processMessage(e)}}recreateSocket(e){console.log("Reconnection Attempted"),this.messageQueue.push(e),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(e){let n=+new Date;const i=this.waitingResponse[n]={sent:n},r={...i,...e};try{this.socket.readyState===le.OPEN?this.socket.send(JSON.stringify(r)):this.recreateSocket(JSON.stringify(r));const o=await new Promise(function(s,a){i.resolve=s,console.log(i),setTimeout(()=>{a("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),o}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[n]}}async processMessage(e){try{let n=JSON.parse(e.data);if(Object.prototype.hasOwnProperty.call(n,"requestid")){const i=this.waitingResponse[n.requestid];i?i.resolve(n):console.warn("Got data but found no associated request, already timed out?",n)}else console.warn("Got data without request id",n)}catch{console.log(e.data)}}async sendRequest(e,n,i=r=>{console.log(r)}){this.sendPayload(e).then(function(r){n(r)},function(r){i(r)})}sendMessage(e){const n=(()=>{try{return JSON.stringify(e)}catch{return e}})();this.socket.readyState===le.OPEN?this.socket.send(n):this.recreateSocket(n)}}function qt(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function $e(){const t=qt();return{width:t.clientWidth||window.innerWidth,height:t.clientHeight||window.innerHeight}}function Ul(){const t=qt(),e=$e();return{width:Math.max(t.scrollWidth,e.width),height:Math.max(t.scrollHeight,e.height)}}function Fl(t){const e=$e(),n=t.getBoundingClientRect();return n.bottom>0&&n.top<e.height&&n.right>0&&n.left<e.width}function qn(){const t=qt();return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Zn(){const t=qt();return{clientLeft:t.clientLeft,clientTop:t.clientTop}}function Br(t){const e=t.getBoundingClientRect(),n=qn(),i=Zn();return{x:e.left+n.scrollLeft-i.clientLeft,y:e.top+n.scrollTop-i.clientTop}}function zl(t){return{x:Nr(t),y:jr(t)}}function Nr(t){let e=0;for(;t!==null;)e+=t.offsetLeft,t=t.offsetParent;return e}function jr(t){let e=0;for(;t!==null;)e+=t.offsetTop,t=t.offsetParent;return e}function Bl(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top}}function Nl(){const t=qt(),e=t.scrollHeight-t.clientHeight;return e<=0?0:t.scrollTop/e*100}function Hr(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=qn(),n=Zn();return{x:t.clientX+e.scrollLeft-n.clientLeft,y:t.clientY+e.scrollTop-n.clientTop}}function Ve(t,e){const n=Hr(e),i=Br(t);return{x:n.x-i.x,y:n.y-i.y}}function jl(t){return{x:t.clientX,y:t.clientY}}const ce=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return t.includes("mac")?e="macOS":t.includes("win")?e="Windows":/android/.test(t)?e="Android":/iphone|ipad|ipod/.test(t)?e="iOS":/linux/.test(t)?e="Linux":/bsd/.test(t)&&(e="BSD"),e.toLowerCase()},Hl=()=>{const t=navigator.userAgent;let e="Unknown";if(/Windows NT/.test(t)){const n=t.match(/Windows NT (\d+\.\d+)/);n&&(e=n[1])}else if(/Mac OS X/.test(t)){const n=t.match(/Mac OS X (\d+_\d+)/);n&&(e=n[1].replace("_","."))}else if(/Android/.test(t)){const n=t.match(/Android (\d+\.\d+)/);n&&(e=n[1])}else if(/iPhone|iPad|iPod/.test(t)){const n=t.match(/OS (\d+_\d+)/);n&&(e=n[1].replace("_","."))}return e.toLowerCase()},ql=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/chrome/.test(t)?e="Chrome":/firefox/.test(t)?e="Firefox":/safari/.test(t)?e="Safari":/edge/.test(t)?e="Edge":/msie|trident/.test(t)&&(e="IE"),e.toLowerCase()},Zl=()=>{const t=navigator.userAgent;let e="Unknown";if(/Chrome/.test(t)){const n=t.match(/Chrome\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Firefox/.test(t)){const n=t.match(/Firefox\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Safari/.test(t)){const n=t.match(/Version\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Edge/.test(t)){const n=t.match(/Edge\/(\d+\.\d+)/);n&&(e=n[1])}else if(/MSIE|Trident/.test(t)){const n=t.match(/(?:MSIE|rv:)(\d+\.\d+)/);n&&(e=n[1])}return e},Gl=()=>"geolocation"in navigator?new Promise((t,e)=>{navigator.geolocation.getCurrentPosition(n=>{const i=n.coords.latitude,r=n.coords.longitude;t({latitude:i,longitude:r})},n=>{e(n)})}):Promise.reject("Geolocation is not available.");function Xl(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function $l(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function qr(){return ce()==="ios"}function Vl(){return ce()==="ios"|ce()==="macos"}function Zr(){return ce()==="android"}function Yl(){return qr()||Zr()}function Wl(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function Gr(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}const i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}const Kl=Gr()!==-1,Jl=typeof window=="object"&&typeof document=="object",Ql=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,tc=typeof document<"u",Xr=typeof window<"u",ec=typeof history<"u",nc=typeof process<"u",ic=Xr&&window.File&&window.FileReader&&window.FileList&&window.Blob;function rc(t){var e=document.documentElement,n=window.devicePixelRatio;e.dataset.dpr=n;var i=100,r=function(){var o=Math.min(e.clientWidth,t);e.dataset.width=o,e.dataset.rem=i=Math.round(100*(o/t)),e.style.fontSize=i+"px"};r(),window.rem2px=function(o){return o=parseFloat(o),o*i},window.px2rem=function(o){return o=parseFloat(o),o/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function oc(t){return btoa(encodeURIComponent(t)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function sc(t){let e=t.replaceAll("*","+").replaceAll("-","/");const n=e.length%4;return n&&(e=e.padEnd(e.length+(4-n),"=")),decodeURIComponent(atob(e))}function $r(t){return new URL(t)}function ac(t){const e=$r(t);return e.protocol==="http:"||e.protocol==="https:"}const lc=t=>Array.from(new URLSearchParams(t)).reduce((e,[n,i])=>Object.assign({},e,{[n]:e[n]?(Array.isArray(e[n])?e[n]:[e[n]]).concat(i):i}),{});function cc(){const t={};let e=location.search;return e&&(e=e.substring(1,e.length),e.split("&").forEach(i=>{const r=i.split("=");t[r[0]]=decodeURIComponent(r[1])})),t}function hc(t){let e="";new MutationObserver(function(i){window.location.href!==e&&(e=window.location.href,console.log(`URL data changed to ${window.location.href}`),t&&t(location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0})}function fc(t){window.addEventListener("hashchange",()=>{t(location.hash)})}function uc(t){window.addEventListener("popstate",t,!1)}class At{static getEvent(e){const n=e.keyCode||e.charCode;return{code:n,key:At.codeToKey(n)}}static keyToCode(e){return Object.prototype.hasOwnProperty.call(At.keyToCodes,e)?At.keyToCodes[e]:-1}static codeToKey(e){return Object.prototype.hasOwnProperty.call(At.codeToKeys,e.toString())?At.codeToKeys[e.toString()]:""}static keyToCodes={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,command:15,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,numpad:21,escape:27,spacebar:32,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_braket:221,single_quote:222};static codeToKeys={8:"backspace",9:"tab",13:"enter",15:"command",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",21:"numpad",27:"escape",32:"spacebar",33:"page_up",34:"page_down",35:"end",36:"home",37:"left_arrow",38:"up_arrow",39:"right_arrow",40:"down_arrow",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left_window_key",92:"right_window_key",93:"select_key",96:"numpad_0",97:"numpad_1",98:"numpad_2",99:"numpad_3",100:"numpad_4",101:"numpad_5",102:"numpad_6",103:"numpad_7",104:"numpad_8",105:"numpad_9",106:"multiply",107:"add",109:"subtract",110:"decimal_point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",144:"num_lock",145:"scroll_lock",186:"semi_colon",187:"equal_sign",188:"comma",189:"dash",190:"period",191:"forward_slash",192:"grave_accent",219:"open_bracket",220:"back_slash",221:"close_braket",222:"single_quote"}}const dc=t=>navigator.clipboard.writeText(t),_c=()=>window.getSelection()?.toString(),pc=t=>t===document.activeElement,gc=t=>Array.prototype.slice.call(t.parentNode?.children).filter(e=>e!==t),mc=()=>!document.hidden,wc=()=>history.back(),yc=()=>history.go(-1);function vc(t){const e=document.createElement("script");e.type="text/javascript",e.src=t,e.async=!1,document.body.appendChild(e),e.onload=()=>{},e.onerror=()=>{}}function bc(){const t=document.getElementsByTagName("img"),e=$e().height;let n=0;return()=>{for(let i=n;i<t.length;i++)t[i].getBoundingClientRect().top<e&&(t[i].src=t[i].getAttribute("data-src")??"",n=i+1)}}const xc=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})}),Ec=(t,e,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e>12?e+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r},Sc=(t,e,n=12,i=400,r=!0)=>{let o="",s="",a="";if(!t||e<n||typeof t!="string")return o;const c=t.split(""),l=document.createElement("span");l.style.visibility="hidden",l.style.padding="0",l.style.whiteSpace="nowrap",l.style.overflow="visible",l.style.fontSize=n>12?n+"px":"12px",l.style.fontWeight=i.toString(),document.body.appendChild(l);for(let f=0,u=c.length;f<u;f++){const d=c[f];if(s=a,a+=d,o=a,l.innerText=a,l.offsetWidth>e){r?o=s+"...":o=s;break}}return document.body.removeChild(l),o};function Tc(t,e="encode"){const n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=new RegExp(e=="decode"?i:n[i],"g");t=t.replace(r,e=="decode"?n[i]:i)}return t}function kc(t){const e=/<%=(.+?)%>/g,n=/<%([\s\S]+?)%>/g;return t=t.replace(e,"`); \n echo( $1 ); \n echo(`").replace(n,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
2
8
  let output = "";
3
9
 
4
10
  function echo(html){
@@ -8,11 +14,5 @@
8
14
  ${t}
9
15
 
10
16
  return output;
11
- })`}function za(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Ba(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function Na(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ja(t){t.preventDefault?t.preventDefault:t.returnValue=!1}function Ha(t){return t.target||t.srcElement}const qa=typeof document<"u"&&document.ontouchstart?"touchstart":"click";function Za(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout(function(){e(n+i)},i);return t=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Vi=t=>{function e(n){const i=window.requestAnimationFrame(e);t(n,i)}window.requestAnimationFrame(e)},Ga=(t,e)=>{const i=document.getElementById(t).getContext("2d");Vi((r,s)=>{e(i,r,s)})};function Xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yi={exports:{}};(function(t){var e={};t.exports=e,e.parse=function(n,i){for(var r=e.bin.readUshort,s=e.bin.readUint,l=0,o={},a=new Uint8Array(n),c=a.length-4;s(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var f=r(a,l);l+=2,r(a,l),l+=2;var u=s(a,l);l+=4;var d=s(a,l);l+=4,l=d;for(var h=0;h<f;h++){s(a,l),l+=4,l+=4,l+=4,l+=4,s(a,l),l+=4;var u=s(a,l);l+=4;var _=s(a,l);l+=4;var p=r(a,l),g=r(a,l+2),m=r(a,l+4);l+=6,l+=8;var y=s(a,l);l+=4,l+=p+g+m,e._readLocal(a,y,o,u,_,i)}return o},e._readLocal=function(n,i,r,s,o,a){var c=e.bin.readUshort,l=e.bin.readUint;l(n,i),i+=4,c(n,i),i+=2,c(n,i),i+=2;var f=c(n,i);i+=2,l(n,i),i+=4,l(n,i),i+=4,i+=8;var u=c(n,i);i+=2;var d=c(n,i);i+=2;var h=e.bin.readUTF8(n,i,u);if(i+=u,i+=d,a){r[h]={size:o,csize:s};return}var _=new Uint8Array(n.buffer,i);if(f==0)r[h]=new Uint8Array(_.buffer.slice(i,i+s));else if(f==8){var p=new Uint8Array(o);e.inflateRaw(_,p),r[h]=p}else throw"unknown compression method: "+f},e.inflateRaw=function(n,i){return e.F.inflate(n,i)},e.inflate=function(n,i){return n[0],n[1],e.inflateRaw(new Uint8Array(n.buffer,n.byteOffset+2,n.length-6),i)},e.deflate=function(n,i){i==null&&(i={level:6});var r=0,s=new Uint8Array(50+Math.floor(n.length*1.1));s[r]=120,s[r+1]=156,r+=2,r=e.F.deflateRaw(n,s,r,i.level);var o=e.adler(n,0,n.length);return s[r+0]=o>>>24&255,s[r+1]=o>>>16&255,s[r+2]=o>>>8&255,s[r+3]=o>>>0&255,new Uint8Array(s.buffer,0,r+4)},e.deflateRaw=function(n,i){i==null&&(i={level:6});var r=new Uint8Array(50+Math.floor(n.length*1.1)),s=e.F.deflateRaw(n,r,s,i.level);return new Uint8Array(r.buffer,0,s)},e.encode=function(n,i){i==null&&(i=!1);var r=0,s=e.bin.writeUint,o=e.bin.writeUshort,a={};for(var c in n){var l=!e._noNeed(c)&&!i,f=n[c],u=e.crc.crc(f,0,f.length);a[c]={cpr:l,usize:f.length,crc:u,file:l?e.deflateRaw(f):f}}for(var c in a)r+=a[c].file.length+30+46+2*e.bin.sizeUTF8(c);r+=22;var d=new Uint8Array(r),h=0,_=[];for(var c in a){var p=a[c];_.push(h),h=e._writeHeader(d,h,c,p,0)}var g=0,m=h;for(var c in a){var p=a[c];_.push(h),h=e._writeHeader(d,h,c,p,1,_[g++])}var y=h-m;return s(d,h,101010256),h+=4,h+=4,o(d,h,g),h+=2,o(d,h,g),h+=2,s(d,h,y),h+=4,s(d,h,m),h+=4,h+=2,d.buffer},e._noNeed=function(n){var i=n.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},e._writeHeader=function(n,i,r,s,o,a){var c=e.bin.writeUint,l=e.bin.writeUshort,f=s.file;c(n,i,o==0?67324752:33639248),i+=4,o==1&&(i+=2),l(n,i,20),i+=2,l(n,i,0),i+=2,l(n,i,s.cpr?8:0),i+=2,c(n,i,0),i+=4,c(n,i,s.crc),i+=4,c(n,i,f.length),i+=4,c(n,i,s.usize),i+=4,l(n,i,e.bin.sizeUTF8(r)),i+=2,l(n,i,0),i+=2,o==1&&(i+=2,i+=2,i+=6,c(n,i,a),i+=4);var u=e.bin.writeUTF8(n,i,r);return i+=u,o==0&&(n.set(f,i),i+=f.length),i},e.crc={table:function(){for(var n=new Uint32Array(256),i=0;i<256;i++){for(var r=i,s=0;s<8;s++)r&1?r=3988292384^r>>>1:r=r>>>1;n[i]=r}return n}(),update:function(n,i,r,s){for(var o=0;o<s;o++)n=e.crc.table[(n^i[r+o])&255]^n>>>8;return n},crc:function(n,i,r){return e.crc.update(4294967295,n,i,r)^4294967295}},e.adler=function(n,i,r){for(var s=1,o=0,a=i,c=i+r;a<c;){for(var l=Math.min(a+5552,c);a<l;)s+=n[a++],o+=s;s=s%65521,o=o%65521}return o<<16|s},e.bin={readUshort:function(n,i){return n[i]|n[i+1]<<8},writeUshort:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255},readUint:function(n,i){return n[i+3]*(256*256*256)+(n[i+2]<<16|n[i+1]<<8|n[i])},writeUint:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255,n[i+2]=r>>16&255,n[i+3]=r>>24&255},readASCII:function(n,i,r){for(var s="",o=0;o<r;o++)s+=String.fromCharCode(n[i+o]);return s},writeASCII:function(n,i,r){for(var s=0;s<r.length;s++)n[i+s]=r.charCodeAt(s)},pad:function(n){return n.length<2?"0"+n:n},readUTF8:function(n,i,r){for(var s="",o,a=0;a<r;a++)s+="%"+e.bin.pad(n[i+a].toString(16));try{o=decodeURIComponent(s)}catch{return e.bin.readASCII(n,i,r)}return o},writeUTF8:function(n,i,r){for(var s=r.length,o=0,a=0;a<s;a++){var c=r.charCodeAt(a);if(!(c&4294967295-128+1))n[i+o]=c,o++;else if(!(c&4294967295-2048+1))n[i+o]=192|c>>6,n[i+o+1]=128|c>>0&63,o+=2;else if(!(c&4294967295-65536+1))n[i+o]=224|c>>12,n[i+o+1]=128|c>>6&63,n[i+o+2]=128|c>>0&63,o+=3;else if(!(c&4294967295-(1<<21)+1))n[i+o]=240|c>>18,n[i+o+1]=128|c>>12&63,n[i+o+2]=128|c>>6&63,n[i+o+3]=128|c>>0&63,o+=4;else throw"e"}return o},sizeUTF8:function(n){for(var i=n.length,r=0,s=0;s<i;s++){var o=n.charCodeAt(s);if(!(o&4294967295-128+1))r++;else if(!(o&4294967295-2048+1))r+=2;else if(!(o&4294967295-65536+1))r+=3;else if(!(o&4294967295-(1<<21)+1))r+=4;else throw"e"}return r}},e.F={},e.F.deflateRaw=function(n,i,r,s){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=o[s],c=e.F.U,l=e.F._goodIndex;e.F._hash;var f=e.F._putsE,u=0,d=r<<3,h=0,_=n.length;if(s==0){for(;u<_;){var p=Math.min(65535,_-u);f(i,d,u+p==_?1:0),d=e.F._copyExact(n,u,p,i,d+8),u+=p}return d>>>3}var g=c.lits,m=c.strt,y=c.prev,b=0,v=0,E=0,x=0,S=0,C=0;for(_>2&&(C=e.F._hash(n,0),m[C]=0),u=0;u<_;u++){if(S=C,u+1<_-2){C=e.F._hash(n,u+1);var T=u+1&32767;y[T]=m[C],m[C]=T}if(h<=u){(b>14e3||v>26697)&&_-u>100&&(h<u&&(g[b]=u-h,b+=2,h=u),d=e.F._writeBlock(u==_-1||h==_?1:0,g,b,x,n,E,u-E,i,d),b=v=x=0,E=u);var A=0;u<_-2&&(A=e.F._bestMatch(n,u,y,S,Math.min(a[2],_-u),a[3]));var p=A>>>16,D=A&65535;if(A!=0){var p=A>>>16,D=A&65535,P=l(p,c.of0);c.lhst[257+P]++;var U=l(D,c.df0);c.dhst[U]++,x+=c.exb[P]+c.dxb[U],g[b]=p<<23|u-h,g[b+1]=D<<16|P<<8|U,b+=2,h=u+p}else c.lhst[n[u]]++;v++}}for((E!=u||n.length==0)&&(h<u&&(g[b]=u-h,b+=2,h=u),d=e.F._writeBlock(1,g,b,x,n,E,u-E,i,d),b=0,v=0,b=v=x=0,E=u);d&7;)d++;return d>>>3},e.F._bestMatch=function(n,i,r,s,o,a){var c=i&32767,l=r[c],f=c-l+32768&32767;if(l==c||s!=e.F._hash(n,i-f))return 0;for(var u=0,d=0,h=Math.min(32767,i);f<=h&&--a!=0&&l!=c;){if(u==0||n[i+u]==n[i+u-f]){var _=e.F._howLong(n,i,f);if(_>u){if(u=_,d=f,u>=o)break;f+2<_&&(_=f+2);for(var p=0,g=0;g<_-2;g++){var m=i-f+g+32768&32767,y=r[m],b=m-y+32768&32767;b>p&&(p=b,l=m)}}}c=l,l=r[c],f+=c-l+32768&32767}return u<<16|d},e.F._howLong=function(n,i,r){if(n[i]!=n[i-r]||n[i+1]!=n[i+1-r]||n[i+2]!=n[i+2-r])return 0;var s=i,o=Math.min(n.length,i+258);for(i+=3;i<o&&n[i]==n[i-r];)i++;return i-s},e.F._hash=function(n,i){return(n[i]<<8|n[i+1])+(n[i+2]<<4)&65535},e.saved=0,e.F._writeBlock=function(n,i,r,s,o,a,c,l,f){var u=e.F.U,d=e.F._putsF,h=e.F._putsE,_,p,g,m,y,b,v,E,x;u.lhst[256]++,_=e.F.getTrees(),p=_[0],g=_[1],m=_[2],y=_[3],b=_[4],v=_[5],E=_[6],x=_[7];var S=(f+3&7?8-(f+3&7):0)+32+(c<<3),C=s+e.F.contSize(u.fltree,u.lhst)+e.F.contSize(u.fdtree,u.dhst),T=s+e.F.contSize(u.ltree,u.lhst)+e.F.contSize(u.dtree,u.dhst);T+=14+3*v+e.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var A=0;A<286;A++)u.lhst[A]=0;for(var A=0;A<30;A++)u.dhst[A]=0;for(var A=0;A<19;A++)u.ihst[A]=0;var D=S<C&&S<T?0:C<T?1:2;if(d(l,f,n),d(l,f+1,D),f+=3,D==0){for(;f&7;)f++;f=e.F._copyExact(o,a,c,l,f)}else{var P,U;if(D==1&&(P=u.fltree,U=u.fdtree),D==2){e.F.makeCodes(u.ltree,p),e.F.revCodes(u.ltree,p),e.F.makeCodes(u.dtree,g),e.F.revCodes(u.dtree,g),e.F.makeCodes(u.itree,m),e.F.revCodes(u.itree,m),P=u.ltree,U=u.dtree,h(l,f,y-257),f+=5,h(l,f,b-1),f+=5,h(l,f,v-4),f+=4;for(var z=0;z<v;z++)h(l,f+z*3,u.itree[(u.ordr[z]<<1)+1]);f+=3*v,f=e.F._codeTiny(E,u.itree,l,f),f=e.F._codeTiny(x,u.itree,l,f)}for(var R=a,Ut=0;Ut<r;Ut+=2){for(var _t=i[Ut],Ft=_t>>>23,Pe=R+(_t&(1<<23)-1);R<Pe;)f=e.F._writeLit(o[R++],P,l,f);if(Ft!=0){var Qt=i[Ut+1],Li=Qt>>16,zt=Qt>>8&255,kt=Qt&255;f=e.F._writeLit(257+zt,P,l,f),h(l,f,Ft-u.of0[zt]),f+=u.exb[zt],f=e.F._writeLit(kt,U,l,f),d(l,f,Li-u.df0[kt]),f+=u.dxb[kt],R+=Ft}}f=e.F._writeLit(256,P,l,f)}return f},e.F._copyExact=function(n,i,r,s,o){var a=o>>>3;return s[a]=r,s[a+1]=r>>>8,s[a+2]=255-s[a],s[a+3]=255-s[a+1],a+=4,s.set(new Uint8Array(n.buffer,i,r),a),o+(r+4<<3)},e.F.getTrees=function(){for(var n=e.F.U,i=e.F._hufTree(n.lhst,n.ltree,15),r=e.F._hufTree(n.dhst,n.dtree,15),s=[],o=e.F._lenCodes(n.ltree,s),a=[],c=e.F._lenCodes(n.dtree,a),l=0;l<s.length;l+=2)n.ihst[s[l]]++;for(var l=0;l<a.length;l+=2)n.ihst[a[l]]++;for(var f=e.F._hufTree(n.ihst,n.itree,7),u=19;u>4&&n.itree[(n.ordr[u-1]<<1)+1]==0;)u--;return[i,r,f,o,c,u,s,a]},e.F.getSecond=function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(n[r+1]);return i},e.F.nonZero=function(n){for(var i="",r=0;r<n.length;r+=2)n[r+1]!=0&&(i+=(r>>1)+",");return i},e.F.contSize=function(n,i){for(var r=0,s=0;s<i.length;s++)r+=i[s]*n[(s<<1)+1];return r},e.F._codeTiny=function(n,i,r,s){for(var o=0;o<n.length;o+=2){var a=n[o],c=n[o+1];s=e.F._writeLit(a,i,r,s);var l=a==16?2:a==17?3:7;a>15&&(e.F._putsE(r,s,c,l),s+=l)}return s},e.F._lenCodes=function(n,i){for(var r=n.length;r!=2&&n[r-1]==0;)r-=2;for(var s=0;s<r;s+=2){var o=n[s+1],a=s+3<r?n[s+3]:-1,c=s+5<r?n[s+5]:-1,l=s==0?-1:n[s-1];if(o==0&&a==o&&c==o){for(var f=s+5;f+2<r&&n[f+2]==o;)f+=2;var u=Math.min(f+1-s>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),s+=u*2-2}else if(o==l&&a==o&&c==o){for(var f=s+5;f+2<r&&n[f+2]==o;)f+=2;var u=Math.min(f+1-s>>>1,6);i.push(16,u-3),s+=u*2-2}else i.push(o,0)}return r>>>1},e.F._hufTree=function(n,i,r){var s=[],o=n.length,a=i.length,c=0;for(c=0;c<a;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<o;c++)n[c]!=0&&s.push({lit:c,f:n[c]});var l=s.length,f=s.slice(0);if(l==0)return 0;if(l==1){var u=s[0].lit,f=u==0?1:0;return i[(u<<1)+1]=1,i[(f<<1)+1]=1,1}s.sort(function(y,b){return y.f-b.f});var d=s[0],h=s[1],_=0,p=1,g=2;for(s[0]={lit:-1,f:d.f+h.f,l:d,r:h,d:0};p!=l-1;)_!=p&&(g==l||s[_].f<s[g].f)?d=s[_++]:d=s[g++],_!=p&&(g==l||s[_].f<s[g].f)?h=s[_++]:h=s[g++],s[p++]={lit:-1,f:d.f+h.f,l:d,r:h};var m=e.F.setDepth(s[p-1],0);for(m>r&&(e.F.restrictDepth(f,r,m),m=r),c=0;c<l;c++)i[(f[c].lit<<1)+1]=f[c].d;return m},e.F.setDepth=function(n,i){return n.lit!=-1?(n.d=i,i):Math.max(e.F.setDepth(n.l,i+1),e.F.setDepth(n.r,i+1))},e.F.restrictDepth=function(n,i,r){var s=0,o=1<<r-i,a=0;for(n.sort(function(l,f){return f.d==l.d?l.f-f.f:f.d-l.d}),s=0;s<n.length&&n[s].d>i;s++){var c=n[s].d;n[s].d=i,a+=o-(1<<r-c)}for(a=a>>>r-i;a>0;){var c=n[s].d;c<i?(n[s].d++,a-=1<<i-c-1):s++}for(;s>=0;s--)n[s].d==i&&a<0&&(n[s].d--,a++);a!=0&&console.log("debt left")},e.F._goodIndex=function(n,i){var r=0;return i[r|16]<=n&&(r|=16),i[r|8]<=n&&(r|=8),i[r|4]<=n&&(r|=4),i[r|2]<=n&&(r|=2),i[r|1]<=n&&(r|=1),r},e.F._writeLit=function(n,i,r,s){return e.F._putsF(r,s,i[n<<1]),s+i[(n<<1)+1]},e.F.inflate=function(n,i){var r=Uint8Array;if(n[0]==3&&n[1]==0)return i||new r(0);var s=e.F,o=s._bitsF,a=s._bitsE,c=s._decodeTiny,l=s.makeCodes,f=s.codes2map,u=s._get17,d=s.U,h=i==null;h&&(i=new r(n.length>>>2<<3));for(var _=0,p=0,g=0,m=0,y=0,b=0,v=0,E=0,x=0,S,C;_==0;){if(_=o(n,x,1),p=o(n,x+1,2),x+=3,p==0){x&7&&(x+=8-(x&7));var T=(x>>>3)+4,A=n[T-4]|n[T-3]<<8;h&&(i=e.F._check(i,E+A)),i.set(new r(n.buffer,n.byteOffset+T,A),E),x=T+A<<3,E+=A;continue}if(h&&(i=e.F._check(i,E+(1<<17))),p==1&&(S=d.flmap,C=d.fdmap,b=512-1,v=32-1),p==2){g=a(n,x,5)+257,m=a(n,x+5,5)+1,y=a(n,x+10,4)+4,x+=14;for(var D=0;D<38;D+=2)d.itree[D]=0,d.itree[D+1]=0;for(var P=1,D=0;D<y;D++){var U=a(n,x+D*3,3);d.itree[(d.ordr[D]<<1)+1]=U,U>P&&(P=U)}x+=3*y,l(d.itree,P),f(d.itree,P,d.imap),S=d.lmap,C=d.dmap,x=c(d.imap,(1<<P)-1,g+m,n,x,d.ttree);var z=s._copyOut(d.ttree,0,g,d.ltree);b=(1<<z)-1;var R=s._copyOut(d.ttree,g,m,d.dtree);v=(1<<R)-1,l(d.ltree,z),f(d.ltree,z,S),l(d.dtree,R),f(d.dtree,R,C)}for(;;){var Ut=S[u(n,x)&b];x+=Ut&15;var _t=Ut>>>4;if(!(_t>>>8))i[E++]=_t;else{if(_t==256)break;var Ft=E+_t-254;if(_t>264){var Pe=d.ldef[_t-257];Ft=E+(Pe>>>3)+a(n,x,Pe&7),x+=Pe&7}var Qt=C[u(n,x)&v];x+=Qt&15;var Li=Qt>>>4,zt=d.ddef[Li],kt=(zt>>>4)+o(n,x,zt&15);for(x+=zt&15,h&&(i=e.F._check(i,E+(1<<17)));E<Ft;)i[E]=i[E++-kt],i[E]=i[E++-kt],i[E]=i[E++-kt],i[E]=i[E++-kt];E=Ft}}}return i.length==E?i:i.slice(0,E)},e.F._check=function(n,i){var r=n.length;if(i<=r)return n;var s=new Uint8Array(Math.max(r<<1,i));return s.set(n,0),s},e.F._decodeTiny=function(n,i,r,s,o,a){for(var c=e.F._bitsE,l=e.F._get17,f=0;f<r;){var u=n[l(s,o)&i];o+=u&15;var d=u>>>4;if(d<=15)a[f]=d,f++;else{var h=0,_=0;d==16?(_=3+c(s,o,2),o+=2,h=a[f-1]):d==17?(_=3+c(s,o,3),o+=3):d==18&&(_=11+c(s,o,7),o+=7);for(var p=f+_;f<p;)a[f]=h,f++}}return o},e.F._copyOut=function(n,i,r,s){for(var o=0,a=0,c=s.length>>>1;a<r;){var l=n[a+i];s[a<<1]=0,s[(a<<1)+1]=l,l>o&&(o=l),a++}for(;a<c;)s[a<<1]=0,s[(a<<1)+1]=0,a++;return o},e.F.makeCodes=function(n,i){for(var r=e.F.U,s=n.length,o,a,c,l,f,u=r.bl_count,l=0;l<=i;l++)u[l]=0;for(l=1;l<s;l+=2)u[n[l]]++;var d=r.next_code;for(o=0,u[0]=0,a=1;a<=i;a++)o=o+u[a-1]<<1,d[a]=o;for(c=0;c<s;c+=2)f=n[c+1],f!=0&&(n[c]=d[f],d[f]++)},e.F.codes2map=function(n,i,r){for(var s=n.length,o=e.F.U,a=o.rev15,c=0;c<s;c+=2)if(n[c+1]!=0)for(var l=c>>1,f=n[c+1],u=l<<4|f,d=i-f,h=n[c]<<d,_=h+(1<<d);h!=_;){var p=a[h]>>>15-i;r[p]=u,h++}},e.F.revCodes=function(n,i){for(var r=e.F.U.rev15,s=15-i,o=0;o<n.length;o+=2){var a=n[o]<<i-n[o+1];n[o]=r[a]>>>s}},e.F._putsE=function(n,i,r){r=r<<(i&7);var s=i>>>3;n[s]|=r,n[s+1]|=r>>>8},e.F._putsF=function(n,i,r){r=r<<(i&7);var s=i>>>3;n[s]|=r,n[s+1]|=r>>>8,n[s+2]|=r>>>16},e.F._bitsE=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8)>>>(i&7)&(1<<r)-1},e.F._bitsF=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)&(1<<r)-1},e.F._get17=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)},e.F._get25=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16|n[(i>>>3)+3]<<24)>>>(i&7)},e.F.U=function(){var n=Uint16Array,i=Uint32Array;return{next_code:new n(16),bl_count:new n(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new n(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i(32),flmap:new n(512),fltree:[],fdmap:new n(32),fdtree:[],lmap:new n(32768),ltree:[],ttree:[],dmap:new n(32768),dtree:[],imap:new n(512),itree:[],rev15:new n(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new n(65536),prev:new n(32768)}}(),function(){for(var n=e.F.U,i=32768,r=0;r<i;r++){var s=r;s=(s&2863311530)>>>1|(s&1431655765)<<1,s=(s&3435973836)>>>2|(s&858993459)<<2,s=(s&4042322160)>>>4|(s&252645135)<<4,s=(s&4278255360)>>>8|(s&16711935)<<8,n.rev15[r]=(s>>>16|s<<16)>>>17}function o(a,c,l){for(;c--!=0;)a.push(0,l)}for(var r=0;r<32;r++)n.ldef[r]=n.of0[r]<<3|n.exb[r],n.ddef[r]=n.df0[r]<<4|n.dxb[r];o(n.fltree,144,8),o(n.fltree,255-143,9),o(n.fltree,279-255,7),o(n.fltree,287-279,8),e.F.makeCodes(n.fltree,9),e.F.codes2map(n.fltree,9,n.flmap),e.F.revCodes(n.fltree,9),o(n.fdtree,32,5),e.F.makeCodes(n.fdtree,5),e.F.codes2map(n.fdtree,5,n.fdmap),e.F.revCodes(n.fdtree,5),o(n.itree,19,0),o(n.ltree,286,0),o(n.dtree,30,0),o(n.ttree,320,0)}()})(Yi);var $a=Yi.exports;const Wi=Xa($a);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Va=4,Ki=0,Ji=1,Ya=2;function Nt(t){let e=t.length;for(;--e>=0;)t[e]=0}const Wa=0,Qi=1,Ka=2,Ja=3,Qa=258,yn=29,ne=256,ie=ne+1+yn,jt=30,vn=19,tr=2*ie+1,At=15,bn=16,tl=7,xn=256,er=16,nr=17,ir=18,En=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Le=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),el=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),rr=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nl=512,ot=new Array((ie+2)*2);Nt(ot);const re=new Array(jt*2);Nt(re);const se=new Array(nl);Nt(se);const oe=new Array(Qa-Ja+1);Nt(oe);const Sn=new Array(yn);Nt(Sn);const Oe=new Array(jt);Nt(Oe);function kn(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}let sr,or,ar;function Tn(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const lr=t=>t<256?se[t]:se[256+(t>>>7)],ae=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},G=(t,e,n)=>{t.bi_valid>bn-n?(t.bi_buf|=e<<t.bi_valid&65535,ae(t,t.bi_buf),t.bi_buf=e>>bn-t.bi_valid,t.bi_valid+=n-bn):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},Q=(t,e,n)=>{G(t,n[e*2],n[e*2+1])},cr=(t,e)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--e>0);return n>>>1},il=t=>{t.bi_valid===16?(ae(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},rl=(t,e)=>{const n=e.dyn_tree,i=e.max_code,r=e.stat_desc.static_tree,s=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let l,f,u,d,h,_,p=0;for(d=0;d<=At;d++)t.bl_count[d]=0;for(n[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l<tr;l++)f=t.heap[l],d=n[n[f*2+1]*2+1]+1,d>c&&(d=c,p++),n[f*2+1]=d,!(f>i)&&(t.bl_count[d]++,h=0,f>=a&&(h=o[f-a]),_=n[f*2],t.opt_len+=_*(d+h),s&&(t.static_len+=_*(r[f*2+1]+h)));if(p!==0){do{for(d=c-1;t.bl_count[d]===0;)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(d=c;d!==0;d--)for(f=t.bl_count[d];f!==0;)u=t.heap[--l],!(u>i)&&(n[u*2+1]!==d&&(t.opt_len+=(d-n[u*2+1])*n[u*2],n[u*2+1]=d),f--)}},hr=(t,e,n)=>{const i=new Array(At+1);let r=0,s,o;for(s=1;s<=At;s++)r=r+n[s-1]<<1,i[s]=r;for(o=0;o<=e;o++){let a=t[o*2+1];a!==0&&(t[o*2]=cr(i[a]++,a))}},sl=()=>{let t,e,n,i,r;const s=new Array(At+1);for(n=0,i=0;i<yn-1;i++)for(Sn[i]=n,t=0;t<1<<En[i];t++)oe[n++]=i;for(oe[n-1]=i,r=0,i=0;i<16;i++)for(Oe[i]=r,t=0;t<1<<Le[i];t++)se[r++]=i;for(r>>=7;i<jt;i++)for(Oe[i]=r<<7,t=0;t<1<<Le[i]-7;t++)se[256+r++]=i;for(e=0;e<=At;e++)s[e]=0;for(t=0;t<=143;)ot[t*2+1]=8,t++,s[8]++;for(;t<=255;)ot[t*2+1]=9,t++,s[9]++;for(;t<=279;)ot[t*2+1]=7,t++,s[7]++;for(;t<=287;)ot[t*2+1]=8,t++,s[8]++;for(hr(ot,ie+1,s),t=0;t<jt;t++)re[t*2+1]=5,re[t*2]=cr(t,5);sr=new kn(ot,En,ne+1,ie,At),or=new kn(re,Le,0,jt,At),ar=new kn(new Array(0),el,0,vn,tl)},fr=t=>{let e;for(e=0;e<ie;e++)t.dyn_ltree[e*2]=0;for(e=0;e<jt;e++)t.dyn_dtree[e*2]=0;for(e=0;e<vn;e++)t.bl_tree[e*2]=0;t.dyn_ltree[xn*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},ur=t=>{t.bi_valid>8?ae(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},dr=(t,e,n,i)=>{const r=e*2,s=n*2;return t[r]<t[s]||t[r]===t[s]&&i[e]<=i[n]},An=(t,e,n)=>{const i=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&dr(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!dr(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i},_r=(t,e,n)=>{let i,r,s=0,o,a;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+s++]&255,i+=(t.pending_buf[t.sym_buf+s++]&255)<<8,r=t.pending_buf[t.sym_buf+s++],i===0?Q(t,r,e):(o=oe[r],Q(t,o+ne+1,e),a=En[o],a!==0&&(r-=Sn[o],G(t,r,a)),i--,o=lr(i),Q(t,o,n),a=Le[o],a!==0&&(i-=Oe[o],G(t,i,a)));while(s<t.sym_next);Q(t,xn,e)},Cn=(t,e)=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,s=e.stat_desc.elems;let o,a,c=-1,l;for(t.heap_len=0,t.heap_max=tr,o=0;o<s;o++)n[o*2]!==0?(t.heap[++t.heap_len]=c=o,t.depth[o]=0):n[o*2+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=c<2?++c:0,n[l*2]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=i[l*2+1]);for(e.max_code=c,o=t.heap_len>>1;o>=1;o--)An(t,n,o);l=s;do o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],An(t,n,1),a=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=a,n[l*2]=n[o*2]+n[a*2],t.depth[l]=(t.depth[o]>=t.depth[a]?t.depth[o]:t.depth[a])+1,n[o*2+1]=n[a*2+1]=l,t.heap[1]=l++,An(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],rl(t,e),hr(n,c,t.bl_count)},gr=(t,e,n)=>{let i,r=-1,s,o=e[0*2+1],a=0,c=7,l=4;for(o===0&&(c=138,l=3),e[(n+1)*2+1]=65535,i=0;i<=n;i++)s=o,o=e[(i+1)*2+1],!(++a<c&&s===o)&&(a<l?t.bl_tree[s*2]+=a:s!==0?(s!==r&&t.bl_tree[s*2]++,t.bl_tree[er*2]++):a<=10?t.bl_tree[nr*2]++:t.bl_tree[ir*2]++,a=0,r=s,o===0?(c=138,l=3):s===o?(c=6,l=3):(c=7,l=4))},pr=(t,e,n)=>{let i,r=-1,s,o=e[0*2+1],a=0,c=7,l=4;for(o===0&&(c=138,l=3),i=0;i<=n;i++)if(s=o,o=e[(i+1)*2+1],!(++a<c&&s===o)){if(a<l)do Q(t,s,t.bl_tree);while(--a!==0);else s!==0?(s!==r&&(Q(t,s,t.bl_tree),a--),Q(t,er,t.bl_tree),G(t,a-3,2)):a<=10?(Q(t,nr,t.bl_tree),G(t,a-3,3)):(Q(t,ir,t.bl_tree),G(t,a-11,7));a=0,r=s,o===0?(c=138,l=3):s===o?(c=6,l=3):(c=7,l=4)}},ol=t=>{let e;for(gr(t,t.dyn_ltree,t.l_desc.max_code),gr(t,t.dyn_dtree,t.d_desc.max_code),Cn(t,t.bl_desc),e=vn-1;e>=3&&t.bl_tree[rr[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},al=(t,e,n,i)=>{let r;for(G(t,e-257,5),G(t,n-1,5),G(t,i-4,4),r=0;r<i;r++)G(t,t.bl_tree[rr[r]*2+1],3);pr(t,t.dyn_ltree,e-1),pr(t,t.dyn_dtree,n-1)},ll=t=>{let e=4093624447,n;for(n=0;n<=31;n++,e>>>=1)if(e&1&&t.dyn_ltree[n*2]!==0)return Ki;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Ji;for(n=32;n<ne;n++)if(t.dyn_ltree[n*2]!==0)return Ji;return Ki};let mr=!1;const cl=t=>{mr||(sl(),mr=!0),t.l_desc=new Tn(t.dyn_ltree,sr),t.d_desc=new Tn(t.dyn_dtree,or),t.bl_desc=new Tn(t.bl_tree,ar),t.bi_buf=0,t.bi_valid=0,fr(t)},wr=(t,e,n,i)=>{G(t,(Wa<<1)+(i?1:0),3),ur(t),ae(t,n),ae(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},hl=t=>{G(t,Qi<<1,3),Q(t,xn,ot),il(t)},fl=(t,e,n,i)=>{let r,s,o=0;t.level>0?(t.strm.data_type===Ya&&(t.strm.data_type=ll(t)),Cn(t,t.l_desc),Cn(t,t.d_desc),o=ol(t),r=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=r&&(r=s)):r=s=n+5,n+4<=r&&e!==-1?wr(t,e,n,i):t.strategy===Va||s===r?(G(t,(Qi<<1)+(i?1:0),3),_r(t,ot,re)):(G(t,(Ka<<1)+(i?1:0),3),al(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),_r(t,t.dyn_ltree,t.dyn_dtree)),fr(t),i&&ur(t)},ul=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,e===0?t.dyn_ltree[n*2]++:(t.matches++,e--,t.dyn_ltree[(oe[n]+ne+1)*2]++,t.dyn_dtree[lr(e)*2]++),t.sym_next===t.sym_end);var dl=cl,_l=wr,gl=fl,pl=ul,ml=hl,wl={_tr_init:dl,_tr_stored_block:_l,_tr_flush_block:gl,_tr_tally:pl,_tr_align:ml},le=(t,e,n,i)=>{let r=t&65535|0,s=t>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+e[i++]|0,s=s+r|0;while(--o);r%=65521,s%=65521}return r|s<<16|0};const yl=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},vl=new Uint32Array(yl());var j=(t,e,n,i)=>{const r=vl,s=i+n;t^=-1;for(let o=i;o<s;o++)t=t>>>8^r[(t^e[o])&255];return t^-1},Ct={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},It={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:bl,_tr_stored_block:In,_tr_flush_block:xl,_tr_tally:pt,_tr_align:El}=wl,{Z_NO_FLUSH:mt,Z_PARTIAL_FLUSH:Sl,Z_FULL_FLUSH:kl,Z_FINISH:V,Z_BLOCK:yr,Z_OK:H,Z_STREAM_END:vr,Z_STREAM_ERROR:tt,Z_DATA_ERROR:Tl,Z_BUF_ERROR:Dn,Z_DEFAULT_COMPRESSION:Al,Z_FILTERED:Cl,Z_HUFFMAN_ONLY:Ue,Z_RLE:Il,Z_FIXED:Dl,Z_DEFAULT_STRATEGY:Pl,Z_UNKNOWN:Rl,Z_DEFLATED:Fe}=It,Ml=9,Ll=15,Ol=8,Ul=29,Pn=256+1+Ul,Fl=30,zl=19,Bl=2*Pn+1,Nl=15,M=3,wt=258,et=wt+M+1,jl=32,Ht=42,Rn=57,Mn=69,Ln=73,On=91,Un=103,Dt=113,ce=666,q=1,qt=2,Pt=3,Zt=4,Hl=3,Rt=(t,e)=>(t.msg=Ct[e],e),br=t=>t*2-(t>4?9:0),yt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ql=t=>{let e,n,i,r=t.w_size;e=t.hash_size,i=e;do n=t.head[--i],t.head[i]=n>=r?n-r:0;while(--e);e=r,i=e;do n=t.prev[--i],t.prev[i]=n>=r?n-r:0;while(--e)};let vt=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const X=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,e.pending===0&&(e.pending_out=0))},$=(t,e)=>{xl(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},O=(t,e)=>{t.pending_buf[t.pending++]=e},he=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Fn=(t,e,n,i)=>{let r=t.avail_in;return r>i&&(r=i),r===0?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),t.state.wrap===1?t.adler=le(t.adler,e,r,n):t.state.wrap===2&&(t.adler=j(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},xr=(t,e)=>{let n=t.max_chain_length,i=t.strstart,r,s,o=t.prev_length,a=t.nice_match;const c=t.strstart>t.w_size-et?t.strstart-(t.w_size-et):0,l=t.window,f=t.w_mask,u=t.prev,d=t.strstart+wt;let h=l[i+o-1],_=l[i+o];t.prev_length>=t.good_match&&(n>>=2),a>t.lookahead&&(a=t.lookahead);do if(r=e,!(l[r+o]!==_||l[r+o-1]!==h||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(s=wt-(d-i),i=d-wt,s>o){if(t.match_start=e,o=s,s>=a)break;h=l[i+o-1],_=l[i+o]}}while((e=u[e&f])>c&&--n!==0);return o<=t.lookahead?o:t.lookahead},Gt=t=>{const e=t.w_size;let n,i,r;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-et)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ql(t),i+=e),t.strm.avail_in===0)break;if(n=Fn(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=M)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=vt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=vt(t,t.ins_h,t.window[r+M-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<M)););}while(t.lookahead<et&&t.strm.avail_in!==0)},Er=(t,e)=>{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,r,s,o=0,a=t.strm.avail_in;do{if(i=65535,s=t.bi_valid+42>>3,t.strm.avail_out<s||(s=t.strm.avail_out-s,r=t.strstart-t.block_start,i>r+t.strm.avail_in&&(i=r+t.strm.avail_in),i>s&&(i=s),i<n&&(i===0&&e!==V||e===mt||i!==r+t.strm.avail_in)))break;o=e===V&&i===r+t.strm.avail_in?1:0,In(t,0,0,o),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,X(t.strm),r&&(r>i&&(r=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,i-=r),i&&(Fn(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(o===0);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?Zt:e!==mt&&e!==V&&t.strm.avail_in===0&&t.strstart===t.block_start?qt:(s=t.window_size-t.strstart,t.strm.avail_in>s&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(Fn(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water<t.strstart&&(t.high_water=t.strstart),s=t.bi_valid+42>>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,n=s>t.w_size?t.w_size:s,r=t.strstart-t.block_start,(r>=n||(r||e===V)&&e!==mt&&t.strm.avail_in===0&&r<=s)&&(i=r>s?s:r,o=e===V&&t.strm.avail_in===0&&i===r?1:0,In(t,t.block_start,i,o),t.block_start+=i,X(t.strm)),o?Pt:q)},zn=(t,e)=>{let n,i;for(;;){if(t.lookahead<et){if(Gt(t),t.lookahead<et&&e===mt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-et&&(t.match_length=xr(t,n)),t.match_length>=M)if(i=pt(t,t.strstart-t.match_start,t.match_length-M),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=M){t.match_length--;do t.strstart++,t.ins_h=vt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vt(t,t.ins_h,t.window[t.strstart+1]);else i=pt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=t.strstart<M-1?t.strstart:M-1,e===V?($(t,!0),t.strm.avail_out===0?Pt:Zt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:qt},Xt=(t,e)=>{let n,i,r;for(;;){if(t.lookahead<et){if(Gt(t),t.lookahead<et&&e===mt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=M-1,n!==0&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-et&&(t.match_length=xr(t,n),t.match_length<=5&&(t.strategy===Cl||t.match_length===M&&t.strstart-t.match_start>4096)&&(t.match_length=M-1)),t.prev_length>=M&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-M,i=pt(t,t.strstart-1-t.prev_match,t.prev_length-M),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=M-1,t.strstart++,i&&($(t,!1),t.strm.avail_out===0))return q}else if(t.match_available){if(i=pt(t,0,t.window[t.strstart-1]),i&&$(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return q}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=pt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<M-1?t.strstart:M-1,e===V?($(t,!0),t.strm.avail_out===0?Pt:Zt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:qt},Zl=(t,e)=>{let n,i,r,s;const o=t.window;for(;;){if(t.lookahead<=wt){if(Gt(t),t.lookahead<=wt&&e===mt)return q;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=M&&t.strstart>0&&(r=t.strstart-1,i=o[r],i===o[++r]&&i===o[++r]&&i===o[++r])){s=t.strstart+wt;do;while(i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&r<s);t.match_length=wt-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=M?(n=pt(t,1,t.match_length-M),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=pt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===V?($(t,!0),t.strm.avail_out===0?Pt:Zt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:qt},Gl=(t,e)=>{let n;for(;;){if(t.lookahead===0&&(Gt(t),t.lookahead===0)){if(e===mt)return q;break}if(t.match_length=0,n=pt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===V?($(t,!0),t.strm.avail_out===0?Pt:Zt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:qt};function nt(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}const fe=[new nt(0,0,0,0,Er),new nt(4,4,8,4,zn),new nt(4,5,16,8,zn),new nt(4,6,32,32,zn),new nt(4,4,16,16,Xt),new nt(8,16,32,32,Xt),new nt(8,16,128,128,Xt),new nt(8,32,128,256,Xt),new nt(32,128,258,1024,Xt),new nt(32,258,258,4096,Xt)],Xl=t=>{t.window_size=2*t.w_size,yt(t.head),t.max_lazy_match=fe[t.level].max_lazy,t.good_match=fe[t.level].good_length,t.nice_match=fe[t.level].nice_length,t.max_chain_length=fe[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=M-1,t.match_available=0,t.ins_h=0};function $l(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Fe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Bl*2),this.dyn_dtree=new Uint16Array((2*Fl+1)*2),this.bl_tree=new Uint16Array((2*zl+1)*2),yt(this.dyn_ltree),yt(this.dyn_dtree),yt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Nl+1),this.heap=new Uint16Array(2*Pn+1),yt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Pn+1),yt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const ue=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==Ht&&e.status!==Rn&&e.status!==Mn&&e.status!==Ln&&e.status!==On&&e.status!==Un&&e.status!==Dt&&e.status!==ce?1:0},Sr=t=>{if(ue(t))return Rt(t,tt);t.total_in=t.total_out=0,t.data_type=Rl;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Rn:e.wrap?Ht:Dt,t.adler=e.wrap===2?0:1,e.last_flush=-2,bl(e),H},kr=t=>{const e=Sr(t);return e===H&&Xl(t.state),e},Vl=(t,e)=>ue(t)||t.state.wrap!==2?tt:(t.state.gzhead=e,H),Tr=(t,e,n,i,r,s)=>{if(!t)return tt;let o=1;if(e===Al&&(e=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>Ml||n!==Fe||i<8||i>15||e<0||e>9||s<0||s>Dl||i===8&&o!==1)return Rt(t,tt);i===8&&(i=9);const a=new $l;return t.state=a,a.strm=t,a.status=Ht,a.wrap=o,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+M-1)/M),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=e,a.strategy=s,a.method=n,kr(t)},Yl=(t,e)=>Tr(t,e,Fe,Ll,Ol,Pl),Wl=(t,e)=>{if(ue(t)||e>yr||e<0)return t?Rt(t,tt):tt;const n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===ce&&e!==V)return Rt(t,t.avail_out===0?Dn:tt);const i=n.last_flush;if(n.last_flush=e,n.pending!==0){if(X(t),t.avail_out===0)return n.last_flush=-1,H}else if(t.avail_in===0&&br(e)<=br(i)&&e!==V)return Rt(t,Dn);if(n.status===ce&&t.avail_in!==0)return Rt(t,Dn);if(n.status===Ht&&n.wrap===0&&(n.status=Dt),n.status===Ht){let r=Fe+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Ue||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,r|=s<<6,n.strstart!==0&&(r|=jl),r+=31-r%31,he(n,r),n.strstart!==0&&(he(n,t.adler>>>16),he(n,t.adler&65535)),t.adler=1,n.status=Dt,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===Rn){if(t.adler=0,O(n,31),O(n,139),O(n,8),n.gzhead)O(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),O(n,n.gzhead.time&255),O(n,n.gzhead.time>>8&255),O(n,n.gzhead.time>>16&255),O(n,n.gzhead.time>>24&255),O(n,n.level===9?2:n.strategy>=Ue||n.level<2?4:0),O(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(O(n,n.gzhead.extra.length&255),O(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=j(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Mn;else if(O(n,0),O(n,0),O(n,0),O(n,0),O(n,0),O(n,n.level===9?2:n.strategy>=Ue||n.level<2?4:0),O(n,Hl),n.status=Dt,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===Mn){if(n.gzhead.extra){let r=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex+=a,X(t),n.pending!==0)return n.last_flush=-1,H;r=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=Ln}if(n.status===Ln){if(n.gzhead.name){let r=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,O(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=On}if(n.status===On){if(n.gzhead.comment){let r=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,O(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r))}n.status=Un}if(n.status===Un){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(X(t),n.pending!==0))return n.last_flush=-1,H;O(n,t.adler&255),O(n,t.adler>>8&255),t.adler=0}if(n.status=Dt,X(t),n.pending!==0)return n.last_flush=-1,H}if(t.avail_in!==0||n.lookahead!==0||e!==mt&&n.status!==ce){let r=n.level===0?Er(n,e):n.strategy===Ue?Gl(n,e):n.strategy===Il?Zl(n,e):fe[n.level].func(n,e);if((r===Pt||r===Zt)&&(n.status=ce),r===q||r===Pt)return t.avail_out===0&&(n.last_flush=-1),H;if(r===qt&&(e===Sl?El(n):e!==yr&&(In(n,0,0,!1),e===kl&&(yt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),X(t),t.avail_out===0))return n.last_flush=-1,H}return e!==V?H:n.wrap<=0?vr:(n.wrap===2?(O(n,t.adler&255),O(n,t.adler>>8&255),O(n,t.adler>>16&255),O(n,t.adler>>24&255),O(n,t.total_in&255),O(n,t.total_in>>8&255),O(n,t.total_in>>16&255),O(n,t.total_in>>24&255)):(he(n,t.adler>>>16),he(n,t.adler&65535)),X(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?H:vr)},Kl=t=>{if(ue(t))return tt;const e=t.state.status;return t.state=null,e===Dt?Rt(t,Tl):H},Jl=(t,e)=>{let n=e.length;if(ue(t))return tt;const i=t.state,r=i.wrap;if(r===2||r===1&&i.status!==Ht||i.lookahead)return tt;if(r===1&&(t.adler=le(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){r===0&&(yt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(e.subarray(n-i.w_size,n),0),e=c,n=i.w_size}const s=t.avail_in,o=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Gt(i);i.lookahead>=M;){let c=i.strstart,l=i.lookahead-(M-1);do i.ins_h=vt(i,i.ins_h,i.window[c+M-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=M-1,Gt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=M-1,i.match_available=0,t.next_in=o,t.input=a,t.avail_in=s,i.wrap=r,H};var Ql=Yl,tc=Tr,ec=kr,nc=Sr,ic=Vl,rc=Wl,sc=Kl,oc=Jl,ac="pako deflate (from Nodeca project)",de={deflateInit:Ql,deflateInit2:tc,deflateReset:ec,deflateResetKeep:nc,deflateSetHeader:ic,deflate:rc,deflateEnd:sc,deflateSetDictionary:oc,deflateInfo:ac};const lc=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var cc=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const i in n)lc(n,i)&&(t[i]=n[i])}}return t},hc=t=>{let e=0;for(let i=0,r=t.length;i<r;i++)e+=t[i].length;const n=new Uint8Array(e);for(let i=0,r=0,s=t.length;i<s;i++){let o=t[i];n.set(o,r),r+=o.length}return n},ze={assign:cc,flattenChunks:hc};let Ar=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ar=!1}const _e=new Uint8Array(256);for(let t=0;t<256;t++)_e[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;_e[254]=_e[254]=1;var fc=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,i,r,s,o=t.length,a=0;for(r=0;r<o;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),s=0,r=0;s<a;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|n&63):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|n&63):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|n&63);return e};const uc=(t,e)=>{if(e<65534&&t.subarray&&Ar)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n};var dc=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let i,r;const s=new Array(n*2);for(r=0,i=0;i<n;){let o=t[i++];if(o<128){s[r++]=o;continue}let a=_e[o];if(a>4){s[r++]=65533,i+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&i<n;)o=o<<6|t[i++]&63,a--;if(a>1){s[r++]=65533;continue}o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|o&1023)}return uc(s,r)},_c=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+_e[t[n]]>e?n:e},ge={string2buf:fc,buf2string:dc,utf8border:_c};function gc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Cr=gc;const Ir=Object.prototype.toString,{Z_NO_FLUSH:pc,Z_SYNC_FLUSH:mc,Z_FULL_FLUSH:wc,Z_FINISH:yc,Z_OK:Be,Z_STREAM_END:vc,Z_DEFAULT_COMPRESSION:bc,Z_DEFAULT_STRATEGY:xc,Z_DEFLATED:Ec}=It;function pe(t){this.options=ze.assign({level:bc,method:Ec,chunkSize:16384,windowBits:15,memLevel:8,strategy:xc},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cr,this.strm.avail_out=0;let n=de.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Be)throw new Error(Ct[n]);if(e.header&&de.deflateSetHeader(this.strm,e.header),e.dictionary){let i;if(typeof e.dictionary=="string"?i=ge.string2buf(e.dictionary):Ir.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,n=de.deflateSetDictionary(this.strm,i),n!==Be)throw new Error(Ct[n]);this._dict_set=!0}}pe.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize;let r,s;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?yc:pc,typeof t=="string"?n.input=ge.string2buf(t):Ir.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(s===mc||s===wc)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(r=de.deflate(n,s),r===vc)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=de.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Be;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},pe.prototype.onData=function(t){this.chunks.push(t)},pe.prototype.onEnd=function(t){t===Be&&(this.result=ze.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Bn(t,e){const n=new pe(e);if(n.push(t,!0),n.err)throw n.msg||Ct[n.err];return n.result}function Sc(t,e){return e=e||{},e.raw=!0,Bn(t,e)}function kc(t,e){return e=e||{},e.gzip=!0,Bn(t,e)}var Tc=pe,Ac=Bn,Cc=Sc,Ic=kc,Dc=It,Pc={Deflate:Tc,deflate:Ac,deflateRaw:Cc,gzip:Ic,constants:Dc};const Ne=16209,Rc=16191;var Mc=function(e,n){let i,r,s,o,a,c,l,f,u,d,h,_,p,g,m,y,b,v,E,x,S,C,T,A;const D=e.state;i=e.next_in,T=e.input,r=i+(e.avail_in-5),s=e.next_out,A=e.output,o=s-(n-e.avail_out),a=s+(e.avail_out-257),c=D.dmax,l=D.wsize,f=D.whave,u=D.wnext,d=D.window,h=D.hold,_=D.bits,p=D.lencode,g=D.distcode,m=(1<<D.lenbits)-1,y=(1<<D.distbits)-1;t:do{_<15&&(h+=T[i++]<<_,_+=8,h+=T[i++]<<_,_+=8),b=p[h&m];e:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v===0)A[s++]=b&65535;else if(v&16){E=b&65535,v&=15,v&&(_<v&&(h+=T[i++]<<_,_+=8),E+=h&(1<<v)-1,h>>>=v,_-=v),_<15&&(h+=T[i++]<<_,_+=8,h+=T[i++]<<_,_+=8),b=g[h&y];n:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v&16){if(x=b&65535,v&=15,_<v&&(h+=T[i++]<<_,_+=8,_<v&&(h+=T[i++]<<_,_+=8)),x+=h&(1<<v)-1,x>c){e.msg="invalid distance too far back",D.mode=Ne;break t}if(h>>>=v,_-=v,v=s-o,x>v){if(v=x-v,v>f&&D.sane){e.msg="invalid distance too far back",D.mode=Ne;break t}if(S=0,C=d,u===0){if(S+=l-v,v<E){E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}}else if(u<v){if(S+=l+u-v,v-=u,v<E){E-=v;do A[s++]=d[S++];while(--v);if(S=0,u<E){v=u,E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}}}else if(S+=u-v,v<E){E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}for(;E>2;)A[s++]=C[S++],A[s++]=C[S++],A[s++]=C[S++],E-=3;E&&(A[s++]=C[S++],E>1&&(A[s++]=C[S++]))}else{S=s-x;do A[s++]=A[S++],A[s++]=A[S++],A[s++]=A[S++],E-=3;while(E>2);E&&(A[s++]=A[S++],E>1&&(A[s++]=A[S++]))}}else if(v&64){e.msg="invalid distance code",D.mode=Ne;break t}else{b=g[(b&65535)+(h&(1<<v)-1)];continue n}break}}else if(v&64)if(v&32){D.mode=Rc;break t}else{e.msg="invalid literal/length code",D.mode=Ne;break t}else{b=p[(b&65535)+(h&(1<<v)-1)];continue e}break}}while(i<r&&s<a);E=_>>3,i-=E,_-=E<<3,h&=(1<<_)-1,e.next_in=i,e.next_out=s,e.avail_in=i<r?5+(r-i):5-(i-r),e.avail_out=s<a?257+(a-s):257-(s-a),D.hold=h,D.bits=_};const $t=15,Dr=852,Pr=592,Rr=0,Nn=1,Mr=2,Lc=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Oc=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Uc=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Fc=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var me=(t,e,n,i,r,s,o,a)=>{const c=a.bits;let l=0,f=0,u=0,d=0,h=0,_=0,p=0,g=0,m=0,y=0,b,v,E,x,S,C=null,T;const A=new Uint16Array($t+1),D=new Uint16Array($t+1);let P=null,U,z,R;for(l=0;l<=$t;l++)A[l]=0;for(f=0;f<i;f++)A[e[n+f]]++;for(h=c,d=$t;d>=1&&A[d]===0;d--);if(h>d&&(h=d),d===0)return r[s++]=1<<24|64<<16|0,r[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u<d&&A[u]===0;u++);for(h<u&&(h=u),g=1,l=1;l<=$t;l++)if(g<<=1,g-=A[l],g<0)return-1;if(g>0&&(t===Rr||d!==1))return-1;for(D[1]=0,l=1;l<$t;l++)D[l+1]=D[l]+A[l];for(f=0;f<i;f++)e[n+f]!==0&&(o[D[e[n+f]]++]=f);if(t===Rr?(C=P=o,T=20):t===Nn?(C=Lc,P=Oc,T=257):(C=Uc,P=Fc,T=0),y=0,f=0,l=u,S=s,_=h,p=0,E=-1,m=1<<h,x=m-1,t===Nn&&m>Dr||t===Mr&&m>Pr)return 1;for(;;){U=l-p,o[f]+1<T?(z=0,R=o[f]):o[f]>=T?(z=P[o[f]-T],R=C[o[f]-T]):(z=32+64,R=0),b=1<<l-p,v=1<<_,u=v;do v-=b,r[S+(y>>p)+v]=U<<24|z<<16|R|0;while(v!==0);for(b=1<<l-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,f++,--A[l]===0){if(l===d)break;l=e[n+o[f]]}if(l>h&&(y&x)!==E){for(p===0&&(p=h),S+=u,_=l-p,g=1<<_;_+p<d&&(g-=A[_+p],!(g<=0));)_++,g<<=1;if(m+=1<<_,t===Nn&&m>Dr||t===Mr&&m>Pr)return 1;E=y&x,r[E]=h<<24|_<<16|S-s|0}}return y!==0&&(r[S+y]=l-p<<24|64<<16|0),a.bits=h,0};const zc=0,Lr=1,Or=2,{Z_FINISH:Ur,Z_BLOCK:Bc,Z_TREES:je,Z_OK:Mt,Z_STREAM_END:Nc,Z_NEED_DICT:jc,Z_STREAM_ERROR:Y,Z_DATA_ERROR:Fr,Z_MEM_ERROR:zr,Z_BUF_ERROR:Hc,Z_DEFLATED:Br}=It,He=16180,Nr=16181,jr=16182,Hr=16183,qr=16184,Zr=16185,Gr=16186,Xr=16187,$r=16188,Vr=16189,qe=16190,at=16191,jn=16192,Yr=16193,Hn=16194,Wr=16195,Kr=16196,Jr=16197,Qr=16198,Ze=16199,Ge=16200,ts=16201,es=16202,ns=16203,is=16204,rs=16205,qn=16206,ss=16207,os=16208,B=16209,as=16210,ls=16211,qc=852,Zc=592,Gc=15,cs=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function Xc(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Lt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<He||e.mode>ls?1:0},hs=t=>{if(Lt(t))return Y;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=He,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(qc),e.distcode=e.distdyn=new Int32Array(Zc),e.sane=1,e.back=-1,Mt},fs=t=>{if(Lt(t))return Y;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,hs(t)},us=(t,e)=>{let n;if(Lt(t))return Y;const i=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Y:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,fs(t))},ds=(t,e)=>{if(!t)return Y;const n=new Xc;t.state=n,n.strm=t,n.window=null,n.mode=He;const i=us(t,e);return i!==Mt&&(t.state=null),i},$c=t=>ds(t,Gc);let _s=!0,Zn,Gn;const Vc=t=>{if(_s){Zn=new Int32Array(512),Gn=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(me(Lr,t.lens,0,288,Zn,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;me(Or,t.lens,0,32,Gn,0,t.work,{bits:5}),_s=!1}t.lencode=Zn,t.lenbits=9,t.distcode=Gn,t.distbits=5},gs=(t,e,n,i)=>{let r;const s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(r=s.wsize-s.wnext,r>i&&(r=i),s.window.set(e.subarray(n-i,n-i+r),s.wnext),i-=r,i?(s.window.set(e.subarray(n-i,n),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0},Yc=(t,e)=>{let n,i,r,s,o,a,c,l,f,u,d,h,_,p,g=0,m,y,b,v,E,x,S,C;const T=new Uint8Array(4);let A,D;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Lt(t)||!t.output||!t.input&&t.avail_in!==0)return Y;n=t.state,n.mode===at&&(n.mode=jn),o=t.next_out,r=t.output,c=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,u=a,d=c,C=Mt;t:for(;;)switch(n.mode){case He:if(n.wrap===0){n.mode=jn;break}for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0),l=0,f=0,n.mode=Nr;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=B;break}if((l&15)!==Br){t.msg="unknown compression method",n.mode=B;break}if(l>>>=4,f-=4,S=(l&15)+8,n.wbits===0&&(n.wbits=S),S>15||S>n.wbits){t.msg="invalid window size",n.mode=B;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=l&512?Vr:at,l=0,f=0;break;case Nr:for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.flags=l,(n.flags&255)!==Br){t.msg="unknown compression method",n.mode=B;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=B;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0,n.mode=jr;case jr:for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=j(n.check,T,4,0)),l=0,f=0,n.mode=Hr;case Hr:for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0,n.mode=qr;case qr:if(n.flags&1024){for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0}else n.head&&(n.head.extra=null);n.mode=Zr;case Zr:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(s,s+h),S)),n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,n.length-=h),n.length))break t;n.length=0,n.mode=Gr;case Gr:if(n.flags&2048){if(a===0)break t;h=0;do S=i[s+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=Xr;case Xr:if(n.flags&4096){if(a===0)break t;h=0;do S=i[s+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,S)break t}else n.head&&(n.head.comment=null);n.mode=$r;case $r:if(n.flags&512){for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&4&&l!==(n.check&65535)){t.msg="header crc mismatch",n.mode=B;break}l=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=at;break;case Vr:for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}t.adler=n.check=cs(l),l=0,f=0,n.mode=qe;case qe:if(n.havedict===0)return t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,jc;t.adler=n.check=1,n.mode=at;case at:if(e===Bc||e===je)break t;case jn:if(n.last){l>>>=f&7,f-=f&7,n.mode=qn;break}for(;f<3;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}switch(n.last=l&1,l>>>=1,f-=1,l&3){case 0:n.mode=Yr;break;case 1:if(Vc(n),n.mode=Ze,e===je){l>>>=2,f-=2;break t}break;case 2:n.mode=Kr;break;case 3:t.msg="invalid block type",n.mode=B}l>>>=2,f-=2;break;case Yr:for(l>>>=f&7,f-=f&7;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=B;break}if(n.length=l&65535,l=0,f=0,n.mode=Hn,e===je)break t;case Hn:n.mode=Wr;case Wr:if(h=n.length,h){if(h>a&&(h=a),h>c&&(h=c),h===0)break t;r.set(i.subarray(s,s+h),o),a-=h,s+=h,c-=h,o+=h,n.length-=h;break}n.mode=at;break;case Kr:for(;f<14;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.nlen=(l&31)+257,l>>>=5,f-=5,n.ndist=(l&31)+1,l>>>=5,f-=5,n.ncode=(l&15)+4,l>>>=4,f-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=B;break}n.have=0,n.mode=Jr;case Jr:for(;n.have<n.ncode;){for(;f<3;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.lens[P[n.have++]]=l&7,l>>>=3,f-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},C=me(zc,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid code lengths set",n.mode=B;break}n.have=0,n.mode=Qr;case Qr:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(b<16)l>>>=m,f-=m,n.lens[n.have++]=b;else{if(b===16){for(D=m+2;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(l>>>=m,f-=m,n.have===0){t.msg="invalid bit length repeat",n.mode=B;break}S=n.lens[n.have-1],h=3+(l&3),l>>>=2,f-=2}else if(b===17){for(D=m+3;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=m,f-=m,S=0,h=3+(l&7),l>>>=3,f-=3}else{for(D=m+7;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=m,f-=m,S=0,h=11+(l&127),l>>>=7,f-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=B;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===B)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=B;break}if(n.lenbits=9,A={bits:n.lenbits},C=me(Lr,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid literal/lengths set",n.mode=B;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},C=me(Or,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,C){t.msg="invalid distances set",n.mode=B;break}if(n.mode=Ze,e===je)break t;case Ze:n.mode=Ge;case Ge:if(a>=6&&c>=258){t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,Mc(t,d),o=t.next_out,r=t.output,c=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,n.mode===at&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(y&&!(y&240)){for(v=m,E=y,x=b;g=n.lencode[x+((l&(1<<v+E)-1)>>v)],m=g>>>24,y=g>>>16&255,b=g&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,n.length=b,y===0){n.mode=rs;break}if(y&32){n.back=-1,n.mode=at;break}if(y&64){t.msg="invalid literal/length code",n.mode=B;break}n.extra=y&15,n.mode=ts;case ts:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=es;case es:for(;g=n.distcode[l&(1<<n.distbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(!(y&240)){for(v=m,E=y,x=b;g=n.distcode[x+((l&(1<<v+E)-1)>>v)],m=g>>>24,y=g>>>16&255,b=g&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,y&64){t.msg="invalid distance code",n.mode=B;break}n.offset=b,n.extra=y&15,n.mode=ns;case ns:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=B;break}n.mode=is;case is:if(c===0)break t;if(h=d-c,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=B;break}h>n.wnext?(h-=n.wnext,_=n.wsize-h):_=n.wnext-h,h>n.length&&(h=n.length),p=n.window}else p=r,_=o-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do r[o++]=p[_++];while(--h);n.length===0&&(n.mode=Ge);break;case rs:if(c===0)break t;r[o++]=n.length,c--,n.mode=Ge;break;case qn:if(n.wrap){for(;f<32;){if(a===0)break t;a--,l|=i[s++]<<f,f+=8}if(d-=c,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,o-d):le(n.check,r,d,o-d)),d=c,n.wrap&4&&(n.flags?l:cs(l))!==n.check){t.msg="incorrect data check",n.mode=B;break}l=0,f=0}n.mode=ss;case ss:if(n.wrap&&n.flags){for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&4&&l!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=B;break}l=0,f=0}n.mode=os;case os:C=Nc;break t;case B:C=Fr;break t;case as:return zr;case ls:default:return Y}return t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,(n.wsize||d!==t.avail_out&&n.mode<B&&(n.mode<qn||e!==Ur))&&gs(t,t.output,t.next_out,d-t.avail_out),u-=t.avail_in,d-=t.avail_out,t.total_in+=u,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,t.next_out-d):le(n.check,r,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===at?128:0)+(n.mode===Ze||n.mode===Hn?256:0),(u===0&&d===0||e===Ur)&&C===Mt&&(C=Hc),C},Wc=t=>{if(Lt(t))return Y;let e=t.state;return e.window&&(e.window=null),t.state=null,Mt},Kc=(t,e)=>{if(Lt(t))return Y;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Mt):Y},Jc=(t,e)=>{const n=e.length;let i,r,s;return Lt(t)||(i=t.state,i.wrap!==0&&i.mode!==qe)?Y:i.mode===qe&&(r=1,r=le(r,e,n,0),r!==i.check)?Fr:(s=gs(t,e,n,n),s?(i.mode=as,zr):(i.havedict=1,Mt))};var Qc=fs,th=us,eh=hs,nh=$c,ih=ds,rh=Yc,sh=Wc,oh=Kc,ah=Jc,lh="pako inflate (from Nodeca project)",lt={inflateReset:Qc,inflateReset2:th,inflateResetKeep:eh,inflateInit:nh,inflateInit2:ih,inflate:rh,inflateEnd:sh,inflateGetHeader:oh,inflateSetDictionary:ah,inflateInfo:lh};function ch(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var hh=ch;const ps=Object.prototype.toString,{Z_NO_FLUSH:fh,Z_FINISH:uh,Z_OK:we,Z_STREAM_END:Xn,Z_NEED_DICT:$n,Z_STREAM_ERROR:dh,Z_DATA_ERROR:ms,Z_MEM_ERROR:_h}=It;function ye(t){this.options=ze.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cr,this.strm.avail_out=0;let n=lt.inflateInit2(this.strm,e.windowBits);if(n!==we)throw new Error(Ct[n]);if(this.header=new hh,lt.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=ge.string2buf(e.dictionary):ps.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=lt.inflateSetDictionary(this.strm,e.dictionary),n!==we)))throw new Error(Ct[n])}ye.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?uh:fh,ps.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),s=lt.inflate(n,o),s===$n&&r&&(s=lt.inflateSetDictionary(n,r),s===we?s=lt.inflate(n,o):s===ms&&(s=$n));n.avail_in>0&&s===Xn&&n.state.wrap>0&&t[n.next_in]!==0;)lt.inflateReset(n),s=lt.inflate(n,o);switch(s){case dh:case ms:case $n:case _h:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Xn))if(this.options.to==="string"){let c=ge.utf8border(n.output,n.next_out),l=n.next_out-c,f=ge.buf2string(n.output,c);n.next_out=l,n.avail_out=i-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(f)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===we&&a===0)){if(s===Xn)return s=lt.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},ye.prototype.onData=function(t){this.chunks.push(t)},ye.prototype.onEnd=function(t){t===we&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ze.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Vn(t,e){const n=new ye(e);if(n.push(t),n.err)throw n.msg||Ct[n.err];return n.result}function gh(t,e){return e=e||{},e.raw=!0,Vn(t,e)}var ph=ye,mh=Vn,wh=gh,yh=Vn,vh=It,bh={Inflate:ph,inflate:mh,inflateRaw:wh,ungzip:yh,constants:vh};const{Deflate:xh,deflate:Eh,deflateRaw:Sh,gzip:kh}=Pc,{Inflate:Th,inflate:Ah,inflateRaw:Ch,ungzip:Ih}=bh;var Dh=xh,Ph=Eh,Rh=Sh,Mh=kh,Lh=Th,Oh=Ah,Uh=Ch,Fh=Ih,zh=It,Bh={Deflate:Dh,deflate:Ph,deflateRaw:Rh,gzip:Mh,Inflate:Lh,inflate:Oh,inflateRaw:Uh,ungzip:Fh,constants:zh};const I={};I.toRGBA8=function(t){const e=t.width,n=t.height;if(t.tabs.acTL===null)return[I.toRGBA8.decodeImage(t.data,e,n,t).buffer];const i=[];t.frames[0].data===null&&(t.frames[0].data=t.data);const r=e*n*4,s=new Uint8Array(r),o=new Uint8Array(r),a=new Uint8Array(r);for(let c=0;c<t.frames.length;c++){const l=t.frames[c],f=l.rect.x,u=l.rect.y,d=l.rect.width,h=l.rect.height,_=I.toRGBA8.decodeImage(l.data,d,h,t);if(c!==0)for(let p=0;p<r;p++)a[p]=s[p];if(l.blend===0?I._copyTile(_,d,h,s,e,n,f,u,0):l.blend===1&&I._copyTile(_,d,h,s,e,n,f,u,1),i.push(s.buffer.slice(0)),l.dispose===1)I._copyTile(o,d,h,s,e,n,f,u,0);else if(l.dispose===2)for(let p=0;p<r;p++)s[p]=a[p]}return i},I.toRGBA8.decodeImage=function(t,e,n,i){const r=e*n,s=I.decode._getBPP(i),o=Math.ceil(e*s/8),a=new Uint8Array(r*4),c=new Uint32Array(a.buffer),l=i.ctype,f=i.depth,u=I._bin.readUshort;if(l===6){const d=r<<2;if(f===8)for(let h=0;h<d;h+=4)a[h]=t[h],a[h+1]=t[h+1],a[h+2]=t[h+2],a[h+3]=t[h+3];if(f===16)for(let h=0;h<d;h++)a[h]=t[h<<1]}else if(l===2){const d=i.tabs.tRNS;if(d===null){if(f===8)for(let h=0;h<r;h++){const _=h*3;c[h]=255<<24|t[_+2]<<16|t[_+1]<<8|t[_]}if(f===16)for(let h=0;h<r;h++){const _=h*6;c[h]=255<<24|t[_+4]<<16|t[_+2]<<8|t[_]}}else{const h=d[0],_=d[1],p=d[2];if(f===8)for(let g=0;g<r;g++){const m=g<<2,y=g*3;c[g]=255<<24|t[y+2]<<16|t[y+1]<<8|t[y],t[y]===h&&t[y+1]===_&&t[y+2]===p&&(a[m+3]=0)}if(f===16)for(let g=0;g<r;g++){const m=g<<2,y=g*6;c[g]=255<<24|t[y+4]<<16|t[y+2]<<8|t[y],u(t,y)===h&&u(t,y+2)===_&&u(t,y+4)===p&&(a[m+3]=0)}}}else if(l===3){const d=i.tabs.PLTE,h=i.tabs.tRNS,_=h?h.length:0;if(f===1)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>3)]>>7-((y&7)<<0)&1,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===2)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>2)]>>6-((y&3)<<1)&3,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===4)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>1)]>>4-((y&1)<<2)&15,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===8)for(let p=0;p<r;p++){const g=p<<2,m=t[p],y=3*m;a[g]=d[y],a[g+1]=d[y+1],a[g+2]=d[y+2],a[g+3]=m<_?h[m]:255}}else if(l===4){if(f===8)for(let d=0;d<r;d++){const h=d<<2,_=d<<1,p=t[_];a[h]=p,a[h+1]=p,a[h+2]=p,a[h+3]=t[_+1]}if(f===16)for(let d=0;d<r;d++){const h=d<<2,_=d<<2,p=t[_];a[h]=p,a[h+1]=p,a[h+2]=p,a[h+3]=t[_+2]}}else if(l===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let h=0;h<n;h++){const _=h*o,p=h*e;if(f===1)for(let g=0;g<e;g++){const m=255*(t[_+(g>>>3)]>>>7-(g&7)&1),y=m===d*255?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===2)for(let g=0;g<e;g++){const m=85*(t[_+(g>>>2)]>>>6-((g&3)<<1)&3),y=m===d*85?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===4)for(let g=0;g<e;g++){const m=17*(t[_+(g>>>1)]>>>4-((g&1)<<2)&15),y=m===d*17?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===8)for(let g=0;g<e;g++){const m=t[_+g],y=m===d?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===16)for(let g=0;g<e;g++){const m=t[_+(g<<1)],y=u(t,_+(g<<1))===d?0:255;c[p+g]=y<<24|m<<16|m<<8|m}}}return a},I.decode=function(t){const e=new Uint8Array(t);let n=8;const i=I._bin,r=i.readUshort,s=i.readUint,o={tabs:{},frames:[]},a=new Uint8Array(e.length);let c=0,l,f=0;const u=[137,80,78,71,13,10,26,10];for(let d=0;d<8;d++)if(e[d]!==u[d])throw"The input is not a PNG file!";for(;n<e.length;){const d=i.readUint(e,n);n+=4;const h=i.readASCII(e,n,4);if(n+=4,h==="IHDR")I.decode._IHDR(e,n,o);else if(h==="CgBI")o.tabs[h]=e.slice(n,n+4);else if(h==="IDAT"){for(let _=0;_<d;_++)a[c+_]=e[n+_];c+=d}else if(h==="acTL")o.tabs[h]={num_frames:s(e,n),num_plays:s(e,n+4)},l=new Uint8Array(e.length);else if(h==="fcTL"){if(f!==0){const m=o.frames[o.frames.length-1];m.data=I.decode._decompress(o,l.slice(0,f),m.rect.width,m.rect.height),f=0}const _={x:s(e,n+12),y:s(e,n+16),width:s(e,n+4),height:s(e,n+8)};let p=r(e,n+22);p=r(e,n+20)/(p===0?100:p);const g={rect:_,delay:Math.round(p*1e3),dispose:e[n+24],blend:e[n+25]};o.frames.push(g)}else if(h==="fdAT"){for(let _=0;_<d-4;_++)l[f+_]=e[n+_+4];f+=d-4}else if(h==="pHYs")o.tabs[h]=[i.readUint(e,n),i.readUint(e,n+4),e[n+8]];else if(h==="cHRM"){o.tabs[h]=[];for(let _=0;_<8;_++)o.tabs[h].push(i.readUint(e,n+_*4))}else if(h==="tEXt"||h==="zTXt"){o.tabs[h]===null&&(o.tabs[h]={});const _=i.nextZero(e,n),p=i.readASCII(e,n,_-n);let g;const m=n+d-_-1;if(h==="tEXt")g=i.readASCII(e,_+1,m);else{const y=I.decode._inflate(e.slice(_+2,_+2+m));g=i.readUTF8(y,0,y.length)}o.tabs[h][p]=g}else if(h==="iTXt"){o.tabs[h]==null&&(o.tabs[h]={});let _=0,p=n;_=i.nextZero(e,p);const g=i.readASCII(e,p,_-p);p=_+1;const m=e[p];p+=2,_=i.nextZero(e,p),p=_+1,_=i.nextZero(e,p),p=_+1;let y;const b=d-(p-n);if(m===0)y=i.readUTF8(e,p,b);else{const v=I.decode._inflate(e.slice(p,p+b));y=i.readUTF8(v,0,v.length)}o.tabs[h][g]=y}else if(h==="PLTE")o.tabs[h]=i.readBytes(e,n,d);else if(h==="hIST"){const _=o.tabs.PLTE.length/3;o.tabs[h]=[];for(let p=0;p<_;p++)o.tabs[h].push(r(e,n+p*2))}else if(h==="tRNS")o.ctype===3?o.tabs[h]=i.readBytes(e,n,d):o.ctype===0?o.tabs[h]=r(e,n):o.ctype===2&&(o.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]);else if(h==="gAMA")o.tabs[h]=i.readUint(e,n)/1e5;else if(h==="sRGB")o.tabs[h]=e[n];else if(h==="bKGD")o.ctype===0||o.ctype===4?o.tabs[h]=[r(e,n)]:o.ctype===2||o.ctype===6?o.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]:o.ctype===3&&(o.tabs[h]=e[n]);else if(h==="IEND")break;n+=d,n+=4}if(f!==0){const d=o.frames[o.frames.length-1];d.data=I.decode._decompress(o,l.slice(0,f),d.rect.width,d.rect.height),f=0}return o.data=I.decode._decompress(o,a,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},I.decode._decompress=function(t,e,n,i){const r=I.decode._getBPP(t),s=Math.ceil(n*r/8),o=new Uint8Array((s+1+t.interlace)*i);return t.tabs.CgBI?e=I.inflateRaw(e,o):e=I.decode._inflate(e,o),t.interlace===0?e=I.decode._filterZero(e,t,0,n,i):t.interlace===1&&(e=I.decode._readInterlace(e,t)),e},I.decode._inflate=function(t,e){return I.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},I.inflateRaw=function(){const t={};return t.H={},t.H.N=function(e,n){const i=Uint8Array;let r=0,s=0,o=0,a=0,c=0,l=0,f=0,u=0,d=0,h,_;if(e[0]===3&&e[1]===0)return n||new i(0);const p=t.H,g=p.b,m=p.e,y=p.R,b=p.n,v=p.A,E=p.Z,x=p.m,S=n===null;for(S&&(n=new i(e.length>>>2<<3));r===0;){if(r=g(e,d,1),s=g(e,d+1,2),d+=3,s===0){d&7&&(d+=8-(d&7));const C=(d>>>3)+4,T=e[C-4]|e[C-3]<<8;S&&(n=t.H.W(n,u+T)),n.set(new i(e.buffer,e.byteOffset+C,T),u),d=C+T<<3,u+=T;continue}if(S&&(n=t.H.W(n,u+(1<<17))),s===1&&(h=x.J,_=x.h,l=512-1,f=32-1),s===2){o=m(e,d,5)+257,a=m(e,d+5,5)+1,c=m(e,d+10,4)+4,d+=14;let C=1;for(let D=0;D<38;D+=2)x.Q[D]=0,x.Q[D+1]=0;for(let D=0;D<c;D++){const P=m(e,d+D*3,3);x.Q[(x.X[D]<<1)+1]=P,P>C&&(C=P)}d+=3*c,b(x.Q,C),v(x.Q,C,x.u),h=x.w,_=x.d,d=y(x.u,(1<<C)-1,o+a,e,d,x.v);const T=p.V(x.v,0,o,x.C);l=(1<<T)-1;const A=p.V(x.v,o,a,x.D);f=(1<<A)-1,b(x.C,T),v(x.C,T,h),b(x.D,A),v(x.D,A,_)}for(;;){const C=h[E(e,d)&l];d+=C&15;const T=C>>>4;if(!(T>>>8))n[u++]=T;else{if(T===256)break;{let A=u+T-254;if(T>264){const R=x.q[T-257];A=u+(R>>>3)+m(e,d,R&7),d+=R&7}const D=_[E(e,d)&f];d+=D&15;const P=D>>>4,U=x.c[P],z=(U>>>4)+g(e,d,U&15);for(d+=U&15;u<A;)n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z];u=A}}}}return n.length===u?n:n.slice(0,u)},t.H.W=function(e,n){const i=e.length;if(n<=i)return e;const r=new Uint8Array(i<<1);return r.set(e,0),r},t.H.R=function(e,n,i,r,s,o){const a=t.H.e,c=t.H.Z;let l=0;for(;l<i;){const f=e[c(r,s)&n];s+=f&15;const u=f>>>4;if(u<=15)o[l]=u,l++;else{let d=0,h=0;u===16?(h=3+a(r,s,2),s+=2,d=o[l-1]):u===17?(h=3+a(r,s,3),s+=3):u===18&&(h=11+a(r,s,7),s+=7);const _=l+h;for(;l<_;)o[l]=d,l++}}return s},t.H.V=function(e,n,i,r){let s=0,o=0;const a=r.length>>>1;for(;o<i;){const c=e[o+n];r[o<<1]=0,r[(o<<1)+1]=c,c>s&&(s=c),o++}for(;o<a;)r[o<<1]=0,r[(o<<1)+1]=0,o++;return s},t.H.n=function(e,n){const i=t.H.m,r=e.length;let s,o,a,c,l;const f=i.j;for(let d=0;d<=n;d++)f[d]=0;for(c=1;c<r;c+=2)f[e[c]]++;const u=i.K;for(s=0,f[0]=0,o=1;o<=n;o++)s=s+f[o-1]<<1,u[o]=s;for(a=0;a<r;a+=2)l=e[a+1],l!==0&&(e[a]=u[l],u[l]++)},t.H.A=function(e,n,i){const r=e.length,o=t.H.m.r;for(let a=0;a<r;a+=2)if(e[a+1]!==0){const c=a>>1,l=e[a+1],f=c<<4|l,u=n-l;let d=e[a]<<u;const h=d+(1<<u);for(;d!==h;){const _=o[d]>>>15-n;i[_]=f,d++}}},t.H.l=function(e,n){const i=t.H.m.r,r=15-n;for(let s=0;s<e.length;s+=2){const o=e[s]<<n-e[s+1];e[s]=i[o]>>>r}},t.H.M=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8},t.H.I=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8,e[r+2]|=i>>>16},t.H.e=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.H.b=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.H.Z=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)},t.H.i=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16|e[(n>>>3)+3]<<24)>>>(n&7)},t.H.m=function(){const e=Uint16Array,n=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new n(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new e(65536),g:new e(32768)}}(),function(){const e=t.H.m,n=32768;for(let r=0;r<n;r++){let s=r;s=(s&2863311530)>>>1|(s&1431655765)<<1,s=(s&3435973836)>>>2|(s&858993459)<<2,s=(s&4042322160)>>>4|(s&252645135)<<4,s=(s&4278255360)>>>8|(s&16711935)<<8,e.r[r]=(s>>>16|s<<16)>>>17}function i(r,s,o){for(;s--!==0;)r.push(0,o)}for(let r=0;r<32;r++)e.q[r]=e.S[r]<<3|e.T[r],e.c[r]=e.p[r]<<4|e.z[r];i(e._,144,8),i(e._,255-143,9),i(e._,279-255,7),i(e._,287-279,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),i(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),i(e.Q,19,0),i(e.C,286,0),i(e.D,30,0),i(e.v,320,0)}(),t.H.N}(),I.decode._readInterlace=function(t,e){const n=e.width,i=e.height,r=I.decode._getBPP(e),s=r>>3,o=Math.ceil(n*r/8),a=new Uint8Array(i*o);let c=0;const l=[0,0,4,0,2,0,1],f=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1];let h=0;for(;h<7;){const _=u[h],p=d[h];let g=0,m=0,y=l[h];for(;y<i;)y+=_,m++;let b=f[h];for(;b<n;)b+=p,g++;const v=Math.ceil(g*r/8);I.decode._filterZero(t,e,c,g,m);let E=0,x=l[h];for(;x<i;){let S=f[h],C=c+E*v<<3;for(;S<n;){if(r===1){let T=t[C>>3];T=T>>7-(C&7)&1,a[x*o+(S>>3)]|=T<<7-((S&7)<<0)}if(r===2){let T=t[C>>3];T=T>>6-(C&7)&3,a[x*o+(S>>2)]|=T<<6-((S&3)<<1)}if(r===4){let T=t[C>>3];T=T>>4-(C&7)&15,a[x*o+(S>>1)]|=T<<4-((S&1)<<2)}if(r>=8){const T=x*o+S*s;for(let A=0;A<s;A++)a[T+A]=t[(C>>3)+A]}C+=r,S+=p}E++,x+=_}g*m!==0&&(c+=m*(1+v)),h=h+1}return a},I.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},I.decode._filterZero=function(t,e,n,i,r){let s=I.decode._getBPP(e);const o=Math.ceil(i*s/8),a=I.decode._paeth;s=Math.ceil(s/8);let c=0,l=1,f=t[n],u=0;if(f>1&&(t[n]=[0,0,1][f-2]),f===3)for(u=s;u<o;u++)t[u+1]=t[u+1]+(t[u+1-s]>>>1)&255;for(let d=0;d<r;d++)if(c=n+d*o,l=c+d+1,f=t[l-1],u=0,f===0)for(;u<o;u++)t[c+u]=t[l+u];else if(f===1){for(;u<s;u++)t[c+u]=t[l+u];for(;u<o;u++)t[c+u]=t[l+u]+t[c+u-s]}else if(f===2)for(;u<o;u++)t[c+u]=t[l+u]+t[c+u-o];else if(f===3){for(;u<s;u++)t[c+u]=t[l+u]+(t[c+u-o]>>>1);for(;u<o;u++)t[c+u]=t[l+u]+(t[c+u-o]+t[c+u-s]>>>1)}else{for(;u<s;u++)t[c+u]=t[l+u]+a(0,t[c+u-o],0);for(;u<o;u++)t[c+u]=t[l+u]+a(t[c+u-s],t[c+u-o],t[c+u-s-o])}return t},I.decode._paeth=function(t,e,n){const i=t+e-n,r=i-t,s=i-e,o=i-n;return r*r<=s*s&&r*r<=o*o?t:s*s<=o*o?e:n},I.decode._IHDR=function(t,e,n){const i=I._bin;n.width=i.readUint(t,e),e+=4,n.height=i.readUint(t,e),e+=4,n.depth=t[e],e++,n.ctype=t[e],e++,n.compress=t[e],e++,n.filter=t[e],e++,n.interlace=t[e],e++},I._bin={nextZero:function(t,e){for(;t[e]!==0;)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,n){t[e]=n>>8&255,t[e+1]=n&255},readUint:function(t,e){return t[e]*(256*256*256)+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n&255},readASCII:function(t,e,n){let i="";for(let r=0;r<n;r++)i+=String.fromCharCode(t[e+r]);return i},writeASCII:function(t,e,n){for(let i=0;i<n.length;i++)t[e+i]=n.charCodeAt(i)},readBytes:function(t,e,n){const i=[];for(let r=0;r<n;r++)i.push(t[e+r]);return i},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,n){let i="",r;for(let s=0;s<n;s++)i+="%"+I._bin.pad(t[e+s].toString(16));try{r=decodeURIComponent(i)}catch{return I._bin.readASCII(t,e,n)}return r}},I._copyTile=function(t,e,n,i,r,s,o,a,c){const l=Math.min(e,r),f=Math.min(n,s);let u=0,d=0;for(let h=0;h<f;h++)for(let _=0;_<l;_++)if(o>=0&&a>=0?(u=h*e+_<<2,d=(a+h)*r+o+_<<2):(u=(-a+h)*e-o+_<<2,d=h*r+_<<2),c===0)i[d]=t[u],i[d+1]=t[u+1],i[d+2]=t[u+2],i[d+3]=t[u+3];else if(c===1){const p=t[u+3]*.00392156862745098,g=t[u]*p,m=t[u+1]*p,y=t[u+2]*p,b=i[d+3]*(1/255),v=i[d]*b,E=i[d+1]*b,x=i[d+2]*b,S=1-p,C=p+b*S,T=C===0?0:1/C;i[d+3]=255*C,i[d+0]=(g+v*S)*T,i[d+1]=(m+E*S)*T,i[d+2]=(y+x*S)*T}else if(c===2){const p=t[u+3],g=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];p===b&&g===v&&m===E&&y===x?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=g,i[d+1]=m,i[d+2]=y,i[d+3]=p)}else if(c===3){const p=t[u+3],g=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];if(p===b&&g===v&&m===E&&y===x)continue;if(p<220&&b>20)return!1}return!0},I.encode=function(t,e,n,i,r,s,o){i===null&&(i=0),o===null&&(o=!1);const a=I.encode.compress(t,e,n,i,[!1,!1,!1,0,o]);return I.encode.compressPNG(a,-1),I.encode._main(a,e,n,r,s)},I.encodeLL=function(t,e,n,i,r,s,o,a){const c={ctype:0+(i===1?0:2)+(r===0?0:4),depth:s,frames:[]},l=(i+r)*s,f=l*e;for(let d=0;d<t.length;d++)c.frames.push({rect:{x:0,y:0,width:e,height:n},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(f/8)});return I.encode.compressPNG(c,0,!0),I.encode._main(c,e,n,o,a)},I.encode._main=function(t,e,n,i,r){r||(r={});const s=I.crc.crc,o=I._bin.writeUint,a=I._bin.writeUshort,c=I._bin.writeASCII;let l=8;const f=t.frames.length>1;let u=!1,d=8+(16+5+4)+(f?20:0);if(r.sRGB!==null&&r.sRGB!==void 0&&(d+=8+1+4),r.pHYs!==null&&r.pHYs!==void 0&&(d+=8+9+4),t.ctype===3){const g=t.plte.length;for(let m=0;m<g;m++)t.plte[m]>>>24!==255&&(u=!0);d+=8+g*3+4+(u?8+g*1+4:0)}for(let g=0;g<t.frames.length;g++){const m=t.frames[g];f&&(d+=38),d+=m.cimg.length+12,g!==0&&(d+=4)}d+=12;const h=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(let g=0;g<8;g++)h[g]=_[g];if(o(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,o(h,l,e),l+=4,o(h,l,n),l+=4,h[l]=t.depth,l++,h[l]=t.ctype,l++,h[l]=0,l++,h[l]=0,l++,h[l]=0,l++,o(h,l,s(h,l-17,17)),l+=4,r.sRGB!==null&&r.sRGB!==void 0&&(o(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=r.sRGB,l++,o(h,l,s(h,l-5,5)),l+=4),r.pHYs!==null&&r.pHYs!==void 0&&(o(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,o(h,l,r.pHYs[0]),l+=4,o(h,l,r.pHYs[1]),l+=4,h[l]=r.pHYs[2],l++,o(h,l,s(h,l-13,13)),l+=4),f&&(o(h,l,8),l+=4,c(h,l,"acTL"),l+=4,o(h,l,t.frames.length),l+=4,o(h,l,r.loop!=null?r.loop:0),l+=4,o(h,l,s(h,l-12,12)),l+=4),t.ctype===3){const g=t.plte.length;o(h,l,g*3),l+=4,c(h,l,"PLTE"),l+=4;for(let m=0;m<g;m++){const y=m*3,b=t.plte[m],v=b&255,E=b>>>8&255,x=b>>>16&255;h[l+y+0]=v,h[l+y+1]=E,h[l+y+2]=x}if(l+=g*3,o(h,l,s(h,l-g*3-4,g*3+4)),l+=4,u){o(h,l,g),l+=4,c(h,l,"tRNS"),l+=4;for(let m=0;m<g;m++)h[l+m]=t.plte[m]>>>24&255;l+=g,o(h,l,s(h,l-g-4,g+4)),l+=4}}let p=0;for(let g=0;g<t.frames.length;g++){const m=t.frames[g];f&&(o(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,o(h,l,p++),l+=4,o(h,l,m.rect.width),l+=4,o(h,l,m.rect.height),l+=4,o(h,l,m.rect.x),l+=4,o(h,l,m.rect.y),l+=4,a(h,l,i[g]),l+=2,a(h,l,1e3),l+=2,h[l]=m.dispose,l++,h[l]=m.blend,l++,o(h,l,s(h,l-30,30)),l+=4);const y=m.cimg,b=y.length;o(h,l,b+(g===0?0:4)),l+=4;const v=l;c(h,l,g===0?"IDAT":"fdAT"),l+=4,g!==0&&(o(h,l,p++),l+=4),h.set(y,l),l+=b,o(h,l,s(h,v,l-v)),l+=4}return o(h,l,0),l+=4,c(h,l,"IEND"),l+=4,o(h,l,s(h,l-4,4)),l+=4,h.buffer},I.encode.compressPNG=function(t,e,n){for(let i=0;i<t.frames.length;i++){const r=t.frames[i],s=r.rect.height,o=new Uint8Array(s*r.bpl+s);r.cimg=I.encode._filterZero(r.img,s,r.bpp,r.bpl,o,e,n)}},I.encode.compress=function(t,e,n,i,r){const s=r[0],o=r[1],a=r[2],c=r[3],l=r[4];let f=6,u=8,d=255;for(let b=0;b<t.length;b++){const v=new Uint8Array(t[b]),E=v.length;for(let x=0;x<E;x+=4)d&=v[x+3]}const h=d!==255,_=I.encode.framize(t,e,n,s,o,a),p={},g=[],m=[];if(i!==0){const b=[];for(let C=0;C<_.length;C++)b.push(_[C].img.buffer);const v=I.encode.concatRGBA(b),E=I.quantize(v,i);let x=0;const S=new Uint8Array(E.abuf);for(let C=0;C<_.length;C++){const T=_[C].img,A=T.length;m.push(new Uint8Array(E.inds.buffer,x>>2,A>>2));for(let D=0;D<A;D+=4)T[D]=S[x+D],T[D+1]=S[x+D+1],T[D+2]=S[x+D+2],T[D+3]=S[x+D+3];x+=A}for(let C=0;C<E.plte.length;C++)g.push(E.plte[C].est.rgba)}else for(let b=0;b<_.length;b++){const v=_[b],E=new Uint32Array(v.img.buffer),x=v.rect.width,S=E.length,C=new Uint8Array(S);m.push(C);for(let T=0;T<S;T++){const A=E[T];if(T!==0&&A===E[T-1])C[T]=C[T-1];else if(T>x&&A===E[T-x])C[T]=C[T-x];else{let D=p[A];if(D===null&&(p[A]=D=g.length,g.push(A),g.length>=300))break;C[T]=D}}}const y=g.length;y<=256&&l===!1&&(y<=2?u=1:y<=4?u=2:y<=16?u=4:u=8,u=Math.max(u,c));for(let b=0;b<_.length;b++){const v=_[b],E=v.rect.width,x=v.rect.height;let S=v.img,C=4*E,T=4;if(y<=256&&l===!1){C=Math.ceil(u*E/8);const A=new Uint8Array(C*x),D=m[b];for(let P=0;P<x;P++){const U=P*C,z=P*E;if(u===8)for(let R=0;R<E;R++)A[U+R]=D[z+R];else if(u===4)for(let R=0;R<E;R++)A[U+(R>>1)]|=D[z+R]<<4-(R&1)*4;else if(u===2)for(let R=0;R<E;R++)A[U+(R>>2)]|=D[z+R]<<6-(R&3)*2;else if(u===1)for(let R=0;R<E;R++)A[U+(R>>3)]|=D[z+R]<<7-(R&7)*1}S=A,f=3,T=1}else if(h===!1&&_.length===1){const A=new Uint8Array(E*x*3),D=E*x;for(let P=0;P<D;P++){const U=P*3,z=P*4;A[U]=S[z],A[U+1]=S[z+1],A[U+2]=S[z+2]}S=A,f=2,T=3,C=3*E}v.img=S,v.bpl=C,v.bpp=T}return{ctype:f,depth:u,plte:g,frames:_}},I.encode.framize=function(t,e,n,i,r,s){const o=[];for(let a=0;a<t.length;a++){const c=new Uint8Array(t[a]),l=new Uint32Array(c.buffer);let f,u=0,d=0,h=e,_=n,p=i?1:0;if(a!==0){const g=s||i||a===1||o[a-2].dispose!==0?1:2;let m=0,y=1e9;for(let v=0;v<g;v++){const E=new Uint32Array(t[a-1-v]);let x=e,S=n,C=-1,T=-1;for(let D=0;D<n;D++)for(let P=0;P<e;P++){const U=D*e+P;l[U]!==E[U]&&(P<x&&(x=P),P>C&&(C=P),D<S&&(S=D),D>T&&(T=D))}C===-1&&(x=S=C=T=0),r&&((x&1)===1&&x--,(S&1)===1&&S--);const A=(C-x+1)*(T-S+1);A<y&&(y=A,m=v,u=x,d=S,h=C-x+1,_=T-S+1)}const b=new Uint8Array(t[a-1-m]);m===1&&(o[a-1].dispose=2),f=new Uint8Array(h*_*4),I._copyTile(b,e,n,f,h,_,-u,-d,0),p=I._copyTile(c,e,n,f,h,_,-u,-d,3)?1:0,p===1?I.encode._prepareDiff(c,e,n,f,{x:u,y:d,width:h,height:_}):I._copyTile(c,e,n,f,h,_,-u,-d,0)}else f=c.slice(0);o.push({rect:{x:u,y:d,width:h,height:_},img:f,blend:p,dispose:0})}if(i)for(let a=0;a<o.length;a++){const c=o[a];if(c.blend===1)continue;const l=c.rect,f=o[a-1].rect,u=Math.min(l.x,f.x),d=Math.min(l.y,f.y),h=Math.max(l.x+l.width,f.x+f.width),_=Math.max(l.y+l.height,f.y+f.height),p={x:u,y:d,width:h-u,height:_-d};o[a-1].dispose=1,a-1!==0&&I.encode._updateFrame(t,e,n,o,a-1,p,r),I.encode._updateFrame(t,e,n,o,a,p,r)}return o},I.encode._updateFrame=function(t,e,n,i,r,s,o){const a=Uint8Array,c=Uint32Array,l=new a(t[r-1]),f=new c(t[r-1]),u=r+1<t.length?new a(t[r+1]):null,d=new a(t[r]),h=new c(d.buffer);let _=e,p=n,g=-1,m=-1;for(let b=0;b<s.height;b++)for(let v=0;v<s.width;v++){const E=s.x+v,x=s.y+b,S=x*e+E,C=h[S];C===0||i[r-1].dispose===0&&f[S]===C&&(u===null||u[S*4+3]!==0)||(E<_&&(_=E),E>g&&(g=E),x<p&&(p=x),x>m&&(m=x))}g===-1&&(_=p=g=m=0),o&&((_&1)===1&&_--,(p&1)===1&&p--),s={x:_,y:p,width:g-_+1,height:m-p+1};const y=i[r];y.rect=s,y.blend=1,y.img=new Uint8Array(s.width*s.height*4),i[r-1].dispose===0?(I._copyTile(l,e,n,y.img,s.width,s.height,-s.x,-s.y,0),I.encode._prepareDiff(d,e,n,y.img,s)):I._copyTile(d,e,n,y.img,s.width,s.height,-s.x,-s.y,0)},I.encode._prepareDiff=function(t,e,n,i,r){I._copyTile(t,e,n,i,r.width,r.height,-r.x,-r.y,2)},I.encode._filterZero=function(t,e,n,i,r,s,o){const a=[];let c=[0,1,2,3,4];s!==-1?c=[s]:(e*i>5e5||n===1)&&(c=[0]);let l;o&&(l={level:0});const f=r.length>1e7&&Wi!=null?Wi:Bh;for(let h=0;h<c.length;h++){for(let _=0;_<e;_++)I.encode._filterLine(r,t,_,i,n,c[h]);a.push(f.deflate(r,l))}let u,d=1e9;for(let h=0;h<a.length;h++)a[h].length<d&&(u=h,d=a[h].length);return a[u]},I.encode._filterLine=function(t,e,n,i,r,s){const o=n*i;let a=o+n;const c=I.decode._paeth;if(t[a]=s,a++,s===0)if(i<500)for(let l=0;l<i;l++)t[a+l]=e[o+l];else t.set(new Uint8Array(e.buffer,o,i),a);else if(s===1){for(let l=0;l<r;l++)t[a+l]=e[o+l];for(let l=r;l<i;l++)t[a+l]=e[o+l]-e[o+l-r]+256&255}else if(n===0){for(let l=0;l<r;l++)t[a+l]=e[o+l];if(s===2)for(let l=r;l<i;l++)t[a+l]=e[o+l];if(s===3)for(let l=r;l<i;l++)t[a+l]=e[o+l]-(e[o+l-r]>>1)+256&255;if(s===4)for(let l=r;l<i;l++)t[a+l]=e[o+l]-c(e[o+l-r],0,0)+256&255}else{if(s===2)for(let l=0;l<i;l++)t[a+l]=e[o+l]+256-e[o+l-i]&255;if(s===3){for(let l=0;l<r;l++)t[a+l]=e[o+l]+256-(e[o+l-i]>>1)&255;for(let l=r;l<i;l++)t[a+l]=e[o+l]+256-(e[o+l-i]+e[o+l-r]>>1)&255}if(s===4){for(let l=0;l<r;l++)t[a+l]=e[o+l]+256-c(0,e[o+l-i],0)&255;for(let l=r;l<i;l++)t[a+l]=e[o+l]+256-c(e[o+l-r],e[o+l-i],e[o+l-r-i])&255}}},I.crc={table:function(){const t=new Uint32Array(256);for(let e=0;e<256;e++){let n=e;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;t[e]=n}return t}(),update:function(t,e,n,i){for(let r=0;r<i;r++)t=I.crc.table[(t^e[n+r])&255]^t>>>8;return t},crc:function(t,e,n){return I.crc.update(4294967295,t,e,n)^4294967295}},I.quantize=function(t,e){const n=new Uint8Array(t),i=n.slice(0),r=new Uint32Array(i.buffer),s=I.quantize.getKDtree(i,e),o=s[0],a=s[1],c=I.quantize.planeDst,l=n,f=r,u=l.length,d=new Uint8Array(n.length>>2);let h;if(n.length<2e7)for(let _=0;_<u;_+=4){const p=l[_]*.00392156862745098,g=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);h=I.quantize.getNearest(o,p,g,m,y),d[_>>2]=h.ind,f[_>>2]=h.est.rgba}else for(let _=0;_<u;_+=4){const p=l[_]*.00392156862745098,g=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);for(h=o;h.left;)h=c(h.est,p,g,m,y)<=0?h.left:h.right;d[_>>2]=h.ind,f[_>>2]=h.est.rgba}return{abuf:i.buffer,inds:d,plte:a}},I.quantize.getKDtree=function(t,e,n){n===null&&(n=1e-4);const i=new Uint32Array(t.buffer),r={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=I.quantize.stats(t,r.i0,r.i1),r.est=I.quantize.estats(r.bst);const s=[r];for(;s.length<e;){let o=0,a=0;for(let h=0;h<s.length;h++)s[h].est.L>o&&(o=s[h].est.L,a=h);if(o<n)break;const c=s[a],l=I.quantize.splitPixels(t,i,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=I.quantize.stats(t,u.i0,u.i1),u.est=I.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let h=0;h<16;h++)d.bst.R[h]=c.bst.R[h]-u.bst.R[h];for(let h=0;h<4;h++)d.bst.m[h]=c.bst.m[h]-u.bst.m[h];d.est=I.quantize.estats(d.bst),c.left=u,c.right=d,s[a]=u,s.push(d)}s.sort(function(o,a){return a.bst.N-o.bst.N});for(let o=0;o<s.length;o++)s[o].ind=o;return[r,s]},I.quantize.getNearest=function(t,e,n,i,r){if(t.left==null)return t.tdst=I.quantize.dist(t.est.q,e,n,i,r),t;const s=I.quantize.planeDst(t.est,e,n,i,r);let o=t.left,a=t.right;s>0&&(o=t.right,a=t.left);const c=I.quantize.getNearest(o,e,n,i,r);if(c.tdst<=s*s)return c;const l=I.quantize.getNearest(a,e,n,i,r);return l.tdst<c.tdst?l:c},I.quantize.planeDst=function(t,e,n,i,r){const s=t.e;return s[0]*e+s[1]*n+s[2]*i+s[3]*r-t.eMq},I.quantize.dist=function(t,e,n,i,r){const s=e-t[0],o=n-t[1],a=i-t[2],c=r-t[3];return s*s+o*o+a*a+c*c},I.quantize.splitPixels=function(t,e,n,i,r,s){const o=I.quantize.vecDot;for(i-=4;n<i;){for(;o(t,n,r)<=s;)n+=4;for(;o(t,i,r)>s;)i-=4;if(n>=i)break;const a=e[n>>2];e[n>>2]=e[i>>2],e[i>>2]=a,n+=4,i-=4}for(;o(t,n,r)>s;)n-=4;return n+4},I.quantize.vecDot=function(t,e,n){return t[e]*n[0]+t[e+1]*n[1]+t[e+2]*n[2]+t[e+3]*n[3]},I.quantize.stats=function(t,e,n){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],s=n-e>>2;for(let o=e;o<n;o+=4){const a=t[o]*.00392156862745098,c=t[o+1]*(1/255),l=t[o+2]*(1/255),f=t[o+3]*(1/255);r[0]+=a,r[1]+=c,r[2]+=l,r[3]+=f,i[0]+=a*a,i[1]+=a*c,i[2]+=a*l,i[3]+=a*f,i[5]+=c*c,i[6]+=c*l,i[7]+=c*f,i[10]+=l*l,i[11]+=l*f,i[15]+=f*f}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:r,N:s}},I.quantize.estats=function(t){const e=t.R,n=t.m,i=t.N,r=n[0],s=n[1],o=n[2],a=n[3],c=i===0?0:1/i,l=[e[0]-r*r*c,e[1]-r*s*c,e[2]-r*o*c,e[3]-r*a*c,e[4]-s*r*c,e[5]-s*s*c,e[6]-s*o*c,e[7]-s*a*c,e[8]-o*r*c,e[9]-o*s*c,e[10]-o*o*c,e[11]-o*a*c,e[12]-a*r*c,e[13]-a*s*c,e[14]-a*o*c,e[15]-a*a*c],f=l,u=I.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,_=0;if(i!==0)for(let m=0;m<16&&(d=u.multVec(f,d),_=Math.sqrt(u.dot(d,d)),d=u.sml(1/_,d),!(m!==0&&Math.abs(_-h)<1e-9));m++)h=_;const p=[r*c,s*c,o*c,a*c],g=u.dot(u.sml(255,p),d);return{Cov:l,q:p,e:d,L:h,eMq255:g,eMq:u.dot(d,p),rgba:(Math.round(255*p[3])<<24|Math.round(255*p[2])<<16|Math.round(255*p[1])<<8|Math.round(255*p[0])<<0)>>>0}},I.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},I.encode.concatRGBA=function(t){let e=0;for(let r=0;r<t.length;r++)e+=t[r].byteLength;const n=new Uint8Array(e);let i=0;for(let r=0;r<t.length;r++){const s=new Uint8Array(t[r]),o=s.length;for(let a=0;a<o;a+=4){let c=s[a],l=s[a+1],f=s[a+2];const u=s[a+3];u===0&&(c=l=f=0),n[i+a]=c,n[i+a+1]=l,n[i+a+2]=f,n[i+a+3]=u}i+=o}return n.buffer};const Xe=new Map,Yn=(t,e)=>{if(Xe.has(t))return e(null,Xe.get(t));const n=new Image;n.onload=function(){Xe.set(t,{width:n.width,height:n.height,element:n}),e(null,Xe.get(t))},n.onerror=function(i){e(i,null)},n.src=t},Wn=(t,e)=>{Yn(t,(n,i)=>{if(!i)return e(n,null);const r=document.createElement("canvas"),s=r.getContext("2d");return r.width=i.width,r.height=i.height,s.drawImage(i.element,0,0,r.width,r.height),s.getImageData(0,0,r.width,r.height)})},ws=t=>{let e="";if(t){const i=new DataView(t).getUint32(0,!1);switch(Number(i).toString(16).toUpperCase()){case"FFD8FFDB":e="JPG";break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":e="JPEG";break;case"89504E47":e="PNG";break;case"47494638":e="GIF";break;case"52494646":e="WEBP";break}}return e},Nh=(t,e)=>{for(let n=0,i=t.length;n<i;n++){const r=t[n],{type:s}=r,o=s.split("/");if(o[0]!=="image")return;let a=o[1].toUpperCase();const c=new FileReader;c.onload=function(l){if(!l.target)return e("no reader target",null);const f=l.target.result,u=ws(f);u&&(a=u);const d=new Blob([f]);Kn(d,(h,_)=>{if(!_)return e(h,null);Yn(_,(p,g)=>{if(!g)return e(p,null);Wn(_,(m,y)=>{if(!y)return e(m,null);const b={name:r.name,fileType:a,size:r.size,width:g.width,height:g.height,imgUrl:_,imageData:y,blob:d};return e(null,b)})})})},c.readAsArrayBuffer(r)}},jh=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},Hh=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},qh=t=>{const e=t.width,n=t.height,i=e*n*3,r=i+54,s=[66,77,r&255,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],o=[40,0,0,0,e&255,e>>8&255,e>>16&255,e>>24&255,n&255,n>>8&255,n>>16&255,n>>24&255,1,0,24,0,0,0,0,0,i&255,i>>8&255,i>>16&255,i>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=(4-e*3%4)%4,c=t.data;let l="";const f=e<<2;let u=n;const d=String.fromCharCode;do{const _=f*(u-1);let p="";for(let g=0;g<e;g++){const m=g<<2;p+=d(c[_+m+2])+d(c[_+m+1])+d(c[_+m])}for(let g=0;g<a;g++)p+=String.fromCharCode(0);l+=p}while(--u);function h(_){if(!window.btoa)throw"btoa undefined";let p="";if(typeof _=="string")p=_;else for(let g=0;g<_.length;g++)p+=String.fromCharCode(_[g]);return btoa(p)}return h(s.concat(o))+h(l)},Zh=t=>{const{width:e,height:n}=t,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.putImageData(t,0,0,0,0,e,n),i.toDataURL("image/png")},Gh=(t,e,n)=>{const{width:i,height:r}=t,s=document.createElement("canvas"),o=s.getContext("2d");s.width=i,s.height=r,o.putImageData(t,0,0,0,0,i,r);const a=`image/${e?e.toLowerCase():"png"}`;s.toBlob(c=>{n?.(null,c)},a,1)},Kn=(t,e)=>{const n=new FileReader;n.onload=function(i){i.target?e(null,i.target.result):e("can't readAsDataURL",null)},n.readAsDataURL(t)},Xh=(t,e)=>{Kn(t,function(n,i){if(i){const r=new Image;r.src=i}else e(n)})},$h=(t,e)=>{const n=window.URL.createObjectURL(t),i=document.createElement("a");i.style.visibility="hidden",document.body.appendChild(i),i.download=e,i.href=n,i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)},ys=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),Vh=(t,e="image/svg+xml",n="utf-8")=>{const i=new XMLSerializer().serializeToString(t);return ys(i,e,n)};function Yh(t,e){Wn(t,(n,i)=>{if(!i)return e(n,null);const r=i.data;let s=0;const o=[],a=[],c=[];for(let d=0;d<r.length;d+=4)o[s]=r[d],a[s]=r[d+1],c[s]=r[d+2],s+=1;const l=Jn(o),f=Jn(a),u=Jn(c);return e(null,"rgb("+l+","+f+","+u+")")})}function Jn(t){const e={},n=[],i=[];for(let a=0;a<t.length;a++)e[t[a]]?n.push(t[a]):e[t[a]]=1;let r=0;for(let a=0;a<n.length;a++){r=0;for(let c=0;c<n.length;c++)n[a]===n[c]&&(r+=1),i[a]=r}const s=Math.max.apply(null,i);let o=0;for(;o<i.length;o++)if(i[o]===s)return;return n[o]}const Wh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[(o*n+n-a-1)*4],r[c+1]=e[(o*n+n-a-1)*4+1],r[c+2]=e[(o*n+n-a-1)*4+2],r[c+3]=e[(o*n+n-a-1)*4+3]}return new ImageData(r,n,i)},Kh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[((i-o-1)*n+a)*4],r[c+1]=e[((i-o-1)*n+a)*4+1],r[c+2]=e[((i-o-1)*n+a)*4+2],r[c+3]=e[((i-o-1)*n+a)*4+3]}return new ImageData(r,n,i)},Jh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<n;o++)for(let a=0;a<i;a++){const c=(o*i+a)*4;r[c]=e[(a*n+n-o-1)*4],r[c+1]=e[(a*n+n-o-1)*4+1],r[c+2]=e[(a*n+n-o-1)*4+2],r[c+3]=e[(a*n+n-o-1)*4+3]}return new ImageData(r,i,n)},Qh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<n;o++)for(let a=0;a<i;a++){const c=(o*i+a)*4;r[c]=e[((i-a-1)*n+o)*4],r[c+1]=e[((i-a-1)*n+o)*4+1],r[c+2]=e[((i-a-1)*n+o)*4+2],r[c+3]=e[((i-a-1)*n+o)*4+3]}return new ImageData(r,i,n)},tf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+1]+e[c+2])/3;r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},ef=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=.2126*e[c]+.7152*e[c+1]+.0722*e[c+2];r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},nf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,f=(e[c]+e[c+1]+e[c+2])/3>127?255:0;r[c]=f,r[c+1]=f,r[c+2]=f,r[c+3]=e[c+3]}return new ImageData(r,n,i)},rf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=255-e[c],r[c+1]=255-e[c+1],r[c+2]=255-e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},sf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},of=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},af=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=0,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},lf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},cf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},hf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},ff=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c+1]+e[c+2])/2;r[c]=e[c],r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},uf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+2])/2;r[c]=l,r[c+1]=e[c+1],r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},df=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+1])/2;r[c]=l,r[c+1]=l,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},_f=t=>vs(t,[-1,-1,-1,-1,9,-1,-1,-1,-1]),gf=t=>vs(t,[-1,-1,-1,-1,8,-1,-1,-1,-1]),pf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=e[c+2],r[c+3]=255}return new ImageData(r,n,i)},mf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;if(e[c+3]===0)r[c]=255,r[c+1]=255,r[c+2]=255,r[c+3]=255;else{const l=bs([e[c],e[c+1],e[c+2],e[c+3]],[255,255,255,255]);r[c]=l[0],r[c+1]=l[1],r[c+2]=l[2],r[c+3]=l[3]}}return new ImageData(r,n,i)},wf=(t,e,n,i,r,s=!1,o)=>{const{data:a,width:c,height:l}=t;let f=r,u=i,d=e,h=n;if(f<0?f=0:f>c&&(f=c),u<0?u=0:u>l&&(u=l),d<1?d=1:d>c&&(d=c),h<1?h=1:h>l&&(h=l),f+d>c&&(d=c-f),u+h>l&&(h=l-u),s){const _=new Uint8ClampedArray(a.length);for(let g=0;g<l;g++)for(let m=0;m<c;m++){const y=(g*c+m)*4;m>=f&&m<=f+d&&g>=u&&g<=u+h?(_[y]=a[y],_[y+1]=a[y+1],_[y+2]=a[y+2],_[y+3]=a[y+3]):(_[y]=255,_[y+1]=255,_[y+2]=255,_[y+3]=o&&["JPG","JPEG"].includes(o.toUpperCase())?255:0)}return new ImageData(_,c,l)}else{const _=new Uint8ClampedArray(d*h*4);for(let g=u;g<=u+h;g++)for(let m=f;m<=f+d;m++){const y=((g-u)*d+m-f)*4,b=(g*c+m)*4;_[y]=a[b],_[y+1]=a[b+1],_[y+2]=a[b+2],_[y+3]=a[b+3]}return new ImageData(_,d,h)}},yf=(t,e,n,i)=>{const{data:r,width:s,height:o}=t;let a=e;a>Math.floor(s/2)&&(a=Math.floor(s/2)),a>Math.floor(o/2)&&(a=Math.floor(o/2)),a<0&&(a=0);const c=new Uint8ClampedArray(r.length);for(let f=0;f<o;f++)for(let u=0;u<s;u++){const d=(f*s+u)*4;let h=-1;u<a?f<a?h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(a-f-1,2)):f>o-a-1&&(h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(f-(o-a),2))):u>s-a-1&&(f<a?h=Math.sqrt(Math.pow(u-(s-a),2)+Math.pow(a-f-1,2)):f>o-a-1&&(h=Math.sqrt(Math.pow(u-(s-a),2)+Math.pow(f-(o-a),2)))),Math.round(h)>a?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||n.toUpperCase()==="PNG"?0:255):(c[d]=r[d],c[d+1]=r[d+1],c[d+2]=r[d+2],c[d+3]=i||n.toUpperCase()==="PNG"?r[d+3]:255)}return new ImageData(c,s,o)},vf=(t,e,n,i,r,s=1e4)=>{const o=new Image;o.src=t;const a=document.createElement("canvas"),c=a.getContext("2d");return a.width=s,a.height=s,c.drawImage(o,0,0,e,n,0,0,i,r),c.getImageData(0,0,i,r)},bf=(t,e)=>{const{data:n,width:i,height:r}=t,s=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;s[l]=Math.max(Math.min(n[l]+e,255),0),s[l+1]=Math.max(Math.min(n[l+1]+e,255),0),s[l+2]=Math.max(Math.min(n[l+2]+e,255),0),s[l+3]=n[l+3]}return new ImageData(s,i,r)},xf=(t,e,n=!1)=>{const{data:i,width:r,height:s}=t,o=new Uint8ClampedArray(i.length);for(let c=0;c<s;c++)for(let l=0;l<r;l++){const f=(c*r+l)*4;i[f+3]===0?(o[f]=255,o[f+1]=255,o[f+2]=255):(o[f]=i[f],o[f+1]=i[f+1],o[f+2]=i[f+2]);let u=i[f+3];n?u=Math.max(Math.min(Math.floor(255*e),255),0):u=Math.max(Math.min(Math.floor(u+255*e),255),0),o[f+3]=u}return new ImageData(o,r,s)},Ef=(t,e,n,i)=>{const{data:r,width:s,height:o}=t,{data:a,width:c,height:l}=e;let f=n,u=i;n+l>o&&(f=o-l),i+c>s&&(u=s-c);const d=new Uint8ClampedArray(r.length);for(let _=0;_<o;_++)for(let p=0;p<s;p++){const g=(_*s+p)*4;if(p<u||p>u+c||_<=f||_>=f+l)d[g]=r[g],d[g+1]=r[g+1],d[g+2]=r[g+2],d[g+3]=r[g+3];else{const m=(_*s+p-((f+1)*s+(_-(f+1))*(s-c))+c-u-1)*4,y=[a[m],a[m+1],a[m+2],a[m+3]],b=[r[g],r[g+1],r[g+2],r[g+3]],v=bs(y,b);d[g]=v[0],d[g+1]=v[1],d[g+2]=v[2],d[g+3]=v[3]}}return new ImageData(d,s,o)},Sf=(t,e,n,i,r,s=10)=>{const{data:o,width:a,height:c}=t;let l=r,f=i,u=e,d=n;l<0?l=0:l>a&&(l=a),f<0?f=0:f>c&&(f=c),u<1?u=1:u>a&&(u=a),d<1?d=1:d>c&&(d=c),l+u>a&&(u=a-l),f+d>c&&(d=c-f);const h=new Uint8ClampedArray(o.length);for(let p=0;p<c;p++)for(let g=0;g<a;g++){const m=(p*a+g)*4;if(g>=l&&g<=l+u&&p>=f&&p<=f+d){const y=Math.floor((g-l)/s),b=Math.floor((p-f)/s);let v=Math.floor(s*(y+1)-s/2+l),E=Math.floor(s*(b+1)-s/2+f);v>a-1&&(v=a-1),E>c-1&&(E=c-1);const x=(E*a+v)*4;h[m]=o[x],h[m+1]=o[x+1],h[m+2]=o[x+2],h[m+3]=o[x+3]}else h[m]=o[m],h[m+1]=o[m+1],h[m+2]=o[m+2],h[m+3]=o[m+3]}return new ImageData(h,a,c)},kf=async(t,e,n,i,r,s)=>{const o=r/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const a=new Image;a.src=t;const c=document.createElement("canvas"),l=c.getContext("2d");c.width=e,c.height=n,l.drawImage(a,0,0,e,n),c.toBlob(f=>{s(f)},`image/${i.toLowerCase()}`,o)}else{const a=Math.floor(o*256),c=I.encode([t.data.buffer],e,n,a),l=new Blob([c]);s&&s(l)}},Tf=(t,e,n={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(e&&n){const{data:i,width:r,height:s}=t,{data:o}=e,a=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:l}=n;for(let u=0;u<s;u++)for(let d=0;d<r;d++){const h=(u*r+d)*4,_=o[h],p=o[h+1],g=o[h+2],m=o[h+3];_===c.r&&p===c.g&&g===c.b&&m===c.a&&l.a!==0?(a[h]=l.r,a[h+1]=l.g,a[h+2]=l.b,a[h+3]=l.a):(a[h]=i[h],a[h+1]=i[h+1],a[h+2]=i[h+2],a[h+3]=i[h+3])}return new ImageData(a,r,s)}return t},vs=(t,e)=>{const{data:n,width:i,height:r}=t,s=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;for(let f=0;f<3;f++){const u=l+f;c===0||c===i-1||a===0||a===r-1?s[u]=n[u]:s[u]=e[0]*n[u-i*4-4]+e[1]*n[u-i*4]+e[2]*n[u-i*4+4]+e[3]*n[u-4]+e[4]*n[u]+e[5]*n[u+4]+e[6]*n[u+i*4-4]+e[7]*n[u+i*4]+e[8]*n[u+i*4+4]}s[l+3]=n[l+3]}return new ImageData(s,i,r)},bs=(t,e)=>{if(t&&t.length===4&&e&&e.length===4){const n=t[3],i=e[3];if(n===255||i===0)return t;if(n===0)return e;{const r=n/255,s=i/255,o=Math.max(Math.min(Math.floor(t[0]*r+e[0]*s*(1-r)),255),0),a=Math.max(Math.min(Math.floor(t[1]*r+e[1]*s*(1-r)),255),0),c=Math.max(Math.min(Math.floor(t[2]*r+e[2]*s*(1-r)),255),0),l=Math.max(Math.min(Math.floor((r+s*(1-r))*255),255),0);return[o,a,c,l]}}return[255,255,255,255]};function Af(){var t=null;if(window.ActiveXObject)for(var e=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],n=0;n<e.length;n++)try{t=new window.ActiveXObject(e[n]);break}catch{continue}else t=new XMLHttpRequest;return t}function Cf(t){if(t.action){if(t.method.toLowerCase()==="post")return{url:t.action,data:new FormData(t)};for(var e="",n=0;n<t.elements.length;n++){var i=t.elements[n];if(i.hasAttribute("name")){var r=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(r==="FILE")for(var s=0;s<i.files.length;e+="&"+escape(i.name)+"="+escape(i.files[s++].name));else(r!=="RADIO"&&r!=="CHECKBOX"||i.checked)&&(e+="&"+escape(i.name)+"="+escape(i.value))}}return{url:t.action.replace(/(?:\?.*)?$/,e.replace(/^&/,"?")),data:null}}}function If(t,e){return new Promise((n,i)=>{var r=new XMLHttpRequest,s=function(){i("The request for "+t+" is timed out for "+e+".")},o=function(a){r.readyState===4&&(r.status===200?n(r.response):i(r.statusText))};r.open("GET",t),r.onload=o,r.timeout=e,r.ontimeout=s,r.upload.addEventListener("progress",function(a){if(a.lengthComputable){const c=Math.round(a.loaded*100/a.total);console.log(c+"%")}},!1),r.upload.addEventListener("load",function(a){},!1),r.send(null)})}function Df(t,e,n){return fetch(t,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},e)).then(i=>i.json())}function Pf(t,e){var n=new XMLHttpRequest;n.open("HEAD",t),n.filepath=t,n.callback=e,n.onload=function(){var i=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),r=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(i)||r>i)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(i)&&this.callback(r,i))},n.send()}function Qn(t,e){if(e)window.localStorage.setItem(t,typeof e=="string"?e:JSON.stringify(e));else return window.localStorage.getItem(t)}function Rf(t=""){t=t||Qn("theme")||"",t||(t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Qn("theme",t),document.documentElement.classList.toggle("dark",t==="dark")}const Mf=(t={x:0,y:0})=>window.scrollTo(t.x,t.y);function $e(t){try{window.history.scrollRestoration=t}catch{}}"scrollRestoration"in window.history&&($e("manual"),window.addEventListener("beforeunload",()=>{$e("auto")}),window.addEventListener("load",()=>{$e("manual")}));let Ve;const xs=new WeakMap;function ti(t,e){let n=xs.get(t);n||(n=new Map,xs.set(t,n));let i=n.get(e);return i||(i=new Es,n.set(e,i)),i}class Es{subscribers;constructor(){this.subscribers=new Set}depend(){Ve&&this.subscribers.add(Ve)}notify(){this.subscribers.forEach(e=>e())}}function Lf(t){Ve=t,t(),Ve=null}function Of(t){return Object.keys(t).forEach(e=>{let n=t[e];const i=ti(t,e);Object.defineProperty(t,e,{get(){return i.depend(),n},set(r){r!=n&&(n=r,i.notify())}})}),t}function Uf(t){return new Proxy(t,{get(e,n,i){return ti(t,n).depend(),Reflect.get(e,n,i)},set(e,n,i,r){const s=ti(t,n);return t[n]!=i&&(t[n]=i,s.notify()),Reflect.set(e,n,i,r)}})}function Ff(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1].toLowerCase()}function zf(t){return Ff(t)==="array"}var ei={exports:{}},Vt=typeof Reflect=="object"?Reflect:null,Ss=Vt&&typeof Vt.apply=="function"?Vt.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},Ye;Vt&&typeof Vt.ownKeys=="function"?Ye=Vt.ownKeys:Object.getOwnPropertySymbols?Ye=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ye=function(t){return Object.getOwnPropertyNames(t)};function Bf(t){console&&console.warn&&console.warn(t)}var ks=Number.isNaN||function(t){return t!==t};function F(){F.init.call(this)}ei.exports=F,ei.exports.once=qf,F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var Ts=10;function We(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(F,"defaultMaxListeners",{enumerable:!0,get:function(){return Ts},set:function(t){if(typeof t!="number"||t<0||ks(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ts=t}}),F.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},F.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ks(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function As(t){return t._maxListeners===void 0?F.defaultMaxListeners:t._maxListeners}F.prototype.getMaxListeners=function(){return As(this)},F.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=t==="error",r=this._events;if(r!==void 0)i=i&&r.error===void 0;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=r[t];if(a===void 0)return!1;if(typeof a=="function")Ss(a,this,e);else for(var c=a.length,l=Rs(a,c),n=0;n<c;++n)Ss(l[n],this,e);return!0};function Cs(t,e,n,i){var r,s,o;if(We(n),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),o=s[e]),o===void 0)o=s[e]=n,++t._eventsCount;else if(typeof o=="function"?o=s[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),r=As(t),r>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,Bf(a)}return t}F.prototype.addListener=function(t,e){return Cs(this,t,e,!1)},F.prototype.on=F.prototype.addListener,F.prototype.prependListener=function(t,e){return Cs(this,t,e,!0)};function Nf(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Is(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=Nf.bind(i);return r.listener=n,i.wrapFn=r,r}F.prototype.once=function(t,e){return We(e),this.on(t,Is(this,t,e)),this},F.prototype.prependOnceListener=function(t,e){return We(e),this.prependListener(t,Is(this,t,e)),this},F.prototype.removeListener=function(t,e){var n,i,r,s,o;if(We(e),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,r=s;break}if(r<0)return this;r===0?n.shift():jf(n,r),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,o||e)}return this},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(t){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var r=Object.keys(n),s;for(i=0;i<r.length;++i)s=r[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this};function Ds(t,e,n){var i=t._events;if(i===void 0)return[];var r=i[e];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?Hf(r):Rs(r,r.length)}F.prototype.listeners=function(t){return Ds(this,t,!0)},F.prototype.rawListeners=function(t){return Ds(this,t,!1)},F.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Ps.call(t,e)},F.prototype.listenerCount=Ps;function Ps(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}F.prototype.eventNames=function(){return this._eventsCount>0?Ye(this._events):[]};function Rs(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function jf(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Hf(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function qf(t,e){return new Promise(function(n,i){function r(o){t.removeListener(e,s),i(o)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",r),n([].slice.call(arguments))}Ms(t,e,s,{once:!0}),e!=="error"&&Zf(t,r,{once:!0})})}function Zf(t,e,n){typeof t.on=="function"&&Ms(t,"error",e,n)}function Ms(t,e,n,i){if(typeof t.on=="function")i.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function r(s){i.once&&t.removeEventListener(e,r),n(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var Gf=ei.exports;class H0 extends Gf.EventEmitter{constructor(){super()}on(e,n){return super.on(e,n)}addListener(e,n){return super.on(e,n)}once(e,n){return super.once(e,n)}removeListener(e,n){return super.removeListener(e,n)}removeAllListeners(e){return super.removeAllListeners(e)}emit(e,n){return super.emit(e,n)}off(e,n){return super.off(e,n)}listeners(e){return super.listeners(e)}rawListeners(e){return super.rawListeners(e)}listenerCount(e){return super.listenerCount(e)}prependListener(e,n){return super.prependListener(e,n)}prependOnceListener(e,n){return super.prependOnceListener(e,n)}}function Ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:Xf}=Object.prototype,{getPrototypeOf:ni}=Object,Ke=(t=>e=>{const n=Xf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),e=>Ke(e)===t),Je=t=>e=>typeof e===t,{isArray:Yt}=Array,ve=Je("undefined");function $f(t){return t!==null&&!ve(t)&&t.constructor!==null&&!ve(t.constructor)&&W(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Os=it("ArrayBuffer");function Vf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Os(t.buffer),e}const Yf=Je("string"),W=Je("function"),Us=Je("number"),Qe=t=>t!==null&&typeof t=="object",Wf=t=>t===!0||t===!1,tn=t=>{if(Ke(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Kf=it("Date"),Jf=it("File"),Qf=it("Blob"),tu=it("FileList"),eu=t=>Qe(t)&&W(t.pipe),nu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||W(t.append)&&((e=Ke(t))==="formdata"||e==="object"&&W(t.toString)&&t.toString()==="[object FormData]"))},iu=it("URLSearchParams"),ru=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Yt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(i=0;i<o;i++)a=s[i],e.call(null,t[a],a,t)}}function Fs(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const zs=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Bs=t=>!ve(t)&&t!==zs;function ii(){const{caseless:t}=Bs(this)&&this||{},e={},n=(i,r)=>{const s=t&&Fs(e,r)||r;tn(e[s])&&tn(i)?e[s]=ii(e[s],i):tn(i)?e[s]=ii({},i):Yt(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&be(arguments[i],n);return e}const su=(t,e,n,{allOwnKeys:i}={})=>(be(e,(r,s)=>{n&&W(r)?t[s]=Ls(r,n):t[s]=r},{allOwnKeys:i}),t),ou=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),au=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},lu=(t,e,n,i)=>{let r,s,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)o=r[s],(!i||i(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},cu=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},hu=t=>{if(!t)return null;if(Yt(t))return t;let e=t.length;if(!Us(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},fu=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),uu=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const r=i.value;e.call(t,r[0],r[1])}},du=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},_u=it("HTMLFormElement"),gu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),Ns=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),pu=it("RegExp"),js=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};be(n,(r,s)=>{let o;(o=e(r,s,t))!==!1&&(i[s]=o||r)}),Object.defineProperties(t,i)},mu=t=>{js(t,(e,n)=>{if(W(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(W(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wu=(t,e)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return Yt(t)?i(t):i(String(t).split(e)),n},yu=()=>{},vu=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ri="abcdefghijklmnopqrstuvwxyz",Hs="0123456789",qs={DIGIT:Hs,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Hs},bu=(t=16,e=qs.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xu(t){return!!(t&&W(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Eu=t=>{const e=new Array(10),n=(i,r)=>{if(Qe(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const s=Yt(i)?[]:{};return be(i,(o,a)=>{const c=n(o,r+1);!ve(c)&&(s[a]=c)}),e[r]=void 0,s}}return i};return n(t,0)},Su=it("AsyncFunction"),ku=t=>t&&(Qe(t)||W(t))&&W(t.then)&&W(t.catch),k={isArray:Yt,isArrayBuffer:Os,isBuffer:$f,isFormData:nu,isArrayBufferView:Vf,isString:Yf,isNumber:Us,isBoolean:Wf,isObject:Qe,isPlainObject:tn,isUndefined:ve,isDate:Kf,isFile:Jf,isBlob:Qf,isRegExp:pu,isFunction:W,isStream:eu,isURLSearchParams:iu,isTypedArray:fu,isFileList:tu,forEach:be,merge:ii,extend:su,trim:ru,stripBOM:ou,inherits:au,toFlatObject:lu,kindOf:Ke,kindOfTest:it,endsWith:cu,toArray:hu,forEachEntry:uu,matchAll:du,isHTMLForm:_u,hasOwnProperty:Ns,hasOwnProp:Ns,reduceDescriptors:js,freezeMethods:mu,toObjectSet:wu,toCamelCase:gu,noop:yu,toFiniteNumber:vu,findKey:Fs,global:zs,isContextDefined:Bs,ALPHABET:qs,generateString:bu,isSpecCompliantForm:xu,toJSONObject:Eu,isAsyncFn:Su,isThenable:ku};function L(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}k.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Zs=L.prototype,Gs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Gs[t]={value:t}}),Object.defineProperties(L,Gs),Object.defineProperty(Zs,"isAxiosError",{value:!0}),L.from=(t,e,n,i,r,s)=>{const o=Object.create(Zs);return k.toFlatObject(t,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),L.call(o,t.message,e,n,i,r),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const Tu=null;function si(t){return k.isPlainObject(t)||k.isArray(t)}function Xs(t){return k.endsWith(t,"[]")?t.slice(0,-2):t}function $s(t,e,n){return t?t.concat(e).map(function(i,r){return i=Xs(i),!n&&r?"["+i+"]":i}).join(n?".":""):e}function Au(t){return k.isArray(t)&&!t.some(si)}const Cu=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function en(t,e,n){if(!k.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!k.isUndefined(_[h])});const i=n.metaTokens,r=n.visitor||l,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(e);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(k.isDate(h))return h.toISOString();if(!a&&k.isBlob(h))throw new L("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(h)||k.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,_,p){let g=h;if(h&&!p&&typeof h=="object"){if(k.endsWith(_,"{}"))_=i?_:_.slice(0,-2),h=JSON.stringify(h);else if(k.isArray(h)&&Au(h)||(k.isFileList(h)||k.endsWith(_,"[]"))&&(g=k.toArray(h)))return _=Xs(_),g.forEach(function(m,y){!(k.isUndefined(m)||m===null)&&e.append(o===!0?$s([_],y,s):o===null?_:_+"[]",c(m))}),!1}return si(h)?!0:(e.append($s(p,_,s),c(h)),!1)}const f=[],u=Object.assign(Cu,{defaultVisitor:l,convertValue:c,isVisitable:si});function d(h,_){if(!k.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(h),k.forEach(h,function(p,g){(!(k.isUndefined(p)||p===null)&&r.call(e,p,k.isString(g)?g.trim():g,_,u))===!0&&d(p,_?_.concat(g):[g])}),f.pop()}}if(!k.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Vs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function oi(t,e){this._pairs=[],t&&en(t,this,e)}const Ys=oi.prototype;Ys.append=function(t,e){this._pairs.push([t,e])},Ys.toString=function(t){const e=t?function(n){return t.call(this,n,Vs)}:Vs;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Iu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ws(t,e,n){if(!e)return t;const i=n&&n.encode||Iu,r=n&&n.serialize;let s;if(r?s=r(e,n):s=k.isURLSearchParams(e)?e.toString():new oi(e,n).toString(i),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Du{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){k.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ks=Du,Js={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pu=typeof URLSearchParams<"u"?URLSearchParams:oi,Ru=typeof FormData<"u"?FormData:null,Mu=typeof Blob<"u"?Blob:null,Lu=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ou=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rt={isBrowser:!0,classes:{URLSearchParams:Pu,FormData:Ru,Blob:Mu},isStandardBrowserEnv:Lu,isStandardBrowserWebWorkerEnv:Ou,protocols:["http","https","file","blob","url","data"]};function Uu(t,e){return en(t,new rt.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return rt.isNode&&k.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Fu(t){return k.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zu(t){const e={},n=Object.keys(t);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],e[s]=t[s];return e}function Qs(t){function e(n,i,r,s){let o=n[s++];const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&k.isArray(r)?r.length:o,c?(k.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),e(n,i,r[o],s)&&k.isArray(r[o])&&(r[o]=zu(r[o])),!a)}if(k.isFormData(t)&&k.isFunction(t.entries)){const n={};return k.forEachEntry(t,(i,r)=>{e(Fu(i),r,n,0)}),n}return null}function Bu(t,e,n){if(k.isString(t))try{return(e||JSON.parse)(t),k.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const ai={transitional:Js,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=k.isObject(t);if(r&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i&&i?JSON.stringify(Qs(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Uu(t,this.formSerializer).toString();if((s=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return en(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),Bu(t)):t}],transformResponse:[function(t){const e=this.transitional||ai.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(t&&k.isString(t)&&(n&&!this.responseType||i)){const r=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(r)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],t=>{ai.headers[t]={}});const li=ai,Nu=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ju=t=>{const e={};let n,i,r;return t&&t.split(`
12
- `).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&Nu[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},to=Symbol("internals");function xe(t){return t&&String(t).trim().toLowerCase()}function nn(t){return t===!1||t==null?t:k.isArray(t)?t.map(nn):String(t)}function Hu(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const qu=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ci(t,e,n,i,r){if(k.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!k.isString(e)){if(k.isString(i))return e.indexOf(i)!==-1;if(k.isRegExp(i))return i.test(e)}}function Zu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Gu(t,e){const n=k.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,s,o){return this[i].call(this,e,r,s,o)},configurable:!0})})}class rn{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function s(a,c,l){const f=xe(c);if(!f)throw new Error("header name must be a non-empty string");const u=k.findKey(r,f);(!u||r[u]===void 0||l===!0||l===void 0&&r[u]!==!1)&&(r[u||c]=nn(a))}const o=(a,c)=>k.forEach(a,(l,f)=>s(l,f,c));return k.isPlainObject(e)||e instanceof this.constructor?o(e,n):k.isString(e)&&(e=e.trim())&&!qu(e)?o(ju(e),n):e!=null&&s(n,e,i),this}get(e,n){if(e=xe(e),e){const i=k.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Hu(r);if(k.isFunction(n))return n.call(this,r,i);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=xe(e),e){const i=k.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||ci(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function s(o){if(o=xe(o),o){const a=k.findKey(i,o);a&&(!n||ci(i,i[a],a,n))&&(delete i[a],r=!0)}}return k.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!e||ci(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,i={};return k.forEach(this,(r,s)=>{const o=k.findKey(i,s);if(o){n[o]=nn(r),delete n[s];return}const a=e?Zu(s):String(s).trim();a!==s&&delete n[s],n[a]=nn(r),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return k.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&k.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
13
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const n=(this[to]=this[to]={accessors:{}}).accessors,i=this.prototype;function r(s){const o=xe(s);n[o]||(Gu(i,s),n[o]=!0)}return k.isArray(e)?e.forEach(r):r(e),this}}rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(rn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),k.freezeMethods(rn);const ct=rn;function hi(t,e){const n=this||li,i=e||n,r=ct.from(i.headers);let s=i.data;return k.forEach(t,function(o){s=o.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function eo(t){return!!(t&&t.__CANCEL__)}function Ee(t,e,n){L.call(this,t??"canceled",L.ERR_CANCELED,e,n),this.name="CanceledError"}k.inherits(Ee,L,{__CANCEL__:!0});function Xu(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $u=rt.isStandardBrowserEnv?function(){return{write:function(t,e,n,i,r,s){const o=[];o.push(t+"="+encodeURIComponent(e)),k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(i)&&o.push("path="+i),k.isString(r)&&o.push("domain="+r),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Vu(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Yu(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function no(t,e){return t&&!Vu(e)?Yu(t,e):e}const Wu=rt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(r){let s=r;return t&&(e.setAttribute("href",s),s=e.href),e.setAttribute("href",s),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(r){const s=k.isString(r)?i(r):r;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Ku(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ju(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,s=0,o;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),l=i[s];o||(o=c),n[r]=a,i[r]=c;let f=s,u=0;for(;f!==r;)u+=n[f++],f=f%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),c-o<e)return;const d=l&&c-l;return d?Math.round(u*1e3/d):void 0}}function io(t,e){let n=0;const i=Ju(50,250);return r=>{const s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-n,c=i(a),l=s<=o;n=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-s)/c:void 0,event:r};f[e?"download":"upload"]=!0,t(f)}}const Qu=typeof XMLHttpRequest<"u",td=Qu&&function(t){return new Promise(function(e,n){let i=t.data;const r=ct.from(t.headers).normalize(),s=t.responseType;let o;function a(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}let c;k.isFormData(i)&&(rt.isStandardBrowserEnv||rt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?k.isString(c=r.getContentType())&&r.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(h+":"+_))}const f=no(t.baseURL,t.url);l.open(t.method.toUpperCase(),Ws(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!l)return;const h=ct.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:t,request:l};Xu(function(p){e(p),a()},function(p){n(p),a()},_),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(n(new L("Request aborted",L.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let h=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const _=t.transitional||Js;t.timeoutErrorMessage&&(h=t.timeoutErrorMessage),n(new L(h,_.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,t,l)),l=null},rt.isStandardBrowserEnv){const h=(t.withCredentials||Wu(f))&&t.xsrfCookieName&&$u.read(t.xsrfCookieName);h&&r.set(t.xsrfHeaderName,h)}i===void 0&&r.setContentType(null),"setRequestHeader"in l&&k.forEach(r.toJSON(),function(h,_){l.setRequestHeader(_,h)}),k.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",io(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",io(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=h=>{l&&(n(!h||h.type?new Ee(null,t,l):h),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const d=Ku(f);if(d&&rt.protocols.indexOf(d)===-1){n(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,t));return}l.send(i||null)})},fi={http:Tu,xhr:td};k.forEach(fi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ro=t=>`- ${t}`,ed=t=>k.isFunction(t)||t===null||t===!1,so={getAdapter:t=>{t=k.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let s=0;s<e;s++){n=t[s];let o;if(i=n,!ed(n)&&(i=fi[(o=String(n)).toLowerCase()],i===void 0))throw new L(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+s]=i}if(!i){const s=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
14
- `+s.map(ro).join(`
15
- `):" "+ro(s[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:fi};function ui(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ee(null,t)}function oo(t){return ui(t),t.headers=ct.from(t.headers),t.data=hi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),so.getAdapter(t.adapter||li.adapter)(t).then(function(e){return ui(t),e.data=hi.call(t,t.transformResponse,e),e.headers=ct.from(e.headers),e},function(e){return eo(e)||(ui(t),e&&e.response&&(e.response.data=hi.call(t,t.transformResponse,e.response),e.response.headers=ct.from(e.response.headers))),Promise.reject(e)})}const ao=t=>t instanceof ct?t.toJSON():t;function Wt(t,e){e=e||{};const n={};function i(l,f,u){return k.isPlainObject(l)&&k.isPlainObject(f)?k.merge.call({caseless:u},l,f):k.isPlainObject(f)?k.merge({},f):k.isArray(f)?f.slice():f}function r(l,f,u){if(k.isUndefined(f)){if(!k.isUndefined(l))return i(void 0,l,u)}else return i(l,f,u)}function s(l,f){if(!k.isUndefined(f))return i(void 0,f)}function o(l,f){if(k.isUndefined(f)){if(!k.isUndefined(l))return i(void 0,l)}else return i(void 0,f)}function a(l,f,u){if(u in e)return i(l,f);if(u in t)return i(void 0,l)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,f)=>r(ao(l),ao(f),!0)};return k.forEach(Object.keys(Object.assign({},t,e)),function(l){const f=c[l]||r,u=f(t[l],e[l],l);k.isUndefined(u)&&f!==a||(n[l]=u)}),n}const lo="1.5.1",di={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{di[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const co={};di.transitional=function(t,e,n){function i(r,s){return"[Axios v"+lo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(t===!1)throw new L(i(s," has been removed"+(e?" in "+e:"")),L.ERR_DEPRECATED);return e&&!co[s]&&(co[s]=!0,console.warn(i(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,s,o):!0}};function nd(t,e,n){if(typeof t!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const s=i[r],o=e[s];if(o){const a=t[s],c=a===void 0||o(a,s,t);if(c!==!0)throw new L("option "+s+" must be "+c,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+s,L.ERR_BAD_OPTION)}}const _i={assertOptions:nd,validators:di},bt=_i.validators;class sn{constructor(e){this.defaults=e,this.interceptors={request:new Ks,response:new Ks}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Wt(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&_i.assertOptions(i,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:_i.assertOptions(r,{encode:bt.function,serialize:bt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&k.merge(s.common,s[n.method]);s&&k.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=ct.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const l=[];this.interceptors.response.forEach(function(_){l.push(_.fulfilled,_.rejected)});let f,u=0,d;if(!c){const _=[oo.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,l),d=_.length,f=Promise.resolve(n);u<d;)f=f.then(_[u++],_[u++]);return f}d=a.length;let h=n;for(u=0;u<d;){const _=a[u++],p=a[u++];try{h=_(h)}catch(g){p.call(this,g);break}}try{f=oo.call(this,h)}catch(_){return Promise.reject(_)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(e){e=Wt(this.defaults,e);const n=no(e.baseURL,e.url);return Ws(n,e.params,e.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(t){sn.prototype[t]=function(e,n){return this.request(Wt(n||{},{method:t,url:e,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(t){function e(n){return function(i,r,s){return this.request(Wt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}sn.prototype[t]=e(),sn.prototype[t+"Form"]=e(!0)});const on=sn;class gi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const o=new Promise(a=>{i.subscribe(a),s=a}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},e(function(r,s,o){i.reason||(i.reason=new Ee(r,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new gi(function(n){e=n}),cancel:e}}}const id=gi;function rd(t){return function(e){return t.apply(null,e)}}function sd(t){return k.isObject(t)&&t.isAxiosError===!0}const pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pi).forEach(([t,e])=>{pi[e]=t});const od=pi;function ho(t){const e=new on(t),n=Ls(on.prototype.request,e);return k.extend(n,on.prototype,e,{allOwnKeys:!0}),k.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return ho(Wt(t,i))},n}const N=ho(li);N.Axios=on,N.CanceledError=Ee,N.CancelToken=id,N.isCancel=eo,N.VERSION=lo,N.toFormData=en,N.AxiosError=L,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=rd,N.isAxiosError=sd,N.mergeConfig=Wt,N.AxiosHeaders=ct,N.formToJSON=t=>Qs(k.isHTMLForm(t)?new FormData(t):t),N.getAdapter=so.getAdapter,N.HttpStatusCode=od,N.default=N;var mi=function(t,e){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},mi(t,e)};function xt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function wi(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Se(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function ke(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function ht(t){return typeof t=="function"}function yi(t){var e=function(i){Error.call(i),i.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var vi=yi(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
16
- `+e.map(function(n,i){return i+1+") "+n.toString()}).join(`
17
- `):"",this.name="UnsubscriptionError",this.errors=e}});function an(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Te=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=wi(o),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else o.remove(this);var f=this.initialTeardown;if(ht(f))try{f()}catch(p){s=p instanceof vi?p.errors:[p]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=wi(u),h=d.next();!h.done;h=d.next()){var _=h.value;try{_o(_)}catch(p){s=s??[],p instanceof vi?s=ke(ke([],Se(s)),Se(p.errors)):s.push(p)}}}catch(p){i={error:p}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new vi(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)_o(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&an(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&an(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),fo=Te.EMPTY;function uo(t){return t instanceof Te||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function _o(t){ht(t)?t():t.unsubscribe()}var go={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ad={setTimeout:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,ke([t,e],Se(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function ld(t){ad.setTimeout(function(){throw t})}function po(){}function ln(t){t()}var bi=function(t){xt(e,t);function e(n){var i=t.call(this)||this;return i.isStopped=!1,n?(i.destination=n,uo(n)&&n.add(i)):i.destination=ud,i}return e.create=function(n,i,r){return new Ei(n,i,r)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Te),cd=Function.prototype.bind;function xi(t,e){return cd.call(t,e)}var hd=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(i){cn(i)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(i){cn(i)}else cn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){cn(n)}},t}(),Ei=function(t){xt(e,t);function e(n,i,r){var s=t.call(this)||this,o;if(ht(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&go.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&xi(n.next,a),error:n.error&&xi(n.error,a),complete:n.complete&&xi(n.complete,a)}):o=n}return s.destination=new hd(o),s}return e}(bi);function cn(t){ld(t)}function fd(t){throw t}var ud={closed:!0,next:po,error:fd,complete:po},dd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _d(t){return t}function gd(t){return t.length===0?_d:t.length===1?t[0]:function(e){return t.reduce(function(n,i){return i(n)},e)}}var mo=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,i){var r=this,s=md(e)?e:new Ei(e,n,i);return ln(function(){var o=r,a=o.operator,c=o.source;s.add(a?a.call(s,c):c?r._subscribe(s):r._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var i=this;return n=wo(n),new n(function(r,s){var o=new Ei({next:function(a){try{e(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[dd]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return gd(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=wo(e),new e(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},t.create=function(e){return new t(e)},t}();function wo(t){var e;return(e=t??go.Promise)!==null&&e!==void 0?e:Promise}function pd(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}function md(t){return t&&t instanceof bi||pd(t)&&uo(t)}(function(t){xt(e,t);function e(n,i,r,s,o,a){var c=t.call(this,n)||this;return c.onFinalize=o,c.shouldUnsubscribe=a,c._next=i?function(l){try{i(l)}catch(f){n.error(f)}}:t.prototype._next,c._error=s?function(l){try{s(l)}catch(f){n.error(f)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(bi);var wd=yi(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yd=function(t){xt(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var i=new yo(this,this);return i.operator=n,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new wd},e.prototype.next=function(n){var i=this;ln(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=wi(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(n)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(n){var i=this;ln(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},e.prototype.complete=function(){var n=this;ln(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?fo:(this.currentObservers=null,a.push(n),new Te(function(){i.currentObservers=null,an(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},e.prototype.asObservable=function(){var n=new mo;return n.source=this,n},e.create=function(n,i){return new yo(n,i)},e}(mo),yo=function(t){xt(e,t);function e(n,i){var r=t.call(this)||this;return r.destination=n,r.source=i,r}return e.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},e.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},e.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},e.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:fo},e}(yd),vd={now:function(){return Date.now()},delegate:void 0},bd=function(t){xt(e,t);function e(n,i){return t.call(this)||this}return e.prototype.schedule=function(n,i){return this},e}(Te),Si={setInterval:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Si.delegate;return r?.setInterval?r.setInterval.apply(r,ke([t,e],Se(n))):setInterval.apply(void 0,ke([t,e],Se(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},xd=function(t){xt(e,t);function e(n,i){var r=t.call(this,n,i)||this;return r.scheduler=n,r.work=i,r.pending=!1,r}return e.prototype.schedule=function(n,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=n;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,i),this},e.prototype.requestAsyncId=function(n,i,r){return r===void 0&&(r=0),Si.setInterval(n.flush.bind(n,this),r)},e.prototype.recycleAsyncId=function(n,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&Si.clearInterval(i)},e.prototype.execute=function(n,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,i){var r=!1,s;try{this.work(n)}catch(o){r=!0,s=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,i=n.id,r=n.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,an(s,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(bd),vo=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,i){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(i,n)},t.now=vd.now,t}(),Ed=function(t){xt(e,t);function e(n,i){i===void 0&&(i=vo.now);var r=t.call(this,n,i)||this;return r.actions=[],r._active=!1,r}return e.prototype.flush=function(n){var i=this.actions;if(this._active){i.push(n);return}var r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=i.shift());if(this._active=!1,r){for(;n=i.shift();)n.unsubscribe();throw r}},e}(vo);new Ed(xd);function Sd(t){switch(t.responseType){case"json":{if("response"in t)return t.response;var e=t;return JSON.parse(e.responseText)}case"document":return t.responseXML;case"text":default:{if("response"in t)return t.response;var e=t;return e.responseText}}}var bo=yi(function(t){return function(e,n,i){this.message=e,this.name="AjaxError",this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType;var r;try{r=Sd(n)}catch{r=n.responseText}this.response=r}});(function(){function t(e,n){return bo.call(this,"ajax timeout",e,n),this.name="AjaxTimeoutError",this}return t.prototype=Object.create(bo.prototype),t})();const kd=t=>t*Math.PI/180,Td=t=>t*180/Math.PI,xo=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},Ad=function(t,e){return{x:t.x+(e.x-t.x)/2,y:t.y+(e.y-t.y)/2}},ki=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.atan2(i,n)},Ti=(t,e)=>({x:Math.cos(e)*t,y:Math.sin(e)*t}),Eo=(t,e=0,n=0)=>{if(t.vx+=t.ax??0,t.vy+=t.ay??0,t.vy+=e,n>0){const i=Math.atan2(t.vy,t.vx);let r=Math.sqrt(t.vx*t.vx+t.vy*t.vy);r>n?r-=n:r=0,t.vx=Math.cos(i)*r,t.vy=Math.sin(i)*r}t.x+=t.vx,t.y+=t.vy},Cd=(t,e,n=.05,i=1,r=0)=>{const s=e.x-t.x,o=e.y-t.y;t.vx=s*n,t.vy=o*n,t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},So=(t,e,n=.03,i=.95,r=0)=>{(zf(e)?e:[e]).forEach(o=>{const a=o.x-t.x,c=o.y-t.y,l=a*n,f=c*n;t.vx+=l,t.vy+=f}),t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},Id=(t,e,n=100,i=.03,r=.95,s=0)=>{const o=ki(t,e),a={x:e.x-Math.cos(o)*n,y:e.y-Math.sin(o)*n};So(t,a,i,r,s)};function Dd(t,e){return{vx:e.x-t.x,vy:e.y-t.y}}const Pd=function(t,e){return!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y)},ko=function(t,e){return!(e.x<t.x||e.x>t.x+t.width||e.y<t.y||e.y>t.y+t.height)},Rd=(t,e)=>{const n=e.x,i=e.y,r=t.length;let s=!1;const o=2e-10;for(let a=0,c=r-1;a<r;c=a,a++){const l=t[a].x,f=t[a].y,u=t[c].x,d=t[c].y;if(l===n&&f===i||u===n&&d===i||i===f&&i===d)return!0;if(i>=f&&i<d||i<f&&i>=d){const h=(u-l)/(d-f),_=l+h*(i-f);if(_===n||Math.abs(_-n)<o)return!0;_>n&&(s=!s)}}return s};function Et(t,e,n,i,r=!1){return{x:r?t*i+e*n:t*i-e*n,y:r?e*i-t*n:e*i+t*n}}function Md(t,e){const n=e.x-t.x,i=e.y-t.y;if(Math.sqrt(n*n+i*i)<t.radius+e.radius){const s=Math.atan2(i,n),o=Math.sin(s),a=Math.cos(s),c={x:0,y:0},l=Et(n,i,o,a,!0),f=Et(t.vx,t.vy,o,a,!0),u=Et(e.vx,e.vy,o,a,!0),d=f.x-u.x;f.x=((t.mass-e.mass)*f.x+2*e.mass*u.x)/(t.mass+e.mass),u.x=d+f.x;const h=Math.abs(f.x)+Math.abs(u.x),_=t.radius+e.radius-Math.abs(c.x-l.x);c.x+=f.x/h*_,l.x+=u.x/h*_;const p=Et(c.x,c.y,o,a,!1),g=Et(l.x,l.y,o,a,!1);e.x=t.x+g.x,e.y=t.y+g.y,t.x=t.x+p.x,t.y=t.y+p.y;const m=Et(f.x,f.y,o,a,!1),y=Et(u.x,u.y,o,a,!1);t.vx=m.x,t.vy=m.y,e.vx=y.x,e.vy=y.y}}function Ld(t,e=0,n=0,i,r,s=-1){t.x+t.radius>i?(t.x=i-t.radius,t.vx*=s):t.x-t.radius<e&&(t.x=e+t.radius,t.vx*=s),t.y+t.radius>r?(t.y=r-t.radius,t.vy*=s):t.y-t.radius<n&&(t.y=n+t.radius,t.vy*=s)}const Od=t=>/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(t),Ud=()=>Math.random()*16777215,Fd=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,zd=()=>`#${(~~(Math.random()*(1<<24))).toString(16)}`,st=function(t,e){return e===!0?typeof t=="number"?t|0:(typeof t=="string"&&t[0]==="#"&&(t=t.slice(1)),window.parseInt(t,16)):(typeof t=="number"&&(t="00000"+(t|0).toString(16),t="#"+t.substring(t.length-6)),t)},Ai=function(t,e){typeof t=="string"&&t[0]==="#"&&(t=window.parseInt(t.slice(1),16)),e=e===void 0?1:e;const n=t>>16&255,i=t>>8&255,r=t&255,s=e<0?0:e>1?1:e;return s===1?"rgb("+n+","+i+","+r+")":"rgba("+n+","+i+","+r+","+s+")"},Bd=t=>{const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);return n?"#"+((1<<24)+(parseInt(n[1])<<16)+(parseInt(n[2])<<8)+parseInt(n[3])).toString(16).slice(1):""},To=function(){const t={code:""},e=n=>{t.code=n.code.toLowerCase()};return window.addEventListener("keydown",e,!1),t},Ci=function(t){const e={x:0,y:0,isDown:!1},n=s=>{e.isDown=!0,document.addEventListener("mouseup",i,!1),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=s=>{e.isDown=!1,e.x=0,e.y=0,document.removeEventListener("mouseup",i,!1),t.style.userSelect="",t.style.webkitUserSelect=""},r=s=>{const o=Me(t,s);e.x=o.x,e.y=o.y};return t.addEventListener("mousedown",n,!1),document.addEventListener("mousemove",r,!1),e},Nd=function(t){const e={x:0,y:0,isDown:!1},n=s=>{s.preventDefault(),e.isDown=!0},i=s=>{e.isDown=!1,e.x=0,e.y=0},r=s=>{const o=s.changedTouches[0],a=Me(t,o);e.x=a.x,e.y=a.y};return t.addEventListener("touchstart",n,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1),t.addEventListener("touchmove",r,!1),e},jd=function(t){const e={x:0,y:0,isDown:!1},n=s=>{e.isDown=!0,t.setPointerCapture(s.pointerId),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=s=>{e.isDown=!1,e.x=0,e.y=0,t.style.userSelect="",t.style.webkitUserSelect=""},r=s=>{const a=Me(t,s);e.x=a.x,e.y=a.y};return t.addEventListener("pointerdown",n,!1),t.addEventListener("pointerup",i,!1),t.addEventListener("pointercancel",i,!1),t.addEventListener("pointermove",r,!1),e};class ft{m;constructor(e=[1,0,0,1,0,0]){this.m=[e[0],e[1],e[2],e[3],e[4],e[5]]}unit(){return this.m=[1,0,0,1,0,0],this}multiply(e){const n=this.m;let i;e instanceof ft?i=e.m:i=e;const r=n[0]*i[0]+n[2]*i[1],s=n[1]*i[0]+n[3]*i[1],o=n[0]*i[2]+n[2]*i[3],a=n[1]*i[2]+n[3]*i[3],c=n[0]*i[4]+n[2]*i[5]+n[4],l=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=c,n[5]=l,this}inverse(){const e=new ft(this.m),n=e.m,i=1/(n[0]*n[3]-n[1]*n[2]),r=n[3]*i,s=-n[1]*i,o=-n[2]*i,a=n[0]*i,c=i*(n[2]*n[5]-n[3]*n[4]),l=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=c,n[5]=l,e}translate(e,n){return this.multiply([1,0,0,1,e,n])}rotate(e){const n=e*Math.PI/180,i=Math.cos(n),r=Math.sin(n);return this.multiply([i,r,-r,i,0,0])}skew(e,n=0){const i=e*Math.PI/180,r=n*Math.PI/180,s=Math.tan(i),o=Math.tan(r);return this.multiply([1,o,s,1,0,0])}scale(e,n){return this.multiply([e,0,0,n,0,0])}transformPoint(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2]+this.m[4],n=i*this.m[1]+r*this.m[3]+this.m[5],[e,n]}transformVector(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2],n=i*this.m[1]+r*this.m[3],[e,n]}}class hn{x;y;z;constructor(e=[0,0,0],n=[0,0,0]){const[i,r,s]=e,[o,a,c]=n;this.x=i-o,this.y=r-a,this.z=s-c}get length(){const{x:e,y:n,z:i}=this;return Math.sqrt(e*e+n*n+i*i)}unit(){const e=this.length;return new hn([this.x/e,this.y/e,this.z/e])}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}cross(e){const n=this.x,i=this.y,r=this.z,s=e.x,o=e.y,a=e.z;return new hn([i*a-r*o,r*s-n*a,n*o-s*i])}}const Kt={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-Kt.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?Kt.Bounce.In(t*2)*.5:Kt.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}},random:function(t){return Math.random()},createStep:function(t){return function(e){return Math.floor(e*t)/t}},createNoisyEasing:function(t,e=.1){const n=1-e;return function(i){return e*Math.random()+n*t(i)}}};let Ae;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ae=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ae=self.performance.now.bind(self.performance):Date.now!==void 0?Ae=Date.now:Ae=function(){return new Date().getTime()};const Jt=Ae;class Ao{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Jt(),n=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const s=this._tweens[i[r]],o=!n;s&&s.update(e,o)===!1&&!n&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Ot={Linear:function(t,e){const n=t.length-1,i=n*e,r=Math.floor(i),s=Ot.Utils.Linear;return e<0?s(t[0],t[1],i):e>1?s(t[n],t[n-1],n-i):s(t[r],t[r+1>n?n:r+1],i-r)},Bezier:function(t,e){let n=0;const i=t.length-1,r=Math.pow,s=Ot.Utils.Bernstein;for(let o=0;o<=i;o++)n+=r(1-e,i-o)*r(e,o)*t[o]*s(i,o);return n},CatmullRom:function(t,e){const n=t.length-1;let i=n*e,r=Math.floor(i);const s=Ot.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(r=Math.floor(i=n*(1+e))),s(t[(r-1+n)%n],t[r],t[(r+1)%n],t[(r+2)%n],i-r)):e<0?t[0]-(s(t[0],t[0],t[1],t[1],-i)-t[0]):e>1?t[n]-(s(t[n],t[n],t[n-1],t[n-1],i-n)-t[n]):s(t[r?r-1:0],t[r],t[n<r+1?n:r+1],t[n<r+2?n:r+2],i-r)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let i=e;i>1;i--)n*=i;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Ot.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,i,r){const s=(n-t)*.5,o=(i-e)*.5,a=r*r,c=r*a;return(2*e-2*n+s+o)*c+(-3*e+3*n-2*s-o)*a+s*r+e}}};class Ce{static _nextId=0;static nextId(){return Ce._nextId++}}const K=new Ao;class Hd{constructor(e,n=K){this._object=e,this._group=n}_id=Ce.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Kt.Linear.None;_interpolationFunction=Ot.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=Jt()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,n,i,r){for(const s in i){const o=e[s],a=Array.isArray(o),c=a?"array":typeof o,l=!a&&Array.isArray(i[s]);if(!(c==="undefined"||c==="function")){if(l){let f=i[s];if(f.length===0)continue;f=f.map(this._handleRelativeValue.bind(this,o)),i[s]=[o].concat(f)}if((c==="object"||a)&&o&&!l){n[s]=a?[]:{};for(const f in o)n[s][f]=o[f];r[s]=a?[]:{},this._setupProperties(o,n[s],i[s],r[s])}else typeof n[s]>"u"&&(n[s]=o),a||(n[s]*=1),l?r[s]=i[s].slice().reverse():r[s]=n[s]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Jt()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Jt()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=K){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=Kt.Linear.None){return this._easingFunction=e,this}interpolation(e=Ot.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Jt(),n=!0){if(this._isPaused)return!0;let i,r;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>s)return!1;n&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(e-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,n,i,r){for(const s in i){if(n[s]===void 0)continue;const o=n[s]||0;let a=i[s];const c=Array.isArray(e[s]),l=Array.isArray(a);!c&&l?e[s]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(e[s],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[s]=o+(a-o)*r))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=this._valuesStartRepeat[e],i=this._valuesEnd[e];typeof i=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(i):this._valuesStartRepeat[e]=i,this._valuesEnd[e]=n}}const qd=Ce.nextId,Zd=K.getAll.bind(K),Gd=K.removeAll.bind(K),Xd=K.add.bind(K),$d=K.remove.bind(K),Vd=K.update.bind(K),Yd={Easing:Kt,Group:Ao,Interpolation:Ot,now:Jt,Sequence:Ce,nextId:qd,Tween:Hd,getAll:Zd,removeAll:Gd,add:Xd,remove:$d,update:Vd};function Co(t){const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function Wd(t,e){const n=Co(t),{x:i,y:r}=n.getPointAtLength(e);return[i,r]}function Kd(t,e){return Co(t).getTotalLength(e)}let J=null;function Jd({d:t},e,n){J||(J=document.createElement("canvas").getContext("2d"));const i=new Path2D(t);return J.isPointInPath(i,e,n)}function Io({d:t},e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(J||(J=document.createElement("canvas").getContext("2d")),J.isPointInStroke){J.save(),J.lineWidth=i,J.lineCap=r,J.lineJoin=s;const o=new Path2D(t),a=J.isPointInStroke(o,e,n);return J.restore(),a}}var Ii={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Qd=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function t0(t){var e=[];return t.replace(Qd,function(n,i,r){var s=i.toLowerCase();for(r=n0(r),s=="m"&&r.length>2&&(e.push([i].concat(r.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(r.length==Ii[s])return r.unshift(i),e.push(r);if(r.length<Ii[s])throw new Error("malformed path data");e.push([i].concat(r.splice(0,Ii[s])))}}),e}var e0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function n0(t){var e=t.match(e0);return e?e.map(Number):[]}function i0(t){var e=0,n=0,i=0,r=0;return t.map(function(s){s=s.slice();var o=s[0],a=o.toUpperCase();if(o!=a)switch(s[0]=a,o){case"a":s[6]+=i,s[7]+=r;break;case"v":s[1]+=r;break;case"h":s[1]+=i;break;default:for(var c=1;c<s.length;)s[c++]+=i,s[c++]+=r}switch(a){case"Z":i=e,r=n;break;case"H":i=s[1];break;case"V":r=s[1];break;case"M":i=e=s[1],r=n=s[2];break;default:i=s[s.length-2],r=s[s.length-1]}return s})}const Ie=Math.PI*2;function Do(t,e,n,i){const r=t*i-e*n<0?-1:1;let s=t*n+e*i;return s>1&&(s=1),s<-1&&(s=-1),r*Math.acos(s)}function r0(t,e,n,i,r,s,o,a,c,l){const f=l*(t-n)/2+c*(e-i)/2,u=-c*(t-n)/2+l*(e-i)/2,d=o*o,h=a*a,_=f*f,p=u*u;let g=d*h-d*p-h*_;g<0&&(g=0),g/=d*p+h*_,g=Math.sqrt(g)*(r===s?-1:1);const m=g*o/a*u,y=g*-a/o*f,b=l*m-c*y+(t+n)/2,v=c*m+l*y+(e+i)/2,E=(f-m)/o,x=(u-y)/a,S=(-f-m)/o,C=(-u-y)/a,T=Do(1,0,E,x);let A=Do(E,x,S,C);return s===0&&A>0&&(A-=Ie),s===1&&A<0&&(A+=Ie),[b,v,T,A]}function s0(t,e){const n=1.3333333333333333*Math.tan(e/4),i=Math.cos(t),r=Math.sin(t),s=Math.cos(t+e),o=Math.sin(t+e);return[i,r,i-r*n,r+i*n,s+o*n,o-s*n,s,o]}function o0(t,e,n,i,r,s,o,a,c){const l=Math.sin(c*Ie/360),f=Math.cos(c*Ie/360),u=f*(t-n)/2+l*(e-i)/2,d=-l*(t-n)/2+f*(e-i)/2;if(u===0&&d===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const h=u*u/(o*o)+d*d/(a*a);h>1&&(o*=Math.sqrt(h),a*=Math.sqrt(h));const _=r0(t,e,n,i,r,s,o,a,l,f),p=[];let g=_[2],m=_[3];const y=Math.max(Math.ceil(Math.abs(m)/(Ie/4)),1);m/=y;for(let b=0;b<y;b++)p.push(s0(g,m)),g+=m;return p.map(b=>{for(let v=0;v<b.length;v+=2){let E=b[v+0],x=b[v+1];E*=o,x*=a;const S=f*E-l*x,C=l*E+f*x;b[v+0]=S+_[0],b[v+1]=C+_[1]}return b})}function a0(t){for(var e,n=[],i=0,r=0,s=0,o=0,a=null,c=null,l=0,f=0,u=0,d=t.length;u<d;u++){var h=t[u],_=h[0];switch(_){case"M":s=h[1],o=h[2];break;case"A":var p=o0(l,f,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!p.length)continue;p=p.map(v=>{const[E,x,S,C,T,A,D,P]=v;return{x1:S,y1:C,x2:T,y2:A,x:D,y:P}});for(var g=0,m;g<p.length;g++)m=p[g],h=["C",m.x1,m.y1,m.x2,m.y2,m.x,m.y],g<p.length-1&&n.push(h);break;case"S":var y=l,b=f;(e=="C"||e=="S")&&(y+=y-i,b+=b-r),h=["C",y,b,h[1],h[2],h[3],h[4]];break;case"T":e=="Q"||e=="T"?(a=l*2-a,c=f*2-c):(a=l,c=f),h=Po(l,f,a,c,h[1],h[2]);break;case"Q":a=h[1],c=h[2],h=Po(l,f,h[1],h[2],h[3],h[4]);break;case"L":h=fn(l,f,h[1],h[2]);break;case"H":h=fn(l,f,h[1],f);break;case"V":h=fn(l,f,l,h[1]);break;case"Z":h=fn(l,f,s,o);break}e=_,l=h[h.length-2],f=h[h.length-1],h.length>4?(i=h[h.length-4],r=h[h.length-3]):(i=l,r=f),n.push(h)}return n}function fn(t,e,n,i){return["C",t,e,n,i,n,i]}function Po(t,e,n,i,r,s){return["C",t/3+2/3*n,e/3+2/3*i,r/3+2/3*n,s/3+2/3*i,r,s]}function l0(t){return typeof t!="string"?!1:(t=t.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4)}const un=Symbol("initialPath"),ut=Symbol("path"),St=Symbol("bounds"),dn=Symbol("savedPaths"),dt=Symbol("renderProps"),Di=Symbol("beginPath");class c0{constructor(e){if(!l0(e))throw new Error("Not an SVG path!");this[un]=i0(t0(e)),this[ut]=a0(this[un]),this[St]=null,this[dn]=[],this[dt]={},this[Di]=!1}save(){return this[dn].push({path:this[ut],bounds:this[St],renderProps:Object.assign({},this[dt])}),this}restore(){if(this[dn].length){const{path:e,bounds:n,renderProps:i}=this[dn].pop();this[ut]=e,this[St]=n,this[dt]=i}return this}get bounds(){if(!this[St]){const e=this[ut];if(this[St]=[0,0,0,0],e.length){const n=[1/0,1/0,-1/0,-1/0];for(let i=0,r=e.length;i<r;i++){const s=e[i].slice(1);for(let o=0;o<s.length;o+=2)s[o+0]<n[0]&&(n[0]=s[o+0]),s[o+1]<n[1]&&(n[1]=s[o+1]),s[o+0]>n[2]&&(n[2]=s[o+0]),s[o+1]>n[3]&&(n[3]=s[o+1])}this[St]=n}}return this[St]}get size(){const e=this.bounds;return[e[2]-e[0],e[3]-e[1]]}get center(){const[e,n,i,r]=this.bounds;return[(e+i)/2,(n+r)/2]}get d(){let e=this[ut].map(n=>{const[i,...r]=n;return i+r.join()}).join("");return this.isClosed&&(e+="Z"),e}get path(){return this[ut]}get isClosed(){const e=this[un][this[un].length-1];return e&&e[0]==="Z"}isPointInPath(e,n){return Jd(this,e,n)}isPointInStroke(e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(Io)return Io(this,e,n,{lineWidth:i,lineCap:r,lineJoin:s})}getPointAtLength(e){return Wd(this.d,e)}getTotalLength(){return Kd(this.d)}transform(...e){this[St]=null;const n=new ft(e),i=this[ut];return this[ut]=i.map(r=>{const[s,...o]=r,a=[s];for(let c=0;c<o.length;c+=2){const l=o[c],f=o[c+1],[u,d]=n.transformPoint(l,f);a.push(u,d)}return a}),this}translate(e,n){const i=new ft().translate(e,n);return this.transform(...i.m)}rotate(e){const n=new ft().rotate(e);return this.transform(...n.m)}scale(e,n){n==null&&(n=e);const i=new ft().scale(e,n);return this.transform(...i.m)}skew(e,n){const i=new ft().skew(e,n);return this.transform(...i.m)}trim(){const[e,n]=this.bounds;return this.translate(-e,-n),this}beginPath(){return this[Di]=!0,this}toCanvas(e){const n=this[ut],i=this[dt];return n.length&&(this[Di]&&e.beginPath(),n.forEach(r=>{const[s,...o]=r;s==="M"?e.moveTo(...o):e.bezierCurveTo(...o)}),this.isClosed&&e.closePath()),Object.assign(e,i),{stroke(){return e.stroke(),this},fill(){return e.fill(),this}}}strokeStyle(e){return this[dt].strokeStyle=e,this}fillStyle(e){return this[dt].fillStyle=e,this}lineWidth(e){return this[dt].lineWidth=e,this}lineCap(e){return this[dt].lineCap=e,this}lineJoin(e){return this[dt].lineJoin=e,this}}const Ro=h0("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function h0(t,e=10){const n={},i=t.split(",");for(let r=0;r<i.length;r+=2){const s="&"+i[r+1]+";",o=parseInt(i[r],e);n[s]="&#"+o+";"}return n["\\xa0"]="&#160;",n}function Z(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t=t.replace(new RegExp("{"+n[i]+"}","gi"),""+e[n[i]]);return t}function _n(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const i="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=i[Math.floor(Math.random()*i.length)];while(t[e]);return e}function f0(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function u0(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const De={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Pi{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const i=this.__ctx.__createElement("stop");if(i.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const s=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);s&&(i.setAttribute("stop-color",Z("rgb({r},{g},{b})",{r:s[1],g:s[2],b:s[3]})),i.setAttribute("stop-opacity",s[4]))}else i.setAttribute("stop-color",n);this.__root.appendChild(i)}}class Mo{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class gn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:i=500,enableMirroring:r=!1}){this.enableMirroring=r,e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=n,this.height=i),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(De);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=De[r].canvas}}__getStyleState(){const e={},n=Object.keys(De);for(let i=0,r=n.length;i<r;i++){const s=n[i];e[s]=this[s]}return e}__applyStyleState(e){const n=Object.keys(e);for(let i=0,r=n.length;i<r;i++){const s=n[i];this[s]=e[s]}}__createElement(e,n={},i=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",e),s=Object.keys(n);i&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<s.length;o++){const a=s[o];r.setAttribute(a,n[a])}return r}__applyStyleToCurrentElement(e){let n=this.__currentElement;const i=this.__currentElementsToStyle;i&&(n.setAttribute(e,""),n=i.element,i.children.forEach(s=>{s.setAttribute(e,"")}));const r=Object.keys(De);for(let s=0;s<r.length;s++){const o=De[r[s]],a=this[r[s]];if(o.apply){if(a instanceof Mo){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Pi)n.setAttribute(o.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(o.svgAttr,Z("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let f=parseFloat(l[4]);const u=this.globalAlpha;u!=null&&(f*=u),n.setAttribute(o.svgAttr+"-opacity",""+f)}else{let c=o.svgAttr;if(r[s]==="globalAlpha"&&(c=e+"-"+o.svgAttr,n.getAttribute(c)))continue;c&&n.setAttribute(c,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const r=Object.keys(Ro);for(let s=0,o=r.length;s<o;s++){const a=r[s],c=Ro[a],l=new RegExp(a,"gi");l.test(n)&&(n=n.replace(l,c))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const r=this.__createElement("g");n.appendChild(r),this.__currentElement=r}let i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=e,this.__currentElement.setAttribute("transform",i)}scale(e,n){n===void 0&&(n=e),this.__addTransform(Z("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(Z("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(Z("translate({x},{y})",{x:e,y:n}))}transform(e,n,i,r,s,o){this.__addTransform(Z("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:i,d:r,e:s,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"?e.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",e.nodeName)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Z("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,i,r,s,o){this.__currentPosition={x:s,y:o},this.__addPathCommand(Z("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:i,cp2y:r,x:s,y:o}))}quadraticCurveTo(e,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(Z("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:i,y:r}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,i,r,s){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===e&&a===n||e===i&&n===r||s===0){this.lineTo(e,n);return}const c=this.normalize([o-e,a-n]),l=this.normalize([i-e,r-n]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(e,n);return}const f=c[0]*l[0]+c[1]*l[1],u=Math.acos(Math.abs(f)),d=this.normalize([c[0]+l[0],c[1]+l[1]]),h=s/Math.sin(u/2),_=e+h*d[0],p=n+h*d[1],g=[-c[1],c[0]],m=[l[1],-l[0]],y=function(E){const x=E[0];return E[1]>=0?Math.acos(x):-Math.acos(x)},b=y(g),v=y(m);this.lineTo(_+g[0]*s,p+g[1]*s),this.arc(_,p,s,b,v)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,n,i,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+i,n),this.lineTo(e+i,n+r),this.lineTo(e,n+r),this.lineTo(e,n),this.closePath()}fillRect(e,n,i,r){const s=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,i,r){const s=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),i=this.__rootSVG.childNodes[1],r=i.childNodes;for(let s=r.length-1;s>=0;s--)r[s]&&i.removeChild(r[s]);this.__currentElement=i,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,i,r){if(e===0&&n===0&&i===this.width&&r===this.height){this.__clearCanvas();return}const s=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:n,width:i,height:r,fill:"#FFFFFF"},!0);s.appendChild(o)}createLinearGradient(e,n,i,r){const s=this.__createElement("linearGradient",{id:_n(this.__ids),x1:e+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new Pi(s,this)}createRadialGradient(e,n,i,r,s,o){const a=this.__createElement("radialGradient",{id:_n(this.__ids),cx:r+"px",cy:s+"px",r:o+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Pi(a,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),i={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(i.decoration="underline"),this.__fontHref&&(i.href=this.__fontHref),i}__wrapTextLink(e,n){if(e.href){const i=this.__createElement("a");return i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),i.appendChild(n),i}return n}__applyText(e,n,i,r){const s=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":s.family,"font-size":s.size,"font-style":s.style,"font-weight":s.weight,"text-decoration":s.decoration,x:n,y:i,"text-anchor":f0(this.textAlign),"dominant-baseline":u0(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(s,a))}fillText(e,n,i){this.__applyText(e,n,i,"fill")}strokeText(e,n,i){this.__applyText(e,n,i,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,i,r,s,o){if(r===s)return;r=r%(2*Math.PI),s=s%(2*Math.PI),r===s&&(s=(s+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+i*Math.cos(s),c=n+i*Math.sin(s),l=e+i*Math.cos(r),f=n+i*Math.sin(r),u=o?0:1;let d=0,h=s-r;h<0&&(h+=2*Math.PI),o?d=h>Math.PI?0:1:d=h>Math.PI?1:0,this.lineTo(l,f),this.__addPathCommand(Z("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:d,sweepFlag:u,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const e=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=_n(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",i),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",Z("url(#{id})",{id:i})),e.appendChild(r),this.__currentElement=r}drawImage(...e){let n=e[0],i,r,s,o,a=0,c=0,l,f,u,d,h,_,p,g;if(e.length===3)i=e[1],r=e[2],l=n.width,f=n.height,s=l,o=f;else if(e.length===5)i=e[1],r=e[2],s=e[3],o=e[4],l=n.width,f=n.height;else if(e.length===9)a=e[1],c=e[2],l=e[3],f=e[4],i=e[5],r=e[6],s=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const m=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+i+", "+r+")";if(n instanceof gn){if(u=n.getSvg().cloneNode(!0),u.childNodes&&u.childNodes.length>1){for(d=u.childNodes[0];d.childNodes.length;)g=d.childNodes[0].getAttribute("id"),this.__ids[g]=g,this.__SVGdefs.appendChild(d.childNodes[0]);if(h=u.childNodes[1],h){const b=h.getAttribute("transform");let v;b?v=b+" "+y:v=y,h.setAttribute("transform",v),m.appendChild(h)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(_=this.__createElement("image"),_.setAttribute("width",s),_.setAttribute("height",o),_.setAttribute("preserveAspectRatio","none"),(a||c||l!==n.width||f!==n.height)&&(p=this.__document.createElement("canvas"),p.width=s,p.height=o,p.getContext("2d")?.drawImage(n,a,c,l,f,0,0,s,o),n=p),_.setAttribute("transform",y),_.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),m.appendChild(_))}createPattern(e,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=_n(this.__ids);let s;return i.setAttribute("id",r),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(s=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),i.appendChild(s),this.__SVGdefs.appendChild(i)):e instanceof gn&&(i.setAttribute("width",""+e.width),i.setAttribute("height",""+e.height),i.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new Mo(i,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}const d0=gn,_0=function(t,e,n,i,r,s){t.beginPath(),t.moveTo(e,n+s),t.lineTo(e,n+r-s),t.quadraticCurveTo(e,n+r,e+s,n+r),t.lineTo(e+i-s,n+r),t.quadraticCurveTo(e+i,n+r,e+i,n+r-s),t.lineTo(e+i,n+s),t.quadraticCurveTo(e+i,n,e+i-s,n),t.lineTo(e+s,n),t.quadraticCurveTo(e,n,e,n+s),t.stroke()},g0=function(t,e,n,i){var r=e-i,s=0,o=1;t.beginPath(),t.moveTo(r,s);do{if(o>2e4)break;var a=(e+n)*Math.cos(o*Math.PI/72)-(n+i)*Math.cos((e+n)/n*(o*Math.PI/72)),c=(e+n)*Math.sin(o*Math.PI/72)-(n+i)*Math.sin((e+n)/n*(o*Math.PI/72));t.lineTo(a,c),r=a,s=c,o++}while(a!=e-i&&c!=0);t.stroke()},p0=function(t,e){t.save(),t.beginPath(),t.moveTo(e,0);for(var n=0;n<9;n++)t.rotate(Math.PI/5),n%2==0?t.lineTo(e/.525731*.200811,0):t.lineTo(e,0);t.closePath(),t.fill(),t.restore()},m0=function(t,e,n,i,r){var s=0;function o(){t.clearRect(e,n,i,r),t.setLineDash([4,2]),t.lineDashOffset=-s,t.strokeRect(e,n,i,r)}function a(){s++,s>16&&(s=0),o(),setTimeout(a,40)}a()},w0=function(t){t.beginPath(),t.arc(75,75,50,0,Math.PI*2,!0),t.moveTo(110,75),t.arc(75,75,35,0,Math.PI,!1),t.moveTo(65,65),t.arc(60,65,5,0,Math.PI*2,!0),t.moveTo(95,65),t.arc(90,65,5,0,Math.PI*2,!0),t.stroke()};class y0{constructor(e=0,n=0,i="#ffff00",r=0){this.x=e,this.y=n,this.color=i,this.rotation=r}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=2,e.fillStyle=this.color,e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath(),e.fill(),e.stroke(),e.restore()}}class v0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.radius=e,this.vx=0,this.vy=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}getBounds(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}}class b0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.radius=e,this.vx=0,this.vy=0,this.vz=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1,this.visible=!0}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class x0{constructor(e=50,n=50,i="#ff0000"){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(i),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.rect(0,0,this.width,this.height),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class E0{constructor(e,n,i,r){this.x=e===void 0?-100:e,this.y=n===void 0?-100:n,this.z=i===void 0?-100:i,this.brightness=r===void 0?1:r}setBrightness(e){this.brightness=Math.min(Math.max(e,0),1)}}class S0{constructor(e,n,i,r){this.x=0,this.y=0,this.x1=e===void 0?0:e,this.y1=n===void 0?0:n,this.x2=i===void 0?0:i,this.y2=r===void 0?0:r,this.rotation=0,this.scaleX=1,this.scaleY=1,this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.beginPath(),e.moveTo(this.x1,this.y1),e.lineTo(this.x2,this.y2),e.closePath(),e.stroke(),e.restore()}getBounds(){if(this.rotation===0){var e=Math.min(this.x1,this.x2),n=Math.min(this.y1,this.y2),i=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:this.x+e,y:this.y+n,width:i-e,height:r-n}}else{var s=Math.sin(this.rotation),o=Math.cos(this.rotation),a=o*this.x1-s*this.y1,c=o*this.x2-s*this.y2,l=o*this.y1+s*this.x1,f=o*this.y2+s*this.x2;return{x:this.x+Math.min(a,c),y:this.y+Math.min(l,f),width:Math.max(a,c)-Math.min(a,c),height:Math.max(l,f)-Math.min(l,f)}}}}class k0{constructor(e,n,i){this.x=e===void 0?0:e,this.y=n===void 0?0:n,this.z=i===void 0?0:i,this.fl=250,this.vpX=0,this.vpY=0,this.cX=0,this.cY=0,this.cZ=0}setVanishingPoint(e,n){this.vpX=e,this.vpY=n}setCenter(e,n,i){this.cX=e,this.cY=n,this.cZ=i}rotateX(e){var n=Math.cos(e),i=Math.sin(e),r=this.y*n-this.z*i,s=this.z*n+this.y*i;this.y=r,this.z=s}rotateY(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.z*i,s=this.z*n+this.x*i;this.x=r,this.z=s}rotateZ(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.y*i,s=this.y*n+this.x*i;this.x=r,this.y=s}getScreenX(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*e}getScreenY(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*e}}class T0{constructor(){this.x=0,this.y=0,this.width=25,this.height=20,this.rotation=0,this.showFlame=!1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=1,e.strokeStyle="#ffffff",e.beginPath(),e.moveTo(10,0),e.lineTo(-10,10),e.lineTo(-5,0),e.lineTo(-10,-10),e.lineTo(10,0),e.closePath(),e.stroke(),this.showFlame&&(e.beginPath(),e.moveTo(-7.5,-5),e.lineTo(-15,0),e.lineTo(-7.5,5),e.closePath(),e.stroke()),e.restore()}}class A0{constructor(e,n,i){this.min=e===void 0?0:e,this.max=n===void 0?100:n,this.value=i===void 0?100:i,this.onchange=null,this.x=0,this.y=0,this.width=16,this.height=100,this.backColor="#cccccc",this.backBorderColor="#999999",this.backWidth=4,this.backX=this.width/2-this.backWidth/2,this.handleColor="#eeeeee",this.handleBorderColor="#cccccc",this.handleHeight=6,this.handleY=0,this.updatePosition()}draw(e){e.save(),e.translate(this.x,this.y),e.fillStyle=this.backColor,e.beginPath(),e.fillRect(this.backX,0,this.backWidth,this.height),e.closePath(),e.strokeStyle=this.handleBorderColor,e.fillStyle=this.handleColor,e.beginPath(),e.rect(0,this.handleY,this.width,this.handleHeight),e.closePath(),e.fill(),e.stroke(),e.restore()}updateValue(){var e=this.value,n=this.height-this.handleHeight,i=this.max-this.min;this.value=(n-this.handleY)/n*i+this.min,typeof this.onchange=="function"&&this.value!==e&&this.onchange()}updatePosition(){var e=this.height-this.handleHeight,n=this.max-this.min;this.handleY=e-(this.value-this.min)/n*e}captureMouse(e){var n=this,i=Ci(e),r={};a(),e.addEventListener("mousedown",function(){ko(r,i.x,i.y)&&(e.addEventListener("mouseup",s,!1),e.addEventListener("mousemove",o,!1))},!1);function s(){e.removeEventListener("mousemove",o,!1),e.removeEventListener("mouseup",s,!1),a()}function o(){var c=i.y-n.y;n.handleY=Math.min(n.height-n.handleHeight,Math.max(c,0)),n.updateValue()}function a(){r.x=n.x,r.y=n.y+n.handleY,r.width=n.width,r.height=n.handleHeight}}}class C0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=Ai(this.color,this.alpha),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}}class I0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1,this.light=null}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=this.getAdjustedColor(),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}getAdjustedColor(){var e=st(this.color,!0),n=e>>16,i=e>>8&255,r=e&255,s=this.getLightFactor();return n*=s,i*=s,r*=s,st(n<<16|i<<8|r)}getLightFactor(){var e={x:this.pointA.x-this.pointB.x,y:this.pointA.y-this.pointB.y,z:this.pointA.z-this.pointB.z},n={x:this.pointB.x-this.pointC.x,y:this.pointB.y-this.pointC.y,z:this.pointB.z-this.pointC.z},i={x:e.y*n.z-e.z*n.y,y:-(e.x*n.z-e.z*n.x),z:e.x*n.y-e.y*n.x},r=i.x*this.light.x+i.y*this.light.y+i.z*this.light.z,s=Math.sqrt(i.x*i.x+i.y*i.y+i.z*i.z),o=Math.sqrt(this.light.x*this.light.x+this.light.y*this.light.y+this.light.z*this.light.z);return Math.acos(r/(s*o))/Math.PI*this.light.brightness}}class D0{constructor(){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.scaleX=1,this.scaleY=1,this.color="#ffffff",this.alpha=1,this.lineWidth=1,this.branch=[],this.branch[0]=-140-Math.random()*20,this.branch[1]=-30-Math.random()*30,this.branch[2]=Math.random()*80-40,this.branch[3]=-100-Math.random()*40,this.branch[4]=-60-Math.random()*40,this.branch[5]=Math.random()*60-30,this.branch[6]=-110-Math.random()*20}draw(e){e.save(),e.translate(this.x,this.y),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.strokeStyle=Ai(this.color,this.alpha),e.beginPath(),e.moveTo(0,0),e.lineTo(0,this.branch[0]),e.moveTo(0,this.branch[1]),e.lineTo(this.branch[2],this.branch[3]),e.moveTo(0,this.branch[4]),e.lineTo(this.branch[5],this.branch[6]),e.stroke(),e.restore()}}class P0{constructor(e,n,i){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=i===void 0?"#ffffff":st(i),this.lineWidth=1}draw(e){var n=this.height,i=this.width+n,r=n/2;e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.moveTo(0,-r),e.lineTo(i-2*r,-r),e.quadraticCurveTo(-r+i,-r,-r+i,0),e.lineTo(-r+i,n-2*r),e.quadraticCurveTo(-r+i,-r+n,i-2*r,-r+n),e.lineTo(0,-r+n),e.quadraticCurveTo(-r,-r+n,-r,n-2*r),e.lineTo(-r,0),e.quadraticCurveTo(-r,-r,0,-r),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.beginPath(),e.arc(0,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.beginPath(),e.arc(this.width,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.restore()}getPin(){return{x:this.x+Math.cos(this.rotation)*this.width,y:this.y+Math.sin(this.rotation)*this.width}}}class R0{canvas;context;mouse;keyboard;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.mouse=Ci(this.canvas),this.keyboard=To()}getMouseRotation(e){return ki(e,this.mouse)}followMouse(e,n){const i=this.getMouseRotation(e),{x:r,y:s}=Ti(n,i);return e.x+=r,e.y+=s,e}followMouseWithAcceleration(e,n=.05){const i=this.getMouseRotation(e),{x:r,y:s}=Ti(n,i);return e.ax=r,e.ay=s,Eo(e),e}getMouseDistance(e){return xo(e,this.mouse)}clearRect(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}lineWidth(e){return this.context.lineWidth=e,this}fillStyle(e){return this.context.fillStyle=e,this}fill(){return this.context.fill(),this}strokeStyle(e){return this.context.strokeStyle=e,this}stroke(){return this.context.stroke(),this}createLinearGradient(e,n,i){const r=this.context.createLinearGradient(e.x,e.y,n.x,n.y);return Object.keys(i).forEach(s=>r.addColorStop(parseFloat(s),i[parseFloat(s)])),r}createRadialGradient(e,n,i){const r=this.context.createRadialGradient(e.x,e.y,e.radius,n.x,n.y,n.radius);return Object.keys(i).forEach(s=>r.addColorStop(parseFloat(s),i[parseFloat(s)])),r}moveTo(e){this.context.moveTo(e.x,e.y)}closePath(){this.context.closePath()}lineTo(e,n){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.lineTo(n.x,n.y),this.context.stroke(),this.context.restore()}drawMouseMoveLine(){const e=()=>{this.context.lineTo(this.mouse.x,this.mouse.y),this.stroke()};this.canvas.addEventListener("mousedown",()=>{this.context.beginPath(),this.context.moveTo(this.mouse.x,this.mouse.y),this.canvas.addEventListener("mousemove",e,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",e,!1)},!1)}drawMouseMoveBrushLine({brush_size:e,brush_density:n,brush_color:i}={brush_size:25,brush_density:50,brush_color:"#000000"}){const r=this.getImageData(),s=r.data,o=st(i,!0),a=()=>{for(let c=0;c<n;c++){const l=Math.random()*Math.PI*2,f=Math.random()*e,u=this.mouse.x+Math.cos(l)*f|0,d=this.mouse.y+Math.sin(l)*f|0,h=(u+d*r.width)*4;s[h]=o>>16&255,s[h+1]=o>>8&255,s[h+2]=o&255,s[h+3]=255}this.putImageData(r)};this.canvas.addEventListener("mousedown",()=>{this.canvas.addEventListener("mousemove",a,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",a,!1)},!1)}quadraticCurveTo(e,n,i){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.quadraticCurveTo(n.x,n.y,i.x,i.y),this.context.stroke(),this.context.restore()}drawQuadraticCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);for(let i=1;i<n;i+=2)this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y);this.context.stroke()}quadraticThroughCurveTo(e,n,i){n.x=n.x*2-(e.x+i.x)/2,n.y=n.y*2-(e.y+i.y)/2,this.quadraticCurveTo(e,n,i)}drawQuadraticThroughCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);let i=1;for(;i<n-2;i++)this.context.quadraticCurveTo(e[i].x,e[i].y,(e[i].x+e[i+1].x)/2,(e[i].y+e[i+1].y)/2);this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y),this.context.stroke()}drawQuadraticThroughCurveLineBetter(e){const n=e.length;if(n<3)return new Error("points length must >= 3");const i=(e[0].x+e[n-1].x)/2,r=(e[0].y+e[n-1].y)/2;this.context.beginPath(),this.context.moveTo(i,r);let s=0;for(;s<n-1;s++){const o=(e[s].x+e[s+1].x)/2,a=(e[s].y+e[s+1].y)/2;this.context.quadraticCurveTo(e[s].x,e[s].y,o,a)}this.context.quadraticCurveTo(e[s].x,e[s].y,r,r),this.context.stroke()}fillRect(e){this.context.save(),this.context.fillRect(e.x,e.y,e.width,e.height),this.context.stroke(),this.context.restore()}drawImage(e,n=0,i=0){this.context.drawImage(e,n,i)}getImageData(e={x:0,y:0,width:this.canvas.width,height:this.canvas.height},n){return this.context.getImageData(e.x,e.y,e.width,e.height,n)}putImageData(e,n=0,i=0){return this.context.putImageData(e,n,i)}drawShape(e){e.draw(this.context)}}class Ri{static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(i=>{Ri.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}function Lo(t,e){return!t||t.parentElement===null?e:Lo(t.parentElement,e.concat([t]))}const Mi=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},M0=function(t){return Mi(t,"overflow")+Mi(t,"overflow-y")+Mi(t,"overflow-x")},L0=function(t){return/(auto|scroll)/.test(M0(t))};function O0(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return;const e=Lo(t.parentElement,[]);for(let n=0;n<e.length;n+=1)if(L0(e[n]))return e[n];return document.scrollingElement||document.documentElement}w.Arrow=y0,w.Ball=v0,w.Ball3d=b0,w.BaseError=gt,w.Box=x0,w.C2S=d0,w.CanvasPath=R0,w.DOMKeyboardKeyCode=Tt,w.Dep=Es,w.EnvironmentError=Oi,w.FileSelectCancelError=pn,w.IllegalFileError=Ui,w.Light=E0,w.Line=S0,w.Matrix=ft,w.Point3d=k0,w.RGBToHex=Bd,w.Segment=P0,w.Ship=T0,w.Slider=A0,w.SvgPath=c0,w.TWEEN=Yd,w.Tree=D0,w.Triangle=C0,w.TriangleLight=I0,w.Vector=hn,w.VideoUtil=Ri,w.WebSocket=te,w.addEventListener=za,w.addWatermark=Ef,w.angle2radian=kd,w.animateCanvas=Ga,w.animateInWeb=Vi,w.blobToLinkExport=$h,w.blobToRawImage=Xh,w.captureKeyboard=To,w.captureMouse=Ci,w.capturePointer=jd,w.captureTouch=Nd,w.changeBrightness=bf,w.changeDiaphaneity=xf,w.changeSize=vf,w.checkAnimatedPointCollision=Md,w.checkAnimatedPointWalls=Ld,w.clearCookies=Go,w.clickEvent=qa,w.colorToRGB=Ai,w.compileTemplate=Fa,w.compression=kf,w.copyToClipboard=Sa,w.createXMLHttpRequest=Af,w.drawSpirograph=g0,w.drawStar=p0,w.dynamicStrokeLine=m0,w.fetchUseFetch=Df,w.fetchUseXMLHttpRequest=If,w.fileOrBlobToDataURL=Kn,w.flipSideToSide=Wh,w.flipUpsideDown=Kh,w.getBrowserClient=Qo,w.getBrowserClientVersion=ta,w.getBrowserLanguage=na,w.getCanvasImageData=Wn,w.getCanvasImageDataByBitmap=Hh,w.getCanvasImageDataByVideo=jh,w.getCookie=qo,w.getCookieObject=Zo,w.getDocumentElement=Bt,w.getElementLeftInPage=Ni,w.getElementPositionInPage=Bi,w.getElementPositionInPage2=Vo,w.getElementPositionInViewport=Yo,w.getElementTopInPage=ji,w.getFileExtension=Fi,w.getFileType=Oo,w.getFilesImageInfo=Nh,w.getFixedWidthText=Oa,w.getFormElementData=Cf,w.getImageDataByAIData=Tf,w.getImageMainColor=Yh,w.getImageType=ws,w.getInternetExplorerVersion=Gi,w.getMouseButton=Za,w.getMouseOrTouchPositionInElement=Me,w.getMouseOrTouchPositionInPage=Hi,w.getMouseOrTouchPositionInViewport=Ko,w.getOperatingSystem=ee,w.getOperatingSystemVersion=Jo,w.getPageClient=wn,w.getPageScroll=mn,w.getPageSize=Xo,w.getPageVerticalScrollPercent=Wo,w.getRawImageInfo=Yn,w.getScrollParent=O0,w.getSelectedText=ka,w.getTarget=Ha,w.getTextWidth=La,w.getTimeZone=ia,w.getURL=$i,w.getUrlParams=ya,w.getUrlParams2=va,w.getUserGeolocationPromise=ea,w.getViewportSize=Re,w.handleDragAndDropFiles=Fo,w.handleHashChange=xa,w.handleHistoryChange=Ea,w.handleInputFiles=Uo,w.handleURLChange=ba,w.hasDocument=ha,w.hasHistory=fa,w.hasProcess=ua,w.hasWindow=Xi,w.htmlElementToBlob=Vh,w.htmlIncodeOrDecode=Ua,w.ifWebFileHasChanged=Pf,w.imageDataToBitmap=qh,w.imageDataToBlob=Gh,w.imageDataToDataURL=Zh,w.isAndroid=Zi,w.isAppleDevice=ra,w.isBrowser=la,w.isBrowserSupportFileAPI=da,w.isDarkMode=oa,w.isElementFocus=Ta,w.isElementInViewport=$o,w.isHexColor=Od,w.isIE=aa,w.isIOS=qi,w.isMobile=sa,w.isNode=ca,w.isPolygonContainPoint=Rd,w.isRectContainPoint=ko,w.isRectIntersectRect=Pd,w.isTabInView=Ca,w.isURL=wa,w.isURLRelative=ma,w.jpgToPng=pf,w.lazyloadImages=Ra,w.leftRotate=Jh,w.loadScript=Pa,w.localstorage=Qn,w.marginSharpen=gf,w.microTask=jo,w.mosaic=Sf,w.navigateBack=Ia,w.navigateBack2=Da,w.newPointDependOnLengthAndRotation=Ti,w.nextFramePoint=Eo,w.nextFramePointEaseToTarget=Cd,w.nextFramePointSpringConnect=Id,w.nextFramePointSpringToTarget=So,w.onDocumentReady=No,w.parseColor=st,w.patchDOM=zi,w.pngToJpg=mf,w.pointDistance=xo,w.pointMiddle=Ad,w.pointRotationRadian=ki,w.preventDefault=ja,w.radian2angle=Td,w.radiusClip=yf,w.randomColorHex=Fd,w.randomColorHex2=zd,w.randomColorNumber=Ud,w.reactiveVue2=Of,w.reactiveVue3=Uf,w.readeFile=Bo,w.rectClip=wf,w.removeEventListener=Ba,w.rightRotate=Qh,w.rotate=Et,w.roundedRect=_0,w.scrollTo=Mf,w.selectFile=zo,w.setCookie=Ho,w.setRem=_a,w.setScrollRestoration=$e,w.setTheme=Rf,w.sharpen=_f,w.siblings=Aa,w.smileFace=w0,w.stopPropagation=Na,w.stringToBlob=ys,w.toBlackAndWhite=nf,w.toBlue=af,w.toBlueAndGreen=hf,w.toBlueAndGrey=df,w.toGreen=of,w.toGreenAndGrey=uf,w.toGrey=tf,w.toGrey2=ef,w.toOpposite=rf,w.toRed=sf,w.toRedAndBlue=cf,w.toRedAndGreen=lf,w.toRedAndGrey=ff,w.trackVelocity=Dd,w.urlsafe_base64decode=pa,w.urlsafe_base64encode=ga,w.waitForStyleSheetsLoaded=Ma,w.watchEffect=Lf,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
17
+ })`}function Ac(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Cc(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function Ic(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Dc(t){t.preventDefault?t.preventDefault:t.returnValue=!1}function Pc(t){return t.target||t.srcElement}const Mc=typeof document<"u"&&document.ontouchstart?"touchstart":"click";function Rc(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout(function(){e(n+i)},i);return t=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Vr=t=>{function e(n){const i=window.requestAnimationFrame(e);t(n,i)}window.requestAnimationFrame(e)},Oc=(t,e)=>{const i=document.getElementById(t).getContext("2d");Vr((r,o)=>{e(i,r,o)})};function Lc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yr={exports:{}};(function(t){var e={};t.exports=e,e.parse=function(n,i){for(var r=e.bin.readUshort,o=e.bin.readUint,l=0,s={},a=new Uint8Array(n),c=a.length-4;o(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var f=r(a,l);l+=2,r(a,l),l+=2;var u=o(a,l);l+=4;var d=o(a,l);l+=4,l=d;for(var h=0;h<f;h++){o(a,l),l+=4,l+=4,l+=4,l+=4,o(a,l),l+=4;var u=o(a,l);l+=4;var _=o(a,l);l+=4;var g=r(a,l),p=r(a,l+2),m=r(a,l+4);l+=6,l+=8;var y=o(a,l);l+=4,l+=g+p+m,e._readLocal(a,y,s,u,_,i)}return s},e._readLocal=function(n,i,r,o,s,a){var c=e.bin.readUshort,l=e.bin.readUint;l(n,i),i+=4,c(n,i),i+=2,c(n,i),i+=2;var f=c(n,i);i+=2,l(n,i),i+=4,l(n,i),i+=4,i+=8;var u=c(n,i);i+=2;var d=c(n,i);i+=2;var h=e.bin.readUTF8(n,i,u);if(i+=u,i+=d,a){r[h]={size:s,csize:o};return}var _=new Uint8Array(n.buffer,i);if(f==0)r[h]=new Uint8Array(_.buffer.slice(i,i+o));else if(f==8){var g=new Uint8Array(s);e.inflateRaw(_,g),r[h]=g}else throw"unknown compression method: "+f},e.inflateRaw=function(n,i){return e.F.inflate(n,i)},e.inflate=function(n,i){return n[0],n[1],e.inflateRaw(new Uint8Array(n.buffer,n.byteOffset+2,n.length-6),i)},e.deflate=function(n,i){i==null&&(i={level:6});var r=0,o=new Uint8Array(50+Math.floor(n.length*1.1));o[r]=120,o[r+1]=156,r+=2,r=e.F.deflateRaw(n,o,r,i.level);var s=e.adler(n,0,n.length);return o[r+0]=s>>>24&255,o[r+1]=s>>>16&255,o[r+2]=s>>>8&255,o[r+3]=s>>>0&255,new Uint8Array(o.buffer,0,r+4)},e.deflateRaw=function(n,i){i==null&&(i={level:6});var r=new Uint8Array(50+Math.floor(n.length*1.1)),o=e.F.deflateRaw(n,r,o,i.level);return new Uint8Array(r.buffer,0,o)},e.encode=function(n,i){i==null&&(i=!1);var r=0,o=e.bin.writeUint,s=e.bin.writeUshort,a={};for(var c in n){var l=!e._noNeed(c)&&!i,f=n[c],u=e.crc.crc(f,0,f.length);a[c]={cpr:l,usize:f.length,crc:u,file:l?e.deflateRaw(f):f}}for(var c in a)r+=a[c].file.length+30+46+2*e.bin.sizeUTF8(c);r+=22;var d=new Uint8Array(r),h=0,_=[];for(var c in a){var g=a[c];_.push(h),h=e._writeHeader(d,h,c,g,0)}var p=0,m=h;for(var c in a){var g=a[c];_.push(h),h=e._writeHeader(d,h,c,g,1,_[p++])}var y=h-m;return o(d,h,101010256),h+=4,h+=4,s(d,h,p),h+=2,s(d,h,p),h+=2,o(d,h,y),h+=4,o(d,h,m),h+=4,h+=2,d.buffer},e._noNeed=function(n){var i=n.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},e._writeHeader=function(n,i,r,o,s,a){var c=e.bin.writeUint,l=e.bin.writeUshort,f=o.file;c(n,i,s==0?67324752:33639248),i+=4,s==1&&(i+=2),l(n,i,20),i+=2,l(n,i,0),i+=2,l(n,i,o.cpr?8:0),i+=2,c(n,i,0),i+=4,c(n,i,o.crc),i+=4,c(n,i,f.length),i+=4,c(n,i,o.usize),i+=4,l(n,i,e.bin.sizeUTF8(r)),i+=2,l(n,i,0),i+=2,s==1&&(i+=2,i+=2,i+=6,c(n,i,a),i+=4);var u=e.bin.writeUTF8(n,i,r);return i+=u,s==0&&(n.set(f,i),i+=f.length),i},e.crc={table:function(){for(var n=new Uint32Array(256),i=0;i<256;i++){for(var r=i,o=0;o<8;o++)r&1?r=3988292384^r>>>1:r=r>>>1;n[i]=r}return n}(),update:function(n,i,r,o){for(var s=0;s<o;s++)n=e.crc.table[(n^i[r+s])&255]^n>>>8;return n},crc:function(n,i,r){return e.crc.update(4294967295,n,i,r)^4294967295}},e.adler=function(n,i,r){for(var o=1,s=0,a=i,c=i+r;a<c;){for(var l=Math.min(a+5552,c);a<l;)o+=n[a++],s+=o;o=o%65521,s=s%65521}return s<<16|o},e.bin={readUshort:function(n,i){return n[i]|n[i+1]<<8},writeUshort:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255},readUint:function(n,i){return n[i+3]*(256*256*256)+(n[i+2]<<16|n[i+1]<<8|n[i])},writeUint:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255,n[i+2]=r>>16&255,n[i+3]=r>>24&255},readASCII:function(n,i,r){for(var o="",s=0;s<r;s++)o+=String.fromCharCode(n[i+s]);return o},writeASCII:function(n,i,r){for(var o=0;o<r.length;o++)n[i+o]=r.charCodeAt(o)},pad:function(n){return n.length<2?"0"+n:n},readUTF8:function(n,i,r){for(var o="",s,a=0;a<r;a++)o+="%"+e.bin.pad(n[i+a].toString(16));try{s=decodeURIComponent(o)}catch{return e.bin.readASCII(n,i,r)}return s},writeUTF8:function(n,i,r){for(var o=r.length,s=0,a=0;a<o;a++){var c=r.charCodeAt(a);if(!(c&4294967295-128+1))n[i+s]=c,s++;else if(!(c&4294967295-2048+1))n[i+s]=192|c>>6,n[i+s+1]=128|c>>0&63,s+=2;else if(!(c&4294967295-65536+1))n[i+s]=224|c>>12,n[i+s+1]=128|c>>6&63,n[i+s+2]=128|c>>0&63,s+=3;else if(!(c&4294967295-(1<<21)+1))n[i+s]=240|c>>18,n[i+s+1]=128|c>>12&63,n[i+s+2]=128|c>>6&63,n[i+s+3]=128|c>>0&63,s+=4;else throw"e"}return s},sizeUTF8:function(n){for(var i=n.length,r=0,o=0;o<i;o++){var s=n.charCodeAt(o);if(!(s&4294967295-128+1))r++;else if(!(s&4294967295-2048+1))r+=2;else if(!(s&4294967295-65536+1))r+=3;else if(!(s&4294967295-(1<<21)+1))r+=4;else throw"e"}return r}},e.F={},e.F.deflateRaw=function(n,i,r,o){var s=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=s[o],c=e.F.U,l=e.F._goodIndex;e.F._hash;var f=e.F._putsE,u=0,d=r<<3,h=0,_=n.length;if(o==0){for(;u<_;){var g=Math.min(65535,_-u);f(i,d,u+g==_?1:0),d=e.F._copyExact(n,u,g,i,d+8),u+=g}return d>>>3}var p=c.lits,m=c.strt,y=c.prev,b=0,v=0,E=0,x=0,S=0,C=0;for(_>2&&(C=e.F._hash(n,0),m[C]=0),u=0;u<_;u++){if(S=C,u+1<_-2){C=e.F._hash(n,u+1);var k=u+1&32767;y[k]=m[C],m[C]=k}if(h<=u){(b>14e3||v>26697)&&_-u>100&&(h<u&&(p[b]=u-h,b+=2,h=u),d=e.F._writeBlock(u==_-1||h==_?1:0,p,b,x,n,E,u-E,i,d),b=v=x=0,E=u);var A=0;u<_-2&&(A=e.F._bestMatch(n,u,y,S,Math.min(a[2],_-u),a[3]));var g=A>>>16,D=A&65535;if(A!=0){var g=A>>>16,D=A&65535,P=l(g,c.of0);c.lhst[257+P]++;var U=l(D,c.df0);c.dhst[U]++,x+=c.exb[P]+c.dxb[U],p[b]=g<<23|u-h,p[b+1]=D<<16|P<<8|U,b+=2,h=u+g}else c.lhst[n[u]]++;v++}}for((E!=u||n.length==0)&&(h<u&&(p[b]=u-h,b+=2,h=u),d=e.F._writeBlock(1,p,b,x,n,E,u-E,i,d),b=0,v=0,b=v=x=0,E=u);d&7;)d++;return d>>>3},e.F._bestMatch=function(n,i,r,o,s,a){var c=i&32767,l=r[c],f=c-l+32768&32767;if(l==c||o!=e.F._hash(n,i-f))return 0;for(var u=0,d=0,h=Math.min(32767,i);f<=h&&--a!=0&&l!=c;){if(u==0||n[i+u]==n[i+u-f]){var _=e.F._howLong(n,i,f);if(_>u){if(u=_,d=f,u>=s)break;f+2<_&&(_=f+2);for(var g=0,p=0;p<_-2;p++){var m=i-f+p+32768&32767,y=r[m],b=m-y+32768&32767;b>g&&(g=b,l=m)}}}c=l,l=r[c],f+=c-l+32768&32767}return u<<16|d},e.F._howLong=function(n,i,r){if(n[i]!=n[i-r]||n[i+1]!=n[i+1-r]||n[i+2]!=n[i+2-r])return 0;var o=i,s=Math.min(n.length,i+258);for(i+=3;i<s&&n[i]==n[i-r];)i++;return i-o},e.F._hash=function(n,i){return(n[i]<<8|n[i+1])+(n[i+2]<<4)&65535},e.saved=0,e.F._writeBlock=function(n,i,r,o,s,a,c,l,f){var u=e.F.U,d=e.F._putsF,h=e.F._putsE,_,g,p,m,y,b,v,E,x;u.lhst[256]++,_=e.F.getTrees(),g=_[0],p=_[1],m=_[2],y=_[3],b=_[4],v=_[5],E=_[6],x=_[7];var S=(f+3&7?8-(f+3&7):0)+32+(c<<3),C=o+e.F.contSize(u.fltree,u.lhst)+e.F.contSize(u.fdtree,u.dhst),k=o+e.F.contSize(u.ltree,u.lhst)+e.F.contSize(u.dtree,u.dhst);k+=14+3*v+e.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var A=0;A<286;A++)u.lhst[A]=0;for(var A=0;A<30;A++)u.dhst[A]=0;for(var A=0;A<19;A++)u.ihst[A]=0;var D=S<C&&S<k?0:C<k?1:2;if(d(l,f,n),d(l,f+1,D),f+=3,D==0){for(;f&7;)f++;f=e.F._copyExact(s,a,c,l,f)}else{var P,U;if(D==1&&(P=u.fltree,U=u.fdtree),D==2){e.F.makeCodes(u.ltree,g),e.F.revCodes(u.ltree,g),e.F.makeCodes(u.dtree,p),e.F.revCodes(u.dtree,p),e.F.makeCodes(u.itree,m),e.F.revCodes(u.itree,m),P=u.ltree,U=u.dtree,h(l,f,y-257),f+=5,h(l,f,b-1),f+=5,h(l,f,v-4),f+=4;for(var z=0;z<v;z++)h(l,f+z*3,u.itree[(u.ordr[z]<<1)+1]);f+=3*v,f=e.F._codeTiny(E,u.itree,l,f),f=e.F._codeTiny(x,u.itree,l,f)}for(var M=a,Ft=0;Ft<r;Ft+=2){for(var pt=i[Ft],zt=pt>>>23,Me=M+(pt&(1<<23)-1);M<Me;)f=e.F._writeLit(s[M++],P,l,f);if(zt!=0){var te=i[Ft+1],Ui=te>>16,Bt=te>>8&255,kt=te&255;f=e.F._writeLit(257+Bt,P,l,f),h(l,f,zt-u.of0[Bt]),f+=u.exb[Bt],f=e.F._writeLit(kt,U,l,f),d(l,f,Ui-u.df0[kt]),f+=u.dxb[kt],M+=zt}}f=e.F._writeLit(256,P,l,f)}return f},e.F._copyExact=function(n,i,r,o,s){var a=s>>>3;return o[a]=r,o[a+1]=r>>>8,o[a+2]=255-o[a],o[a+3]=255-o[a+1],a+=4,o.set(new Uint8Array(n.buffer,i,r),a),s+(r+4<<3)},e.F.getTrees=function(){for(var n=e.F.U,i=e.F._hufTree(n.lhst,n.ltree,15),r=e.F._hufTree(n.dhst,n.dtree,15),o=[],s=e.F._lenCodes(n.ltree,o),a=[],c=e.F._lenCodes(n.dtree,a),l=0;l<o.length;l+=2)n.ihst[o[l]]++;for(var l=0;l<a.length;l+=2)n.ihst[a[l]]++;for(var f=e.F._hufTree(n.ihst,n.itree,7),u=19;u>4&&n.itree[(n.ordr[u-1]<<1)+1]==0;)u--;return[i,r,f,s,c,u,o,a]},e.F.getSecond=function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(n[r+1]);return i},e.F.nonZero=function(n){for(var i="",r=0;r<n.length;r+=2)n[r+1]!=0&&(i+=(r>>1)+",");return i},e.F.contSize=function(n,i){for(var r=0,o=0;o<i.length;o++)r+=i[o]*n[(o<<1)+1];return r},e.F._codeTiny=function(n,i,r,o){for(var s=0;s<n.length;s+=2){var a=n[s],c=n[s+1];o=e.F._writeLit(a,i,r,o);var l=a==16?2:a==17?3:7;a>15&&(e.F._putsE(r,o,c,l),o+=l)}return o},e.F._lenCodes=function(n,i){for(var r=n.length;r!=2&&n[r-1]==0;)r-=2;for(var o=0;o<r;o+=2){var s=n[o+1],a=o+3<r?n[o+3]:-1,c=o+5<r?n[o+5]:-1,l=o==0?-1:n[o-1];if(s==0&&a==s&&c==s){for(var f=o+5;f+2<r&&n[f+2]==s;)f+=2;var u=Math.min(f+1-o>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),o+=u*2-2}else if(s==l&&a==s&&c==s){for(var f=o+5;f+2<r&&n[f+2]==s;)f+=2;var u=Math.min(f+1-o>>>1,6);i.push(16,u-3),o+=u*2-2}else i.push(s,0)}return r>>>1},e.F._hufTree=function(n,i,r){var o=[],s=n.length,a=i.length,c=0;for(c=0;c<a;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<s;c++)n[c]!=0&&o.push({lit:c,f:n[c]});var l=o.length,f=o.slice(0);if(l==0)return 0;if(l==1){var u=o[0].lit,f=u==0?1:0;return i[(u<<1)+1]=1,i[(f<<1)+1]=1,1}o.sort(function(y,b){return y.f-b.f});var d=o[0],h=o[1],_=0,g=1,p=2;for(o[0]={lit:-1,f:d.f+h.f,l:d,r:h,d:0};g!=l-1;)_!=g&&(p==l||o[_].f<o[p].f)?d=o[_++]:d=o[p++],_!=g&&(p==l||o[_].f<o[p].f)?h=o[_++]:h=o[p++],o[g++]={lit:-1,f:d.f+h.f,l:d,r:h};var m=e.F.setDepth(o[g-1],0);for(m>r&&(e.F.restrictDepth(f,r,m),m=r),c=0;c<l;c++)i[(f[c].lit<<1)+1]=f[c].d;return m},e.F.setDepth=function(n,i){return n.lit!=-1?(n.d=i,i):Math.max(e.F.setDepth(n.l,i+1),e.F.setDepth(n.r,i+1))},e.F.restrictDepth=function(n,i,r){var o=0,s=1<<r-i,a=0;for(n.sort(function(l,f){return f.d==l.d?l.f-f.f:f.d-l.d}),o=0;o<n.length&&n[o].d>i;o++){var c=n[o].d;n[o].d=i,a+=s-(1<<r-c)}for(a=a>>>r-i;a>0;){var c=n[o].d;c<i?(n[o].d++,a-=1<<i-c-1):o++}for(;o>=0;o--)n[o].d==i&&a<0&&(n[o].d--,a++);a!=0&&console.log("debt left")},e.F._goodIndex=function(n,i){var r=0;return i[r|16]<=n&&(r|=16),i[r|8]<=n&&(r|=8),i[r|4]<=n&&(r|=4),i[r|2]<=n&&(r|=2),i[r|1]<=n&&(r|=1),r},e.F._writeLit=function(n,i,r,o){return e.F._putsF(r,o,i[n<<1]),o+i[(n<<1)+1]},e.F.inflate=function(n,i){var r=Uint8Array;if(n[0]==3&&n[1]==0)return i||new r(0);var o=e.F,s=o._bitsF,a=o._bitsE,c=o._decodeTiny,l=o.makeCodes,f=o.codes2map,u=o._get17,d=o.U,h=i==null;h&&(i=new r(n.length>>>2<<3));for(var _=0,g=0,p=0,m=0,y=0,b=0,v=0,E=0,x=0,S,C;_==0;){if(_=s(n,x,1),g=s(n,x+1,2),x+=3,g==0){x&7&&(x+=8-(x&7));var k=(x>>>3)+4,A=n[k-4]|n[k-3]<<8;h&&(i=e.F._check(i,E+A)),i.set(new r(n.buffer,n.byteOffset+k,A),E),x=k+A<<3,E+=A;continue}if(h&&(i=e.F._check(i,E+(1<<17))),g==1&&(S=d.flmap,C=d.fdmap,b=512-1,v=32-1),g==2){p=a(n,x,5)+257,m=a(n,x+5,5)+1,y=a(n,x+10,4)+4,x+=14;for(var D=0;D<38;D+=2)d.itree[D]=0,d.itree[D+1]=0;for(var P=1,D=0;D<y;D++){var U=a(n,x+D*3,3);d.itree[(d.ordr[D]<<1)+1]=U,U>P&&(P=U)}x+=3*y,l(d.itree,P),f(d.itree,P,d.imap),S=d.lmap,C=d.dmap,x=c(d.imap,(1<<P)-1,p+m,n,x,d.ttree);var z=o._copyOut(d.ttree,0,p,d.ltree);b=(1<<z)-1;var M=o._copyOut(d.ttree,p,m,d.dtree);v=(1<<M)-1,l(d.ltree,z),f(d.ltree,z,S),l(d.dtree,M),f(d.dtree,M,C)}for(;;){var Ft=S[u(n,x)&b];x+=Ft&15;var pt=Ft>>>4;if(!(pt>>>8))i[E++]=pt;else{if(pt==256)break;var zt=E+pt-254;if(pt>264){var Me=d.ldef[pt-257];zt=E+(Me>>>3)+a(n,x,Me&7),x+=Me&7}var te=C[u(n,x)&v];x+=te&15;var Ui=te>>>4,Bt=d.ddef[Ui],kt=(Bt>>>4)+s(n,x,Bt&15);for(x+=Bt&15,h&&(i=e.F._check(i,E+(1<<17)));E<zt;)i[E]=i[E++-kt],i[E]=i[E++-kt],i[E]=i[E++-kt],i[E]=i[E++-kt];E=zt}}}return i.length==E?i:i.slice(0,E)},e.F._check=function(n,i){var r=n.length;if(i<=r)return n;var o=new Uint8Array(Math.max(r<<1,i));return o.set(n,0),o},e.F._decodeTiny=function(n,i,r,o,s,a){for(var c=e.F._bitsE,l=e.F._get17,f=0;f<r;){var u=n[l(o,s)&i];s+=u&15;var d=u>>>4;if(d<=15)a[f]=d,f++;else{var h=0,_=0;d==16?(_=3+c(o,s,2),s+=2,h=a[f-1]):d==17?(_=3+c(o,s,3),s+=3):d==18&&(_=11+c(o,s,7),s+=7);for(var g=f+_;f<g;)a[f]=h,f++}}return s},e.F._copyOut=function(n,i,r,o){for(var s=0,a=0,c=o.length>>>1;a<r;){var l=n[a+i];o[a<<1]=0,o[(a<<1)+1]=l,l>s&&(s=l),a++}for(;a<c;)o[a<<1]=0,o[(a<<1)+1]=0,a++;return s},e.F.makeCodes=function(n,i){for(var r=e.F.U,o=n.length,s,a,c,l,f,u=r.bl_count,l=0;l<=i;l++)u[l]=0;for(l=1;l<o;l+=2)u[n[l]]++;var d=r.next_code;for(s=0,u[0]=0,a=1;a<=i;a++)s=s+u[a-1]<<1,d[a]=s;for(c=0;c<o;c+=2)f=n[c+1],f!=0&&(n[c]=d[f],d[f]++)},e.F.codes2map=function(n,i,r){for(var o=n.length,s=e.F.U,a=s.rev15,c=0;c<o;c+=2)if(n[c+1]!=0)for(var l=c>>1,f=n[c+1],u=l<<4|f,d=i-f,h=n[c]<<d,_=h+(1<<d);h!=_;){var g=a[h]>>>15-i;r[g]=u,h++}},e.F.revCodes=function(n,i){for(var r=e.F.U.rev15,o=15-i,s=0;s<n.length;s+=2){var a=n[s]<<i-n[s+1];n[s]=r[a]>>>o}},e.F._putsE=function(n,i,r){r=r<<(i&7);var o=i>>>3;n[o]|=r,n[o+1]|=r>>>8},e.F._putsF=function(n,i,r){r=r<<(i&7);var o=i>>>3;n[o]|=r,n[o+1]|=r>>>8,n[o+2]|=r>>>16},e.F._bitsE=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8)>>>(i&7)&(1<<r)-1},e.F._bitsF=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)&(1<<r)-1},e.F._get17=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)},e.F._get25=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16|n[(i>>>3)+3]<<24)>>>(i&7)},e.F.U=function(){var n=Uint16Array,i=Uint32Array;return{next_code:new n(16),bl_count:new n(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new n(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i(32),flmap:new n(512),fltree:[],fdmap:new n(32),fdtree:[],lmap:new n(32768),ltree:[],ttree:[],dmap:new n(32768),dtree:[],imap:new n(512),itree:[],rev15:new n(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new n(65536),prev:new n(32768)}}(),function(){for(var n=e.F.U,i=32768,r=0;r<i;r++){var o=r;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,n.rev15[r]=(o>>>16|o<<16)>>>17}function s(a,c,l){for(;c--!=0;)a.push(0,l)}for(var r=0;r<32;r++)n.ldef[r]=n.of0[r]<<3|n.exb[r],n.ddef[r]=n.df0[r]<<4|n.dxb[r];s(n.fltree,144,8),s(n.fltree,255-143,9),s(n.fltree,279-255,7),s(n.fltree,287-279,8),e.F.makeCodes(n.fltree,9),e.F.codes2map(n.fltree,9,n.flmap),e.F.revCodes(n.fltree,9),s(n.fdtree,32,5),e.F.makeCodes(n.fdtree,5),e.F.codes2map(n.fdtree,5,n.fdmap),e.F.revCodes(n.fdtree,5),s(n.itree,19,0),s(n.ltree,286,0),s(n.dtree,30,0),s(n.ttree,320,0)}()})(Yr);var Uc=Yr.exports;const Wr=Lc(Uc);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Fc=4,Kr=0,Jr=1,zc=2;function Zt(t){let e=t.length;for(;--e>=0;)t[e]=0}const Bc=0,Qr=1,Nc=2,jc=3,Hc=258,Gn=29,he=256,fe=he+1+Gn,Gt=30,Xn=19,to=2*fe+1,Ct=15,$n=16,qc=7,Vn=256,eo=16,no=17,io=18,Yn=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Ye=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Zc=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ro=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gc=512,ct=new Array((fe+2)*2);Zt(ct);const ue=new Array(Gt*2);Zt(ue);const de=new Array(Gc);Zt(de);const _e=new Array(Hc-jc+1);Zt(_e);const Wn=new Array(Gn);Zt(Wn);const We=new Array(Gt);Zt(We);function Kn(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}let oo,so,ao;function Jn(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const lo=t=>t<256?de[t]:de[256+(t>>>7)],pe=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},G=(t,e,n)=>{t.bi_valid>$n-n?(t.bi_buf|=e<<t.bi_valid&65535,pe(t,t.bi_buf),t.bi_buf=e>>$n-t.bi_valid,t.bi_valid+=n-$n):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},nt=(t,e,n)=>{G(t,n[e*2],n[e*2+1])},co=(t,e)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--e>0);return n>>>1},Xc=t=>{t.bi_valid===16?(pe(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},$c=(t,e)=>{const n=e.dyn_tree,i=e.max_code,r=e.stat_desc.static_tree,o=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let l,f,u,d,h,_,g=0;for(d=0;d<=Ct;d++)t.bl_count[d]=0;for(n[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l<to;l++)f=t.heap[l],d=n[n[f*2+1]*2+1]+1,d>c&&(d=c,g++),n[f*2+1]=d,!(f>i)&&(t.bl_count[d]++,h=0,f>=a&&(h=s[f-a]),_=n[f*2],t.opt_len+=_*(d+h),o&&(t.static_len+=_*(r[f*2+1]+h)));if(g!==0){do{for(d=c-1;t.bl_count[d]===0;)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[c]--,g-=2}while(g>0);for(d=c;d!==0;d--)for(f=t.bl_count[d];f!==0;)u=t.heap[--l],!(u>i)&&(n[u*2+1]!==d&&(t.opt_len+=(d-n[u*2+1])*n[u*2],n[u*2+1]=d),f--)}},ho=(t,e,n)=>{const i=new Array(Ct+1);let r=0,o,s;for(o=1;o<=Ct;o++)r=r+n[o-1]<<1,i[o]=r;for(s=0;s<=e;s++){let a=t[s*2+1];a!==0&&(t[s*2]=co(i[a]++,a))}},Vc=()=>{let t,e,n,i,r;const o=new Array(Ct+1);for(n=0,i=0;i<Gn-1;i++)for(Wn[i]=n,t=0;t<1<<Yn[i];t++)_e[n++]=i;for(_e[n-1]=i,r=0,i=0;i<16;i++)for(We[i]=r,t=0;t<1<<Ye[i];t++)de[r++]=i;for(r>>=7;i<Gt;i++)for(We[i]=r<<7,t=0;t<1<<Ye[i]-7;t++)de[256+r++]=i;for(e=0;e<=Ct;e++)o[e]=0;for(t=0;t<=143;)ct[t*2+1]=8,t++,o[8]++;for(;t<=255;)ct[t*2+1]=9,t++,o[9]++;for(;t<=279;)ct[t*2+1]=7,t++,o[7]++;for(;t<=287;)ct[t*2+1]=8,t++,o[8]++;for(ho(ct,fe+1,o),t=0;t<Gt;t++)ue[t*2+1]=5,ue[t*2]=co(t,5);oo=new Kn(ct,Yn,he+1,fe,Ct),so=new Kn(ue,Ye,0,Gt,Ct),ao=new Kn(new Array(0),Zc,0,Xn,qc)},fo=t=>{let e;for(e=0;e<fe;e++)t.dyn_ltree[e*2]=0;for(e=0;e<Gt;e++)t.dyn_dtree[e*2]=0;for(e=0;e<Xn;e++)t.bl_tree[e*2]=0;t.dyn_ltree[Vn*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},uo=t=>{t.bi_valid>8?pe(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},_o=(t,e,n,i)=>{const r=e*2,o=n*2;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]},Qn=(t,e,n)=>{const i=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&_o(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!_o(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i},po=(t,e,n)=>{let i,r,o=0,s,a;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+o++]&255,i+=(t.pending_buf[t.sym_buf+o++]&255)<<8,r=t.pending_buf[t.sym_buf+o++],i===0?nt(t,r,e):(s=_e[r],nt(t,s+he+1,e),a=Yn[s],a!==0&&(r-=Wn[s],G(t,r,a)),i--,s=lo(i),nt(t,s,n),a=Ye[s],a!==0&&(i-=We[s],G(t,i,a)));while(o<t.sym_next);nt(t,Vn,e)},ti=(t,e)=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,o=e.stat_desc.elems;let s,a,c=-1,l;for(t.heap_len=0,t.heap_max=to,s=0;s<o;s++)n[s*2]!==0?(t.heap[++t.heap_len]=c=s,t.depth[s]=0):n[s*2+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=c<2?++c:0,n[l*2]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=i[l*2+1]);for(e.max_code=c,s=t.heap_len>>1;s>=1;s--)Qn(t,n,s);l=o;do s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Qn(t,n,1),a=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=a,n[l*2]=n[s*2]+n[a*2],t.depth[l]=(t.depth[s]>=t.depth[a]?t.depth[s]:t.depth[a])+1,n[s*2+1]=n[a*2+1]=l,t.heap[1]=l++,Qn(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],$c(t,e),ho(n,c,t.bl_count)},go=(t,e,n)=>{let i,r=-1,o,s=e[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),e[(n+1)*2+1]=65535,i=0;i<=n;i++)o=s,s=e[(i+1)*2+1],!(++a<c&&o===s)&&(a<l?t.bl_tree[o*2]+=a:o!==0?(o!==r&&t.bl_tree[o*2]++,t.bl_tree[eo*2]++):a<=10?t.bl_tree[no*2]++:t.bl_tree[io*2]++,a=0,r=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4))},mo=(t,e,n)=>{let i,r=-1,o,s=e[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),i=0;i<=n;i++)if(o=s,s=e[(i+1)*2+1],!(++a<c&&o===s)){if(a<l)do nt(t,o,t.bl_tree);while(--a!==0);else o!==0?(o!==r&&(nt(t,o,t.bl_tree),a--),nt(t,eo,t.bl_tree),G(t,a-3,2)):a<=10?(nt(t,no,t.bl_tree),G(t,a-3,3)):(nt(t,io,t.bl_tree),G(t,a-11,7));a=0,r=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4)}},Yc=t=>{let e;for(go(t,t.dyn_ltree,t.l_desc.max_code),go(t,t.dyn_dtree,t.d_desc.max_code),ti(t,t.bl_desc),e=Xn-1;e>=3&&t.bl_tree[ro[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},Wc=(t,e,n,i)=>{let r;for(G(t,e-257,5),G(t,n-1,5),G(t,i-4,4),r=0;r<i;r++)G(t,t.bl_tree[ro[r]*2+1],3);mo(t,t.dyn_ltree,e-1),mo(t,t.dyn_dtree,n-1)},Kc=t=>{let e=4093624447,n;for(n=0;n<=31;n++,e>>>=1)if(e&1&&t.dyn_ltree[n*2]!==0)return Kr;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Jr;for(n=32;n<he;n++)if(t.dyn_ltree[n*2]!==0)return Jr;return Kr};let wo=!1;const Jc=t=>{wo||(Vc(),wo=!0),t.l_desc=new Jn(t.dyn_ltree,oo),t.d_desc=new Jn(t.dyn_dtree,so),t.bl_desc=new Jn(t.bl_tree,ao),t.bi_buf=0,t.bi_valid=0,fo(t)},yo=(t,e,n,i)=>{G(t,(Bc<<1)+(i?1:0),3),uo(t),pe(t,n),pe(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},Qc=t=>{G(t,Qr<<1,3),nt(t,Vn,ct),Xc(t)},th=(t,e,n,i)=>{let r,o,s=0;t.level>0?(t.strm.data_type===zc&&(t.strm.data_type=Kc(t)),ti(t,t.l_desc),ti(t,t.d_desc),s=Yc(t),r=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=r&&(r=o)):r=o=n+5,n+4<=r&&e!==-1?yo(t,e,n,i):t.strategy===Fc||o===r?(G(t,(Qr<<1)+(i?1:0),3),po(t,ct,ue)):(G(t,(Nc<<1)+(i?1:0),3),Wc(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),po(t,t.dyn_ltree,t.dyn_dtree)),fo(t),i&&uo(t)},eh=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,e===0?t.dyn_ltree[n*2]++:(t.matches++,e--,t.dyn_ltree[(_e[n]+he+1)*2]++,t.dyn_dtree[lo(e)*2]++),t.sym_next===t.sym_end);var nh=Jc,ih=yo,rh=th,oh=eh,sh=Qc,ah={_tr_init:nh,_tr_stored_block:ih,_tr_flush_block:rh,_tr_tally:oh,_tr_align:sh},ge=(t,e,n,i)=>{let r=t&65535|0,o=t>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do r=r+e[i++]|0,o=o+r|0;while(--s);r%=65521,o%=65521}return r|o<<16|0};const lh=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},ch=new Uint32Array(lh());var j=(t,e,n,i)=>{const r=ch,o=i+n;t^=-1;for(let s=i;s<o;s++)t=t>>>8^r[(t^e[s])&255];return t^-1},It={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Dt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:hh,_tr_stored_block:ei,_tr_flush_block:fh,_tr_tally:yt,_tr_align:uh}=ah,{Z_NO_FLUSH:vt,Z_PARTIAL_FLUSH:dh,Z_FULL_FLUSH:_h,Z_FINISH:Y,Z_BLOCK:vo,Z_OK:H,Z_STREAM_END:bo,Z_STREAM_ERROR:it,Z_DATA_ERROR:ph,Z_BUF_ERROR:ni,Z_DEFAULT_COMPRESSION:gh,Z_FILTERED:mh,Z_HUFFMAN_ONLY:Ke,Z_RLE:wh,Z_FIXED:yh,Z_DEFAULT_STRATEGY:vh,Z_UNKNOWN:bh,Z_DEFLATED:Je}=Dt,xh=9,Eh=15,Sh=8,Th=29,ii=256+1+Th,kh=30,Ah=19,Ch=2*ii+1,Ih=15,R=3,bt=258,rt=bt+R+1,Dh=32,Xt=42,ri=57,oi=69,si=73,ai=91,li=103,Pt=113,me=666,q=1,$t=2,Mt=3,Vt=4,Ph=3,Rt=(t,e)=>(t.msg=It[e],e),xo=t=>t*2-(t>4?9:0),xt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Mh=t=>{let e,n,i,r=t.w_size;e=t.hash_size,i=e;do n=t.head[--i],t.head[i]=n>=r?n-r:0;while(--e);e=r,i=e;do n=t.prev[--i],t.prev[i]=n>=r?n-r:0;while(--e)};let Et=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const X=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,e.pending===0&&(e.pending_out=0))},$=(t,e)=>{fh(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},L=(t,e)=>{t.pending_buf[t.pending++]=e},we=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},ci=(t,e,n,i)=>{let r=t.avail_in;return r>i&&(r=i),r===0?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),t.state.wrap===1?t.adler=ge(t.adler,e,r,n):t.state.wrap===2&&(t.adler=j(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},Eo=(t,e)=>{let n=t.max_chain_length,i=t.strstart,r,o,s=t.prev_length,a=t.nice_match;const c=t.strstart>t.w_size-rt?t.strstart-(t.w_size-rt):0,l=t.window,f=t.w_mask,u=t.prev,d=t.strstart+bt;let h=l[i+s-1],_=l[i+s];t.prev_length>=t.good_match&&(n>>=2),a>t.lookahead&&(a=t.lookahead);do if(r=e,!(l[r+s]!==_||l[r+s-1]!==h||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(o=bt-(d-i),i=d-bt,o>s){if(t.match_start=e,s=o,o>=a)break;h=l[i+s-1],_=l[i+s]}}while((e=u[e&f])>c&&--n!==0);return s<=t.lookahead?s:t.lookahead},Yt=t=>{const e=t.w_size;let n,i,r;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-rt)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Mh(t),i+=e),t.strm.avail_in===0)break;if(n=ci(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=R)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=Et(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[r+R-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<R)););}while(t.lookahead<rt&&t.strm.avail_in!==0)},So=(t,e)=>{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,r,o,s=0,a=t.strm.avail_in;do{if(i=65535,o=t.bi_valid+42>>3,t.strm.avail_out<o||(o=t.strm.avail_out-o,r=t.strstart-t.block_start,i>r+t.strm.avail_in&&(i=r+t.strm.avail_in),i>o&&(i=o),i<n&&(i===0&&e!==Y||e===vt||i!==r+t.strm.avail_in)))break;s=e===Y&&i===r+t.strm.avail_in?1:0,ei(t,0,0,s),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,X(t.strm),r&&(r>i&&(r=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,i-=r),i&&(ci(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(s===0);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?Vt:e!==vt&&e!==Y&&t.strm.avail_in===0&&t.strstart===t.block_start?$t:(o=t.window_size-t.strstart,t.strm.avail_in>o&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(ci(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water<t.strstart&&(t.high_water=t.strstart),o=t.bi_valid+42>>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,n=o>t.w_size?t.w_size:o,r=t.strstart-t.block_start,(r>=n||(r||e===Y)&&e!==vt&&t.strm.avail_in===0&&r<=o)&&(i=r>o?o:r,s=e===Y&&t.strm.avail_in===0&&i===r?1:0,ei(t,t.block_start,i,s),t.block_start+=i,X(t.strm)),s?Mt:q)},hi=(t,e)=>{let n,i;for(;;){if(t.lookahead<rt){if(Yt(t),t.lookahead<rt&&e===vt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=R&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+R-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-rt&&(t.match_length=Eo(t,n)),t.match_length>=R)if(i=yt(t,t.strstart-t.match_start,t.match_length-R),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=R){t.match_length--;do t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+R-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else i=yt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=t.strstart<R-1?t.strstart:R-1,e===Y?($(t,!0),t.strm.avail_out===0?Mt:Vt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:$t},Wt=(t,e)=>{let n,i,r;for(;;){if(t.lookahead<rt){if(Yt(t),t.lookahead<rt&&e===vt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=R&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+R-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=R-1,n!==0&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-rt&&(t.match_length=Eo(t,n),t.match_length<=5&&(t.strategy===mh||t.match_length===R&&t.strstart-t.match_start>4096)&&(t.match_length=R-1)),t.prev_length>=R&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-R,i=yt(t,t.strstart-1-t.prev_match,t.prev_length-R),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+R-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=R-1,t.strstart++,i&&($(t,!1),t.strm.avail_out===0))return q}else if(t.match_available){if(i=yt(t,0,t.window[t.strstart-1]),i&&$(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return q}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=yt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<R-1?t.strstart:R-1,e===Y?($(t,!0),t.strm.avail_out===0?Mt:Vt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:$t},Rh=(t,e)=>{let n,i,r,o;const s=t.window;for(;;){if(t.lookahead<=bt){if(Yt(t),t.lookahead<=bt&&e===vt)return q;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=R&&t.strstart>0&&(r=t.strstart-1,i=s[r],i===s[++r]&&i===s[++r]&&i===s[++r])){o=t.strstart+bt;do;while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<o);t.match_length=bt-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=R?(n=yt(t,1,t.match_length-R),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=yt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===Y?($(t,!0),t.strm.avail_out===0?Mt:Vt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:$t},Oh=(t,e)=>{let n;for(;;){if(t.lookahead===0&&(Yt(t),t.lookahead===0)){if(e===vt)return q;break}if(t.match_length=0,n=yt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===Y?($(t,!0),t.strm.avail_out===0?Mt:Vt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:$t};function ot(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}const ye=[new ot(0,0,0,0,So),new ot(4,4,8,4,hi),new ot(4,5,16,8,hi),new ot(4,6,32,32,hi),new ot(4,4,16,16,Wt),new ot(8,16,32,32,Wt),new ot(8,16,128,128,Wt),new ot(8,32,128,256,Wt),new ot(32,128,258,1024,Wt),new ot(32,258,258,4096,Wt)],Lh=t=>{t.window_size=2*t.w_size,xt(t.head),t.max_lazy_match=ye[t.level].max_lazy,t.good_match=ye[t.level].good_length,t.nice_match=ye[t.level].nice_length,t.max_chain_length=ye[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=R-1,t.match_available=0,t.ins_h=0};function Uh(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Je,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Ch*2),this.dyn_dtree=new Uint16Array((2*kh+1)*2),this.bl_tree=new Uint16Array((2*Ah+1)*2),xt(this.dyn_ltree),xt(this.dyn_dtree),xt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Ih+1),this.heap=new Uint16Array(2*ii+1),xt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ii+1),xt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const ve=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==Xt&&e.status!==ri&&e.status!==oi&&e.status!==si&&e.status!==ai&&e.status!==li&&e.status!==Pt&&e.status!==me?1:0},To=t=>{if(ve(t))return Rt(t,it);t.total_in=t.total_out=0,t.data_type=bh;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?ri:e.wrap?Xt:Pt,t.adler=e.wrap===2?0:1,e.last_flush=-2,hh(e),H},ko=t=>{const e=To(t);return e===H&&Lh(t.state),e},Fh=(t,e)=>ve(t)||t.state.wrap!==2?it:(t.state.gzhead=e,H),Ao=(t,e,n,i,r,o)=>{if(!t)return it;let s=1;if(e===gh&&(e=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),r<1||r>xh||n!==Je||i<8||i>15||e<0||e>9||o<0||o>yh||i===8&&s!==1)return Rt(t,it);i===8&&(i=9);const a=new Uh;return t.state=a,a.strm=t,a.status=Xt,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+R-1)/R),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=e,a.strategy=o,a.method=n,ko(t)},zh=(t,e)=>Ao(t,e,Je,Eh,Sh,vh),Bh=(t,e)=>{if(ve(t)||e>vo||e<0)return t?Rt(t,it):it;const n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===me&&e!==Y)return Rt(t,t.avail_out===0?ni:it);const i=n.last_flush;if(n.last_flush=e,n.pending!==0){if(X(t),t.avail_out===0)return n.last_flush=-1,H}else if(t.avail_in===0&&xo(e)<=xo(i)&&e!==Y)return Rt(t,ni);if(n.status===me&&t.avail_in!==0)return Rt(t,ni);if(n.status===Xt&&n.wrap===0&&(n.status=Pt),n.status===Xt){let r=Je+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=Ke||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,r|=o<<6,n.strstart!==0&&(r|=Dh),r+=31-r%31,we(n,r),n.strstart!==0&&(we(n,t.adler>>>16),we(n,t.adler&65535)),t.adler=1,n.status=Pt,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===ri){if(t.adler=0,L(n,31),L(n,139),L(n,8),n.gzhead)L(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),L(n,n.gzhead.time&255),L(n,n.gzhead.time>>8&255),L(n,n.gzhead.time>>16&255),L(n,n.gzhead.time>>24&255),L(n,n.level===9?2:n.strategy>=Ke||n.level<2?4:0),L(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(L(n,n.gzhead.extra.length&255),L(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=j(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=oi;else if(L(n,0),L(n,0),L(n,0),L(n,0),L(n,0),L(n,n.level===9?2:n.strategy>=Ke||n.level<2?4:0),L(n,Ph),n.status=Pt,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===oi){if(n.gzhead.extra){let r=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex+=a,X(t),n.pending!==0)return n.last_flush=-1,H;r=0,o-=a}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=si}if(n.status===si){if(n.gzhead.name){let r=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.name.length?o=n.gzhead.name.charCodeAt(n.gzindex++)&255:o=0,L(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=ai}if(n.status===ai){if(n.gzhead.comment){let r=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.comment.length?o=n.gzhead.comment.charCodeAt(n.gzindex++)&255:o=0,L(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r))}n.status=li}if(n.status===li){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(X(t),n.pending!==0))return n.last_flush=-1,H;L(n,t.adler&255),L(n,t.adler>>8&255),t.adler=0}if(n.status=Pt,X(t),n.pending!==0)return n.last_flush=-1,H}if(t.avail_in!==0||n.lookahead!==0||e!==vt&&n.status!==me){let r=n.level===0?So(n,e):n.strategy===Ke?Oh(n,e):n.strategy===wh?Rh(n,e):ye[n.level].func(n,e);if((r===Mt||r===Vt)&&(n.status=me),r===q||r===Mt)return t.avail_out===0&&(n.last_flush=-1),H;if(r===$t&&(e===dh?uh(n):e!==vo&&(ei(n,0,0,!1),e===_h&&(xt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),X(t),t.avail_out===0))return n.last_flush=-1,H}return e!==Y?H:n.wrap<=0?bo:(n.wrap===2?(L(n,t.adler&255),L(n,t.adler>>8&255),L(n,t.adler>>16&255),L(n,t.adler>>24&255),L(n,t.total_in&255),L(n,t.total_in>>8&255),L(n,t.total_in>>16&255),L(n,t.total_in>>24&255)):(we(n,t.adler>>>16),we(n,t.adler&65535)),X(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?H:bo)},Nh=t=>{if(ve(t))return it;const e=t.state.status;return t.state=null,e===Pt?Rt(t,ph):H},jh=(t,e)=>{let n=e.length;if(ve(t))return it;const i=t.state,r=i.wrap;if(r===2||r===1&&i.status!==Xt||i.lookahead)return it;if(r===1&&(t.adler=ge(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){r===0&&(xt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(e.subarray(n-i.w_size,n),0),e=c,n=i.w_size}const o=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Yt(i);i.lookahead>=R;){let c=i.strstart,l=i.lookahead-(R-1);do i.ins_h=Et(i,i.ins_h,i.window[c+R-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=R-1,Yt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=R-1,i.match_available=0,t.next_in=s,t.input=a,t.avail_in=o,i.wrap=r,H};var Hh=zh,qh=Ao,Zh=ko,Gh=To,Xh=Fh,$h=Bh,Vh=Nh,Yh=jh,Wh="pako deflate (from Nodeca project)",be={deflateInit:Hh,deflateInit2:qh,deflateReset:Zh,deflateResetKeep:Gh,deflateSetHeader:Xh,deflate:$h,deflateEnd:Vh,deflateSetDictionary:Yh,deflateInfo:Wh};const Kh=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Jh=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const i in n)Kh(n,i)&&(t[i]=n[i])}}return t},Qh=t=>{let e=0;for(let i=0,r=t.length;i<r;i++)e+=t[i].length;const n=new Uint8Array(e);for(let i=0,r=0,o=t.length;i<o;i++){let s=t[i];n.set(s,r),r+=s.length}return n},Qe={assign:Jh,flattenChunks:Qh};let Co=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Co=!1}const xe=new Uint8Array(256);for(let t=0;t<256;t++)xe[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;xe[254]=xe[254]=1;var tf=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,i,r,o,s=t.length,a=0;for(r=0;r<s;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<s&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),o=0,r=0;o<a;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<s&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|n&63):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|n&63):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|n&63);return e};const ef=(t,e)=>{if(e<65534&&t.subarray&&Co)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n};var nf=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let i,r;const o=new Array(n*2);for(r=0,i=0;i<n;){let s=t[i++];if(s<128){o[r++]=s;continue}let a=xe[s];if(a>4){o[r++]=65533,i+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&i<n;)s=s<<6|t[i++]&63,a--;if(a>1){o[r++]=65533;continue}s<65536?o[r++]=s:(s-=65536,o[r++]=55296|s>>10&1023,o[r++]=56320|s&1023)}return ef(o,r)},rf=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+xe[t[n]]>e?n:e},Ee={string2buf:tf,buf2string:nf,utf8border:rf};function of(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Io=of;const Do=Object.prototype.toString,{Z_NO_FLUSH:sf,Z_SYNC_FLUSH:af,Z_FULL_FLUSH:lf,Z_FINISH:cf,Z_OK:tn,Z_STREAM_END:hf,Z_DEFAULT_COMPRESSION:ff,Z_DEFAULT_STRATEGY:uf,Z_DEFLATED:df}=Dt;function Se(t){this.options=Qe.assign({level:ff,method:df,chunkSize:16384,windowBits:15,memLevel:8,strategy:uf},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Io,this.strm.avail_out=0;let n=be.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==tn)throw new Error(It[n]);if(e.header&&be.deflateSetHeader(this.strm,e.header),e.dictionary){let i;if(typeof e.dictionary=="string"?i=Ee.string2buf(e.dictionary):Do.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,n=be.deflateSetDictionary(this.strm,i),n!==tn)throw new Error(It[n]);this._dict_set=!0}}Se.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize;let r,o;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?cf:sf,typeof t=="string"?n.input=Ee.string2buf(t):Do.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(o===af||o===lf)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(r=be.deflate(n,o),r===hf)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=be.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===tn;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},Se.prototype.onData=function(t){this.chunks.push(t)},Se.prototype.onEnd=function(t){t===tn&&(this.result=Qe.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function fi(t,e){const n=new Se(e);if(n.push(t,!0),n.err)throw n.msg||It[n.err];return n.result}function _f(t,e){return e=e||{},e.raw=!0,fi(t,e)}function pf(t,e){return e=e||{},e.gzip=!0,fi(t,e)}var gf=Se,mf=fi,wf=_f,yf=pf,vf=Dt,bf={Deflate:gf,deflate:mf,deflateRaw:wf,gzip:yf,constants:vf};const en=16209,xf=16191;var Ef=function(e,n){let i,r,o,s,a,c,l,f,u,d,h,_,g,p,m,y,b,v,E,x,S,C,k,A;const D=e.state;i=e.next_in,k=e.input,r=i+(e.avail_in-5),o=e.next_out,A=e.output,s=o-(n-e.avail_out),a=o+(e.avail_out-257),c=D.dmax,l=D.wsize,f=D.whave,u=D.wnext,d=D.window,h=D.hold,_=D.bits,g=D.lencode,p=D.distcode,m=(1<<D.lenbits)-1,y=(1<<D.distbits)-1;t:do{_<15&&(h+=k[i++]<<_,_+=8,h+=k[i++]<<_,_+=8),b=g[h&m];e:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v===0)A[o++]=b&65535;else if(v&16){E=b&65535,v&=15,v&&(_<v&&(h+=k[i++]<<_,_+=8),E+=h&(1<<v)-1,h>>>=v,_-=v),_<15&&(h+=k[i++]<<_,_+=8,h+=k[i++]<<_,_+=8),b=p[h&y];n:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v&16){if(x=b&65535,v&=15,_<v&&(h+=k[i++]<<_,_+=8,_<v&&(h+=k[i++]<<_,_+=8)),x+=h&(1<<v)-1,x>c){e.msg="invalid distance too far back",D.mode=en;break t}if(h>>>=v,_-=v,v=o-s,x>v){if(v=x-v,v>f&&D.sane){e.msg="invalid distance too far back",D.mode=en;break t}if(S=0,C=d,u===0){if(S+=l-v,v<E){E-=v;do A[o++]=d[S++];while(--v);S=o-x,C=A}}else if(u<v){if(S+=l+u-v,v-=u,v<E){E-=v;do A[o++]=d[S++];while(--v);if(S=0,u<E){v=u,E-=v;do A[o++]=d[S++];while(--v);S=o-x,C=A}}}else if(S+=u-v,v<E){E-=v;do A[o++]=d[S++];while(--v);S=o-x,C=A}for(;E>2;)A[o++]=C[S++],A[o++]=C[S++],A[o++]=C[S++],E-=3;E&&(A[o++]=C[S++],E>1&&(A[o++]=C[S++]))}else{S=o-x;do A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],E-=3;while(E>2);E&&(A[o++]=A[S++],E>1&&(A[o++]=A[S++]))}}else if(v&64){e.msg="invalid distance code",D.mode=en;break t}else{b=p[(b&65535)+(h&(1<<v)-1)];continue n}break}}else if(v&64)if(v&32){D.mode=xf;break t}else{e.msg="invalid literal/length code",D.mode=en;break t}else{b=g[(b&65535)+(h&(1<<v)-1)];continue e}break}}while(i<r&&o<a);E=_>>3,i-=E,_-=E<<3,h&=(1<<_)-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?5+(r-i):5-(i-r),e.avail_out=o<a?257+(a-o):257-(o-a),D.hold=h,D.bits=_};const Kt=15,Po=852,Mo=592,Ro=0,ui=1,Oo=2,Sf=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Tf=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),kf=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Af=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Te=(t,e,n,i,r,o,s,a)=>{const c=a.bits;let l=0,f=0,u=0,d=0,h=0,_=0,g=0,p=0,m=0,y=0,b,v,E,x,S,C=null,k;const A=new Uint16Array(Kt+1),D=new Uint16Array(Kt+1);let P=null,U,z,M;for(l=0;l<=Kt;l++)A[l]=0;for(f=0;f<i;f++)A[e[n+f]]++;for(h=c,d=Kt;d>=1&&A[d]===0;d--);if(h>d&&(h=d),d===0)return r[o++]=1<<24|64<<16|0,r[o++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u<d&&A[u]===0;u++);for(h<u&&(h=u),p=1,l=1;l<=Kt;l++)if(p<<=1,p-=A[l],p<0)return-1;if(p>0&&(t===Ro||d!==1))return-1;for(D[1]=0,l=1;l<Kt;l++)D[l+1]=D[l]+A[l];for(f=0;f<i;f++)e[n+f]!==0&&(s[D[e[n+f]]++]=f);if(t===Ro?(C=P=s,k=20):t===ui?(C=Sf,P=Tf,k=257):(C=kf,P=Af,k=0),y=0,f=0,l=u,S=o,_=h,g=0,E=-1,m=1<<h,x=m-1,t===ui&&m>Po||t===Oo&&m>Mo)return 1;for(;;){U=l-g,s[f]+1<k?(z=0,M=s[f]):s[f]>=k?(z=P[s[f]-k],M=C[s[f]-k]):(z=32+64,M=0),b=1<<l-g,v=1<<_,u=v;do v-=b,r[S+(y>>g)+v]=U<<24|z<<16|M|0;while(v!==0);for(b=1<<l-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,f++,--A[l]===0){if(l===d)break;l=e[n+s[f]]}if(l>h&&(y&x)!==E){for(g===0&&(g=h),S+=u,_=l-g,p=1<<_;_+g<d&&(p-=A[_+g],!(p<=0));)_++,p<<=1;if(m+=1<<_,t===ui&&m>Po||t===Oo&&m>Mo)return 1;E=y&x,r[E]=h<<24|_<<16|S-o|0}}return y!==0&&(r[S+y]=l-g<<24|64<<16|0),a.bits=h,0};const Cf=0,Lo=1,Uo=2,{Z_FINISH:Fo,Z_BLOCK:If,Z_TREES:nn,Z_OK:Ot,Z_STREAM_END:Df,Z_NEED_DICT:Pf,Z_STREAM_ERROR:W,Z_DATA_ERROR:zo,Z_MEM_ERROR:Bo,Z_BUF_ERROR:Mf,Z_DEFLATED:No}=Dt,rn=16180,jo=16181,Ho=16182,qo=16183,Zo=16184,Go=16185,Xo=16186,$o=16187,Vo=16188,Yo=16189,on=16190,ht=16191,di=16192,Wo=16193,_i=16194,Ko=16195,Jo=16196,Qo=16197,ts=16198,sn=16199,an=16200,es=16201,ns=16202,is=16203,rs=16204,os=16205,pi=16206,ss=16207,as=16208,B=16209,ls=16210,cs=16211,Rf=852,Of=592,Lf=15,hs=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function Uf(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Lt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<rn||e.mode>cs?1:0},fs=t=>{if(Lt(t))return W;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=rn,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(Rf),e.distcode=e.distdyn=new Int32Array(Of),e.sane=1,e.back=-1,Ot},us=t=>{if(Lt(t))return W;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,fs(t)},ds=(t,e)=>{let n;if(Lt(t))return W;const i=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?W:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,us(t))},_s=(t,e)=>{if(!t)return W;const n=new Uf;t.state=n,n.strm=t,n.window=null,n.mode=rn;const i=ds(t,e);return i!==Ot&&(t.state=null),i},Ff=t=>_s(t,Lf);let ps=!0,gi,mi;const zf=t=>{if(ps){gi=new Int32Array(512),mi=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Te(Lo,t.lens,0,288,gi,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Te(Uo,t.lens,0,32,mi,0,t.work,{bits:5}),ps=!1}t.lencode=gi,t.lenbits=9,t.distcode=mi,t.distbits=5},gs=(t,e,n,i)=>{let r;const o=t.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),i>=o.wsize?(o.window.set(e.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>i&&(r=i),o.window.set(e.subarray(n-i,n-i+r),o.wnext),i-=r,i?(o.window.set(e.subarray(n-i,n),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0},Bf=(t,e)=>{let n,i,r,o,s,a,c,l,f,u,d,h,_,g,p=0,m,y,b,v,E,x,S,C;const k=new Uint8Array(4);let A,D;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Lt(t)||!t.output||!t.input&&t.avail_in!==0)return W;n=t.state,n.mode===ht&&(n.mode=di),s=t.next_out,r=t.output,c=t.avail_out,o=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,u=a,d=c,C=Ot;t:for(;;)switch(n.mode){case rn:if(n.wrap===0){n.mode=di;break}for(;f<16;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,k[0]=l&255,k[1]=l>>>8&255,n.check=j(n.check,k,2,0),l=0,f=0,n.mode=jo;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=B;break}if((l&15)!==No){t.msg="unknown compression method",n.mode=B;break}if(l>>>=4,f-=4,S=(l&15)+8,n.wbits===0&&(n.wbits=S),S>15||S>n.wbits){t.msg="invalid window size",n.mode=B;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=l&512?Yo:ht,l=0,f=0;break;case jo:for(;f<16;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(n.flags=l,(n.flags&255)!==No){t.msg="unknown compression method",n.mode=B;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=B;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,n.check=j(n.check,k,2,0)),l=0,f=0,n.mode=Ho;case Ho:for(;f<32;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,n.check=j(n.check,k,4,0)),l=0,f=0,n.mode=qo;case qo:for(;f<16;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,n.check=j(n.check,k,2,0)),l=0,f=0,n.mode=Zo;case Zo:if(n.flags&1024){for(;f<16;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,n.check=j(n.check,k,2,0)),l=0,f=0}else n.head&&(n.head.extra=null);n.mode=Go;case Go:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(o,o+h),S)),n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,o)),a-=h,o+=h,n.length-=h),n.length))break t;n.length=0,n.mode=Xo;case Xo:if(n.flags&2048){if(a===0)break t;h=0;do S=i[o+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,o)),a-=h,o+=h,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=$o;case $o:if(n.flags&4096){if(a===0)break t;h=0;do S=i[o+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,o)),a-=h,o+=h,S)break t}else n.head&&(n.head.comment=null);n.mode=Vo;case Vo:if(n.flags&512){for(;f<16;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(n.wrap&4&&l!==(n.check&65535)){t.msg="header crc mismatch",n.mode=B;break}l=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=ht;break;case Yo:for(;f<32;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}t.adler=n.check=hs(l),l=0,f=0,n.mode=on;case on:if(n.havedict===0)return t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=l,n.bits=f,Pf;t.adler=n.check=1,n.mode=ht;case ht:if(e===If||e===nn)break t;case di:if(n.last){l>>>=f&7,f-=f&7,n.mode=pi;break}for(;f<3;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}switch(n.last=l&1,l>>>=1,f-=1,l&3){case 0:n.mode=Wo;break;case 1:if(zf(n),n.mode=sn,e===nn){l>>>=2,f-=2;break t}break;case 2:n.mode=Jo;break;case 3:t.msg="invalid block type",n.mode=B}l>>>=2,f-=2;break;case Wo:for(l>>>=f&7,f-=f&7;f<32;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=B;break}if(n.length=l&65535,l=0,f=0,n.mode=_i,e===nn)break t;case _i:n.mode=Ko;case Ko:if(h=n.length,h){if(h>a&&(h=a),h>c&&(h=c),h===0)break t;r.set(i.subarray(o,o+h),s),a-=h,o+=h,c-=h,s+=h,n.length-=h;break}n.mode=ht;break;case Jo:for(;f<14;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(n.nlen=(l&31)+257,l>>>=5,f-=5,n.ndist=(l&31)+1,l>>>=5,f-=5,n.ncode=(l&15)+4,l>>>=4,f-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=B;break}n.have=0,n.mode=Qo;case Qo:for(;n.have<n.ncode;){for(;f<3;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.lens[P[n.have++]]=l&7,l>>>=3,f-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},C=Te(Cf,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid code lengths set",n.mode=B;break}n.have=0,n.mode=ts;case ts:for(;n.have<n.nlen+n.ndist;){for(;p=n.lencode[l&(1<<n.lenbits)-1],m=p>>>24,y=p>>>16&255,b=p&65535,!(m<=f);){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(b<16)l>>>=m,f-=m,n.lens[n.have++]=b;else{if(b===16){for(D=m+2;f<D;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(l>>>=m,f-=m,n.have===0){t.msg="invalid bit length repeat",n.mode=B;break}S=n.lens[n.have-1],h=3+(l&3),l>>>=2,f-=2}else if(b===17){for(D=m+3;f<D;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}l>>>=m,f-=m,S=0,h=3+(l&7),l>>>=3,f-=3}else{for(D=m+7;f<D;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}l>>>=m,f-=m,S=0,h=11+(l&127),l>>>=7,f-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=B;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===B)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=B;break}if(n.lenbits=9,A={bits:n.lenbits},C=Te(Lo,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid literal/lengths set",n.mode=B;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},C=Te(Uo,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,C){t.msg="invalid distances set",n.mode=B;break}if(n.mode=sn,e===nn)break t;case sn:n.mode=an;case an:if(a>=6&&c>=258){t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=l,n.bits=f,Ef(t,d),s=t.next_out,r=t.output,c=t.avail_out,o=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,n.mode===ht&&(n.back=-1);break}for(n.back=0;p=n.lencode[l&(1<<n.lenbits)-1],m=p>>>24,y=p>>>16&255,b=p&65535,!(m<=f);){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(y&&!(y&240)){for(v=m,E=y,x=b;p=n.lencode[x+((l&(1<<v+E)-1)>>v)],m=p>>>24,y=p>>>16&255,b=p&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,n.length=b,y===0){n.mode=os;break}if(y&32){n.back=-1,n.mode=ht;break}if(y&64){t.msg="invalid literal/length code",n.mode=B;break}n.extra=y&15,n.mode=es;case es:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ns;case ns:for(;p=n.distcode[l&(1<<n.distbits)-1],m=p>>>24,y=p>>>16&255,b=p&65535,!(m<=f);){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(!(y&240)){for(v=m,E=y,x=b;p=n.distcode[x+((l&(1<<v+E)-1)>>v)],m=p>>>24,y=p>>>16&255,b=p&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,y&64){t.msg="invalid distance code",n.mode=B;break}n.offset=b,n.extra=y&15,n.mode=is;case is:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=B;break}n.mode=rs;case rs:if(c===0)break t;if(h=d-c,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=B;break}h>n.wnext?(h-=n.wnext,_=n.wsize-h):_=n.wnext-h,h>n.length&&(h=n.length),g=n.window}else g=r,_=s-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do r[s++]=g[_++];while(--h);n.length===0&&(n.mode=an);break;case os:if(c===0)break t;r[s++]=n.length,c--,n.mode=an;break;case pi:if(n.wrap){for(;f<32;){if(a===0)break t;a--,l|=i[o++]<<f,f+=8}if(d-=c,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,s-d):ge(n.check,r,d,s-d)),d=c,n.wrap&4&&(n.flags?l:hs(l))!==n.check){t.msg="incorrect data check",n.mode=B;break}l=0,f=0}n.mode=ss;case ss:if(n.wrap&&n.flags){for(;f<32;){if(a===0)break t;a--,l+=i[o++]<<f,f+=8}if(n.wrap&4&&l!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=B;break}l=0,f=0}n.mode=as;case as:C=Df;break t;case B:C=zo;break t;case ls:return Bo;case cs:default:return W}return t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=l,n.bits=f,(n.wsize||d!==t.avail_out&&n.mode<B&&(n.mode<pi||e!==Fo))&&gs(t,t.output,t.next_out,d-t.avail_out),u-=t.avail_in,d-=t.avail_out,t.total_in+=u,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,t.next_out-d):ge(n.check,r,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===ht?128:0)+(n.mode===sn||n.mode===_i?256:0),(u===0&&d===0||e===Fo)&&C===Ot&&(C=Mf),C},Nf=t=>{if(Lt(t))return W;let e=t.state;return e.window&&(e.window=null),t.state=null,Ot},jf=(t,e)=>{if(Lt(t))return W;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Ot):W},Hf=(t,e)=>{const n=e.length;let i,r,o;return Lt(t)||(i=t.state,i.wrap!==0&&i.mode!==on)?W:i.mode===on&&(r=1,r=ge(r,e,n,0),r!==i.check)?zo:(o=gs(t,e,n,n),o?(i.mode=ls,Bo):(i.havedict=1,Ot))};var qf=us,Zf=ds,Gf=fs,Xf=Ff,$f=_s,Vf=Bf,Yf=Nf,Wf=jf,Kf=Hf,Jf="pako inflate (from Nodeca project)",ft={inflateReset:qf,inflateReset2:Zf,inflateResetKeep:Gf,inflateInit:Xf,inflateInit2:$f,inflate:Vf,inflateEnd:Yf,inflateGetHeader:Wf,inflateSetDictionary:Kf,inflateInfo:Jf};function Qf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var tu=Qf;const ms=Object.prototype.toString,{Z_NO_FLUSH:eu,Z_FINISH:nu,Z_OK:ke,Z_STREAM_END:wi,Z_NEED_DICT:yi,Z_STREAM_ERROR:iu,Z_DATA_ERROR:ws,Z_MEM_ERROR:ru}=Dt;function Ae(t){this.options=Qe.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Io,this.strm.avail_out=0;let n=ft.inflateInit2(this.strm,e.windowBits);if(n!==ke)throw new Error(It[n]);if(this.header=new tu,ft.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Ee.string2buf(e.dictionary):ms.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=ft.inflateSetDictionary(this.strm,e.dictionary),n!==ke)))throw new Error(It[n])}Ae.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?nu:eu,ms.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),o=ft.inflate(n,s),o===yi&&r&&(o=ft.inflateSetDictionary(n,r),o===ke?o=ft.inflate(n,s):o===ws&&(o=yi));n.avail_in>0&&o===wi&&n.state.wrap>0&&t[n.next_in]!==0;)ft.inflateReset(n),o=ft.inflate(n,s);switch(o){case iu:case ws:case yi:case ru:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||o===wi))if(this.options.to==="string"){let c=Ee.utf8border(n.output,n.next_out),l=n.next_out-c,f=Ee.buf2string(n.output,c);n.next_out=l,n.avail_out=i-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(f)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===ke&&a===0)){if(o===wi)return o=ft.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},Ae.prototype.onData=function(t){this.chunks.push(t)},Ae.prototype.onEnd=function(t){t===ke&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Qe.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function vi(t,e){const n=new Ae(e);if(n.push(t),n.err)throw n.msg||It[n.err];return n.result}function ou(t,e){return e=e||{},e.raw=!0,vi(t,e)}var su=Ae,au=vi,lu=ou,cu=vi,hu=Dt,fu={Inflate:su,inflate:au,inflateRaw:lu,ungzip:cu,constants:hu};const{Deflate:uu,deflate:du,deflateRaw:_u,gzip:pu}=bf,{Inflate:gu,inflate:mu,inflateRaw:wu,ungzip:yu}=fu;var vu=uu,bu=du,xu=_u,Eu=pu,Su=gu,Tu=mu,ku=wu,Au=yu,Cu=Dt,Iu={Deflate:vu,deflate:bu,deflateRaw:xu,gzip:Eu,Inflate:Su,inflate:Tu,inflateRaw:ku,ungzip:Au,constants:Cu};const I={};I.toRGBA8=function(t){const e=t.width,n=t.height;if(t.tabs.acTL===null)return[I.toRGBA8.decodeImage(t.data,e,n,t).buffer];const i=[];t.frames[0].data===null&&(t.frames[0].data=t.data);const r=e*n*4,o=new Uint8Array(r),s=new Uint8Array(r),a=new Uint8Array(r);for(let c=0;c<t.frames.length;c++){const l=t.frames[c],f=l.rect.x,u=l.rect.y,d=l.rect.width,h=l.rect.height,_=I.toRGBA8.decodeImage(l.data,d,h,t);if(c!==0)for(let g=0;g<r;g++)a[g]=o[g];if(l.blend===0?I._copyTile(_,d,h,o,e,n,f,u,0):l.blend===1&&I._copyTile(_,d,h,o,e,n,f,u,1),i.push(o.buffer.slice(0)),l.dispose===1)I._copyTile(s,d,h,o,e,n,f,u,0);else if(l.dispose===2)for(let g=0;g<r;g++)o[g]=a[g]}return i},I.toRGBA8.decodeImage=function(t,e,n,i){const r=e*n,o=I.decode._getBPP(i),s=Math.ceil(e*o/8),a=new Uint8Array(r*4),c=new Uint32Array(a.buffer),l=i.ctype,f=i.depth,u=I._bin.readUshort;if(l===6){const d=r<<2;if(f===8)for(let h=0;h<d;h+=4)a[h]=t[h],a[h+1]=t[h+1],a[h+2]=t[h+2],a[h+3]=t[h+3];if(f===16)for(let h=0;h<d;h++)a[h]=t[h<<1]}else if(l===2){const d=i.tabs.tRNS;if(d===null){if(f===8)for(let h=0;h<r;h++){const _=h*3;c[h]=255<<24|t[_+2]<<16|t[_+1]<<8|t[_]}if(f===16)for(let h=0;h<r;h++){const _=h*6;c[h]=255<<24|t[_+4]<<16|t[_+2]<<8|t[_]}}else{const h=d[0],_=d[1],g=d[2];if(f===8)for(let p=0;p<r;p++){const m=p<<2,y=p*3;c[p]=255<<24|t[y+2]<<16|t[y+1]<<8|t[y],t[y]===h&&t[y+1]===_&&t[y+2]===g&&(a[m+3]=0)}if(f===16)for(let p=0;p<r;p++){const m=p<<2,y=p*6;c[p]=255<<24|t[y+4]<<16|t[y+2]<<8|t[y],u(t,y)===h&&u(t,y+2)===_&&u(t,y+4)===g&&(a[m+3]=0)}}}else if(l===3){const d=i.tabs.PLTE,h=i.tabs.tRNS,_=h?h.length:0;if(f===1)for(let g=0;g<n;g++){const p=g*s,m=g*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[p+(y>>3)]>>7-((y&7)<<0)&1,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===2)for(let g=0;g<n;g++){const p=g*s,m=g*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[p+(y>>2)]>>6-((y&3)<<1)&3,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===4)for(let g=0;g<n;g++){const p=g*s,m=g*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[p+(y>>1)]>>4-((y&1)<<2)&15,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===8)for(let g=0;g<r;g++){const p=g<<2,m=t[g],y=3*m;a[p]=d[y],a[p+1]=d[y+1],a[p+2]=d[y+2],a[p+3]=m<_?h[m]:255}}else if(l===4){if(f===8)for(let d=0;d<r;d++){const h=d<<2,_=d<<1,g=t[_];a[h]=g,a[h+1]=g,a[h+2]=g,a[h+3]=t[_+1]}if(f===16)for(let d=0;d<r;d++){const h=d<<2,_=d<<2,g=t[_];a[h]=g,a[h+1]=g,a[h+2]=g,a[h+3]=t[_+2]}}else if(l===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let h=0;h<n;h++){const _=h*s,g=h*e;if(f===1)for(let p=0;p<e;p++){const m=255*(t[_+(p>>>3)]>>>7-(p&7)&1),y=m===d*255?0:255;c[g+p]=y<<24|m<<16|m<<8|m}else if(f===2)for(let p=0;p<e;p++){const m=85*(t[_+(p>>>2)]>>>6-((p&3)<<1)&3),y=m===d*85?0:255;c[g+p]=y<<24|m<<16|m<<8|m}else if(f===4)for(let p=0;p<e;p++){const m=17*(t[_+(p>>>1)]>>>4-((p&1)<<2)&15),y=m===d*17?0:255;c[g+p]=y<<24|m<<16|m<<8|m}else if(f===8)for(let p=0;p<e;p++){const m=t[_+p],y=m===d?0:255;c[g+p]=y<<24|m<<16|m<<8|m}else if(f===16)for(let p=0;p<e;p++){const m=t[_+(p<<1)],y=u(t,_+(p<<1))===d?0:255;c[g+p]=y<<24|m<<16|m<<8|m}}}return a},I.decode=function(t){const e=new Uint8Array(t);let n=8;const i=I._bin,r=i.readUshort,o=i.readUint,s={tabs:{},frames:[]},a=new Uint8Array(e.length);let c=0,l,f=0;const u=[137,80,78,71,13,10,26,10];for(let d=0;d<8;d++)if(e[d]!==u[d])throw"The input is not a PNG file!";for(;n<e.length;){const d=i.readUint(e,n);n+=4;const h=i.readASCII(e,n,4);if(n+=4,h==="IHDR")I.decode._IHDR(e,n,s);else if(h==="CgBI")s.tabs[h]=e.slice(n,n+4);else if(h==="IDAT"){for(let _=0;_<d;_++)a[c+_]=e[n+_];c+=d}else if(h==="acTL")s.tabs[h]={num_frames:o(e,n),num_plays:o(e,n+4)},l=new Uint8Array(e.length);else if(h==="fcTL"){if(f!==0){const m=s.frames[s.frames.length-1];m.data=I.decode._decompress(s,l.slice(0,f),m.rect.width,m.rect.height),f=0}const _={x:o(e,n+12),y:o(e,n+16),width:o(e,n+4),height:o(e,n+8)};let g=r(e,n+22);g=r(e,n+20)/(g===0?100:g);const p={rect:_,delay:Math.round(g*1e3),dispose:e[n+24],blend:e[n+25]};s.frames.push(p)}else if(h==="fdAT"){for(let _=0;_<d-4;_++)l[f+_]=e[n+_+4];f+=d-4}else if(h==="pHYs")s.tabs[h]=[i.readUint(e,n),i.readUint(e,n+4),e[n+8]];else if(h==="cHRM"){s.tabs[h]=[];for(let _=0;_<8;_++)s.tabs[h].push(i.readUint(e,n+_*4))}else if(h==="tEXt"||h==="zTXt"){s.tabs[h]===null&&(s.tabs[h]={});const _=i.nextZero(e,n),g=i.readASCII(e,n,_-n);let p;const m=n+d-_-1;if(h==="tEXt")p=i.readASCII(e,_+1,m);else{const y=I.decode._inflate(e.slice(_+2,_+2+m));p=i.readUTF8(y,0,y.length)}s.tabs[h][g]=p}else if(h==="iTXt"){s.tabs[h]==null&&(s.tabs[h]={});let _=0,g=n;_=i.nextZero(e,g);const p=i.readASCII(e,g,_-g);g=_+1;const m=e[g];g+=2,_=i.nextZero(e,g),g=_+1,_=i.nextZero(e,g),g=_+1;let y;const b=d-(g-n);if(m===0)y=i.readUTF8(e,g,b);else{const v=I.decode._inflate(e.slice(g,g+b));y=i.readUTF8(v,0,v.length)}s.tabs[h][p]=y}else if(h==="PLTE")s.tabs[h]=i.readBytes(e,n,d);else if(h==="hIST"){const _=s.tabs.PLTE.length/3;s.tabs[h]=[];for(let g=0;g<_;g++)s.tabs[h].push(r(e,n+g*2))}else if(h==="tRNS")s.ctype===3?s.tabs[h]=i.readBytes(e,n,d):s.ctype===0?s.tabs[h]=r(e,n):s.ctype===2&&(s.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]);else if(h==="gAMA")s.tabs[h]=i.readUint(e,n)/1e5;else if(h==="sRGB")s.tabs[h]=e[n];else if(h==="bKGD")s.ctype===0||s.ctype===4?s.tabs[h]=[r(e,n)]:s.ctype===2||s.ctype===6?s.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]:s.ctype===3&&(s.tabs[h]=e[n]);else if(h==="IEND")break;n+=d,n+=4}if(f!==0){const d=s.frames[s.frames.length-1];d.data=I.decode._decompress(s,l.slice(0,f),d.rect.width,d.rect.height),f=0}return s.data=I.decode._decompress(s,a,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},I.decode._decompress=function(t,e,n,i){const r=I.decode._getBPP(t),o=Math.ceil(n*r/8),s=new Uint8Array((o+1+t.interlace)*i);return t.tabs.CgBI?e=I.inflateRaw(e,s):e=I.decode._inflate(e,s),t.interlace===0?e=I.decode._filterZero(e,t,0,n,i):t.interlace===1&&(e=I.decode._readInterlace(e,t)),e},I.decode._inflate=function(t,e){return I.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},I.inflateRaw=function(){const t={};return t.H={},t.H.N=function(e,n){const i=Uint8Array;let r=0,o=0,s=0,a=0,c=0,l=0,f=0,u=0,d=0,h,_;if(e[0]===3&&e[1]===0)return n||new i(0);const g=t.H,p=g.b,m=g.e,y=g.R,b=g.n,v=g.A,E=g.Z,x=g.m,S=n===null;for(S&&(n=new i(e.length>>>2<<3));r===0;){if(r=p(e,d,1),o=p(e,d+1,2),d+=3,o===0){d&7&&(d+=8-(d&7));const C=(d>>>3)+4,k=e[C-4]|e[C-3]<<8;S&&(n=t.H.W(n,u+k)),n.set(new i(e.buffer,e.byteOffset+C,k),u),d=C+k<<3,u+=k;continue}if(S&&(n=t.H.W(n,u+(1<<17))),o===1&&(h=x.J,_=x.h,l=512-1,f=32-1),o===2){s=m(e,d,5)+257,a=m(e,d+5,5)+1,c=m(e,d+10,4)+4,d+=14;let C=1;for(let D=0;D<38;D+=2)x.Q[D]=0,x.Q[D+1]=0;for(let D=0;D<c;D++){const P=m(e,d+D*3,3);x.Q[(x.X[D]<<1)+1]=P,P>C&&(C=P)}d+=3*c,b(x.Q,C),v(x.Q,C,x.u),h=x.w,_=x.d,d=y(x.u,(1<<C)-1,s+a,e,d,x.v);const k=g.V(x.v,0,s,x.C);l=(1<<k)-1;const A=g.V(x.v,s,a,x.D);f=(1<<A)-1,b(x.C,k),v(x.C,k,h),b(x.D,A),v(x.D,A,_)}for(;;){const C=h[E(e,d)&l];d+=C&15;const k=C>>>4;if(!(k>>>8))n[u++]=k;else{if(k===256)break;{let A=u+k-254;if(k>264){const M=x.q[k-257];A=u+(M>>>3)+m(e,d,M&7),d+=M&7}const D=_[E(e,d)&f];d+=D&15;const P=D>>>4,U=x.c[P],z=(U>>>4)+p(e,d,U&15);for(d+=U&15;u<A;)n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z];u=A}}}}return n.length===u?n:n.slice(0,u)},t.H.W=function(e,n){const i=e.length;if(n<=i)return e;const r=new Uint8Array(i<<1);return r.set(e,0),r},t.H.R=function(e,n,i,r,o,s){const a=t.H.e,c=t.H.Z;let l=0;for(;l<i;){const f=e[c(r,o)&n];o+=f&15;const u=f>>>4;if(u<=15)s[l]=u,l++;else{let d=0,h=0;u===16?(h=3+a(r,o,2),o+=2,d=s[l-1]):u===17?(h=3+a(r,o,3),o+=3):u===18&&(h=11+a(r,o,7),o+=7);const _=l+h;for(;l<_;)s[l]=d,l++}}return o},t.H.V=function(e,n,i,r){let o=0,s=0;const a=r.length>>>1;for(;s<i;){const c=e[s+n];r[s<<1]=0,r[(s<<1)+1]=c,c>o&&(o=c),s++}for(;s<a;)r[s<<1]=0,r[(s<<1)+1]=0,s++;return o},t.H.n=function(e,n){const i=t.H.m,r=e.length;let o,s,a,c,l;const f=i.j;for(let d=0;d<=n;d++)f[d]=0;for(c=1;c<r;c+=2)f[e[c]]++;const u=i.K;for(o=0,f[0]=0,s=1;s<=n;s++)o=o+f[s-1]<<1,u[s]=o;for(a=0;a<r;a+=2)l=e[a+1],l!==0&&(e[a]=u[l],u[l]++)},t.H.A=function(e,n,i){const r=e.length,s=t.H.m.r;for(let a=0;a<r;a+=2)if(e[a+1]!==0){const c=a>>1,l=e[a+1],f=c<<4|l,u=n-l;let d=e[a]<<u;const h=d+(1<<u);for(;d!==h;){const _=s[d]>>>15-n;i[_]=f,d++}}},t.H.l=function(e,n){const i=t.H.m.r,r=15-n;for(let o=0;o<e.length;o+=2){const s=e[o]<<n-e[o+1];e[o]=i[s]>>>r}},t.H.M=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8},t.H.I=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8,e[r+2]|=i>>>16},t.H.e=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.H.b=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.H.Z=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)},t.H.i=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16|e[(n>>>3)+3]<<24)>>>(n&7)},t.H.m=function(){const e=Uint16Array,n=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new n(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new e(65536),g:new e(32768)}}(),function(){const e=t.H.m,n=32768;for(let r=0;r<n;r++){let o=r;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,e.r[r]=(o>>>16|o<<16)>>>17}function i(r,o,s){for(;o--!==0;)r.push(0,s)}for(let r=0;r<32;r++)e.q[r]=e.S[r]<<3|e.T[r],e.c[r]=e.p[r]<<4|e.z[r];i(e._,144,8),i(e._,255-143,9),i(e._,279-255,7),i(e._,287-279,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),i(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),i(e.Q,19,0),i(e.C,286,0),i(e.D,30,0),i(e.v,320,0)}(),t.H.N}(),I.decode._readInterlace=function(t,e){const n=e.width,i=e.height,r=I.decode._getBPP(e),o=r>>3,s=Math.ceil(n*r/8),a=new Uint8Array(i*s);let c=0;const l=[0,0,4,0,2,0,1],f=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1];let h=0;for(;h<7;){const _=u[h],g=d[h];let p=0,m=0,y=l[h];for(;y<i;)y+=_,m++;let b=f[h];for(;b<n;)b+=g,p++;const v=Math.ceil(p*r/8);I.decode._filterZero(t,e,c,p,m);let E=0,x=l[h];for(;x<i;){let S=f[h],C=c+E*v<<3;for(;S<n;){if(r===1){let k=t[C>>3];k=k>>7-(C&7)&1,a[x*s+(S>>3)]|=k<<7-((S&7)<<0)}if(r===2){let k=t[C>>3];k=k>>6-(C&7)&3,a[x*s+(S>>2)]|=k<<6-((S&3)<<1)}if(r===4){let k=t[C>>3];k=k>>4-(C&7)&15,a[x*s+(S>>1)]|=k<<4-((S&1)<<2)}if(r>=8){const k=x*s+S*o;for(let A=0;A<o;A++)a[k+A]=t[(C>>3)+A]}C+=r,S+=g}E++,x+=_}p*m!==0&&(c+=m*(1+v)),h=h+1}return a},I.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},I.decode._filterZero=function(t,e,n,i,r){let o=I.decode._getBPP(e);const s=Math.ceil(i*o/8),a=I.decode._paeth;o=Math.ceil(o/8);let c=0,l=1,f=t[n],u=0;if(f>1&&(t[n]=[0,0,1][f-2]),f===3)for(u=o;u<s;u++)t[u+1]=t[u+1]+(t[u+1-o]>>>1)&255;for(let d=0;d<r;d++)if(c=n+d*s,l=c+d+1,f=t[l-1],u=0,f===0)for(;u<s;u++)t[c+u]=t[l+u];else if(f===1){for(;u<o;u++)t[c+u]=t[l+u];for(;u<s;u++)t[c+u]=t[l+u]+t[c+u-o]}else if(f===2)for(;u<s;u++)t[c+u]=t[l+u]+t[c+u-s];else if(f===3){for(;u<o;u++)t[c+u]=t[l+u]+(t[c+u-s]>>>1);for(;u<s;u++)t[c+u]=t[l+u]+(t[c+u-s]+t[c+u-o]>>>1)}else{for(;u<o;u++)t[c+u]=t[l+u]+a(0,t[c+u-s],0);for(;u<s;u++)t[c+u]=t[l+u]+a(t[c+u-o],t[c+u-s],t[c+u-o-s])}return t},I.decode._paeth=function(t,e,n){const i=t+e-n,r=i-t,o=i-e,s=i-n;return r*r<=o*o&&r*r<=s*s?t:o*o<=s*s?e:n},I.decode._IHDR=function(t,e,n){const i=I._bin;n.width=i.readUint(t,e),e+=4,n.height=i.readUint(t,e),e+=4,n.depth=t[e],e++,n.ctype=t[e],e++,n.compress=t[e],e++,n.filter=t[e],e++,n.interlace=t[e],e++},I._bin={nextZero:function(t,e){for(;t[e]!==0;)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,n){t[e]=n>>8&255,t[e+1]=n&255},readUint:function(t,e){return t[e]*(256*256*256)+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n&255},readASCII:function(t,e,n){let i="";for(let r=0;r<n;r++)i+=String.fromCharCode(t[e+r]);return i},writeASCII:function(t,e,n){for(let i=0;i<n.length;i++)t[e+i]=n.charCodeAt(i)},readBytes:function(t,e,n){const i=[];for(let r=0;r<n;r++)i.push(t[e+r]);return i},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,n){let i="",r;for(let o=0;o<n;o++)i+="%"+I._bin.pad(t[e+o].toString(16));try{r=decodeURIComponent(i)}catch{return I._bin.readASCII(t,e,n)}return r}},I._copyTile=function(t,e,n,i,r,o,s,a,c){const l=Math.min(e,r),f=Math.min(n,o);let u=0,d=0;for(let h=0;h<f;h++)for(let _=0;_<l;_++)if(s>=0&&a>=0?(u=h*e+_<<2,d=(a+h)*r+s+_<<2):(u=(-a+h)*e-s+_<<2,d=h*r+_<<2),c===0)i[d]=t[u],i[d+1]=t[u+1],i[d+2]=t[u+2],i[d+3]=t[u+3];else if(c===1){const g=t[u+3]*.00392156862745098,p=t[u]*g,m=t[u+1]*g,y=t[u+2]*g,b=i[d+3]*(1/255),v=i[d]*b,E=i[d+1]*b,x=i[d+2]*b,S=1-g,C=g+b*S,k=C===0?0:1/C;i[d+3]=255*C,i[d+0]=(p+v*S)*k,i[d+1]=(m+E*S)*k,i[d+2]=(y+x*S)*k}else if(c===2){const g=t[u+3],p=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];g===b&&p===v&&m===E&&y===x?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=p,i[d+1]=m,i[d+2]=y,i[d+3]=g)}else if(c===3){const g=t[u+3],p=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];if(g===b&&p===v&&m===E&&y===x)continue;if(g<220&&b>20)return!1}return!0},I.encode=function(t,e,n,i,r,o,s){i===null&&(i=0),s===null&&(s=!1);const a=I.encode.compress(t,e,n,i,[!1,!1,!1,0,s]);return I.encode.compressPNG(a,-1),I.encode._main(a,e,n,r,o)},I.encodeLL=function(t,e,n,i,r,o,s,a){const c={ctype:0+(i===1?0:2)+(r===0?0:4),depth:o,frames:[]},l=(i+r)*o,f=l*e;for(let d=0;d<t.length;d++)c.frames.push({rect:{x:0,y:0,width:e,height:n},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(f/8)});return I.encode.compressPNG(c,0,!0),I.encode._main(c,e,n,s,a)},I.encode._main=function(t,e,n,i,r){r||(r={});const o=I.crc.crc,s=I._bin.writeUint,a=I._bin.writeUshort,c=I._bin.writeASCII;let l=8;const f=t.frames.length>1;let u=!1,d=8+(16+5+4)+(f?20:0);if(r.sRGB!==null&&r.sRGB!==void 0&&(d+=8+1+4),r.pHYs!==null&&r.pHYs!==void 0&&(d+=8+9+4),t.ctype===3){const p=t.plte.length;for(let m=0;m<p;m++)t.plte[m]>>>24!==255&&(u=!0);d+=8+p*3+4+(u?8+p*1+4:0)}for(let p=0;p<t.frames.length;p++){const m=t.frames[p];f&&(d+=38),d+=m.cimg.length+12,p!==0&&(d+=4)}d+=12;const h=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(let p=0;p<8;p++)h[p]=_[p];if(s(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,s(h,l,e),l+=4,s(h,l,n),l+=4,h[l]=t.depth,l++,h[l]=t.ctype,l++,h[l]=0,l++,h[l]=0,l++,h[l]=0,l++,s(h,l,o(h,l-17,17)),l+=4,r.sRGB!==null&&r.sRGB!==void 0&&(s(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=r.sRGB,l++,s(h,l,o(h,l-5,5)),l+=4),r.pHYs!==null&&r.pHYs!==void 0&&(s(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,s(h,l,r.pHYs[0]),l+=4,s(h,l,r.pHYs[1]),l+=4,h[l]=r.pHYs[2],l++,s(h,l,o(h,l-13,13)),l+=4),f&&(s(h,l,8),l+=4,c(h,l,"acTL"),l+=4,s(h,l,t.frames.length),l+=4,s(h,l,r.loop!=null?r.loop:0),l+=4,s(h,l,o(h,l-12,12)),l+=4),t.ctype===3){const p=t.plte.length;s(h,l,p*3),l+=4,c(h,l,"PLTE"),l+=4;for(let m=0;m<p;m++){const y=m*3,b=t.plte[m],v=b&255,E=b>>>8&255,x=b>>>16&255;h[l+y+0]=v,h[l+y+1]=E,h[l+y+2]=x}if(l+=p*3,s(h,l,o(h,l-p*3-4,p*3+4)),l+=4,u){s(h,l,p),l+=4,c(h,l,"tRNS"),l+=4;for(let m=0;m<p;m++)h[l+m]=t.plte[m]>>>24&255;l+=p,s(h,l,o(h,l-p-4,p+4)),l+=4}}let g=0;for(let p=0;p<t.frames.length;p++){const m=t.frames[p];f&&(s(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,s(h,l,g++),l+=4,s(h,l,m.rect.width),l+=4,s(h,l,m.rect.height),l+=4,s(h,l,m.rect.x),l+=4,s(h,l,m.rect.y),l+=4,a(h,l,i[p]),l+=2,a(h,l,1e3),l+=2,h[l]=m.dispose,l++,h[l]=m.blend,l++,s(h,l,o(h,l-30,30)),l+=4);const y=m.cimg,b=y.length;s(h,l,b+(p===0?0:4)),l+=4;const v=l;c(h,l,p===0?"IDAT":"fdAT"),l+=4,p!==0&&(s(h,l,g++),l+=4),h.set(y,l),l+=b,s(h,l,o(h,v,l-v)),l+=4}return s(h,l,0),l+=4,c(h,l,"IEND"),l+=4,s(h,l,o(h,l-4,4)),l+=4,h.buffer},I.encode.compressPNG=function(t,e,n){for(let i=0;i<t.frames.length;i++){const r=t.frames[i],o=r.rect.height,s=new Uint8Array(o*r.bpl+o);r.cimg=I.encode._filterZero(r.img,o,r.bpp,r.bpl,s,e,n)}},I.encode.compress=function(t,e,n,i,r){const o=r[0],s=r[1],a=r[2],c=r[3],l=r[4];let f=6,u=8,d=255;for(let b=0;b<t.length;b++){const v=new Uint8Array(t[b]),E=v.length;for(let x=0;x<E;x+=4)d&=v[x+3]}const h=d!==255,_=I.encode.framize(t,e,n,o,s,a),g={},p=[],m=[];if(i!==0){const b=[];for(let C=0;C<_.length;C++)b.push(_[C].img.buffer);const v=I.encode.concatRGBA(b),E=I.quantize(v,i);let x=0;const S=new Uint8Array(E.abuf);for(let C=0;C<_.length;C++){const k=_[C].img,A=k.length;m.push(new Uint8Array(E.inds.buffer,x>>2,A>>2));for(let D=0;D<A;D+=4)k[D]=S[x+D],k[D+1]=S[x+D+1],k[D+2]=S[x+D+2],k[D+3]=S[x+D+3];x+=A}for(let C=0;C<E.plte.length;C++)p.push(E.plte[C].est.rgba)}else for(let b=0;b<_.length;b++){const v=_[b],E=new Uint32Array(v.img.buffer),x=v.rect.width,S=E.length,C=new Uint8Array(S);m.push(C);for(let k=0;k<S;k++){const A=E[k];if(k!==0&&A===E[k-1])C[k]=C[k-1];else if(k>x&&A===E[k-x])C[k]=C[k-x];else{let D=g[A];if(D===null&&(g[A]=D=p.length,p.push(A),p.length>=300))break;C[k]=D}}}const y=p.length;y<=256&&l===!1&&(y<=2?u=1:y<=4?u=2:y<=16?u=4:u=8,u=Math.max(u,c));for(let b=0;b<_.length;b++){const v=_[b],E=v.rect.width,x=v.rect.height;let S=v.img,C=4*E,k=4;if(y<=256&&l===!1){C=Math.ceil(u*E/8);const A=new Uint8Array(C*x),D=m[b];for(let P=0;P<x;P++){const U=P*C,z=P*E;if(u===8)for(let M=0;M<E;M++)A[U+M]=D[z+M];else if(u===4)for(let M=0;M<E;M++)A[U+(M>>1)]|=D[z+M]<<4-(M&1)*4;else if(u===2)for(let M=0;M<E;M++)A[U+(M>>2)]|=D[z+M]<<6-(M&3)*2;else if(u===1)for(let M=0;M<E;M++)A[U+(M>>3)]|=D[z+M]<<7-(M&7)*1}S=A,f=3,k=1}else if(h===!1&&_.length===1){const A=new Uint8Array(E*x*3),D=E*x;for(let P=0;P<D;P++){const U=P*3,z=P*4;A[U]=S[z],A[U+1]=S[z+1],A[U+2]=S[z+2]}S=A,f=2,k=3,C=3*E}v.img=S,v.bpl=C,v.bpp=k}return{ctype:f,depth:u,plte:p,frames:_}},I.encode.framize=function(t,e,n,i,r,o){const s=[];for(let a=0;a<t.length;a++){const c=new Uint8Array(t[a]),l=new Uint32Array(c.buffer);let f,u=0,d=0,h=e,_=n,g=i?1:0;if(a!==0){const p=o||i||a===1||s[a-2].dispose!==0?1:2;let m=0,y=1e9;for(let v=0;v<p;v++){const E=new Uint32Array(t[a-1-v]);let x=e,S=n,C=-1,k=-1;for(let D=0;D<n;D++)for(let P=0;P<e;P++){const U=D*e+P;l[U]!==E[U]&&(P<x&&(x=P),P>C&&(C=P),D<S&&(S=D),D>k&&(k=D))}C===-1&&(x=S=C=k=0),r&&((x&1)===1&&x--,(S&1)===1&&S--);const A=(C-x+1)*(k-S+1);A<y&&(y=A,m=v,u=x,d=S,h=C-x+1,_=k-S+1)}const b=new Uint8Array(t[a-1-m]);m===1&&(s[a-1].dispose=2),f=new Uint8Array(h*_*4),I._copyTile(b,e,n,f,h,_,-u,-d,0),g=I._copyTile(c,e,n,f,h,_,-u,-d,3)?1:0,g===1?I.encode._prepareDiff(c,e,n,f,{x:u,y:d,width:h,height:_}):I._copyTile(c,e,n,f,h,_,-u,-d,0)}else f=c.slice(0);s.push({rect:{x:u,y:d,width:h,height:_},img:f,blend:g,dispose:0})}if(i)for(let a=0;a<s.length;a++){const c=s[a];if(c.blend===1)continue;const l=c.rect,f=s[a-1].rect,u=Math.min(l.x,f.x),d=Math.min(l.y,f.y),h=Math.max(l.x+l.width,f.x+f.width),_=Math.max(l.y+l.height,f.y+f.height),g={x:u,y:d,width:h-u,height:_-d};s[a-1].dispose=1,a-1!==0&&I.encode._updateFrame(t,e,n,s,a-1,g,r),I.encode._updateFrame(t,e,n,s,a,g,r)}return s},I.encode._updateFrame=function(t,e,n,i,r,o,s){const a=Uint8Array,c=Uint32Array,l=new a(t[r-1]),f=new c(t[r-1]),u=r+1<t.length?new a(t[r+1]):null,d=new a(t[r]),h=new c(d.buffer);let _=e,g=n,p=-1,m=-1;for(let b=0;b<o.height;b++)for(let v=0;v<o.width;v++){const E=o.x+v,x=o.y+b,S=x*e+E,C=h[S];C===0||i[r-1].dispose===0&&f[S]===C&&(u===null||u[S*4+3]!==0)||(E<_&&(_=E),E>p&&(p=E),x<g&&(g=x),x>m&&(m=x))}p===-1&&(_=g=p=m=0),s&&((_&1)===1&&_--,(g&1)===1&&g--),o={x:_,y:g,width:p-_+1,height:m-g+1};const y=i[r];y.rect=o,y.blend=1,y.img=new Uint8Array(o.width*o.height*4),i[r-1].dispose===0?(I._copyTile(l,e,n,y.img,o.width,o.height,-o.x,-o.y,0),I.encode._prepareDiff(d,e,n,y.img,o)):I._copyTile(d,e,n,y.img,o.width,o.height,-o.x,-o.y,0)},I.encode._prepareDiff=function(t,e,n,i,r){I._copyTile(t,e,n,i,r.width,r.height,-r.x,-r.y,2)},I.encode._filterZero=function(t,e,n,i,r,o,s){const a=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(e*i>5e5||n===1)&&(c=[0]);let l;s&&(l={level:0});const f=r.length>1e7&&Wr!=null?Wr:Iu;for(let h=0;h<c.length;h++){for(let _=0;_<e;_++)I.encode._filterLine(r,t,_,i,n,c[h]);a.push(f.deflate(r,l))}let u,d=1e9;for(let h=0;h<a.length;h++)a[h].length<d&&(u=h,d=a[h].length);return a[u]},I.encode._filterLine=function(t,e,n,i,r,o){const s=n*i;let a=s+n;const c=I.decode._paeth;if(t[a]=o,a++,o===0)if(i<500)for(let l=0;l<i;l++)t[a+l]=e[s+l];else t.set(new Uint8Array(e.buffer,s,i),a);else if(o===1){for(let l=0;l<r;l++)t[a+l]=e[s+l];for(let l=r;l<i;l++)t[a+l]=e[s+l]-e[s+l-r]+256&255}else if(n===0){for(let l=0;l<r;l++)t[a+l]=e[s+l];if(o===2)for(let l=r;l<i;l++)t[a+l]=e[s+l];if(o===3)for(let l=r;l<i;l++)t[a+l]=e[s+l]-(e[s+l-r]>>1)+256&255;if(o===4)for(let l=r;l<i;l++)t[a+l]=e[s+l]-c(e[s+l-r],0,0)+256&255}else{if(o===2)for(let l=0;l<i;l++)t[a+l]=e[s+l]+256-e[s+l-i]&255;if(o===3){for(let l=0;l<r;l++)t[a+l]=e[s+l]+256-(e[s+l-i]>>1)&255;for(let l=r;l<i;l++)t[a+l]=e[s+l]+256-(e[s+l-i]+e[s+l-r]>>1)&255}if(o===4){for(let l=0;l<r;l++)t[a+l]=e[s+l]+256-c(0,e[s+l-i],0)&255;for(let l=r;l<i;l++)t[a+l]=e[s+l]+256-c(e[s+l-r],e[s+l-i],e[s+l-r-i])&255}}},I.crc={table:function(){const t=new Uint32Array(256);for(let e=0;e<256;e++){let n=e;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;t[e]=n}return t}(),update:function(t,e,n,i){for(let r=0;r<i;r++)t=I.crc.table[(t^e[n+r])&255]^t>>>8;return t},crc:function(t,e,n){return I.crc.update(4294967295,t,e,n)^4294967295}},I.quantize=function(t,e){const n=new Uint8Array(t),i=n.slice(0),r=new Uint32Array(i.buffer),o=I.quantize.getKDtree(i,e),s=o[0],a=o[1],c=I.quantize.planeDst,l=n,f=r,u=l.length,d=new Uint8Array(n.length>>2);let h;if(n.length<2e7)for(let _=0;_<u;_+=4){const g=l[_]*.00392156862745098,p=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);h=I.quantize.getNearest(s,g,p,m,y),d[_>>2]=h.ind,f[_>>2]=h.est.rgba}else for(let _=0;_<u;_+=4){const g=l[_]*.00392156862745098,p=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);for(h=s;h.left;)h=c(h.est,g,p,m,y)<=0?h.left:h.right;d[_>>2]=h.ind,f[_>>2]=h.est.rgba}return{abuf:i.buffer,inds:d,plte:a}},I.quantize.getKDtree=function(t,e,n){n===null&&(n=1e-4);const i=new Uint32Array(t.buffer),r={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=I.quantize.stats(t,r.i0,r.i1),r.est=I.quantize.estats(r.bst);const o=[r];for(;o.length<e;){let s=0,a=0;for(let h=0;h<o.length;h++)o[h].est.L>s&&(s=o[h].est.L,a=h);if(s<n)break;const c=o[a],l=I.quantize.splitPixels(t,i,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=I.quantize.stats(t,u.i0,u.i1),u.est=I.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let h=0;h<16;h++)d.bst.R[h]=c.bst.R[h]-u.bst.R[h];for(let h=0;h<4;h++)d.bst.m[h]=c.bst.m[h]-u.bst.m[h];d.est=I.quantize.estats(d.bst),c.left=u,c.right=d,o[a]=u,o.push(d)}o.sort(function(s,a){return a.bst.N-s.bst.N});for(let s=0;s<o.length;s++)o[s].ind=s;return[r,o]},I.quantize.getNearest=function(t,e,n,i,r){if(t.left==null)return t.tdst=I.quantize.dist(t.est.q,e,n,i,r),t;const o=I.quantize.planeDst(t.est,e,n,i,r);let s=t.left,a=t.right;o>0&&(s=t.right,a=t.left);const c=I.quantize.getNearest(s,e,n,i,r);if(c.tdst<=o*o)return c;const l=I.quantize.getNearest(a,e,n,i,r);return l.tdst<c.tdst?l:c},I.quantize.planeDst=function(t,e,n,i,r){const o=t.e;return o[0]*e+o[1]*n+o[2]*i+o[3]*r-t.eMq},I.quantize.dist=function(t,e,n,i,r){const o=e-t[0],s=n-t[1],a=i-t[2],c=r-t[3];return o*o+s*s+a*a+c*c},I.quantize.splitPixels=function(t,e,n,i,r,o){const s=I.quantize.vecDot;for(i-=4;n<i;){for(;s(t,n,r)<=o;)n+=4;for(;s(t,i,r)>o;)i-=4;if(n>=i)break;const a=e[n>>2];e[n>>2]=e[i>>2],e[i>>2]=a,n+=4,i-=4}for(;s(t,n,r)>o;)n-=4;return n+4},I.quantize.vecDot=function(t,e,n){return t[e]*n[0]+t[e+1]*n[1]+t[e+2]*n[2]+t[e+3]*n[3]},I.quantize.stats=function(t,e,n){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],o=n-e>>2;for(let s=e;s<n;s+=4){const a=t[s]*.00392156862745098,c=t[s+1]*(1/255),l=t[s+2]*(1/255),f=t[s+3]*(1/255);r[0]+=a,r[1]+=c,r[2]+=l,r[3]+=f,i[0]+=a*a,i[1]+=a*c,i[2]+=a*l,i[3]+=a*f,i[5]+=c*c,i[6]+=c*l,i[7]+=c*f,i[10]+=l*l,i[11]+=l*f,i[15]+=f*f}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:r,N:o}},I.quantize.estats=function(t){const e=t.R,n=t.m,i=t.N,r=n[0],o=n[1],s=n[2],a=n[3],c=i===0?0:1/i,l=[e[0]-r*r*c,e[1]-r*o*c,e[2]-r*s*c,e[3]-r*a*c,e[4]-o*r*c,e[5]-o*o*c,e[6]-o*s*c,e[7]-o*a*c,e[8]-s*r*c,e[9]-s*o*c,e[10]-s*s*c,e[11]-s*a*c,e[12]-a*r*c,e[13]-a*o*c,e[14]-a*s*c,e[15]-a*a*c],f=l,u=I.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,_=0;if(i!==0)for(let m=0;m<16&&(d=u.multVec(f,d),_=Math.sqrt(u.dot(d,d)),d=u.sml(1/_,d),!(m!==0&&Math.abs(_-h)<1e-9));m++)h=_;const g=[r*c,o*c,s*c,a*c],p=u.dot(u.sml(255,g),d);return{Cov:l,q:g,e:d,L:h,eMq255:p,eMq:u.dot(d,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},I.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},I.encode.concatRGBA=function(t){let e=0;for(let r=0;r<t.length;r++)e+=t[r].byteLength;const n=new Uint8Array(e);let i=0;for(let r=0;r<t.length;r++){const o=new Uint8Array(t[r]),s=o.length;for(let a=0;a<s;a+=4){let c=o[a],l=o[a+1],f=o[a+2];const u=o[a+3];u===0&&(c=l=f=0),n[i+a]=c,n[i+a+1]=l,n[i+a+2]=f,n[i+a+3]=u}i+=s}return n.buffer};const ln=new Map,bi=(t,e)=>{if(ln.has(t))return e(null,ln.get(t));const n=new Image;n.onload=function(){ln.set(t,{width:n.width,height:n.height,element:n}),e(null,ln.get(t))},n.onerror=function(i){e(i,null)},n.src=t},xi=(t,e)=>{bi(t,(n,i)=>{if(!i)return e(n,null);const r=document.createElement("canvas"),o=r.getContext("2d");return r.width=i.width,r.height=i.height,o.drawImage(i.element,0,0,r.width,r.height),o.getImageData(0,0,r.width,r.height)})},Du=(t,e)=>{for(let n=0,i=t.length;n<i;n++){const r=t[n],{type:o}=r;if(o.split("/")[0]!=="image")return;let a;const c=new FileReader;c.onload=function(l){if(!l.target)return e("no reader target",null);const f=l.target.result;a=wn(f);const d=new Blob([f]);Ei(d,(h,_)=>{if(!_)return e(h,null);bi(_,(g,p)=>{if(!p)return e(g,null);xi(_,(m,y)=>{if(!y)return e(m,null);const b={name:r.name,fileType:a,size:r.size,width:p.width,height:p.height,imgUrl:_,imageData:y,blob:d};return e(null,b)})})})},c.readAsArrayBuffer(r)}},Pu=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},Mu=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},Ru=t=>{const e=t.width,n=t.height,i=e*n*3,r=i+54,o=[66,77,r&255,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],s=[40,0,0,0,e&255,e>>8&255,e>>16&255,e>>24&255,n&255,n>>8&255,n>>16&255,n>>24&255,1,0,24,0,0,0,0,0,i&255,i>>8&255,i>>16&255,i>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=(4-e*3%4)%4,c=t.data;let l="";const f=e<<2;let u=n;const d=String.fromCharCode;do{const _=f*(u-1);let g="";for(let p=0;p<e;p++){const m=p<<2;g+=d(c[_+m+2])+d(c[_+m+1])+d(c[_+m])}for(let p=0;p<a;p++)g+=String.fromCharCode(0);l+=g}while(--u);function h(_){if(!window.btoa)throw"btoa undefined";let g="";if(typeof _=="string")g=_;else for(let p=0;p<_.length;p++)g+=String.fromCharCode(_[p]);return btoa(g)}return h(o.concat(s))+h(l)},Ou=t=>{const{width:e,height:n}=t,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.putImageData(t,0,0,0,0,e,n),i.toDataURL("image/png")},Lu=(t,e,n)=>{const{width:i,height:r}=t,o=document.createElement("canvas"),s=o.getContext("2d");o.width=i,o.height=r,s.putImageData(t,0,0,0,0,i,r);const a=`image/${e?e.toLowerCase():"png"}`;o.toBlob(c=>{n?.(null,c)},a,1)},Ei=(t,e)=>{const n=new FileReader;n.onload=function(i){i.target?e(null,i.target.result):e("can't readAsDataURL",null)},n.readAsDataURL(t)},Uu=(t,e)=>{Ei(t,function(n,i){if(i){const r=new Image;r.src=i}else e(n)})},Fu=(t,e)=>{const n=window.URL.createObjectURL(t),i=document.createElement("a");i.style.visibility="hidden",document.body.appendChild(i),i.download=e,i.href=n,i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)},ys=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),zu=(t,e="image/svg+xml",n="utf-8")=>{const i=new XMLSerializer().serializeToString(t);return ys(i,e,n)};function Bu(t,e){xi(t,(n,i)=>{if(!i)return e(n,null);const r=i.data;let o=0;const s=[],a=[],c=[];for(let d=0;d<r.length;d+=4)s[o]=r[d],a[o]=r[d+1],c[o]=r[d+2],o+=1;const l=Si(s),f=Si(a),u=Si(c);return e(null,"rgb("+l+","+f+","+u+")")})}function Si(t){const e={},n=[],i=[];for(let a=0;a<t.length;a++)e[t[a]]?n.push(t[a]):e[t[a]]=1;let r=0;for(let a=0;a<n.length;a++){r=0;for(let c=0;c<n.length;c++)n[a]===n[c]&&(r+=1),i[a]=r}const o=Math.max.apply(null,i);let s=0;for(;s<i.length;s++)if(i[s]===o)return;return n[s]}const Nu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[(s*n+n-a-1)*4],r[c+1]=e[(s*n+n-a-1)*4+1],r[c+2]=e[(s*n+n-a-1)*4+2],r[c+3]=e[(s*n+n-a-1)*4+3]}return new ImageData(r,n,i)},ju=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[((i-s-1)*n+a)*4],r[c+1]=e[((i-s-1)*n+a)*4+1],r[c+2]=e[((i-s-1)*n+a)*4+2],r[c+3]=e[((i-s-1)*n+a)*4+3]}return new ImageData(r,n,i)},Hu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<n;s++)for(let a=0;a<i;a++){const c=(s*i+a)*4;r[c]=e[(a*n+n-s-1)*4],r[c+1]=e[(a*n+n-s-1)*4+1],r[c+2]=e[(a*n+n-s-1)*4+2],r[c+3]=e[(a*n+n-s-1)*4+3]}return new ImageData(r,i,n)},qu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<n;s++)for(let a=0;a<i;a++){const c=(s*i+a)*4;r[c]=e[((i-a-1)*n+s)*4],r[c+1]=e[((i-a-1)*n+s)*4+1],r[c+2]=e[((i-a-1)*n+s)*4+2],r[c+3]=e[((i-a-1)*n+s)*4+3]}return new ImageData(r,i,n)},Zu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,l=(e[c]+e[c+1]+e[c+2])/3;r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},Gu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,l=.2126*e[c]+.7152*e[c+1]+.0722*e[c+2];r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},Xu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,f=(e[c]+e[c+1]+e[c+2])/3>127?255:0;r[c]=f,r[c+1]=f,r[c+2]=f,r[c+3]=e[c+3]}return new ImageData(r,n,i)},$u=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=255-e[c],r[c+1]=255-e[c+1],r[c+2]=255-e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},Vu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},Yu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},Wu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=0,r[c+1]=0,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},Ku=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},Ju=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},Qu=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},td=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,l=(e[c+1]+e[c+2])/2;r[c]=e[c],r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},ed=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,l=(e[c]+e[c+2])/2;r[c]=l,r[c+1]=e[c+1],r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},nd=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4,l=(e[c]+e[c+1])/2;r[c]=l,r[c+1]=l,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},id=t=>vs(t,[-1,-1,-1,-1,9,-1,-1,-1,-1]),rd=t=>vs(t,[-1,-1,-1,-1,8,-1,-1,-1,-1]),od=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=e[c+2],r[c+3]=255}return new ImageData(r,n,i)},sd=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let s=0;s<i;s++)for(let a=0;a<n;a++){const c=(s*n+a)*4;if(e[c+3]===0)r[c]=255,r[c+1]=255,r[c+2]=255,r[c+3]=255;else{const l=bs([e[c],e[c+1],e[c+2],e[c+3]],[255,255,255,255]);r[c]=l[0],r[c+1]=l[1],r[c+2]=l[2],r[c+3]=l[3]}}return new ImageData(r,n,i)},ad=(t,e,n,i,r,o=!1,s)=>{const{data:a,width:c,height:l}=t;let f=r,u=i,d=e,h=n;if(f<0?f=0:f>c&&(f=c),u<0?u=0:u>l&&(u=l),d<1?d=1:d>c&&(d=c),h<1?h=1:h>l&&(h=l),f+d>c&&(d=c-f),u+h>l&&(h=l-u),o){const _=new Uint8ClampedArray(a.length);for(let p=0;p<l;p++)for(let m=0;m<c;m++){const y=(p*c+m)*4;m>=f&&m<=f+d&&p>=u&&p<=u+h?(_[y]=a[y],_[y+1]=a[y+1],_[y+2]=a[y+2],_[y+3]=a[y+3]):(_[y]=255,_[y+1]=255,_[y+2]=255,_[y+3]=s&&["JPG","JPEG"].includes(s.toUpperCase())?255:0)}return new ImageData(_,c,l)}else{const _=new Uint8ClampedArray(d*h*4);for(let p=u;p<=u+h;p++)for(let m=f;m<=f+d;m++){const y=((p-u)*d+m-f)*4,b=(p*c+m)*4;_[y]=a[b],_[y+1]=a[b+1],_[y+2]=a[b+2],_[y+3]=a[b+3]}return new ImageData(_,d,h)}},ld=(t,e,n,i)=>{const{data:r,width:o,height:s}=t;let a=e;a>Math.floor(o/2)&&(a=Math.floor(o/2)),a>Math.floor(s/2)&&(a=Math.floor(s/2)),a<0&&(a=0);const c=new Uint8ClampedArray(r.length);for(let f=0;f<s;f++)for(let u=0;u<o;u++){const d=(f*o+u)*4;let h=-1;u<a?f<a?h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(a-f-1,2)):f>s-a-1&&(h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(f-(s-a),2))):u>o-a-1&&(f<a?h=Math.sqrt(Math.pow(u-(o-a),2)+Math.pow(a-f-1,2)):f>s-a-1&&(h=Math.sqrt(Math.pow(u-(o-a),2)+Math.pow(f-(s-a),2)))),Math.round(h)>a?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||n.toUpperCase()==="PNG"?0:255):(c[d]=r[d],c[d+1]=r[d+1],c[d+2]=r[d+2],c[d+3]=i||n.toUpperCase()==="PNG"?r[d+3]:255)}return new ImageData(c,o,s)},cd=(t,e,n,i,r,o=1e4)=>{const s=new Image;s.src=t;const a=document.createElement("canvas"),c=a.getContext("2d");return a.width=o,a.height=o,c.drawImage(s,0,0,e,n,0,0,i,r),c.getImageData(0,0,i,r)},hd=(t,e)=>{const{data:n,width:i,height:r}=t,o=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;o[l]=Math.max(Math.min(n[l]+e,255),0),o[l+1]=Math.max(Math.min(n[l+1]+e,255),0),o[l+2]=Math.max(Math.min(n[l+2]+e,255),0),o[l+3]=n[l+3]}return new ImageData(o,i,r)},fd=(t,e,n=!1)=>{const{data:i,width:r,height:o}=t,s=new Uint8ClampedArray(i.length);for(let c=0;c<o;c++)for(let l=0;l<r;l++){const f=(c*r+l)*4;i[f+3]===0?(s[f]=255,s[f+1]=255,s[f+2]=255):(s[f]=i[f],s[f+1]=i[f+1],s[f+2]=i[f+2]);let u=i[f+3];n?u=Math.max(Math.min(Math.floor(255*e),255),0):u=Math.max(Math.min(Math.floor(u+255*e),255),0),s[f+3]=u}return new ImageData(s,r,o)},ud=(t,e,n,i)=>{const{data:r,width:o,height:s}=t,{data:a,width:c,height:l}=e;let f=n,u=i;n+l>s&&(f=s-l),i+c>o&&(u=o-c);const d=new Uint8ClampedArray(r.length);for(let _=0;_<s;_++)for(let g=0;g<o;g++){const p=(_*o+g)*4;if(g<u||g>u+c||_<=f||_>=f+l)d[p]=r[p],d[p+1]=r[p+1],d[p+2]=r[p+2],d[p+3]=r[p+3];else{const m=(_*o+g-((f+1)*o+(_-(f+1))*(o-c))+c-u-1)*4,y=[a[m],a[m+1],a[m+2],a[m+3]],b=[r[p],r[p+1],r[p+2],r[p+3]],v=bs(y,b);d[p]=v[0],d[p+1]=v[1],d[p+2]=v[2],d[p+3]=v[3]}}return new ImageData(d,o,s)},dd=(t,e,n,i,r,o=10)=>{const{data:s,width:a,height:c}=t;let l=r,f=i,u=e,d=n;l<0?l=0:l>a&&(l=a),f<0?f=0:f>c&&(f=c),u<1?u=1:u>a&&(u=a),d<1?d=1:d>c&&(d=c),l+u>a&&(u=a-l),f+d>c&&(d=c-f);const h=new Uint8ClampedArray(s.length);for(let g=0;g<c;g++)for(let p=0;p<a;p++){const m=(g*a+p)*4;if(p>=l&&p<=l+u&&g>=f&&g<=f+d){const y=Math.floor((p-l)/o),b=Math.floor((g-f)/o);let v=Math.floor(o*(y+1)-o/2+l),E=Math.floor(o*(b+1)-o/2+f);v>a-1&&(v=a-1),E>c-1&&(E=c-1);const x=(E*a+v)*4;h[m]=s[x],h[m+1]=s[x+1],h[m+2]=s[x+2],h[m+3]=s[x+3]}else h[m]=s[m],h[m+1]=s[m+1],h[m+2]=s[m+2],h[m+3]=s[m+3]}return new ImageData(h,a,c)},_d=async(t,e,n,i,r,o)=>{const s=r/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const a=new Image;a.src=t;const c=document.createElement("canvas"),l=c.getContext("2d");c.width=e,c.height=n,l.drawImage(a,0,0,e,n),c.toBlob(f=>{o(f)},`image/${i.toLowerCase()}`,s)}else{const a=Math.floor(s*256),c=I.encode([t.data.buffer],e,n,a),l=new Blob([c]);o&&o(l)}},pd=(t,e,n={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(e&&n){const{data:i,width:r,height:o}=t,{data:s}=e,a=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:l}=n;for(let u=0;u<o;u++)for(let d=0;d<r;d++){const h=(u*r+d)*4,_=s[h],g=s[h+1],p=s[h+2],m=s[h+3];_===c.r&&g===c.g&&p===c.b&&m===c.a&&l.a!==0?(a[h]=l.r,a[h+1]=l.g,a[h+2]=l.b,a[h+3]=l.a):(a[h]=i[h],a[h+1]=i[h+1],a[h+2]=i[h+2],a[h+3]=i[h+3])}return new ImageData(a,r,o)}return t},vs=(t,e)=>{const{data:n,width:i,height:r}=t,o=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;for(let f=0;f<3;f++){const u=l+f;c===0||c===i-1||a===0||a===r-1?o[u]=n[u]:o[u]=e[0]*n[u-i*4-4]+e[1]*n[u-i*4]+e[2]*n[u-i*4+4]+e[3]*n[u-4]+e[4]*n[u]+e[5]*n[u+4]+e[6]*n[u+i*4-4]+e[7]*n[u+i*4]+e[8]*n[u+i*4+4]}o[l+3]=n[l+3]}return new ImageData(o,i,r)},bs=(t,e)=>{if(t&&t.length===4&&e&&e.length===4){const n=t[3],i=e[3];if(n===255||i===0)return t;if(n===0)return e;{const r=n/255,o=i/255,s=Math.max(Math.min(Math.floor(t[0]*r+e[0]*o*(1-r)),255),0),a=Math.max(Math.min(Math.floor(t[1]*r+e[1]*o*(1-r)),255),0),c=Math.max(Math.min(Math.floor(t[2]*r+e[2]*o*(1-r)),255),0),l=Math.max(Math.min(Math.floor((r+o*(1-r))*255),255),0);return[s,a,c,l]}}return[255,255,255,255]};function gd(){var t=null;if(window.ActiveXObject)for(var e=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],n=0;n<e.length;n++)try{t=new window.ActiveXObject(e[n]);break}catch{continue}else t=new XMLHttpRequest;return t}function md(t){if(t.action){if(t.method.toLowerCase()==="post")return{url:t.action,data:new FormData(t)};for(var e="",n=0;n<t.elements.length;n++){var i=t.elements[n];if(i.hasAttribute("name")){var r=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(r==="FILE")for(var o=0;o<i.files.length;e+="&"+escape(i.name)+"="+escape(i.files[o++].name));else(r!=="RADIO"&&r!=="CHECKBOX"||i.checked)&&(e+="&"+escape(i.name)+"="+escape(i.value))}}return{url:t.action.replace(/(?:\?.*)?$/,e.replace(/^&/,"?")),data:null}}}function wd(t,e){return new Promise((n,i)=>{var r=new XMLHttpRequest,o=function(){i("The request for "+t+" is timed out for "+e+".")},s=function(a){r.readyState===4&&(r.status===200?n(r.response):i(r.statusText))};r.open("GET",t),r.onload=s,r.timeout=e,r.ontimeout=o,r.upload.addEventListener("progress",function(a){if(a.lengthComputable){const c=Math.round(a.loaded*100/a.total);console.log(c+"%")}},!1),r.upload.addEventListener("load",function(a){},!1),r.send(null)})}function yd(t,e,n){return fetch(t,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},e)).then(i=>i.json())}function vd(t,e){var n=new XMLHttpRequest;n.open("HEAD",t),n.filepath=t,n.callback=e,n.onload=function(){var i=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),r=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(i)||r>i)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(i)&&this.callback(r,i))},n.send()}function Ti(t,e){if(e)window.localStorage.setItem(t,typeof e=="string"?e:JSON.stringify(e));else return window.localStorage.getItem(t)}function bd(t=""){t=t||Ti("theme")||"",t||(t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Ti("theme",t),document.documentElement.classList.toggle("dark",t==="dark")}const xd=(t={x:0,y:0})=>window.scrollTo(t.x,t.y);function cn(t){try{window.history.scrollRestoration=t}catch{}}"scrollRestoration"in window.history&&(cn("manual"),window.addEventListener("beforeunload",()=>{cn("auto")}),window.addEventListener("load",()=>{cn("manual")}));let hn;const xs=new WeakMap;function ki(t,e){let n=xs.get(t);n||(n=new Map,xs.set(t,n));let i=n.get(e);return i||(i=new Es,n.set(e,i)),i}class Es{subscribers;constructor(){this.subscribers=new Set}depend(){hn&&this.subscribers.add(hn)}notify(){this.subscribers.forEach(e=>e())}}function Ed(t){hn=t,t(),hn=null}function Sd(t){return Object.keys(t).forEach(e=>{let n=t[e];const i=ki(t,e);Object.defineProperty(t,e,{get(){return i.depend(),n},set(r){r!=n&&(n=r,i.notify())}})}),t}function Td(t){return new Proxy(t,{get(e,n,i){return ki(t,n).depend(),Reflect.get(e,n,i)},set(e,n,i,r){const o=ki(t,n);return t[n]!=i&&(t[n]=i,o.notify()),Reflect.set(e,n,i,r)}})}const kd=t=>t*Math.PI/180,Ad=t=>t*180/Math.PI,Ss=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},Cd=function(t,e){return{x:t.x+(e.x-t.x)/2,y:t.y+(e.y-t.y)/2}},Ai=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.atan2(i,n)},Ci=(t,e)=>({x:Math.cos(e)*t,y:Math.sin(e)*t}),Ts=(t,e=0,n=0)=>{if(t.vx+=t.ax??0,t.vy+=t.ay??0,t.vy+=e,n>0){const i=Math.atan2(t.vy,t.vx);let r=Math.sqrt(t.vx*t.vx+t.vy*t.vy);r>n?r-=n:r=0,t.vx=Math.cos(i)*r,t.vy=Math.sin(i)*r}t.x+=t.vx,t.y+=t.vy},Id=(t,e,n=.05,i=1,r=0)=>{const o=e.x-t.x,s=e.y-t.y;t.vx=o*n,t.vy=s*n,t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},ks=(t,e,n=.03,i=.95,r=0)=>{(zs(e)?e:[e]).forEach(s=>{const a=s.x-t.x,c=s.y-t.y,l=a*n,f=c*n;t.vx+=l,t.vy+=f}),t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},Dd=(t,e,n=100,i=.03,r=.95,o=0)=>{const s=Ai(t,e),a={x:e.x-Math.cos(s)*n,y:e.y-Math.sin(s)*n};ks(t,a,i,r,o)};function Pd(t,e){return{vx:e.x-t.x,vy:e.y-t.y}}const Md=function(t,e){return!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y)},As=function(t,e){return!(e.x<t.x||e.x>t.x+t.width||e.y<t.y||e.y>t.y+t.height)},Rd=(t,e)=>{const n=e.x,i=e.y,r=t.length;let o=!1;const s=2e-10;for(let a=0,c=r-1;a<r;c=a,a++){const l=t[a].x,f=t[a].y,u=t[c].x,d=t[c].y;if(l===n&&f===i||u===n&&d===i||i===f&&i===d)return!0;if(i>=f&&i<d||i<f&&i>=d){const h=(u-l)/(d-f),_=l+h*(i-f);if(_===n||Math.abs(_-n)<s)return!0;_>n&&(o=!o)}}return o};function St(t,e,n,i,r=!1){return{x:r?t*i+e*n:t*i-e*n,y:r?e*i-t*n:e*i+t*n}}function Od(t,e){const n=e.x-t.x,i=e.y-t.y;if(Math.sqrt(n*n+i*i)<t.radius+e.radius){const o=Math.atan2(i,n),s=Math.sin(o),a=Math.cos(o),c={x:0,y:0},l=St(n,i,s,a,!0),f=St(t.vx,t.vy,s,a,!0),u=St(e.vx,e.vy,s,a,!0),d=f.x-u.x;f.x=((t.mass-e.mass)*f.x+2*e.mass*u.x)/(t.mass+e.mass),u.x=d+f.x;const h=Math.abs(f.x)+Math.abs(u.x),_=t.radius+e.radius-Math.abs(c.x-l.x);c.x+=f.x/h*_,l.x+=u.x/h*_;const g=St(c.x,c.y,s,a,!1),p=St(l.x,l.y,s,a,!1);e.x=t.x+p.x,e.y=t.y+p.y,t.x=t.x+g.x,t.y=t.y+g.y;const m=St(f.x,f.y,s,a,!1),y=St(u.x,u.y,s,a,!1);t.vx=m.x,t.vy=m.y,e.vx=y.x,e.vy=y.y}}function Ld(t,e=0,n=0,i,r,o=-1){t.x+t.radius>i?(t.x=i-t.radius,t.vx*=o):t.x-t.radius<e&&(t.x=e+t.radius,t.vx*=o),t.y+t.radius>r?(t.y=r-t.radius,t.vy*=o):t.y-t.radius<n&&(t.y=n+t.radius,t.vy*=o)}const Ud=t=>/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(t),Fd=()=>Math.random()*16777215,zd=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,Bd=()=>`#${(~~(Math.random()*(1<<24))).toString(16)}`,st=function(t,e){return e===!0?typeof t=="number"?t|0:(typeof t=="string"&&t[0]==="#"&&(t=t.slice(1)),window.parseInt(t,16)):(typeof t=="number"&&(t="00000"+(t|0).toString(16),t="#"+t.substring(t.length-6)),t)},Ii=function(t,e){typeof t=="string"&&t[0]==="#"&&(t=window.parseInt(t.slice(1),16)),e=e===void 0?1:e;const n=t>>16&255,i=t>>8&255,r=t&255,o=e<0?0:e>1?1:e;return o===1?"rgb("+n+","+i+","+r+")":"rgba("+n+","+i+","+r+","+o+")"},Nd=t=>{const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);return n?"#"+((1<<24)+(parseInt(n[1])<<16)+(parseInt(n[2])<<8)+parseInt(n[3])).toString(16).slice(1):""},Cs=function(){const t={code:""},e=n=>{t.code=n.code.toLowerCase()};return window.addEventListener("keydown",e,!1),t},Di=function(t){const e={x:0,y:0,isDown:!1},n=o=>{e.isDown=!0,document.addEventListener("mouseup",i,!1),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=o=>{e.isDown=!1,e.x=0,e.y=0,document.removeEventListener("mouseup",i,!1),t.style.userSelect="",t.style.webkitUserSelect=""},r=o=>{const s=Ve(t,o);e.x=s.x,e.y=s.y};return t.addEventListener("mousedown",n,!1),document.addEventListener("mousemove",r,!1),e},jd=function(t){const e={x:0,y:0,isDown:!1},n=o=>{o.preventDefault(),e.isDown=!0},i=o=>{e.isDown=!1,e.x=0,e.y=0},r=o=>{const s=o.changedTouches[0],a=Ve(t,s);e.x=a.x,e.y=a.y};return t.addEventListener("touchstart",n,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1),t.addEventListener("touchmove",r,!1),e},Hd=function(t){const e={x:0,y:0,isDown:!1},n=o=>{e.isDown=!0,t.setPointerCapture(o.pointerId),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=o=>{e.isDown=!1,e.x=0,e.y=0,t.style.userSelect="",t.style.webkitUserSelect=""},r=o=>{const a=Ve(t,o);e.x=a.x,e.y=a.y};return t.addEventListener("pointerdown",n,!1),t.addEventListener("pointerup",i,!1),t.addEventListener("pointercancel",i,!1),t.addEventListener("pointermove",r,!1),e};class ut{m;constructor(e=[1,0,0,1,0,0]){this.m=[e[0],e[1],e[2],e[3],e[4],e[5]]}unit(){return this.m=[1,0,0,1,0,0],this}multiply(e){const n=this.m;let i;e instanceof ut?i=e.m:i=e;const r=n[0]*i[0]+n[2]*i[1],o=n[1]*i[0]+n[3]*i[1],s=n[0]*i[2]+n[2]*i[3],a=n[1]*i[2]+n[3]*i[3],c=n[0]*i[4]+n[2]*i[5]+n[4],l=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=o,n[2]=s,n[3]=a,n[4]=c,n[5]=l,this}inverse(){const e=new ut(this.m),n=e.m,i=1/(n[0]*n[3]-n[1]*n[2]),r=n[3]*i,o=-n[1]*i,s=-n[2]*i,a=n[0]*i,c=i*(n[2]*n[5]-n[3]*n[4]),l=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,n[4]=c,n[5]=l,e}translate(e,n){return this.multiply([1,0,0,1,e,n])}rotate(e){const n=e*Math.PI/180,i=Math.cos(n),r=Math.sin(n);return this.multiply([i,r,-r,i,0,0])}skew(e,n=0){const i=e*Math.PI/180,r=n*Math.PI/180,o=Math.tan(i),s=Math.tan(r);return this.multiply([1,s,o,1,0,0])}scale(e,n){return this.multiply([e,0,0,n,0,0])}transformPoint(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2]+this.m[4],n=i*this.m[1]+r*this.m[3]+this.m[5],[e,n]}transformVector(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2],n=i*this.m[1]+r*this.m[3],[e,n]}}class fn{x;y;z;constructor(e=[0,0,0],n=[0,0,0]){const[i,r,o]=e,[s,a,c]=n;this.x=i-s,this.y=r-a,this.z=o-c}get length(){const{x:e,y:n,z:i}=this;return Math.sqrt(e*e+n*n+i*i)}unit(){const e=this.length;return new fn([this.x/e,this.y/e,this.z/e])}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}cross(e){const n=this.x,i=this.y,r=this.z,o=e.x,s=e.y,a=e.z;return new fn([i*a-r*s,r*o-n*a,n*s-o*i])}}const Jt={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-Jt.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?Jt.Bounce.In(t*2)*.5:Jt.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}},random:function(t){return Math.random()},createStep:function(t){return function(e){return Math.floor(e*t)/t}},createNoisyEasing:function(t,e=.1){const n=1-e;return function(i){return e*Math.random()+n*t(i)}}};let Ce;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ce=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ce=self.performance.now.bind(self.performance):Date.now!==void 0?Ce=Date.now:Ce=function(){return new Date().getTime()};const Qt=Ce;class Is{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Qt(),n=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const o=this._tweens[i[r]],s=!n;o&&o.update(e,s)===!1&&!n&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Ut={Linear:function(t,e){const n=t.length-1,i=n*e,r=Math.floor(i),o=Ut.Utils.Linear;return e<0?o(t[0],t[1],i):e>1?o(t[n],t[n-1],n-i):o(t[r],t[r+1>n?n:r+1],i-r)},Bezier:function(t,e){let n=0;const i=t.length-1,r=Math.pow,o=Ut.Utils.Bernstein;for(let s=0;s<=i;s++)n+=r(1-e,i-s)*r(e,s)*t[s]*o(i,s);return n},CatmullRom:function(t,e){const n=t.length-1;let i=n*e,r=Math.floor(i);const o=Ut.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(r=Math.floor(i=n*(1+e))),o(t[(r-1+n)%n],t[r],t[(r+1)%n],t[(r+2)%n],i-r)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-i)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],i-n)-t[n]):o(t[r?r-1:0],t[r],t[n<r+1?n:r+1],t[n<r+2?n:r+2],i-r)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let i=e;i>1;i--)n*=i;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Ut.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,i,r){const o=(n-t)*.5,s=(i-e)*.5,a=r*r,c=r*a;return(2*e-2*n+o+s)*c+(-3*e+3*n-2*o-s)*a+o*r+e}}};class Ie{static _nextId=0;static nextId(){return Ie._nextId++}}const K=new Is;class qd{constructor(e,n=K){this._object=e,this._group=n}_id=Ie.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Jt.Linear.None;_interpolationFunction=Ut.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=Qt()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,n,i,r){for(const o in i){const s=e[o],a=Array.isArray(s),c=a?"array":typeof s,l=!a&&Array.isArray(i[o]);if(!(c==="undefined"||c==="function")){if(l){let f=i[o];if(f.length===0)continue;f=f.map(this._handleRelativeValue.bind(this,s)),i[o]=[s].concat(f)}if((c==="object"||a)&&s&&!l){n[o]=a?[]:{};for(const f in s)n[o][f]=s[f];r[o]=a?[]:{},this._setupProperties(s,n[o],i[o],r[o])}else typeof n[o]>"u"&&(n[o]=s),a||(n[o]*=1),l?r[o]=i[o].slice().reverse():r[o]=n[o]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Qt()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Qt()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=K){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=Jt.Linear.None){return this._easingFunction=e,this}interpolation(e=Ut.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Qt(),n=!0){if(this._isPaused)return!0;let i,r;const o=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;n&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(e-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const s=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,n,i,r){for(const o in i){if(n[o]===void 0)continue;const s=n[o]||0;let a=i[o];const c=Array.isArray(e[o]),l=Array.isArray(a);!c&&l?e[o]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(e[o],s,a,r):(a=this._handleRelativeValue(s,a),typeof a=="number"&&(e[o]=s+(a-s)*r))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=this._valuesStartRepeat[e],i=this._valuesEnd[e];typeof i=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(i):this._valuesStartRepeat[e]=i,this._valuesEnd[e]=n}}const Zd=Ie.nextId,Gd=K.getAll.bind(K),Xd=K.removeAll.bind(K),$d=K.add.bind(K),Vd=K.remove.bind(K),Yd=K.update.bind(K),Wd={Easing:Jt,Group:Is,Interpolation:Ut,now:Qt,Sequence:Ie,nextId:Zd,Tween:qd,getAll:Gd,removeAll:Xd,add:$d,remove:Vd,update:Yd};function Ds(t){const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function Kd(t,e){const n=Ds(t),{x:i,y:r}=n.getPointAtLength(e);return[i,r]}function Jd(t,e){return Ds(t).getTotalLength(e)}let J=null;function Qd({d:t},e,n){J||(J=document.createElement("canvas").getContext("2d"));const i=new Path2D(t);return J.isPointInPath(i,e,n)}function Ps({d:t},e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:o="miter"}){if(J||(J=document.createElement("canvas").getContext("2d")),J.isPointInStroke){J.save(),J.lineWidth=i,J.lineCap=r,J.lineJoin=o;const s=new Path2D(t),a=J.isPointInStroke(s,e,n);return J.restore(),a}}var Pi={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},t0=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function e0(t){var e=[];return t.replace(t0,function(n,i,r){var o=i.toLowerCase();for(r=i0(r),o=="m"&&r.length>2&&(e.push([i].concat(r.splice(0,2))),o="l",i=i=="m"?"l":"L");;){if(r.length==Pi[o])return r.unshift(i),e.push(r);if(r.length<Pi[o])throw new Error("malformed path data");e.push([i].concat(r.splice(0,Pi[o])))}}),e}var n0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function i0(t){var e=t.match(n0);return e?e.map(Number):[]}function r0(t){var e=0,n=0,i=0,r=0;return t.map(function(o){o=o.slice();var s=o[0],a=s.toUpperCase();if(s!=a)switch(o[0]=a,s){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(var c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(a){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}const De=Math.PI*2;function Ms(t,e,n,i){const r=t*i-e*n<0?-1:1;let o=t*n+e*i;return o>1&&(o=1),o<-1&&(o=-1),r*Math.acos(o)}function o0(t,e,n,i,r,o,s,a,c,l){const f=l*(t-n)/2+c*(e-i)/2,u=-c*(t-n)/2+l*(e-i)/2,d=s*s,h=a*a,_=f*f,g=u*u;let p=d*h-d*g-h*_;p<0&&(p=0),p/=d*g+h*_,p=Math.sqrt(p)*(r===o?-1:1);const m=p*s/a*u,y=p*-a/s*f,b=l*m-c*y+(t+n)/2,v=c*m+l*y+(e+i)/2,E=(f-m)/s,x=(u-y)/a,S=(-f-m)/s,C=(-u-y)/a,k=Ms(1,0,E,x);let A=Ms(E,x,S,C);return o===0&&A>0&&(A-=De),o===1&&A<0&&(A+=De),[b,v,k,A]}function s0(t,e){const n=1.3333333333333333*Math.tan(e/4),i=Math.cos(t),r=Math.sin(t),o=Math.cos(t+e),s=Math.sin(t+e);return[i,r,i-r*n,r+i*n,o+s*n,s-o*n,o,s]}function a0(t,e,n,i,r,o,s,a,c){const l=Math.sin(c*De/360),f=Math.cos(c*De/360),u=f*(t-n)/2+l*(e-i)/2,d=-l*(t-n)/2+f*(e-i)/2;if(u===0&&d===0)return[];if(s===0||a===0)return[];s=Math.abs(s),a=Math.abs(a);const h=u*u/(s*s)+d*d/(a*a);h>1&&(s*=Math.sqrt(h),a*=Math.sqrt(h));const _=o0(t,e,n,i,r,o,s,a,l,f),g=[];let p=_[2],m=_[3];const y=Math.max(Math.ceil(Math.abs(m)/(De/4)),1);m/=y;for(let b=0;b<y;b++)g.push(s0(p,m)),p+=m;return g.map(b=>{for(let v=0;v<b.length;v+=2){let E=b[v+0],x=b[v+1];E*=s,x*=a;const S=f*E-l*x,C=l*E+f*x;b[v+0]=S+_[0],b[v+1]=C+_[1]}return b})}function l0(t){for(var e,n=[],i=0,r=0,o=0,s=0,a=null,c=null,l=0,f=0,u=0,d=t.length;u<d;u++){var h=t[u],_=h[0];switch(_){case"M":o=h[1],s=h[2];break;case"A":var g=a0(l,f,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!g.length)continue;g=g.map(v=>{const[E,x,S,C,k,A,D,P]=v;return{x1:S,y1:C,x2:k,y2:A,x:D,y:P}});for(var p=0,m;p<g.length;p++)m=g[p],h=["C",m.x1,m.y1,m.x2,m.y2,m.x,m.y],p<g.length-1&&n.push(h);break;case"S":var y=l,b=f;(e=="C"||e=="S")&&(y+=y-i,b+=b-r),h=["C",y,b,h[1],h[2],h[3],h[4]];break;case"T":e=="Q"||e=="T"?(a=l*2-a,c=f*2-c):(a=l,c=f),h=Rs(l,f,a,c,h[1],h[2]);break;case"Q":a=h[1],c=h[2],h=Rs(l,f,h[1],h[2],h[3],h[4]);break;case"L":h=un(l,f,h[1],h[2]);break;case"H":h=un(l,f,h[1],f);break;case"V":h=un(l,f,l,h[1]);break;case"Z":h=un(l,f,o,s);break}e=_,l=h[h.length-2],f=h[h.length-1],h.length>4?(i=h[h.length-4],r=h[h.length-3]):(i=l,r=f),n.push(h)}return n}function un(t,e,n,i){return["C",t,e,n,i,n,i]}function Rs(t,e,n,i,r,o){return["C",t/3+2/3*n,e/3+2/3*i,r/3+2/3*n,o/3+2/3*i,r,o]}function c0(t){return typeof t!="string"?!1:(t=t.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4)}const dn=Symbol("initialPath"),dt=Symbol("path"),Tt=Symbol("bounds"),_n=Symbol("savedPaths"),_t=Symbol("renderProps"),Mi=Symbol("beginPath");class h0{constructor(e){if(!c0(e))throw new Error("Not an SVG path!");this[dn]=r0(e0(e)),this[dt]=l0(this[dn]),this[Tt]=null,this[_n]=[],this[_t]={},this[Mi]=!1}save(){return this[_n].push({path:this[dt],bounds:this[Tt],renderProps:Object.assign({},this[_t])}),this}restore(){if(this[_n].length){const{path:e,bounds:n,renderProps:i}=this[_n].pop();this[dt]=e,this[Tt]=n,this[_t]=i}return this}get bounds(){if(!this[Tt]){const e=this[dt];if(this[Tt]=[0,0,0,0],e.length){const n=[1/0,1/0,-1/0,-1/0];for(let i=0,r=e.length;i<r;i++){const o=e[i].slice(1);for(let s=0;s<o.length;s+=2)o[s+0]<n[0]&&(n[0]=o[s+0]),o[s+1]<n[1]&&(n[1]=o[s+1]),o[s+0]>n[2]&&(n[2]=o[s+0]),o[s+1]>n[3]&&(n[3]=o[s+1])}this[Tt]=n}}return this[Tt]}get size(){const e=this.bounds;return[e[2]-e[0],e[3]-e[1]]}get center(){const[e,n,i,r]=this.bounds;return[(e+i)/2,(n+r)/2]}get d(){let e=this[dt].map(n=>{const[i,...r]=n;return i+r.join()}).join("");return this.isClosed&&(e+="Z"),e}get path(){return this[dt]}get isClosed(){const e=this[dn][this[dn].length-1];return e&&e[0]==="Z"}isPointInPath(e,n){return Qd(this,e,n)}isPointInStroke(e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:o="miter"}){if(Ps)return Ps(this,e,n,{lineWidth:i,lineCap:r,lineJoin:o})}getPointAtLength(e){return Kd(this.d,e)}getTotalLength(){return Jd(this.d)}transform(...e){this[Tt]=null;const n=new ut(e),i=this[dt];return this[dt]=i.map(r=>{const[o,...s]=r,a=[o];for(let c=0;c<s.length;c+=2){const l=s[c],f=s[c+1],[u,d]=n.transformPoint(l,f);a.push(u,d)}return a}),this}translate(e,n){const i=new ut().translate(e,n);return this.transform(...i.m)}rotate(e){const n=new ut().rotate(e);return this.transform(...n.m)}scale(e,n){n==null&&(n=e);const i=new ut().scale(e,n);return this.transform(...i.m)}skew(e,n){const i=new ut().skew(e,n);return this.transform(...i.m)}trim(){const[e,n]=this.bounds;return this.translate(-e,-n),this}beginPath(){return this[Mi]=!0,this}toCanvas(e){const n=this[dt],i=this[_t];return n.length&&(this[Mi]&&e.beginPath(),n.forEach(r=>{const[o,...s]=r;o==="M"?e.moveTo(...s):e.bezierCurveTo(...s)}),this.isClosed&&e.closePath()),Object.assign(e,i),{stroke(){return e.stroke(),this},fill(){return e.fill(),this}}}strokeStyle(e){return this[_t].strokeStyle=e,this}fillStyle(e){return this[_t].fillStyle=e,this}lineWidth(e){return this[_t].lineWidth=e,this}lineCap(e){return this[_t].lineCap=e,this}lineJoin(e){return this[_t].lineJoin=e,this}}const Os=f0("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function f0(t,e=10){const n={},i=t.split(",");for(let r=0;r<i.length;r+=2){const o="&"+i[r+1]+";",s=parseInt(i[r],e);n[o]="&#"+s+";"}return n["\\xa0"]="&#160;",n}function Z(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t=t.replace(new RegExp("{"+n[i]+"}","gi"),""+e[n[i]]);return t}function pn(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const i="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=i[Math.floor(Math.random()*i.length)];while(t[e]);return e}function u0(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function d0(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const Pe={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Ri{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const i=this.__ctx.__createElement("stop");if(i.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const o=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);o&&(i.setAttribute("stop-color",Z("rgb({r},{g},{b})",{r:o[1],g:o[2],b:o[3]})),i.setAttribute("stop-opacity",o[4]))}else i.setAttribute("stop-color",n);this.__root.appendChild(i)}}class Ls{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class gn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:i=500,enableMirroring:r=!1}){this.enableMirroring=r,e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=n,this.height=i),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Pe);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=Pe[r].canvas}}__getStyleState(){const e={},n=Object.keys(Pe);for(let i=0,r=n.length;i<r;i++){const o=n[i];e[o]=this[o]}return e}__applyStyleState(e){const n=Object.keys(e);for(let i=0,r=n.length;i<r;i++){const o=n[i];this[o]=e[o]}}__createElement(e,n={},i=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",e),o=Object.keys(n);i&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let s=0;s<o.length;s++){const a=o[s];r.setAttribute(a,n[a])}return r}__applyStyleToCurrentElement(e){let n=this.__currentElement;const i=this.__currentElementsToStyle;i&&(n.setAttribute(e,""),n=i.element,i.children.forEach(o=>{o.setAttribute(e,"")}));const r=Object.keys(Pe);for(let o=0;o<r.length;o++){const s=Pe[r[o]],a=this[r[o]];if(s.apply){if(a instanceof Ls){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(s.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ri)n.setAttribute(s.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}));else if(s.apply.indexOf(e)!==-1&&s.svg!==a)if((s.svgAttr==="stroke"||s.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(s.svgAttr,Z("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let f=parseFloat(l[4]);const u=this.globalAlpha;u!=null&&(f*=u),n.setAttribute(s.svgAttr+"-opacity",""+f)}else{let c=s.svgAttr;if(r[o]==="globalAlpha"&&(c=e+"-"+s.svgAttr,n.getAttribute(c)))continue;c&&n.setAttribute(c,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const r=Object.keys(Os);for(let o=0,s=r.length;o<s;o++){const a=r[o],c=Os[a],l=new RegExp(a,"gi");l.test(n)&&(n=n.replace(l,c))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const r=this.__createElement("g");n.appendChild(r),this.__currentElement=r}let i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=e,this.__currentElement.setAttribute("transform",i)}scale(e,n){n===void 0&&(n=e),this.__addTransform(Z("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(Z("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(Z("translate({x},{y})",{x:e,y:n}))}transform(e,n,i,r,o,s){this.__addTransform(Z("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:i,d:r,e:o,f:s}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"?e.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",e.nodeName)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Z("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,i,r,o,s){this.__currentPosition={x:o,y:s},this.__addPathCommand(Z("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:i,cp2y:r,x:o,y:s}))}quadraticCurveTo(e,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(Z("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:i,y:r}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,i,r,o){const s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof s>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(s===e&&a===n||e===i&&n===r||o===0){this.lineTo(e,n);return}const c=this.normalize([s-e,a-n]),l=this.normalize([i-e,r-n]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(e,n);return}const f=c[0]*l[0]+c[1]*l[1],u=Math.acos(Math.abs(f)),d=this.normalize([c[0]+l[0],c[1]+l[1]]),h=o/Math.sin(u/2),_=e+h*d[0],g=n+h*d[1],p=[-c[1],c[0]],m=[l[1],-l[0]],y=function(E){const x=E[0];return E[1]>=0?Math.acos(x):-Math.acos(x)},b=y(p),v=y(m);this.lineTo(_+p[0]*o,g+p[1]*o),this.arc(_,g,o,b,v)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,n,i,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+i,n),this.lineTo(e+i,n+r),this.lineTo(e,n+r),this.lineTo(e,n),this.closePath()}fillRect(e,n,i,r){const o=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,i,r){const o=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),i=this.__rootSVG.childNodes[1],r=i.childNodes;for(let o=r.length-1;o>=0;o--)r[o]&&i.removeChild(r[o]);this.__currentElement=i,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,i,r){if(e===0&&n===0&&i===this.width&&r===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),s=this.__createElement("rect",{x:e,y:n,width:i,height:r,fill:"#FFFFFF"},!0);o.appendChild(s)}createLinearGradient(e,n,i,r){const o=this.__createElement("linearGradient",{id:pn(this.__ids),x1:e+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Ri(o,this)}createRadialGradient(e,n,i,r,o,s){const a=this.__createElement("radialGradient",{id:pn(this.__ids),cx:r+"px",cy:o+"px",r:s+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ri(a,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),i={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(i.decoration="underline"),this.__fontHref&&(i.href=this.__fontHref),i}__wrapTextLink(e,n){if(e.href){const i=this.__createElement("a");return i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),i.appendChild(n),i}return n}__applyText(e,n,i,r){const o=this.__parseFont(),s=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:n,y:i,"text-anchor":u0(this.textAlign),"dominant-baseline":d0(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),s.appendChild(this.__wrapTextLink(o,a))}fillText(e,n,i){this.__applyText(e,n,i,"fill")}strokeText(e,n,i){this.__applyText(e,n,i,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,i,r,o,s){if(r===o)return;r=r%(2*Math.PI),o=o%(2*Math.PI),r===o&&(o=(o+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));const a=e+i*Math.cos(o),c=n+i*Math.sin(o),l=e+i*Math.cos(r),f=n+i*Math.sin(r),u=s?0:1;let d=0,h=o-r;h<0&&(h+=2*Math.PI),s?d=h>Math.PI?0:1:d=h>Math.PI?1:0,this.lineTo(l,f),this.__addPathCommand(Z("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:d,sweepFlag:u,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const e=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=pn(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",i),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",Z("url(#{id})",{id:i})),e.appendChild(r),this.__currentElement=r}drawImage(...e){let n=e[0],i,r,o,s,a=0,c=0,l,f,u,d,h,_,g,p;if(e.length===3)i=e[1],r=e[2],l=n.width,f=n.height,o=l,s=f;else if(e.length===5)i=e[1],r=e[2],o=e[3],s=e[4],l=n.width,f=n.height;else if(e.length===9)a=e[1],c=e[2],l=e[3],f=e[4],i=e[5],r=e[6],o=e[7],s=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const m=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+i+", "+r+")";if(n instanceof gn){if(u=n.getSvg().cloneNode(!0),u.childNodes&&u.childNodes.length>1){for(d=u.childNodes[0];d.childNodes.length;)p=d.childNodes[0].getAttribute("id"),this.__ids[p]=p,this.__SVGdefs.appendChild(d.childNodes[0]);if(h=u.childNodes[1],h){const b=h.getAttribute("transform");let v;b?v=b+" "+y:v=y,h.setAttribute("transform",v),m.appendChild(h)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(_=this.__createElement("image"),_.setAttribute("width",o),_.setAttribute("height",s),_.setAttribute("preserveAspectRatio","none"),(a||c||l!==n.width||f!==n.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=s,g.getContext("2d")?.drawImage(n,a,c,l,f,0,0,o,s),n=g),_.setAttribute("transform",y),_.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),m.appendChild(_))}createPattern(e,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=pn(this.__ids);let o;return i.setAttribute("id",r),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+e.width),o.setAttribute("height",""+e.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),i.appendChild(o),this.__SVGdefs.appendChild(i)):e instanceof gn&&(i.setAttribute("width",""+e.width),i.setAttribute("height",""+e.height),i.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new Ls(i,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}const _0=gn,p0=function(t,e,n,i,r,o){t.beginPath(),t.moveTo(e,n+o),t.lineTo(e,n+r-o),t.quadraticCurveTo(e,n+r,e+o,n+r),t.lineTo(e+i-o,n+r),t.quadraticCurveTo(e+i,n+r,e+i,n+r-o),t.lineTo(e+i,n+o),t.quadraticCurveTo(e+i,n,e+i-o,n),t.lineTo(e+o,n),t.quadraticCurveTo(e,n,e,n+o),t.stroke()},g0=function(t,e,n,i){var r=e-i,o=0,s=1;t.beginPath(),t.moveTo(r,o);do{if(s>2e4)break;var a=(e+n)*Math.cos(s*Math.PI/72)-(n+i)*Math.cos((e+n)/n*(s*Math.PI/72)),c=(e+n)*Math.sin(s*Math.PI/72)-(n+i)*Math.sin((e+n)/n*(s*Math.PI/72));t.lineTo(a,c),r=a,o=c,s++}while(a!=e-i&&c!=0);t.stroke()},m0=function(t,e){t.save(),t.beginPath(),t.moveTo(e,0);for(var n=0;n<9;n++)t.rotate(Math.PI/5),n%2==0?t.lineTo(e/.525731*.200811,0):t.lineTo(e,0);t.closePath(),t.fill(),t.restore()},w0=function(t,e,n,i,r){var o=0;function s(){t.clearRect(e,n,i,r),t.setLineDash([4,2]),t.lineDashOffset=-o,t.strokeRect(e,n,i,r)}function a(){o++,o>16&&(o=0),s(),setTimeout(a,40)}a()},y0=function(t){t.beginPath(),t.arc(75,75,50,0,Math.PI*2,!0),t.moveTo(110,75),t.arc(75,75,35,0,Math.PI,!1),t.moveTo(65,65),t.arc(60,65,5,0,Math.PI*2,!0),t.moveTo(95,65),t.arc(90,65,5,0,Math.PI*2,!0),t.stroke()};class v0{constructor(e=0,n=0,i="#ffff00",r=0){this.x=e,this.y=n,this.color=i,this.rotation=r}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=2,e.fillStyle=this.color,e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath(),e.fill(),e.stroke(),e.restore()}}class b0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.radius=e,this.vx=0,this.vy=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}getBounds(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}}class x0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.radius=e,this.vx=0,this.vy=0,this.vz=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1,this.visible=!0}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class E0{constructor(e=50,n=50,i="#ff0000"){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(i),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.rect(0,0,this.width,this.height),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class S0{constructor(e,n,i,r){this.x=e===void 0?-100:e,this.y=n===void 0?-100:n,this.z=i===void 0?-100:i,this.brightness=r===void 0?1:r}setBrightness(e){this.brightness=Math.min(Math.max(e,0),1)}}class T0{constructor(e,n,i,r){this.x=0,this.y=0,this.x1=e===void 0?0:e,this.y1=n===void 0?0:n,this.x2=i===void 0?0:i,this.y2=r===void 0?0:r,this.rotation=0,this.scaleX=1,this.scaleY=1,this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.beginPath(),e.moveTo(this.x1,this.y1),e.lineTo(this.x2,this.y2),e.closePath(),e.stroke(),e.restore()}getBounds(){if(this.rotation===0){var e=Math.min(this.x1,this.x2),n=Math.min(this.y1,this.y2),i=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:this.x+e,y:this.y+n,width:i-e,height:r-n}}else{var o=Math.sin(this.rotation),s=Math.cos(this.rotation),a=s*this.x1-o*this.y1,c=s*this.x2-o*this.y2,l=s*this.y1+o*this.x1,f=s*this.y2+o*this.x2;return{x:this.x+Math.min(a,c),y:this.y+Math.min(l,f),width:Math.max(a,c)-Math.min(a,c),height:Math.max(l,f)-Math.min(l,f)}}}}class k0{constructor(e,n,i){this.x=e===void 0?0:e,this.y=n===void 0?0:n,this.z=i===void 0?0:i,this.fl=250,this.vpX=0,this.vpY=0,this.cX=0,this.cY=0,this.cZ=0}setVanishingPoint(e,n){this.vpX=e,this.vpY=n}setCenter(e,n,i){this.cX=e,this.cY=n,this.cZ=i}rotateX(e){var n=Math.cos(e),i=Math.sin(e),r=this.y*n-this.z*i,o=this.z*n+this.y*i;this.y=r,this.z=o}rotateY(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.z*i,o=this.z*n+this.x*i;this.x=r,this.z=o}rotateZ(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.y*i,o=this.y*n+this.x*i;this.x=r,this.y=o}getScreenX(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*e}getScreenY(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*e}}class A0{constructor(){this.x=0,this.y=0,this.width=25,this.height=20,this.rotation=0,this.showFlame=!1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=1,e.strokeStyle="#ffffff",e.beginPath(),e.moveTo(10,0),e.lineTo(-10,10),e.lineTo(-5,0),e.lineTo(-10,-10),e.lineTo(10,0),e.closePath(),e.stroke(),this.showFlame&&(e.beginPath(),e.moveTo(-7.5,-5),e.lineTo(-15,0),e.lineTo(-7.5,5),e.closePath(),e.stroke()),e.restore()}}class C0{constructor(e,n,i){this.min=e===void 0?0:e,this.max=n===void 0?100:n,this.value=i===void 0?100:i,this.onchange=null,this.x=0,this.y=0,this.width=16,this.height=100,this.backColor="#cccccc",this.backBorderColor="#999999",this.backWidth=4,this.backX=this.width/2-this.backWidth/2,this.handleColor="#eeeeee",this.handleBorderColor="#cccccc",this.handleHeight=6,this.handleY=0,this.updatePosition()}draw(e){e.save(),e.translate(this.x,this.y),e.fillStyle=this.backColor,e.beginPath(),e.fillRect(this.backX,0,this.backWidth,this.height),e.closePath(),e.strokeStyle=this.handleBorderColor,e.fillStyle=this.handleColor,e.beginPath(),e.rect(0,this.handleY,this.width,this.handleHeight),e.closePath(),e.fill(),e.stroke(),e.restore()}updateValue(){var e=this.value,n=this.height-this.handleHeight,i=this.max-this.min;this.value=(n-this.handleY)/n*i+this.min,typeof this.onchange=="function"&&this.value!==e&&this.onchange()}updatePosition(){var e=this.height-this.handleHeight,n=this.max-this.min;this.handleY=e-(this.value-this.min)/n*e}captureMouse(e){var n=this,i=Di(e),r={};a(),e.addEventListener("mousedown",function(){As(r,i.x,i.y)&&(e.addEventListener("mouseup",o,!1),e.addEventListener("mousemove",s,!1))},!1);function o(){e.removeEventListener("mousemove",s,!1),e.removeEventListener("mouseup",o,!1),a()}function s(){var c=i.y-n.y;n.handleY=Math.min(n.height-n.handleHeight,Math.max(c,0)),n.updateValue()}function a(){r.x=n.x,r.y=n.y+n.handleY,r.width=n.width,r.height=n.handleHeight}}}class I0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=Ii(this.color,this.alpha),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}}class D0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1,this.light=null}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=this.getAdjustedColor(),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}getAdjustedColor(){var e=st(this.color,!0),n=e>>16,i=e>>8&255,r=e&255,o=this.getLightFactor();return n*=o,i*=o,r*=o,st(n<<16|i<<8|r)}getLightFactor(){var e={x:this.pointA.x-this.pointB.x,y:this.pointA.y-this.pointB.y,z:this.pointA.z-this.pointB.z},n={x:this.pointB.x-this.pointC.x,y:this.pointB.y-this.pointC.y,z:this.pointB.z-this.pointC.z},i={x:e.y*n.z-e.z*n.y,y:-(e.x*n.z-e.z*n.x),z:e.x*n.y-e.y*n.x},r=i.x*this.light.x+i.y*this.light.y+i.z*this.light.z,o=Math.sqrt(i.x*i.x+i.y*i.y+i.z*i.z),s=Math.sqrt(this.light.x*this.light.x+this.light.y*this.light.y+this.light.z*this.light.z);return Math.acos(r/(o*s))/Math.PI*this.light.brightness}}class P0{constructor(){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.scaleX=1,this.scaleY=1,this.color="#ffffff",this.alpha=1,this.lineWidth=1,this.branch=[],this.branch[0]=-140-Math.random()*20,this.branch[1]=-30-Math.random()*30,this.branch[2]=Math.random()*80-40,this.branch[3]=-100-Math.random()*40,this.branch[4]=-60-Math.random()*40,this.branch[5]=Math.random()*60-30,this.branch[6]=-110-Math.random()*20}draw(e){e.save(),e.translate(this.x,this.y),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.strokeStyle=Ii(this.color,this.alpha),e.beginPath(),e.moveTo(0,0),e.lineTo(0,this.branch[0]),e.moveTo(0,this.branch[1]),e.lineTo(this.branch[2],this.branch[3]),e.moveTo(0,this.branch[4]),e.lineTo(this.branch[5],this.branch[6]),e.stroke(),e.restore()}}class M0{constructor(e,n,i){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=i===void 0?"#ffffff":st(i),this.lineWidth=1}draw(e){var n=this.height,i=this.width+n,r=n/2;e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.moveTo(0,-r),e.lineTo(i-2*r,-r),e.quadraticCurveTo(-r+i,-r,-r+i,0),e.lineTo(-r+i,n-2*r),e.quadraticCurveTo(-r+i,-r+n,i-2*r,-r+n),e.lineTo(0,-r+n),e.quadraticCurveTo(-r,-r+n,-r,n-2*r),e.lineTo(-r,0),e.quadraticCurveTo(-r,-r,0,-r),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.beginPath(),e.arc(0,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.beginPath(),e.arc(this.width,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.restore()}getPin(){return{x:this.x+Math.cos(this.rotation)*this.width,y:this.y+Math.sin(this.rotation)*this.width}}}class R0{canvas;context;mouse;keyboard;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.mouse=Di(this.canvas),this.keyboard=Cs()}getMouseRotation(e){return Ai(e,this.mouse)}followMouse(e,n){const i=this.getMouseRotation(e),{x:r,y:o}=Ci(n,i);return e.x+=r,e.y+=o,e}followMouseWithAcceleration(e,n=.05){const i=this.getMouseRotation(e),{x:r,y:o}=Ci(n,i);return e.ax=r,e.ay=o,Ts(e),e}getMouseDistance(e){return Ss(e,this.mouse)}clearRect(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}lineWidth(e){return this.context.lineWidth=e,this}fillStyle(e){return this.context.fillStyle=e,this}fill(){return this.context.fill(),this}strokeStyle(e){return this.context.strokeStyle=e,this}stroke(){return this.context.stroke(),this}createLinearGradient(e,n,i){const r=this.context.createLinearGradient(e.x,e.y,n.x,n.y);return Object.keys(i).forEach(o=>r.addColorStop(parseFloat(o),i[parseFloat(o)])),r}createRadialGradient(e,n,i){const r=this.context.createRadialGradient(e.x,e.y,e.radius,n.x,n.y,n.radius);return Object.keys(i).forEach(o=>r.addColorStop(parseFloat(o),i[parseFloat(o)])),r}moveTo(e){this.context.moveTo(e.x,e.y)}closePath(){this.context.closePath()}lineTo(e,n){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.lineTo(n.x,n.y),this.context.stroke(),this.context.restore()}drawMouseMoveLine(){const e=()=>{this.context.lineTo(this.mouse.x,this.mouse.y),this.stroke()};this.canvas.addEventListener("mousedown",()=>{this.context.beginPath(),this.context.moveTo(this.mouse.x,this.mouse.y),this.canvas.addEventListener("mousemove",e,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",e,!1)},!1)}drawMouseMoveBrushLine({brush_size:e,brush_density:n,brush_color:i}={brush_size:25,brush_density:50,brush_color:"#000000"}){const r=this.getImageData(),o=r.data,s=st(i,!0),a=()=>{for(let c=0;c<n;c++){const l=Math.random()*Math.PI*2,f=Math.random()*e,u=this.mouse.x+Math.cos(l)*f|0,d=this.mouse.y+Math.sin(l)*f|0,h=(u+d*r.width)*4;o[h]=s>>16&255,o[h+1]=s>>8&255,o[h+2]=s&255,o[h+3]=255}this.putImageData(r)};this.canvas.addEventListener("mousedown",()=>{this.canvas.addEventListener("mousemove",a,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",a,!1)},!1)}quadraticCurveTo(e,n,i){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.quadraticCurveTo(n.x,n.y,i.x,i.y),this.context.stroke(),this.context.restore()}drawQuadraticCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);for(let i=1;i<n;i+=2)this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y);this.context.stroke()}quadraticThroughCurveTo(e,n,i){n.x=n.x*2-(e.x+i.x)/2,n.y=n.y*2-(e.y+i.y)/2,this.quadraticCurveTo(e,n,i)}drawQuadraticThroughCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);let i=1;for(;i<n-2;i++)this.context.quadraticCurveTo(e[i].x,e[i].y,(e[i].x+e[i+1].x)/2,(e[i].y+e[i+1].y)/2);this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y),this.context.stroke()}drawQuadraticThroughCurveLineBetter(e){const n=e.length;if(n<3)return new Error("points length must >= 3");const i=(e[0].x+e[n-1].x)/2,r=(e[0].y+e[n-1].y)/2;this.context.beginPath(),this.context.moveTo(i,r);let o=0;for(;o<n-1;o++){const s=(e[o].x+e[o+1].x)/2,a=(e[o].y+e[o+1].y)/2;this.context.quadraticCurveTo(e[o].x,e[o].y,s,a)}this.context.quadraticCurveTo(e[o].x,e[o].y,r,r),this.context.stroke()}fillRect(e){this.context.save(),this.context.fillRect(e.x,e.y,e.width,e.height),this.context.stroke(),this.context.restore()}drawImage(e,n=0,i=0){this.context.drawImage(e,n,i)}getImageData(e={x:0,y:0,width:this.canvas.width,height:this.canvas.height},n){return this.context.getImageData(e.x,e.y,e.width,e.height,n)}putImageData(e,n=0,i=0){return this.context.putImageData(e,n,i)}drawShape(e){e.draw(this.context)}}class Oi{static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(i=>{Oi.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}function Us(t,e){return!t||t.parentElement===null?e:Us(t.parentElement,e.concat([t]))}const Li=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},O0=function(t){return Li(t,"overflow")+Li(t,"overflow-y")+Li(t,"overflow-x")},L0=function(t){return/(auto|scroll)/.test(O0(t))};function U0(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return;const e=Us(t.parentElement,[]);for(let n=0;n<e.length;n+=1)if(L0(e[n]))return e[n];return document.scrollingElement||document.documentElement}w.Arrow=v0,w.Ball=b0,w.Ball3d=x0,w.BaseError=gt,w.Box=E0,w.C2S=_0,w.CanvasPath=R0,w.DOMKeyboardKeyCode=At,w.Dep=Es,w.EnvironmentError=Fi,w.FileSelectCancelError=mn,w.IllegalFileError=zi,w.Light=S0,w.Line=T0,w.Matrix=ut,w.MimeType=Q,w.Point3d=k0,w.RGBToHex=Nd,w.Segment=M0,w.Ship=A0,w.Slider=C0,w.SvgPath=h0,w.TWEEN=Wd,w.Tree=P0,w.Triangle=I0,w.TriangleLight=D0,w.Vector=fn,w.VideoUtil=Oi,w.WebSocket=le,w.addEventListener=Ac,w.addWatermark=ud,w.angle2radian=kd,w.animateCanvas=Oc,w.animateInWeb=Vr,w.base64urlDecode=sc,w.base64urlEncode=oc,w.blobToLinkExport=Fu,w.blobToRawImage=Uu,w.captureKeyboard=Cs,w.captureMouse=Di,w.capturePointer=Hd,w.captureTouch=jd,w.changeBrightness=hd,w.changeDiaphaneity=fd,w.changeSize=cd,w.checkAnimatedPointCollision=Od,w.checkAnimatedPointWalls=Ld,w.clearCookies=Ll,w.clickEvent=Mc,w.colorToRGB=Ii,w.compileTemplate=kc,w.compression=_d,w.copyToClipboard=dc,w.createXMLHttpRequest=gd,w.drawSpirograph=g0,w.drawStar=m0,w.dynamicStrokeLine=w0,w.fetchUseFetch=yd,w.fetchUseXMLHttpRequest=wd,w.fileOrBlobToDataURL=Ei,w.fileToArrayBufferPromise=Ur,w.flipSideToSide=Nu,w.flipUpsideDown=ju,w.getBrowserClient=ql,w.getBrowserClientVersion=Zl,w.getBrowserLanguage=Xl,w.getCanvasImageData=xi,w.getCanvasImageDataByBitmap=Mu,w.getCanvasImageDataByVideo=Pu,w.getCookie=Rl,w.getCookieObject=Ol,w.getDocumentElement=qt,w.getElementLeftInPage=Nr,w.getElementPositionInPage=Br,w.getElementPositionInPage2=zl,w.getElementPositionInViewport=Bl,w.getElementTopInPage=jr,w.getFileExtension=Fr,w.getFileType=wn,w.getFileTypeFromFile=Tl,w.getFilesImageInfo=Du,w.getFixedWidthText=Sc,w.getFormElementData=md,w.getImageDataByAIData=pd,w.getImageMainColor=Bu,w.getInternetExplorerVersion=Gr,w.getMouseButton=Rc,w.getMouseOrTouchPositionInElement=Ve,w.getMouseOrTouchPositionInPage=Hr,w.getMouseOrTouchPositionInViewport=jl,w.getOperatingSystem=ce,w.getOperatingSystemVersion=Hl,w.getPageClient=Zn,w.getPageScroll=qn,w.getPageSize=Ul,w.getPageVerticalScrollPercent=Nl,w.getRawImageInfo=bi,w.getScrollParent=U0,w.getSelectedText=_c,w.getTarget=Pc,w.getTextWidth=Ec,w.getTimeZone=$l,w.getURL=$r,w.getUrlParams=lc,w.getUrlParams2=cc,w.getUserGeolocationPromise=Gl,w.getViewportSize=$e,w.handleDragAndDropFiles=Al,w.handleHashChange=fc,w.handleHistoryChange=uc,w.handleInputFiles=kl,w.handleURLChange=hc,w.hasDocument=tc,w.hasHistory=ec,w.hasProcess=nc,w.hasWindow=Xr,w.htmlElementToBlob=zu,w.htmlIncodeOrDecode=Tc,w.ifWebFileHasChanged=vd,w.imageDataToBitmap=Ru,w.imageDataToBlob=Lu,w.imageDataToDataURL=Ou,w.isAndroid=Zr,w.isAppleDevice=Vl,w.isBrowser=Jl,w.isBrowserSupportFileAPI=ic,w.isDarkMode=Wl,w.isElementFocus=pc,w.isElementInViewport=Fl,w.isHexColor=Ud,w.isIE=Kl,w.isIOS=qr,w.isMobile=Yl,w.isNode=Ql,w.isPolygonContainPoint=Rd,w.isRectContainPoint=As,w.isRectIntersectRect=Md,w.isTabInView=mc,w.isURL=ac,w.jpgToPng=od,w.lazyloadImages=bc,w.leftRotate=Hu,w.loadScript=vc,w.localstorage=Ti,w.marginSharpen=rd,w.microTask=Pl,w.mosaic=dd,w.navigateBack=wc,w.navigateBack2=yc,w.newPointDependOnLengthAndRotation=Ci,w.nextFramePoint=Ts,w.nextFramePointEaseToTarget=Id,w.nextFramePointSpringConnect=Dd,w.nextFramePointSpringToTarget=ks,w.onDocumentReady=Dl,w.parseColor=st,w.patchDOM=zr,w.pngToJpg=sd,w.pointDistance=Ss,w.pointMiddle=Cd,w.pointRotationRadian=Ai,w.preventDefault=Dc,w.radian2angle=Ad,w.radiusClip=ld,w.randomColorHex=zd,w.randomColorHex2=Bd,w.randomColorNumber=Fd,w.reactiveVue2=Sd,w.reactiveVue3=Td,w.readeFile=Il,w.rectClip=ad,w.removeEventListener=Cc,w.rightRotate=qu,w.rotate=St,w.roundedRect=p0,w.scrollTo=xd,w.selectFile=Cl,w.setCookie=Ml,w.setRem=rc,w.setScrollRestoration=cn,w.setTheme=bd,w.sharpen=id,w.siblings=gc,w.smileFace=y0,w.stopPropagation=Ic,w.stringToBlob=ys,w.toBlackAndWhite=Xu,w.toBlue=Wu,w.toBlueAndGreen=Qu,w.toBlueAndGrey=nd,w.toGreen=Yu,w.toGreenAndGrey=ed,w.toGrey=Zu,w.toGrey2=Gu,w.toOpposite=$u,w.toRed=Vu,w.toRedAndBlue=Ju,w.toRedAndGreen=Ku,w.toRedAndGrey=td,w.trackVelocity=Pd,w.waitForStyleSheetsLoaded=xc,w.watchEffect=Ed,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
18
18
  //# sourceMappingURL=zyzgroup_core_web.umd.cjs.map