@zyzgroup/core-web 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zyzgroup_core_web.iife.js +8 -2
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +7564 -4235
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +8 -2
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/canvas/canvas2svg.d.ts +104 -0
- package/types/canvas/canvas2svg.d.ts.map +1 -0
- package/types/canvas/index.d.ts +11 -2
- package/types/canvas/index.d.ts.map +1 -1
- package/types/dom.d.ts +21 -21
- package/types/dom.d.ts.map +1 -1
- package/types/env.d.ts +2 -0
- package/types/env.d.ts.map +1 -1
- package/types/file.d.ts +0 -9
- package/types/file.d.ts.map +1 -1
- package/types/image.d.ts +2 -0
- package/types/image.d.ts.map +1 -1
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/localstorage.d.ts +2 -1
- package/types/localstorage.d.ts.map +1 -1
- package/types/position.d.ts +10 -6
- package/types/position.d.ts.map +1 -1
- package/types/scrollparent.d.ts +2 -0
- package/types/scrollparent.d.ts.map +1 -0
- package/types/sprite-math/index.d.ts.map +1 -1
- package/types/sprite-math/matrix.d.ts +10 -10
- package/types/sprite-math/matrix.d.ts.map +1 -1
- package/types/sprite-math/vector.d.ts +4 -4
- package/types/sprite-math/vector.d.ts.map +1 -1
- package/types/visual_util.d.ts +61 -12
- package/types/visual_util.d.ts.map +1 -1
- package/types/mouse.d.ts +0 -3
- package/types/mouse.d.ts.map +0 -1
- package/types/theme.d.ts +0 -2
- package/types/theme.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ZYZGroupCoreWeb=function(p){"use strict";class oe extends Error{cause;constructor(n,e){super(n,e),this.name=this.constructor.name}}class pn extends oe{constructor(){super("This is not a browser environment")}}class Se extends oe{constructor(){super("Cancel select")}}class bn extends oe{accepts;constructor(n){super(`Please select files in ${n} format`),this.accepts=n}}function fa(t){const n=t.slice(0,4),e=new FileReader;let i="";return new Promise((a,r)=>{e.onload=function(){const s=e.result;switch(new DataView(s).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 a(i)},e.readAsArrayBuffer(n)})}function ha(t,n){t.addEventListener("change",function(){n(t.files)},!1)}function da(t,n){t.addEventListener("dragover",function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")},!1),t.addEventListener("drop",function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer&&n(e.dataTransfer.files)},!1)}const ua=(t=["*"],n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new pn;const e=globalThis.document.createElement("input");return e.setAttribute("type","file"),e.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&e.setAttribute("accept",t.join(",")),n&&e.setAttribute("multiple","true"),e.click(),new Promise((a,r)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!e.files||e.files?.length===0)&&r(new Se)},1e3)},{once:!0}),e.addEventListener("change",()=>{if(!e.files||e.files?.length===0)r(new Se);else{const s=Array.from(e.files);i(s)&&r(new bn(t)),a(s)}})});function i(a){return!t.includes("*")&&a.some(r=>!t.includes(`.${vn(r)}`))}},ga=t=>{const n=new FileReader;return new Promise((e,i)=>{n.addEventListener("progress",a=>{const r="("+Math.floor(a.total/1e3)+" KB)",s=Math.floor(a.loaded/a.total*100)+"%";console.log(`Loading size: ${r} progress: ${s}`)}),n.addEventListener("load",a=>{e(a.target?.result)}),n.addEventListener("error",a=>{i(a)}),t(n)})},vn=t=>{let n;return t instanceof File?n=t.name:n=t,n.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""},_a=t=>/^image\//.test(t.type),wa=t=>/^video\//.test(t.type),ma=t=>/^audio\//.test(t.type),pa=t=>/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/.test(t.type),ba=t=>/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/.test(t.type),va=t=>/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/.test(t.type),ya=t=>/^application\/json$/.test(t.type),ka=t=>/^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(t.type);function Ia(t){const n=new Blob(["("+t.toString()+")()"],{type:"application/javascript"});return URL.createObjectURL(n)}function Ta(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}function xa(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(n=>setTimeout(()=>{throw n}))}function yn(t,n,e){if(!t){e&&n&&e.appendChild(n);return}if(!t.isEqualNode(n)){if(t.nodeName!==n.nodeName){e.replaceChild(n,t);return}if(t.nodeType===Node.TEXT_NODE){t.textContent!==n.textContent&&(t.textContent=n.textContent);return}for(let i=t.attributes.length-1;i>=0;i--){const a=t.attributes[i].name;!n.hasAttribute(a)&&a!=="open"&&t.removeAttribute(a)}for(let i=0;i<n.attributes.length;i++){const a=n.attributes[i].name,r=n.attributes[i].value;t.setAttribute(a,r)}for(let i=0;i<n.childNodes.length;i++)t.childNodes[i]?yn(t.childNodes[i],n.childNodes[i],t):t.appendChild(n.childNodes[i].cloneNode(!0));for(;t.childNodes.length>n.childNodes.length;)t.lastChild&&t.removeChild(t.lastChild)}}function Ea(t,n,e){var i=new Date;i.setTime(i.getTime()+e*24*60*60*1e3);var a="expires="+i.toGMTString();document.cookie=t+"="+n+"; "+a}function Sa(t){for(var n=t+"=",e=document.cookie.split(";"),i=0;i<e.length;i++){var a=e[i].trim();if(a.indexOf(n)==0)return a.substring(n.length,a.length)}return""}const Aa=()=>document.cookie.split(";").map(t=>t.split("=")).reduce((t,[n,e])=>(t[n.trim().replace('"',"")]=e)&&t,{}),Ca=()=>document.cookie.split(";").forEach(t=>document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class zt{constructor(n){this.waitingResponse=[],this.messageQueue=[],this.url=n,this.createSocket()}createSocket(){this.socket=new zt(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(n=>this.socket.send(n)),this.messageQueue=[]},this.socket.onclose=n=>{const{code:e,reason:i,wasClean:a}=n;console.log(`ws closed : ${e} ${i} ${a}`)},this.socket.onerror=n=>{console.log(`ws error : ${n}`)},this.socket.onmessage=n=>{this.processMessage(n)}}recreateSocket(n){console.log("Reconnection Attempted"),this.messageQueue.push(n),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(n){let e=+new Date;const i=this.waitingResponse[e]={sent:e},a={...i,...n};try{this.socket.readyState===zt.OPEN?this.socket.send(JSON.stringify(a)):this.recreateSocket(JSON.stringify(a));const r=await new Promise(function(s,l){i.resolve=s,console.log(i),setTimeout(()=>{l("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),r}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[e]}}async processMessage(n){try{let e=JSON.parse(n.data);if(Object.prototype.hasOwnProperty.call(e,"requestid")){const i=this.waitingResponse[e.requestid];i?i.resolve(e):console.warn("Got data but found no associated request, already timed out?",e)}else console.warn("Got data without request id",e)}catch{console.log(n.data)}}async sendRequest(n,e,i=a=>{console.log(a)}){this.sendPayload(n).then(function(a){e(a)},function(a){i(a)})}sendMessage(n){const e=(()=>{try{return JSON.stringify(n)}catch{return n}})();this.socket.readyState===zt.OPEN?this.socket.send(e):this.recreateSocket(e)}}function xt(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function le(){const t=xt();return{width:t.clientWidth||window.innerWidth,height:t.clientHeight||window.innerHeight}}function Da(){const t=xt(),n=le();return{width:Math.max(t.scrollWidth,n.width),height:Math.max(t.scrollHeight,n.height)}}function Ma(t){const n=le(),e=t.getBoundingClientRect();return e.bottom>0&&e.top<n.height&&e.right>0&&e.left<n.width}function Ae(){const t=xt();return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ce(){const t=xt();return{clientLeft:t.clientLeft,clientTop:t.clientTop}}function kn(t){let n=t.offsetLeft,e=t.offsetParent;for(;e!==null;)n+=e.offsetLeft,e=e.offsetParent;return n}function In(t){let n=t.offsetTop,e=t.offsetParent;for(;e!==null;)n+=e.offsetTop,e=e.offsetParent;return n}function Ra(t){return{x:kn(t),y:In(t)}}function La(t){const n=t.getBoundingClientRect(),e=Ae(),i=Ce();return{x:n.left+e.scrollLeft-i.clientLeft,y:n.top+e.scrollTop-i.clientTop}}function Ua(t){const n=t.getBoundingClientRect();return{x:n.left,y:n.top}}function Pa(){const t=xt(),n=t.scrollHeight-t.clientHeight;return n<=0?0:t.scrollTop/n*100}function Fa(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const n=Ae(),e=Ce();return{x:t.clientX+n.scrollLeft-e.clientLeft,y:t.clientY+n.scrollTop-e.clientTop}}function za(t){return{x:t.clientX,y:t.clientY}}const Oa=typeof document<"u"&&document.ontouchstart?"touchstart":"click";function Ba(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}}const Ot=()=>{const t=navigator.userAgent.toLowerCase();let n="Unknown";return t.includes("mac")?n="macOS":t.includes("win")?n="Windows":/android/.test(t)?n="Android":/iphone|ipad|ipod/.test(t)?n="iOS":/linux/.test(t)?n="Linux":/bsd/.test(t)&&(n="BSD"),n.toLowerCase()},Ha=()=>{const t=navigator.userAgent;let n="Unknown";if(/Windows NT/.test(t)){const e=t.match(/Windows NT (\d+\.\d+)/);e&&(n=e[1])}else if(/Mac OS X/.test(t)){const e=t.match(/Mac OS X (\d+_\d+)/);e&&(n=e[1].replace("_","."))}else if(/Android/.test(t)){const e=t.match(/Android (\d+\.\d+)/);e&&(n=e[1])}else if(/iPhone|iPad|iPod/.test(t)){const e=t.match(/OS (\d+_\d+)/);e&&(n=e[1].replace("_","."))}return n.toLowerCase()},Za=()=>{const t=navigator.userAgent.toLowerCase();let n="Unknown";return/chrome/.test(t)?n="Chrome":/firefox/.test(t)?n="Firefox":/safari/.test(t)?n="Safari":/edge/.test(t)?n="Edge":/msie|trident/.test(t)&&(n="IE"),n.toLowerCase()},qa=()=>{const t=navigator.userAgent;let n="Unknown";if(/Chrome/.test(t)){const e=t.match(/Chrome\/(\d+\.\d+)/);e&&(n=e[1])}else if(/Firefox/.test(t)){const e=t.match(/Firefox\/(\d+\.\d+)/);e&&(n=e[1])}else if(/Safari/.test(t)){const e=t.match(/Version\/(\d+\.\d+)/);e&&(n=e[1])}else if(/Edge/.test(t)){const e=t.match(/Edge\/(\d+\.\d+)/);e&&(n=e[1])}else if(/MSIE|Trident/.test(t)){const e=t.match(/(?:MSIE|rv:)(\d+\.\d+)/);e&&(n=e[1])}return n},Xa=()=>"geolocation"in navigator?new Promise((t,n)=>{navigator.geolocation.getCurrentPosition(e=>{const i=e.coords.latitude,a=e.coords.longitude;t({latitude:i,longitude:a})},e=>{n(e)})}):Promise.reject("Geolocation is not available.");function $a(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function Na(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function Tn(){return Ot()==="ios"}function Ya(){return Ot()==="ios"|Ot()==="macos"}function xn(){return Ot()==="android"}function ja(){return Tn()||xn()}function Ga(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}const Va=typeof window=="object"&&typeof document=="object",Wa=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Ka=typeof document<"u",En=typeof window<"u",Ja=typeof history<"u",Qa=typeof process<"u",tr=En&&window.File&&window.FileReader&&window.FileList&&window.Blob;function er(t){var n=document.documentElement,e=window.devicePixelRatio;n.dataset.dpr=e;var i=100,a=function(){var r=Math.min(n.clientWidth,t);n.dataset.width=r,n.dataset.rem=i=Math.round(100*(r/t)),n.style.fontSize=i+"px"};a(),window.rem2px=function(r){return r=parseFloat(r),r*i},window.px2rem=function(r){return r=parseFloat(r),r/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",a,!1)}function nr(t){return btoa(encodeURIComponent(t)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function ir(t){let n=t.replaceAll("*","+").replaceAll("-","/"),e=n.length%4;return e&&(n=n.padEnd(n.length+(4-e),"=")),decodeURIComponent(atob(n))}const ar=t=>!/^([a-z]+:)?[\\/]/i.test(t);function Sn(t){return new URL(t)}function rr(t){let n=Sn(t);return n.protocol==="http:"||n.protocol==="https:"}const sr=t=>Array.from(new URLSearchParams(t)).reduce((n,[e,i])=>Object.assign({},n,{[e]:n[e]?(Array.isArray(n[e])?n[e]:[n[e]]).concat(i):i}),{});function or(){let t={},n=location.search;return n&&(n=n.substring(1,n.length),n.split("&").forEach(i=>{const a=i.split("=");t[a[0]]=decodeURIComponent(a[1])})),t}function lr(t){let n="";new MutationObserver(function(i){window.location.href!==n&&(n=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 cr(t){window.addEventListener("hashchange",()=>{t(location.hash)})}function fr(t){window.addEventListener("popstate",t,!1)}function hr(t){t=t||localStorage.theme,t||(t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",localStorage.theme=t),document.documentElement.classList.toggle("dark",t==="dark")}class dt{static getEvent(n){const e=n.keyCode||n.charCode;return{code:e,key:dt.codeToKey(e)}}static keyToCode(n){return Object.prototype.hasOwnProperty.call(dt.keyToCodes,n)?dt.keyToCodes[n]:-1}static codeToKey(n){return Object.prototype.hasOwnProperty.call(dt.codeToKeys,n.toString())?dt.codeToKeys[n.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 dr=t=>navigator.clipboard.writeText(t),ur=()=>window.getSelection().toString(),gr=t=>t===document.activeElement,_r=t=>[].slice.call(t.parentNode.children).filter(n=>n!==t),wr=()=>!document.hidden,mr=()=>history.back(),pr=()=>history.go(-1);function br(t){let n=document.createElement("script");n.type="text/javascript",n.src=t,n.async=!1,document.body.appendChild(n),n.onload=()=>{},n.onerror=()=>{}}function vr(){const t=document.getElementsByTagName("img"),n=le().height;let e=0;return()=>{for(let i=e;i<t.length;i++)t[i].getBoundingClientRect().top<n&&(t[i].src=t[i].getAttribute("data-src")??"",e=i+1)}}const yr=t=>new Promise(n=>{const e=Array.from(t.querySelectorAll("link[rel=stylesheet]"));let i=t.styleSheets.length??0;const a=()=>i>=e.length?(n(),!0):!1;a()||e.forEach(r=>{r.onload=()=>{i+=1,a()}})}),kr=(t,n,e=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=n>12?n+"px":"12px",i.style.fontWeight=e.toString(),i.innerText=t,document.body.appendChild(i);const a=i.offsetWidth;return document.body.removeChild(i),a},Ir=(t,n,e=12,i=400,a=!0)=>{let r="",s="",l="";if(!t||n<e||typeof t!="string")return r;const c=t.split(""),o=document.createElement("span");o.style.visibility="hidden",o.style.padding="0",o.style.whiteSpace="nowrap",o.style.overflow="visible",o.style.fontSize=e>12?e+"px":"12px",o.style.fontWeight=i.toString(),document.body.appendChild(o);for(let h=0,u=c.length;h<u;h++){const d=c[h];if(s=l,l+=d,r=l,o.innerText=l,o.offsetWidth>n){a?r=s+"...":r=s;break}}return document.body.removeChild(o),r};function Tr(t){let n=t[0];for(let e=1;e<arguments.length;e++){let i=String(arguments[e]);n+=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),n+=t[e]}return n}function xr(t){var n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(var e in n)Object.hasOwnProperty.call(n,e)&&(t=t.replace(new RegExp(e,"g"),n[e]));return t}function Er(t){const n=/<%=(.+?)%>/g,e=/<%([\s\S]+?)%>/g;return t=t.replace(n,"`); \n echo( $1 ); \n echo(`").replace(e,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
1
|
+
var ZYZGroupCoreWeb=function(w){"use strict";class Pe extends Error{cause;constructor(e,n){super(e,n),this.name=this.constructor.name}}class Oi extends Pe{constructor(){super("This is not a browser environment")}}class pn extends Pe{constructor(){super("Cancel select")}}class Ui extends Pe{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 Qt{constructor(e){this.waitingResponse=[],this.messageQueue=[],this.url=e,this.createSocket()}createSocket(){this.socket=new Qt(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===Qt.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===Qt.OPEN?this.socket.send(n):this.recreateSocket(n)}}function zt(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Re(){const t=zt();return{width:t.clientWidth||window.innerWidth,height:t.clientHeight||window.innerHeight}}function Xo(){const t=zt(),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=zt();return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function wn(){const t=zt();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=zt(),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 te=()=>{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 te()==="ios"}function ra(){return te()==="ios"|te()==="macos"}function Zi(){return te()==="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 kt{static getEvent(e){const n=e.keyCode||e.charCode;return{code:n,key:kt.codeToKey(n)}}static keyToCode(e){return Object.prototype.hasOwnProperty.call(kt.keyToCodes,e)?kt.keyToCodes[e]:-1}static codeToKey(e){return Object.prototype.hasOwnProperty.call(kt.codeToKeys,e.toString())?kt.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={"&":"&","<":"<",">":">",""":'"',"'":"'"};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){
|
|
2
2
|
let output = "";
|
|
3
3
|
|
|
4
4
|
function echo(html){
|
|
@@ -8,5 +8,11 @@ var ZYZGroupCoreWeb=function(p){"use strict";class oe extends Error{cause;constr
|
|
|
8
8
|
${t}
|
|
9
9
|
|
|
10
10
|
return output;
|
|
11
|
-
})`}function Sr(t,n,e){t.addEventListener?t.addEventListener(n,e,!1):t.attachEvent?t.attachEvent("on"+n,e):t["on"+n]=e}function Ar(t,n,e){t.removeEventListener?t.removeEventListener(n,e,!1):t.detachEvent?t.detachEvent("on"+n,e):t["on"+n]=null}function Cr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Dr(t){t.preventDefault?t.preventDefault:t.returnValue=!1}function Mr(t){return t.target||t.srcElement}function Rr(t){return t.relatedTarget?t.relatedTarget:t.toElement?t.toElement:t.fromElement?t.fromElement:null}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(n){const e=new Date().getTime(),i=Math.max(0,16-(e-t)),a=window.setTimeout(function(){n(e+i)},i);return t=e+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();const An=t=>{function n(e){const i=window.requestAnimationFrame(n);t(e,i)}window.requestAnimationFrame(n)},Lr=(t,n)=>{const i=document.getElementById(t).getContext("2d");An((a,r)=>{n(i,a,r)})};function Ur(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cn={exports:{}};(function(t){var n={};t.exports=n,n.parse=function(e,i){for(var a=n.bin.readUshort,r=n.bin.readUint,o=0,s={},l=new Uint8Array(e),c=l.length-4;r(l,c)!=101010256;)c--;var o=c;o+=4,o+=4;var h=a(l,o);o+=2,a(l,o),o+=2;var u=r(l,o);o+=4;var d=r(l,o);o+=4,o=d;for(var f=0;f<h;f++){r(l,o),o+=4,o+=4,o+=4,o+=4,r(l,o),o+=4;var u=r(l,o);o+=4;var g=r(l,o);o+=4;var w=a(l,o),_=a(l,o+2),m=a(l,o+4);o+=6,o+=8;var b=r(l,o);o+=4,o+=w+_+m,n._readLocal(l,b,s,u,g,i)}return s},n._readLocal=function(e,i,a,r,s,l){var c=n.bin.readUshort,o=n.bin.readUint;o(e,i),i+=4,c(e,i),i+=2,c(e,i),i+=2;var h=c(e,i);i+=2,o(e,i),i+=4,o(e,i),i+=4,i+=8;var u=c(e,i);i+=2;var d=c(e,i);i+=2;var f=n.bin.readUTF8(e,i,u);if(i+=u,i+=d,l){a[f]={size:s,csize:r};return}var g=new Uint8Array(e.buffer,i);if(h==0)a[f]=new Uint8Array(g.buffer.slice(i,i+r));else if(h==8){var w=new Uint8Array(s);n.inflateRaw(g,w),a[f]=w}else throw"unknown compression method: "+h},n.inflateRaw=function(e,i){return n.F.inflate(e,i)},n.inflate=function(e,i){return e[0],e[1],n.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),i)},n.deflate=function(e,i){i==null&&(i={level:6});var a=0,r=new Uint8Array(50+Math.floor(e.length*1.1));r[a]=120,r[a+1]=156,a+=2,a=n.F.deflateRaw(e,r,a,i.level);var s=n.adler(e,0,e.length);return r[a+0]=s>>>24&255,r[a+1]=s>>>16&255,r[a+2]=s>>>8&255,r[a+3]=s>>>0&255,new Uint8Array(r.buffer,0,a+4)},n.deflateRaw=function(e,i){i==null&&(i={level:6});var a=new Uint8Array(50+Math.floor(e.length*1.1)),r=n.F.deflateRaw(e,a,r,i.level);return new Uint8Array(a.buffer,0,r)},n.encode=function(e,i){i==null&&(i=!1);var a=0,r=n.bin.writeUint,s=n.bin.writeUshort,l={};for(var c in e){var o=!n._noNeed(c)&&!i,h=e[c],u=n.crc.crc(h,0,h.length);l[c]={cpr:o,usize:h.length,crc:u,file:o?n.deflateRaw(h):h}}for(var c in l)a+=l[c].file.length+30+46+2*n.bin.sizeUTF8(c);a+=22;var d=new Uint8Array(a),f=0,g=[];for(var c in l){var w=l[c];g.push(f),f=n._writeHeader(d,f,c,w,0)}var _=0,m=f;for(var c in l){var w=l[c];g.push(f),f=n._writeHeader(d,f,c,w,1,g[_++])}var b=f-m;return r(d,f,101010256),f+=4,f+=4,s(d,f,_),f+=2,s(d,f,_),f+=2,r(d,f,b),f+=4,r(d,f,m),f+=4,f+=2,d.buffer},n._noNeed=function(e){var i=e.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},n._writeHeader=function(e,i,a,r,s,l){var c=n.bin.writeUint,o=n.bin.writeUshort,h=r.file;c(e,i,s==0?67324752:33639248),i+=4,s==1&&(i+=2),o(e,i,20),i+=2,o(e,i,0),i+=2,o(e,i,r.cpr?8:0),i+=2,c(e,i,0),i+=4,c(e,i,r.crc),i+=4,c(e,i,h.length),i+=4,c(e,i,r.usize),i+=4,o(e,i,n.bin.sizeUTF8(a)),i+=2,o(e,i,0),i+=2,s==1&&(i+=2,i+=2,i+=6,c(e,i,l),i+=4);var u=n.bin.writeUTF8(e,i,a);return i+=u,s==0&&(e.set(h,i),i+=h.length),i},n.crc={table:function(){for(var e=new Uint32Array(256),i=0;i<256;i++){for(var a=i,r=0;r<8;r++)a&1?a=3988292384^a>>>1:a=a>>>1;e[i]=a}return e}(),update:function(e,i,a,r){for(var s=0;s<r;s++)e=n.crc.table[(e^i[a+s])&255]^e>>>8;return e},crc:function(e,i,a){return n.crc.update(4294967295,e,i,a)^4294967295}},n.adler=function(e,i,a){for(var r=1,s=0,l=i,c=i+a;l<c;){for(var o=Math.min(l+5552,c);l<o;)r+=e[l++],s+=r;r=r%65521,s=s%65521}return s<<16|r},n.bin={readUshort:function(e,i){return e[i]|e[i+1]<<8},writeUshort:function(e,i,a){e[i]=a&255,e[i+1]=a>>8&255},readUint:function(e,i){return e[i+3]*16777216+(e[i+2]<<16|e[i+1]<<8|e[i])},writeUint:function(e,i,a){e[i]=a&255,e[i+1]=a>>8&255,e[i+2]=a>>16&255,e[i+3]=a>>24&255},readASCII:function(e,i,a){for(var r="",s=0;s<a;s++)r+=String.fromCharCode(e[i+s]);return r},writeASCII:function(e,i,a){for(var r=0;r<a.length;r++)e[i+r]=a.charCodeAt(r)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,i,a){for(var r="",s,l=0;l<a;l++)r+="%"+n.bin.pad(e[i+l].toString(16));try{s=decodeURIComponent(r)}catch{return n.bin.readASCII(e,i,a)}return s},writeUTF8:function(e,i,a){for(var r=a.length,s=0,l=0;l<r;l++){var c=a.charCodeAt(l);if(!(c&4294967168))e[i+s]=c,s++;else if(!(c&4294965248))e[i+s]=192|c>>6,e[i+s+1]=128|c>>0&63,s+=2;else if(!(c&4294901760))e[i+s]=224|c>>12,e[i+s+1]=128|c>>6&63,e[i+s+2]=128|c>>0&63,s+=3;else if(!(c&4292870144))e[i+s]=240|c>>18,e[i+s+1]=128|c>>12&63,e[i+s+2]=128|c>>6&63,e[i+s+3]=128|c>>0&63,s+=4;else throw"e"}return s},sizeUTF8:function(e){for(var i=e.length,a=0,r=0;r<i;r++){var s=e.charCodeAt(r);if(!(s&4294967168))a++;else if(!(s&4294965248))a+=2;else if(!(s&4294901760))a+=3;else if(!(s&4292870144))a+=4;else throw"e"}return a}},n.F={},n.F.deflateRaw=function(e,i,a,r){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]],l=s[r],c=n.F.U,o=n.F._goodIndex;n.F._hash;var h=n.F._putsE,u=0,d=a<<3,f=0,g=e.length;if(r==0){for(;u<g;){var w=Math.min(65535,g-u);h(i,d,u+w==g?1:0),d=n.F._copyExact(e,u,w,i,d+8),u+=w}return d>>>3}var _=c.lits,m=c.strt,b=c.prev,y=0,v=0,I=0,k=0,T=0,S=0;for(g>2&&(S=n.F._hash(e,0),m[S]=0),u=0;u<g;u++){if(T=S,u+1<g-2){S=n.F._hash(e,u+1);var x=u+1&32767;b[x]=m[S],m[S]=x}if(f<=u){(y>14e3||v>26697)&&g-u>100&&(f<u&&(_[y]=u-f,y+=2,f=u),d=n.F._writeBlock(u==g-1||f==g?1:0,_,y,k,e,I,u-I,i,d),y=v=k=0,I=u);var E=0;u<g-2&&(E=n.F._bestMatch(e,u,b,T,Math.min(l[2],g-u),l[3]));var w=E>>>16,C=E&65535;if(E!=0){var w=E>>>16,C=E&65535,D=o(w,c.of0);c.lhst[257+D]++;var U=o(C,c.df0);c.dhst[U]++,k+=c.exb[D]+c.dxb[U],_[y]=w<<23|u-f,_[y+1]=C<<16|D<<8|U,y+=2,f=u+w}else c.lhst[e[u]]++;v++}}for((I!=u||e.length==0)&&(f<u&&(_[y]=u-f,y+=2,f=u),d=n.F._writeBlock(1,_,y,k,e,I,u-I,i,d),y=0,v=0,y=v=k=0,I=u);d&7;)d++;return d>>>3},n.F._bestMatch=function(e,i,a,r,s,l){var c=i&32767,o=a[c],h=c-o+32768&32767;if(o==c||r!=n.F._hash(e,i-h))return 0;for(var u=0,d=0,f=Math.min(32767,i);h<=f&&--l!=0&&o!=c;){if(u==0||e[i+u]==e[i+u-h]){var g=n.F._howLong(e,i,h);if(g>u){if(u=g,d=h,u>=s)break;h+2<g&&(g=h+2);for(var w=0,_=0;_<g-2;_++){var m=i-h+_+32768&32767,b=a[m],y=m-b+32768&32767;y>w&&(w=y,o=m)}}}c=o,o=a[c],h+=c-o+32768&32767}return u<<16|d},n.F._howLong=function(e,i,a){if(e[i]!=e[i-a]||e[i+1]!=e[i+1-a]||e[i+2]!=e[i+2-a])return 0;var r=i,s=Math.min(e.length,i+258);for(i+=3;i<s&&e[i]==e[i-a];)i++;return i-r},n.F._hash=function(e,i){return(e[i]<<8|e[i+1])+(e[i+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(e,i,a,r,s,l,c,o,h){var u=n.F.U,d=n.F._putsF,f=n.F._putsE,g,w,_,m,b,y,v,I,k;u.lhst[256]++,g=n.F.getTrees(),w=g[0],_=g[1],m=g[2],b=g[3],y=g[4],v=g[5],I=g[6],k=g[7];var T=(h+3&7?8-(h+3&7):0)+32+(c<<3),S=r+n.F.contSize(u.fltree,u.lhst)+n.F.contSize(u.fdtree,u.dhst),x=r+n.F.contSize(u.ltree,u.lhst)+n.F.contSize(u.dtree,u.dhst);x+=14+3*v+n.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var E=0;E<286;E++)u.lhst[E]=0;for(var E=0;E<30;E++)u.dhst[E]=0;for(var E=0;E<19;E++)u.ihst[E]=0;var C=T<S&&T<x?0:S<x?1:2;if(d(o,h,e),d(o,h+1,C),h+=3,C==0){for(;h&7;)h++;h=n.F._copyExact(s,l,c,o,h)}else{var D,U;if(C==1&&(D=u.fltree,U=u.fdtree),C==2){n.F.makeCodes(u.ltree,w),n.F.revCodes(u.ltree,w),n.F.makeCodes(u.dtree,_),n.F.revCodes(u.dtree,_),n.F.makeCodes(u.itree,m),n.F.revCodes(u.itree,m),D=u.ltree,U=u.dtree,f(o,h,b-257),h+=5,f(o,h,y-1),h+=5,f(o,h,v-4),h+=4;for(var P=0;P<v;P++)f(o,h+P*3,u.itree[(u.ordr[P]<<1)+1]);h+=3*v,h=n.F._codeTiny(I,u.itree,o,h),h=n.F._codeTiny(k,u.itree,o,h)}for(var M=l,kt=0;kt<a;kt+=2){for(var it=i[kt],It=it>>>23,se=M+(it&(1<<23)-1);M<se;)h=n.F._writeLit(s[M++],D,o,h);if(It!=0){var Ft=i[kt+1],mn=Ft>>16,Tt=Ft>>8&255,ht=Ft&255;h=n.F._writeLit(257+Tt,D,o,h),f(o,h,It-u.of0[Tt]),h+=u.exb[Tt],h=n.F._writeLit(ht,U,o,h),d(o,h,mn-u.df0[ht]),h+=u.dxb[ht],M+=It}}h=n.F._writeLit(256,D,o,h)}return h},n.F._copyExact=function(e,i,a,r,s){var l=s>>>3;return r[l]=a,r[l+1]=a>>>8,r[l+2]=255-r[l],r[l+3]=255-r[l+1],l+=4,r.set(new Uint8Array(e.buffer,i,a),l),s+(a+4<<3)},n.F.getTrees=function(){for(var e=n.F.U,i=n.F._hufTree(e.lhst,e.ltree,15),a=n.F._hufTree(e.dhst,e.dtree,15),r=[],s=n.F._lenCodes(e.ltree,r),l=[],c=n.F._lenCodes(e.dtree,l),o=0;o<r.length;o+=2)e.ihst[r[o]]++;for(var o=0;o<l.length;o+=2)e.ihst[l[o]]++;for(var h=n.F._hufTree(e.ihst,e.itree,7),u=19;u>4&&e.itree[(e.ordr[u-1]<<1)+1]==0;)u--;return[i,a,h,s,c,u,r,l]},n.F.getSecond=function(e){for(var i=[],a=0;a<e.length;a+=2)i.push(e[a+1]);return i},n.F.nonZero=function(e){for(var i="",a=0;a<e.length;a+=2)e[a+1]!=0&&(i+=(a>>1)+",");return i},n.F.contSize=function(e,i){for(var a=0,r=0;r<i.length;r++)a+=i[r]*e[(r<<1)+1];return a},n.F._codeTiny=function(e,i,a,r){for(var s=0;s<e.length;s+=2){var l=e[s],c=e[s+1];r=n.F._writeLit(l,i,a,r);var o=l==16?2:l==17?3:7;l>15&&(n.F._putsE(a,r,c,o),r+=o)}return r},n.F._lenCodes=function(e,i){for(var a=e.length;a!=2&&e[a-1]==0;)a-=2;for(var r=0;r<a;r+=2){var s=e[r+1],l=r+3<a?e[r+3]:-1,c=r+5<a?e[r+5]:-1,o=r==0?-1:e[r-1];if(s==0&&l==s&&c==s){for(var h=r+5;h+2<a&&e[h+2]==s;)h+=2;var u=Math.min(h+1-r>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),r+=u*2-2}else if(s==o&&l==s&&c==s){for(var h=r+5;h+2<a&&e[h+2]==s;)h+=2;var u=Math.min(h+1-r>>>1,6);i.push(16,u-3),r+=u*2-2}else i.push(s,0)}return a>>>1},n.F._hufTree=function(e,i,a){var r=[],s=e.length,l=i.length,c=0;for(c=0;c<l;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<s;c++)e[c]!=0&&r.push({lit:c,f:e[c]});var o=r.length,h=r.slice(0);if(o==0)return 0;if(o==1){var u=r[0].lit,h=u==0?1:0;return i[(u<<1)+1]=1,i[(h<<1)+1]=1,1}r.sort(function(b,y){return b.f-y.f});var d=r[0],f=r[1],g=0,w=1,_=2;for(r[0]={lit:-1,f:d.f+f.f,l:d,r:f,d:0};w!=o-1;)g!=w&&(_==o||r[g].f<r[_].f)?d=r[g++]:d=r[_++],g!=w&&(_==o||r[g].f<r[_].f)?f=r[g++]:f=r[_++],r[w++]={lit:-1,f:d.f+f.f,l:d,r:f};var m=n.F.setDepth(r[w-1],0);for(m>a&&(n.F.restrictDepth(h,a,m),m=a),c=0;c<o;c++)i[(h[c].lit<<1)+1]=h[c].d;return m},n.F.setDepth=function(e,i){return e.lit!=-1?(e.d=i,i):Math.max(n.F.setDepth(e.l,i+1),n.F.setDepth(e.r,i+1))},n.F.restrictDepth=function(e,i,a){var r=0,s=1<<a-i,l=0;for(e.sort(function(o,h){return h.d==o.d?o.f-h.f:h.d-o.d}),r=0;r<e.length&&e[r].d>i;r++){var c=e[r].d;e[r].d=i,l+=s-(1<<a-c)}for(l=l>>>a-i;l>0;){var c=e[r].d;c<i?(e[r].d++,l-=1<<i-c-1):r++}for(;r>=0;r--)e[r].d==i&&l<0&&(e[r].d--,l++);l!=0&&console.log("debt left")},n.F._goodIndex=function(e,i){var a=0;return i[a|16]<=e&&(a|=16),i[a|8]<=e&&(a|=8),i[a|4]<=e&&(a|=4),i[a|2]<=e&&(a|=2),i[a|1]<=e&&(a|=1),a},n.F._writeLit=function(e,i,a,r){return n.F._putsF(a,r,i[e<<1]),r+i[(e<<1)+1]},n.F.inflate=function(e,i){var a=Uint8Array;if(e[0]==3&&e[1]==0)return i||new a(0);var r=n.F,s=r._bitsF,l=r._bitsE,c=r._decodeTiny,o=r.makeCodes,h=r.codes2map,u=r._get17,d=r.U,f=i==null;f&&(i=new a(e.length>>>2<<3));for(var g=0,w=0,_=0,m=0,b=0,y=0,v=0,I=0,k=0,T,S;g==0;){if(g=s(e,k,1),w=s(e,k+1,2),k+=3,w==0){k&7&&(k+=8-(k&7));var x=(k>>>3)+4,E=e[x-4]|e[x-3]<<8;f&&(i=n.F._check(i,I+E)),i.set(new a(e.buffer,e.byteOffset+x,E),I),k=x+E<<3,I+=E;continue}if(f&&(i=n.F._check(i,I+131072)),w==1&&(T=d.flmap,S=d.fdmap,y=511,v=31),w==2){_=l(e,k,5)+257,m=l(e,k+5,5)+1,b=l(e,k+10,4)+4,k+=14;for(var C=0;C<38;C+=2)d.itree[C]=0,d.itree[C+1]=0;for(var D=1,C=0;C<b;C++){var U=l(e,k+C*3,3);d.itree[(d.ordr[C]<<1)+1]=U,U>D&&(D=U)}k+=3*b,o(d.itree,D),h(d.itree,D,d.imap),T=d.lmap,S=d.dmap,k=c(d.imap,(1<<D)-1,_+m,e,k,d.ttree);var P=r._copyOut(d.ttree,0,_,d.ltree);y=(1<<P)-1;var M=r._copyOut(d.ttree,_,m,d.dtree);v=(1<<M)-1,o(d.ltree,P),h(d.ltree,P,T),o(d.dtree,M),h(d.dtree,M,S)}for(;;){var kt=T[u(e,k)&y];k+=kt&15;var it=kt>>>4;if(!(it>>>8))i[I++]=it;else{if(it==256)break;var It=I+it-254;if(it>264){var se=d.ldef[it-257];It=I+(se>>>3)+l(e,k,se&7),k+=se&7}var Ft=S[u(e,k)&v];k+=Ft&15;var mn=Ft>>>4,Tt=d.ddef[mn],ht=(Tt>>>4)+s(e,k,Tt&15);for(k+=Tt&15,f&&(i=n.F._check(i,I+131072));I<It;)i[I]=i[I++-ht],i[I]=i[I++-ht],i[I]=i[I++-ht],i[I]=i[I++-ht];I=It}}}return i.length==I?i:i.slice(0,I)},n.F._check=function(e,i){var a=e.length;if(i<=a)return e;var r=new Uint8Array(Math.max(a<<1,i));return r.set(e,0),r},n.F._decodeTiny=function(e,i,a,r,s,l){for(var c=n.F._bitsE,o=n.F._get17,h=0;h<a;){var u=e[o(r,s)&i];s+=u&15;var d=u>>>4;if(d<=15)l[h]=d,h++;else{var f=0,g=0;d==16?(g=3+c(r,s,2),s+=2,f=l[h-1]):d==17?(g=3+c(r,s,3),s+=3):d==18&&(g=11+c(r,s,7),s+=7);for(var w=h+g;h<w;)l[h]=f,h++}}return s},n.F._copyOut=function(e,i,a,r){for(var s=0,l=0,c=r.length>>>1;l<a;){var o=e[l+i];r[l<<1]=0,r[(l<<1)+1]=o,o>s&&(s=o),l++}for(;l<c;)r[l<<1]=0,r[(l<<1)+1]=0,l++;return s},n.F.makeCodes=function(e,i){for(var a=n.F.U,r=e.length,s,l,c,o,h,u=a.bl_count,o=0;o<=i;o++)u[o]=0;for(o=1;o<r;o+=2)u[e[o]]++;var d=a.next_code;for(s=0,u[0]=0,l=1;l<=i;l++)s=s+u[l-1]<<1,d[l]=s;for(c=0;c<r;c+=2)h=e[c+1],h!=0&&(e[c]=d[h],d[h]++)},n.F.codes2map=function(e,i,a){for(var r=e.length,s=n.F.U,l=s.rev15,c=0;c<r;c+=2)if(e[c+1]!=0)for(var o=c>>1,h=e[c+1],u=o<<4|h,d=i-h,f=e[c]<<d,g=f+(1<<d);f!=g;){var w=l[f]>>>15-i;a[w]=u,f++}},n.F.revCodes=function(e,i){for(var a=n.F.U.rev15,r=15-i,s=0;s<e.length;s+=2){var l=e[s]<<i-e[s+1];e[s]=a[l]>>>r}},n.F._putsE=function(e,i,a){a=a<<(i&7);var r=i>>>3;e[r]|=a,e[r+1]|=a>>>8},n.F._putsF=function(e,i,a){a=a<<(i&7);var r=i>>>3;e[r]|=a,e[r+1]|=a>>>8,e[r+2]|=a>>>16},n.F._bitsE=function(e,i,a){return(e[i>>>3]|e[(i>>>3)+1]<<8)>>>(i&7)&(1<<a)-1},n.F._bitsF=function(e,i,a){return(e[i>>>3]|e[(i>>>3)+1]<<8|e[(i>>>3)+2]<<16)>>>(i&7)&(1<<a)-1},n.F._get17=function(e,i){return(e[i>>>3]|e[(i>>>3)+1]<<8|e[(i>>>3)+2]<<16)>>>(i&7)},n.F._get25=function(e,i){return(e[i>>>3]|e[(i>>>3)+1]<<8|e[(i>>>3)+2]<<16|e[(i>>>3)+3]<<24)>>>(i&7)},n.F.U=function(){var e=Uint16Array,i=Uint32Array;return{next_code:new e(16),bl_count:new e(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 e(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 e(512),fltree:[],fdmap:new e(32),fdtree:[],lmap:new e(32768),ltree:[],ttree:[],dmap:new e(32768),dtree:[],imap:new e(512),itree:[],rev15:new e(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new e(65536),prev:new e(32768)}}(),function(){for(var e=n.F.U,i=32768,a=0;a<i;a++){var r=a;r=(r&2863311530)>>>1|(r&1431655765)<<1,r=(r&3435973836)>>>2|(r&858993459)<<2,r=(r&4042322160)>>>4|(r&252645135)<<4,r=(r&4278255360)>>>8|(r&16711935)<<8,e.rev15[a]=(r>>>16|r<<16)>>>17}function s(l,c,o){for(;c--!=0;)l.push(0,o)}for(var a=0;a<32;a++)e.ldef[a]=e.of0[a]<<3|e.exb[a],e.ddef[a]=e.df0[a]<<4|e.dxb[a];s(e.fltree,144,8),s(e.fltree,112,9),s(e.fltree,24,7),s(e.fltree,8,8),n.F.makeCodes(e.fltree,9),n.F.codes2map(e.fltree,9,e.flmap),n.F.revCodes(e.fltree,9),s(e.fdtree,32,5),n.F.makeCodes(e.fdtree,5),n.F.codes2map(e.fdtree,5,e.fdmap),n.F.revCodes(e.fdtree,5),s(e.itree,19,0),s(e.ltree,286,0),s(e.dtree,30,0),s(e.ttree,320,0)}()})(Cn);var Pr=Cn.exports;const Dn=Ur(Pr);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Fr=4,Mn=0,Rn=1,zr=2;function Et(t){let n=t.length;for(;--n>=0;)t[n]=0}const Or=0,Ln=1,Br=2,Hr=3,Zr=258,De=29,Bt=256,Ht=Bt+1+De,St=30,Me=19,Un=2*Ht+1,ut=15,Re=16,qr=7,Le=256,Pn=16,Fn=17,zn=18,Ue=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]),ce=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]),Xr=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),On=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$r=512,J=new Array((Ht+2)*2);Et(J);const Zt=new Array(St*2);Et(Zt);const qt=new Array($r);Et(qt);const Xt=new Array(Zr-Hr+1);Et(Xt);const Pe=new Array(De);Et(Pe);const fe=new Array(St);Et(fe);function Fe(t,n,e,i,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}let Bn,Hn,Zn;function ze(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}const qn=t=>t<256?qt[t]:qt[256+(t>>>7)],$t=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},H=(t,n,e)=>{t.bi_valid>Re-e?(t.bi_buf|=n<<t.bi_valid&65535,$t(t,t.bi_buf),t.bi_buf=n>>Re-t.bi_valid,t.bi_valid+=e-Re):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},j=(t,n,e)=>{H(t,e[n*2],e[n*2+1])},Xn=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},Nr=t=>{t.bi_valid===16?($t(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)},Yr=(t,n)=>{const e=n.dyn_tree,i=n.max_code,a=n.stat_desc.static_tree,r=n.stat_desc.has_stree,s=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,c=n.stat_desc.max_length;let o,h,u,d,f,g,w=0;for(d=0;d<=ut;d++)t.bl_count[d]=0;for(e[t.heap[t.heap_max]*2+1]=0,o=t.heap_max+1;o<Un;o++)h=t.heap[o],d=e[e[h*2+1]*2+1]+1,d>c&&(d=c,w++),e[h*2+1]=d,!(h>i)&&(t.bl_count[d]++,f=0,h>=l&&(f=s[h-l]),g=e[h*2],t.opt_len+=g*(d+f),r&&(t.static_len+=g*(a[h*2+1]+f)));if(w!==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]--,w-=2}while(w>0);for(d=c;d!==0;d--)for(h=t.bl_count[d];h!==0;)u=t.heap[--o],!(u>i)&&(e[u*2+1]!==d&&(t.opt_len+=(d-e[u*2+1])*e[u*2],e[u*2+1]=d),h--)}},$n=(t,n,e)=>{const i=new Array(ut+1);let a=0,r,s;for(r=1;r<=ut;r++)a=a+e[r-1]<<1,i[r]=a;for(s=0;s<=n;s++){let l=t[s*2+1];l!==0&&(t[s*2]=Xn(i[l]++,l))}},jr=()=>{let t,n,e,i,a;const r=new Array(ut+1);for(e=0,i=0;i<De-1;i++)for(Pe[i]=e,t=0;t<1<<Ue[i];t++)Xt[e++]=i;for(Xt[e-1]=i,a=0,i=0;i<16;i++)for(fe[i]=a,t=0;t<1<<ce[i];t++)qt[a++]=i;for(a>>=7;i<St;i++)for(fe[i]=a<<7,t=0;t<1<<ce[i]-7;t++)qt[256+a++]=i;for(n=0;n<=ut;n++)r[n]=0;for(t=0;t<=143;)J[t*2+1]=8,t++,r[8]++;for(;t<=255;)J[t*2+1]=9,t++,r[9]++;for(;t<=279;)J[t*2+1]=7,t++,r[7]++;for(;t<=287;)J[t*2+1]=8,t++,r[8]++;for($n(J,Ht+1,r),t=0;t<St;t++)Zt[t*2+1]=5,Zt[t*2]=Xn(t,5);Bn=new Fe(J,Ue,Bt+1,Ht,ut),Hn=new Fe(Zt,ce,0,St,ut),Zn=new Fe(new Array(0),Xr,0,Me,qr)},Nn=t=>{let n;for(n=0;n<Ht;n++)t.dyn_ltree[n*2]=0;for(n=0;n<St;n++)t.dyn_dtree[n*2]=0;for(n=0;n<Me;n++)t.bl_tree[n*2]=0;t.dyn_ltree[Le*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Yn=t=>{t.bi_valid>8?$t(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},jn=(t,n,e,i)=>{const a=n*2,r=e*2;return t[a]<t[r]||t[a]===t[r]&&i[n]<=i[e]},Oe=(t,n,e)=>{const i=t.heap[e];let a=e<<1;for(;a<=t.heap_len&&(a<t.heap_len&&jn(n,t.heap[a+1],t.heap[a],t.depth)&&a++,!jn(n,i,t.heap[a],t.depth));)t.heap[e]=t.heap[a],e=a,a<<=1;t.heap[e]=i},Gn=(t,n,e)=>{let i,a,r=0,s,l;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+r++]&255,i+=(t.pending_buf[t.sym_buf+r++]&255)<<8,a=t.pending_buf[t.sym_buf+r++],i===0?j(t,a,n):(s=Xt[a],j(t,s+Bt+1,n),l=Ue[s],l!==0&&(a-=Pe[s],H(t,a,l)),i--,s=qn(i),j(t,s,e),l=ce[s],l!==0&&(i-=fe[s],H(t,i,l)));while(r<t.sym_next);j(t,Le,n)},Be=(t,n)=>{const e=n.dyn_tree,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,r=n.stat_desc.elems;let s,l,c=-1,o;for(t.heap_len=0,t.heap_max=Un,s=0;s<r;s++)e[s*2]!==0?(t.heap[++t.heap_len]=c=s,t.depth[s]=0):e[s*2+1]=0;for(;t.heap_len<2;)o=t.heap[++t.heap_len]=c<2?++c:0,e[o*2]=1,t.depth[o]=0,t.opt_len--,a&&(t.static_len-=i[o*2+1]);for(n.max_code=c,s=t.heap_len>>1;s>=1;s--)Oe(t,e,s);o=r;do s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Oe(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=l,e[o*2]=e[s*2]+e[l*2],t.depth[o]=(t.depth[s]>=t.depth[l]?t.depth[s]:t.depth[l])+1,e[s*2+1]=e[l*2+1]=o,t.heap[1]=o++,Oe(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Yr(t,n),$n(e,c,t.bl_count)},Vn=(t,n,e)=>{let i,a=-1,r,s=n[0*2+1],l=0,c=7,o=4;for(s===0&&(c=138,o=3),n[(e+1)*2+1]=65535,i=0;i<=e;i++)r=s,s=n[(i+1)*2+1],!(++l<c&&r===s)&&(l<o?t.bl_tree[r*2]+=l:r!==0?(r!==a&&t.bl_tree[r*2]++,t.bl_tree[Pn*2]++):l<=10?t.bl_tree[Fn*2]++:t.bl_tree[zn*2]++,l=0,a=r,s===0?(c=138,o=3):r===s?(c=6,o=3):(c=7,o=4))},Wn=(t,n,e)=>{let i,a=-1,r,s=n[0*2+1],l=0,c=7,o=4;for(s===0&&(c=138,o=3),i=0;i<=e;i++)if(r=s,s=n[(i+1)*2+1],!(++l<c&&r===s)){if(l<o)do j(t,r,t.bl_tree);while(--l!==0);else r!==0?(r!==a&&(j(t,r,t.bl_tree),l--),j(t,Pn,t.bl_tree),H(t,l-3,2)):l<=10?(j(t,Fn,t.bl_tree),H(t,l-3,3)):(j(t,zn,t.bl_tree),H(t,l-11,7));l=0,a=r,s===0?(c=138,o=3):r===s?(c=6,o=3):(c=7,o=4)}},Gr=t=>{let n;for(Vn(t,t.dyn_ltree,t.l_desc.max_code),Vn(t,t.dyn_dtree,t.d_desc.max_code),Be(t,t.bl_desc),n=Me-1;n>=3&&t.bl_tree[On[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},Vr=(t,n,e,i)=>{let a;for(H(t,n-257,5),H(t,e-1,5),H(t,i-4,4),a=0;a<i;a++)H(t,t.bl_tree[On[a]*2+1],3);Wn(t,t.dyn_ltree,n-1),Wn(t,t.dyn_dtree,e-1)},Wr=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return Mn;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Rn;for(e=32;e<Bt;e++)if(t.dyn_ltree[e*2]!==0)return Rn;return Mn};let Kn=!1;const Kr=t=>{Kn||(jr(),Kn=!0),t.l_desc=new ze(t.dyn_ltree,Bn),t.d_desc=new ze(t.dyn_dtree,Hn),t.bl_desc=new ze(t.bl_tree,Zn),t.bi_buf=0,t.bi_valid=0,Nn(t)},Jn=(t,n,e,i)=>{H(t,(Or<<1)+(i?1:0),3),Yn(t),$t(t,e),$t(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},Jr=t=>{H(t,Ln<<1,3),j(t,Le,J),Nr(t)},Qr=(t,n,e,i)=>{let a,r,s=0;t.level>0?(t.strm.data_type===zr&&(t.strm.data_type=Wr(t)),Be(t,t.l_desc),Be(t,t.d_desc),s=Gr(t),a=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=a&&(a=r)):a=r=e+5,e+4<=a&&n!==-1?Jn(t,n,e,i):t.strategy===Fr||r===a?(H(t,(Ln<<1)+(i?1:0),3),Gn(t,J,Zt)):(H(t,(Br<<1)+(i?1:0),3),Vr(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),Gn(t,t.dyn_ltree,t.dyn_dtree)),Nn(t),i&&Yn(t)},ts=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(Xt[e]+Bt+1)*2]++,t.dyn_dtree[qn(n)*2]++),t.sym_next===t.sym_end);var es=Kr,ns=Jn,is=Qr,as=ts,rs=Jr,ss={_tr_init:es,_tr_stored_block:ns,_tr_flush_block:is,_tr_tally:as,_tr_align:rs},Nt=(t,n,e,i)=>{let a=t&65535|0,r=t>>>16&65535|0,s=0;for(;e!==0;){s=e>2e3?2e3:e,e-=s;do a=a+n[i++]|0,r=r+a|0;while(--s);a%=65521,r%=65521}return a|r<<16|0};const os=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},ls=new Uint32Array(os());var z=(t,n,e,i)=>{const a=ls,r=i+e;t^=-1;for(let s=i;s<r;s++)t=t>>>8^a[(t^n[s])&255];return t^-1},gt={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"},_t={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:cs,_tr_stored_block:He,_tr_flush_block:fs,_tr_tally:at,_tr_align:hs}=ss,{Z_NO_FLUSH:rt,Z_PARTIAL_FLUSH:ds,Z_FULL_FLUSH:us,Z_FINISH:X,Z_BLOCK:Qn,Z_OK:O,Z_STREAM_END:ti,Z_STREAM_ERROR:G,Z_DATA_ERROR:gs,Z_BUF_ERROR:Ze,Z_DEFAULT_COMPRESSION:_s,Z_FILTERED:ws,Z_HUFFMAN_ONLY:he,Z_RLE:ms,Z_FIXED:ps,Z_DEFAULT_STRATEGY:bs,Z_UNKNOWN:vs,Z_DEFLATED:de}=_t,ys=9,ks=15,Is=8,Ts=29,qe=256+1+Ts,xs=30,Es=19,Ss=2*qe+1,As=15,R=3,st=258,V=st+R+1,Cs=32,At=42,Xe=57,$e=69,Ne=73,Ye=91,je=103,wt=113,Yt=666,B=1,Ct=2,mt=3,Dt=4,Ds=3,pt=(t,n)=>(t.msg=gt[n],n),ei=t=>t*2-(t>4?9:0),ot=t=>{let n=t.length;for(;--n>=0;)t[n]=0},Ms=t=>{let n,e,i,a=t.w_size;n=t.hash_size,i=n;do e=t.head[--i],t.head[i]=e>=a?e-a:0;while(--n);n=a,i=n;do e=t.prev[--i],t.prev[i]=e>=a?e-a:0;while(--n)};let lt=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask;const Z=t=>{const n=t.state;let e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},q=(t,n)=>{fs(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,Z(t.strm)},L=(t,n)=>{t.pending_buf[t.pending++]=n},jt=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},Ge=(t,n,e,i)=>{let a=t.avail_in;return a>i&&(a=i),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=Nt(t.adler,n,a,e):t.state.wrap===2&&(t.adler=z(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},ni=(t,n)=>{let e=t.max_chain_length,i=t.strstart,a,r,s=t.prev_length,l=t.nice_match;const c=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,o=t.window,h=t.w_mask,u=t.prev,d=t.strstart+st;let f=o[i+s-1],g=o[i+s];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=n,!(o[a+s]!==g||o[a+s-1]!==f||o[a]!==o[i]||o[++a]!==o[i+1])){i+=2,a++;do;while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<d);if(r=st-(d-i),i=d-st,r>s){if(t.match_start=n,s=r,r>=l)break;f=o[i+s-1],g=o[i+s]}}while((n=u[n&h])>c&&--e!==0);return s<=t.lookahead?s:t.lookahead},Mt=t=>{const n=t.w_size;let e,i,a;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-V)&&(t.window.set(t.window.subarray(n,n+n-i),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),Ms(t),i+=n),t.strm.avail_in===0)break;if(e=Ge(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=R)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=lt(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=lt(t,t.ins_h,t.window[a+R-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<R)););}while(t.lookahead<V&&t.strm.avail_in!==0)},ii=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,a,r,s=0,l=t.strm.avail_in;do{if(i=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r||(r=t.strm.avail_out-r,a=t.strstart-t.block_start,i>a+t.strm.avail_in&&(i=a+t.strm.avail_in),i>r&&(i=r),i<e&&(i===0&&n!==X||n===rt||i!==a+t.strm.avail_in)))break;s=n===X&&i===a+t.strm.avail_in?1:0,He(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,Z(t.strm),a&&(a>i&&(a=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,i-=a),i&&(Ge(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 l-=t.strm.avail_in,l&&(l>=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<=l&&(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-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?Dt:n!==rt&&n!==X&&t.strm.avail_in===0&&t.strstart===t.block_start?Ct:(r=t.window_size-t.strstart,t.strm.avail_in>r&&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++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(Ge(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,e=r>t.w_size?t.w_size:r,a=t.strstart-t.block_start,(a>=e||(a||n===X)&&n!==rt&&t.strm.avail_in===0&&a<=r)&&(i=a>r?r:a,s=n===X&&t.strm.avail_in===0&&i===a?1:0,He(t,t.block_start,i,s),t.block_start+=i,Z(t.strm)),s?mt:B)},Ve=(t,n)=>{let e,i;for(;;){if(t.lookahead<V){if(Mt(t),t.lookahead<V&&n===rt)return B;if(t.lookahead===0)break}if(e=0,t.lookahead>=R&&(t.ins_h=lt(t,t.ins_h,t.window[t.strstart+R-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-V&&(t.match_length=ni(t,e)),t.match_length>=R)if(i=at(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=lt(t,t.ins_h,t.window[t.strstart+R-1]),e=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=lt(t,t.ins_h,t.window[t.strstart+1]);else i=at(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(q(t,!1),t.strm.avail_out===0))return B}return t.insert=t.strstart<R-1?t.strstart:R-1,n===X?(q(t,!0),t.strm.avail_out===0?mt:Dt):t.sym_next&&(q(t,!1),t.strm.avail_out===0)?B:Ct},Rt=(t,n)=>{let e,i,a;for(;;){if(t.lookahead<V){if(Mt(t),t.lookahead<V&&n===rt)return B;if(t.lookahead===0)break}if(e=0,t.lookahead>=R&&(t.ins_h=lt(t,t.ins_h,t.window[t.strstart+R-1]),e=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,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-V&&(t.match_length=ni(t,e),t.match_length<=5&&(t.strategy===ws||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){a=t.strstart+t.lookahead-R,i=at(t,t.strstart-1-t.prev_match,t.prev_length-R),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=lt(t,t.ins_h,t.window[t.strstart+R-1]),e=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&&(q(t,!1),t.strm.avail_out===0))return B}else if(t.match_available){if(i=at(t,0,t.window[t.strstart-1]),i&&q(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return B}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=at(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<R-1?t.strstart:R-1,n===X?(q(t,!0),t.strm.avail_out===0?mt:Dt):t.sym_next&&(q(t,!1),t.strm.avail_out===0)?B:Ct},Rs=(t,n)=>{let e,i,a,r;const s=t.window;for(;;){if(t.lookahead<=st){if(Mt(t),t.lookahead<=st&&n===rt)return B;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=R&&t.strstart>0&&(a=t.strstart-1,i=s[a],i===s[++a]&&i===s[++a]&&i===s[++a])){r=t.strstart+st;do;while(i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&a<r);t.match_length=st-(r-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=R?(e=at(t,1,t.match_length-R),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=at(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(q(t,!1),t.strm.avail_out===0))return B}return t.insert=0,n===X?(q(t,!0),t.strm.avail_out===0?mt:Dt):t.sym_next&&(q(t,!1),t.strm.avail_out===0)?B:Ct},Ls=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(Mt(t),t.lookahead===0)){if(n===rt)return B;break}if(t.match_length=0,e=at(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(q(t,!1),t.strm.avail_out===0))return B}return t.insert=0,n===X?(q(t,!0),t.strm.avail_out===0?mt:Dt):t.sym_next&&(q(t,!1),t.strm.avail_out===0)?B:Ct};function W(t,n,e,i,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=i,this.func=a}const Gt=[new W(0,0,0,0,ii),new W(4,4,8,4,Ve),new W(4,5,16,8,Ve),new W(4,6,32,32,Ve),new W(4,4,16,16,Rt),new W(8,16,32,32,Rt),new W(8,16,128,128,Rt),new W(8,32,128,256,Rt),new W(32,128,258,1024,Rt),new W(32,258,258,4096,Rt)],Us=t=>{t.window_size=2*t.w_size,ot(t.head),t.max_lazy_match=Gt[t.level].max_lazy,t.good_match=Gt[t.level].good_length,t.nice_match=Gt[t.level].nice_length,t.max_chain_length=Gt[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 Ps(){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=de,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(Ss*2),this.dyn_dtree=new Uint16Array((2*xs+1)*2),this.bl_tree=new Uint16Array((2*Es+1)*2),ot(this.dyn_ltree),ot(this.dyn_dtree),ot(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(As+1),this.heap=new Uint16Array(2*qe+1),ot(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*qe+1),ot(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 Vt=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.status!==At&&n.status!==Xe&&n.status!==$e&&n.status!==Ne&&n.status!==Ye&&n.status!==je&&n.status!==wt&&n.status!==Yt?1:0},ai=t=>{if(Vt(t))return pt(t,G);t.total_in=t.total_out=0,t.data_type=vs;const n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Xe:n.wrap?At:wt,t.adler=n.wrap===2?0:1,n.last_flush=-2,cs(n),O},ri=t=>{const n=ai(t);return n===O&&Us(t.state),n},Fs=(t,n)=>Vt(t)||t.state.wrap!==2?G:(t.state.gzhead=n,O),si=(t,n,e,i,a,r)=>{if(!t)return G;let s=1;if(n===_s&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>ys||e!==de||i<8||i>15||n<0||n>9||r<0||r>ps||i===8&&s!==1)return pt(t,G);i===8&&(i=9);const l=new Ps;return t.state=l,l.strm=t,l.status=At,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+R-1)/R),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=n,l.strategy=r,l.method=e,ri(t)},zs=(t,n)=>si(t,n,de,ks,Is,bs),Os=(t,n)=>{if(Vt(t)||n>Qn||n<0)return t?pt(t,G):G;const e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===Yt&&n!==X)return pt(t,t.avail_out===0?Ze:G);const i=e.last_flush;if(e.last_flush=n,e.pending!==0){if(Z(t),t.avail_out===0)return e.last_flush=-1,O}else if(t.avail_in===0&&ei(n)<=ei(i)&&n!==X)return pt(t,Ze);if(e.status===Yt&&t.avail_in!==0)return pt(t,Ze);if(e.status===At&&e.wrap===0&&(e.status=wt),e.status===At){let a=de+(e.w_bits-8<<4)<<8,r=-1;if(e.strategy>=he||e.level<2?r=0:e.level<6?r=1:e.level===6?r=2:r=3,a|=r<<6,e.strstart!==0&&(a|=Cs),a+=31-a%31,jt(e,a),e.strstart!==0&&(jt(e,t.adler>>>16),jt(e,t.adler&65535)),t.adler=1,e.status=wt,Z(t),e.pending!==0)return e.last_flush=-1,O}if(e.status===Xe){if(t.adler=0,L(e,31),L(e,139),L(e,8),e.gzhead)L(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),L(e,e.gzhead.time&255),L(e,e.gzhead.time>>8&255),L(e,e.gzhead.time>>16&255),L(e,e.gzhead.time>>24&255),L(e,e.level===9?2:e.strategy>=he||e.level<2?4:0),L(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(L(e,e.gzhead.extra.length&255),L(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=z(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=$e;else if(L(e,0),L(e,0),L(e,0),L(e,0),L(e,0),L(e,e.level===9?2:e.strategy>=he||e.level<2?4:0),L(e,Ds),e.status=wt,Z(t),e.pending!==0)return e.last_flush=-1,O}if(e.status===$e){if(e.gzhead.extra){let a=e.pending,r=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+r>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=l,Z(t),e.pending!==0)return e.last_flush=-1,O;a=0,r-=l}let s=new Uint8Array(e.gzhead.extra);e.pending_buf.set(s.subarray(e.gzindex,e.gzindex+r),e.pending),e.pending+=r,e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Ne}if(e.status===Ne){if(e.gzhead.name){let a=e.pending,r;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a)),Z(t),e.pending!==0)return e.last_flush=-1,O;a=0}e.gzindex<e.gzhead.name.length?r=e.gzhead.name.charCodeAt(e.gzindex++)&255:r=0,L(e,r)}while(r!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Ye}if(e.status===Ye){if(e.gzhead.comment){let a=e.pending,r;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a)),Z(t),e.pending!==0)return e.last_flush=-1,O;a=0}e.gzindex<e.gzhead.comment.length?r=e.gzhead.comment.charCodeAt(e.gzindex++)&255:r=0,L(e,r)}while(r!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=z(t.adler,e.pending_buf,e.pending-a,a))}e.status=je}if(e.status===je){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(Z(t),e.pending!==0))return e.last_flush=-1,O;L(e,t.adler&255),L(e,t.adler>>8&255),t.adler=0}if(e.status=wt,Z(t),e.pending!==0)return e.last_flush=-1,O}if(t.avail_in!==0||e.lookahead!==0||n!==rt&&e.status!==Yt){let a=e.level===0?ii(e,n):e.strategy===he?Ls(e,n):e.strategy===ms?Rs(e,n):Gt[e.level].func(e,n);if((a===mt||a===Dt)&&(e.status=Yt),a===B||a===mt)return t.avail_out===0&&(e.last_flush=-1),O;if(a===Ct&&(n===ds?hs(e):n!==Qn&&(He(e,0,0,!1),n===us&&(ot(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Z(t),t.avail_out===0))return e.last_flush=-1,O}return n!==X?O:e.wrap<=0?ti:(e.wrap===2?(L(e,t.adler&255),L(e,t.adler>>8&255),L(e,t.adler>>16&255),L(e,t.adler>>24&255),L(e,t.total_in&255),L(e,t.total_in>>8&255),L(e,t.total_in>>16&255),L(e,t.total_in>>24&255)):(jt(e,t.adler>>>16),jt(e,t.adler&65535)),Z(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?O:ti)},Bs=t=>{if(Vt(t))return G;const n=t.state.status;return t.state=null,n===wt?pt(t,gs):O},Hs=(t,n)=>{let e=n.length;if(Vt(t))return G;const i=t.state,a=i.wrap;if(a===2||a===1&&i.status!==At||i.lookahead)return G;if(a===1&&(t.adler=Nt(t.adler,n,e,0)),i.wrap=0,e>=i.w_size){a===0&&(ot(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(e-i.w_size,e),0),n=c,e=i.w_size}const r=t.avail_in,s=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,Mt(i);i.lookahead>=R;){let c=i.strstart,o=i.lookahead-(R-1);do i.ins_h=lt(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(--o);i.strstart=c,i.lookahead=R-1,Mt(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=l,t.avail_in=r,i.wrap=a,O};var Zs=zs,qs=si,Xs=ri,$s=ai,Ns=Fs,Ys=Os,js=Bs,Gs=Hs,Vs="pako deflate (from Nodeca project)",Wt={deflateInit:Zs,deflateInit2:qs,deflateReset:Xs,deflateResetKeep:$s,deflateSetHeader:Ns,deflate:Ys,deflateEnd:js,deflateSetDictionary:Gs,deflateInfo:Vs};const Ws=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var Ks=function(t){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const i in e)Ws(e,i)&&(t[i]=e[i])}}return t},Js=t=>{let n=0;for(let i=0,a=t.length;i<a;i++)n+=t[i].length;const e=new Uint8Array(n);for(let i=0,a=0,r=t.length;i<r;i++){let s=t[i];e.set(s,a),a+=s.length}return e},ue={assign:Ks,flattenChunks:Js};let oi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{oi=!1}const Kt=new Uint8Array(256);for(let t=0;t<256;t++)Kt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Kt[254]=Kt[254]=1;var Qs=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,i,a,r,s=t.length,l=0;for(a=0;a<s;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<s&&(i=t.charCodeAt(a+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),r=0,a=0;r<l;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<s&&(i=t.charCodeAt(a+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),a++)),e<128?n[r++]=e:e<2048?(n[r++]=192|e>>>6,n[r++]=128|e&63):e<65536?(n[r++]=224|e>>>12,n[r++]=128|e>>>6&63,n[r++]=128|e&63):(n[r++]=240|e>>>18,n[r++]=128|e>>>12&63,n[r++]=128|e>>>6&63,n[r++]=128|e&63);return n};const to=(t,n)=>{if(n<65534&&t.subarray&&oi)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let i=0;i<n;i++)e+=String.fromCharCode(t[i]);return e};var eo=(t,n)=>{const e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let i,a;const r=new Array(e*2);for(a=0,i=0;i<e;){let s=t[i++];if(s<128){r[a++]=s;continue}let l=Kt[s];if(l>4){r[a++]=65533,i+=l-1;continue}for(s&=l===2?31:l===3?15:7;l>1&&i<e;)s=s<<6|t[i++]&63,l--;if(l>1){r[a++]=65533;continue}s<65536?r[a++]=s:(s-=65536,r[a++]=55296|s>>10&1023,r[a++]=56320|s&1023)}return to(r,a)},no=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+Kt[t[e]]>n?e:n},Jt={string2buf:Qs,buf2string:eo,utf8border:no};function io(){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 li=io;const ci=Object.prototype.toString,{Z_NO_FLUSH:ao,Z_SYNC_FLUSH:ro,Z_FULL_FLUSH:so,Z_FINISH:oo,Z_OK:ge,Z_STREAM_END:lo,Z_DEFAULT_COMPRESSION:co,Z_DEFAULT_STRATEGY:fo,Z_DEFLATED:ho}=_t;function Qt(t){this.options=ue.assign({level:co,method:ho,chunkSize:16384,windowBits:15,memLevel:8,strategy:fo},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new li,this.strm.avail_out=0;let e=Wt.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==ge)throw new Error(gt[e]);if(n.header&&Wt.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Jt.string2buf(n.dictionary):ci.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,e=Wt.deflateSetDictionary(this.strm,i),e!==ge)throw new Error(gt[e]);this._dict_set=!0}}Qt.prototype.push=function(t,n){const e=this.strm,i=this.options.chunkSize;let a,r;if(this.ended)return!1;for(n===~~n?r=n:r=n===!0?oo:ao,typeof t=="string"?e.input=Jt.string2buf(t):ci.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),(r===ro||r===so)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=Wt.deflate(e,r),a===lo)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=Wt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ge;if(e.avail_out===0){this.onData(e.output);continue}if(r>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===ge&&(this.result=ue.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function We(t,n){const e=new Qt(n);if(e.push(t,!0),e.err)throw e.msg||gt[e.err];return e.result}function uo(t,n){return n=n||{},n.raw=!0,We(t,n)}function go(t,n){return n=n||{},n.gzip=!0,We(t,n)}var _o=Qt,wo=We,mo=uo,po=go,bo=_t,vo={Deflate:_o,deflate:wo,deflateRaw:mo,gzip:po,constants:bo};const _e=16209,yo=16191;var ko=function(n,e){let i,a,r,s,l,c,o,h,u,d,f,g,w,_,m,b,y,v,I,k,T,S,x,E;const C=n.state;i=n.next_in,x=n.input,a=i+(n.avail_in-5),r=n.next_out,E=n.output,s=r-(e-n.avail_out),l=r+(n.avail_out-257),c=C.dmax,o=C.wsize,h=C.whave,u=C.wnext,d=C.window,f=C.hold,g=C.bits,w=C.lencode,_=C.distcode,m=(1<<C.lenbits)-1,b=(1<<C.distbits)-1;t:do{g<15&&(f+=x[i++]<<g,g+=8,f+=x[i++]<<g,g+=8),y=w[f&m];e:for(;;){if(v=y>>>24,f>>>=v,g-=v,v=y>>>16&255,v===0)E[r++]=y&65535;else if(v&16){I=y&65535,v&=15,v&&(g<v&&(f+=x[i++]<<g,g+=8),I+=f&(1<<v)-1,f>>>=v,g-=v),g<15&&(f+=x[i++]<<g,g+=8,f+=x[i++]<<g,g+=8),y=_[f&b];n:for(;;){if(v=y>>>24,f>>>=v,g-=v,v=y>>>16&255,v&16){if(k=y&65535,v&=15,g<v&&(f+=x[i++]<<g,g+=8,g<v&&(f+=x[i++]<<g,g+=8)),k+=f&(1<<v)-1,k>c){n.msg="invalid distance too far back",C.mode=_e;break t}if(f>>>=v,g-=v,v=r-s,k>v){if(v=k-v,v>h&&C.sane){n.msg="invalid distance too far back",C.mode=_e;break t}if(T=0,S=d,u===0){if(T+=o-v,v<I){I-=v;do E[r++]=d[T++];while(--v);T=r-k,S=E}}else if(u<v){if(T+=o+u-v,v-=u,v<I){I-=v;do E[r++]=d[T++];while(--v);if(T=0,u<I){v=u,I-=v;do E[r++]=d[T++];while(--v);T=r-k,S=E}}}else if(T+=u-v,v<I){I-=v;do E[r++]=d[T++];while(--v);T=r-k,S=E}for(;I>2;)E[r++]=S[T++],E[r++]=S[T++],E[r++]=S[T++],I-=3;I&&(E[r++]=S[T++],I>1&&(E[r++]=S[T++]))}else{T=r-k;do E[r++]=E[T++],E[r++]=E[T++],E[r++]=E[T++],I-=3;while(I>2);I&&(E[r++]=E[T++],I>1&&(E[r++]=E[T++]))}}else if(v&64){n.msg="invalid distance code",C.mode=_e;break t}else{y=_[(y&65535)+(f&(1<<v)-1)];continue n}break}}else if(v&64)if(v&32){C.mode=yo;break t}else{n.msg="invalid literal/length code",C.mode=_e;break t}else{y=w[(y&65535)+(f&(1<<v)-1)];continue e}break}}while(i<a&&r<l);I=g>>3,i-=I,g-=I<<3,f&=(1<<g)-1,n.next_in=i,n.next_out=r,n.avail_in=i<a?5+(a-i):5-(i-a),n.avail_out=r<l?257+(l-r):257-(r-l),C.hold=f,C.bits=g};const Lt=15,fi=852,hi=592,di=0,Ke=1,ui=2,Io=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]),To=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]),xo=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]),Eo=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,n,e,i,a,r,s,l)=>{const c=l.bits;let o=0,h=0,u=0,d=0,f=0,g=0,w=0,_=0,m=0,b=0,y,v,I,k,T,S=null,x;const E=new Uint16Array(Lt+1),C=new Uint16Array(Lt+1);let D=null,U,P,M;for(o=0;o<=Lt;o++)E[o]=0;for(h=0;h<i;h++)E[n[e+h]]++;for(f=c,d=Lt;d>=1&&E[d]===0;d--);if(f>d&&(f=d),d===0)return a[r++]=1<<24|64<<16|0,a[r++]=1<<24|64<<16|0,l.bits=1,0;for(u=1;u<d&&E[u]===0;u++);for(f<u&&(f=u),_=1,o=1;o<=Lt;o++)if(_<<=1,_-=E[o],_<0)return-1;if(_>0&&(t===di||d!==1))return-1;for(C[1]=0,o=1;o<Lt;o++)C[o+1]=C[o]+E[o];for(h=0;h<i;h++)n[e+h]!==0&&(s[C[n[e+h]]++]=h);if(t===di?(S=D=s,x=20):t===Ke?(S=Io,D=To,x=257):(S=xo,D=Eo,x=0),b=0,h=0,o=u,T=r,g=f,w=0,I=-1,m=1<<f,k=m-1,t===Ke&&m>fi||t===ui&&m>hi)return 1;for(;;){U=o-w,s[h]+1<x?(P=0,M=s[h]):s[h]>=x?(P=D[s[h]-x],M=S[s[h]-x]):(P=32+64,M=0),y=1<<o-w,v=1<<g,u=v;do v-=y,a[T+(b>>w)+v]=U<<24|P<<16|M|0;while(v!==0);for(y=1<<o-1;b&y;)y>>=1;if(y!==0?(b&=y-1,b+=y):b=0,h++,--E[o]===0){if(o===d)break;o=n[e+s[h]]}if(o>f&&(b&k)!==I){for(w===0&&(w=f),T+=u,g=o-w,_=1<<g;g+w<d&&(_-=E[g+w],!(_<=0));)g++,_<<=1;if(m+=1<<g,t===Ke&&m>fi||t===ui&&m>hi)return 1;I=b&k,a[I]=f<<24|g<<16|T-r|0}}return b!==0&&(a[T+b]=o-w<<24|64<<16|0),l.bits=f,0};const So=0,gi=1,_i=2,{Z_FINISH:wi,Z_BLOCK:Ao,Z_TREES:we,Z_OK:bt,Z_STREAM_END:Co,Z_NEED_DICT:Do,Z_STREAM_ERROR:$,Z_DATA_ERROR:mi,Z_MEM_ERROR:pi,Z_BUF_ERROR:Mo,Z_DEFLATED:bi}=_t,me=16180,vi=16181,yi=16182,ki=16183,Ii=16184,Ti=16185,xi=16186,Ei=16187,Si=16188,Ai=16189,pe=16190,Q=16191,Je=16192,Ci=16193,Qe=16194,Di=16195,Mi=16196,Ri=16197,Li=16198,be=16199,ve=16200,Ui=16201,Pi=16202,Fi=16203,zi=16204,Oi=16205,tn=16206,Bi=16207,Hi=16208,F=16209,Zi=16210,qi=16211,Ro=852,Lo=592,Uo=15,Xi=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function Po(){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 vt=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.mode<me||n.mode>qi?1:0},$i=t=>{if(vt(t))return $;const n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=me,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(Ro),n.distcode=n.distdyn=new Int32Array(Lo),n.sane=1,n.back=-1,bt},Ni=t=>{if(vt(t))return $;const n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,$i(t)},Yi=(t,n)=>{let e;if(vt(t))return $;const i=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?$:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=e,i.wbits=n,Ni(t))},ji=(t,n)=>{if(!t)return $;const e=new Po;t.state=e,e.strm=t,e.window=null,e.mode=me;const i=Yi(t,n);return i!==bt&&(t.state=null),i},Fo=t=>ji(t,Uo);let Gi=!0,en,nn;const zo=t=>{if(Gi){en=new Int32Array(512),nn=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(te(gi,t.lens,0,288,en,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;te(_i,t.lens,0,32,nn,0,t.work,{bits:5}),Gi=!1}t.lencode=en,t.lenbits=9,t.distcode=nn,t.distbits=5},Vi=(t,n,e,i)=>{let a;const r=t.state;return r.window===null&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),i>=r.wsize?(r.window.set(n.subarray(e-r.wsize,e),0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>i&&(a=i),r.window.set(n.subarray(e-i,e-i+a),r.wnext),i-=a,i?(r.window.set(n.subarray(e-i,e),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=a))),0},Oo=(t,n)=>{let e,i,a,r,s,l,c,o,h,u,d,f,g,w,_=0,m,b,y,v,I,k,T,S;const x=new Uint8Array(4);let E,C;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(vt(t)||!t.output||!t.input&&t.avail_in!==0)return $;e=t.state,e.mode===Q&&(e.mode=Je),s=t.next_out,a=t.output,c=t.avail_out,r=t.next_in,i=t.input,l=t.avail_in,o=e.hold,h=e.bits,u=l,d=c,S=bt;t:for(;;)switch(e.mode){case me:if(e.wrap===0){e.mode=Je;break}for(;h<16;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(e.wrap&2&&o===35615){e.wbits===0&&(e.wbits=15),e.check=0,x[0]=o&255,x[1]=o>>>8&255,e.check=z(e.check,x,2,0),o=0,h=0,e.mode=vi;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((o&255)<<8)+(o>>8))%31){t.msg="incorrect header check",e.mode=F;break}if((o&15)!==bi){t.msg="unknown compression method",e.mode=F;break}if(o>>>=4,h-=4,T=(o&15)+8,e.wbits===0&&(e.wbits=T),T>15||T>e.wbits){t.msg="invalid window size",e.mode=F;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=o&512?Ai:Q,o=0,h=0;break;case vi:for(;h<16;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(e.flags=o,(e.flags&255)!==bi){t.msg="unknown compression method",e.mode=F;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=F;break}e.head&&(e.head.text=o>>8&1),e.flags&512&&e.wrap&4&&(x[0]=o&255,x[1]=o>>>8&255,e.check=z(e.check,x,2,0)),o=0,h=0,e.mode=yi;case yi:for(;h<32;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.head&&(e.head.time=o),e.flags&512&&e.wrap&4&&(x[0]=o&255,x[1]=o>>>8&255,x[2]=o>>>16&255,x[3]=o>>>24&255,e.check=z(e.check,x,4,0)),o=0,h=0,e.mode=ki;case ki:for(;h<16;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.head&&(e.head.xflags=o&255,e.head.os=o>>8),e.flags&512&&e.wrap&4&&(x[0]=o&255,x[1]=o>>>8&255,e.check=z(e.check,x,2,0)),o=0,h=0,e.mode=Ii;case Ii:if(e.flags&1024){for(;h<16;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.length=o,e.head&&(e.head.extra_len=o),e.flags&512&&e.wrap&4&&(x[0]=o&255,x[1]=o>>>8&255,e.check=z(e.check,x,2,0)),o=0,h=0}else e.head&&(e.head.extra=null);e.mode=Ti;case Ti:if(e.flags&1024&&(f=e.length,f>l&&(f=l),f&&(e.head&&(T=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(i.subarray(r,r+f),T)),e.flags&512&&e.wrap&4&&(e.check=z(e.check,i,f,r)),l-=f,r+=f,e.length-=f),e.length))break t;e.length=0,e.mode=xi;case xi:if(e.flags&2048){if(l===0)break t;f=0;do T=i[r+f++],e.head&&T&&e.length<65536&&(e.head.name+=String.fromCharCode(T));while(T&&f<l);if(e.flags&512&&e.wrap&4&&(e.check=z(e.check,i,f,r)),l-=f,r+=f,T)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=Ei;case Ei:if(e.flags&4096){if(l===0)break t;f=0;do T=i[r+f++],e.head&&T&&e.length<65536&&(e.head.comment+=String.fromCharCode(T));while(T&&f<l);if(e.flags&512&&e.wrap&4&&(e.check=z(e.check,i,f,r)),l-=f,r+=f,T)break t}else e.head&&(e.head.comment=null);e.mode=Si;case Si:if(e.flags&512){for(;h<16;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(e.wrap&4&&o!==(e.check&65535)){t.msg="header crc mismatch",e.mode=F;break}o=0,h=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=Q;break;case Ai:for(;h<32;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}t.adler=e.check=Xi(o),o=0,h=0,e.mode=pe;case pe:if(e.havedict===0)return t.next_out=s,t.avail_out=c,t.next_in=r,t.avail_in=l,e.hold=o,e.bits=h,Do;t.adler=e.check=1,e.mode=Q;case Q:if(n===Ao||n===we)break t;case Je:if(e.last){o>>>=h&7,h-=h&7,e.mode=tn;break}for(;h<3;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}switch(e.last=o&1,o>>>=1,h-=1,o&3){case 0:e.mode=Ci;break;case 1:if(zo(e),e.mode=be,n===we){o>>>=2,h-=2;break t}break;case 2:e.mode=Mi;break;case 3:t.msg="invalid block type",e.mode=F}o>>>=2,h-=2;break;case Ci:for(o>>>=h&7,h-=h&7;h<32;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if((o&65535)!==(o>>>16^65535)){t.msg="invalid stored block lengths",e.mode=F;break}if(e.length=o&65535,o=0,h=0,e.mode=Qe,n===we)break t;case Qe:e.mode=Di;case Di:if(f=e.length,f){if(f>l&&(f=l),f>c&&(f=c),f===0)break t;a.set(i.subarray(r,r+f),s),l-=f,r+=f,c-=f,s+=f,e.length-=f;break}e.mode=Q;break;case Mi:for(;h<14;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(e.nlen=(o&31)+257,o>>>=5,h-=5,e.ndist=(o&31)+1,o>>>=5,h-=5,e.ncode=(o&15)+4,o>>>=4,h-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=F;break}e.have=0,e.mode=Ri;case Ri:for(;e.have<e.ncode;){for(;h<3;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.lens[D[e.have++]]=o&7,o>>>=3,h-=3}for(;e.have<19;)e.lens[D[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,E={bits:e.lenbits},S=te(So,e.lens,0,19,e.lencode,0,e.work,E),e.lenbits=E.bits,S){t.msg="invalid code lengths set",e.mode=F;break}e.have=0,e.mode=Li;case Li:for(;e.have<e.nlen+e.ndist;){for(;_=e.lencode[o&(1<<e.lenbits)-1],m=_>>>24,b=_>>>16&255,y=_&65535,!(m<=h);){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(y<16)o>>>=m,h-=m,e.lens[e.have++]=y;else{if(y===16){for(C=m+2;h<C;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(o>>>=m,h-=m,e.have===0){t.msg="invalid bit length repeat",e.mode=F;break}T=e.lens[e.have-1],f=3+(o&3),o>>>=2,h-=2}else if(y===17){for(C=m+3;h<C;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}o>>>=m,h-=m,T=0,f=3+(o&7),o>>>=3,h-=3}else{for(C=m+7;h<C;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}o>>>=m,h-=m,T=0,f=11+(o&127),o>>>=7,h-=7}if(e.have+f>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=F;break}for(;f--;)e.lens[e.have++]=T}}if(e.mode===F)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=F;break}if(e.lenbits=9,E={bits:e.lenbits},S=te(gi,e.lens,0,e.nlen,e.lencode,0,e.work,E),e.lenbits=E.bits,S){t.msg="invalid literal/lengths set",e.mode=F;break}if(e.distbits=6,e.distcode=e.distdyn,E={bits:e.distbits},S=te(_i,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,E),e.distbits=E.bits,S){t.msg="invalid distances set",e.mode=F;break}if(e.mode=be,n===we)break t;case be:e.mode=ve;case ve:if(l>=6&&c>=258){t.next_out=s,t.avail_out=c,t.next_in=r,t.avail_in=l,e.hold=o,e.bits=h,ko(t,d),s=t.next_out,a=t.output,c=t.avail_out,r=t.next_in,i=t.input,l=t.avail_in,o=e.hold,h=e.bits,e.mode===Q&&(e.back=-1);break}for(e.back=0;_=e.lencode[o&(1<<e.lenbits)-1],m=_>>>24,b=_>>>16&255,y=_&65535,!(m<=h);){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(b&&!(b&240)){for(v=m,I=b,k=y;_=e.lencode[k+((o&(1<<v+I)-1)>>v)],m=_>>>24,b=_>>>16&255,y=_&65535,!(v+m<=h);){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}o>>>=v,h-=v,e.back+=v}if(o>>>=m,h-=m,e.back+=m,e.length=y,b===0){e.mode=Oi;break}if(b&32){e.back=-1,e.mode=Q;break}if(b&64){t.msg="invalid literal/length code",e.mode=F;break}e.extra=b&15,e.mode=Ui;case Ui:if(e.extra){for(C=e.extra;h<C;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.length+=o&(1<<e.extra)-1,o>>>=e.extra,h-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Pi;case Pi:for(;_=e.distcode[o&(1<<e.distbits)-1],m=_>>>24,b=_>>>16&255,y=_&65535,!(m<=h);){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(!(b&240)){for(v=m,I=b,k=y;_=e.distcode[k+((o&(1<<v+I)-1)>>v)],m=_>>>24,b=_>>>16&255,y=_&65535,!(v+m<=h);){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}o>>>=v,h-=v,e.back+=v}if(o>>>=m,h-=m,e.back+=m,b&64){t.msg="invalid distance code",e.mode=F;break}e.offset=y,e.extra=b&15,e.mode=Fi;case Fi:if(e.extra){for(C=e.extra;h<C;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}e.offset+=o&(1<<e.extra)-1,o>>>=e.extra,h-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=F;break}e.mode=zi;case zi:if(c===0)break t;if(f=d-c,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=F;break}f>e.wnext?(f-=e.wnext,g=e.wsize-f):g=e.wnext-f,f>e.length&&(f=e.length),w=e.window}else w=a,g=s-e.offset,f=e.length;f>c&&(f=c),c-=f,e.length-=f;do a[s++]=w[g++];while(--f);e.length===0&&(e.mode=ve);break;case Oi:if(c===0)break t;a[s++]=e.length,c--,e.mode=ve;break;case tn:if(e.wrap){for(;h<32;){if(l===0)break t;l--,o|=i[r++]<<h,h+=8}if(d-=c,t.total_out+=d,e.total+=d,e.wrap&4&&d&&(t.adler=e.check=e.flags?z(e.check,a,d,s-d):Nt(e.check,a,d,s-d)),d=c,e.wrap&4&&(e.flags?o:Xi(o))!==e.check){t.msg="incorrect data check",e.mode=F;break}o=0,h=0}e.mode=Bi;case Bi:if(e.wrap&&e.flags){for(;h<32;){if(l===0)break t;l--,o+=i[r++]<<h,h+=8}if(e.wrap&4&&o!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=F;break}o=0,h=0}e.mode=Hi;case Hi:S=Co;break t;case F:S=mi;break t;case Zi:return pi;case qi:default:return $}return t.next_out=s,t.avail_out=c,t.next_in=r,t.avail_in=l,e.hold=o,e.bits=h,(e.wsize||d!==t.avail_out&&e.mode<F&&(e.mode<tn||n!==wi))&&Vi(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,e.total+=d,e.wrap&4&&d&&(t.adler=e.check=e.flags?z(e.check,a,d,t.next_out-d):Nt(e.check,a,d,t.next_out-d)),t.data_type=e.bits+(e.last?64:0)+(e.mode===Q?128:0)+(e.mode===be||e.mode===Qe?256:0),(u===0&&d===0||n===wi)&&S===bt&&(S=Mo),S},Bo=t=>{if(vt(t))return $;let n=t.state;return n.window&&(n.window=null),t.state=null,bt},Ho=(t,n)=>{if(vt(t))return $;const e=t.state;return e.wrap&2?(e.head=n,n.done=!1,bt):$},Zo=(t,n)=>{const e=n.length;let i,a,r;return vt(t)||(i=t.state,i.wrap!==0&&i.mode!==pe)?$:i.mode===pe&&(a=1,a=Nt(a,n,e,0),a!==i.check)?mi:(r=Vi(t,n,e,e),r?(i.mode=Zi,pi):(i.havedict=1,bt))};var qo=Ni,Xo=Yi,$o=$i,No=Fo,Yo=ji,jo=Oo,Go=Bo,Vo=Ho,Wo=Zo,Ko="pako inflate (from Nodeca project)",tt={inflateReset:qo,inflateReset2:Xo,inflateResetKeep:$o,inflateInit:No,inflateInit2:Yo,inflate:jo,inflateEnd:Go,inflateGetHeader:Vo,inflateSetDictionary:Wo,inflateInfo:Ko};function Jo(){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 Qo=Jo;const Wi=Object.prototype.toString,{Z_NO_FLUSH:tl,Z_FINISH:el,Z_OK:ee,Z_STREAM_END:an,Z_NEED_DICT:rn,Z_STREAM_ERROR:nl,Z_DATA_ERROR:Ki,Z_MEM_ERROR:il}=_t;function ne(t){this.options=ue.assign({chunkSize:65536,windowBits:15,to:""},t||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new li,this.strm.avail_out=0;let e=tt.inflateInit2(this.strm,n.windowBits);if(e!==ee)throw new Error(gt[e]);if(this.header=new Qo,tt.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Jt.string2buf(n.dictionary):Wi.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=tt.inflateSetDictionary(this.strm,n.dictionary),e!==ee)))throw new Error(gt[e])}ne.prototype.push=function(t,n){const e=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let r,s,l;if(this.ended)return!1;for(n===~~n?s=n:s=n===!0?el:tl,Wi.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),r=tt.inflate(e,s),r===rn&&a&&(r=tt.inflateSetDictionary(e,a),r===ee?r=tt.inflate(e,s):r===Ki&&(r=rn));e.avail_in>0&&r===an&&e.state.wrap>0&&t[e.next_in]!==0;)tt.inflateReset(e),r=tt.inflate(e,s);switch(r){case nl:case Ki:case rn:case il:return this.onEnd(r),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||r===an))if(this.options.to==="string"){let c=Jt.utf8border(e.output,e.next_out),o=e.next_out-c,h=Jt.buf2string(e.output,c);e.next_out=o,e.avail_out=i-o,o&&e.output.set(e.output.subarray(c,c+o),0),this.onData(h)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(r===ee&&l===0)){if(r===an)return r=tt.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(e.avail_in===0)break}}return!0},ne.prototype.onData=function(t){this.chunks.push(t)},ne.prototype.onEnd=function(t){t===ee&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ue.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function sn(t,n){const e=new ne(n);if(e.push(t),e.err)throw e.msg||gt[e.err];return e.result}function al(t,n){return n=n||{},n.raw=!0,sn(t,n)}var rl=ne,sl=sn,ol=al,ll=sn,cl=_t,fl={Inflate:rl,inflate:sl,inflateRaw:ol,ungzip:ll,constants:cl};const{Deflate:hl,deflate:dl,deflateRaw:ul,gzip:gl}=vo,{Inflate:_l,inflate:wl,inflateRaw:ml,ungzip:pl}=fl;var bl=hl,vl=dl,yl=ul,kl=gl,Il=_l,Tl=wl,xl=ml,El=pl,Sl=_t,Al={Deflate:bl,deflate:vl,deflateRaw:yl,gzip:kl,Inflate:Il,inflate:Tl,inflateRaw:xl,ungzip:El,constants:Sl};const A={};A.toRGBA8=function(t){const n=t.width,e=t.height;if(t.tabs.acTL===null)return[A.toRGBA8.decodeImage(t.data,n,e,t).buffer];const i=[];t.frames[0].data===null&&(t.frames[0].data=t.data);const a=n*e*4,r=new Uint8Array(a),s=new Uint8Array(a),l=new Uint8Array(a);for(let c=0;c<t.frames.length;c++){const o=t.frames[c],h=o.rect.x,u=o.rect.y,d=o.rect.width,f=o.rect.height,g=A.toRGBA8.decodeImage(o.data,d,f,t);if(c!==0)for(let w=0;w<a;w++)l[w]=r[w];if(o.blend===0?A._copyTile(g,d,f,r,n,e,h,u,0):o.blend===1&&A._copyTile(g,d,f,r,n,e,h,u,1),i.push(r.buffer.slice(0)),o.dispose===1)A._copyTile(s,d,f,r,n,e,h,u,0);else if(o.dispose===2)for(let w=0;w<a;w++)r[w]=l[w]}return i},A.toRGBA8.decodeImage=function(t,n,e,i){const a=n*e,r=A.decode._getBPP(i),s=Math.ceil(n*r/8),l=new Uint8Array(a*4),c=new Uint32Array(l.buffer),o=i.ctype,h=i.depth,u=A._bin.readUshort;if(o===6){const d=a<<2;if(h===8)for(let f=0;f<d;f+=4)l[f]=t[f],l[f+1]=t[f+1],l[f+2]=t[f+2],l[f+3]=t[f+3];if(h===16)for(let f=0;f<d;f++)l[f]=t[f<<1]}else if(o===2){const d=i.tabs.tRNS;if(d===null){if(h===8)for(let f=0;f<a;f++){const g=f*3;c[f]=-16777216|t[g+2]<<16|t[g+1]<<8|t[g]}if(h===16)for(let f=0;f<a;f++){const g=f*6;c[f]=-16777216|t[g+4]<<16|t[g+2]<<8|t[g]}}else{const f=d[0],g=d[1],w=d[2];if(h===8)for(let _=0;_<a;_++){const m=_<<2,b=_*3;c[_]=-16777216|t[b+2]<<16|t[b+1]<<8|t[b],t[b]===f&&t[b+1]===g&&t[b+2]===w&&(l[m+3]=0)}if(h===16)for(let _=0;_<a;_++){const m=_<<2,b=_*6;c[_]=-16777216|t[b+4]<<16|t[b+2]<<8|t[b],u(t,b)===f&&u(t,b+2)===g&&u(t,b+4)===w&&(l[m+3]=0)}}}else if(o===3){const d=i.tabs.PLTE,f=i.tabs.tRNS,g=f?f.length:0;if(h===1)for(let w=0;w<e;w++){const _=w*s,m=w*n;for(let b=0;b<n;b++){const y=m+b<<2,v=t[_+(b>>3)]>>7-((b&7)<<0)&1,I=3*v;l[y]=d[I],l[y+1]=d[I+1],l[y+2]=d[I+2],l[y+3]=v<g?f[v]:255}}if(h===2)for(let w=0;w<e;w++){const _=w*s,m=w*n;for(let b=0;b<n;b++){const y=m+b<<2,v=t[_+(b>>2)]>>6-((b&3)<<1)&3,I=3*v;l[y]=d[I],l[y+1]=d[I+1],l[y+2]=d[I+2],l[y+3]=v<g?f[v]:255}}if(h===4)for(let w=0;w<e;w++){const _=w*s,m=w*n;for(let b=0;b<n;b++){const y=m+b<<2,v=t[_+(b>>1)]>>4-((b&1)<<2)&15,I=3*v;l[y]=d[I],l[y+1]=d[I+1],l[y+2]=d[I+2],l[y+3]=v<g?f[v]:255}}if(h===8)for(let w=0;w<a;w++){const _=w<<2,m=t[w],b=3*m;l[_]=d[b],l[_+1]=d[b+1],l[_+2]=d[b+2],l[_+3]=m<g?f[m]:255}}else if(o===4){if(h===8)for(let d=0;d<a;d++){const f=d<<2,g=d<<1,w=t[g];l[f]=w,l[f+1]=w,l[f+2]=w,l[f+3]=t[g+1]}if(h===16)for(let d=0;d<a;d++){const f=d<<2,g=d<<2,w=t[g];l[f]=w,l[f+1]=w,l[f+2]=w,l[f+3]=t[g+2]}}else if(o===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let f=0;f<e;f++){const g=f*s,w=f*n;if(h===1)for(let _=0;_<n;_++){const m=255*(t[g+(_>>>3)]>>>7-(_&7)&1),b=m===d*255?0:255;c[w+_]=b<<24|m<<16|m<<8|m}else if(h===2)for(let _=0;_<n;_++){const m=85*(t[g+(_>>>2)]>>>6-((_&3)<<1)&3),b=m===d*85?0:255;c[w+_]=b<<24|m<<16|m<<8|m}else if(h===4)for(let _=0;_<n;_++){const m=17*(t[g+(_>>>1)]>>>4-((_&1)<<2)&15),b=m===d*17?0:255;c[w+_]=b<<24|m<<16|m<<8|m}else if(h===8)for(let _=0;_<n;_++){const m=t[g+_],b=m===d?0:255;c[w+_]=b<<24|m<<16|m<<8|m}else if(h===16)for(let _=0;_<n;_++){const m=t[g+(_<<1)],b=u(t,g+(_<<1))===d?0:255;c[w+_]=b<<24|m<<16|m<<8|m}}}return l},A.decode=function(t){const n=new Uint8Array(t);let e=8;const i=A._bin,a=i.readUshort,r=i.readUint,s={tabs:{},frames:[]},l=new Uint8Array(n.length);let c=0,o,h=0;const u=[137,80,78,71,13,10,26,10];for(let d=0;d<8;d++)if(n[d]!==u[d])throw"The input is not a PNG file!";for(;e<n.length;){const d=i.readUint(n,e);e+=4;const f=i.readASCII(n,e,4);if(e+=4,f==="IHDR")A.decode._IHDR(n,e,s);else if(f==="CgBI")s.tabs[f]=n.slice(e,e+4);else if(f==="IDAT"){for(let g=0;g<d;g++)l[c+g]=n[e+g];c+=d}else if(f==="acTL")s.tabs[f]={num_frames:r(n,e),num_plays:r(n,e+4)},o=new Uint8Array(n.length);else if(f==="fcTL"){if(h!==0){const m=s.frames[s.frames.length-1];m.data=A.decode._decompress(s,o.slice(0,h),m.rect.width,m.rect.height),h=0}const g={x:r(n,e+12),y:r(n,e+16),width:r(n,e+4),height:r(n,e+8)};let w=a(n,e+22);w=a(n,e+20)/(w===0?100:w);const _={rect:g,delay:Math.round(w*1e3),dispose:n[e+24],blend:n[e+25]};s.frames.push(_)}else if(f==="fdAT"){for(let g=0;g<d-4;g++)o[h+g]=n[e+g+4];h+=d-4}else if(f==="pHYs")s.tabs[f]=[i.readUint(n,e),i.readUint(n,e+4),n[e+8]];else if(f==="cHRM"){s.tabs[f]=[];for(let g=0;g<8;g++)s.tabs[f].push(i.readUint(n,e+g*4))}else if(f==="tEXt"||f==="zTXt"){s.tabs[f]===null&&(s.tabs[f]={});const g=i.nextZero(n,e),w=i.readASCII(n,e,g-e);let _;const m=e+d-g-1;if(f==="tEXt")_=i.readASCII(n,g+1,m);else{const b=A.decode._inflate(n.slice(g+2,g+2+m));_=i.readUTF8(b,0,b.length)}s.tabs[f][w]=_}else if(f==="iTXt"){s.tabs[f]==null&&(s.tabs[f]={});let g=0,w=e;g=i.nextZero(n,w);const _=i.readASCII(n,w,g-w);w=g+1;const m=n[w];w+=2,g=i.nextZero(n,w),w=g+1,g=i.nextZero(n,w),w=g+1;let b;const y=d-(w-e);if(m===0)b=i.readUTF8(n,w,y);else{const v=A.decode._inflate(n.slice(w,w+y));b=i.readUTF8(v,0,v.length)}s.tabs[f][_]=b}else if(f==="PLTE")s.tabs[f]=i.readBytes(n,e,d);else if(f==="hIST"){const g=s.tabs.PLTE.length/3;s.tabs[f]=[];for(let w=0;w<g;w++)s.tabs[f].push(a(n,e+w*2))}else if(f==="tRNS")s.ctype===3?s.tabs[f]=i.readBytes(n,e,d):s.ctype===0?s.tabs[f]=a(n,e):s.ctype===2&&(s.tabs[f]=[a(n,e),a(n,e+2),a(n,e+4)]);else if(f==="gAMA")s.tabs[f]=i.readUint(n,e)/1e5;else if(f==="sRGB")s.tabs[f]=n[e];else if(f==="bKGD")s.ctype===0||s.ctype===4?s.tabs[f]=[a(n,e)]:s.ctype===2||s.ctype===6?s.tabs[f]=[a(n,e),a(n,e+2),a(n,e+4)]:s.ctype===3&&(s.tabs[f]=n[e]);else if(f==="IEND")break;e+=d,e+=4}if(h!==0){const d=s.frames[s.frames.length-1];d.data=A.decode._decompress(s,o.slice(0,h),d.rect.width,d.rect.height),h=0}return s.data=A.decode._decompress(s,l,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},A.decode._decompress=function(t,n,e,i){const a=A.decode._getBPP(t),r=Math.ceil(e*a/8),s=new Uint8Array((r+1+t.interlace)*i);return t.tabs.CgBI?n=A.inflateRaw(n,s):n=A.decode._inflate(n,s),t.interlace===0?n=A.decode._filterZero(n,t,0,e,i):t.interlace===1&&(n=A.decode._readInterlace(n,t)),n},A.decode._inflate=function(t,n){return A.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),n)},A.inflateRaw=function(){const t={};return t.H={},t.H.N=function(n,e){const i=Uint8Array;let a=0,r=0,s=0,l=0,c=0,o=0,h=0,u=0,d=0,f,g;if(n[0]===3&&n[1]===0)return e||new i(0);const w=t.H,_=w.b,m=w.e,b=w.R,y=w.n,v=w.A,I=w.Z,k=w.m,T=e===null;for(T&&(e=new i(n.length>>>2<<3));a===0;){if(a=_(n,d,1),r=_(n,d+1,2),d+=3,r===0){d&7&&(d+=8-(d&7));const S=(d>>>3)+4,x=n[S-4]|n[S-3]<<8;T&&(e=t.H.W(e,u+x)),e.set(new i(n.buffer,n.byteOffset+S,x),u),d=S+x<<3,u+=x;continue}if(T&&(e=t.H.W(e,u+131072)),r===1&&(f=k.J,g=k.h,o=511,h=31),r===2){s=m(n,d,5)+257,l=m(n,d+5,5)+1,c=m(n,d+10,4)+4,d+=14;let S=1;for(let C=0;C<38;C+=2)k.Q[C]=0,k.Q[C+1]=0;for(let C=0;C<c;C++){const D=m(n,d+C*3,3);k.Q[(k.X[C]<<1)+1]=D,D>S&&(S=D)}d+=3*c,y(k.Q,S),v(k.Q,S,k.u),f=k.w,g=k.d,d=b(k.u,(1<<S)-1,s+l,n,d,k.v);const x=w.V(k.v,0,s,k.C);o=(1<<x)-1;const E=w.V(k.v,s,l,k.D);h=(1<<E)-1,y(k.C,x),v(k.C,x,f),y(k.D,E),v(k.D,E,g)}for(;;){const S=f[I(n,d)&o];d+=S&15;const x=S>>>4;if(!(x>>>8))e[u++]=x;else{if(x===256)break;{let E=u+x-254;if(x>264){const M=k.q[x-257];E=u+(M>>>3)+m(n,d,M&7),d+=M&7}const C=g[I(n,d)&h];d+=C&15;const D=C>>>4,U=k.c[D],P=(U>>>4)+_(n,d,U&15);for(d+=U&15;u<E;)e[u]=e[u++-P],e[u]=e[u++-P],e[u]=e[u++-P],e[u]=e[u++-P];u=E}}}}return e.length===u?e:e.slice(0,u)},t.H.W=function(n,e){const i=n.length;if(e<=i)return n;const a=new Uint8Array(i<<1);return a.set(n,0),a},t.H.R=function(n,e,i,a,r,s){const l=t.H.e,c=t.H.Z;let o=0;for(;o<i;){const h=n[c(a,r)&e];r+=h&15;const u=h>>>4;if(u<=15)s[o]=u,o++;else{let d=0,f=0;u===16?(f=3+l(a,r,2),r+=2,d=s[o-1]):u===17?(f=3+l(a,r,3),r+=3):u===18&&(f=11+l(a,r,7),r+=7);const g=o+f;for(;o<g;)s[o]=d,o++}}return r},t.H.V=function(n,e,i,a){let r=0,s=0;const l=a.length>>>1;for(;s<i;){const c=n[s+e];a[s<<1]=0,a[(s<<1)+1]=c,c>r&&(r=c),s++}for(;s<l;)a[s<<1]=0,a[(s<<1)+1]=0,s++;return r},t.H.n=function(n,e){const i=t.H.m,a=n.length;let r,s,l,c,o;const h=i.j;for(let d=0;d<=e;d++)h[d]=0;for(c=1;c<a;c+=2)h[n[c]]++;const u=i.K;for(r=0,h[0]=0,s=1;s<=e;s++)r=r+h[s-1]<<1,u[s]=r;for(l=0;l<a;l+=2)o=n[l+1],o!==0&&(n[l]=u[o],u[o]++)},t.H.A=function(n,e,i){const a=n.length,s=t.H.m.r;for(let l=0;l<a;l+=2)if(n[l+1]!==0){const c=l>>1,o=n[l+1],h=c<<4|o,u=e-o;let d=n[l]<<u;const f=d+(1<<u);for(;d!==f;){const g=s[d]>>>15-e;i[g]=h,d++}}},t.H.l=function(n,e){const i=t.H.m.r,a=15-e;for(let r=0;r<n.length;r+=2){const s=n[r]<<e-n[r+1];n[r]=i[s]>>>a}},t.H.M=function(n,e,i){i=i<<(e&7);const a=e>>>3;n[a]|=i,n[a+1]|=i>>>8},t.H.I=function(n,e,i){i=i<<(e&7);const a=e>>>3;n[a]|=i,n[a+1]|=i>>>8,n[a+2]|=i>>>16},t.H.e=function(n,e,i){return(n[e>>>3]|n[(e>>>3)+1]<<8)>>>(e&7)&(1<<i)-1},t.H.b=function(n,e,i){return(n[e>>>3]|n[(e>>>3)+1]<<8|n[(e>>>3)+2]<<16)>>>(e&7)&(1<<i)-1},t.H.Z=function(n,e){return(n[e>>>3]|n[(e>>>3)+1]<<8|n[(e>>>3)+2]<<16)>>>(e&7)},t.H.i=function(n,e){return(n[e>>>3]|n[(e>>>3)+1]<<8|n[(e>>>3)+2]<<16|n[(e>>>3)+3]<<24)>>>(e&7)},t.H.m=function(){const n=Uint16Array,e=Uint32Array;return{K:new n(16),j:new n(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 n(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 e(32),J:new n(512),_:[],h:new n(32),$:[],w:new n(32768),C:[],v:[],d:new n(32768),D:[],u:new n(512),Q:[],r:new n(32768),s:new e(286),Y:new e(30),a:new e(19),t:new e(15e3),k:new n(65536),g:new n(32768)}}(),function(){const n=t.H.m,e=32768;for(let a=0;a<e;a++){let r=a;r=(r&2863311530)>>>1|(r&1431655765)<<1,r=(r&3435973836)>>>2|(r&858993459)<<2,r=(r&4042322160)>>>4|(r&252645135)<<4,r=(r&4278255360)>>>8|(r&16711935)<<8,n.r[a]=(r>>>16|r<<16)>>>17}function i(a,r,s){for(;r--!==0;)a.push(0,s)}for(let a=0;a<32;a++)n.q[a]=n.S[a]<<3|n.T[a],n.c[a]=n.p[a]<<4|n.z[a];i(n._,144,8),i(n._,112,9),i(n._,24,7),i(n._,8,8),t.H.n(n._,9),t.H.A(n._,9,n.J),t.H.l(n._,9),i(n.$,32,5),t.H.n(n.$,5),t.H.A(n.$,5,n.h),t.H.l(n.$,5),i(n.Q,19,0),i(n.C,286,0),i(n.D,30,0),i(n.v,320,0)}(),t.H.N}(),A.decode._readInterlace=function(t,n){const e=n.width,i=n.height,a=A.decode._getBPP(n),r=a>>3,s=Math.ceil(e*a/8),l=new Uint8Array(i*s);let c=0;const o=[0,0,4,0,2,0,1],h=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1];let f=0;for(;f<7;){const g=u[f],w=d[f];let _=0,m=0,b=o[f];for(;b<i;)b+=g,m++;let y=h[f];for(;y<e;)y+=w,_++;const v=Math.ceil(_*a/8);A.decode._filterZero(t,n,c,_,m);let I=0,k=o[f];for(;k<i;){let T=h[f],S=c+I*v<<3;for(;T<e;){if(a===1){let x=t[S>>3];x=x>>7-(S&7)&1,l[k*s+(T>>3)]|=x<<7-((T&7)<<0)}if(a===2){let x=t[S>>3];x=x>>6-(S&7)&3,l[k*s+(T>>2)]|=x<<6-((T&3)<<1)}if(a===4){let x=t[S>>3];x=x>>4-(S&7)&15,l[k*s+(T>>1)]|=x<<4-((T&1)<<2)}if(a>=8){const x=k*s+T*r;for(let E=0;E<r;E++)l[x+E]=t[(S>>3)+E]}S+=a,T+=w}I++,k+=g}_*m!==0&&(c+=m*(1+v)),f=f+1}return l},A.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},A.decode._filterZero=function(t,n,e,i,a){let r=A.decode._getBPP(n);const s=Math.ceil(i*r/8),l=A.decode._paeth;r=Math.ceil(r/8);let c=0,o=1,h=t[e],u=0;if(h>1&&(t[e]=[0,0,1][h-2]),h===3)for(u=r;u<s;u++)t[u+1]=t[u+1]+(t[u+1-r]>>>1)&255;for(let d=0;d<a;d++)if(c=e+d*s,o=c+d+1,h=t[o-1],u=0,h===0)for(;u<s;u++)t[c+u]=t[o+u];else if(h===1){for(;u<r;u++)t[c+u]=t[o+u];for(;u<s;u++)t[c+u]=t[o+u]+t[c+u-r]}else if(h===2)for(;u<s;u++)t[c+u]=t[o+u]+t[c+u-s];else if(h===3){for(;u<r;u++)t[c+u]=t[o+u]+(t[c+u-s]>>>1);for(;u<s;u++)t[c+u]=t[o+u]+(t[c+u-s]+t[c+u-r]>>>1)}else{for(;u<r;u++)t[c+u]=t[o+u]+l(0,t[c+u-s],0);for(;u<s;u++)t[c+u]=t[o+u]+l(t[c+u-r],t[c+u-s],t[c+u-r-s])}return t},A.decode._paeth=function(t,n,e){const i=t+n-e,a=i-t,r=i-n,s=i-e;return a*a<=r*r&&a*a<=s*s?t:r*r<=s*s?n:e},A.decode._IHDR=function(t,n,e){const i=A._bin;e.width=i.readUint(t,n),n+=4,e.height=i.readUint(t,n),n+=4,e.depth=t[n],n++,e.ctype=t[n],n++,e.compress=t[n],n++,e.filter=t[n],n++,e.interlace=t[n],n++},A._bin={nextZero:function(t,n){for(;t[n]!==0;)n++;return n},readUshort:function(t,n){return t[n]<<8|t[n+1]},writeUshort:function(t,n,e){t[n]=e>>8&255,t[n+1]=e&255},readUint:function(t,n){return t[n]*16777216+(t[n+1]<<16|t[n+2]<<8|t[n+3])},writeUint:function(t,n,e){t[n]=e>>24&255,t[n+1]=e>>16&255,t[n+2]=e>>8&255,t[n+3]=e&255},readASCII:function(t,n,e){let i="";for(let a=0;a<e;a++)i+=String.fromCharCode(t[n+a]);return i},writeASCII:function(t,n,e){for(let i=0;i<e.length;i++)t[n+i]=e.charCodeAt(i)},readBytes:function(t,n,e){const i=[];for(let a=0;a<e;a++)i.push(t[n+a]);return i},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,n,e){let i="",a;for(let r=0;r<e;r++)i+="%"+A._bin.pad(t[n+r].toString(16));try{a=decodeURIComponent(i)}catch{return A._bin.readASCII(t,n,e)}return a}},A._copyTile=function(t,n,e,i,a,r,s,l,c){const o=Math.min(n,a),h=Math.min(e,r);let u=0,d=0;for(let f=0;f<h;f++)for(let g=0;g<o;g++)if(s>=0&&l>=0?(u=f*n+g<<2,d=(l+f)*a+s+g<<2):(u=(-l+f)*n-s+g<<2,d=f*a+g<<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 w=t[u+3]*.00392156862745098,_=t[u]*w,m=t[u+1]*w,b=t[u+2]*w,y=i[d+3]*(1/255),v=i[d]*y,I=i[d+1]*y,k=i[d+2]*y,T=1-w,S=w+y*T,x=S===0?0:1/S;i[d+3]=255*S,i[d+0]=(_+v*T)*x,i[d+1]=(m+I*T)*x,i[d+2]=(b+k*T)*x}else if(c===2){const w=t[u+3],_=t[u],m=t[u+1],b=t[u+2],y=i[d+3],v=i[d],I=i[d+1],k=i[d+2];w===y&&_===v&&m===I&&b===k?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=_,i[d+1]=m,i[d+2]=b,i[d+3]=w)}else if(c===3){const w=t[u+3],_=t[u],m=t[u+1],b=t[u+2],y=i[d+3],v=i[d],I=i[d+1],k=i[d+2];if(w===y&&_===v&&m===I&&b===k)continue;if(w<220&&y>20)return!1}return!0},A.encode=function(t,n,e,i,a,r,s){i===null&&(i=0),s===null&&(s=!1);const l=A.encode.compress(t,n,e,i,[!1,!1,!1,0,s]);return A.encode.compressPNG(l,-1),A.encode._main(l,n,e,a,r)},A.encodeLL=function(t,n,e,i,a,r,s,l){const c={ctype:0+(i===1?0:2)+(a===0?0:4),depth:r,frames:[]},o=(i+a)*r,h=o*n;for(let d=0;d<t.length;d++)c.frames.push({rect:{x:0,y:0,width:n,height:e},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(o/8),bpl:Math.ceil(h/8)});return A.encode.compressPNG(c,0,!0),A.encode._main(c,n,e,s,l)},A.encode._main=function(t,n,e,i,a){a||(a={});const r=A.crc.crc,s=A._bin.writeUint,l=A._bin.writeUshort,c=A._bin.writeASCII;let o=8;const h=t.frames.length>1;let u=!1,d=8+(16+5+4)+(h?20:0);if(a.sRGB!==null&&a.sRGB!==void 0&&(d+=13),a.pHYs!==null&&a.pHYs!==void 0&&(d+=21),t.ctype===3){const _=t.plte.length;for(let m=0;m<_;m++)t.plte[m]>>>24!==255&&(u=!0);d+=8+_*3+4+(u?8+_*1+4:0)}for(let _=0;_<t.frames.length;_++){const m=t.frames[_];h&&(d+=38),d+=m.cimg.length+12,_!==0&&(d+=4)}d+=12;const f=new Uint8Array(d),g=[137,80,78,71,13,10,26,10];for(let _=0;_<8;_++)f[_]=g[_];if(s(f,o,13),o+=4,c(f,o,"IHDR"),o+=4,s(f,o,n),o+=4,s(f,o,e),o+=4,f[o]=t.depth,o++,f[o]=t.ctype,o++,f[o]=0,o++,f[o]=0,o++,f[o]=0,o++,s(f,o,r(f,o-17,17)),o+=4,a.sRGB!==null&&a.sRGB!==void 0&&(s(f,o,1),o+=4,c(f,o,"sRGB"),o+=4,f[o]=a.sRGB,o++,s(f,o,r(f,o-5,5)),o+=4),a.pHYs!==null&&a.pHYs!==void 0&&(s(f,o,9),o+=4,c(f,o,"pHYs"),o+=4,s(f,o,a.pHYs[0]),o+=4,s(f,o,a.pHYs[1]),o+=4,f[o]=a.pHYs[2],o++,s(f,o,r(f,o-13,13)),o+=4),h&&(s(f,o,8),o+=4,c(f,o,"acTL"),o+=4,s(f,o,t.frames.length),o+=4,s(f,o,a.loop!=null?a.loop:0),o+=4,s(f,o,r(f,o-12,12)),o+=4),t.ctype===3){const _=t.plte.length;s(f,o,_*3),o+=4,c(f,o,"PLTE"),o+=4;for(let m=0;m<_;m++){const b=m*3,y=t.plte[m],v=y&255,I=y>>>8&255,k=y>>>16&255;f[o+b+0]=v,f[o+b+1]=I,f[o+b+2]=k}if(o+=_*3,s(f,o,r(f,o-_*3-4,_*3+4)),o+=4,u){s(f,o,_),o+=4,c(f,o,"tRNS"),o+=4;for(let m=0;m<_;m++)f[o+m]=t.plte[m]>>>24&255;o+=_,s(f,o,r(f,o-_-4,_+4)),o+=4}}let w=0;for(let _=0;_<t.frames.length;_++){const m=t.frames[_];h&&(s(f,o,26),o+=4,c(f,o,"fcTL"),o+=4,s(f,o,w++),o+=4,s(f,o,m.rect.width),o+=4,s(f,o,m.rect.height),o+=4,s(f,o,m.rect.x),o+=4,s(f,o,m.rect.y),o+=4,l(f,o,i[_]),o+=2,l(f,o,1e3),o+=2,f[o]=m.dispose,o++,f[o]=m.blend,o++,s(f,o,r(f,o-30,30)),o+=4);const b=m.cimg,y=b.length;s(f,o,y+(_===0?0:4)),o+=4;const v=o;c(f,o,_===0?"IDAT":"fdAT"),o+=4,_!==0&&(s(f,o,w++),o+=4),f.set(b,o),o+=y,s(f,o,r(f,v,o-v)),o+=4}return s(f,o,0),o+=4,c(f,o,"IEND"),o+=4,s(f,o,r(f,o-4,4)),o+=4,f.buffer},A.encode.compressPNG=function(t,n,e){for(let i=0;i<t.frames.length;i++){const a=t.frames[i],r=a.rect.height,s=new Uint8Array(r*a.bpl+r);a.cimg=A.encode._filterZero(a.img,r,a.bpp,a.bpl,s,n,e)}},A.encode.compress=function(t,n,e,i,a){const r=a[0],s=a[1],l=a[2],c=a[3],o=a[4];let h=6,u=8,d=255;for(let y=0;y<t.length;y++){const v=new Uint8Array(t[y]),I=v.length;for(let k=0;k<I;k+=4)d&=v[k+3]}const f=d!==255,g=A.encode.framize(t,n,e,r,s,l),w={},_=[],m=[];if(i!==0){const y=[];for(let S=0;S<g.length;S++)y.push(g[S].img.buffer);const v=A.encode.concatRGBA(y),I=A.quantize(v,i);let k=0;const T=new Uint8Array(I.abuf);for(let S=0;S<g.length;S++){const x=g[S].img,E=x.length;m.push(new Uint8Array(I.inds.buffer,k>>2,E>>2));for(let C=0;C<E;C+=4)x[C]=T[k+C],x[C+1]=T[k+C+1],x[C+2]=T[k+C+2],x[C+3]=T[k+C+3];k+=E}for(let S=0;S<I.plte.length;S++)_.push(I.plte[S].est.rgba)}else for(let y=0;y<g.length;y++){const v=g[y],I=new Uint32Array(v.img.buffer),k=v.rect.width,T=I.length,S=new Uint8Array(T);m.push(S);for(let x=0;x<T;x++){const E=I[x];if(x!==0&&E===I[x-1])S[x]=S[x-1];else if(x>k&&E===I[x-k])S[x]=S[x-k];else{let C=w[E];if(C===null&&(w[E]=C=_.length,_.push(E),_.length>=300))break;S[x]=C}}}const b=_.length;b<=256&&o===!1&&(b<=2?u=1:b<=4?u=2:b<=16?u=4:u=8,u=Math.max(u,c));for(let y=0;y<g.length;y++){const v=g[y],I=v.rect.width,k=v.rect.height;let T=v.img,S=4*I,x=4;if(b<=256&&o===!1){S=Math.ceil(u*I/8);const E=new Uint8Array(S*k),C=m[y];for(let D=0;D<k;D++){const U=D*S,P=D*I;if(u===8)for(let M=0;M<I;M++)E[U+M]=C[P+M];else if(u===4)for(let M=0;M<I;M++)E[U+(M>>1)]|=C[P+M]<<4-(M&1)*4;else if(u===2)for(let M=0;M<I;M++)E[U+(M>>2)]|=C[P+M]<<6-(M&3)*2;else if(u===1)for(let M=0;M<I;M++)E[U+(M>>3)]|=C[P+M]<<7-(M&7)*1}T=E,h=3,x=1}else if(f===!1&&g.length===1){const E=new Uint8Array(I*k*3),C=I*k;for(let D=0;D<C;D++){const U=D*3,P=D*4;E[U]=T[P],E[U+1]=T[P+1],E[U+2]=T[P+2]}T=E,h=2,x=3,S=3*I}v.img=T,v.bpl=S,v.bpp=x}return{ctype:h,depth:u,plte:_,frames:g}},A.encode.framize=function(t,n,e,i,a,r){const s=[];for(let l=0;l<t.length;l++){const c=new Uint8Array(t[l]),o=new Uint32Array(c.buffer);let h,u=0,d=0,f=n,g=e,w=i?1:0;if(l!==0){const _=r||i||l===1||s[l-2].dispose!==0?1:2;let m=0,b=1e9;for(let v=0;v<_;v++){const I=new Uint32Array(t[l-1-v]);let k=n,T=e,S=-1,x=-1;for(let C=0;C<e;C++)for(let D=0;D<n;D++){const U=C*n+D;o[U]!==I[U]&&(D<k&&(k=D),D>S&&(S=D),C<T&&(T=C),C>x&&(x=C))}S===-1&&(k=T=S=x=0),a&&((k&1)===1&&k--,(T&1)===1&&T--);const E=(S-k+1)*(x-T+1);E<b&&(b=E,m=v,u=k,d=T,f=S-k+1,g=x-T+1)}const y=new Uint8Array(t[l-1-m]);m===1&&(s[l-1].dispose=2),h=new Uint8Array(f*g*4),A._copyTile(y,n,e,h,f,g,-u,-d,0),w=A._copyTile(c,n,e,h,f,g,-u,-d,3)?1:0,w===1?A.encode._prepareDiff(c,n,e,h,{x:u,y:d,width:f,height:g}):A._copyTile(c,n,e,h,f,g,-u,-d,0)}else h=c.slice(0);s.push({rect:{x:u,y:d,width:f,height:g},img:h,blend:w,dispose:0})}if(i)for(let l=0;l<s.length;l++){const c=s[l];if(c.blend===1)continue;const o=c.rect,h=s[l-1].rect,u=Math.min(o.x,h.x),d=Math.min(o.y,h.y),f=Math.max(o.x+o.width,h.x+h.width),g=Math.max(o.y+o.height,h.y+h.height),w={x:u,y:d,width:f-u,height:g-d};s[l-1].dispose=1,l-1!==0&&A.encode._updateFrame(t,n,e,s,l-1,w,a),A.encode._updateFrame(t,n,e,s,l,w,a)}return s},A.encode._updateFrame=function(t,n,e,i,a,r,s){const l=Uint8Array,c=Uint32Array,o=new l(t[a-1]),h=new c(t[a-1]),u=a+1<t.length?new l(t[a+1]):null,d=new l(t[a]),f=new c(d.buffer);let g=n,w=e,_=-1,m=-1;for(let y=0;y<r.height;y++)for(let v=0;v<r.width;v++){const I=r.x+v,k=r.y+y,T=k*n+I,S=f[T];S===0||i[a-1].dispose===0&&h[T]===S&&(u===null||u[T*4+3]!==0)||(I<g&&(g=I),I>_&&(_=I),k<w&&(w=k),k>m&&(m=k))}_===-1&&(g=w=_=m=0),s&&((g&1)===1&&g--,(w&1)===1&&w--),r={x:g,y:w,width:_-g+1,height:m-w+1};const b=i[a];b.rect=r,b.blend=1,b.img=new Uint8Array(r.width*r.height*4),i[a-1].dispose===0?(A._copyTile(o,n,e,b.img,r.width,r.height,-r.x,-r.y,0),A.encode._prepareDiff(d,n,e,b.img,r)):A._copyTile(d,n,e,b.img,r.width,r.height,-r.x,-r.y,0)},A.encode._prepareDiff=function(t,n,e,i,a){A._copyTile(t,n,e,i,a.width,a.height,-a.x,-a.y,2)},A.encode._filterZero=function(t,n,e,i,a,r,s){const l=[];let c=[0,1,2,3,4];r!==-1?c=[r]:(n*i>5e5||e===1)&&(c=[0]);let o;s&&(o={level:0});const h=a.length>1e7&&Dn!=null?Dn:Al;for(let f=0;f<c.length;f++){for(let g=0;g<n;g++)A.encode._filterLine(a,t,g,i,e,c[f]);l.push(h.deflate(a,o))}let u,d=1e9;for(let f=0;f<l.length;f++)l[f].length<d&&(u=f,d=l[f].length);return l[u]},A.encode._filterLine=function(t,n,e,i,a,r){const s=e*i;let l=s+e;const c=A.decode._paeth;if(t[l]=r,l++,r===0)if(i<500)for(let o=0;o<i;o++)t[l+o]=n[s+o];else t.set(new Uint8Array(n.buffer,s,i),l);else if(r===1){for(let o=0;o<a;o++)t[l+o]=n[s+o];for(let o=a;o<i;o++)t[l+o]=n[s+o]-n[s+o-a]+256&255}else if(e===0){for(let o=0;o<a;o++)t[l+o]=n[s+o];if(r===2)for(let o=a;o<i;o++)t[l+o]=n[s+o];if(r===3)for(let o=a;o<i;o++)t[l+o]=n[s+o]-(n[s+o-a]>>1)+256&255;if(r===4)for(let o=a;o<i;o++)t[l+o]=n[s+o]-c(n[s+o-a],0,0)+256&255}else{if(r===2)for(let o=0;o<i;o++)t[l+o]=n[s+o]+256-n[s+o-i]&255;if(r===3){for(let o=0;o<a;o++)t[l+o]=n[s+o]+256-(n[s+o-i]>>1)&255;for(let o=a;o<i;o++)t[l+o]=n[s+o]+256-(n[s+o-i]+n[s+o-a]>>1)&255}if(r===4){for(let o=0;o<a;o++)t[l+o]=n[s+o]+256-c(0,n[s+o-i],0)&255;for(let o=a;o<i;o++)t[l+o]=n[s+o]+256-c(n[s+o-a],n[s+o-i],n[s+o-a-i])&255}}},A.crc={table:function(){const t=new Uint32Array(256);for(let n=0;n<256;n++){let e=n;for(let i=0;i<8;i++)e&1?e=3988292384^e>>>1:e=e>>>1;t[n]=e}return t}(),update:function(t,n,e,i){for(let a=0;a<i;a++)t=A.crc.table[(t^n[e+a])&255]^t>>>8;return t},crc:function(t,n,e){return A.crc.update(4294967295,t,n,e)^4294967295}},A.quantize=function(t,n){const e=new Uint8Array(t),i=e.slice(0),a=new Uint32Array(i.buffer),r=A.quantize.getKDtree(i,n),s=r[0],l=r[1],c=A.quantize.planeDst,o=e,h=a,u=o.length,d=new Uint8Array(e.length>>2);let f;if(e.length<2e7)for(let g=0;g<u;g+=4){const w=o[g]*.00392156862745098,_=o[g+1]*(1/255),m=o[g+2]*(1/255),b=o[g+3]*(1/255);f=A.quantize.getNearest(s,w,_,m,b),d[g>>2]=f.ind,h[g>>2]=f.est.rgba}else for(let g=0;g<u;g+=4){const w=o[g]*.00392156862745098,_=o[g+1]*(1/255),m=o[g+2]*(1/255),b=o[g+3]*(1/255);for(f=s;f.left;)f=c(f.est,w,_,m,b)<=0?f.left:f.right;d[g>>2]=f.ind,h[g>>2]=f.est.rgba}return{abuf:i.buffer,inds:d,plte:l}},A.quantize.getKDtree=function(t,n,e){e===null&&(e=1e-4);const i=new Uint32Array(t.buffer),a={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};a.bst=A.quantize.stats(t,a.i0,a.i1),a.est=A.quantize.estats(a.bst);const r=[a];for(;r.length<n;){let s=0,l=0;for(let f=0;f<r.length;f++)r[f].est.L>s&&(s=r[f].est.L,l=f);if(s<e)break;const c=r[l],o=A.quantize.splitPixels(t,i,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=o||c.i1<=o){c.est.L=0;continue}const u={i0:c.i0,i1:o,bst:null,est:null,tdst:0,left:null,right:null};u.bst=A.quantize.stats(t,u.i0,u.i1),u.est=A.quantize.estats(u.bst);const d={i0:o,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 f=0;f<16;f++)d.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)d.bst.m[f]=c.bst.m[f]-u.bst.m[f];d.est=A.quantize.estats(d.bst),c.left=u,c.right=d,r[l]=u,r.push(d)}r.sort(function(s,l){return l.bst.N-s.bst.N});for(let s=0;s<r.length;s++)r[s].ind=s;return[a,r]},A.quantize.getNearest=function(t,n,e,i,a){if(t.left==null)return t.tdst=A.quantize.dist(t.est.q,n,e,i,a),t;const r=A.quantize.planeDst(t.est,n,e,i,a);let s=t.left,l=t.right;r>0&&(s=t.right,l=t.left);const c=A.quantize.getNearest(s,n,e,i,a);if(c.tdst<=r*r)return c;const o=A.quantize.getNearest(l,n,e,i,a);return o.tdst<c.tdst?o:c},A.quantize.planeDst=function(t,n,e,i,a){const r=t.e;return r[0]*n+r[1]*e+r[2]*i+r[3]*a-t.eMq},A.quantize.dist=function(t,n,e,i,a){const r=n-t[0],s=e-t[1],l=i-t[2],c=a-t[3];return r*r+s*s+l*l+c*c},A.quantize.splitPixels=function(t,n,e,i,a,r){const s=A.quantize.vecDot;for(i-=4;e<i;){for(;s(t,e,a)<=r;)e+=4;for(;s(t,i,a)>r;)i-=4;if(e>=i)break;const l=n[e>>2];n[e>>2]=n[i>>2],n[i>>2]=l,e+=4,i-=4}for(;s(t,e,a)>r;)e-=4;return e+4},A.quantize.vecDot=function(t,n,e){return t[n]*e[0]+t[n+1]*e[1]+t[n+2]*e[2]+t[n+3]*e[3]},A.quantize.stats=function(t,n,e){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],r=e-n>>2;for(let s=n;s<e;s+=4){const l=t[s]*.00392156862745098,c=t[s+1]*(1/255),o=t[s+2]*(1/255),h=t[s+3]*(1/255);a[0]+=l,a[1]+=c,a[2]+=o,a[3]+=h,i[0]+=l*l,i[1]+=l*c,i[2]+=l*o,i[3]+=l*h,i[5]+=c*c,i[6]+=c*o,i[7]+=c*h,i[10]+=o*o,i[11]+=o*h,i[15]+=h*h}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:a,N:r}},A.quantize.estats=function(t){const n=t.R,e=t.m,i=t.N,a=e[0],r=e[1],s=e[2],l=e[3],c=i===0?0:1/i,o=[n[0]-a*a*c,n[1]-a*r*c,n[2]-a*s*c,n[3]-a*l*c,n[4]-r*a*c,n[5]-r*r*c,n[6]-r*s*c,n[7]-r*l*c,n[8]-s*a*c,n[9]-s*r*c,n[10]-s*s*c,n[11]-s*l*c,n[12]-l*a*c,n[13]-l*r*c,n[14]-l*s*c,n[15]-l*l*c],h=o,u=A.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],f=0,g=0;if(i!==0)for(let m=0;m<16&&(d=u.multVec(h,d),g=Math.sqrt(u.dot(d,d)),d=u.sml(1/g,d),!(m!==0&&Math.abs(g-f)<1e-9));m++)f=g;const w=[a*c,r*c,s*c,l*c],_=u.dot(u.sml(255,w),d);return{Cov:o,q:w,e:d,L:f,eMq255:_,eMq:u.dot(d,w),rgba:(Math.round(255*w[3])<<24|Math.round(255*w[2])<<16|Math.round(255*w[1])<<8|Math.round(255*w[0])<<0)>>>0}},A.M4={multVec:function(t,n){return[t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3],t[4]*n[0]+t[5]*n[1]+t[6]*n[2]+t[7]*n[3],t[8]*n[0]+t[9]*n[1]+t[10]*n[2]+t[11]*n[3],t[12]*n[0]+t[13]*n[1]+t[14]*n[2]+t[15]*n[3]]},dot:function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},sml:function(t,n){return[t*n[0],t*n[1],t*n[2],t*n[3]]}},A.encode.concatRGBA=function(t){let n=0;for(let a=0;a<t.length;a++)n+=t[a].byteLength;const e=new Uint8Array(n);let i=0;for(let a=0;a<t.length;a++){const r=new Uint8Array(t[a]),s=r.length;for(let l=0;l<s;l+=4){let c=r[l],o=r[l+1],h=r[l+2];const u=r[l+3];u===0&&(c=o=h=0),e[i+l]=c,e[i+l+1]=o,e[i+l+2]=h,e[i+l+3]=u}i+=s}return e.buffer};const ye=new Map,on=(t,n)=>{if(ye.has(t))return n(null,ye.get(t));const e=new Image;e.onload=function(){ye.set(t,{width:e.width,height:e.height,element:e}),n(null,ye.get(t))},e.onerror=function(i){n(i,null)},e.src=t},ln=(t,n)=>{on(t,(e,i)=>{if(!i)return n(e,null);const a=document.createElement("canvas"),r=a.getContext("2d");return a.width=i.width,a.height=i.height,r.drawImage(i.element,0,0,a.width,a.height),r.getImageData(0,0,a.width,a.height)})},Ji=t=>{let n="";if(t){const i=new DataView(t).getUint32(0,!1);switch(Number(i).toString(16).toUpperCase()){case"FFD8FFDB":n="JPG";break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":n="JPEG";break;case"89504E47":n="PNG";break;case"47494638":n="GIF";break;case"52494646":n="WEBP";break}}return n},Cl=(t,n)=>{for(let e=0,i=t.length;e<i;e++){const a=t[e],{type:r}=a,s=r.split("/");if(s[0]!=="image")return;let l=s[1].toUpperCase();const c=new FileReader;c.onload=function(o){if(!o.target)return n("no reader target",null);const h=o.target.result,u=Ji(h);u&&(l=u);const d=new Blob([h]);cn(d,(f,g)=>{if(!g)return n(f,null);on(g,(w,_)=>{if(!_)return n(w,null);ln(g,(m,b)=>{if(!b)return n(m,null);const y={name:a.name,fileType:l,size:a.size,width:_.width,height:_.height,imgUrl:g,imageData:b,blob:d};return n(null,y)})})})},c.readAsArrayBuffer(a)}},Dl=(t,n=0,e=0)=>{const i=document.createElement("canvas"),a=i.getContext("2d");return i.width=n,i.height=e,a.drawImage(t,0,0,n,e),a.getImageData(0,0,n,e)},Ml=(t,n=0,e=0)=>{const i=document.createElement("canvas"),a=i.getContext("2d");return i.width=n,i.height=e,a.drawImage(t,0,0,n,e),a.getImageData(0,0,n,e)},Rl=t=>{const n=t.width,e=t.height,i=n*e*3,a=i+54,r=[66,77,a&255,a>>8&255,a>>16&255,a>>24&255,0,0,0,0,54,0,0,0],s=[40,0,0,0,n&255,n>>8&255,n>>16&255,n>>24&255,e&255,e>>8&255,e>>16&255,e>>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],l=(4-n*3%4)%4,c=t.data;let o="";const h=n<<2;let u=e;const d=String.fromCharCode;do{const g=h*(u-1);let w="";for(let _=0;_<n;_++){const m=_<<2;w+=d(c[g+m+2])+d(c[g+m+1])+d(c[g+m])}for(let _=0;_<l;_++)w+=String.fromCharCode(0);o+=w}while(--u);function f(g){if(!window.btoa)throw"btoa undefined";let w="";if(typeof g=="string")w=g;else for(let _=0;_<g.length;_++)w+=String.fromCharCode(g[_]);return btoa(w)}return f(r.concat(s))+f(o)},Ll=t=>{const{width:n,height:e}=t,i=document.createElement("canvas"),a=i.getContext("2d");return i.width=n,i.height=e,a.putImageData(t,0,0,0,0,n,e),i.toDataURL("image/png")},Ul=(t,n,e)=>{const{width:i,height:a}=t,r=document.createElement("canvas"),s=r.getContext("2d");r.width=i,r.height=a,s.putImageData(t,0,0,0,0,i,a);const l=`image/${n?n.toLowerCase():"png"}`;r.toBlob(c=>{e?.(null,c)},l,1)},cn=(t,n)=>{const e=new FileReader;e.onload=function(i){i.target?n(null,i.target.result):n("can't readAsDataURL",null)},e.readAsDataURL(t)},Pl=(t,n)=>{cn(t,function(e,i){if(i){const a=new Image;a.src=i}else n(e)})},Fl=(t,n)=>{const e=document.createElement("a");e.style.visibility="hidden",document.body.appendChild(e),e.download=n;const i=window.URL.createObjectURL(t);e.href=i,e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(i)};function zl(t,n){ln(t,(e,i)=>{if(!i)return n(e,null);const a=i.data;let r=0;const s=[],l=[],c=[];for(let d=0;d<a.length;d+=4)s[r]=a[d],l[r]=a[d+1],c[r]=a[d+2],r+=1;const o=fn(s),h=fn(l),u=fn(c);return n(null,"rgb("+o+","+h+","+u+")")})}function fn(t){const n={},e=[],i=[];for(let l=0;l<t.length;l++)n[t[l]]?e.push(t[l]):n[t[l]]=1;let a=0;for(let l=0;l<e.length;l++){a=0;for(let c=0;c<e.length;c++)e[l]===e[c]&&(a+=1),i[l]=a}const r=Math.max.apply(null,i);let s=0;for(;s<i.length;s++)if(i[s]===r)return;return e[s]}const Ol=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[(s*e+e-l-1)*4],a[c+1]=n[(s*e+e-l-1)*4+1],a[c+2]=n[(s*e+e-l-1)*4+2],a[c+3]=n[(s*e+e-l-1)*4+3]}return new ImageData(a,e,i)},Bl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[((i-s-1)*e+l)*4],a[c+1]=n[((i-s-1)*e+l)*4+1],a[c+2]=n[((i-s-1)*e+l)*4+2],a[c+3]=n[((i-s-1)*e+l)*4+3]}return new ImageData(a,e,i)},Hl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<e;s++)for(let l=0;l<i;l++){const c=(s*i+l)*4;a[c]=n[(l*e+e-s-1)*4],a[c+1]=n[(l*e+e-s-1)*4+1],a[c+2]=n[(l*e+e-s-1)*4+2],a[c+3]=n[(l*e+e-s-1)*4+3]}return new ImageData(a,i,e)},Zl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<e;s++)for(let l=0;l<i;l++){const c=(s*i+l)*4;a[c]=n[((i-l-1)*e+s)*4],a[c+1]=n[((i-l-1)*e+s)*4+1],a[c+2]=n[((i-l-1)*e+s)*4+2],a[c+3]=n[((i-l-1)*e+s)*4+3]}return new ImageData(a,i,e)},ql=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,o=(n[c]+n[c+1]+n[c+2])/3;a[c]=o,a[c+1]=o,a[c+2]=o,a[c+3]=n[c+3]}return new ImageData(a,e,i)},Xl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,o=.2126*n[c]+.7152*n[c+1]+.0722*n[c+2];a[c]=o,a[c+1]=o,a[c+2]=o,a[c+3]=n[c+3]}return new ImageData(a,e,i)},$l=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,h=(n[c]+n[c+1]+n[c+2])/3>127?255:0;a[c]=h,a[c+1]=h,a[c+2]=h,a[c+3]=n[c+3]}return new ImageData(a,e,i)},Nl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=255-n[c],a[c+1]=255-n[c+1],a[c+2]=255-n[c+2],a[c+3]=n[c+3]}return new ImageData(a,e,i)},Yl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[c],a[c+1]=0,a[c+2]=0,a[c+3]=n[c+3]}return new ImageData(a,e,i)},jl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=0,a[c+1]=n[c+1],a[c+2]=0,a[c+3]=n[c+3]}return new ImageData(a,e,i)},Gl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=0,a[c+1]=0,a[c+2]=n[c+2],a[c+3]=n[c+3]}return new ImageData(a,e,i)},Vl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[c],a[c+1]=n[c+1],a[c+2]=0,a[c+3]=n[c+3]}return new ImageData(a,e,i)},Wl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[c],a[c+1]=0,a[c+2]=n[c+1],a[c+3]=n[c+3]}return new ImageData(a,e,i)},Kl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=0,a[c+1]=n[c+1],a[c+2]=n[c+1],a[c+3]=n[c+3]}return new ImageData(a,e,i)},Jl=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,o=(n[c+1]+n[c+2])/2;a[c]=n[c],a[c+1]=o,a[c+2]=o,a[c+3]=n[c+3]}return new ImageData(a,e,i)},Ql=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,o=(n[c]+n[c+2])/2;a[c]=o,a[c+1]=n[c+1],a[c+2]=o,a[c+3]=n[c+3]}return new ImageData(a,e,i)},tc=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4,o=(n[c]+n[c+1])/2;a[c]=o,a[c+1]=o,a[c+2]=n[c+2],a[c+3]=n[c+3]}return new ImageData(a,e,i)},ec=t=>Qi(t,[-1,-1,-1,-1,9,-1,-1,-1,-1]),nc=t=>Qi(t,[-1,-1,-1,-1,8,-1,-1,-1,-1]),ic=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;a[c]=n[c],a[c+1]=n[c+1],a[c+2]=n[c+2],a[c+3]=255}return new ImageData(a,e,i)},ac=t=>{const{data:n,width:e,height:i}=t,a=new Uint8ClampedArray(n.length);for(let s=0;s<i;s++)for(let l=0;l<e;l++){const c=(s*e+l)*4;if(n[c+3]===0)a[c]=255,a[c+1]=255,a[c+2]=255,a[c+3]=255;else{const o=ta([n[c],n[c+1],n[c+2],n[c+3]],[255,255,255,255]);a[c]=o[0],a[c+1]=o[1],a[c+2]=o[2],a[c+3]=o[3]}}return new ImageData(a,e,i)},rc=(t,n,e,i,a,r=!1,s)=>{const{data:l,width:c,height:o}=t;let h=a,u=i,d=n,f=e;if(h<0?h=0:h>c&&(h=c),u<0?u=0:u>o&&(u=o),d<1?d=1:d>c&&(d=c),f<1?f=1:f>o&&(f=o),h+d>c&&(d=c-h),u+f>o&&(f=o-u),r){const g=new Uint8ClampedArray(l.length);for(let _=0;_<o;_++)for(let m=0;m<c;m++){const b=(_*c+m)*4;m>=h&&m<=h+d&&_>=u&&_<=u+f?(g[b]=l[b],g[b+1]=l[b+1],g[b+2]=l[b+2],g[b+3]=l[b+3]):(g[b]=255,g[b+1]=255,g[b+2]=255,g[b+3]=s&&["JPG","JPEG"].includes(s.toUpperCase())?255:0)}return new ImageData(g,c,o)}else{const g=new Uint8ClampedArray(d*f*4);for(let _=u;_<=u+f;_++)for(let m=h;m<=h+d;m++){const b=((_-u)*d+m-h)*4,y=(_*c+m)*4;g[b]=l[y],g[b+1]=l[y+1],g[b+2]=l[y+2],g[b+3]=l[y+3]}return new ImageData(g,d,f)}},sc=(t,n,e,i)=>{const{data:a,width:r,height:s}=t;let l=n;l>Math.floor(r/2)&&(l=Math.floor(r/2)),l>Math.floor(s/2)&&(l=Math.floor(s/2)),l<0&&(l=0);const c=new Uint8ClampedArray(a.length);for(let h=0;h<s;h++)for(let u=0;u<r;u++){const d=(h*r+u)*4;let f=-1;u<l?h<l?f=Math.sqrt(Math.pow(l-u-1,2)+Math.pow(l-h-1,2)):h>s-l-1&&(f=Math.sqrt(Math.pow(l-u-1,2)+Math.pow(h-(s-l),2))):u>r-l-1&&(h<l?f=Math.sqrt(Math.pow(u-(r-l),2)+Math.pow(l-h-1,2)):h>s-l-1&&(f=Math.sqrt(Math.pow(u-(r-l),2)+Math.pow(h-(s-l),2)))),Math.round(f)>l?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||e.toUpperCase()==="PNG"?0:255):(c[d]=a[d],c[d+1]=a[d+1],c[d+2]=a[d+2],c[d+3]=i||e.toUpperCase()==="PNG"?a[d+3]:255)}return new ImageData(c,r,s)},oc=(t,n,e,i,a,r=1e4)=>{const s=new Image;s.src=t;const l=document.createElement("canvas"),c=l.getContext("2d");return l.width=r,l.height=r,c.drawImage(s,0,0,n,e,0,0,i,a),c.getImageData(0,0,i,a)},lc=(t,n)=>{const{data:e,width:i,height:a}=t,r=new Uint8ClampedArray(e.length);for(let l=0;l<a;l++)for(let c=0;c<i;c++){const o=(l*i+c)*4;r[o]=Math.max(Math.min(e[o]+n,255),0),r[o+1]=Math.max(Math.min(e[o+1]+n,255),0),r[o+2]=Math.max(Math.min(e[o+2]+n,255),0),r[o+3]=e[o+3]}return new ImageData(r,i,a)},cc=(t,n,e=!1)=>{const{data:i,width:a,height:r}=t,s=new Uint8ClampedArray(i.length);for(let c=0;c<r;c++)for(let o=0;o<a;o++){const h=(c*a+o)*4;i[h+3]===0?(s[h]=255,s[h+1]=255,s[h+2]=255):(s[h]=i[h],s[h+1]=i[h+1],s[h+2]=i[h+2]);let u=i[h+3];e?u=Math.max(Math.min(Math.floor(255*n),255),0):u=Math.max(Math.min(Math.floor(u+255*n),255),0),s[h+3]=u}return new ImageData(s,a,r)},fc=(t,n,e,i)=>{const{data:a,width:r,height:s}=t,{data:l,width:c,height:o}=n;let h=e,u=i;e+o>s&&(h=s-o),i+c>r&&(u=r-c);const d=new Uint8ClampedArray(a.length);for(let g=0;g<s;g++)for(let w=0;w<r;w++){const _=(g*r+w)*4;if(w<u||w>u+c||g<=h||g>=h+o)d[_]=a[_],d[_+1]=a[_+1],d[_+2]=a[_+2],d[_+3]=a[_+3];else{const m=(g*r+w-((h+1)*r+(g-(h+1))*(r-c))+c-u-1)*4,b=[l[m],l[m+1],l[m+2],l[m+3]],y=[a[_],a[_+1],a[_+2],a[_+3]],v=ta(b,y);d[_]=v[0],d[_+1]=v[1],d[_+2]=v[2],d[_+3]=v[3]}}return new ImageData(d,r,s)},hc=(t,n,e,i,a,r=10)=>{const{data:s,width:l,height:c}=t;let o=a,h=i,u=n,d=e;o<0?o=0:o>l&&(o=l),h<0?h=0:h>c&&(h=c),u<1?u=1:u>l&&(u=l),d<1?d=1:d>c&&(d=c),o+u>l&&(u=l-o),h+d>c&&(d=c-h);const f=new Uint8ClampedArray(s.length);for(let w=0;w<c;w++)for(let _=0;_<l;_++){const m=(w*l+_)*4;if(_>=o&&_<=o+u&&w>=h&&w<=h+d){const b=Math.floor((_-o)/r),y=Math.floor((w-h)/r);let v=Math.floor(r*(b+1)-r/2+o),I=Math.floor(r*(y+1)-r/2+h);v>l-1&&(v=l-1),I>c-1&&(I=c-1);const k=(I*l+v)*4;f[m]=s[k],f[m+1]=s[k+1],f[m+2]=s[k+2],f[m+3]=s[k+3]}else f[m]=s[m],f[m+1]=s[m+1],f[m+2]=s[m+2],f[m+3]=s[m+3]}return new ImageData(f,l,c)},dc=async(t,n,e,i,a,r)=>{const s=a/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const l=new Image;l.src=t;const c=document.createElement("canvas"),o=c.getContext("2d");c.width=n,c.height=e,o.drawImage(l,0,0,n,e),c.toBlob(h=>{r(h)},`image/${i.toLowerCase()}`,s)}else{const l=Math.floor(s*256),c=A.encode([t.data.buffer],n,e,l),o=new Blob([c]);r&&r(o)}},uc=(t,n,e={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(n&&e){const{data:i,width:a,height:r}=t,{data:s}=n,l=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:o}=e;for(let u=0;u<r;u++)for(let d=0;d<a;d++){const f=(u*a+d)*4,g=s[f],w=s[f+1],_=s[f+2],m=s[f+3];g===c.r&&w===c.g&&_===c.b&&m===c.a&&o.a!==0?(l[f]=o.r,l[f+1]=o.g,l[f+2]=o.b,l[f+3]=o.a):(l[f]=i[f],l[f+1]=i[f+1],l[f+2]=i[f+2],l[f+3]=i[f+3])}return new ImageData(l,a,r)}return t},Qi=(t,n)=>{const{data:e,width:i,height:a}=t,r=new Uint8ClampedArray(e.length);for(let l=0;l<a;l++)for(let c=0;c<i;c++){const o=(l*i+c)*4;for(let h=0;h<3;h++){const u=o+h;c===0||c===i-1||l===0||l===a-1?r[u]=e[u]:r[u]=n[0]*e[u-i*4-4]+n[1]*e[u-i*4]+n[2]*e[u-i*4+4]+n[3]*e[u-4]+n[4]*e[u]+n[5]*e[u+4]+n[6]*e[u+i*4-4]+n[7]*e[u+i*4]+n[8]*e[u+i*4+4]}r[o+3]=e[o+3]}return new ImageData(r,i,a)},ta=(t,n)=>{if(t&&t.length===4&&n&&n.length===4){const e=t[3],i=n[3];if(e===255||i===0)return t;if(e===0)return n;{const a=e/255,r=i/255,s=Math.max(Math.min(Math.floor(t[0]*a+n[0]*r*(1-a)),255),0),l=Math.max(Math.min(Math.floor(t[1]*a+n[1]*r*(1-a)),255),0),c=Math.max(Math.min(Math.floor(t[2]*a+n[2]*r*(1-a)),255),0),o=Math.max(Math.min(Math.floor((a+r*(1-a))*255),255),0);return[s,l,c,o]}}return[255,255,255,255]};function gc(){var t=null;if(window.ActiveXObject)for(var n=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],e=0;e<n.length;e++)try{t=new window.ActiveXObject(n[e]);break}catch{continue}else t=new XMLHttpRequest;return t}function _c(t){if(t.action){if(t.method.toLowerCase()==="post")return{url:t.action,data:new FormData(t)};for(var n="",e=0;e<t.elements.length;e++){var i=t.elements[e];if(i.hasAttribute("name")){var a=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(a==="FILE")for(var r=0;r<i.files.length;n+="&"+escape(i.name)+"="+escape(i.files[r++].name));else(a!=="RADIO"&&a!=="CHECKBOX"||i.checked)&&(n+="&"+escape(i.name)+"="+escape(i.value))}}return{url:t.action.replace(/(?:\?.*)?$/,n.replace(/^&/,"?")),data:null}}}function wc(t,n){return new Promise((e,i)=>{var a=new XMLHttpRequest,r=function(){i("The request for "+t+" is timed out for "+n+".")},s=function(l){a.readyState===4&&(a.status===200?e(a.response):i(a.statusText))};a.open("GET",t),a.onload=s,a.timeout=n,a.ontimeout=r,a.upload.addEventListener("progress",function(l){if(l.lengthComputable){const c=Math.round(l.loaded*100/l.total);console.log(c+"%")}},!1),a.upload.addEventListener("load",function(l){},!1),a.send(null)})}function mc(t,n,e){return fetch(t,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},n)).then(i=>i.json())}function pc(t,n){var e=new XMLHttpRequest;e.open("HEAD",t),e.filepath=t,e.callback=n,e.onload=function(){var i=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),a=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(i)||a>i)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(i)&&this.callback(a,i))},e.send()}function bc(t,n){if(n)window.localStorage.setItem(t,typeof n=="string"?n:JSON.stringify(n));else return window.localStorage.getItem(t)}const vc=(t={x:0,y:0})=>window.scrollTo(t.x,t.y);function ke(t){try{window.history.scrollRestoration=t}catch{}}"scrollRestoration"in window.history&&(ke("manual"),window.addEventListener("beforeunload",()=>{ke("auto")}),window.addEventListener("load",()=>{ke("manual")}));let Ie;const ea=new WeakMap;function hn(t,n){let e=ea.get(t);e||(e=new Map,ea.set(t,e));let i=e.get(n);return i||(i=new na,e.set(n,i)),i}class na{subscribers;constructor(){this.subscribers=new Set}depend(){Ie&&this.subscribers.add(Ie)}notify(){this.subscribers.forEach(n=>n())}}function yc(t){Ie=t,t(),Ie=null}function kc(t){return Object.keys(t).forEach(n=>{let e=t[n];const i=hn(t,n);Object.defineProperty(t,n,{get(){return i.depend(),e},set(a){a!=e&&(e=a,i.notify())}})}),t}function Ic(t){return new Proxy(t,{get(n,e,i){return hn(t,e).depend(),Reflect.get(n,e,i)},set(n,e,i,a){const r=hn(t,e);return t[e]!=i&&(t[e]=i,r.notify()),Reflect.set(n,e,i,a)}})}const Tc=t=>t*Math.PI/180,xc=t=>t*180/Math.PI,Ec=function(t,n){const e=t.x-n.x,i=t.y-n.y;return Math.sqrt(e*e+i*i)},Sc=function(t,n){const e=n.x-t.x,i=n.y-t.y;return Math.atan2(i,e)},Ac=function(t,n){return!(t.x+t.width<n.x||n.x+n.width<t.x||t.y+t.height<n.y||n.y+n.height<t.y)},ia=function(t,n){return!(n.x<t.x||n.x>t.x+t.width||n.y<t.y||n.y>t.y+t.height)},dn=function(t,n){typeof t=="string"&&t[0]==="#"&&(t=window.parseInt(t.slice(1),16)),n=n===void 0?1:n;const e=t>>16&255,i=t>>8&255,a=t&255,r=n<0?0:n>1?1:n;return r===1?"rgb("+e+","+i+","+a+")":"rgba("+e+","+i+","+a+","+r+")"},K=function(t,n){return n===!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)},un=function(t){const n={x:0,y:0,event:null},e=document.body.scrollLeft,i=document.documentElement.scrollLeft,a=document.body.scrollTop,r=document.documentElement.scrollTop,s=t.offsetLeft,l=t.offsetTop;return t.addEventListener("mousemove",function(c){let o,h;c.pageX||c.pageY?(o=c.pageX,h=c.pageY):(o=c.clientX+e+i,h=c.clientY+a+r),o-=s,h-=l,n.x=o,n.y=h,n.event=c},!1),n},aa=function(){const t={code:""};return window.addEventListener("keydown",function(n){t.code=n.code.toLowerCase()},!1),t},Cc=function(t){const n={x:0,y:0,isPressed:!1,event:null},e=document.body.scrollLeft,i=document.documentElement.scrollLeft,a=document.body.scrollTop,r=document.documentElement.scrollTop,s=t.offsetLeft,l=t.offsetTop;return t.addEventListener("touchstart",function(c){n.isPressed=!0,n.event=c},!1),t.addEventListener("touchend",function(c){n.isPressed=!1,n.x=0,n.y=0,n.event=c},!1),t.addEventListener("touchmove",function(c){let o,h;const u=c.touches[0];u.pageX||u.pageY?(o=u.pageX,h=u.pageY):(o=u.clientX+e+i,h=u.clientY+a+r),o-=s,h-=l,n.x=o,n.y=h,n.event=c},!1),n},Ut={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 n=2.5949095;return(t*=2)<1?.5*(t*t*((n+1)*t-n)):.5*((t-=2)*t*((n+1)*t+n)+2)}},Bounce:{In:function(t){return 1-Ut.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?Ut.Bounce.In(t*2)*.5:Ut.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(n){return n**t},Out:function(n){return 1-(1-n)**t},InOut:function(n){return n<.5?(n*2)**t/2:(1-(2-n*2)**t)/2+.5}}}};let ie;typeof self>"u"&&typeof process<"u"&&process.hrtime?ie=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?ie=self.performance.now.bind(self.performance):Date.now!==void 0?ie=Date.now:ie=function(){return new Date().getTime()};const Pt=ie;class ra{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(n=>this._tweens[n])}removeAll(){this._tweens={}}add(n){this._tweens[n.getId()]=n,this._tweensAddedDuringUpdate[n.getId()]=n}remove(n){delete this._tweens[n.getId()],delete this._tweensAddedDuringUpdate[n.getId()]}update(n=Pt(),e=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let a=0;a<i.length;a++){const r=this._tweens[i[a]],s=!e;r&&r.update(n,s)===!1&&!e&&delete this._tweens[i[a]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const yt={Linear:function(t,n){const e=t.length-1,i=e*n,a=Math.floor(i),r=yt.Utils.Linear;return n<0?r(t[0],t[1],i):n>1?r(t[e],t[e-1],e-i):r(t[a],t[a+1>e?e:a+1],i-a)},Bezier:function(t,n){let e=0;const i=t.length-1,a=Math.pow,r=yt.Utils.Bernstein;for(let s=0;s<=i;s++)e+=a(1-n,i-s)*a(n,s)*t[s]*r(i,s);return e},CatmullRom:function(t,n){const e=t.length-1;let i=e*n,a=Math.floor(i);const r=yt.Utils.CatmullRom;return t[0]===t[e]?(n<0&&(a=Math.floor(i=e*(1+n))),r(t[(a-1+e)%e],t[a],t[(a+1)%e],t[(a+2)%e],i-a)):n<0?t[0]-(r(t[0],t[0],t[1],t[1],-i)-t[0]):n>1?t[e]-(r(t[e],t[e],t[e-1],t[e-1],i-e)-t[e]):r(t[a?a-1:0],t[a],t[e<a+1?e:a+1],t[e<a+2?e:a+2],i-a)},Utils:{Linear:function(t,n,e){return(n-t)*e+t},Factorial:function(){const t=[1];return function(n){let e=1;if(t[n])return t[n];for(let i=n;i>1;i--)e*=i;return t[n]=e,e}}(),Bernstein:function(t,n){const e=yt.Utils.Factorial;return e(t)/e(n)/e(t-n)},CatmullRom:function(t,n,e,i,a){const r=(e-t)*.5,s=(i-n)*.5,l=a*a,c=a*l;return(2*n-2*e+r+s)*c+(-3*n+3*e-2*r-s)*l+r*a+n}}};class ae{static _nextId=0;static nextId(){return ae._nextId++}}const N=new ra;class Dc{constructor(n,e=N){this._object=n,this._group=e}_id=ae.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=Ut.Linear.None;_interpolationFunction=yt.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(n,e){return this._valuesEnd=Object.create(n),e!==void 0&&(this._durationTime=e),this}duration(n=1e3){return this._durationTime=n,this}start(n=Pt()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(n,e,i,a){for(const r in i){const s=n[r],l=Array.isArray(s),c=l?"array":typeof s,o=!l&&Array.isArray(i[r]);if(!(c==="undefined"||c==="function")){if(o){let h=i[r];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,s)),i[r]=[s].concat(h)}if((c==="object"||l)&&s&&!o){e[r]=l?[]:{};for(const h in s)e[r][h]=s[h];a[r]=l?[]:{},this._setupProperties(s,e[r],i[r],a[r])}else typeof e[r]>"u"&&(e[r]=s),l||(e[r]*=1),o?a[r]=i[r].slice().reverse():a[r]=e[r]||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(n=Pt()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=n,this._group&&this._group.remove(this),this)}resume(n=Pt()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let n=0,e=this._chainedTweens.length;n<e;n++)this._chainedTweens[n].stop();return this}group(n=N){return this._group=n,this}delay(n=0){return this._delayTime=n,this}repeat(n=0){return this._initialRepeat=n,this._repeat=n,this}repeatDelay(n){return this._repeatDelayTime=n,this}yoyo(n=!1){return this._yoyo=n,this}easing(n=Ut.Linear.None){return this._easingFunction=n,this}interpolation(n=yt.Linear){return this._interpolationFunction=n,this}chain(...n){return this._chainedTweens=n,this}onStart(n){return this._onStartCallback=n,this}onEveryStart(n){return this._onEveryStartCallback=n,this}onUpdate(n){return this._onUpdateCallback=n,this}onRepeat(n){return this._onRepeatCallback=n,this}onComplete(n){return this._onCompleteCallback=n,this}onStop(n){return this._onStopCallback=n,this}update(n=Pt(),e=!0){if(this._isPaused)return!0;let i,a;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(n>r)return!1;e&&this.start(n)}if(this._goToEnd=!1,n<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),a=(n-this._startTime)/this._durationTime,a=this._durationTime===0||a>1?1:a;const s=this._easingFunction(a);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,a),a===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=n+this._repeatDelayTime:this._startTime=n+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let l=0,c=this._chainedTweens.length;l<c;l++)this._chainedTweens[l].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(n,e,i,a){for(const r in i){if(e[r]===void 0)continue;const s=e[r]||0;let l=i[r];const c=Array.isArray(n[r]),o=Array.isArray(l);!c&&o?n[r]=this._interpolationFunction(l,a):typeof l=="object"&&l?this._updateProperties(n[r],s,l,a):(l=this._handleRelativeValue(s,l),typeof l=="number"&&(n[r]=s+(l-s)*a))}}_handleRelativeValue(n,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?n+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(n){const e=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=i,this._valuesEnd[n]=e}}const Mc=ae.nextId,Rc=N.getAll.bind(N),Lc=N.removeAll.bind(N),Uc=N.add.bind(N),Pc=N.remove.bind(N),Fc=N.update.bind(N),zc={Easing:Ut,Group:ra,Interpolation:yt,now:Pt,Sequence:ae,nextId:Mc,Tween:Dc,getAll:Rc,removeAll:Lc,add:Uc,remove:Pc,update:Fc};class ct{constructor(n){n=n||[1,0,0,1,0,0],this.m=[n[0],n[1],n[2],n[3],n[4],n[5]]}unit(){return this.m=[1,0,0,1,0,0],this}multiply(n){const e=this.m;let i;n instanceof ct?i=n.m:i=n;const a=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],s=e[0]*i[2]+e[2]*i[3],l=e[1]*i[2]+e[3]*i[3],c=e[0]*i[4]+e[2]*i[5]+e[4],o=e[1]*i[4]+e[3]*i[5]+e[5];return e[0]=a,e[1]=r,e[2]=s,e[3]=l,e[4]=c,e[5]=o,this}inverse(){const n=new ct(this.m),e=n.m,i=1/(e[0]*e[3]-e[1]*e[2]),a=e[3]*i,r=-e[1]*i,s=-e[2]*i,l=e[0]*i,c=i*(e[2]*e[5]-e[3]*e[4]),o=i*(e[1]*e[4]-e[0]*e[5]);return e[0]=a,e[1]=r,e[2]=s,e[3]=l,e[4]=c,e[5]=o,n}translate(n,e){return this.multiply([1,0,0,1,n,e])}rotate(n){const e=n*Math.PI/180,i=Math.cos(e),a=Math.sin(e);return this.multiply([i,a,-a,i,0,0])}skew(n,e){e|=0;const i=n*Math.PI/180,a=e*Math.PI/180,r=Math.tan(i),s=Math.tan(a);return this.multiply([1,s,r,1,0,0])}scale(n,e){return this.multiply([n,0,0,e,0,0])}transformPoint=function(n,e){const i=n,a=e;return n=i*this.m[0]+a*this.m[2]+this.m[4],e=i*this.m[1]+a*this.m[3]+this.m[5],[n,e]};transformVector(n,e){const i=n,a=e;return n=i*this.m[0]+a*this.m[2],e=i*this.m[1]+a*this.m[3],[n,e]}}function sa(t){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n}function Oc(t,n){const e=sa(t),{x:i,y:a}=e.getPointAtLength(n);return[i,a]}function Bc(t,n){return sa(t).getTotalLength(n)}let Y=null;function Hc({d:t},n,e){Y||(Y=document.createElement("canvas").getContext("2d"));const i=new Path2D(t);return Y.isPointInPath(i,n,e)}function oa({d:t},n,e,{lineWidth:i=1,lineCap:a="butt",lineJoin:r="miter"}){if(Y||(Y=document.createElement("canvas").getContext("2d")),Y.isPointInStroke){Y.save(),Y.lineWidth=i,Y.lineCap=a,Y.lineJoin=r;const s=new Path2D(t),l=Y.isPointInStroke(s,n,e);return Y.restore(),l}}var gn={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Zc=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function qc(t){var n=[];return t.replace(Zc,function(e,i,a){var r=i.toLowerCase();for(a=$c(a),r=="m"&&a.length>2&&(n.push([i].concat(a.splice(0,2))),r="l",i=i=="m"?"l":"L");;){if(a.length==gn[r])return a.unshift(i),n.push(a);if(a.length<gn[r])throw new Error("malformed path data");n.push([i].concat(a.splice(0,gn[r])))}}),n}var Xc=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function $c(t){var n=t.match(Xc);return n?n.map(Number):[]}function Nc(t){var n=0,e=0,i=0,a=0;return t.map(function(r){r=r.slice();var s=r[0],l=s.toUpperCase();if(s!=l)switch(r[0]=l,s){case"a":r[6]+=i,r[7]+=a;break;case"v":r[1]+=a;break;case"h":r[1]+=i;break;default:for(var c=1;c<r.length;)r[c++]+=i,r[c++]+=a}switch(l){case"Z":i=n,a=e;break;case"H":i=r[1];break;case"V":a=r[1];break;case"M":i=n=r[1],a=e=r[2];break;default:i=r[r.length-2],a=r[r.length-1]}return r})}const re=Math.PI*2;function la(t,n,e,i){const a=t*i-n*e<0?-1:1;let r=t*e+n*i;return r>1&&(r=1),r<-1&&(r=-1),a*Math.acos(r)}function Yc(t,n,e,i,a,r,s,l,c,o){const h=o*(t-e)/2+c*(n-i)/2,u=-c*(t-e)/2+o*(n-i)/2,d=s*s,f=l*l,g=h*h,w=u*u;let _=d*f-d*w-f*g;_<0&&(_=0),_/=d*w+f*g,_=Math.sqrt(_)*(a===r?-1:1);const m=_*s/l*u,b=_*-l/s*h,y=o*m-c*b+(t+e)/2,v=c*m+o*b+(n+i)/2,I=(h-m)/s,k=(u-b)/l,T=(-h-m)/s,S=(-u-b)/l,x=la(1,0,I,k);let E=la(I,k,T,S);return r===0&&E>0&&(E-=re),r===1&&E<0&&(E+=re),[y,v,x,E]}function jc(t,n){const e=1.3333333333333333*Math.tan(n/4),i=Math.cos(t),a=Math.sin(t),r=Math.cos(t+n),s=Math.sin(t+n);return[i,a,i-a*e,a+i*e,r+s*e,s-r*e,r,s]}function Gc(t,n,e,i,a,r,s,l,c){const o=Math.sin(c*re/360),h=Math.cos(c*re/360),u=h*(t-e)/2+o*(n-i)/2,d=-o*(t-e)/2+h*(n-i)/2;if(u===0&&d===0)return[];if(s===0||l===0)return[];s=Math.abs(s),l=Math.abs(l);const f=u*u/(s*s)+d*d/(l*l);f>1&&(s*=Math.sqrt(f),l*=Math.sqrt(f));const g=Yc(t,n,e,i,a,r,s,l,o,h),w=[];let _=g[2],m=g[3];const b=Math.max(Math.ceil(Math.abs(m)/(re/4)),1);m/=b;for(let y=0;y<b;y++)w.push(jc(_,m)),_+=m;return w.map(y=>{for(let v=0;v<y.length;v+=2){let I=y[v+0],k=y[v+1];I*=s,k*=l;const T=h*I-o*k,S=o*I+h*k;y[v+0]=T+g[0],y[v+1]=S+g[1]}return y})}function Vc(t){for(var n,e=[],i=0,a=0,r=0,s=0,l=null,c=null,o=0,h=0,u=0,d=t.length;u<d;u++){var f=t[u],g=f[0];switch(g){case"M":r=f[1],s=f[2];break;case"A":var w=Gc(o,h,f[6],f[7],f[4],f[5],f[1],f[2],f[3]);if(!w.length)continue;w=w.map(v=>{const[I,k,T,S,x,E,C,D]=v;return{x1:T,y1:S,x2:x,y2:E,x:C,y:D}});for(var _=0,m;_<w.length;_++)m=w[_],f=["C",m.x1,m.y1,m.x2,m.y2,m.x,m.y],_<w.length-1&&e.push(f);break;case"S":var b=o,y=h;(n=="C"||n=="S")&&(b+=b-i,y+=y-a),f=["C",b,y,f[1],f[2],f[3],f[4]];break;case"T":n=="Q"||n=="T"?(l=o*2-l,c=h*2-c):(l=o,c=h),f=ca(o,h,l,c,f[1],f[2]);break;case"Q":l=f[1],c=f[2],f=ca(o,h,f[1],f[2],f[3],f[4]);break;case"L":f=Te(o,h,f[1],f[2]);break;case"H":f=Te(o,h,f[1],h);break;case"V":f=Te(o,h,o,f[1]);break;case"Z":f=Te(o,h,r,s);break}n=g,o=f[f.length-2],h=f[f.length-1],f.length>4?(i=f[f.length-4],a=f[f.length-3]):(i=o,a=h),e.push(f)}return e}function Te(t,n,e,i){return["C",t,n,e,i,e,i]}function ca(t,n,e,i,a,r){return["C",t/3+.6666666666666666*e,n/3+.6666666666666666*i,a/3+.6666666666666666*e,r/3+.6666666666666666*i,a,r]}function Wc(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 xe=Symbol("initialPath"),et=Symbol("path"),ft=Symbol("bounds"),Ee=Symbol("savedPaths"),nt=Symbol("renderProps"),_n=Symbol("beginPath");class Kc{constructor(n){if(!Wc(n))throw new Error("Not an SVG path!");this[xe]=Nc(qc(n)),this[et]=Vc(this[xe]),this[ft]=null,this[Ee]=[],this[nt]={},this[_n]=!1}save(){return this[Ee].push({path:this[et],bounds:this[ft],renderProps:Object.assign({},this[nt])}),this}restore(){if(this[Ee].length){const{path:n,bounds:e,renderProps:i}=this[Ee].pop();this[et]=n,this[ft]=e,this[nt]=i}return this}get bounds(){if(!this[ft]){const n=this[et];if(this[ft]=[0,0,0,0],n.length){const e=[1/0,1/0,-1/0,-1/0];for(let i=0,a=n.length;i<a;i++){const r=n[i].slice(1);for(let s=0;s<r.length;s+=2)r[s+0]<e[0]&&(e[0]=r[s+0]),r[s+1]<e[1]&&(e[1]=r[s+1]),r[s+0]>e[2]&&(e[2]=r[s+0]),r[s+1]>e[3]&&(e[3]=r[s+1])}this[ft]=e}}return this[ft]}get size(){const n=this.bounds;return[n[2]-n[0],n[3]-n[1]]}get center(){const[n,e,i,a]=this.bounds;return[(n+i)/2,(e+a)/2]}get d(){let n=this[et].map(e=>{const[i,...a]=e;return i+a.join()}).join("");return this.isClosed&&(n+="Z"),n}get path(){return this[et]}get isClosed(){const n=this[xe][this[xe].length-1];return n&&n[0]==="Z"}isPointInPath(n,e){return Hc(this,n,e)}isPointInStroke(n,e,{lineWidth:i=1,lineCap:a="butt",lineJoin:r="miter"}){if(oa)return oa(this,n,e,{lineWidth:i,lineCap:a,lineJoin:r})}getPointAtLength(n){return Oc(this.d,n)}getTotalLength(){return Bc(this.d)}transform(...n){this[ft]=null;const e=new ct(n),i=this[et];return this[et]=i.map(a=>{const[r,...s]=a,l=[r];for(let c=0;c<s.length;c+=2){const o=s[c],h=s[c+1],[u,d]=e.transformPoint(o,h);l.push(u,d)}return l}),this}translate(n,e){const i=new ct().translate(n,e);return this.transform(...i.m)}rotate(n){const e=new ct().rotate(n);return this.transform(...e.m)}scale(n,e){e==null&&(e=n);const i=new ct().scale(n,e);return this.transform(...i.m)}skew(n,e){const i=new ct().skew(n,e);return this.transform(...i.m)}trim(){const[n,e]=this.bounds;return this.translate(-n,-e),this}beginPath(){return this[_n]=!0,this}toCanvas(n){const e=this[et],i=this[nt];return e.length&&(this[_n]&&n.beginPath(),e.forEach(a=>{const[r,...s]=a;r==="M"?n.moveTo(...s):n.bezierCurveTo(...s)}),this.isClosed&&n.closePath()),Object.assign(n,i),{stroke(){return n.stroke(),this},fill(){return n.fill(),this}}}strokeStyle(n){return this[nt].strokeStyle=n,this}fillStyle(n){return this[nt].fillStyle=n,this}lineWidth(n){return this[nt].lineWidth=n,this}lineCap(n){return this[nt].lineCap=n,this}lineJoin(n){return this[nt].lineJoin=n,this}}const Jc=function(t,n,e,i,a,r){t.beginPath(),t.moveTo(n,e+r),t.lineTo(n,e+a-r),t.quadraticCurveTo(n,e+a,n+r,e+a),t.lineTo(n+i-r,e+a),t.quadraticCurveTo(n+i,e+a,n+i,e+a-r),t.lineTo(n+i,e+r),t.quadraticCurveTo(n+i,e,n+i-r,e),t.lineTo(n+r,e),t.quadraticCurveTo(n,e,n,e+r),t.stroke()},Qc=function(t,n,e,i){var a=n-i,r=0,s=1;t.beginPath(),t.moveTo(a,r);do{if(s>2e4)break;var l=(n+e)*Math.cos(s*Math.PI/72)-(e+i)*Math.cos((n+e)/e*(s*Math.PI/72)),c=(n+e)*Math.sin(s*Math.PI/72)-(e+i)*Math.sin((n+e)/e*(s*Math.PI/72));t.lineTo(l,c),a=l,r=c,s++}while(l!=n-i&&c!=0);t.stroke()},tf=function(t,n){t.save(),t.beginPath(),t.moveTo(n,0);for(var e=0;e<9;e++)t.rotate(Math.PI/5),e%2==0?t.lineTo(n/.525731*.200811,0):t.lineTo(n,0);t.closePath(),t.fill(),t.restore()},ef=function(t,n,e,i,a){var r=0;function s(){t.clearRect(n,e,i,a),t.setLineDash([4,2]),t.lineDashOffset=-r,t.strokeRect(n,e,i,a)}function l(){r++,r>16&&(r=0),s(),setTimeout(l,40)}l()},nf=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 af{constructor(n=0,e=0,i="#ffff00",a=0){this.x=n,this.y=e,this.color=i,this.rotation=a}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.lineWidth=2,n.fillStyle=this.color,n.beginPath(),n.moveTo(-50,-25),n.lineTo(0,-25),n.lineTo(0,-50),n.lineTo(50,0),n.lineTo(0,50),n.lineTo(0,25),n.lineTo(-50,25),n.lineTo(-50,-25),n.closePath(),n.fill(),n.stroke(),n.restore()}}class rf{constructor(n=40,e="#ff0000"){this.x=0,this.y=0,this.radius=n,this.vx=0,this.vy=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=K(e),this.lineWidth=1}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.fillStyle=this.color,n.beginPath(),n.arc(0,0,this.radius,0,Math.PI*2,!0),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.restore()}getBounds(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}}class sf{constructor(n=40,e="#ff0000"){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.radius=n,this.vx=0,this.vy=0,this.vz=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=K(e),this.lineWidth=1,this.visible=!0}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.fillStyle=this.color,n.beginPath(),n.arc(0,0,this.radius,0,Math.PI*2,!0),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.restore()}}class of{constructor(n=50,e=50,i="#ff0000"){this.x=0,this.y=0,this.width=n,this.height=e,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=K(i),this.lineWidth=1}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.fillStyle=this.color,n.beginPath(),n.rect(0,0,this.width,this.height),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.restore()}}class lf{constructor(n,e,i,a){this.x=n===void 0?-100:n,this.y=e===void 0?-100:e,this.z=i===void 0?-100:i,this.brightness=a===void 0?1:a}setBrightness(n){this.brightness=Math.min(Math.max(n,0),1)}}class cf{constructor(n,e,i,a){this.x=0,this.y=0,this.x1=n===void 0?0:n,this.y1=e===void 0?0:e,this.x2=i===void 0?0:i,this.y2=a===void 0?0:a,this.rotation=0,this.scaleX=1,this.scaleY=1,this.lineWidth=1}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.beginPath(),n.moveTo(this.x1,this.y1),n.lineTo(this.x2,this.y2),n.closePath(),n.stroke(),n.restore()}getBounds(){if(this.rotation===0){var n=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),i=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2);return{x:this.x+n,y:this.y+e,width:i-n,height:a-e}}else{var r=Math.sin(this.rotation),s=Math.cos(this.rotation),l=s*this.x1-r*this.y1,c=s*this.x2-r*this.y2,o=s*this.y1+r*this.x1,h=s*this.y2+r*this.x2;return{x:this.x+Math.min(l,c),y:this.y+Math.min(o,h),width:Math.max(l,c)-Math.min(l,c),height:Math.max(o,h)-Math.min(o,h)}}}}class ff{constructor(n,e,i){this.x=n===void 0?0:n,this.y=e===void 0?0:e,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(n,e){this.vpX=n,this.vpY=e}setCenter(n,e,i){this.cX=n,this.cY=e,this.cZ=i}rotateX(n){var e=Math.cos(n),i=Math.sin(n),a=this.y*e-this.z*i,r=this.z*e+this.y*i;this.y=a,this.z=r}rotateY(n){var e=Math.cos(n),i=Math.sin(n),a=this.x*e-this.z*i,r=this.z*e+this.x*i;this.x=a,this.z=r}rotateZ(n){var e=Math.cos(n),i=Math.sin(n),a=this.x*e-this.y*i,r=this.y*e+this.x*i;this.x=a,this.y=r}getScreenX(){var n=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*n}getScreenY(){var n=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*n}}class hf{constructor(){this.x=0,this.y=0,this.width=25,this.height=20,this.rotation=0,this.showFlame=!1}draw(n){n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.lineWidth=1,n.strokeStyle="#ffffff",n.beginPath(),n.moveTo(10,0),n.lineTo(-10,10),n.lineTo(-5,0),n.lineTo(-10,-10),n.lineTo(10,0),n.closePath(),n.stroke(),this.showFlame&&(n.beginPath(),n.moveTo(-7.5,-5),n.lineTo(-15,0),n.lineTo(-7.5,5),n.closePath(),n.stroke()),n.restore()}}class df{constructor(n,e,i){this.min=n===void 0?0:n,this.max=e===void 0?100:e,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(n){n.save(),n.translate(this.x,this.y),n.fillStyle=this.backColor,n.beginPath(),n.fillRect(this.backX,0,this.backWidth,this.height),n.closePath(),n.strokeStyle=this.handleBorderColor,n.fillStyle=this.handleColor,n.beginPath(),n.rect(0,this.handleY,this.width,this.handleHeight),n.closePath(),n.fill(),n.stroke(),n.restore()}updateValue(){var n=this.value,e=this.height-this.handleHeight,i=this.max-this.min;this.value=(e-this.handleY)/e*i+this.min,typeof this.onchange=="function"&&this.value!==n&&this.onchange()}updatePosition(){var n=this.height-this.handleHeight,e=this.max-this.min;this.handleY=n-(this.value-this.min)/e*n}captureMouse(n){var e=this,i=un(n),a={};l(),n.addEventListener("mousedown",function(){ia(a,i.x,i.y)&&(n.addEventListener("mouseup",r,!1),n.addEventListener("mousemove",s,!1))},!1);function r(){n.removeEventListener("mousemove",s,!1),n.removeEventListener("mouseup",r,!1),l()}function s(){var c=i.y-e.y;e.handleY=Math.min(e.height-e.handleHeight,Math.max(c,0)),e.updateValue()}function l(){a.x=e.x,a.y=e.y+e.handleY,a.width=e.width,a.height=e.handleHeight}}}class uf{constructor(n,e,i,a){this.pointA=n,this.pointB=e,this.pointC=i,this.color=a===void 0?"#ff0000":K(a),this.lineWidth=1,this.alpha=1}draw(n){this.isBackface()||(n.save(),n.lineWidth=this.lineWidth,n.fillStyle=n.strokeStyle=dn(this.color,this.alpha),n.beginPath(),n.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),n.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),n.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var n=this.pointC.getScreenX()-this.pointA.getScreenX(),e=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),a=this.pointB.getScreenY()-this.pointC.getScreenY();return n*a>e*i}}class gf{constructor(n,e,i,a){this.pointA=n,this.pointB=e,this.pointC=i,this.color=a===void 0?"#ff0000":K(a),this.lineWidth=1,this.alpha=1,this.light=null}draw(n){this.isBackface()||(n.save(),n.lineWidth=this.lineWidth,n.fillStyle=n.strokeStyle=this.getAdjustedColor(),n.beginPath(),n.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),n.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),n.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var n=this.pointC.getScreenX()-this.pointA.getScreenX(),e=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),a=this.pointB.getScreenY()-this.pointC.getScreenY();return n*a>e*i}getAdjustedColor(){var n=K(this.color,!0),e=n>>16,i=n>>8&255,a=n&255,r=this.getLightFactor();return e*=r,i*=r,a*=r,K(e<<16|i<<8|a)}getLightFactor(){var n={x:this.pointA.x-this.pointB.x,y:this.pointA.y-this.pointB.y,z:this.pointA.z-this.pointB.z},e={x:this.pointB.x-this.pointC.x,y:this.pointB.y-this.pointC.y,z:this.pointB.z-this.pointC.z},i={x:n.y*e.z-n.z*e.y,y:-(n.x*e.z-n.z*e.x),z:n.x*e.y-n.y*e.x},a=i.x*this.light.x+i.y*this.light.y+i.z*this.light.z,r=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(a/(r*s))/Math.PI*this.light.brightness}}class _f{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(n){n.save(),n.translate(this.x,this.y),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.strokeStyle=dn(this.color,this.alpha),n.beginPath(),n.moveTo(0,0),n.lineTo(0,this.branch[0]),n.moveTo(0,this.branch[1]),n.lineTo(this.branch[2],this.branch[3]),n.moveTo(0,this.branch[4]),n.lineTo(this.branch[5],this.branch[6]),n.stroke(),n.restore()}}class wf{constructor(n,e,i){this.x=0,this.y=0,this.width=n,this.height=e,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=i===void 0?"#ffffff":K(i),this.lineWidth=1}draw(n){var e=this.height,i=this.width+e,a=e/2;n.save(),n.translate(this.x,this.y),n.rotate(this.rotation),n.scale(this.scaleX,this.scaleY),n.lineWidth=this.lineWidth,n.fillStyle=this.color,n.beginPath(),n.moveTo(0,-a),n.lineTo(i-2*a,-a),n.quadraticCurveTo(-a+i,-a,-a+i,0),n.lineTo(-a+i,e-2*a),n.quadraticCurveTo(-a+i,-a+e,i-2*a,-a+e),n.lineTo(0,-a+e),n.quadraticCurveTo(-a,-a+e,-a,e-2*a),n.lineTo(-a,0),n.quadraticCurveTo(-a,-a,0,-a),n.closePath(),n.fill(),this.lineWidth>0&&n.stroke(),n.beginPath(),n.arc(0,0,2,0,Math.PI*2,!0),n.closePath(),n.stroke(),n.beginPath(),n.arc(this.width,0,2,0,Math.PI*2,!0),n.closePath(),n.stroke(),n.restore()}getPin(){return{x:this.x+Math.cos(this.rotation)*this.width,y:this.y+Math.sin(this.rotation)*this.width}}}class mf{canvas;context;mouse;keyboard;constructor(n){this.canvas=n,this.context=n.getContext("2d",{willReadFrequently:!0}),this.mouse=un(this.canvas),this.keyboard=aa()}getMouseRotation(n){const e=this.mouse.x-n.x,i=this.mouse.y-n.y;return Math.atan2(i,e)}followMouse(n,e){const i=this.getMouseRotation(n),a=Math.cos(i)*e,r=Math.sin(i)*e;return n.x+=a,n.y+=r,n}followMouseWithAcceleration(n,e=.05){const i=this.getMouseRotation(n),a=Math.cos(i)*e,r=Math.sin(i)*e;return n.vx+=a,n.vy+=r,n.x+=n.vx,n.y+=n.vy,n}getMouseDistance(n){const e=this.mouse.x-n.x,i=this.mouse.y-n.y;return Math.sqrt(e*e+i*i)}clearRect(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}lineWidth(n){return this.context.lineWidth=n,this}fillStyle(n){return this.context.fillStyle=n,this}createLinearGradient(n,e,i){const a=this.context.createLinearGradient(n.x,n.y,e.x,e.y);return Object.keys(i).forEach(r=>a.addColorStop(parseFloat(r),i[parseFloat(r)])),a}createRadialGradient(n,e,i){const a=this.context.createRadialGradient(n.x,n.y,n.radius,e.x,e.y,e.radius);return Object.keys(i).forEach(r=>a.addColorStop(parseFloat(r),i[parseFloat(r)])),a}moveTo(n){this.context.moveTo(n.x,n.y)}lineTo(n,e){this.context.save(),this.context.beginPath(),this.context.moveTo(n.x,n.y),this.context.lineTo(e.x,e.y),this.context.stroke(),this.context.restore()}drawMouseMoveLine(){const n=()=>{this.context.lineTo(this.mouse.x,this.mouse.y),this.context.stroke()};this.canvas.addEventListener("mousedown",()=>{this.context.beginPath(),this.context.moveTo(this.mouse.x,this.mouse.y),this.canvas.addEventListener("mousemove",n,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",n,!1)},!1)}drawMouseMoveBrushLine({brush_size:n,brush_density:e,brush_color:i}={brush_size:25,brush_density:50,brush_color:"#000000"}){const a=this.getImageData(),r=a.data,s=K(i,!0),l=()=>{for(let c=0;c<e;c++){const o=Math.random()*Math.PI*2,h=Math.random()*n,u=this.mouse.x+Math.cos(o)*h|0,d=this.mouse.y+Math.sin(o)*h|0,f=(u+d*a.width)*4;r[f]=s>>16&255,r[f+1]=s>>8&255,r[f+2]=s&255,r[f+3]=255}this.putImageData(a)};this.canvas.addEventListener("mousedown",()=>{this.canvas.addEventListener("mousemove",l,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",l,!1)},!1)}quadraticCurveTo(n,e,i){this.context.save(),this.context.beginPath(),this.context.moveTo(n.x,n.y),this.context.quadraticCurveTo(e.x,e.y,i.x,i.y),this.context.stroke(),this.context.restore()}drawQuadraticCurveLine(n){const e=n.length;if(e<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(n[0].x,n[0].y);for(let i=1;i<e;i+=2)this.context.quadraticCurveTo(n[i].x,n[i].y,n[i+1].x,n[i+1].y);this.context.stroke()}quadraticThroughCurveTo(n,e,i){e.x=e.x*2-(n.x+i.x)/2,e.y=e.y*2-(n.y+i.y)/2,this.quadraticCurveTo(n,e,i)}drawQuadraticThroughCurveLine(n){const e=n.length;if(e<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(n[0].x,n[0].y);let i=1;for(;i<e-2;i++)this.context.quadraticCurveTo(n[i].x,n[i].y,(n[i].x+n[i+1].x)/2,(n[i].y+n[i+1].y)/2);this.context.quadraticCurveTo(n[i].x,n[i].y,n[i+1].x,n[i+1].y),this.context.stroke()}drawQuadraticThroughCurveLineBetter(n){const e=n.length;if(e<3)return new Error("points length must >= 3");const i=(n[0].x+n[e-1].x)/2,a=(n[0].y+n[e-1].y)/2;this.context.beginPath(),this.context.moveTo(i,a);let r=0;for(;r<e-1;r++){const s=(n[r].x+n[r+1].x)/2,l=(n[r].y+n[r+1].y)/2;this.context.quadraticCurveTo(n[r].x,n[r].y,s,l)}this.context.quadraticCurveTo(n[r].x,n[r].y,a,a),this.context.stroke()}fillRect(n){this.context.save(),this.context.fillRect(n.x,n.y,n.width,n.height),this.context.stroke(),this.context.restore()}drawImage(n,e=0,i=0){this.context.drawImage(n,e,i)}getImageData(n={x:0,y:0,width:this.canvas.width,height:this.canvas.height},e){return this.context.getImageData(n.x,n.y,n.width,n.height,e)}putImageData(n,e=0,i=0){return this.context.putImageData(n,e,i)}drawShape(n){n.draw(this.context)}}class wn{static tryAutoPlayOrAutoPlayAfterClick(n){return new Promise(e=>{n.play().then(()=>{n.autoplay=!0,e(!0)}).catch(i=>{wn.setAutoPlayWhenClick(n),e(!1)})})}static setAutoPlayWhenClick(n){function e(){n.autoplay=!0,n.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}return p.Arrow=af,p.Ball=rf,p.Ball3d=sf,p.BaseError=oe,p.Box=of,p.CanvasPath=mf,p.DOMKeyboardKeyCode=dt,p.Dep=na,p.EnvironmentError=pn,p.FileSelectCancelError=Se,p.IllegalFileError=bn,p.Light=lf,p.Line=cf,p.Point3d=ff,p.Segment=wf,p.Ship=hf,p.Slider=df,p.SvgPath=Kc,p.TWEEN=zc,p.Tree=_f,p.Triangle=uf,p.TriangleLight=gf,p.VideoUtil=wn,p.WebSocket=zt,p.addEventListener=Sr,p.addWatermark=fc,p.angle2radian=Tc,p.animateCanvas=Lr,p.animateInWeb=An,p.blobToLinkExport=Fl,p.blobToRawImage=Pl,p.captureKeyboard=aa,p.captureMouse=un,p.captureTouch=Cc,p.changeBrightness=lc,p.changeDiaphaneity=cc,p.changeSize=oc,p.clearCookies=Ca,p.clickEvent=Oa,p.colorToRGB=dn,p.compileTemplate=Er,p.compression=dc,p.copyToClipboard=dr,p.createXMLHttpRequest=gc,p.drawSpirograph=Qc,p.drawStar=tf,p.dynamicStrokeLine=ef,p.fetchUseFetch=mc,p.fetchUseXMLHttpRequest=wc,p.fileOrBlobToDataURL=cn,p.flipSideToSide=Ol,p.flipUpsideDown=Bl,p.fn2ObjectURL=Ia,p.getBrowserClient=Za,p.getBrowserClientVersion=qa,p.getBrowserLanguage=$a,p.getCanvasImageData=ln,p.getCanvasImageDataByBitmap=Ml,p.getCanvasImageDataByVideo=Dl,p.getCookie=Sa,p.getCookieObject=Aa,p.getDocumentElement=xt,p.getElementLeftInPage=kn,p.getElementPositionInPage=La,p.getElementPositionInPage2=Ra,p.getElementPositionInViewport=Ua,p.getElementTopInPage=In,p.getFileExtension=vn,p.getFileType=fa,p.getFilesImageInfo=Cl,p.getFixedWidthText=Ir,p.getFormElementData=_c,p.getImageDataByAIData=uc,p.getImageMainColor=zl,p.getImageType=Ji,p.getMouseButton=Ba,p.getMousePositionInPage=Fa,p.getMousePositionInViewport=za,p.getOperatingSystem=Ot,p.getOperatingSystemVersion=Ha,p.getPageClient=Ce,p.getPageScroll=Ae,p.getPageSize=Da,p.getPageVerticalScrollPercent=Pa,p.getRawImageInfo=on,p.getRelatedTarget=Rr,p.getSelectedText=ur,p.getTarget=Mr,p.getTextWidth=kr,p.getTimeZone=Na,p.getURL=Sn,p.getUrlParams=sr,p.getUrlParams2=or,p.getUserGeolocationPromise=Xa,p.getViewportSize=le,p.handleDragAndDropFiles=da,p.handleHashChange=cr,p.handleHistoryChange=fr,p.handleInputFiles=ha,p.handleURLChange=lr,p.hasDocument=Ka,p.hasHistory=Ja,p.hasProcess=Qa,p.hasWindow=En,p.htmlDecode=xr,p.htmlEncode=Tr,p.ifWebFileHasChanged=pc,p.imageDataToBitmap=Rl,p.imageDataToBlob=Ul,p.imageDataToDataURL=Ll,p.isAndroid=xn,p.isAppleDevice=Ya,p.isAudio=ma,p.isBrowser=Va,p.isBrowserSupportFileAPI=tr,p.isDarkMode=Ga,p.isElementInViewport=Ma,p.isExcelDocument=ba,p.isFocus=gr,p.isIOS=Tn,p.isImage=_a,p.isJsonDocument=ya,p.isMobile=ja,p.isNode=Wa,p.isPowerPointDocument=va,p.isRectContainPoint=ia,p.isRectIntersectRect=Ac,p.isTabInView=wr,p.isURL=rr,p.isURLRelative=ar,p.isVideo=wa,p.isWordDocument=pa,p.isXmlDocument=ka,p.jpgToPng=ic,p.lazyloadImages=vr,p.leftRotate=Hl,p.loadScript=br,p.localstorage=bc,p.marginSharpen=nc,p.microTask=xa,p.mosaic=hc,p.navigateBack=mr,p.navigateBack2=pr,p.onDocumentReady=Ta,p.parseColor=K,p.patchDOM=yn,p.pngToJpg=ac,p.pointDistance=Ec,p.pointRotation=Sc,p.preventDefault=Dr,p.radian2angle=xc,p.radiusClip=sc,p.reactiveVue2=kc,p.reactiveVue3=Ic,p.readeFile=ga,p.rectClip=rc,p.removeEventListener=Ar,p.rightRotate=Zl,p.roundedRect=Jc,p.scrollTo=vc,p.selectFile=ua,p.setCookie=Ea,p.setRem=er,p.setScrollRestoration=ke,p.setTheme=hr,p.sharpen=ec,p.siblings=_r,p.smileFace=nf,p.stopPropagation=Cr,p.toBlackAndWhite=$l,p.toBlue=Gl,p.toBlueAndGreen=Kl,p.toBlueAndGrey=tc,p.toGreen=jl,p.toGreenAndGrey=Ql,p.toGrey=ql,p.toGrey2=Xl,p.toOpposite=Nl,p.toRed=Yl,p.toRedAndBlue=Wl,p.toRedAndGreen=Vl,p.toRedAndGrey=Jl,p.urlsafe_base64decode=ir,p.urlsafe_base64encode=nr,p.waitForStyleSheetsLoaded=yr,p.watchEffect=yc,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),p}({});
|
|
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]*16777216+(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&4294967168))n[i+o]=c,o++;else if(!(c&4294965248))n[i+o]=192|c>>6,n[i+o+1]=128|c>>0&63,o+=2;else if(!(c&4294901760))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&4292870144))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&4294967168))r++;else if(!(o&4294965248))r+=2;else if(!(o&4294901760))r+=3;else if(!(o&4292870144))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,Ot=0;Ot<r;Ot+=2){for(var _t=i[Ot],Ut=_t>>>23,De=R+(_t&(1<<23)-1);R<De;)f=e.F._writeLit(o[R++],P,l,f);if(Ut!=0){var Jt=i[Ot+1],Li=Jt>>16,Ft=Jt>>8&255,St=Jt&255;f=e.F._writeLit(257+Ft,P,l,f),h(l,f,Ut-u.of0[Ft]),f+=u.exb[Ft],f=e.F._writeLit(St,U,l,f),d(l,f,Li-u.df0[St]),f+=u.dxb[St],R+=Ut}}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+131072)),p==1&&(S=d.flmap,C=d.fdmap,b=511,v=31),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 Ot=S[u(n,x)&b];x+=Ot&15;var _t=Ot>>>4;if(!(_t>>>8))i[E++]=_t;else{if(_t==256)break;var Ut=E+_t-254;if(_t>264){var De=d.ldef[_t-257];Ut=E+(De>>>3)+a(n,x,De&7),x+=De&7}var Jt=C[u(n,x)&v];x+=Jt&15;var Li=Jt>>>4,Ft=d.ddef[Li],St=(Ft>>>4)+o(n,x,Ft&15);for(x+=Ft&15,h&&(i=e.F._check(i,E+131072));E<Ut;)i[E]=i[E++-St],i[E]=i[E++-St],i[E]=i[E++-St],i[E]=i[E++-St];E=Ut}}}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,112,9),o(n.fltree,24,7),o(n.fltree,8,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 Bt(t){let e=t.length;for(;--e>=0;)t[e]=0}const Wa=0,Qi=1,Ka=2,Ja=3,Qa=258,yn=29,ee=256,ne=ee+1+yn,Nt=30,vn=19,tr=2*ne+1,Tt=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((ne+2)*2);Bt(ot);const ie=new Array(Nt*2);Bt(ie);const re=new Array(nl);Bt(re);const se=new Array(Qa-Ja+1);Bt(se);const Sn=new Array(yn);Bt(Sn);const Oe=new Array(Nt);Bt(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?re[t]:re[256+(t>>>7)],oe=(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,oe(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?(oe(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<=Tt;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(Tt+1);let r=0,s,o;for(s=1;s<=Tt;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(Tt+1);for(n=0,i=0;i<yn-1;i++)for(Sn[i]=n,t=0;t<1<<En[i];t++)se[n++]=i;for(se[n-1]=i,r=0,i=0;i<16;i++)for(Oe[i]=r,t=0;t<1<<Le[i];t++)re[r++]=i;for(r>>=7;i<Nt;i++)for(Oe[i]=r<<7,t=0;t<1<<Le[i]-7;t++)re[256+r++]=i;for(e=0;e<=Tt;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,ne+1,s),t=0;t<Nt;t++)ie[t*2+1]=5,ie[t*2]=cr(t,5);sr=new kn(ot,En,ee+1,ne,Tt),or=new kn(ie,Le,0,Nt,Tt),ar=new kn(new Array(0),el,0,vn,tl)},fr=t=>{let e;for(e=0;e<ne;e++)t.dyn_ltree[e*2]=0;for(e=0;e<Nt;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?oe(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=se[r],Q(t,o+ee+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<ee;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),oe(t,n),oe(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,ie)):(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[(se[n]+ee+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},ae=(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},At={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"},Ct={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:gt,_tr_align:El}=wl,{Z_NO_FLUSH:pt,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}=Ct,Ml=9,Ll=15,Ol=8,Ul=29,Pn=256+1+Ul,Fl=30,zl=19,Bl=2*Pn+1,Nl=15,M=3,mt=258,et=mt+M+1,jl=32,jt=42,Rn=57,Mn=69,Ln=73,On=91,Un=103,It=113,le=666,q=1,Ht=2,Dt=3,qt=4,Hl=3,Pt=(t,e)=>(t.msg=At[e],e),br=t=>t*2-(t>4?9:0),wt=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 yt=(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},ce=(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=ae(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+mt;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=mt-(d-i),i=d-mt,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},Zt=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=yt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=yt(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===pt||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?qt:e!==pt&&e!==V&&t.strm.avail_in===0&&t.strstart===t.block_start?Ht:(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!==pt&&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?Dt:q)},zn=(t,e)=>{let n,i;for(;;){if(t.lookahead<et){if(Zt(t),t.lookahead<et&&e===pt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=yt(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=gt(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=yt(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=yt(t,t.ins_h,t.window[t.strstart+1]);else i=gt(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?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Gt=(t,e)=>{let n,i,r;for(;;){if(t.lookahead<et){if(Zt(t),t.lookahead<et&&e===pt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=yt(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=gt(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=yt(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=gt(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=gt(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?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Zl=(t,e)=>{let n,i,r,s;const o=t.window;for(;;){if(t.lookahead<=mt){if(Zt(t),t.lookahead<=mt&&e===pt)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+mt;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=mt-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=M?(n=gt(t,1,t.match_length-M),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=gt(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?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Gl=(t,e)=>{let n;for(;;){if(t.lookahead===0&&(Zt(t),t.lookahead===0)){if(e===pt)return q;break}if(t.match_length=0,n=gt(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?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht};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 he=[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,Gt),new nt(8,16,32,32,Gt),new nt(8,16,128,128,Gt),new nt(8,32,128,256,Gt),new nt(32,128,258,1024,Gt),new nt(32,258,258,4096,Gt)],Xl=t=>{t.window_size=2*t.w_size,wt(t.head),t.max_lazy_match=he[t.level].max_lazy,t.good_match=he[t.level].good_length,t.nice_match=he[t.level].nice_length,t.max_chain_length=he[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),wt(this.dyn_ltree),wt(this.dyn_dtree),wt(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),wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Pn+1),wt(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 fe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==jt&&e.status!==Rn&&e.status!==Mn&&e.status!==Ln&&e.status!==On&&e.status!==Un&&e.status!==It&&e.status!==le?1:0},Sr=t=>{if(fe(t))return Pt(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?jt:It,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)=>fe(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 Pt(t,tt);i===8&&(i=9);const a=new $l;return t.state=a,a.strm=t,a.status=jt,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(fe(t)||e>yr||e<0)return t?Pt(t,tt):tt;const n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===le&&e!==V)return Pt(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 Pt(t,Dn);if(n.status===le&&t.avail_in!==0)return Pt(t,Dn);if(n.status===jt&&n.wrap===0&&(n.status=It),n.status===jt){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,ce(n,r),n.strstart!==0&&(ce(n,t.adler>>>16),ce(n,t.adler&65535)),t.adler=1,n.status=It,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=It,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=It,X(t),n.pending!==0)return n.last_flush=-1,H}if(t.avail_in!==0||n.lookahead!==0||e!==pt&&n.status!==le){let r=n.level===0?Er(n,e):n.strategy===Ue?Gl(n,e):n.strategy===Il?Zl(n,e):he[n.level].func(n,e);if((r===Dt||r===qt)&&(n.status=le),r===q||r===Dt)return t.avail_out===0&&(n.last_flush=-1),H;if(r===Ht&&(e===Sl?El(n):e!==yr&&(In(n,0,0,!1),e===kl&&(wt(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)):(ce(n,t.adler>>>16),ce(n,t.adler&65535)),X(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?H:vr)},Kl=t=>{if(fe(t))return tt;const e=t.state.status;return t.state=null,e===It?Pt(t,Tl):H},Jl=(t,e)=>{let n=e.length;if(fe(t))return tt;const i=t.state,r=i.wrap;if(r===2||r===1&&i.status!==jt||i.lookahead)return tt;if(r===1&&(t.adler=ae(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){r===0&&(wt(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,Zt(i);i.lookahead>=M;){let c=i.strstart,l=i.lookahead-(M-1);do i.ins_h=yt(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,Zt(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)",ue={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 de=new Uint8Array(256);for(let t=0;t<256;t++)de[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;de[254]=de[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=de[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+de[t[n]]>e?n:e},_e={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}=Ct;function ge(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=ue.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Be)throw new Error(At[n]);if(e.header&&ue.deflateSetHeader(this.strm,e.header),e.dictionary){let i;if(typeof e.dictionary=="string"?i=_e.string2buf(e.dictionary):Ir.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,n=ue.deflateSetDictionary(this.strm,i),n!==Be)throw new Error(At[n]);this._dict_set=!0}}ge.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=_e.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=ue.deflate(n,s),r===vc)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=ue.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},ge.prototype.onData=function(t){this.chunks.push(t)},ge.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 ge(e);if(n.push(t,!0),n.err)throw n.msg||At[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=ge,Ac=Bn,Cc=Sc,Ic=kc,Dc=Ct,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 Xt=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 pe=(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(Xt+1),D=new Uint16Array(Xt+1);let P=null,U,z,R;for(l=0;l<=Xt;l++)A[l]=0;for(f=0;f<i;f++)A[e[n+f]]++;for(h=c,d=Xt;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<=Xt;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<Xt;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:Rt,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}=Ct,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 Mt=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(Mt(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,Rt},fs=t=>{if(Mt(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(Mt(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!==Rt&&(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(pe(Lr,t.lens,0,288,Zn,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;pe(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(Mt(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=Rt;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=pe(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=pe(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=pe(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):ae(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):ae(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===Rt&&(C=Hc),C},Wc=t=>{if(Mt(t))return Y;let e=t.state;return e.window&&(e.window=null),t.state=null,Rt},Kc=(t,e)=>{if(Mt(t))return Y;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Rt):Y},Jc=(t,e)=>{const n=e.length;let i,r,s;return Mt(t)||(i=t.state,i.wrap!==0&&i.mode!==qe)?Y:i.mode===qe&&(r=1,r=ae(r,e,n,0),r!==i.check)?Fr:(s=gs(t,e,n,n),s?(i.mode=as,zr):(i.havedict=1,Rt))};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:me,Z_STREAM_END:Xn,Z_NEED_DICT:$n,Z_STREAM_ERROR:dh,Z_DATA_ERROR:ms,Z_MEM_ERROR:_h}=Ct;function we(t){this.options=ze.assign({chunkSize:65536,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!==me)throw new Error(At[n]);if(this.header=new hh,lt.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=_e.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!==me)))throw new Error(At[n])}we.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===me?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=_e.utf8border(n.output,n.next_out),l=n.next_out-c,f=_e.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===me&&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},we.prototype.onData=function(t){this.chunks.push(t)},we.prototype.onEnd=function(t){t===me&&(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 we(e);if(n.push(t),n.err)throw n.msg||At[n.err];return n.result}function gh(t,e){return e=e||{},e.raw=!0,Vn(t,e)}var ph=we,mh=Vn,wh=gh,yh=Vn,vh=Ct,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=Ct,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]=-16777216|t[_+2]<<16|t[_+1]<<8|t[_]}if(f===16)for(let h=0;h<r;h++){const _=h*6;c[h]=-16777216|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]=-16777216|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]=-16777216|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+131072)),s===1&&(h=x.J,_=x.h,l=511,f=31),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._,112,9),i(e._,24,7),i(e._,8,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]*16777216+(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+=13),r.pHYs!==null&&r.pHYs!==void 0&&(d+=21),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:{}},$t=typeof Reflect=="object"?Reflect:null,Ss=$t&&typeof $t.apply=="function"?$t.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},Ye;$t&&typeof $t.ownKeys=="function"?Ye=$t.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:Vt}=Array,ye=Je("undefined");function $f(t){return t!==null&&!ye(t)&&t.constructor!==null&&!ye(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 ve(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Vt(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=>!ye(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):Vt(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&ve(arguments[i],n);return e}const su=(t,e,n,{allOwnKeys:i}={})=>(ve(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(Vt(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={};ve(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 Vt(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=Vt(i)?[]:{};return ve(i,(o,a)=>{const c=n(o,r+1);!ye(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:Vt,isArrayBuffer:Os,isBuffer:$f,isFormData:nu,isArrayBufferView:Vf,isString:Yf,isNumber:Us,isBoolean:Wf,isObject:Qe,isPlainObject:tn,isUndefined:ye,isDate:Kf,isFile:Jf,isBlob:Qf,isRegExp:pu,isFunction:W,isStream:eu,isURLSearchParams:iu,isTypedArray:fu,isFileList:tu,forEach:ve,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 be(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=be(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=be(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=be(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=be(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=be(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 xe(t,e,n){L.call(this,t??"canceled",L.ERR_CANCELED,e,n),this.name="CanceledError"}k.inherits(xe,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 xe(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 xe(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 Yt(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},vt=_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=Yt(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&_i.assertOptions(i,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:_i.assertOptions(r,{encode:vt.function,serialize:vt.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=Yt(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(Yt(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(Yt(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 xe(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(Yt(t,i))},n}const N=ho(li);N.Axios=on,N.CanceledError=xe,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=Yt,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 bt(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 Ee(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 Se(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 ke=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=Se(Se([],Ee(s)),Ee(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=ke.EMPTY;function uo(t){return t instanceof ke||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,Se([t,e],Ee(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){bt(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}(ke),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){bt(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){bt(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){bt(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 ke(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){bt(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){bt(e,t);function e(n,i){return t.call(this)||this}return e.prototype.schedule=function(n,i){return this},e}(ke),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,Se([t,e],Ee(n))):setInterval.apply(void 0,Se([t,e],Ee(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},xd=function(t){bt(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){bt(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 xt(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=xt(n,i,o,a,!0),f=xt(t.vx,t.vy,o,a,!0),u=xt(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=xt(c.x,c.y,o,a,!1),g=xt(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=xt(f.x,f.y,o,a,!1),y=xt(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 Wt={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-Wt.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?Wt.Bounce.In(t*2)*.5:Wt.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}}}};let Te;typeof self>"u"&&typeof process<"u"&&process.hrtime?Te=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Te=self.performance.now.bind(self.performance):Date.now!==void 0?Te=Date.now:Te=function(){return new Date().getTime()};const Kt=Te;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=Kt(),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 Lt={Linear:function(t,e){const n=t.length-1,i=n*e,r=Math.floor(i),s=Lt.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=Lt.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=Lt.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=Lt.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 Ae{static _nextId=0;static nextId(){return Ae._nextId++}}const K=new Ao;class Hd{constructor(e,n=K){this._object=e,this._group=n}_id=Ae.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=Wt.Linear.None;_interpolationFunction=Lt.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=Kt()){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=Kt()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Kt()){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=Wt.Linear.None){return this._easingFunction=e,this}interpolation(e=Lt.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=Kt(),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=Ae.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:Wt,Group:Ao,Interpolation:Lt,now:Kt,Sequence:Ae,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 Ce=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-=Ce),s===1&&A<0&&(A+=Ce),[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*Ce/360),f=Math.cos(c*Ce/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)/(Ce/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+.6666666666666666*n,e/3+.6666666666666666*i,r/3+.6666666666666666*n,s/3+.6666666666666666*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"),Et=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[Et]=null,this[dn]=[],this[dt]={},this[Di]=!1}save(){return this[dn].push({path:this[ut],bounds:this[Et],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[Et]=n,this[dt]=i}return this}get bounds(){if(!this[Et]){const e=this[ut];if(this[Et]=[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[Et]=n}}return this[Et]}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[Et]=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"]=" ",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 Ie={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(Ie);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=Ie[r].canvas}}__getStyleState(){const e={},n=Object.keys(Ie);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(Ie);for(let s=0;s<r.length;s++){const o=Ie[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}return w.Arrow=y0,w.Ball=v0,w.Ball3d=b0,w.BaseError=Pe,w.Box=x0,w.C2S=d0,w.CanvasPath=R0,w.DOMKeyboardKeyCode=kt,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=Qt,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=zt,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=te,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=xt,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"}),w}({});
|
|
12
18
|
//# sourceMappingURL=zyzgroup_core_web.iife.js.map
|