@zyzgroup/core-web 0.0.5 → 0.0.7
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 +2 -2
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +5513 -702
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +2 -2
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +12 -5
- package/types/UPNG.d.ts +143 -0
- package/types/UPNG.d.ts.map +1 -0
- package/types/animate.d.ts +4 -0
- package/types/animate.d.ts.map +1 -0
- package/types/dom.d.ts +5 -3
- package/types/dom.d.ts.map +1 -1
- package/types/env.d.ts +10 -12
- package/types/env.d.ts.map +1 -1
- package/types/file.d.ts +0 -4
- package/types/file.d.ts.map +1 -1
- package/types/iframe.d.ts +1 -0
- package/types/iframe.d.ts.map +1 -0
- package/types/image.d.ts +67 -3
- package/types/image.d.ts.map +1 -1
- package/types/index.d.ts +5 -2
- package/types/index.d.ts.map +1 -1
- package/types/jsonp.d.ts +17 -0
- package/types/jsonp.d.ts.map +1 -0
- package/types/localstorage.d.ts +2 -0
- package/types/localstorage.d.ts.map +1 -0
- package/types/microTask.d.ts.map +1 -1
- package/types/onDocumentReady.d.ts.map +1 -1
- package/types/reactive.d.ts +13 -0
- package/types/reactive.d.ts.map +1 -0
- package/types/rem.d.ts.map +1 -1
- package/types/scroll.d.ts +6 -0
- package/types/scroll.d.ts.map +1 -0
- package/types/tween/Easing.d.ts +63 -0
- package/types/tween/Easing.d.ts.map +1 -0
- package/types/tween/Group.d.ts +11 -0
- package/types/tween/Group.d.ts.map +1 -0
- package/types/tween/Interpolation.d.ts +14 -0
- package/types/tween/Interpolation.d.ts.map +1 -0
- package/types/tween/Now.d.ts +3 -0
- package/types/tween/Now.d.ts.map +1 -0
- package/types/tween/Sequence.d.ts +5 -0
- package/types/tween/Sequence.d.ts.map +1 -0
- package/types/tween/Tween.d.ts +69 -0
- package/types/tween/Tween.d.ts.map +1 -0
- package/types/tween/index.d.ts +88 -0
- package/types/tween/index.d.ts.map +1 -0
- package/types/tween/mainGroup.d.ts +3 -0
- package/types/tween/mainGroup.d.ts.map +1 -0
- package/types/url.d.ts +5 -2
- package/types/url.d.ts.map +1 -1
- package/types/Canvas2Image.d.ts +0 -13
- package/types/Canvas2Image.d.ts.map +0 -1
- package/types/canvas.d.ts +0 -2
- package/types/canvas.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ZYZGroupCoreWeb=function(i){"use strict";class I extends Error{cause;constructor(t,n){super(t,n),this.name=this.constructor.name}}class H extends I{constructor(){super("This is not a browser environment")}}class _ extends I{constructor(){super("Cancel select")}}class X extends I{accepts;constructor(t){super(`Please select files in ${t} format`),this.accepts=t}}function K(e,t){e.addEventListener("change",function(){t(e.files)},!1)}function Q(e,t){e.addEventListener("dragover",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="copy")},!1),e.addEventListener("drop",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&t(n.dataTransfer.files)},!1)}const Z=(e=["*"],t)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new H;const n=globalThis.document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("visibility","hidden"),Array.isArray(e)&&e.length>0&&n.setAttribute("accept",e.join(",")),t&&n.setAttribute("multiple","true"),n.click(),new Promise((a,u)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!n.files||n.files?.length===0)&&u(new _)},1e3)},{once:!0}),n.addEventListener("change",()=>{if(!n.files||n.files?.length===0)u(new _);else{const g=Array.from(n.files);o(g)&&u(new X(e)),a(g)}})});function o(a){return!e.includes("*")&&a.some(u=>!e.includes(`.${j(u)}`))}},N=e=>{const t=new FileReader;return new Promise((n,o)=>{t.addEventListener("progress",a=>{const u="("+Math.floor(a.total/1e3)+" KB)",g=Math.floor(a.loaded/a.total*100)+"%";console.log(`Loading size: ${u} progress: ${g}`)}),t.addEventListener("load",a=>{n(a.target?.result)}),t.addEventListener("error",a=>{o(a)}),e(t)})},j=e=>{let t;return e instanceof File?t=e.name:t=e,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)[1]??""},x=e=>/^image\//.test(e.type),ee=e=>/^video\//.test(e.type),te=e=>/^audio\//.test(e.type),ne=e=>/^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(e.type),oe=e=>/^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(e.type),ie=e=>/^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(e.type),ae=e=>/^application\/json$/.test(e.type),re=e=>/^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(e.type);function ce(e){const t=e.slice(0,4),n=new FileReader;let o;return new Promise((a,u)=>{n.onload=function(){const g=n.result;switch(new DataView(g).getUint32(0,!1)){case 2303741511:o="image/png";break;case 1195984440:o="image/gif";break;case 626017350:o="application/pdf";break;case 1347093252:o="application/zip";break}return a(o)},n.readAsArrayBuffer(t)})}function se(e){const t=new Blob(["("+e.toString()+")()"],{type:"application/javascript"});return URL.createObjectURL(t)}function le(e,t){if(!e.type.startsWith("image/"))return;const n=document.createElement("img");return n.src=URL.createObjectURL(e),n.width=t?.width??60,n.height=t?.height??60,n.onload=function(){},n}function ue(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function de(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function $(e,t,n){if(!e){n&&t&&n.appendChild(t);return}if(!e.isEqualNode(t)){if(e.nodeName!==t.nodeName){n.replaceChild(t,e);return}if(e.nodeType===Node.TEXT_NODE){e.textContent!==t.textContent&&(e.textContent=t.textContent);return}for(let o=e.attributes.length-1;o>=0;o--){const a=e.attributes[o].name;!t.hasAttribute(a)&&a!=="open"&&e.removeAttribute(a)}for(let o=0;o<t.attributes.length;o++){const a=t.attributes[o].name,u=t.attributes[o].value;e.setAttribute(a,u)}for(let o=0;o<t.childNodes.length;o++)e.childNodes[o]?$(e.childNodes[o],t.childNodes[o],e):e.appendChild(t.childNodes[o].cloneNode(!0));for(;e.childNodes.length>t.childNodes.length;)e.lastChild&&e.removeChild(e.lastChild)}}function fe(e,t,n){var o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3);var a="expires="+o.toGMTString();document.cookie=e+"="+t+"; "+a}function ge(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){var a=n[o].trim();if(a.indexOf(t)==0)return a.substring(t.length,a.length)}return""}const me=()=>document.cookie.split(";").map(e=>e.split("=")).reduce((e,[t,n])=>(e[t.trim().replace('"',"")]=n)&&e,{}),he=()=>document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class k{constructor(t){this.waitingResponse=[],this.messageQueue=[],this.url=t,this.createSocket()}createSocket(){this.socket=new k(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(t=>this.socket.send(t)),this.messageQueue=[]},this.socket.onclose=t=>{const{code:n,reason:o,wasClean:a}=t;console.log(`ws closed : ${n} ${o} ${a}`)},this.socket.onerror=t=>{console.log(`ws error : ${t}`)},this.socket.onmessage=t=>{this.processMessage(t)}}recreateSocket(t){console.log("Reconnection Attempted"),this.messageQueue.push(t),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(t){let n=+new Date;const o=this.waitingResponse[n]={sent:n},a={...o,...t};try{this.socket.readyState===k.OPEN?this.socket.send(JSON.stringify(a)):this.recreateSocket(JSON.stringify(a));const u=await new Promise(function(g,f){o.resolve=g,console.log(o),setTimeout(()=>{f("Timeout")},5e3)});return console.info("Time took",(+new Date-o.sent)/1e3),u}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[n]}}async processMessage(t){try{let n=JSON.parse(t.data);if(Object.prototype.hasOwnProperty.call(n,"requestid")){const o=this.waitingResponse[n.requestid];o?o.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(t.data)}}async sendRequest(t,n,o=a=>{console.log(a)}){this.sendPayload(t).then(function(a){n(a)},function(a){o(a)})}sendMessage(t){const n=(()=>{try{return JSON.stringify(t)}catch{return t}})();this.socket.readyState===k.OPEN?this.socket.send(n):this.recreateSocket(n)}}function T(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function S(){const e=T();return{width:e.clientWidth||window.innerWidth,height:e.clientHeight||window.innerHeight}}function pe(){const e=T(),t=S();return{width:Math.max(e.scrollWidth,t.width),height:Math.max(e.scrollHeight,t.height)}}function we(e){const t=S(),n=e.getBoundingClientRect();return n.bottom>0&&n.top<t.height&&n.right>0&&n.left<t.width}function A(){const e=T();return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M(){const e=T();return{clientLeft:e.clientLeft,clientTop:e.clientTop}}function V(e){let t=e.offsetLeft,n=e.offsetParent;for(;n!==null;)t+=n.offsetLeft,n=n.offsetParent;return t}function z(e){let t=e.offsetTop,n=e.offsetParent;for(;n!==null;)t+=n.offsetTop,n=n.offsetParent;return t}function ve(e){return{x:V(e),y:z(e)}}function be(e){const t=e.getBoundingClientRect(),n=A(),o=M();return{x:t.left+n.scrollLeft-o.clientLeft,y:t.top+n.scrollTop-o.clientTop}}function Ee(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top}}function Te(){const e=T(),t=e.scrollHeight-e.clientHeight;return t<=0?0:e.scrollTop/t*100}function Pe(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=A(),n=M();return{x:e.clientX+t.scrollLeft-n.clientLeft,y:e.clientY+t.scrollTop-n.clientTop}}function ke(e){return{x:e.clientX,y:e.clientY}}function Le(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}function ye(){let e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")==-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")==-1}}function Ce(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function W(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G(){return/Android/gi.test(window.navigator.userAgent)}function Ie(){return W()||G()}function Se(e){var t=document.documentElement,n=window.devicePixelRatio;t.dataset.dpr=n;var o=100,a=function(){var u=Math.min(t.clientWidth,e);t.dataset.width=u,t.dataset.rem=o=Math.round(100*(u/e)),t.style.fontSize=o+"px"};a(),window.rem2px=function(u){return u=parseFloat(u),u*o},window.px2rem=function(u){return u=parseFloat(u),u/o},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",a,!1)}require("path"),require("querystring"),require("util"),require("url");function _e(e){return btoa(encodeURIComponent(e)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function Ae(e){let t=e.replaceAll("*","+").replaceAll("-","/"),n=t.length%4;return n&&(t=t.padEnd(t.length+(4-n),"=")),decodeURIComponent(atob(t))}const Me=e=>!/^([a-z]+:)?[\\/]/i.test(e);function Re(e){let t;try{t=new URL(e)}catch(n){return console.log(n),!1}return t.protocol==="http:"||t.protocol==="https:"}function De(){let e=location.search;if(e){let t={};return e=e.substring(1,e.length),e.split("&").forEach(o=>{t[o.split("=")[0]]=decodeURIComponent(o.split("=")[1])}),t}else return!1}const Oe=e=>Array.from(new URLSearchParams(e)).reduce((t,[n,o])=>Object.assign({},t,{[n]:t[n]?(Array.isArray(t[n])?t[n]:[t[n]]).concat(o):o}),{});function Be(e){e=e||localStorage.theme,e||(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",localStorage.theme=e),document.documentElement.classList.toggle("dark",e==="dark")}class v{static getEvent(t){const n=t.keyCode||t.charCode;return{code:n,key:v.codeToKey(n)}}static keyToCode(t){return Object.prototype.hasOwnProperty.call(v.keyToCodes,t)?v.keyToCodes[t]:-1}static codeToKey(t){return Object.prototype.hasOwnProperty.call(v.codeToKeys,t.toString())?v.codeToKeys[t.toString()]:""}static keyToCodes={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,spacebar:32,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,escape:27,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,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",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",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",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 qe=e=>navigator.clipboard.writeText(e),Ue=()=>window.getSelection().toString(),Fe=e=>e===document.activeElement,He=e=>[].slice.call(e.parentNode.children).filter(t=>t!==e),Xe=()=>window.scrollTo(0,0),je=()=>!document.hidden,$e=()=>history.back(),Ve=()=>history.go(-1);function ze(e){let t=document.createElement("script");t.type="text/javascript",t.src=e,t.async=!1,document.body.appendChild(t),t.onload=()=>{},t.onerror=()=>{}}function We(e){let t=e[0];for(let n=1;n<arguments.length;n++){let o=String(arguments[n]);t+=o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),t+=e[n]}return t}function Ge(e){const t=/<%=(.+?)%>/g,n=/<%([\s\S]+?)%>/g;return e=e.replace(t,"`); \n echo( $1 ); \n echo(`").replace(n,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
1
|
+
var ZYZGroupCoreWeb=function(v){"use strict";class et extends Error{cause;constructor(n,t){super(n,t),this.name=this.constructor.name}}class nn extends et{constructor(){super("This is not a browser environment")}}class wt extends et{constructor(){super("Cancel select")}}class rn extends et{accepts;constructor(n){super(`Please select files in ${n} format`),this.accepts=n}}function Zi(e,n){e.addEventListener("change",function(){n(e.files)},!1)}function $i(e,n){e.addEventListener("dragover",function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy")},!1),e.addEventListener("drop",function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer&&n(t.dataTransfer.files)},!1)}const Ni=(e=["*"],n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new nn;const t=globalThis.document.createElement("input");return t.setAttribute("type","file"),t.setAttribute("visibility","hidden"),Array.isArray(e)&&e.length>0&&t.setAttribute("accept",e.join(",")),n&&t.setAttribute("multiple","true"),t.click(),new Promise((r,a)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!t.files||t.files?.length===0)&&a(new wt)},1e3)},{once:!0}),t.addEventListener("change",()=>{if(!t.files||t.files?.length===0)a(new wt);else{const o=Array.from(t.files);i(o)&&a(new rn(e)),r(o)}})});function i(r){return!e.includes("*")&&r.some(a=>!e.includes(`.${an(a)}`))}},ji=e=>{const n=new FileReader;return new Promise((t,i)=>{n.addEventListener("progress",r=>{const a="("+Math.floor(r.total/1e3)+" KB)",o=Math.floor(r.loaded/r.total*100)+"%";console.log(`Loading size: ${a} progress: ${o}`)}),n.addEventListener("load",r=>{t(r.target?.result)}),n.addEventListener("error",r=>{i(r)}),e(n)})},an=e=>{let n;return e instanceof File?n=e.name:n=e,n.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)[1]??""},qi=e=>/^image\//.test(e.type),Gi=e=>/^video\//.test(e.type),Xi=e=>/^audio\//.test(e.type),Vi=e=>/^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(e.type),Yi=e=>/^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(e.type),Ki=e=>/^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(e.type),Ji=e=>/^application\/json$/.test(e.type),Qi=e=>/^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(e.type);function Wi(e){const n=e.slice(0,4),t=new FileReader;let i;return new Promise((r,a)=>{t.onload=function(){const o=t.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)},t.readAsArrayBuffer(n)})}function er(e){const n=new Blob(["("+e.toString()+")()"],{type:"application/javascript"});return URL.createObjectURL(n)}function tr(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}function nr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function on(e,n,t){if(!e){t&&n&&t.appendChild(n);return}if(!e.isEqualNode(n)){if(e.nodeName!==n.nodeName){t.replaceChild(n,e);return}if(e.nodeType===Node.TEXT_NODE){e.textContent!==n.textContent&&(e.textContent=n.textContent);return}for(let i=e.attributes.length-1;i>=0;i--){const r=e.attributes[i].name;!n.hasAttribute(r)&&r!=="open"&&e.removeAttribute(r)}for(let i=0;i<n.attributes.length;i++){const r=n.attributes[i].name,a=n.attributes[i].value;e.setAttribute(r,a)}for(let i=0;i<n.childNodes.length;i++)e.childNodes[i]?on(e.childNodes[i],n.childNodes[i],e):e.appendChild(n.childNodes[i].cloneNode(!0));for(;e.childNodes.length>n.childNodes.length;)e.lastChild&&e.removeChild(e.lastChild)}}function ir(e,n,t){var i=new Date;i.setTime(i.getTime()+t*24*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=e+"="+n+"; "+r}function rr(e){for(var n=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){var r=t[i].trim();if(r.indexOf(n)==0)return r.substring(n.length,r.length)}return""}const ar=()=>document.cookie.split(";").map(e=>e.split("=")).reduce((e,[n,t])=>(e[n.trim().replace('"',"")]=t)&&e,{}),or=()=>document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class Ue{constructor(n){this.waitingResponse=[],this.messageQueue=[],this.url=n,this.createSocket()}createSocket(){this.socket=new Ue(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(n=>this.socket.send(n)),this.messageQueue=[]},this.socket.onclose=n=>{const{code:t,reason:i,wasClean:r}=n;console.log(`ws closed : ${t} ${i} ${r}`)},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 t=+new Date;const i=this.waitingResponse[t]={sent:t},r={...i,...n};try{this.socket.readyState===Ue.OPEN?this.socket.send(JSON.stringify(r)):this.recreateSocket(JSON.stringify(r));const a=await new Promise(function(o,s){i.resolve=o,console.log(i),setTimeout(()=>{s("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),a}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[t]}}async processMessage(n){try{let t=JSON.parse(n.data);if(Object.prototype.hasOwnProperty.call(t,"requestid")){const i=this.waitingResponse[t.requestid];i?i.resolve(t):console.warn("Got data but found no associated request, already timed out?",t)}else console.warn("Got data without request id",t)}catch{console.log(n.data)}}async sendRequest(n,t,i=r=>{console.log(r)}){this.sendPayload(n).then(function(r){t(r)},function(r){i(r)})}sendMessage(n){const t=(()=>{try{return JSON.stringify(n)}catch{return n}})();this.socket.readyState===Ue.OPEN?this.socket.send(t):this.recreateSocket(t)}}function be(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function tt(){const e=be();return{width:e.clientWidth||window.innerWidth,height:e.clientHeight||window.innerHeight}}function lr(){const e=be(),n=tt();return{width:Math.max(e.scrollWidth,n.width),height:Math.max(e.scrollHeight,n.height)}}function sr(e){const n=tt(),t=e.getBoundingClientRect();return t.bottom>0&&t.top<n.height&&t.right>0&&t.left<n.width}function pt(){const e=be();return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mt(){const e=be();return{clientLeft:e.clientLeft,clientTop:e.clientTop}}function ln(e){let n=e.offsetLeft,t=e.offsetParent;for(;t!==null;)n+=t.offsetLeft,t=t.offsetParent;return n}function sn(e){let n=e.offsetTop,t=e.offsetParent;for(;t!==null;)n+=t.offsetTop,t=t.offsetParent;return n}function cr(e){return{x:ln(e),y:sn(e)}}function fr(e){const n=e.getBoundingClientRect(),t=pt(),i=mt();return{x:n.left+t.scrollLeft-i.clientLeft,y:n.top+t.scrollTop-i.clientTop}}function hr(e){const n=e.getBoundingClientRect();return{x:n.left,y:n.top}}function dr(){const e=be(),n=e.scrollHeight-e.clientHeight;return n<=0?0:e.scrollTop/n*100}function ur(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const n=pt(),t=mt();return{x:e.clientX+n.scrollLeft-t.clientLeft,y:e.clientY+n.scrollTop-t.clientTop}}function _r(e){return{x:e.clientX,y:e.clientY}}function gr(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}const Re=()=>{const e=navigator.userAgent.toLowerCase();let n="Unknown";return e.includes("mac")?n="macOS":e.includes("win")?n="Windows":/android/.test(e)?n="Android":/iphone|ipad|ipod/.test(e)?n="iOS":/linux/.test(e)?n="Linux":/bsd/.test(e)&&(n="BSD"),n.toLowerCase()},wr=()=>{const e=navigator.userAgent;let n="Unknown";if(/Windows NT/.test(e)){const t=e.match(/Windows NT (\d+\.\d+)/);t&&(n=t[1])}else if(/Mac OS X/.test(e)){const t=e.match(/Mac OS X (\d+_\d+)/);t&&(n=t[1].replace("_","."))}else if(/Android/.test(e)){const t=e.match(/Android (\d+\.\d+)/);t&&(n=t[1])}else if(/iPhone|iPad|iPod/.test(e)){const t=e.match(/OS (\d+_\d+)/);t&&(n=t[1].replace("_","."))}return n.toLowerCase()},pr=()=>{const e=navigator.userAgent.toLowerCase();let n="Unknown";return/chrome/.test(e)?n="Chrome":/firefox/.test(e)?n="Firefox":/safari/.test(e)?n="Safari":/edge/.test(e)?n="Edge":/msie|trident/.test(e)&&(n="IE"),n.toLowerCase()},mr=()=>{const e=navigator.userAgent;let n="Unknown";if(/Chrome/.test(e)){const t=e.match(/Chrome\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Firefox/.test(e)){const t=e.match(/Firefox\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Safari/.test(e)){const t=e.match(/Version\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Edge/.test(e)){const t=e.match(/Edge\/(\d+\.\d+)/);t&&(n=t[1])}else if(/MSIE|Trident/.test(e)){const t=e.match(/(?:MSIE|rv:)(\d+\.\d+)/);t&&(n=t[1])}return n},br=()=>"geolocation"in navigator?new Promise((e,n)=>{navigator.geolocation.getCurrentPosition(t=>{const i=t.coords.latitude,r=t.coords.longitude;e({latitude:i,longitude:r})},t=>{n(t)})}):Promise.reject("Geolocation is not available.");function vr(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function yr(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function cn(){return Re()==="ios"}function xr(){return Re()==="ios"|Re()==="macos"}function fn(){return Re()==="android"}function Ir(){return cn()||fn()}function kr(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}const Er=typeof window=="object"&&typeof document=="object",Ar=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Tr(e){var n=document.documentElement,t=window.devicePixelRatio;n.dataset.dpr=t;var i=100,r=function(){var a=Math.min(n.clientWidth,e);n.dataset.width=a,n.dataset.rem=i=Math.round(100*(a/e)),n.style.fontSize=i+"px"};r(),window.rem2px=function(a){return a=parseFloat(a),a*i},window.px2rem=function(a){return a=parseFloat(a),a/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function Dr(e){return btoa(encodeURIComponent(e)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function Sr(e){let n=e.replaceAll("*","+").replaceAll("-","/"),t=n.length%4;return t&&(n=n.padEnd(n.length+(4-t),"=")),decodeURIComponent(atob(n))}const Cr=e=>!/^([a-z]+:)?[\\/]/i.test(e);function Ur(e){let n;try{n=new URL(e)}catch(t){return console.log(t),!1}return n.protocol==="http:"||n.protocol==="https:"}const Rr=e=>Array.from(new URLSearchParams(e)).reduce((n,[t,i])=>Object.assign({},n,{[t]:n[t]?(Array.isArray(n[t])?n[t]:[n[t]]).concat(i):i}),{});function Fr(){let e={},n=location.search;return n&&(n=n.substring(1,n.length),n.split("&").forEach(i=>{const r=i.split("=");e[r[0]]=decodeURIComponent(r[1])})),e}function Mr(e){let n="";new MutationObserver(function(i){window.location.href!==n&&(n=window.location.href,console.log(`URL data changed to ${window.location.href}`),e&&e(location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0})}function Lr(e){window.addEventListener("hashchange",()=>{e(location.hash)})}function zr(e){window.addEventListener("popstate",e)}function Pr(e){e=e||localStorage.theme,e||(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",localStorage.theme=e),document.documentElement.classList.toggle("dark",e==="dark")}class oe{static getEvent(n){const t=n.keyCode||n.charCode;return{code:t,key:oe.codeToKey(t)}}static keyToCode(n){return Object.prototype.hasOwnProperty.call(oe.keyToCodes,n)?oe.keyToCodes[n]:-1}static codeToKey(n){return Object.prototype.hasOwnProperty.call(oe.codeToKeys,n.toString())?oe.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,spacebar:32,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,escape:27,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,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",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",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",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 Or=e=>navigator.clipboard.writeText(e),Br=()=>window.getSelection().toString(),Hr=e=>e===document.activeElement,Zr=e=>[].slice.call(e.parentNode.children).filter(n=>n!==e),$r=()=>!document.hidden,Nr=()=>history.back(),jr=()=>history.go(-1);function qr(e){let n=document.createElement("script");n.type="text/javascript",n.src=e,n.async=!1,document.body.appendChild(n),n.onload=()=>{},n.onerror=()=>{}}const Gr=(e,n,t=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=t.toString(),i.innerText=e,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r},Xr=(e,n,t=12,i=400,r=!0)=>{let a="",o="",s="";if(!e||n<t||typeof e!="string")return a;const c=e.split(""),l=document.createElement("span");l.style.visibility="hidden",l.style.padding="0",l.style.whiteSpace="nowrap",l.style.overflow="visible",l.style.fontSize=t>12?t+"px":"12px",l.style.fontWeight=i.toString(),document.body.appendChild(l);for(let h=0,u=c.length;h<u;h++){const d=c[h];if(o=s,s+=d,a=s,l.innerText=s,l.offsetWidth>n){r?a=o+"...":a=o;break}}return document.body.removeChild(l),a};function Vr(e){let n=e[0];for(let t=1;t<arguments.length;t++){let i=String(arguments[t]);n+=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),n+=e[t]}return n}function Yr(e){var n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(var t in n)Object.hasOwnProperty.call(n,t)&&(e=e.replace(new RegExp(t,"g"),n[t]));return e}function Kr(e){const n=/<%=(.+?)%>/g,t=/<%([\s\S]+?)%>/g;return e=e.replace(n,"`); \n echo( $1 ); \n echo(`").replace(t,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
2
2
|
let output = "";
|
|
3
3
|
|
|
4
4
|
function echo(html){
|
|
@@ -8,5 +8,5 @@ var ZYZGroupCoreWeb=function(i){"use strict";class I extends Error{cause;constru
|
|
|
8
8
|
${e}
|
|
9
9
|
|
|
10
10
|
return output;
|
|
11
|
-
})`}function Je(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function Ye(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function Ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qe(e){e.preventDefault?e.preventDefault:e.returnValue=!1}function Ze(e){return e||window.event}function Ne(e){return e.target||e.srcElement}function xe(e){return e.relatedTarget?e.relatedTarget:e.toElement?e.toElement:e.fromElement?e.fromElement:null}function et(){return!!(window.File&&window.FileReader&&window.FileList&&window.Blob)}window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,16.666666666666668)}}());const tt=(e,t)=>{var n=document.getElementById(e),o=n.getContext("2d");(function a(){window.requestAnimationFrame(a),o.clearRect(0,0,n.width,n.height),t(o)})()};function nt(e){return new Promise(function(t,n){const o=new Image;o.onload=function(){t(o)},o.onerror=function(){n(new Error("Could not load image at "+e))},o.src=e})}function ot(){const e=document.getElementsByTagName("img"),t=S().height;let n=0;for(let o=n;o<e.length;o++)e[o].getBoundingClientRect().top<t&&(e[o].src=e[o].getAttribute("data-src"),n=o+1)}function it(e){var t=[],n=[],o=[],a,u,g,f,d=0,L=document.createElement("canvas"),y=L.getContext("2d"),w=document.createElement("image");w.src=e,L.width=w.width,L.height=w.height,y.drawImage(w,0,0);for(var b=y.getImageData(0,0,w.width,w.height).data,h=0;h<b.length;h+=4)t[d]=b[h],n[d]=b[h+1],o[d]=b[h+2],d+=1;return a=R(t),u=R(n),g=R(o),f="rgb("+a+","+u+","+g+")",f}function R(e){var t={},n=[],o=[],a=0;for(let d=0;d<e.length;d++)t[e[d]]?n.push(e[d]):t[e[d]]=1;for(let d=0;d<n.length;d++){a=0;for(var u=0;u<n.length;u++)n[d]===n[u]&&(a+=1),o[d]=a}for(var g=Math.max.apply(null,o),f=0;f<o.length;f++)if(o[f]===g)return;return n[f]}const at=function(e){e||(e="2d");const t=function(){const r=document.createElement("canvas"),c=r.getContext(e),s=!!c;return{canvas:s,imageData:s&&!!c.getImageData,dataURL:!!r.toDataURL,btoa:!!window.btoa}}(),n="image/octet-stream";function o(r,c,s){const l=r.width,m=r.height;c===void 0&&(c=l),s===void 0&&(s=m);const p=document.createElement("canvas"),E=p.getContext(e);return p.width=c,p.height=s,E.drawImage(r,0,0,l,m,0,0,c,s),p}function a(r,c,s,l){return e=="2d"&&(r=o(r,s,l)),r.toDataURL(c)}function u(r,c,s="name"){const l=document.createElement("a");l.download=s+"."+c,l.href=r,l.click()}function g(r){const c=document.createElement("img");return c.src=r,c}function f(r){return r=r.toLowerCase().replace(/jpg/i,"jpeg"),"image/"+r.match(/png|jpeg|bmp|gif/)?.[0]}function d(r){if(!window.btoa)throw"btoa undefined";let c="";if(typeof r=="string")c=r;else for(let s=0;s<r.length;s++)c+=String.fromCharCode(r[s]);return btoa(c)}function L(r){const c=e=="2d"?void 0:{preserveDrawingBuffer:!0};return r.getContext(e,c)}function y(r){const c=r.width,s=r.height;return L(r).getImageData(0,0,c,s)}function w(r,c){return"data:"+c+";base64,"+r}const b=function(r){const c=r.width,s=r.height,l=c*s*3,m=l+54,p=[66,77,m&255,m>>8&255,m>>16&255,m>>24&255,0,0,0,0,54,0,0,0],E=[40,0,0,0,c&255,c>>8&255,c>>16&255,c>>24&255,s&255,s>>8&255,s>>16&255,s>>24&255,1,0,24,0,0,0,0,0,l&255,l>>8&255,l>>16&255,l>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=(4-c*3%4)%4,O=r.data;let J="";const dt=c<<2;let Y=s;const B=String.fromCharCode;do{const q=dt*(Y-1);let U="";for(let P=0;P<c;P++){const F=P<<2;U+=B(O[q+F+2])+B(O[q+F+1])+B(O[q+F])}for(let P=0;P<D;P++)U+=String.fromCharCode(0);J+=U}while(--Y);return d(p.concat(E))+d(J)},h=function(r,c,s,l,m){const p=l;if(t.canvas&&t.dataURL)if(typeof r=="string"&&(r=document.getElementById(r)),l===void 0&&(l="png"),l=f(l),/bmp/.test(l)){const E=y(o(r,c,s)),D=b(E);u(w(D,n),p,m)}else{const E=a(r,l,c,s);u(E.replace(l,n),p,m)}},C=function(r,c,s,l){if(t.canvas&&t.dataURL)if(typeof r=="string"&&(r=document.getElementById(r)),l===void 0&&(l="png"),l=f(l),/bmp/.test(l)){const m=y(o(r,c,s)),p=b(m);return g(w(p,"image/bmp"))}else{const m=a(r,l,c,s);return g(m)}};return{saveAsImage:h,saveAsPNG:function(r,c,s,l){return h(r,c,s,"png",l)},saveAsJPEG:function(r,c,s,l){return h(r,c,s,"jpeg",l)},saveAsGIF:function(r,c,s,l){return h(r,c,s,"gif",l)},saveAsBMP:function(r,c,s,l){return h(r,c,s,"bmp",l)},convertToImage:C,convertToPNG:function(r,c,s){return C(r,c,s,"png")},convertToJPEG:function(r,c,s){return C(r,c,s,"jpeg")},convertToGIF:function(r,c,s){return C(r,c,s,"gif")},convertToBMP:function(r,c,s){return C(r,c,s,"bmp")}}};function rt(){var e=null;if(window.ActiveXObject)for(var t=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],n=0;n<t.length;n++)try{e=new window.ActiveXObject(t[n]);break}catch{continue}else e=new XMLHttpRequest;return e}function ct(e){if(e.action){if(e.method.toLowerCase()==="post")return{url:e.action,data:new FormData(e)};for(var t="",n=0;n<e.elements.length;n++){var o=e.elements[n];if(o.hasAttribute("name")){var a=o.nodeName.toUpperCase()==="INPUT"?o.getAttribute("type").toUpperCase():"TEXT";if(a==="FILE")for(var u=0;u<o.files.length;t+="&"+escape(o.name)+"="+escape(o.files[u++].name));else(a!=="RADIO"&&a!=="CHECKBOX"||o.checked)&&(t+="&"+escape(o.name)+"="+escape(o.value))}}return{url:e.action.replace(/(?:\?.*)?$/,t.replace(/^&/,"?")),data:null}}}function st(e,t){return new Promise((n,o)=>{var a=new XMLHttpRequest,u=function(){o("The request for "+e+" is timed out for "+t+".")},g=function(f){a.readyState===4&&(a.status===200?n(a.response):o(a.statusText))};a.open("GET",e),a.onload=g,a.timeout=t,a.ontimeout=u,a.upload.addEventListener("progress",function(f){if(f.lengthComputable){const d=Math.round(f.loaded*100/f.total);console.log(d+"%")}},!1),a.upload.addEventListener("load",function(f){},!1),a.send(null)})}function lt(e,t,n){return fetch(e,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},t)).then(o=>o.json())}function ut(e,t){var n=new XMLHttpRequest;n.open("HEAD",e),n.filepath=e,n.callback=t,n.onload=function(){var o=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),a=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(o)||a>o)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(o)&&this.callback(a,o))},n.send()}return i.BaseError=I,i.Canvas2Image=at,i.DOMKeyboardKeyCode=v,i.EnvironmentError=H,i.FileSelectCancelError=_,i.IllegalFileError=X,i.WebSocket=k,i.addEventListener=Je,i.checkHttpUrl=Re,i.clearCookies=he,i.copyToClipboard=qe,i.createXMLHttpRequest=rt,i.drawCanvasInWeb=tt,i.fetchUseFetch=lt,i.fetchUseXMLHttpRequest=st,i.file2Image=le,i.fn2ObjectURL=se,i.getBrowserLanguage=Ce,i.getBrowserUserAgent=ye,i.getCookie=ge,i.getCookieObject=me,i.getDocumentElement=T,i.getElementLeftInPage=V,i.getElementPositionInPage=be,i.getElementPositionInPage2=ve,i.getElementPositionInViewport=Ee,i.getElementTopInPage=z,i.getEvent=Ze,i.getFileExtension=j,i.getFileType=ce,i.getFormElementData=ct,i.getImageColor=it,i.getMouseButton=Le,i.getMousePositionInPage=Pe,i.getMousePositionInViewport=ke,i.getPageClient=M,i.getPageScroll=A,i.getPageSize=pe,i.getPageVerticalScrollPercent=Te,i.getRelatedTarget=xe,i.getSearchData=De,i.getSelectedText=Ue,i.getTarget=Ne,i.getUrlParams=Oe,i.getViewportSize=S,i.handleDragAndDropFiles=Q,i.handleInputFiles=K,i.ifWebFileHasChanged=ut,i.isAndroid=G,i.isAudio=te,i.isBrowserSupportFileAPI=et,i.isElementInViewport=we,i.isExcelDocument=oe,i.isFocus=Fe,i.isIOS=W,i.isImage=x,i.isJsonDocument=ae,i.isMobile=Ie,i.isPowerPointDocument=ie,i.isTabInView=je,i.isURLRelative=Me,i.isVideo=ee,i.isWordDocument=ne,i.isXmlDocument=re,i.lazyloadImages=ot,i.loadImageAsync=nt,i.loadScript=ze,i.microTask=de,i.navigateBack=$e,i.navigateBack2=Ve,i.onDocumentReady=ue,i.patchDOM=$,i.preventDefault=Qe,i.readeFile=N,i.removeEventListener=Ye,i.saferHTML=We,i.scrollToTop=Xe,i.selectFile=Z,i.setCookie=fe,i.setRem=Se,i.setTheme=Be,i.siblings=He,i.stopPropagation=Ke,i.templateCompile=Ge,i.urlsafe_b64decode=Ae,i.urlsafe_b64encode=_e,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),i}({});
|
|
11
|
+
})`}function Jr(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function Qr(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent?e.detachEvent("on"+n,t):e["on"+n]=null}function Wr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ea(e){e.preventDefault?e.preventDefault:e.returnValue=!1}function ta(e){return e.target||e.srcElement}function na(e){return e.relatedTarget?e.relatedTarget:e.toElement?e.toElement:e.fromElement?e.fromElement:null}function ia(){return!!(window.File&&window.FileReader&&window.FileList&&window.Blob)}const ra=e=>new Promise(n=>{const t=Array.from(e.querySelectorAll("link[rel=stylesheet]"));let i=e.styleSheets.length??0;const r=()=>i>=t.length?(n(),!0):!1;r()||t.forEach(a=>{a.onload=()=>{i+=1,r()}})}),ve={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}},Bounce:{In:function(e){return 1-ve.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?ve.Bounce.In(e*2)*.5:ve.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return n**e},Out:function(n){return 1-(1-n)**e},InOut:function(n){return n<.5?(n*2)**e/2:(1-(2-n*2)**e)/2+.5}}}};let Fe;typeof self>"u"&&typeof process<"u"&&process.hrtime?Fe=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Fe=self.performance.now.bind(self.performance):Date.now!==void 0?Fe=Date.now:Fe=function(){return new Date().getTime()};const ye=Fe;class hn{_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=ye(),t=!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 a=this._tweens[i[r]],o=!t;a&&a.update(n,o)===!1&&!t&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const le={Linear:function(e,n){const t=e.length-1,i=t*n,r=Math.floor(i),a=le.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[t],e[t-1],t-i):a(e[r],e[r+1>t?t:r+1],i-r)},Bezier:function(e,n){let t=0;const i=e.length-1,r=Math.pow,a=le.Utils.Bernstein;for(let o=0;o<=i;o++)t+=r(1-n,i-o)*r(n,o)*e[o]*a(i,o);return t},CatmullRom:function(e,n){const t=e.length-1;let i=t*n,r=Math.floor(i);const a=le.Utils.CatmullRom;return e[0]===e[t]?(n<0&&(r=Math.floor(i=t*(1+n))),a(e[(r-1+t)%t],e[r],e[(r+1)%t],e[(r+2)%t],i-r)):n<0?e[0]-(a(e[0],e[0],e[1],e[1],-i)-e[0]):n>1?e[t]-(a(e[t],e[t],e[t-1],e[t-1],i-t)-e[t]):a(e[r?r-1:0],e[r],e[t<r+1?t:r+1],e[t<r+2?t:r+2],i-r)},Utils:{Linear:function(e,n,t){return(n-e)*t+e},Bernstein:function(e,n){const t=le.Utils.Factorial;return t(e)/t(n)/t(e-n)},Factorial:function(){const e=[1];return function(n){let t=1;if(e[n])return e[n];for(let i=n;i>1;i--)t*=i;return e[n]=t,t}}(),CatmullRom:function(e,n,t,i,r){const a=(t-e)*.5,o=(i-n)*.5,s=r*r,c=r*s;return(2*n-2*t+a+o)*c+(-3*n+3*t-2*a-o)*s+a*r+n}}};class Me{static _nextId=0;static nextId(){return Me._nextId++}}const N=new hn;class aa{constructor(n,t=N){this._object=n,this._group=t}_id=Me.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_duration=1e3;_isPaused=!1;_pauseStart=0;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_easingFunction=ve.Linear.None;_interpolationFunction=le.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,t){return this._valuesEnd=Object.create(n),t!==void 0&&(this._duration=t),this}duration(n=1e3){return this._duration=n,this}start(n=ye()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}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,t,i,r){for(const a in i){const o=n[a],s=Array.isArray(o),c=s?"array":typeof o,l=!s&&Array.isArray(i[a]);if(!(c==="undefined"||c==="function")){if(l){let h=i[a];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,o)),i[a]=[o].concat(h)}if((c==="object"||s)&&o&&!l){t[a]=s?[]:{};for(const h in o)t[a][h]=o[h];r[a]=s?[]:{},this._setupProperties(o,t[a],i[a],r[a])}else typeof t[a]>"u"&&(t[a]=o),s||(t[a]*=1),l?r[a]=i[a].slice().reverse():r[a]=t[a]||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=ye()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this._group&&this._group.remove(this),this)}resume(n=ye()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let n=0,t=this._chainedTweens.length;n<t;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=ve.Linear.None){return this._easingFunction=n,this}interpolation(n=le.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=ye(),t=!0){if(this._isPaused)return!0;let i,r;const a=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(n>a)return!1;t&&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),r=(n-this._startTime)/this._duration,r=this._duration===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=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 s=0,c=this._chainedTweens.length;s<c;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0}_updateProperties(n,t,i,r){for(const a in i){if(t[a]===void 0)continue;const o=t[a]||0;let s=i[a];const c=Array.isArray(n[a]),l=Array.isArray(s);!c&&l?n[a]=this._interpolationFunction(s,r):typeof s=="object"&&s?this._updateProperties(n[a],o,s,r):(s=this._handleRelativeValue(o,s),typeof s=="number"&&(n[a]=o+(s-o)*r))}}_handleRelativeValue(n,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?n+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(n){const t=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=t}}const oa=Me.nextId,la=N.getAll.bind(N),sa=N.removeAll.bind(N),ca=N.add.bind(N),fa=N.remove.bind(N),ha=N.update.bind(N),dn={Easing:ve,Group:hn,Interpolation:le,now:ye,Sequence:Me,nextId:oa,Tween:aa,getAll:la,removeAll:sa,add:ca,remove:fa,update:ha};(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(n){const t=new Date().getTime(),i=Math.max(0,16-(t-e)),r=window.setTimeout(function(){n(t+i)},i);return e=t+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();const bt=e=>{function n(t){window.requestAnimationFrame(n),e(t)}window.requestAnimationFrame(n)},da=(e,n)=>{const t=document.getElementById(e),i=t.getContext("2d");bt(r=>{i.clearRect(0,0,t.width,t.height),n(i,r)})},ua=()=>{bt(e=>dn.update(e))};function _a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var un={exports:{}};(function(e){var n={};e.exports=n,n.parse=function(t,i){for(var r=n.bin.readUshort,a=n.bin.readUint,l=0,o={},s=new Uint8Array(t),c=s.length-4;a(s,c)!=101010256;)c--;var l=c;l+=4,l+=4;var h=r(s,l);l+=2,r(s,l),l+=2;var u=a(s,l);l+=4;var d=a(s,l);l+=4,l=d;for(var f=0;f<h;f++){a(s,l),l+=4,l+=4,l+=4,l+=4,a(s,l),l+=4;var u=a(s,l);l+=4;var _=a(s,l);l+=4;var w=r(s,l),g=r(s,l+2),p=r(s,l+4);l+=6,l+=8;var m=a(s,l);l+=4,l+=w+g+p,n._readLocal(s,m,o,u,_,i)}return o},n._readLocal=function(t,i,r,a,o,s){var c=n.bin.readUshort,l=n.bin.readUint;l(t,i),i+=4,c(t,i),i+=2,c(t,i),i+=2;var h=c(t,i);i+=2,l(t,i),i+=4,l(t,i),i+=4,i+=8;var u=c(t,i);i+=2;var d=c(t,i);i+=2;var f=n.bin.readUTF8(t,i,u);if(i+=u,i+=d,s){r[f]={size:o,csize:a};return}var _=new Uint8Array(t.buffer,i);if(h==0)r[f]=new Uint8Array(_.buffer.slice(i,i+a));else if(h==8){var w=new Uint8Array(o);n.inflateRaw(_,w),r[f]=w}else throw"unknown compression method: "+h},n.inflateRaw=function(t,i){return n.F.inflate(t,i)},n.inflate=function(t,i){return t[0],t[1],n.inflateRaw(new Uint8Array(t.buffer,t.byteOffset+2,t.length-6),i)},n.deflate=function(t,i){i==null&&(i={level:6});var r=0,a=new Uint8Array(50+Math.floor(t.length*1.1));a[r]=120,a[r+1]=156,r+=2,r=n.F.deflateRaw(t,a,r,i.level);var o=n.adler(t,0,t.length);return a[r+0]=o>>>24&255,a[r+1]=o>>>16&255,a[r+2]=o>>>8&255,a[r+3]=o>>>0&255,new Uint8Array(a.buffer,0,r+4)},n.deflateRaw=function(t,i){i==null&&(i={level:6});var r=new Uint8Array(50+Math.floor(t.length*1.1)),a=n.F.deflateRaw(t,r,a,i.level);return new Uint8Array(r.buffer,0,a)},n.encode=function(t,i){i==null&&(i=!1);var r=0,a=n.bin.writeUint,o=n.bin.writeUshort,s={};for(var c in t){var l=!n._noNeed(c)&&!i,h=t[c],u=n.crc.crc(h,0,h.length);s[c]={cpr:l,usize:h.length,crc:u,file:l?n.deflateRaw(h):h}}for(var c in s)r+=s[c].file.length+30+46+2*n.bin.sizeUTF8(c);r+=22;var d=new Uint8Array(r),f=0,_=[];for(var c in s){var w=s[c];_.push(f),f=n._writeHeader(d,f,c,w,0)}var g=0,p=f;for(var c in s){var w=s[c];_.push(f),f=n._writeHeader(d,f,c,w,1,_[g++])}var m=f-p;return a(d,f,101010256),f+=4,f+=4,o(d,f,g),f+=2,o(d,f,g),f+=2,a(d,f,m),f+=4,a(d,f,p),f+=4,f+=2,d.buffer},n._noNeed=function(t){var i=t.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},n._writeHeader=function(t,i,r,a,o,s){var c=n.bin.writeUint,l=n.bin.writeUshort,h=a.file;c(t,i,o==0?67324752:33639248),i+=4,o==1&&(i+=2),l(t,i,20),i+=2,l(t,i,0),i+=2,l(t,i,a.cpr?8:0),i+=2,c(t,i,0),i+=4,c(t,i,a.crc),i+=4,c(t,i,h.length),i+=4,c(t,i,a.usize),i+=4,l(t,i,n.bin.sizeUTF8(r)),i+=2,l(t,i,0),i+=2,o==1&&(i+=2,i+=2,i+=6,c(t,i,s),i+=4);var u=n.bin.writeUTF8(t,i,r);return i+=u,o==0&&(t.set(h,i),i+=h.length),i},n.crc={table:function(){for(var t=new Uint32Array(256),i=0;i<256;i++){for(var r=i,a=0;a<8;a++)r&1?r=3988292384^r>>>1:r=r>>>1;t[i]=r}return t}(),update:function(t,i,r,a){for(var o=0;o<a;o++)t=n.crc.table[(t^i[r+o])&255]^t>>>8;return t},crc:function(t,i,r){return n.crc.update(4294967295,t,i,r)^4294967295}},n.adler=function(t,i,r){for(var a=1,o=0,s=i,c=i+r;s<c;){for(var l=Math.min(s+5552,c);s<l;)a+=t[s++],o+=a;a=a%65521,o=o%65521}return o<<16|a},n.bin={readUshort:function(t,i){return t[i]|t[i+1]<<8},writeUshort:function(t,i,r){t[i]=r&255,t[i+1]=r>>8&255},readUint:function(t,i){return t[i+3]*16777216+(t[i+2]<<16|t[i+1]<<8|t[i])},writeUint:function(t,i,r){t[i]=r&255,t[i+1]=r>>8&255,t[i+2]=r>>16&255,t[i+3]=r>>24&255},readASCII:function(t,i,r){for(var a="",o=0;o<r;o++)a+=String.fromCharCode(t[i+o]);return a},writeASCII:function(t,i,r){for(var a=0;a<r.length;a++)t[i+a]=r.charCodeAt(a)},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,i,r){for(var a="",o,s=0;s<r;s++)a+="%"+n.bin.pad(t[i+s].toString(16));try{o=decodeURIComponent(a)}catch{return n.bin.readASCII(t,i,r)}return o},writeUTF8:function(t,i,r){for(var a=r.length,o=0,s=0;s<a;s++){var c=r.charCodeAt(s);if(!(c&4294967168))t[i+o]=c,o++;else if(!(c&4294965248))t[i+o]=192|c>>6,t[i+o+1]=128|c>>0&63,o+=2;else if(!(c&4294901760))t[i+o]=224|c>>12,t[i+o+1]=128|c>>6&63,t[i+o+2]=128|c>>0&63,o+=3;else if(!(c&4292870144))t[i+o]=240|c>>18,t[i+o+1]=128|c>>12&63,t[i+o+2]=128|c>>6&63,t[i+o+3]=128|c>>0&63,o+=4;else throw"e"}return o},sizeUTF8:function(t){for(var i=t.length,r=0,a=0;a<i;a++){var o=t.charCodeAt(a);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}},n.F={},n.F.deflateRaw=function(t,i,r,a){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]],s=o[a],c=n.F.U,l=n.F._goodIndex;n.F._hash;var h=n.F._putsE,u=0,d=r<<3,f=0,_=t.length;if(a==0){for(;u<_;){var w=Math.min(65535,_-u);h(i,d,u+w==_?1:0),d=n.F._copyExact(t,u,w,i,d+8),u+=w}return d>>>3}var g=c.lits,p=c.strt,m=c.prev,y=0,b=0,I=0,x=0,E=0,T=0;for(_>2&&(T=n.F._hash(t,0),p[T]=0),u=0;u<_;u++){if(E=T,u+1<_-2){T=n.F._hash(t,u+1);var k=u+1&32767;m[k]=p[T],p[T]=k}if(f<=u){(y>14e3||b>26697)&&_-u>100&&(f<u&&(g[y]=u-f,y+=2,f=u),d=n.F._writeBlock(u==_-1||f==_?1:0,g,y,x,t,I,u-I,i,d),y=b=x=0,I=u);var D=0;u<_-2&&(D=n.F._bestMatch(t,u,m,E,Math.min(s[2],_-u),s[3]));var w=D>>>16,S=D&65535;if(D!=0){var w=D>>>16,S=D&65535,C=l(w,c.of0);c.lhst[257+C]++;var M=l(S,c.df0);c.dhst[M]++,x+=c.exb[C]+c.dxb[M],g[y]=w<<23|u-f,g[y+1]=S<<16|C<<8|M,y+=2,f=u+w}else c.lhst[t[u]]++;b++}}for((I!=u||t.length==0)&&(f<u&&(g[y]=u-f,y+=2,f=u),d=n.F._writeBlock(1,g,y,x,t,I,u-I,i,d),y=0,b=0,y=b=x=0,I=u);d&7;)d++;return d>>>3},n.F._bestMatch=function(t,i,r,a,o,s){var c=i&32767,l=r[c],h=c-l+32768&32767;if(l==c||a!=n.F._hash(t,i-h))return 0;for(var u=0,d=0,f=Math.min(32767,i);h<=f&&--s!=0&&l!=c;){if(u==0||t[i+u]==t[i+u-h]){var _=n.F._howLong(t,i,h);if(_>u){if(u=_,d=h,u>=o)break;h+2<_&&(_=h+2);for(var w=0,g=0;g<_-2;g++){var p=i-h+g+32768&32767,m=r[p],y=p-m+32768&32767;y>w&&(w=y,l=p)}}}c=l,l=r[c],h+=c-l+32768&32767}return u<<16|d},n.F._howLong=function(t,i,r){if(t[i]!=t[i-r]||t[i+1]!=t[i+1-r]||t[i+2]!=t[i+2-r])return 0;var a=i,o=Math.min(t.length,i+258);for(i+=3;i<o&&t[i]==t[i-r];)i++;return i-a},n.F._hash=function(t,i){return(t[i]<<8|t[i+1])+(t[i+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(t,i,r,a,o,s,c,l,h){var u=n.F.U,d=n.F._putsF,f=n.F._putsE,_,w,g,p,m,y,b,I,x;u.lhst[256]++,_=n.F.getTrees(),w=_[0],g=_[1],p=_[2],m=_[3],y=_[4],b=_[5],I=_[6],x=_[7];var E=(h+3&7?8-(h+3&7):0)+32+(c<<3),T=a+n.F.contSize(u.fltree,u.lhst)+n.F.contSize(u.fdtree,u.dhst),k=a+n.F.contSize(u.ltree,u.lhst)+n.F.contSize(u.dtree,u.dhst);k+=14+3*b+n.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var D=0;D<286;D++)u.lhst[D]=0;for(var D=0;D<30;D++)u.dhst[D]=0;for(var D=0;D<19;D++)u.ihst[D]=0;var S=E<T&&E<k?0:T<k?1:2;if(d(l,h,t),d(l,h+1,S),h+=3,S==0){for(;h&7;)h++;h=n.F._copyExact(o,s,c,l,h)}else{var C,M;if(S==1&&(C=u.fltree,M=u.fdtree),S==2){n.F.makeCodes(u.ltree,w),n.F.revCodes(u.ltree,w),n.F.makeCodes(u.dtree,g),n.F.revCodes(u.dtree,g),n.F.makeCodes(u.itree,p),n.F.revCodes(u.itree,p),C=u.ltree,M=u.dtree,f(l,h,m-257),h+=5,f(l,h,y-1),h+=5,f(l,h,b-4),h+=4;for(var L=0;L<b;L++)f(l,h+L*3,u.itree[(u.ordr[L]<<1)+1]);h+=3*b,h=n.F._codeTiny(I,u.itree,l,h),h=n.F._codeTiny(x,u.itree,l,h)}for(var U=s,we=0;we<r;we+=2){for(var W=i[we],pe=W>>>23,We=U+(W&(1<<23)-1);U<We;)h=n.F._writeLit(o[U++],C,l,h);if(pe!=0){var Ce=i[we+1],tn=Ce>>16,me=Ce>>8&255,ae=Ce&255;h=n.F._writeLit(257+me,C,l,h),f(l,h,pe-u.of0[me]),h+=u.exb[me],h=n.F._writeLit(ae,M,l,h),d(l,h,tn-u.df0[ae]),h+=u.dxb[ae],U+=pe}}h=n.F._writeLit(256,C,l,h)}return h},n.F._copyExact=function(t,i,r,a,o){var s=o>>>3;return a[s]=r,a[s+1]=r>>>8,a[s+2]=255-a[s],a[s+3]=255-a[s+1],s+=4,a.set(new Uint8Array(t.buffer,i,r),s),o+(r+4<<3)},n.F.getTrees=function(){for(var t=n.F.U,i=n.F._hufTree(t.lhst,t.ltree,15),r=n.F._hufTree(t.dhst,t.dtree,15),a=[],o=n.F._lenCodes(t.ltree,a),s=[],c=n.F._lenCodes(t.dtree,s),l=0;l<a.length;l+=2)t.ihst[a[l]]++;for(var l=0;l<s.length;l+=2)t.ihst[s[l]]++;for(var h=n.F._hufTree(t.ihst,t.itree,7),u=19;u>4&&t.itree[(t.ordr[u-1]<<1)+1]==0;)u--;return[i,r,h,o,c,u,a,s]},n.F.getSecond=function(t){for(var i=[],r=0;r<t.length;r+=2)i.push(t[r+1]);return i},n.F.nonZero=function(t){for(var i="",r=0;r<t.length;r+=2)t[r+1]!=0&&(i+=(r>>1)+",");return i},n.F.contSize=function(t,i){for(var r=0,a=0;a<i.length;a++)r+=i[a]*t[(a<<1)+1];return r},n.F._codeTiny=function(t,i,r,a){for(var o=0;o<t.length;o+=2){var s=t[o],c=t[o+1];a=n.F._writeLit(s,i,r,a);var l=s==16?2:s==17?3:7;s>15&&(n.F._putsE(r,a,c,l),a+=l)}return a},n.F._lenCodes=function(t,i){for(var r=t.length;r!=2&&t[r-1]==0;)r-=2;for(var a=0;a<r;a+=2){var o=t[a+1],s=a+3<r?t[a+3]:-1,c=a+5<r?t[a+5]:-1,l=a==0?-1:t[a-1];if(o==0&&s==o&&c==o){for(var h=a+5;h+2<r&&t[h+2]==o;)h+=2;var u=Math.min(h+1-a>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),a+=u*2-2}else if(o==l&&s==o&&c==o){for(var h=a+5;h+2<r&&t[h+2]==o;)h+=2;var u=Math.min(h+1-a>>>1,6);i.push(16,u-3),a+=u*2-2}else i.push(o,0)}return r>>>1},n.F._hufTree=function(t,i,r){var a=[],o=t.length,s=i.length,c=0;for(c=0;c<s;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<o;c++)t[c]!=0&&a.push({lit:c,f:t[c]});var l=a.length,h=a.slice(0);if(l==0)return 0;if(l==1){var u=a[0].lit,h=u==0?1:0;return i[(u<<1)+1]=1,i[(h<<1)+1]=1,1}a.sort(function(m,y){return m.f-y.f});var d=a[0],f=a[1],_=0,w=1,g=2;for(a[0]={lit:-1,f:d.f+f.f,l:d,r:f,d:0};w!=l-1;)_!=w&&(g==l||a[_].f<a[g].f)?d=a[_++]:d=a[g++],_!=w&&(g==l||a[_].f<a[g].f)?f=a[_++]:f=a[g++],a[w++]={lit:-1,f:d.f+f.f,l:d,r:f};var p=n.F.setDepth(a[w-1],0);for(p>r&&(n.F.restrictDepth(h,r,p),p=r),c=0;c<l;c++)i[(h[c].lit<<1)+1]=h[c].d;return p},n.F.setDepth=function(t,i){return t.lit!=-1?(t.d=i,i):Math.max(n.F.setDepth(t.l,i+1),n.F.setDepth(t.r,i+1))},n.F.restrictDepth=function(t,i,r){var a=0,o=1<<r-i,s=0;for(t.sort(function(l,h){return h.d==l.d?l.f-h.f:h.d-l.d}),a=0;a<t.length&&t[a].d>i;a++){var c=t[a].d;t[a].d=i,s+=o-(1<<r-c)}for(s=s>>>r-i;s>0;){var c=t[a].d;c<i?(t[a].d++,s-=1<<i-c-1):a++}for(;a>=0;a--)t[a].d==i&&s<0&&(t[a].d--,s++);s!=0&&console.log("debt left")},n.F._goodIndex=function(t,i){var r=0;return i[r|16]<=t&&(r|=16),i[r|8]<=t&&(r|=8),i[r|4]<=t&&(r|=4),i[r|2]<=t&&(r|=2),i[r|1]<=t&&(r|=1),r},n.F._writeLit=function(t,i,r,a){return n.F._putsF(r,a,i[t<<1]),a+i[(t<<1)+1]},n.F.inflate=function(t,i){var r=Uint8Array;if(t[0]==3&&t[1]==0)return i||new r(0);var a=n.F,o=a._bitsF,s=a._bitsE,c=a._decodeTiny,l=a.makeCodes,h=a.codes2map,u=a._get17,d=a.U,f=i==null;f&&(i=new r(t.length>>>2<<3));for(var _=0,w=0,g=0,p=0,m=0,y=0,b=0,I=0,x=0,E,T;_==0;){if(_=o(t,x,1),w=o(t,x+1,2),x+=3,w==0){x&7&&(x+=8-(x&7));var k=(x>>>3)+4,D=t[k-4]|t[k-3]<<8;f&&(i=n.F._check(i,I+D)),i.set(new r(t.buffer,t.byteOffset+k,D),I),x=k+D<<3,I+=D;continue}if(f&&(i=n.F._check(i,I+131072)),w==1&&(E=d.flmap,T=d.fdmap,y=511,b=31),w==2){g=s(t,x,5)+257,p=s(t,x+5,5)+1,m=s(t,x+10,4)+4,x+=14;for(var S=0;S<38;S+=2)d.itree[S]=0,d.itree[S+1]=0;for(var C=1,S=0;S<m;S++){var M=s(t,x+S*3,3);d.itree[(d.ordr[S]<<1)+1]=M,M>C&&(C=M)}x+=3*m,l(d.itree,C),h(d.itree,C,d.imap),E=d.lmap,T=d.dmap,x=c(d.imap,(1<<C)-1,g+p,t,x,d.ttree);var L=a._copyOut(d.ttree,0,g,d.ltree);y=(1<<L)-1;var U=a._copyOut(d.ttree,g,p,d.dtree);b=(1<<U)-1,l(d.ltree,L),h(d.ltree,L,E),l(d.dtree,U),h(d.dtree,U,T)}for(;;){var we=E[u(t,x)&y];x+=we&15;var W=we>>>4;if(!(W>>>8))i[I++]=W;else{if(W==256)break;var pe=I+W-254;if(W>264){var We=d.ldef[W-257];pe=I+(We>>>3)+s(t,x,We&7),x+=We&7}var Ce=T[u(t,x)&b];x+=Ce&15;var tn=Ce>>>4,me=d.ddef[tn],ae=(me>>>4)+o(t,x,me&15);for(x+=me&15,f&&(i=n.F._check(i,I+131072));I<pe;)i[I]=i[I++-ae],i[I]=i[I++-ae],i[I]=i[I++-ae],i[I]=i[I++-ae];I=pe}}}return i.length==I?i:i.slice(0,I)},n.F._check=function(t,i){var r=t.length;if(i<=r)return t;var a=new Uint8Array(Math.max(r<<1,i));return a.set(t,0),a},n.F._decodeTiny=function(t,i,r,a,o,s){for(var c=n.F._bitsE,l=n.F._get17,h=0;h<r;){var u=t[l(a,o)&i];o+=u&15;var d=u>>>4;if(d<=15)s[h]=d,h++;else{var f=0,_=0;d==16?(_=3+c(a,o,2),o+=2,f=s[h-1]):d==17?(_=3+c(a,o,3),o+=3):d==18&&(_=11+c(a,o,7),o+=7);for(var w=h+_;h<w;)s[h]=f,h++}}return o},n.F._copyOut=function(t,i,r,a){for(var o=0,s=0,c=a.length>>>1;s<r;){var l=t[s+i];a[s<<1]=0,a[(s<<1)+1]=l,l>o&&(o=l),s++}for(;s<c;)a[s<<1]=0,a[(s<<1)+1]=0,s++;return o},n.F.makeCodes=function(t,i){for(var r=n.F.U,a=t.length,o,s,c,l,h,u=r.bl_count,l=0;l<=i;l++)u[l]=0;for(l=1;l<a;l+=2)u[t[l]]++;var d=r.next_code;for(o=0,u[0]=0,s=1;s<=i;s++)o=o+u[s-1]<<1,d[s]=o;for(c=0;c<a;c+=2)h=t[c+1],h!=0&&(t[c]=d[h],d[h]++)},n.F.codes2map=function(t,i,r){for(var a=t.length,o=n.F.U,s=o.rev15,c=0;c<a;c+=2)if(t[c+1]!=0)for(var l=c>>1,h=t[c+1],u=l<<4|h,d=i-h,f=t[c]<<d,_=f+(1<<d);f!=_;){var w=s[f]>>>15-i;r[w]=u,f++}},n.F.revCodes=function(t,i){for(var r=n.F.U.rev15,a=15-i,o=0;o<t.length;o+=2){var s=t[o]<<i-t[o+1];t[o]=r[s]>>>a}},n.F._putsE=function(t,i,r){r=r<<(i&7);var a=i>>>3;t[a]|=r,t[a+1]|=r>>>8},n.F._putsF=function(t,i,r){r=r<<(i&7);var a=i>>>3;t[a]|=r,t[a+1]|=r>>>8,t[a+2]|=r>>>16},n.F._bitsE=function(t,i,r){return(t[i>>>3]|t[(i>>>3)+1]<<8)>>>(i&7)&(1<<r)-1},n.F._bitsF=function(t,i,r){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16)>>>(i&7)&(1<<r)-1},n.F._get17=function(t,i){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16)>>>(i&7)},n.F._get25=function(t,i){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16|t[(i>>>3)+3]<<24)>>>(i&7)},n.F.U=function(){var t=Uint16Array,i=Uint32Array;return{next_code:new t(16),bl_count:new t(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 t(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 t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new t(65536),prev:new t(32768)}}(),function(){for(var t=n.F.U,i=32768,r=0;r<i;r++){var a=r;a=(a&2863311530)>>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,t.rev15[r]=(a>>>16|a<<16)>>>17}function o(s,c,l){for(;c--!=0;)s.push(0,l)}for(var r=0;r<32;r++)t.ldef[r]=t.of0[r]<<3|t.exb[r],t.ddef[r]=t.df0[r]<<4|t.dxb[r];o(t.fltree,144,8),o(t.fltree,112,9),o(t.fltree,24,7),o(t.fltree,8,8),n.F.makeCodes(t.fltree,9),n.F.codes2map(t.fltree,9,t.flmap),n.F.revCodes(t.fltree,9),o(t.fdtree,32,5),n.F.makeCodes(t.fdtree,5),n.F.codes2map(t.fdtree,5,t.fdmap),n.F.revCodes(t.fdtree,5),o(t.itree,19,0),o(t.ltree,286,0),o(t.dtree,30,0),o(t.ttree,320,0)}()})(un);var ga=un.exports;const _n=_a(ga);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const wa=4,gn=0,wn=1,pa=2;function xe(e){let n=e.length;for(;--n>=0;)e[n]=0}const ma=0,pn=1,ba=2,va=3,ya=258,vt=29,Le=256,ze=Le+1+vt,Ie=30,yt=19,mn=2*ze+1,se=15,xt=16,xa=7,It=256,bn=16,vn=17,yn=18,kt=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]),nt=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]),Ia=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),xn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ka=512,K=new Array((ze+2)*2);xe(K);const Pe=new Array(Ie*2);xe(Pe);const Oe=new Array(ka);xe(Oe);const Be=new Array(ya-va+1);xe(Be);const Et=new Array(vt);xe(Et);const it=new Array(Ie);xe(it);function At(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let In,kn,En;function Tt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const An=e=>e<256?Oe[e]:Oe[256+(e>>>7)],He=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},H=(e,n,t)=>{e.bi_valid>xt-t?(e.bi_buf|=n<<e.bi_valid&65535,He(e,e.bi_buf),e.bi_buf=n>>xt-e.bi_valid,e.bi_valid+=t-xt):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},G=(e,n,t)=>{H(e,t[n*2],t[n*2+1])},Tn=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},Ea=e=>{e.bi_valid===16?(He(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Aa=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,o=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,h,u,d,f,_,w=0;for(d=0;d<=se;d++)e.bl_count[d]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<mn;l++)h=e.heap[l],d=t[t[h*2+1]*2+1]+1,d>c&&(d=c,w++),t[h*2+1]=d,!(h>i)&&(e.bl_count[d]++,f=0,h>=s&&(f=o[h-s]),_=t[h*2],e.opt_len+=_*(d+f),a&&(e.static_len+=_*(r[h*2+1]+f)));if(w!==0){do{for(d=c-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[c]--,w-=2}while(w>0);for(d=c;d!==0;d--)for(h=e.bl_count[d];h!==0;)u=e.heap[--l],!(u>i)&&(t[u*2+1]!==d&&(e.opt_len+=(d-t[u*2+1])*t[u*2],t[u*2+1]=d),h--)}},Dn=(e,n,t)=>{const i=new Array(se+1);let r=0,a,o;for(a=1;a<=se;a++)r=r+t[a-1]<<1,i[a]=r;for(o=0;o<=n;o++){let s=e[o*2+1];s!==0&&(e[o*2]=Tn(i[s]++,s))}},Ta=()=>{let e,n,t,i,r;const a=new Array(se+1);for(t=0,i=0;i<vt-1;i++)for(Et[i]=t,e=0;e<1<<kt[i];e++)Be[t++]=i;for(Be[t-1]=i,r=0,i=0;i<16;i++)for(it[i]=r,e=0;e<1<<nt[i];e++)Oe[r++]=i;for(r>>=7;i<Ie;i++)for(it[i]=r<<7,e=0;e<1<<nt[i]-7;e++)Oe[256+r++]=i;for(n=0;n<=se;n++)a[n]=0;for(e=0;e<=143;)K[e*2+1]=8,e++,a[8]++;for(;e<=255;)K[e*2+1]=9,e++,a[9]++;for(;e<=279;)K[e*2+1]=7,e++,a[7]++;for(;e<=287;)K[e*2+1]=8,e++,a[8]++;for(Dn(K,ze+1,a),e=0;e<Ie;e++)Pe[e*2+1]=5,Pe[e*2]=Tn(e,5);In=new At(K,kt,Le+1,ze,se),kn=new At(Pe,nt,0,Ie,se),En=new At(new Array(0),Ia,0,yt,xa)},Sn=e=>{let n;for(n=0;n<ze;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ie;n++)e.dyn_dtree[n*2]=0;for(n=0;n<yt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[It*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Cn=e=>{e.bi_valid>8?He(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Un=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},Dt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&Un(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!Un(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},Rn=(e,n,t)=>{let i,r,a=0,o,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?G(e,r,n):(o=Be[r],G(e,o+Le+1,n),s=kt[o],s!==0&&(r-=Et[o],H(e,r,s)),i--,o=An(i),G(e,o,t),s=nt[o],s!==0&&(i-=it[o],H(e,i,s)));while(a<e.sym_next);G(e,It,n)},St=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let o,s,c=-1,l;for(e.heap_len=0,e.heap_max=mn,o=0;o<a;o++)t[o*2]!==0?(e.heap[++e.heap_len]=c=o,e.depth[o]=0):t[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,t[l*2]=1,e.depth[l]=0,e.opt_len--,r&&(e.static_len-=i[l*2+1]);for(n.max_code=c,o=e.heap_len>>1;o>=1;o--)Dt(e,t,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Dt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,t[l*2]=t[o*2]+t[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,t[o*2+1]=t[s*2+1]=l,e.heap[1]=l++,Dt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Aa(e,n),Dn(t,c,e.bl_count)},Fn=(e,n,t)=>{let i,r=-1,a,o=n[0*2+1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=o,o=n[(i+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[bn*2]++):s<=10?e.bl_tree[vn*2]++:e.bl_tree[yn*2]++,s=0,r=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},Mn=(e,n,t)=>{let i,r=-1,a,o=n[0*2+1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),i=0;i<=t;i++)if(a=o,o=n[(i+1)*2+1],!(++s<c&&a===o)){if(s<l)do G(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(G(e,a,e.bl_tree),s--),G(e,bn,e.bl_tree),H(e,s-3,2)):s<=10?(G(e,vn,e.bl_tree),H(e,s-3,3)):(G(e,yn,e.bl_tree),H(e,s-11,7));s=0,r=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},Da=e=>{let n;for(Fn(e,e.dyn_ltree,e.l_desc.max_code),Fn(e,e.dyn_dtree,e.d_desc.max_code),St(e,e.bl_desc),n=yt-1;n>=3&&e.bl_tree[xn[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},Sa=(e,n,t,i)=>{let r;for(H(e,n-257,5),H(e,t-1,5),H(e,i-4,4),r=0;r<i;r++)H(e,e.bl_tree[xn[r]*2+1],3);Mn(e,e.dyn_ltree,n-1),Mn(e,e.dyn_dtree,t-1)},Ca=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return gn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return wn;for(t=32;t<Le;t++)if(e.dyn_ltree[t*2]!==0)return wn;return gn};let Ln=!1;const Ua=e=>{Ln||(Ta(),Ln=!0),e.l_desc=new Tt(e.dyn_ltree,In),e.d_desc=new Tt(e.dyn_dtree,kn),e.bl_desc=new Tt(e.bl_tree,En),e.bi_buf=0,e.bi_valid=0,Sn(e)},zn=(e,n,t,i)=>{H(e,(ma<<1)+(i?1:0),3),Cn(e),He(e,t),He(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Ra=e=>{H(e,pn<<1,3),G(e,It,K),Ea(e)},Fa=(e,n,t,i)=>{let r,a,o=0;e.level>0?(e.strm.data_type===pa&&(e.strm.data_type=Ca(e)),St(e,e.l_desc),St(e,e.d_desc),o=Da(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?zn(e,n,t,i):e.strategy===wa||a===r?(H(e,(pn<<1)+(i?1:0),3),Rn(e,K,Pe)):(H(e,(ba<<1)+(i?1:0),3),Sa(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Rn(e,e.dyn_ltree,e.dyn_dtree)),Sn(e),i&&Cn(e)},Ma=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(Be[t]+Le+1)*2]++,e.dyn_dtree[An(n)*2]++),e.sym_next===e.sym_end);var La=Ua,za=zn,Pa=Fa,Oa=Ma,Ba=Ra,Ha={_tr_init:La,_tr_stored_block:za,_tr_flush_block:Pa,_tr_tally:Oa,_tr_align:Ba},Ze=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,o=0;for(;t!==0;){o=t>2e3?2e3:t,t-=o;do r=r+n[i++]|0,a=a+r|0;while(--o);r%=65521,a%=65521}return r|a<<16|0};const Za=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},$a=new Uint32Array(Za());var P=(e,n,t,i)=>{const r=$a,a=i+t;e^=-1;for(let o=i;o<a;o++)e=e>>>8^r[(e^n[o])&255];return e^-1},ce={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"},fe={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:Na,_tr_stored_block:Ct,_tr_flush_block:ja,_tr_tally:ee,_tr_align:qa}=Ha,{Z_NO_FLUSH:te,Z_PARTIAL_FLUSH:Ga,Z_FULL_FLUSH:Xa,Z_FINISH:j,Z_BLOCK:Pn,Z_OK:O,Z_STREAM_END:On,Z_STREAM_ERROR:X,Z_DATA_ERROR:Va,Z_BUF_ERROR:Ut,Z_DEFAULT_COMPRESSION:Ya,Z_FILTERED:Ka,Z_HUFFMAN_ONLY:rt,Z_RLE:Ja,Z_FIXED:Qa,Z_DEFAULT_STRATEGY:Wa,Z_UNKNOWN:eo,Z_DEFLATED:at}=fe,to=9,no=15,io=8,ro=29,Rt=256+1+ro,ao=30,oo=19,lo=2*Rt+1,so=15,R=3,ne=258,V=ne+R+1,co=32,ke=42,Ft=57,Mt=69,Lt=73,zt=91,Pt=103,he=113,$e=666,B=1,Ee=2,de=3,Ae=4,fo=3,ue=(e,n)=>(e.msg=ce[n],n),Bn=e=>e*2-(e>4?9:0),ie=e=>{let n=e.length;for(;--n>=0;)e[n]=0},ho=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let re=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask;const Z=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},$=(e,n)=>{ja(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,Z(e.strm)},F=(e,n)=>{e.pending_buf[e.pending++]=n},Ne=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Ot=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Ze(e.adler,n,r,t):e.state.wrap===2&&(e.adler=P(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},Hn=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,o=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-V?e.strstart-(e.w_size-V):0,l=e.window,h=e.w_mask,u=e.prev,d=e.strstart+ne;let f=l[i+o-1],_=l[i+o];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(l[r+o]!==_||l[r+o-1]!==f||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(a=ne-(d-i),i=d-ne,a>o){if(e.match_start=n,o=a,a>=s)break;f=l[i+o-1],_=l[i+o]}}while((n=u[n&h])>c&&--t!==0);return o<=e.lookahead?o:e.lookahead},Te=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-V)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),ho(e),i+=n),e.strm.avail_in===0)break;if(t=Ot(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=R)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=re(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=re(e,e.ins_h,e.window[r+R-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<R)););}while(e.lookahead<V&&e.strm.avail_in!==0)},Zn=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,o=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==j||n===te||i!==r+e.strm.avail_in)))break;o=n===j&&i===r+e.strm.avail_in?1:0,Ct(e,0,0,o),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Z(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Ot(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Ae:n!==te&&n!==j&&e.strm.avail_in===0&&e.strstart===e.block_start?Ee:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Ot(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===j)&&n!==te&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,o=n===j&&e.strm.avail_in===0&&i===r?1:0,Ct(e,e.block_start,i,o),e.block_start+=i,Z(e.strm)),o?de:B)},Bt=(e,n)=>{let t,i;for(;;){if(e.lookahead<V){if(Te(e),e.lookahead<V&&n===te)return B;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=re(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-V&&(e.match_length=Hn(e,t)),e.match_length>=R)if(i=ee(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do e.strstart++,e.ins_h=re(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=re(e,e.ins_h,e.window[e.strstart+1]);else i=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=e.strstart<R-1?e.strstart:R-1,n===j?($(e,!0),e.strm.avail_out===0?de:Ae):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Ee},De=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<V){if(Te(e),e.lookahead<V&&n===te)return B;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=re(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-V&&(e.match_length=Hn(e,t),e.match_length<=5&&(e.strategy===Ka||e.match_length===R&&e.strstart-e.match_start>4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-R,i=ee(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=re(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=R-1,e.strstart++,i&&($(e,!1),e.strm.avail_out===0))return B}else if(e.match_available){if(i=ee(e,0,e.window[e.strstart-1]),i&&$(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return B}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ee(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,n===j?($(e,!0),e.strm.avail_out===0?de:Ae):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Ee},uo=(e,n)=>{let t,i,r,a;const o=e.window;for(;;){if(e.lookahead<=ne){if(Te(e),e.lookahead<=ne&&n===te)return B;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(r=e.strstart-1,i=o[r],i===o[++r]&&i===o[++r]&&i===o[++r])){a=e.strstart+ne;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<a);e.match_length=ne-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(t=ee(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=0,n===j?($(e,!0),e.strm.avail_out===0?de:Ae):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Ee},_o=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Te(e),e.lookahead===0)){if(n===te)return B;break}if(e.match_length=0,t=ee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=0,n===j?($(e,!0),e.strm.avail_out===0?de:Ae):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Ee};function Y(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const je=[new Y(0,0,0,0,Zn),new Y(4,4,8,4,Bt),new Y(4,5,16,8,Bt),new Y(4,6,32,32,Bt),new Y(4,4,16,16,De),new Y(8,16,32,32,De),new Y(8,16,128,128,De),new Y(8,32,128,256,De),new Y(32,128,258,1024,De),new Y(32,258,258,4096,De)],go=e=>{e.window_size=2*e.w_size,ie(e.head),e.max_lazy_match=je[e.level].max_lazy,e.good_match=je[e.level].good_length,e.nice_match=je[e.level].nice_length,e.max_chain_length=je[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=R-1,e.match_available=0,e.ins_h=0};function wo(){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=at,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(lo*2),this.dyn_dtree=new Uint16Array((2*ao+1)*2),this.bl_tree=new Uint16Array((2*oo+1)*2),ie(this.dyn_ltree),ie(this.dyn_dtree),ie(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(so+1),this.heap=new Uint16Array(2*Rt+1),ie(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Rt+1),ie(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 qe=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==ke&&n.status!==Ft&&n.status!==Mt&&n.status!==Lt&&n.status!==zt&&n.status!==Pt&&n.status!==he&&n.status!==$e?1:0},$n=e=>{if(qe(e))return ue(e,X);e.total_in=e.total_out=0,e.data_type=eo;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Ft:n.wrap?ke:he,e.adler=n.wrap===2?0:1,n.last_flush=-2,Na(n),O},Nn=e=>{const n=$n(e);return n===O&&go(e.state),n},po=(e,n)=>qe(e)||e.state.wrap!==2?X:(e.state.gzhead=n,O),jn=(e,n,t,i,r,a)=>{if(!e)return X;let o=1;if(n===Ya&&(n=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>to||t!==at||i<8||i>15||n<0||n>9||a<0||a>Qa||i===8&&o!==1)return ue(e,X);i===8&&(i=9);const s=new wo;return e.state=s,s.strm=e,s.status=ke,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+R-1)/R),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,Nn(e)},mo=(e,n)=>jn(e,n,at,no,io,Wa),bo=(e,n)=>{if(qe(e)||n>Pn||n<0)return e?ue(e,X):X;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===$e&&n!==j)return ue(e,e.avail_out===0?Ut:X);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(Z(e),e.avail_out===0)return t.last_flush=-1,O}else if(e.avail_in===0&&Bn(n)<=Bn(i)&&n!==j)return ue(e,Ut);if(t.status===$e&&e.avail_in!==0)return ue(e,Ut);if(t.status===ke&&t.wrap===0&&(t.status=he),t.status===ke){let r=at+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=rt||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=co),r+=31-r%31,Ne(t,r),t.strstart!==0&&(Ne(t,e.adler>>>16),Ne(t,e.adler&65535)),e.adler=1,t.status=he,Z(e),t.pending!==0)return t.last_flush=-1,O}if(t.status===Ft){if(e.adler=0,F(t,31),F(t,139),F(t,8),t.gzhead)F(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),F(t,t.gzhead.time&255),F(t,t.gzhead.time>>8&255),F(t,t.gzhead.time>>16&255),F(t,t.gzhead.time>>24&255),F(t,t.level===9?2:t.strategy>=rt||t.level<2?4:0),F(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(F(t,t.gzhead.extra.length&255),F(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=P(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Mt;else if(F(t,0),F(t,0),F(t,0),F(t,0),F(t,0),F(t,t.level===9?2:t.strategy>=rt||t.level<2?4:0),F(t,fo),t.status=he,Z(e),t.pending!==0)return t.last_flush=-1,O}if(t.status===Mt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,Z(e),t.pending!==0)return t.last_flush=-1,O;r=0,a-=s}let o=new Uint8Array(t.gzhead.extra);t.pending_buf.set(o.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Lt}if(t.status===Lt){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),Z(e),t.pending!==0)return t.last_flush=-1,O;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,F(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=zt}if(t.status===zt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),Z(e),t.pending!==0)return t.last_flush=-1,O;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,F(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r))}t.status=Pt}if(t.status===Pt){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Z(e),t.pending!==0))return t.last_flush=-1,O;F(t,e.adler&255),F(t,e.adler>>8&255),e.adler=0}if(t.status=he,Z(e),t.pending!==0)return t.last_flush=-1,O}if(e.avail_in!==0||t.lookahead!==0||n!==te&&t.status!==$e){let r=t.level===0?Zn(t,n):t.strategy===rt?_o(t,n):t.strategy===Ja?uo(t,n):je[t.level].func(t,n);if((r===de||r===Ae)&&(t.status=$e),r===B||r===de)return e.avail_out===0&&(t.last_flush=-1),O;if(r===Ee&&(n===Ga?qa(t):n!==Pn&&(Ct(t,0,0,!1),n===Xa&&(ie(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Z(e),e.avail_out===0))return t.last_flush=-1,O}return n!==j?O:t.wrap<=0?On:(t.wrap===2?(F(t,e.adler&255),F(t,e.adler>>8&255),F(t,e.adler>>16&255),F(t,e.adler>>24&255),F(t,e.total_in&255),F(t,e.total_in>>8&255),F(t,e.total_in>>16&255),F(t,e.total_in>>24&255)):(Ne(t,e.adler>>>16),Ne(t,e.adler&65535)),Z(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?O:On)},vo=e=>{if(qe(e))return X;const n=e.state.status;return e.state=null,n===he?ue(e,Va):O},yo=(e,n)=>{let t=n.length;if(qe(e))return X;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==ke||i.lookahead)return X;if(r===1&&(e.adler=Ze(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(ie(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(t-i.w_size,t),0),n=c,t=i.w_size}const a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Te(i);i.lookahead>=R;){let c=i.strstart,l=i.lookahead-(R-1);do i.ins_h=re(i,i.ins_h,i.window[c+R-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=R-1,Te(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,e.next_in=o,e.input=s,e.avail_in=a,i.wrap=r,O};var xo=mo,Io=jn,ko=Nn,Eo=$n,Ao=po,To=bo,Do=vo,So=yo,Co="pako deflate (from Nodeca project)",Ge={deflateInit:xo,deflateInit2:Io,deflateReset:ko,deflateResetKeep:Eo,deflateSetHeader:Ao,deflate:To,deflateEnd:Do,deflateSetDictionary:So,deflateInfo:Co};const Uo=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Ro=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Uo(t,i)&&(e[i]=t[i])}}return e},Fo=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let o=e[i];t.set(o,r),r+=o.length}return t},ot={assign:Ro,flattenChunks:Fo};let qn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{qn=!1}const Xe=new Uint8Array(256);for(let e=0;e<256;e++)Xe[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Xe[254]=Xe[254]=1;var Mo=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,o=e.length,s=0;for(r=0;r<o;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<o&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<o&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Lo=(e,n)=>{if(n<65534&&e.subarray&&qn)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var zo=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let o=e[i++];if(o<128){a[r++]=o;continue}let s=Xe[o];if(s>4){a[r++]=65533,i+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&i<t;)o=o<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|o&1023)}return Lo(a,r)},Po=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Xe[e[t]]>n?t:n},Ve={string2buf:Mo,buf2string:zo,utf8border:Po};function Oo(){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 Gn=Oo;const Xn=Object.prototype.toString,{Z_NO_FLUSH:Bo,Z_SYNC_FLUSH:Ho,Z_FULL_FLUSH:Zo,Z_FINISH:$o,Z_OK:lt,Z_STREAM_END:No,Z_DEFAULT_COMPRESSION:jo,Z_DEFAULT_STRATEGY:qo,Z_DEFLATED:Go}=fe;function Ye(e){this.options=ot.assign({level:jo,method:Go,chunkSize:16384,windowBits:15,memLevel:8,strategy:qo},e||{});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 Gn,this.strm.avail_out=0;let t=Ge.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==lt)throw new Error(ce[t]);if(n.header&&Ge.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ve.string2buf(n.dictionary):Xn.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Ge.deflateSetDictionary(this.strm,i),t!==lt)throw new Error(ce[t]);this._dict_set=!0}}Ye.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?$o:Bo,typeof e=="string"?t.input=Ve.string2buf(e):Xn.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Ho||a===Zo)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Ge.deflate(t,a),r===No)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Ge.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===lt;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Ye.prototype.onData=function(e){this.chunks.push(e)},Ye.prototype.onEnd=function(e){e===lt&&(this.result=ot.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Ht(e,n){const t=new Ye(n);if(t.push(e,!0),t.err)throw t.msg||ce[t.err];return t.result}function Xo(e,n){return n=n||{},n.raw=!0,Ht(e,n)}function Vo(e,n){return n=n||{},n.gzip=!0,Ht(e,n)}var Yo=Ye,Ko=Ht,Jo=Xo,Qo=Vo,Wo=fe,el={Deflate:Yo,deflate:Ko,deflateRaw:Jo,gzip:Qo,constants:Wo};const st=16209,tl=16191;var nl=function(n,t){let i,r,a,o,s,c,l,h,u,d,f,_,w,g,p,m,y,b,I,x,E,T,k,D;const S=n.state;i=n.next_in,k=n.input,r=i+(n.avail_in-5),a=n.next_out,D=n.output,o=a-(t-n.avail_out),s=a+(n.avail_out-257),c=S.dmax,l=S.wsize,h=S.whave,u=S.wnext,d=S.window,f=S.hold,_=S.bits,w=S.lencode,g=S.distcode,p=(1<<S.lenbits)-1,m=(1<<S.distbits)-1;e:do{_<15&&(f+=k[i++]<<_,_+=8,f+=k[i++]<<_,_+=8),y=w[f&p];t:for(;;){if(b=y>>>24,f>>>=b,_-=b,b=y>>>16&255,b===0)D[a++]=y&65535;else if(b&16){I=y&65535,b&=15,b&&(_<b&&(f+=k[i++]<<_,_+=8),I+=f&(1<<b)-1,f>>>=b,_-=b),_<15&&(f+=k[i++]<<_,_+=8,f+=k[i++]<<_,_+=8),y=g[f&m];n:for(;;){if(b=y>>>24,f>>>=b,_-=b,b=y>>>16&255,b&16){if(x=y&65535,b&=15,_<b&&(f+=k[i++]<<_,_+=8,_<b&&(f+=k[i++]<<_,_+=8)),x+=f&(1<<b)-1,x>c){n.msg="invalid distance too far back",S.mode=st;break e}if(f>>>=b,_-=b,b=a-o,x>b){if(b=x-b,b>h&&S.sane){n.msg="invalid distance too far back",S.mode=st;break e}if(E=0,T=d,u===0){if(E+=l-b,b<I){I-=b;do D[a++]=d[E++];while(--b);E=a-x,T=D}}else if(u<b){if(E+=l+u-b,b-=u,b<I){I-=b;do D[a++]=d[E++];while(--b);if(E=0,u<I){b=u,I-=b;do D[a++]=d[E++];while(--b);E=a-x,T=D}}}else if(E+=u-b,b<I){I-=b;do D[a++]=d[E++];while(--b);E=a-x,T=D}for(;I>2;)D[a++]=T[E++],D[a++]=T[E++],D[a++]=T[E++],I-=3;I&&(D[a++]=T[E++],I>1&&(D[a++]=T[E++]))}else{E=a-x;do D[a++]=D[E++],D[a++]=D[E++],D[a++]=D[E++],I-=3;while(I>2);I&&(D[a++]=D[E++],I>1&&(D[a++]=D[E++]))}}else if(b&64){n.msg="invalid distance code",S.mode=st;break e}else{y=g[(y&65535)+(f&(1<<b)-1)];continue n}break}}else if(b&64)if(b&32){S.mode=tl;break e}else{n.msg="invalid literal/length code",S.mode=st;break e}else{y=w[(y&65535)+(f&(1<<b)-1)];continue t}break}}while(i<r&&a<s);I=_>>3,i-=I,_-=I<<3,f&=(1<<_)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),S.hold=f,S.bits=_};const Se=15,Vn=852,Yn=592,Kn=0,Zt=1,Jn=2,il=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]),rl=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]),al=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]),ol=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 Ke=(e,n,t,i,r,a,o,s)=>{const c=s.bits;let l=0,h=0,u=0,d=0,f=0,_=0,w=0,g=0,p=0,m=0,y,b,I,x,E,T=null,k;const D=new Uint16Array(Se+1),S=new Uint16Array(Se+1);let C=null,M,L,U;for(l=0;l<=Se;l++)D[l]=0;for(h=0;h<i;h++)D[n[t+h]]++;for(f=c,d=Se;d>=1&&D[d]===0;d--);if(f>d&&(f=d),d===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(u=1;u<d&&D[u]===0;u++);for(f<u&&(f=u),g=1,l=1;l<=Se;l++)if(g<<=1,g-=D[l],g<0)return-1;if(g>0&&(e===Kn||d!==1))return-1;for(S[1]=0,l=1;l<Se;l++)S[l+1]=S[l]+D[l];for(h=0;h<i;h++)n[t+h]!==0&&(o[S[n[t+h]]++]=h);if(e===Kn?(T=C=o,k=20):e===Zt?(T=il,C=rl,k=257):(T=al,C=ol,k=0),m=0,h=0,l=u,E=a,_=f,w=0,I=-1,p=1<<f,x=p-1,e===Zt&&p>Vn||e===Jn&&p>Yn)return 1;for(;;){M=l-w,o[h]+1<k?(L=0,U=o[h]):o[h]>=k?(L=C[o[h]-k],U=T[o[h]-k]):(L=32+64,U=0),y=1<<l-w,b=1<<_,u=b;do b-=y,r[E+(m>>w)+b]=M<<24|L<<16|U|0;while(b!==0);for(y=1<<l-1;m&y;)y>>=1;if(y!==0?(m&=y-1,m+=y):m=0,h++,--D[l]===0){if(l===d)break;l=n[t+o[h]]}if(l>f&&(m&x)!==I){for(w===0&&(w=f),E+=u,_=l-w,g=1<<_;_+w<d&&(g-=D[_+w],!(g<=0));)_++,g<<=1;if(p+=1<<_,e===Zt&&p>Vn||e===Jn&&p>Yn)return 1;I=m&x,r[I]=f<<24|_<<16|E-a|0}}return m!==0&&(r[E+m]=l-w<<24|64<<16|0),s.bits=f,0};const ll=0,Qn=1,Wn=2,{Z_FINISH:ei,Z_BLOCK:sl,Z_TREES:ct,Z_OK:_e,Z_STREAM_END:cl,Z_NEED_DICT:fl,Z_STREAM_ERROR:q,Z_DATA_ERROR:ti,Z_MEM_ERROR:ni,Z_BUF_ERROR:hl,Z_DEFLATED:ii}=fe,ft=16180,ri=16181,ai=16182,oi=16183,li=16184,si=16185,ci=16186,fi=16187,hi=16188,di=16189,ht=16190,J=16191,$t=16192,ui=16193,Nt=16194,_i=16195,gi=16196,wi=16197,pi=16198,dt=16199,ut=16200,mi=16201,bi=16202,vi=16203,yi=16204,xi=16205,jt=16206,Ii=16207,ki=16208,z=16209,Ei=16210,Ai=16211,dl=852,ul=592,_l=15,Ti=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function gl(){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 ge=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ft||n.mode>Ai?1:0},Di=e=>{if(ge(e))return q;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ft,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(dl),n.distcode=n.distdyn=new Int32Array(ul),n.sane=1,n.back=-1,_e},Si=e=>{if(ge(e))return q;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Di(e)},Ci=(e,n)=>{let t;if(ge(e))return q;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?q:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Si(e))},Ui=(e,n)=>{if(!e)return q;const t=new gl;e.state=t,t.strm=e,t.window=null,t.mode=ft;const i=Ci(e,n);return i!==_e&&(e.state=null),i},wl=e=>Ui(e,_l);let Ri=!0,qt,Gt;const pl=e=>{if(Ri){qt=new Int32Array(512),Gt=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ke(Qn,e.lens,0,288,qt,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ke(Wn,e.lens,0,32,Gt,0,e.work,{bits:5}),Ri=!1}e.lencode=qt,e.lenbits=9,e.distcode=Gt,e.distbits=5},Fi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},ml=(e,n)=>{let t,i,r,a,o,s,c,l,h,u,d,f,_,w,g=0,p,m,y,b,I,x,E,T;const k=new Uint8Array(4);let D,S;const C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ge(e)||!e.output||!e.input&&e.avail_in!==0)return q;t=e.state,t.mode===J&&(t.mode=$t),o=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=t.hold,h=t.bits,u=s,d=c,T=_e;e:for(;;)switch(t.mode){case ft:if(t.wrap===0){t.mode=$t;break}for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,k[0]=l&255,k[1]=l>>>8&255,t.check=P(t.check,k,2,0),l=0,h=0,t.mode=ri;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((l&15)!==ii){e.msg="unknown compression method",t.mode=z;break}if(l>>>=4,h-=4,E=(l&15)+8,t.wbits===0&&(t.wbits=E),E>15||E>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=l&512?di:J,l=0,h=0;break;case ri:for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.flags=l,(t.flags&255)!==ii){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,t.check=P(t.check,k,2,0)),l=0,h=0,t.mode=ai;case ai:for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,t.check=P(t.check,k,4,0)),l=0,h=0,t.mode=oi;case oi:for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,t.check=P(t.check,k,2,0)),l=0,h=0,t.mode=li;case li:if(t.flags&1024){for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,t.check=P(t.check,k,2,0)),l=0,h=0}else t.head&&(t.head.extra=null);t.mode=si;case si:if(t.flags&1024&&(f=t.length,f>s&&(f=s),f&&(t.head&&(E=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+f),E)),t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,t.length-=f),t.length))break e;t.length=0,t.mode=ci;case ci:if(t.flags&2048){if(s===0)break e;f=0;do E=i[a+f++],t.head&&E&&t.length<65536&&(t.head.name+=String.fromCharCode(E));while(E&&f<s);if(t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,E)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=fi;case fi:if(t.flags&4096){if(s===0)break e;f=0;do E=i[a+f++],t.head&&E&&t.length<65536&&(t.head.comment+=String.fromCharCode(E));while(E&&f<s);if(t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,E)break e}else t.head&&(t.head.comment=null);t.mode=hi;case hi:if(t.flags&512){for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&4&&l!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}l=0,h=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=J;break;case di:for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}e.adler=t.check=Ti(l),l=0,h=0,t.mode=ht;case ht:if(t.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,fl;e.adler=t.check=1,t.mode=J;case J:if(n===sl||n===ct)break e;case $t:if(t.last){l>>>=h&7,h-=h&7,t.mode=jt;break}for(;h<3;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}switch(t.last=l&1,l>>>=1,h-=1,l&3){case 0:t.mode=ui;break;case 1:if(pl(t),t.mode=dt,n===ct){l>>>=2,h-=2;break e}break;case 2:t.mode=gi;break;case 3:e.msg="invalid block type",t.mode=z}l>>>=2,h-=2;break;case ui:for(l>>>=h&7,h-=h&7;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=l&65535,l=0,h=0,t.mode=Nt,n===ct)break e;case Nt:t.mode=_i;case _i:if(f=t.length,f){if(f>s&&(f=s),f>c&&(f=c),f===0)break e;r.set(i.subarray(a,a+f),o),s-=f,a+=f,c-=f,o+=f,t.length-=f;break}t.mode=J;break;case gi:for(;h<14;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.nlen=(l&31)+257,l>>>=5,h-=5,t.ndist=(l&31)+1,l>>>=5,h-=5,t.ncode=(l&15)+4,l>>>=4,h-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=wi;case wi:for(;t.have<t.ncode;){for(;h<3;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.lens[C[t.have++]]=l&7,l>>>=3,h-=3}for(;t.have<19;)t.lens[C[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,D={bits:t.lenbits},T=Ke(ll,t.lens,0,19,t.lencode,0,t.work,D),t.lenbits=D.bits,T){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=pi;case pi:for(;t.have<t.nlen+t.ndist;){for(;g=t.lencode[l&(1<<t.lenbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(y<16)l>>>=p,h-=p,t.lens[t.have++]=y;else{if(y===16){for(S=p+2;h<S;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(l>>>=p,h-=p,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}E=t.lens[t.have-1],f=3+(l&3),l>>>=2,h-=2}else if(y===17){for(S=p+3;h<S;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=p,h-=p,E=0,f=3+(l&7),l>>>=3,h-=3}else{for(S=p+7;h<S;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=p,h-=p,E=0,f=11+(l&127),l>>>=7,h-=7}if(t.have+f>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;f--;)t.lens[t.have++]=E}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,D={bits:t.lenbits},T=Ke(Qn,t.lens,0,t.nlen,t.lencode,0,t.work,D),t.lenbits=D.bits,T){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,D={bits:t.distbits},T=Ke(Wn,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,D),t.distbits=D.bits,T){e.msg="invalid distances set",t.mode=z;break}if(t.mode=dt,n===ct)break e;case dt:t.mode=ut;case ut:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,nl(e,d),o=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=t.hold,h=t.bits,t.mode===J&&(t.back=-1);break}for(t.back=0;g=t.lencode[l&(1<<t.lenbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(m&&!(m&240)){for(b=p,I=m,x=y;g=t.lencode[x+((l&(1<<b+I)-1)>>b)],p=g>>>24,m=g>>>16&255,y=g&65535,!(b+p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=b,h-=b,t.back+=b}if(l>>>=p,h-=p,t.back+=p,t.length=y,m===0){t.mode=xi;break}if(m&32){t.back=-1,t.mode=J;break}if(m&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=m&15,t.mode=mi;case mi:if(t.extra){for(S=t.extra;h<S;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,h-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=bi;case bi:for(;g=t.distcode[l&(1<<t.distbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(!(m&240)){for(b=p,I=m,x=y;g=t.distcode[x+((l&(1<<b+I)-1)>>b)],p=g>>>24,m=g>>>16&255,y=g&65535,!(b+p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=b,h-=b,t.back+=b}if(l>>>=p,h-=p,t.back+=p,m&64){e.msg="invalid distance code",t.mode=z;break}t.offset=y,t.extra=m&15,t.mode=vi;case vi:if(t.extra){for(S=t.extra;h<S;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,h-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=yi;case yi:if(c===0)break e;if(f=d-c,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}f>t.wnext?(f-=t.wnext,_=t.wsize-f):_=t.wnext-f,f>t.length&&(f=t.length),w=t.window}else w=r,_=o-t.offset,f=t.length;f>c&&(f=c),c-=f,t.length-=f;do r[o++]=w[_++];while(--f);t.length===0&&(t.mode=ut);break;case xi:if(c===0)break e;r[o++]=t.length,c--,t.mode=ut;break;case jt:if(t.wrap){for(;h<32;){if(s===0)break e;s--,l|=i[a++]<<h,h+=8}if(d-=c,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?P(t.check,r,d,o-d):Ze(t.check,r,d,o-d)),d=c,t.wrap&4&&(t.flags?l:Ti(l))!==t.check){e.msg="incorrect data check",t.mode=z;break}l=0,h=0}t.mode=Ii;case Ii:if(t.wrap&&t.flags){for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}l=0,h=0}t.mode=ki;case ki:T=cl;break e;case z:T=ti;break e;case Ei:return ni;case Ai:default:return q}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,(t.wsize||d!==e.avail_out&&t.mode<z&&(t.mode<jt||n!==ei))&&Fi(e,e.output,e.next_out,d-e.avail_out),u-=e.avail_in,d-=e.avail_out,e.total_in+=u,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?P(t.check,r,d,e.next_out-d):Ze(t.check,r,d,e.next_out-d)),e.data_type=t.bits+(t.last?64:0)+(t.mode===J?128:0)+(t.mode===dt||t.mode===Nt?256:0),(u===0&&d===0||n===ei)&&T===_e&&(T=hl),T},bl=e=>{if(ge(e))return q;let n=e.state;return n.window&&(n.window=null),e.state=null,_e},vl=(e,n)=>{if(ge(e))return q;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,_e):q},yl=(e,n)=>{const t=n.length;let i,r,a;return ge(e)||(i=e.state,i.wrap!==0&&i.mode!==ht)?q:i.mode===ht&&(r=1,r=Ze(r,n,t,0),r!==i.check)?ti:(a=Fi(e,n,t,t),a?(i.mode=Ei,ni):(i.havedict=1,_e))};var xl=Si,Il=Ci,kl=Di,El=wl,Al=Ui,Tl=ml,Dl=bl,Sl=vl,Cl=yl,Ul="pako inflate (from Nodeca project)",Q={inflateReset:xl,inflateReset2:Il,inflateResetKeep:kl,inflateInit:El,inflateInit2:Al,inflate:Tl,inflateEnd:Dl,inflateGetHeader:Sl,inflateSetDictionary:Cl,inflateInfo:Ul};function Rl(){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 Fl=Rl;const Mi=Object.prototype.toString,{Z_NO_FLUSH:Ml,Z_FINISH:Ll,Z_OK:Je,Z_STREAM_END:Xt,Z_NEED_DICT:Vt,Z_STREAM_ERROR:zl,Z_DATA_ERROR:Li,Z_MEM_ERROR:Pl}=fe;function Qe(e){this.options=ot.assign({chunkSize:65536,windowBits:15,to:""},e||{});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&&!(e&&e.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 Gn,this.strm.avail_out=0;let t=Q.inflateInit2(this.strm,n.windowBits);if(t!==Je)throw new Error(ce[t]);if(this.header=new Fl,Q.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ve.string2buf(n.dictionary):Mi.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Q.inflateSetDictionary(this.strm,n.dictionary),t!==Je)))throw new Error(ce[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(n===~~n?o=n:o=n===!0?Ll:Ml,Mi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Q.inflate(t,o),a===Vt&&r&&(a=Q.inflateSetDictionary(t,r),a===Je?a=Q.inflate(t,o):a===Li&&(a=Vt));t.avail_in>0&&a===Xt&&t.state.wrap>0&&e[t.next_in]!==0;)Q.inflateReset(t),a=Q.inflate(t,o);switch(a){case zl:case Li:case Vt:case Pl:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===Xt))if(this.options.to==="string"){let c=Ve.utf8border(t.output,t.next_out),l=t.next_out-c,h=Ve.buf2string(t.output,c);t.next_out=l,t.avail_out=i-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(h)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Je&&s===0)){if(a===Xt)return a=Q.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},Qe.prototype.onData=function(e){this.chunks.push(e)},Qe.prototype.onEnd=function(e){e===Je&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ot.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Yt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||ce[t.err];return t.result}function Ol(e,n){return n=n||{},n.raw=!0,Yt(e,n)}var Bl=Qe,Hl=Yt,Zl=Ol,$l=Yt,Nl=fe,jl={Inflate:Bl,inflate:Hl,inflateRaw:Zl,ungzip:$l,constants:Nl};const{Deflate:ql,deflate:Gl,deflateRaw:Xl,gzip:Vl}=el,{Inflate:Yl,inflate:Kl,inflateRaw:Jl,ungzip:Ql}=jl;var Wl=ql,es=Gl,ts=Xl,ns=Vl,is=Yl,rs=Kl,as=Jl,os=Ql,ls=fe,ss={Deflate:Wl,deflate:es,deflateRaw:ts,gzip:ns,Inflate:is,inflate:rs,inflateRaw:as,ungzip:os,constants:ls};const A={};A.toRGBA8=function(e){const n=e.width,t=e.height;if(e.tabs.acTL===null)return[A.toRGBA8.decodeImage(e.data,n,t,e).buffer];const i=[];e.frames[0].data===null&&(e.frames[0].data=e.data);const r=n*t*4,a=new Uint8Array(r),o=new Uint8Array(r),s=new Uint8Array(r);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],h=l.rect.x,u=l.rect.y,d=l.rect.width,f=l.rect.height,_=A.toRGBA8.decodeImage(l.data,d,f,e);if(c!==0)for(let w=0;w<r;w++)s[w]=a[w];if(l.blend===0?A._copyTile(_,d,f,a,n,t,h,u,0):l.blend===1&&A._copyTile(_,d,f,a,n,t,h,u,1),i.push(a.buffer.slice(0)),l.dispose===1)A._copyTile(o,d,f,a,n,t,h,u,0);else if(l.dispose===2)for(let w=0;w<r;w++)a[w]=s[w]}return i},A.toRGBA8.decodeImage=function(e,n,t,i){const r=n*t,a=A.decode._getBPP(i),o=Math.ceil(n*a/8),s=new Uint8Array(r*4),c=new Uint32Array(s.buffer),l=i.ctype,h=i.depth,u=A._bin.readUshort;if(l===6){const d=r<<2;if(h===8)for(let f=0;f<d;f+=4)s[f]=e[f],s[f+1]=e[f+1],s[f+2]=e[f+2],s[f+3]=e[f+3];if(h===16)for(let f=0;f<d;f++)s[f]=e[f<<1]}else if(l===2){const d=i.tabs.tRNS;if(d===null){if(h===8)for(let f=0;f<r;f++){const _=f*3;c[f]=-16777216|e[_+2]<<16|e[_+1]<<8|e[_]}if(h===16)for(let f=0;f<r;f++){const _=f*6;c[f]=-16777216|e[_+4]<<16|e[_+2]<<8|e[_]}}else{const f=d[0],_=d[1],w=d[2];if(h===8)for(let g=0;g<r;g++){const p=g<<2,m=g*3;c[g]=-16777216|e[m+2]<<16|e[m+1]<<8|e[m],e[m]===f&&e[m+1]===_&&e[m+2]===w&&(s[p+3]=0)}if(h===16)for(let g=0;g<r;g++){const p=g<<2,m=g*6;c[g]=-16777216|e[m+4]<<16|e[m+2]<<8|e[m],u(e,m)===f&&u(e,m+2)===_&&u(e,m+4)===w&&(s[p+3]=0)}}}else if(l===3){const d=i.tabs.PLTE,f=i.tabs.tRNS,_=f?f.length:0;if(h===1)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>3)]>>7-((m&7)<<0)&1,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===2)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>2)]>>6-((m&3)<<1)&3,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===4)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>1)]>>4-((m&1)<<2)&15,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===8)for(let w=0;w<r;w++){const g=w<<2,p=e[w],m=3*p;s[g]=d[m],s[g+1]=d[m+1],s[g+2]=d[m+2],s[g+3]=p<_?f[p]:255}}else if(l===4){if(h===8)for(let d=0;d<r;d++){const f=d<<2,_=d<<1,w=e[_];s[f]=w,s[f+1]=w,s[f+2]=w,s[f+3]=e[_+1]}if(h===16)for(let d=0;d<r;d++){const f=d<<2,_=d<<2,w=e[_];s[f]=w,s[f+1]=w,s[f+2]=w,s[f+3]=e[_+2]}}else if(l===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let f=0;f<t;f++){const _=f*o,w=f*n;if(h===1)for(let g=0;g<n;g++){const p=255*(e[_+(g>>>3)]>>>7-(g&7)&1),m=p===d*255?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===2)for(let g=0;g<n;g++){const p=85*(e[_+(g>>>2)]>>>6-((g&3)<<1)&3),m=p===d*85?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===4)for(let g=0;g<n;g++){const p=17*(e[_+(g>>>1)]>>>4-((g&1)<<2)&15),m=p===d*17?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===8)for(let g=0;g<n;g++){const p=e[_+g],m=p===d?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===16)for(let g=0;g<n;g++){const p=e[_+(g<<1)],m=u(e,_+(g<<1))===d?0:255;c[w+g]=m<<24|p<<16|p<<8|p}}}return s},A.decode=function(e){const n=new Uint8Array(e);let t=8;const i=A._bin,r=i.readUshort,a=i.readUint,o={tabs:{},frames:[]},s=new Uint8Array(n.length);let c=0,l,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(;t<n.length;){const d=i.readUint(n,t);t+=4;const f=i.readASCII(n,t,4);if(t+=4,f==="IHDR")A.decode._IHDR(n,t,o);else if(f==="CgBI")o.tabs[f]=n.slice(t,t+4);else if(f==="IDAT"){for(let _=0;_<d;_++)s[c+_]=n[t+_];c+=d}else if(f==="acTL")o.tabs[f]={num_frames:a(n,t),num_plays:a(n,t+4)},l=new Uint8Array(n.length);else if(f==="fcTL"){if(h!==0){const p=o.frames[o.frames.length-1];p.data=A.decode._decompress(o,l.slice(0,h),p.rect.width,p.rect.height),h=0}const _={x:a(n,t+12),y:a(n,t+16),width:a(n,t+4),height:a(n,t+8)};let w=r(n,t+22);w=r(n,t+20)/(w===0?100:w);const g={rect:_,delay:Math.round(w*1e3),dispose:n[t+24],blend:n[t+25]};o.frames.push(g)}else if(f==="fdAT"){for(let _=0;_<d-4;_++)l[h+_]=n[t+_+4];h+=d-4}else if(f==="pHYs")o.tabs[f]=[i.readUint(n,t),i.readUint(n,t+4),n[t+8]];else if(f==="cHRM"){o.tabs[f]=[];for(let _=0;_<8;_++)o.tabs[f].push(i.readUint(n,t+_*4))}else if(f==="tEXt"||f==="zTXt"){o.tabs[f]===null&&(o.tabs[f]={});const _=i.nextZero(n,t),w=i.readASCII(n,t,_-t);let g;const p=t+d-_-1;if(f==="tEXt")g=i.readASCII(n,_+1,p);else{const m=A.decode._inflate(n.slice(_+2,_+2+p));g=i.readUTF8(m,0,m.length)}o.tabs[f][w]=g}else if(f==="iTXt"){o.tabs[f]==null&&(o.tabs[f]={});let _=0,w=t;_=i.nextZero(n,w);const g=i.readASCII(n,w,_-w);w=_+1;const p=n[w];w+=2,_=i.nextZero(n,w),w=_+1,_=i.nextZero(n,w),w=_+1;let m;const y=d-(w-t);if(p===0)m=i.readUTF8(n,w,y);else{const b=A.decode._inflate(n.slice(w,w+y));m=i.readUTF8(b,0,b.length)}o.tabs[f][g]=m}else if(f==="PLTE")o.tabs[f]=i.readBytes(n,t,d);else if(f==="hIST"){const _=o.tabs.PLTE.length/3;o.tabs[f]=[];for(let w=0;w<_;w++)o.tabs[f].push(r(n,t+w*2))}else if(f==="tRNS")o.ctype===3?o.tabs[f]=i.readBytes(n,t,d):o.ctype===0?o.tabs[f]=r(n,t):o.ctype===2&&(o.tabs[f]=[r(n,t),r(n,t+2),r(n,t+4)]);else if(f==="gAMA")o.tabs[f]=i.readUint(n,t)/1e5;else if(f==="sRGB")o.tabs[f]=n[t];else if(f==="bKGD")o.ctype===0||o.ctype===4?o.tabs[f]=[r(n,t)]:o.ctype===2||o.ctype===6?o.tabs[f]=[r(n,t),r(n,t+2),r(n,t+4)]:o.ctype===3&&(o.tabs[f]=n[t]);else if(f==="IEND")break;t+=d,t+=4}if(h!==0){const d=o.frames[o.frames.length-1];d.data=A.decode._decompress(o,l.slice(0,h),d.rect.width,d.rect.height),h=0}return o.data=A.decode._decompress(o,s,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},A.decode._decompress=function(e,n,t,i){const r=A.decode._getBPP(e),a=Math.ceil(t*r/8),o=new Uint8Array((a+1+e.interlace)*i);return e.tabs.CgBI?n=A.inflateRaw(n,o):n=A.decode._inflate(n,o),e.interlace===0?n=A.decode._filterZero(n,e,0,t,i):e.interlace===1&&(n=A.decode._readInterlace(n,e)),n},A.decode._inflate=function(e,n){return A.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),n)},A.inflateRaw=function(){const e={};return e.H={},e.H.N=function(n,t){const i=Uint8Array;let r=0,a=0,o=0,s=0,c=0,l=0,h=0,u=0,d=0,f,_;if(n[0]===3&&n[1]===0)return t||new i(0);const w=e.H,g=w.b,p=w.e,m=w.R,y=w.n,b=w.A,I=w.Z,x=w.m,E=t===null;for(E&&(t=new i(n.length>>>2<<3));r===0;){if(r=g(n,d,1),a=g(n,d+1,2),d+=3,a===0){d&7&&(d+=8-(d&7));const T=(d>>>3)+4,k=n[T-4]|n[T-3]<<8;E&&(t=e.H.W(t,u+k)),t.set(new i(n.buffer,n.byteOffset+T,k),u),d=T+k<<3,u+=k;continue}if(E&&(t=e.H.W(t,u+131072)),a===1&&(f=x.J,_=x.h,l=511,h=31),a===2){o=p(n,d,5)+257,s=p(n,d+5,5)+1,c=p(n,d+10,4)+4,d+=14;let T=1;for(let S=0;S<38;S+=2)x.Q[S]=0,x.Q[S+1]=0;for(let S=0;S<c;S++){const C=p(n,d+S*3,3);x.Q[(x.X[S]<<1)+1]=C,C>T&&(T=C)}d+=3*c,y(x.Q,T),b(x.Q,T,x.u),f=x.w,_=x.d,d=m(x.u,(1<<T)-1,o+s,n,d,x.v);const k=w.V(x.v,0,o,x.C);l=(1<<k)-1;const D=w.V(x.v,o,s,x.D);h=(1<<D)-1,y(x.C,k),b(x.C,k,f),y(x.D,D),b(x.D,D,_)}for(;;){const T=f[I(n,d)&l];d+=T&15;const k=T>>>4;if(!(k>>>8))t[u++]=k;else{if(k===256)break;{let D=u+k-254;if(k>264){const U=x.q[k-257];D=u+(U>>>3)+p(n,d,U&7),d+=U&7}const S=_[I(n,d)&h];d+=S&15;const C=S>>>4,M=x.c[C],L=(M>>>4)+g(n,d,M&15);for(d+=M&15;u<D;)t[u]=t[u++-L],t[u]=t[u++-L],t[u]=t[u++-L],t[u]=t[u++-L];u=D}}}}return t.length===u?t:t.slice(0,u)},e.H.W=function(n,t){const i=n.length;if(t<=i)return n;const r=new Uint8Array(i<<1);return r.set(n,0),r},e.H.R=function(n,t,i,r,a,o){const s=e.H.e,c=e.H.Z;let l=0;for(;l<i;){const h=n[c(r,a)&t];a+=h&15;const u=h>>>4;if(u<=15)o[l]=u,l++;else{let d=0,f=0;u===16?(f=3+s(r,a,2),a+=2,d=o[l-1]):u===17?(f=3+s(r,a,3),a+=3):u===18&&(f=11+s(r,a,7),a+=7);const _=l+f;for(;l<_;)o[l]=d,l++}}return a},e.H.V=function(n,t,i,r){let a=0,o=0;const s=r.length>>>1;for(;o<i;){const c=n[o+t];r[o<<1]=0,r[(o<<1)+1]=c,c>a&&(a=c),o++}for(;o<s;)r[o<<1]=0,r[(o<<1)+1]=0,o++;return a},e.H.n=function(n,t){const i=e.H.m,r=n.length;let a,o,s,c,l;const h=i.j;for(let d=0;d<=t;d++)h[d]=0;for(c=1;c<r;c+=2)h[n[c]]++;const u=i.K;for(a=0,h[0]=0,o=1;o<=t;o++)a=a+h[o-1]<<1,u[o]=a;for(s=0;s<r;s+=2)l=n[s+1],l!==0&&(n[s]=u[l],u[l]++)},e.H.A=function(n,t,i){const r=n.length,o=e.H.m.r;for(let s=0;s<r;s+=2)if(n[s+1]!==0){const c=s>>1,l=n[s+1],h=c<<4|l,u=t-l;let d=n[s]<<u;const f=d+(1<<u);for(;d!==f;){const _=o[d]>>>15-t;i[_]=h,d++}}},e.H.l=function(n,t){const i=e.H.m.r,r=15-t;for(let a=0;a<n.length;a+=2){const o=n[a]<<t-n[a+1];n[a]=i[o]>>>r}},e.H.M=function(n,t,i){i=i<<(t&7);const r=t>>>3;n[r]|=i,n[r+1]|=i>>>8},e.H.I=function(n,t,i){i=i<<(t&7);const r=t>>>3;n[r]|=i,n[r+1]|=i>>>8,n[r+2]|=i>>>16},e.H.e=function(n,t,i){return(n[t>>>3]|n[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(n,t,i){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(n,t){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(n,t){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16|n[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){const n=Uint16Array,t=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 t(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 t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new n(65536),g:new n(32768)}}(),function(){const n=e.H.m,t=32768;for(let r=0;r<t;r++){let a=r;a=(a&2863311530)>>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,n.r[r]=(a>>>16|a<<16)>>>17}function i(r,a,o){for(;a--!==0;)r.push(0,o)}for(let r=0;r<32;r++)n.q[r]=n.S[r]<<3|n.T[r],n.c[r]=n.p[r]<<4|n.z[r];i(n._,144,8),i(n._,112,9),i(n._,24,7),i(n._,8,8),e.H.n(n._,9),e.H.A(n._,9,n.J),e.H.l(n._,9),i(n.$,32,5),e.H.n(n.$,5),e.H.A(n.$,5,n.h),e.H.l(n.$,5),i(n.Q,19,0),i(n.C,286,0),i(n.D,30,0),i(n.v,320,0)}(),e.H.N}(),A.decode._readInterlace=function(e,n){const t=n.width,i=n.height,r=A.decode._getBPP(n),a=r>>3,o=Math.ceil(t*r/8),s=new Uint8Array(i*o);let c=0;const l=[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 _=u[f],w=d[f];let g=0,p=0,m=l[f];for(;m<i;)m+=_,p++;let y=h[f];for(;y<t;)y+=w,g++;const b=Math.ceil(g*r/8);A.decode._filterZero(e,n,c,g,p);let I=0,x=l[f];for(;x<i;){let E=h[f],T=c+I*b<<3;for(;E<t;){if(r===1){let k=e[T>>3];k=k>>7-(T&7)&1,s[x*o+(E>>3)]|=k<<7-((E&7)<<0)}if(r===2){let k=e[T>>3];k=k>>6-(T&7)&3,s[x*o+(E>>2)]|=k<<6-((E&3)<<1)}if(r===4){let k=e[T>>3];k=k>>4-(T&7)&15,s[x*o+(E>>1)]|=k<<4-((E&1)<<2)}if(r>=8){const k=x*o+E*a;for(let D=0;D<a;D++)s[k+D]=e[(T>>3)+D]}T+=r,E+=w}I++,x+=_}g*p!==0&&(c+=p*(1+b)),f=f+1}return s},A.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},A.decode._filterZero=function(e,n,t,i,r){let a=A.decode._getBPP(n);const o=Math.ceil(i*a/8),s=A.decode._paeth;a=Math.ceil(a/8);let c=0,l=1,h=e[t],u=0;if(h>1&&(e[t]=[0,0,1][h-2]),h===3)for(u=a;u<o;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let d=0;d<r;d++)if(c=t+d*o,l=c+d+1,h=e[l-1],u=0,h===0)for(;u<o;u++)e[c+u]=e[l+u];else if(h===1){for(;u<a;u++)e[c+u]=e[l+u];for(;u<o;u++)e[c+u]=e[l+u]+e[c+u-a]}else if(h===2)for(;u<o;u++)e[c+u]=e[l+u]+e[c+u-o];else if(h===3){for(;u<a;u++)e[c+u]=e[l+u]+(e[c+u-o]>>>1);for(;u<o;u++)e[c+u]=e[l+u]+(e[c+u-o]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[l+u]+s(0,e[c+u-o],0);for(;u<o;u++)e[c+u]=e[l+u]+s(e[c+u-a],e[c+u-o],e[c+u-a-o])}return e},A.decode._paeth=function(e,n,t){const i=e+n-t,r=i-e,a=i-n,o=i-t;return r*r<=a*a&&r*r<=o*o?e:a*a<=o*o?n:t},A.decode._IHDR=function(e,n,t){const i=A._bin;t.width=i.readUint(e,n),n+=4,t.height=i.readUint(e,n),n+=4,t.depth=e[n],n++,t.ctype=e[n],n++,t.compress=e[n],n++,t.filter=e[n],n++,t.interlace=e[n],n++},A._bin={nextZero:function(e,n){for(;e[n]!==0;)n++;return n},readUshort:function(e,n){return e[n]<<8|e[n+1]},writeUshort:function(e,n,t){e[n]=t>>8&255,e[n+1]=t&255},readUint:function(e,n){return e[n]*16777216+(e[n+1]<<16|e[n+2]<<8|e[n+3])},writeUint:function(e,n,t){e[n]=t>>24&255,e[n+1]=t>>16&255,e[n+2]=t>>8&255,e[n+3]=t&255},readASCII:function(e,n,t){let i="";for(let r=0;r<t;r++)i+=String.fromCharCode(e[n+r]);return i},writeASCII:function(e,n,t){for(let i=0;i<t.length;i++)e[n+i]=t.charCodeAt(i)},readBytes:function(e,n,t){const i=[];for(let r=0;r<t;r++)i.push(e[n+r]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,n,t){let i="",r;for(let a=0;a<t;a++)i+="%"+A._bin.pad(e[n+a].toString(16));try{r=decodeURIComponent(i)}catch{return A._bin.readASCII(e,n,t)}return r}},A._copyTile=function(e,n,t,i,r,a,o,s,c){const l=Math.min(n,r),h=Math.min(t,a);let u=0,d=0;for(let f=0;f<h;f++)for(let _=0;_<l;_++)if(o>=0&&s>=0?(u=f*n+_<<2,d=(s+f)*r+o+_<<2):(u=(-s+f)*n-o+_<<2,d=f*r+_<<2),c===0)i[d]=e[u],i[d+1]=e[u+1],i[d+2]=e[u+2],i[d+3]=e[u+3];else if(c===1){const w=e[u+3]*.00392156862745098,g=e[u]*w,p=e[u+1]*w,m=e[u+2]*w,y=i[d+3]*(1/255),b=i[d]*y,I=i[d+1]*y,x=i[d+2]*y,E=1-w,T=w+y*E,k=T===0?0:1/T;i[d+3]=255*T,i[d+0]=(g+b*E)*k,i[d+1]=(p+I*E)*k,i[d+2]=(m+x*E)*k}else if(c===2){const w=e[u+3],g=e[u],p=e[u+1],m=e[u+2],y=i[d+3],b=i[d],I=i[d+1],x=i[d+2];w===y&&g===b&&p===I&&m===x?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=g,i[d+1]=p,i[d+2]=m,i[d+3]=w)}else if(c===3){const w=e[u+3],g=e[u],p=e[u+1],m=e[u+2],y=i[d+3],b=i[d],I=i[d+1],x=i[d+2];if(w===y&&g===b&&p===I&&m===x)continue;if(w<220&&y>20)return!1}return!0},A.encode=function(e,n,t,i,r,a,o){i===null&&(i=0),o===null&&(o=!1);const s=A.encode.compress(e,n,t,i,[!1,!1,!1,0,o]);return A.encode.compressPNG(s,-1),A.encode._main(s,n,t,r,a)},A.encodeLL=function(e,n,t,i,r,a,o,s){const c={ctype:0+(i===1?0:2)+(r===0?0:4),depth:a,frames:[]},l=(i+r)*a,h=l*n;for(let d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:n,height:t},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(h/8)});return A.encode.compressPNG(c,0,!0),A.encode._main(c,n,t,o,s)},A.encode._main=function(e,n,t,i,r){r||(r={});const a=A.crc.crc,o=A._bin.writeUint,s=A._bin.writeUshort,c=A._bin.writeASCII;let l=8;const h=e.frames.length>1;let u=!1,d=8+(16+5+4)+(h?20:0);if(r.sRGB!==null&&r.sRGB!==void 0&&(d+=13),r.pHYs!==null&&r.pHYs!==void 0&&(d+=21),e.ctype===3){const g=e.plte.length;for(let p=0;p<g;p++)e.plte[p]>>>24!==255&&(u=!0);d+=8+g*3+4+(u?8+g*1+4:0)}for(let g=0;g<e.frames.length;g++){const p=e.frames[g];h&&(d+=38),d+=p.cimg.length+12,g!==0&&(d+=4)}d+=12;const f=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(let g=0;g<8;g++)f[g]=_[g];if(o(f,l,13),l+=4,c(f,l,"IHDR"),l+=4,o(f,l,n),l+=4,o(f,l,t),l+=4,f[l]=e.depth,l++,f[l]=e.ctype,l++,f[l]=0,l++,f[l]=0,l++,f[l]=0,l++,o(f,l,a(f,l-17,17)),l+=4,r.sRGB!==null&&r.sRGB!==void 0&&(o(f,l,1),l+=4,c(f,l,"sRGB"),l+=4,f[l]=r.sRGB,l++,o(f,l,a(f,l-5,5)),l+=4),r.pHYs!==null&&r.pHYs!==void 0&&(o(f,l,9),l+=4,c(f,l,"pHYs"),l+=4,o(f,l,r.pHYs[0]),l+=4,o(f,l,r.pHYs[1]),l+=4,f[l]=r.pHYs[2],l++,o(f,l,a(f,l-13,13)),l+=4),h&&(o(f,l,8),l+=4,c(f,l,"acTL"),l+=4,o(f,l,e.frames.length),l+=4,o(f,l,r.loop!=null?r.loop:0),l+=4,o(f,l,a(f,l-12,12)),l+=4),e.ctype===3){const g=e.plte.length;o(f,l,g*3),l+=4,c(f,l,"PLTE"),l+=4;for(let p=0;p<g;p++){const m=p*3,y=e.plte[p],b=y&255,I=y>>>8&255,x=y>>>16&255;f[l+m+0]=b,f[l+m+1]=I,f[l+m+2]=x}if(l+=g*3,o(f,l,a(f,l-g*3-4,g*3+4)),l+=4,u){o(f,l,g),l+=4,c(f,l,"tRNS"),l+=4;for(let p=0;p<g;p++)f[l+p]=e.plte[p]>>>24&255;l+=g,o(f,l,a(f,l-g-4,g+4)),l+=4}}let w=0;for(let g=0;g<e.frames.length;g++){const p=e.frames[g];h&&(o(f,l,26),l+=4,c(f,l,"fcTL"),l+=4,o(f,l,w++),l+=4,o(f,l,p.rect.width),l+=4,o(f,l,p.rect.height),l+=4,o(f,l,p.rect.x),l+=4,o(f,l,p.rect.y),l+=4,s(f,l,i[g]),l+=2,s(f,l,1e3),l+=2,f[l]=p.dispose,l++,f[l]=p.blend,l++,o(f,l,a(f,l-30,30)),l+=4);const m=p.cimg,y=m.length;o(f,l,y+(g===0?0:4)),l+=4;const b=l;c(f,l,g===0?"IDAT":"fdAT"),l+=4,g!==0&&(o(f,l,w++),l+=4),f.set(m,l),l+=y,o(f,l,a(f,b,l-b)),l+=4}return o(f,l,0),l+=4,c(f,l,"IEND"),l+=4,o(f,l,a(f,l-4,4)),l+=4,f.buffer},A.encode.compressPNG=function(e,n,t){for(let i=0;i<e.frames.length;i++){const r=e.frames[i],a=r.rect.height,o=new Uint8Array(a*r.bpl+a);r.cimg=A.encode._filterZero(r.img,a,r.bpp,r.bpl,o,n,t)}},A.encode.compress=function(e,n,t,i,r){const a=r[0],o=r[1],s=r[2],c=r[3],l=r[4];let h=6,u=8,d=255;for(let y=0;y<e.length;y++){const b=new Uint8Array(e[y]),I=b.length;for(let x=0;x<I;x+=4)d&=b[x+3]}const f=d!==255,_=A.encode.framize(e,n,t,a,o,s),w={},g=[],p=[];if(i!==0){const y=[];for(let T=0;T<_.length;T++)y.push(_[T].img.buffer);const b=A.encode.concatRGBA(y),I=A.quantize(b,i);let x=0;const E=new Uint8Array(I.abuf);for(let T=0;T<_.length;T++){const k=_[T].img,D=k.length;p.push(new Uint8Array(I.inds.buffer,x>>2,D>>2));for(let S=0;S<D;S+=4)k[S]=E[x+S],k[S+1]=E[x+S+1],k[S+2]=E[x+S+2],k[S+3]=E[x+S+3];x+=D}for(let T=0;T<I.plte.length;T++)g.push(I.plte[T].est.rgba)}else for(let y=0;y<_.length;y++){const b=_[y],I=new Uint32Array(b.img.buffer),x=b.rect.width,E=I.length,T=new Uint8Array(E);p.push(T);for(let k=0;k<E;k++){const D=I[k];if(k!==0&&D===I[k-1])T[k]=T[k-1];else if(k>x&&D===I[k-x])T[k]=T[k-x];else{let S=w[D];if(S===null&&(w[D]=S=g.length,g.push(D),g.length>=300))break;T[k]=S}}}const m=g.length;m<=256&&l===!1&&(m<=2?u=1:m<=4?u=2:m<=16?u=4:u=8,u=Math.max(u,c));for(let y=0;y<_.length;y++){const b=_[y],I=b.rect.width,x=b.rect.height;let E=b.img,T=4*I,k=4;if(m<=256&&l===!1){T=Math.ceil(u*I/8);const D=new Uint8Array(T*x),S=p[y];for(let C=0;C<x;C++){const M=C*T,L=C*I;if(u===8)for(let U=0;U<I;U++)D[M+U]=S[L+U];else if(u===4)for(let U=0;U<I;U++)D[M+(U>>1)]|=S[L+U]<<4-(U&1)*4;else if(u===2)for(let U=0;U<I;U++)D[M+(U>>2)]|=S[L+U]<<6-(U&3)*2;else if(u===1)for(let U=0;U<I;U++)D[M+(U>>3)]|=S[L+U]<<7-(U&7)*1}E=D,h=3,k=1}else if(f===!1&&_.length===1){const D=new Uint8Array(I*x*3),S=I*x;for(let C=0;C<S;C++){const M=C*3,L=C*4;D[M]=E[L],D[M+1]=E[L+1],D[M+2]=E[L+2]}E=D,h=2,k=3,T=3*I}b.img=E,b.bpl=T,b.bpp=k}return{ctype:h,depth:u,plte:g,frames:_}},A.encode.framize=function(e,n,t,i,r,a){const o=[];for(let s=0;s<e.length;s++){const c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer);let h,u=0,d=0,f=n,_=t,w=i?1:0;if(s!==0){const g=a||i||s===1||o[s-2].dispose!==0?1:2;let p=0,m=1e9;for(let b=0;b<g;b++){const I=new Uint32Array(e[s-1-b]);let x=n,E=t,T=-1,k=-1;for(let S=0;S<t;S++)for(let C=0;C<n;C++){const M=S*n+C;l[M]!==I[M]&&(C<x&&(x=C),C>T&&(T=C),S<E&&(E=S),S>k&&(k=S))}T===-1&&(x=E=T=k=0),r&&((x&1)===1&&x--,(E&1)===1&&E--);const D=(T-x+1)*(k-E+1);D<m&&(m=D,p=b,u=x,d=E,f=T-x+1,_=k-E+1)}const y=new Uint8Array(e[s-1-p]);p===1&&(o[s-1].dispose=2),h=new Uint8Array(f*_*4),A._copyTile(y,n,t,h,f,_,-u,-d,0),w=A._copyTile(c,n,t,h,f,_,-u,-d,3)?1:0,w===1?A.encode._prepareDiff(c,n,t,h,{x:u,y:d,width:f,height:_}):A._copyTile(c,n,t,h,f,_,-u,-d,0)}else h=c.slice(0);o.push({rect:{x:u,y:d,width:f,height:_},img:h,blend:w,dispose:0})}if(i)for(let s=0;s<o.length;s++){const c=o[s];if(c.blend===1)continue;const l=c.rect,h=o[s-1].rect,u=Math.min(l.x,h.x),d=Math.min(l.y,h.y),f=Math.max(l.x+l.width,h.x+h.width),_=Math.max(l.y+l.height,h.y+h.height),w={x:u,y:d,width:f-u,height:_-d};o[s-1].dispose=1,s-1!==0&&A.encode._updateFrame(e,n,t,o,s-1,w,r),A.encode._updateFrame(e,n,t,o,s,w,r)}return o},A.encode._updateFrame=function(e,n,t,i,r,a,o){const s=Uint8Array,c=Uint32Array,l=new s(e[r-1]),h=new c(e[r-1]),u=r+1<e.length?new s(e[r+1]):null,d=new s(e[r]),f=new c(d.buffer);let _=n,w=t,g=-1,p=-1;for(let y=0;y<a.height;y++)for(let b=0;b<a.width;b++){const I=a.x+b,x=a.y+y,E=x*n+I,T=f[E];T===0||i[r-1].dispose===0&&h[E]===T&&(u===null||u[E*4+3]!==0)||(I<_&&(_=I),I>g&&(g=I),x<w&&(w=x),x>p&&(p=x))}g===-1&&(_=w=g=p=0),o&&((_&1)===1&&_--,(w&1)===1&&w--),a={x:_,y:w,width:g-_+1,height:p-w+1};const m=i[r];m.rect=a,m.blend=1,m.img=new Uint8Array(a.width*a.height*4),i[r-1].dispose===0?(A._copyTile(l,n,t,m.img,a.width,a.height,-a.x,-a.y,0),A.encode._prepareDiff(d,n,t,m.img,a)):A._copyTile(d,n,t,m.img,a.width,a.height,-a.x,-a.y,0)},A.encode._prepareDiff=function(e,n,t,i,r){A._copyTile(e,n,t,i,r.width,r.height,-r.x,-r.y,2)},A.encode._filterZero=function(e,n,t,i,r,a,o){const s=[];let c=[0,1,2,3,4];a!==-1?c=[a]:(n*i>5e5||t===1)&&(c=[0]);let l;o&&(l={level:0});const h=r.length>1e7&&_n!=null?_n:ss;for(let f=0;f<c.length;f++){for(let _=0;_<n;_++)A.encode._filterLine(r,e,_,i,t,c[f]);s.push(h.deflate(r,l))}let u,d=1e9;for(let f=0;f<s.length;f++)s[f].length<d&&(u=f,d=s[f].length);return s[u]},A.encode._filterLine=function(e,n,t,i,r,a){const o=t*i;let s=o+t;const c=A.decode._paeth;if(e[s]=a,s++,a===0)if(i<500)for(let l=0;l<i;l++)e[s+l]=n[o+l];else e.set(new Uint8Array(n.buffer,o,i),s);else if(a===1){for(let l=0;l<r;l++)e[s+l]=n[o+l];for(let l=r;l<i;l++)e[s+l]=n[o+l]-n[o+l-r]+256&255}else if(t===0){for(let l=0;l<r;l++)e[s+l]=n[o+l];if(a===2)for(let l=r;l<i;l++)e[s+l]=n[o+l];if(a===3)for(let l=r;l<i;l++)e[s+l]=n[o+l]-(n[o+l-r]>>1)+256&255;if(a===4)for(let l=r;l<i;l++)e[s+l]=n[o+l]-c(n[o+l-r],0,0)+256&255}else{if(a===2)for(let l=0;l<i;l++)e[s+l]=n[o+l]+256-n[o+l-i]&255;if(a===3){for(let l=0;l<r;l++)e[s+l]=n[o+l]+256-(n[o+l-i]>>1)&255;for(let l=r;l<i;l++)e[s+l]=n[o+l]+256-(n[o+l-i]+n[o+l-r]>>1)&255}if(a===4){for(let l=0;l<r;l++)e[s+l]=n[o+l]+256-c(0,n[o+l-i],0)&255;for(let l=r;l<i;l++)e[s+l]=n[o+l]+256-c(n[o+l-r],n[o+l-i],n[o+l-r-i])&255}}},A.crc={table:function(){const e=new Uint32Array(256);for(let n=0;n<256;n++){let t=n;for(let i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[n]=t}return e}(),update:function(e,n,t,i){for(let r=0;r<i;r++)e=A.crc.table[(e^n[t+r])&255]^e>>>8;return e},crc:function(e,n,t){return A.crc.update(4294967295,e,n,t)^4294967295}},A.quantize=function(e,n){const t=new Uint8Array(e),i=t.slice(0),r=new Uint32Array(i.buffer),a=A.quantize.getKDtree(i,n),o=a[0],s=a[1],c=A.quantize.planeDst,l=t,h=r,u=l.length,d=new Uint8Array(t.length>>2);let f;if(t.length<2e7)for(let _=0;_<u;_+=4){const w=l[_]*.00392156862745098,g=l[_+1]*(1/255),p=l[_+2]*(1/255),m=l[_+3]*(1/255);f=A.quantize.getNearest(o,w,g,p,m),d[_>>2]=f.ind,h[_>>2]=f.est.rgba}else for(let _=0;_<u;_+=4){const w=l[_]*.00392156862745098,g=l[_+1]*(1/255),p=l[_+2]*(1/255),m=l[_+3]*(1/255);for(f=o;f.left;)f=c(f.est,w,g,p,m)<=0?f.left:f.right;d[_>>2]=f.ind,h[_>>2]=f.est.rgba}return{abuf:i.buffer,inds:d,plte:s}},A.quantize.getKDtree=function(e,n,t){t===null&&(t=1e-4);const i=new Uint32Array(e.buffer),r={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=A.quantize.stats(e,r.i0,r.i1),r.est=A.quantize.estats(r.bst);const a=[r];for(;a.length<n;){let o=0,s=0;for(let f=0;f<a.length;f++)a[f].est.L>o&&(o=a[f].est.L,s=f);if(o<t)break;const c=a[s],l=A.quantize.splitPixels(e,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=A.quantize.stats(e,u.i0,u.i1),u.est=A.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 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,a[s]=u,a.push(d)}a.sort(function(o,s){return s.bst.N-o.bst.N});for(let o=0;o<a.length;o++)a[o].ind=o;return[r,a]},A.quantize.getNearest=function(e,n,t,i,r){if(e.left==null)return e.tdst=A.quantize.dist(e.est.q,n,t,i,r),e;const a=A.quantize.planeDst(e.est,n,t,i,r);let o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);const c=A.quantize.getNearest(o,n,t,i,r);if(c.tdst<=a*a)return c;const l=A.quantize.getNearest(s,n,t,i,r);return l.tdst<c.tdst?l:c},A.quantize.planeDst=function(e,n,t,i,r){const a=e.e;return a[0]*n+a[1]*t+a[2]*i+a[3]*r-e.eMq},A.quantize.dist=function(e,n,t,i,r){const a=n-e[0],o=t-e[1],s=i-e[2],c=r-e[3];return a*a+o*o+s*s+c*c},A.quantize.splitPixels=function(e,n,t,i,r,a){const o=A.quantize.vecDot;for(i-=4;t<i;){for(;o(e,t,r)<=a;)t+=4;for(;o(e,i,r)>a;)i-=4;if(t>=i)break;const s=n[t>>2];n[t>>2]=n[i>>2],n[i>>2]=s,t+=4,i-=4}for(;o(e,t,r)>a;)t-=4;return t+4},A.quantize.vecDot=function(e,n,t){return e[n]*t[0]+e[n+1]*t[1]+e[n+2]*t[2]+e[n+3]*t[3]},A.quantize.stats=function(e,n,t){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],a=t-n>>2;for(let o=n;o<t;o+=4){const s=e[o]*.00392156862745098,c=e[o+1]*(1/255),l=e[o+2]*(1/255),h=e[o+3]*(1/255);r[0]+=s,r[1]+=c,r[2]+=l,r[3]+=h,i[0]+=s*s,i[1]+=s*c,i[2]+=s*l,i[3]+=s*h,i[5]+=c*c,i[6]+=c*l,i[7]+=c*h,i[10]+=l*l,i[11]+=l*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:r,N:a}},A.quantize.estats=function(e){const n=e.R,t=e.m,i=e.N,r=t[0],a=t[1],o=t[2],s=t[3],c=i===0?0:1/i,l=[n[0]-r*r*c,n[1]-r*a*c,n[2]-r*o*c,n[3]-r*s*c,n[4]-a*r*c,n[5]-a*a*c,n[6]-a*o*c,n[7]-a*s*c,n[8]-o*r*c,n[9]-o*a*c,n[10]-o*o*c,n[11]-o*s*c,n[12]-s*r*c,n[13]-s*a*c,n[14]-s*o*c,n[15]-s*s*c],h=l,u=A.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],f=0,_=0;if(i!==0)for(let p=0;p<16&&(d=u.multVec(h,d),_=Math.sqrt(u.dot(d,d)),d=u.sml(1/_,d),!(p!==0&&Math.abs(_-f)<1e-9));p++)f=_;const w=[r*c,a*c,o*c,s*c],g=u.dot(u.sml(255,w),d);return{Cov:l,q:w,e:d,L:f,eMq255:g,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(e,n){return[e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3],e[4]*n[0]+e[5]*n[1]+e[6]*n[2]+e[7]*n[3],e[8]*n[0]+e[9]*n[1]+e[10]*n[2]+e[11]*n[3],e[12]*n[0]+e[13]*n[1]+e[14]*n[2]+e[15]*n[3]]},dot:function(e,n){return e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3]},sml:function(e,n){return[e*n[0],e*n[1],e*n[2],e*n[3]]}},A.encode.concatRGBA=function(e){let n=0;for(let r=0;r<e.length;r++)n+=e[r].byteLength;const t=new Uint8Array(n);let i=0;for(let r=0;r<e.length;r++){const a=new Uint8Array(e[r]),o=a.length;for(let s=0;s<o;s+=4){let c=a[s],l=a[s+1],h=a[s+2];const u=a[s+3];u===0&&(c=l=h=0),t[i+s]=c,t[i+s+1]=l,t[i+s+2]=h,t[i+s+3]=u}i+=o}return t.buffer};const Kt=(e,n)=>{const t=new Image;t.onload=function(){n(null,{width:t.width,height:t.height})},t.onerror=function(i){n(i,null)},t.src=e},cs=(e,n)=>{e||n("no files",null);for(let t=0,i=e.length;t<i;t++){const r=e[t],{type:a}=r,o=a.split("/");if(o[0]!=="image")return;let s=o[1].toUpperCase();const c=new FileReader;c.onload=function(l){const h=l.target.result,u=zi(h);u&&(s=u);const d=new Blob([h]);Jt(d,function(f){f?Kt(f,_=>{if(_){const w=Qt(f,_.width,_.height);if(w){const g={name:r.name,fileType:s,size:r.size,width:_.width,height:_.height,imgUrl:f,imageData:w,blob:d};n(null,g)}else n("no imageData",null)}else n("no image raw info",null)}):n("no image url",null)})},c.readAsArrayBuffer(r)}},zi=e=>{let n="";if(e){const i=new DataView(e).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},Jt=(e,n)=>{if(!e){n("no obj",null);return}const t=new FileReader;t.onload=function(i){i.target?n(null,i.target.result):n("can't read",null)},t.readAsDataURL(e)},Qt=(e,n,t)=>{if(e&&n&&t){const i=new Image;i.src=e;const r=document.createElement("canvas"),a=r.getContext("2d");return r.width=n,r.height=t,a.drawImage(i,0,0,n,t),a.getImageData(0,0,n,t)}return null},fs=(e,n=0,t=0)=>{if(e&&n&&t){const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.drawImage(e,0,0,n,t),r.getImageData(0,0,n,t)}return null},hs=(e,n=0,t=0)=>{if(e&&n&&t){const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.drawImage(e,0,0,n,t),r.getImageData(0,0,n,t)}return null},ds=e=>{const n=e.width,t=e.height,i=n*t*3,r=i+54,a=[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,n&255,n>>8&255,n>>16&255,n>>24&255,t&255,t>>8&255,t>>16&255,t>>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],s=(4-n*3%4)%4,c=e.data;let l="";const h=n<<2;let u=t;const d=String.fromCharCode;do{const _=h*(u-1);let w="";for(let g=0;g<n;g++){const p=g<<2;w+=d(c[_+p+2])+d(c[_+p+1])+d(c[_+p])}for(let g=0;g<s;g++)w+=String.fromCharCode(0);l+=w}while(--u);function f(_){if(!window.btoa)throw"btoa undefined";let w="";if(typeof _=="string")w=_;else for(let g=0;g<_.length;g++)w+=String.fromCharCode(_[g]);return btoa(w)}return f(a.concat(o))+f(l)},us=e=>{if(!e)return null;const{width:n,height:t}=e,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.putImageData(e,0,0,0,0,n,t),i.toDataURL("image/png")},_s=(e,n="PNG",t)=>{if(!e){t("no imageData",null);return}const{width:i,height:r}=e,a=document.createElement("canvas"),o=a.getContext("2d");a.width=i,a.height=r,o.putImageData(e,0,0,0,0,i,r);const s=`image/${n?n.toLowerCase():"png"}`;a.toBlob(c=>{t(null,c)},s,1)},gs=(e,n)=>{Jt(e,function(t,i){if(i){const r=new Image;r.src=i}else n(t)})},ws=(e,n)=>{if(!e)return;const t=document.createElement("a");t.style.visibility="hidden",document.body.appendChild(t),t.download=n;const i=window.URL.createObjectURL(e);t.href=i,t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(i)};function ps(e,n){const t=new Image;t.onload=function(){n(null,t)},t.onerror=function(){n(new Error("Could not load image at "+e),null)},t.src=e}function ms(){const e=document.getElementsByTagName("img"),n=tt().height;let t=0;return()=>{for(let i=t;i<e.length;i++)e[i].getBoundingClientRect().top<n&&(e[i].src=e[i].getAttribute("data-src")??"",t=i+1)}}function bs(e,n){Kt(e,t=>{if(!t)return n("no image info",null);const i=Qt(e,t.width,t.height);if(!i)return n("no canvas image info",null);const r=i.data;let a=0;const o=[],s=[],c=[];for(let d=0;d<r.length;d+=4)o[a]=r[d],s[a]=r[d+1],c[a]=r[d+2],a+=1;const l=Wt(o),h=Wt(s),u=Wt(c);return n(null,"rgb("+l+","+h+","+u+")")})}function Wt(e){const n={},t=[],i=[];for(let s=0;s<e.length;s++)n[e[s]]?t.push(e[s]):n[e[s]]=1;let r=0;for(let s=0;s<t.length;s++){r=0;for(let c=0;c<t.length;c++)t[s]===t[c]&&(r+=1),i[s]=r}const a=Math.max.apply(null,i);let o=0;for(;o<i.length;o++)if(i[o]===a)return;return t[o]}const vs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[(o*t+t-s-1)*4],r[c+1]=n[(o*t+t-s-1)*4+1],r[c+2]=n[(o*t+t-s-1)*4+2],r[c+3]=n[(o*t+t-s-1)*4+3]}return new ImageData(r,t,i)}return null},ys=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[((i-o-1)*t+s)*4],r[c+1]=n[((i-o-1)*t+s)*4+1],r[c+2]=n[((i-o-1)*t+s)*4+2],r[c+3]=n[((i-o-1)*t+s)*4+3]}return new ImageData(r,t,i)}return null},xs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<t;o++)for(let s=0;s<i;s++){const c=(o*i+s)*4;r[c]=n[(s*t+t-o-1)*4],r[c+1]=n[(s*t+t-o-1)*4+1],r[c+2]=n[(s*t+t-o-1)*4+2],r[c+3]=n[(s*t+t-o-1)*4+3]}return new ImageData(r,i,t)}return null},Is=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<t;o++)for(let s=0;s<i;s++){const c=(o*i+s)*4;r[c]=n[((i-s-1)*t+o)*4],r[c+1]=n[((i-s-1)*t+o)*4+1],r[c+2]=n[((i-s-1)*t+o)*4+2],r[c+3]=n[((i-s-1)*t+o)*4+3]}return new ImageData(r,i,t)}return null},ks=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+1]+n[c+2])/3;r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Es=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,h=(n[c]+n[c+1]+n[c+2])/3>127?255:0;r[c]=h,r[c+1]=h,r[c+2]=h,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},As=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=255-n[c],r[c+1]=255-n[c+1],r[c+2]=255-n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ts=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=0,r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ds=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=n[c+1],r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ss=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=0,r[c+2]=n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Cs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=n[c+1],r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Us=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=0,r[c+2]=n[c+1],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Rs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=n[c+1],r[c+2]=n[c+1],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Fs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c+1]+n[c+2])/2;r[c]=n[c],r[c+1]=l,r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ms=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+2])/2;r[c]=l,r[c+1]=n[c+1],r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ls=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+1])/2;r[c]=l,r[c+1]=l,r[c+2]=n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},zs=e=>e?Pi(e,[-1,-1,-1,-1,9,-1,-1,-1,-1]):null,Ps=e=>e?Pi(e,[-1,-1,-1,-1,8,-1,-1,-1,-1]):null,Os=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=n[c+1],r[c+2]=n[c+2],r[c+3]=255}return new ImageData(r,t,i)}return null},Bs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;if(n[c+3]===0)r[c]=255,r[c+1]=255,r[c+2]=255,r[c+3]=255;else{const l=Oi([n[c],n[c+1],n[c+2],n[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,t,i)}return null},Hs=(e,n,t,i,r,a=!1,o)=>{if(e){const{data:s,width:c,height:l}=e;let h=r,u=i,d=n,f=t;if(h<0?h=0:h>c&&(h=c),u<0?u=0:u>l&&(u=l),d<1?d=1:d>c&&(d=c),f<1?f=1:f>l&&(f=l),h+d>c&&(d=c-h),u+f>l&&(f=l-u),a){const _=new Uint8ClampedArray(s.length);for(let g=0;g<l;g++)for(let p=0;p<c;p++){const m=(g*c+p)*4;p>=h&&p<=h+d&&g>=u&&g<=u+f?(_[m]=s[m],_[m+1]=s[m+1],_[m+2]=s[m+2],_[m+3]=s[m+3]):(_[m]=255,_[m+1]=255,_[m+2]=255,_[m+3]=o&&["JPG","JPEG"].includes(o.toUpperCase())?255:0)}return new ImageData(_,c,l)}else{const _=new Uint8ClampedArray(d*f*4);for(let g=u;g<=u+f;g++)for(let p=h;p<=h+d;p++){const m=((g-u)*d+p-h)*4,y=(g*c+p)*4;_[m]=s[y],_[m+1]=s[y+1],_[m+2]=s[y+2],_[m+3]=s[y+3]}return new ImageData(_,d,f)}}return null},Zs=(e,n,t,i)=>{if(e){const{data:r,width:a,height:o}=e;let s=n;s>Math.floor(a/2)&&(s=Math.floor(a/2)),s>Math.floor(o/2)&&(s=Math.floor(o/2)),s<0&&(s=0);const c=new Uint8ClampedArray(r.length);for(let h=0;h<o;h++)for(let u=0;u<a;u++){const d=(h*a+u)*4;let f=-1;u<s?h<s?f=Math.sqrt(Math.pow(s-u-1,2)+Math.pow(s-h-1,2)):h>o-s-1&&(f=Math.sqrt(Math.pow(s-u-1,2)+Math.pow(h-(o-s),2))):u>a-s-1&&(h<s?f=Math.sqrt(Math.pow(u-(a-s),2)+Math.pow(s-h-1,2)):h>o-s-1&&(f=Math.sqrt(Math.pow(u-(a-s),2)+Math.pow(h-(o-s),2)))),Math.round(f)>s?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||t.toUpperCase()==="PNG"?0:255):(c[d]=r[d],c[d+1]=r[d+1],c[d+2]=r[d+2],c[d+3]=i||t.toUpperCase()==="PNG"?r[d+3]:255)}return new ImageData(c,a,o)}return null},$s=(e,n,t,i,r,a=1e4)=>{if(e){const o=new Image;o.src=e;const s=document.createElement("canvas"),c=s.getContext("2d");return s.width=a,s.height=a,c.drawImage(o,0,0,n,t,0,0,i,r),c.getImageData(0,0,i,r)}return null},Ns=(e,n)=>{if(e){const{data:t,width:i,height:r}=e,a=new Uint8ClampedArray(t.length);for(let s=0;s<r;s++)for(let c=0;c<i;c++){const l=(s*i+c)*4;a[l]=Math.max(Math.min(t[l]+n,255),0),a[l+1]=Math.max(Math.min(t[l+1]+n,255),0),a[l+2]=Math.max(Math.min(t[l+2]+n,255),0),a[l+3]=t[l+3]}return new ImageData(a,i,r)}return null},js=(e,n,t=!1)=>{if(e){const{data:i,width:r,height:a}=e,o=new Uint8ClampedArray(i.length);for(let c=0;c<a;c++)for(let l=0;l<r;l++){const h=(c*r+l)*4;i[h+3]===0?(o[h]=255,o[h+1]=255,o[h+2]=255):(o[h]=i[h],o[h+1]=i[h+1],o[h+2]=i[h+2]);let u=i[h+3];t?u=Math.max(Math.min(Math.floor(255*n),255),0):u=Math.max(Math.min(Math.floor(u+255*n),255),0),o[h+3]=u}return new ImageData(o,r,a)}return null},qs=(e,n,t,i)=>{if(e&&n){const{data:r,width:a,height:o}=e,{data:s,width:c,height:l}=n;let h=t,u=i;t+l>o&&(h=o-l),i+c>a&&(u=a-c);const d=new Uint8ClampedArray(r.length);for(let _=0;_<o;_++)for(let w=0;w<a;w++){const g=(_*a+w)*4;if(w<u||w>u+c||_<=h||_>=h+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 p=(_*a+w-((h+1)*a+(_-(h+1))*(a-c))+c-u-1)*4,m=[s[p],s[p+1],s[p+2],s[p+3]],y=[r[g],r[g+1],r[g+2],r[g+3]],b=Oi(m,y);d[g]=b[0],d[g+1]=b[1],d[g+2]=b[2],d[g+3]=b[3]}}return new ImageData(d,a,o)}return null},Gs=(e,n,t,i,r,a=10)=>{if(e){const{data:o,width:s,height:c}=e;let l=r,h=i,u=n,d=t;l<0?l=0:l>s&&(l=s),h<0?h=0:h>c&&(h=c),u<1?u=1:u>s&&(u=s),d<1?d=1:d>c&&(d=c),l+u>s&&(u=s-l),h+d>c&&(d=c-h);const f=new Uint8ClampedArray(o.length);for(let w=0;w<c;w++)for(let g=0;g<s;g++){const p=(w*s+g)*4;if(g>=l&&g<=l+u&&w>=h&&w<=h+d){const m=Math.floor((g-l)/a),y=Math.floor((w-h)/a);let b=Math.floor(a*(m+1)-a/2+l),I=Math.floor(a*(y+1)-a/2+h);b>s-1&&(b=s-1),I>c-1&&(I=c-1);const x=(I*s+b)*4;f[p]=o[x],f[p+1]=o[x+1],f[p+2]=o[x+2],f[p+3]=o[x+3]}else f[p]=o[p],f[p+1]=o[p+1],f[p+2]=o[p+2],f[p+3]=o[p+3]}return new ImageData(f,s,c)}return null},Xs=async(e,n,t,i,r,a)=>{if(e&&i){const o=r/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const s=new Image;s.src=e;const c=document.createElement("canvas"),l=c.getContext("2d");c.width=n,c.height=t,l.drawImage(s,0,0,n,t),c.toBlob(h=>{a&&a(h)},`image/${i.toLowerCase()}`,o)}else{const s=Math.floor(o*256),c=A.encode([e.data.buffer],n,t,s),l=new Blob([c]);a&&a(l)}}else a&&a(null)},Vs=(e,n,t={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(e){if(n&&t){const{data:i,width:r,height:a}=e,{data:o}=n,s=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:l}=t;for(let u=0;u<a;u++)for(let d=0;d<r;d++){const f=(u*r+d)*4,_=o[f],w=o[f+1],g=o[f+2],p=o[f+3];_===c.r&&w===c.g&&g===c.b&&p===c.a&&l.a!==0?(s[f]=l.r,s[f+1]=l.g,s[f+2]=l.b,s[f+3]=l.a):(s[f]=i[f],s[f+1]=i[f+1],s[f+2]=i[f+2],s[f+3]=i[f+3])}return new ImageData(s,r,a)}return e}return null},Pi=(e,n)=>{if(e){const{data:t,width:i,height:r}=e,a=new Uint8ClampedArray(t.length);for(let s=0;s<r;s++)for(let c=0;c<i;c++){const l=(s*i+c)*4;for(let h=0;h<3;h++){const u=l+h;c===0||c===i-1||s===0||s===r-1?a[u]=t[u]:a[u]=n[0]*t[u-i*4-4]+n[1]*t[u-i*4]+n[2]*t[u-i*4+4]+n[3]*t[u-4]+n[4]*t[u]+n[5]*t[u+4]+n[6]*t[u+i*4-4]+n[7]*t[u+i*4]+n[8]*t[u+i*4+4]}a[l+3]=t[l+3]}return new ImageData(a,i,r)}return null},Oi=(e,n)=>{if(e&&e.length===4&&n&&n.length===4){const t=e[3],i=n[3];if(t===255||i===0)return e;if(t===0)return n;{const r=t/255,a=i/255,o=Math.max(Math.min(Math.floor(e[0]*r+n[0]*a*(1-r)),255),0),s=Math.max(Math.min(Math.floor(e[1]*r+n[1]*a*(1-r)),255),0),c=Math.max(Math.min(Math.floor(e[2]*r+n[2]*a*(1-r)),255),0),l=Math.max(Math.min(Math.floor((r+a*(1-r))*255),255),0);return[o,s,c,l]}}return[255,255,255,255]};function Ys(){var e=null;if(window.ActiveXObject)for(var n=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],t=0;t<n.length;t++)try{e=new window.ActiveXObject(n[t]);break}catch{continue}else e=new XMLHttpRequest;return e}function Ks(e){if(e.action){if(e.method.toLowerCase()==="post")return{url:e.action,data:new FormData(e)};for(var n="",t=0;t<e.elements.length;t++){var i=e.elements[t];if(i.hasAttribute("name")){var r=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(r==="FILE")for(var a=0;a<i.files.length;n+="&"+escape(i.name)+"="+escape(i.files[a++].name));else(r!=="RADIO"&&r!=="CHECKBOX"||i.checked)&&(n+="&"+escape(i.name)+"="+escape(i.value))}}return{url:e.action.replace(/(?:\?.*)?$/,n.replace(/^&/,"?")),data:null}}}function Js(e,n){return new Promise((t,i)=>{var r=new XMLHttpRequest,a=function(){i("The request for "+e+" is timed out for "+n+".")},o=function(s){r.readyState===4&&(r.status===200?t(r.response):i(r.statusText))};r.open("GET",e),r.onload=o,r.timeout=n,r.ontimeout=a,r.upload.addEventListener("progress",function(s){if(s.lengthComputable){const c=Math.round(s.loaded*100/s.total);console.log(c+"%")}},!1),r.upload.addEventListener("load",function(s){},!1),r.send(null)})}function Qs(e,n,t){return fetch(e,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},n)).then(i=>i.json())}function Ws(e,n){var t=new XMLHttpRequest;t.open("HEAD",e),t.filepath=e,t.callback=n,t.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))},t.send()}function ec(e,n){if(n)window.localStorage.setItem(e,typeof n=="string"?n:JSON.stringify(n));else return window.localStorage.getItem(e)}const tc=(e={x:0,y:0})=>window.scrollTo(e.x,e.y);function _t(e){try{window.history.scrollRestoration=e}catch{}}"scrollRestoration"in window.history&&(_t("manual"),window.addEventListener("beforeunload",()=>{_t("auto")}),window.addEventListener("load",()=>{_t("manual")}));let gt;const Bi=new WeakMap;function en(e,n){let t=Bi.get(e);t||(t=new Map,Bi.set(e,t));let i=t.get(n);return i||(i=new Hi,t.set(n,i)),i}class Hi{subscribers;constructor(){this.subscribers=new Set}depend(){gt&&this.subscribers.add(gt)}notify(){this.subscribers.forEach(n=>n())}}function nc(e){gt=e,e(),gt=null}function ic(e){return Object.keys(e).forEach(n=>{let t=e[n];const i=en(e,n);Object.defineProperty(e,n,{get(){return i.depend(),t},set(r){r!=t&&(t=r,i.notify())}})}),e}function rc(e){return new Proxy(e,{get(n,t,i){return en(e,t).depend(),Reflect.get(n,t,i)},set(n,t,i,r){const a=en(e,t);return e[t]!=i&&(e[t]=i,a.notify()),Reflect.set(n,t,i,r)}})}return v.BaseError=et,v.DOMKeyboardKeyCode=oe,v.Dep=Hi,v.EnvironmentError=nn,v.FileSelectCancelError=wt,v.IllegalFileError=rn,v.TWEEN=dn,v.WebSocket=Ue,v.addEventListener=Jr,v.addWatermark=qs,v.animateCanvas=da,v.animateInWeb=bt,v.animateTWEEN=ua,v.blobToExport=ws,v.blobToImage=gs,v.changeBrightness=Ns,v.changeDiaphaneity=js,v.changeSize=$s,v.clearCookies=or,v.compression=Xs,v.copyToClipboard=Or,v.createXMLHttpRequest=Ys,v.fetchUseFetch=Qs,v.fetchUseXMLHttpRequest=Js,v.fileOrBlobToDataURL=Jt,v.flipSideToSide=vs,v.flipUpsideDown=ys,v.fn2ObjectURL=er,v.getBrowserClient=pr,v.getBrowserClientVersion=mr,v.getBrowserLanguage=vr,v.getCanvasImgData=Qt,v.getCanvasImgDataByBitmap=hs,v.getCanvasImgDataByVideo=fs,v.getCookie=rr,v.getCookieObject=ar,v.getDocumentElement=be,v.getElementLeftInPage=ln,v.getElementPositionInPage=fr,v.getElementPositionInPage2=cr,v.getElementPositionInViewport=hr,v.getElementTopInPage=sn,v.getFileExtension=an,v.getFileType=Wi,v.getFixedWidthText=Xr,v.getFormElementData=Ks,v.getImageDataByAIData=Vs,v.getImageMainColor=bs,v.getImageType=zi,v.getImgInfo=cs,v.getMouseButton=gr,v.getMousePositionInPage=ur,v.getMousePositionInViewport=_r,v.getOperatingSystem=Re,v.getOperatingSystemVersion=wr,v.getPageClient=mt,v.getPageScroll=pt,v.getPageSize=lr,v.getPageVerticalScrollPercent=dr,v.getRawImgInfo=Kt,v.getRelatedTarget=na,v.getSelectedText=Br,v.getTarget=ta,v.getTextWidth=Gr,v.getTimeZone=yr,v.getUrlParams=Rr,v.getUrlParams2=Fr,v.getUserGeolocationPromise=br,v.getViewportSize=tt,v.handleDragAndDropFiles=$i,v.handleHashChange=Lr,v.handleHistoryChange=zr,v.handleInputFiles=Zi,v.handleURLChange=Mr,v.htmlDecode=Yr,v.htmlEncode=Vr,v.ifWebFileHasChanged=Ws,v.imageDataToBitmap=ds,v.imageDataToBlob=_s,v.imageDataToDataURL=us,v.isAndroid=fn,v.isAppleDevice=xr,v.isAudio=Xi,v.isBrowser=Er,v.isBrowserSupportFileAPI=ia,v.isDarkMode=kr,v.isElementInViewport=sr,v.isExcelDocument=Yi,v.isFocus=Hr,v.isIOS=cn,v.isImage=qi,v.isJsonDocument=Ji,v.isMobile=Ir,v.isNode=Ar,v.isPowerPointDocument=Ki,v.isTabInView=$r,v.isURL=Ur,v.isURLRelative=Cr,v.isVideo=Gi,v.isWordDocument=Vi,v.isXmlDocument=Qi,v.jpgToPng=Os,v.lazyloadImages=ms,v.leftRotate=xs,v.loadImage=ps,v.loadScript=qr,v.localstorage=ec,v.marginSharpen=Ps,v.microTask=nr,v.mosaic=Gs,v.navigateBack=Nr,v.navigateBack2=jr,v.onDocumentReady=tr,v.patchDOM=on,v.pngToJpg=Bs,v.preventDefault=ea,v.radiusClip=Zs,v.reactiveVue2=ic,v.reactiveVue3=rc,v.readeFile=ji,v.rectClip=Hs,v.removeEventListener=Qr,v.rightRotate=Is,v.scrollTo=tc,v.selectFile=Ni,v.setCookie=ir,v.setRem=Tr,v.setScrollRestoration=_t,v.setTheme=Pr,v.sharpen=zs,v.siblings=Zr,v.stopPropagation=Wr,v.templateCompile=Kr,v.toBlackAndWhite=Es,v.toBlue=Ss,v.toBlueAndGreen=Rs,v.toBlueAndGrey=Ls,v.toGreen=Ds,v.toGreenAndGrey=Ms,v.toGrey=ks,v.toOpposite=As,v.toRed=Ts,v.toRedAndBlue=Us,v.toRedAndGreen=Cs,v.toRedAndGrey=Fs,v.urlsafe_b64decode=Sr,v.urlsafe_b64encode=Dr,v.waitForStyleSheetsLoaded=ra,v.watchEffect=nc,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),v}({});
|
|
12
12
|
//# sourceMappingURL=zyzgroup_core_web.iife.js.map
|