@terreno/admin-spa 57.0.0-beta.1 → 57.1.0
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/+not-found.html +2 -2
- package/dist/[model]/[id].html +2 -2
- package/dist/[model]/create.html +2 -2
- package/dist/[model]/index.html +2 -2
- package/dist/_expo/static/js/web/{Network-206f18d400cdc9d9857902526158d4a8.js → Network-5396399a44d81917a96870fba3b4f15c.js} +3 -3
- package/dist/_expo/static/js/web/{Print-f183959ce80df3b1977b5d67fc2add27.js → Print-4360b75994547be3800e044fd2d182d3.js} +2 -2
- package/dist/_expo/static/js/web/{WebBrowser-12b7bc5d7a2233d3ed4e93830d7ff417.js → WebBrowser-645d8d44dc5dd9ff77a0690be990fe7f.js} +3 -3
- package/dist/_expo/static/js/web/{entry-9a970903d9efea303dfd0a70b18f1028.js → entry-16f06108b3a74c35dabe4dd8df3295ca.js} +1765 -1639
- package/dist/_expo/static/js/web/{html2canvas-c850b811d44d851503b4e5d662187727.js → html2canvas-8740cb909d92bcbcd5128c4265ae890c.js} +1 -1
- package/dist/_expo/static/js/web/{index-830f6663b4efaf1a0558b458daa2e5cd.js → index-379cff9e48252edc8efaf87d0f3af68f.js} +170 -170
- package/dist/_expo/static/js/web/{index-917b1bd4bb6bd08f4662fd0743422564.js → index-d1afbab78fb2d089eb73357a2161f1a1.js} +4 -4
- package/dist/_expo/static/js/web/{index-1ff921417694296ffccfbf682c4151a0.js → index-fd473103334e250c71c3360dd3b47553.js} +3 -3
- package/dist/_expo/static/js/web/{jspdf.es-95b137d62393a35602fe7c1cc0c76398.js → jspdf.es-ad9075197ab8d11de02a2ba4ee455643.js} +22 -22
- package/dist/_expo/static/js/web/{purify-3a2dc07027f1293205584001234334f0.js → purify-d9e99834b4816b312cfc51c46b30f0dd.js} +1 -1
- package/dist/_sitemap.html +2 -2
- package/dist/configuration.html +2 -2
- package/dist/forbidden.html +2 -2
- package/dist/index.html +2 -2
- package/dist/login.html +2 -2
- package/dist/roles/index.html +381 -0
- package/dist/scripts.html +2 -2
- package/dist/version-config.html +2 -2
- package/package.json +7 -6
|
@@ -226,25 +226,25 @@ __d(function(t,e,r,n,i,a,o){"use strict";function s(t){return t&&t.__esModule?t:
|
|
|
226
226
|
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
|
227
227
|
* MIT License
|
|
228
228
|
*/
|
|
229
|
-
(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,a,o,s,u,c=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),r=e>>8,n=d[r];return void 0!==n?c[256*n+(255&e)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=b(t.charAt(r))))return!1;if("R"===e)return!0}return!1},w=function(t,e,o,s){var u,c,l,h,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(u=o[s-1])&&"AN"!==u||"EN"!==(c=e[s+1])&&"AN"!==c?f="N":m&&(c="AN"),f=c===u?c:"N";break;case"ES":f="EN"===(u=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(l=s+1,h=e.length;l<h&&"ET"===e[l];)l++;f=l<h&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!a){for(h=e.length,l=s+1;l<h&&"NSM"===e[l];)l++;if(l<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(u=e[l],p&&("R"===u||"AL"===u)){f="R";break}}}f=s<1||"B"===(u=e[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,f=v;break;case"S":n=!0,f="N"}return f},N=function(t,e,r){var n=t.split("");return r&&L(n,r,{hiLevel:v}),n.reverse(),e&&e.reverse(),n.join("")},L=function(t,e,i){var a,o,s,u,c,d=-1,p=t.length,g=0,y=[],N=v?h:l,L=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)L[o]=b(t[o]);for(s=0;s<p;s++){if(c=g,y[s]=w(t,L,y,s),a=240&(g=N[c][f[y[s]]]),g&=15,e[s]=u=N[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(N[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=u;d=-1}"B"===L[s]&&(e[s]=0),i.hiLevel|=u}n&&(function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=v;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=v}})(L,e,p)},x=function(t,e,n,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!r)return e.reverse(),void(n&&n.reverse());for(var o,s,u,c,l=e.length,h=0;h<l;){if(i[h]>=t){for(u=h+1;u<l&&i[u]>=t;)u++;for(c=h,s=u-1;c<s;c++,s--)o=e[c],e[c]=e[s],e[s]=o,n&&(o=n[c],n[c]=n[s],n[s]=o);h=u}h++}}},A=function(t,e,r){var n=t.split(""),i={hiLevel:v};return r||(r=[]),L(n,r,i),(function(t,e,r){if(0!==r.hiLevel&&u)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=p.indexOf(t[i]))>=0&&(t[i]=p[n+1])})(n,r,i),x(2,n,e,r,i),x(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if((function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===a&&(a=y(t)),void 0===s&&(s=y(t))})(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=N(t,e,r);else if(!i&&o&&s)v=a?1:0,t=A(t,e,r),t=N(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=N(t,e),a?(v=0,t=A(t,e,r)):(v=1,t=A(t,e,r),t=N(t,e));else if(i&&a&&!o&&s)v=1,t=A(t,e,r),t=N(t,e);else if(!i&&!o&&a^s){var n=u;a?(v=1,t=A(t,e,r),v=0,u=!1,t=A(t,e,r),u=n):(v=0,t=A(t,e,r),t=N(t,e),v=1,u=!1,t=A(t,e,r),u=n,t=N(t,e))}}else v=0,t=A(t,e,r);else v=a?1:0,t=A(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=t.isInputRtl,s=t.isOutputRtl,u=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var n=t.options||{};t.mutex,n.lang;var i=[];if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([r.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([r.doBidiReorder(e[a])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])})(V),V.API.TTFFont=(function(){function t(t){var e;if(this.rawData=t,e=this.contents=new we(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new De(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ne(this.contents),this.head=new Ae(this),this.name=new je(this),this.cmap=new _e(this),this.toUnicode={},this.hhea=new Pe(this),this.maxp=new Ce(this),this.hmtx=new Oe(this),this.post=new Fe(this),this.os2=new ke(this),this.loca=new Re(this),this.glyf=new Me(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return a*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t})();var ye,we=(function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t})(),Ne=(function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,u,c,l,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),a=Math.floor(l/s),c=16*f-l,(n=new we).writeInt(this.scalarType),n.writeShort(f),n.writeShort(l),n.writeShort(a),n.writeShort(c),i=16*f,u=n.pos+i,o=null,d=[],e)for(h=e[p],n.writeString(p),n.writeInt(t(h)),n.writeInt(u),n.writeInt(h.length),d=d.concat(h),"head"===p&&(o=u),u+=h.length;u%4;)d.push(0),u++;return n.write(d),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=Be.call(t);t.length%4;)t.push(0);for(n=new we(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e})(),Le={}.hasOwnProperty,xe=function(t,e){for(var r in e)Le.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};ye=(function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var Ae=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new we).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t})(),Se=(function(){function t(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),h=f/2,t.pos+=6,i=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),t.pos+=2,p=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),u=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),c=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),n=(this.length-t.pos+this.offset)/2,o=(function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r})(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===c[s]?a=r+u[s]:0!==(a=o[c[s]/2+(r-d)-(h-s)]||0)&&(a+=u[s]),this.codeMap[r]=65535&a}t.pos=l}return t.encode=function(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m,v,b,y,w,N,L,x,A,S,_,P,k,F,I,j,C,O,B,M,q,E,R,D,T,z,U,H,W,V,G,Y;switch(F=new we,a=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,g=(function(){var t=[];for(d=0;d<256;++d)t.push(0);return t})(),v={0:0},i={},I=0,B=a.length;I<B;I++)null==v[W=t[n=a[I]]]&&(v[W]=++p),i[n]={old:t[n],new:v[t[n]]},g[n]=v[t[n]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:p+1};case"unicode":for(P=[],l=[],b=0,v={},r={},m=u=null,j=0,M=a.length;j<M;j++)null==v[w=t[n=a[j]]]&&(v[w]=++b),r[n]={old:w,new:v[w]},o=v[w]-n,null!=m&&o===u||(m&&l.push(m),P.push(n),u=o),m=n;for(m&&l.push(m),l.push(65535),P.push(65535),S=2*(A=P.length),x=2*Math.pow(Math.log(A)/Math.LN2,2),h=Math.log(x/2)/Math.LN2,L=2*A-x,s=[],N=[],f=[],d=C=0,q=P.length;C<q;d=++C){if(_=P[d],c=l[d],65535===_){s.push(0),N.push(0);break}if(_-(k=r[_].new)>=32768)for(s.push(0),N.push(2*(f.length+A-d)),n=O=_;_<=c?O<=c:O>=c;n=_<=c?++O:--O)f.push(r[n].new);else s.push(k-_),N.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*A+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(x),F.writeUInt16(h),F.writeUInt16(L),U=0,E=l.length;U<E;U++)n=l[U],F.writeUInt16(n);for(F.writeUInt16(0),H=0,R=P.length;H<R;H++)n=P[H],F.writeUInt16(n);for(V=0,D=s.length;V<D;V++)o=s[V],F.writeUInt16(o);for(G=0,T=N.length;G<T;G++)y=N[G],F.writeUInt16(y);for(Y=0,z=f.length;Y<z;Y++)p=f[Y],F.writeUInt16(p);return{charMap:r,subtable:F.data,maxGlyphID:b+1}}},t})(),_e=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Se(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=Se.encode(t,e),(n=new we).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t})(),Pe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t})(),ke=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t})(),Fe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},t})(),Ie=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},je=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,n,i,a,o,s,u,c,l,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=c=0,l=r.length;c<l;i=++c)n=r[i],t.pos=n.offset,u=t.readString(n.length),a=new Ie(u,n),null==s[h=n.nameID]&&(s[h]=[]),s[n.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t})(),Ce=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t})(),Oe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,r,n,i,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i})(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],e=a=0;0<=n?a<n:a>n;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t})(),Be=[].slice,Me=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,u,c,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new we(e.read(n))).readShort(),u=o.readShort(),l=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===a?new Ee(o,u,l,s,c):new qe(o,a,u,l,s,c),this.cache[t]))},t.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)n=t[e[o]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},t})(),qe=(function(){function t(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),Ee=(function(){function t(t,e,r,n,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,r;for(e=new we(Be.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t})(),Re=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="loca",t.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<e.length&&e[i]==a){++i,r[a]=n;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(n+=s)}for(var u=new Array(4*r.length),c=0;c<r.length;++c)u[4*c+3]=255&r[c],u[4*c+2]=(65280&r[c])>>8,u[4*c+1]=(16711680&r[c])>>16,u[4*c]=(4278190080&r[c])>>24;return u},t})(),De=(function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a<o;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m;for(n in r=_e.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=r.charMap)f[(s=m[n]).old]=s.new;for(d in h=r.maxGlyphID,a)d in f||(f[d]=h++);return c=(function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r})(f),l=Object.keys(c).sort(function(t,e){return t-e}),p=(function(){var t,e,r;for(r=[],t=0,e=l.length;t<e;t++)o=l[t],r.push(c[o]);return r})(),i=this.font.glyf.encode(a,p,f),u=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t})();V.API.PDFObject=(function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+(function(){var t,i,a;for(a=[],t=0,i=r.length;t<i;t++)n=r[t],a.push(e.convert(n));return a})().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+r},e})()},2524,{"0":3251,"1":3518,"2":3519,"3":3523,"4":2558,"5":1453,"6":2559,"7":2560,"paths":{"2558":"/console/_expo/static/js/web/html2canvas-c850b811d44d851503b4e5d662187727.js","2559":"/console/_expo/static/js/web/purify-3a2dc07027f1293205584001234334f0.js","2560":"/console/_expo/static/js/web/index-830f6663b4efaf1a0558b458daa2e5cd.js"}});
|
|
230
|
-
__d(function(g,_r,_i2,_a2,_m,_e2,_d2){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"FlateErrorCode",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e2,"Deflate",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e2,"AsyncDeflate",{enumerable:!0,get:function(){return St}}),_e2.deflate=jt,_e2.deflateSync=Mt,Object.defineProperty(_e2,"Inflate",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e2,"AsyncInflate",{enumerable:!0,get:function(){return xt}}),_e2.inflate=At,_e2.inflateSync=Ct,Object.defineProperty(_e2,"Gzip",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e2,"AsyncGzip",{enumerable:!0,get:function(){return Dt}}),_e2.gzip=Ut,_e2.gzipSync=It,Object.defineProperty(_e2,"Gunzip",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(_e2,"AsyncGunzip",{enumerable:!0,get:function(){return Et}}),_e2.gunzip=Zt,_e2.gunzipSync=qt,Object.defineProperty(_e2,"Zlib",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e2,"AsyncZlib",{enumerable:!0,get:function(){return Lt}}),_e2.zlib=function(t,n,e){e||(e=n,n={});'function'!=typeof e&&U(7);return ft(t,n,[et,ot,function(){return[$t]}],function(t){return st($t(t.data[0],t.data[1]))},4,e)},_e2.zlibSync=$t,Object.defineProperty(_e2,"Unzlib",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(_e2,"AsyncUnzlib",{enumerable:!0,get:function(){return Ht}}),_e2.unzlib=Bt,_e2.unzlibSync=Nt,Object.defineProperty(_e2,"compress",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(_e2,"AsyncCompress",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e2,"compressSync",{enumerable:!0,get:function(){return It}}),Object.defineProperty(_e2,"Compress",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e2,"Decompress",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e2,"AsyncDecompress",{enumerable:!0,get:function(){return Wt}}),_e2.decompress=function(t,n,e){e||(e=n,n={});'function'!=typeof e&&U(7);return 31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,e):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,e):Bt(t,n,e)},_e2.decompressSync=function(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ct(t,n):Nt(t,n)},Object.defineProperty(_e2,"DecodeUTF8",{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(_e2,"EncodeUTF8",{enumerable:!0,get:function(){return tn}}),_e2.strToU8=nn,_e2.strFromU8=en,Object.defineProperty(_e2,"ZipPassThrough",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(_e2,"ZipDeflate",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(_e2,"AsyncZipDeflate",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_e2,"Zip",{enumerable:!0,get:function(){return vn}}),_e2.zip=function(t,n,r){r||(r=n,n={});'function'!=typeof r&&U(7);var i={};Yt(t,'',i,n);var o=Object.keys(i),a=o.length,s=0,u=0,f=a,h=new Array(a),c=[],l=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(t,n){mn(function(){r(t,n)})};mn(function(){p=r});var v=function(){var t=new e(u+22),n=s,r=u-s;u=0;for(var i=0;i<f;++i){var o=h[i];try{var a=o.c.length;fn(t,u,o,o.f,o.u,a);var c=30+o.f.length+un(o.extra),l=u+c;t.set(o.c,l),fn(t,s,o,o.f,o.u,a,u,o.m),s+=16+c+(o.m?o.m.length:0),u=l+a}catch(t){return p(t,null)}}hn(t,s,h.length,r,n),p(null,t)};a||v();for(var d=function(t){var n=o[t],e=i[n],r=e[0],f=e[1],d=W(),y=r.length;d.p(r);var b=nn(n),m=b.length,w=f.comment,z=w&&nn(w),O=z&&z.length,k=un(f.extra),S=0==f.level?0:8,j=function(e,r){if(e)l(),p(e,null);else{var i=r.length;h[t]=K(f,{size:y,crc:d.d(),c:r,f:b,m:z,u:m!=n.length||z&&w.length!=O,compression:S}),s+=30+m+k+i,u+=76+2*(m+k)+(O||0)+i,--a||v()}};if(m>65535&&j(U(11,0,1),null),S)if(y<16e4)try{j(null,Mt(r,f))}catch(t){j(t,null)}else c.push(jt(r,f,j));else j(null,r)},y=0;y<f;++y)d(y);return l},_e2.zipSync=function(t,n){n||(n={});var r={},i=[];Yt(t,'',r,n);var o=0,a=0;for(var s in r){var u=r[s],f=u[0],h=u[1],c=0==h.level?0:8,l=(j=nn(s)).length,p=h.comment,v=p&&nn(p),d=v&&v.length,y=un(h.extra);l>65535&&U(11);var b=c?Mt(f,h):f,m=b.length,w=W();w.p(f),i.push(K(h,{size:f.length,crc:w.d(),c:b,f:j,m:v,u:l!=s.length||v&&p.length!=d,o:o,compression:c})),o+=30+l+y+m,a+=76+2*(l+y)+(d||0)+m}for(var z=new e(a+22),O=o,k=a-o,S=0;S<i.length;++S){var j=i[S];fn(z,j.o,j,j.f,j.u,j.c.length);var M=30+j.f.length+un(j.extra);z.set(j.c,j.o+M),fn(z,o,j,j.f,j.u,j.c.length,j.o,j.m),o+=16+M+(j.m?j.m.length:0)}return hn(z,o,i.length,k,O),z},Object.defineProperty(_e2,"UnzipPassThrough",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(_e2,"UnzipInflate",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(_e2,"AsyncUnzipInflate",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(_e2,"Unzip",{enumerable:!0,get:function(){return bn}}),_e2.unzip=function(t,n,r){r||(r=n,n={});'function'!=typeof r&&U(7);var i=[],o=function(){for(var t=0;t<i.length;++t)i[t]()},a={},s=function(t,n){mn(function(){r(t,n)})};mn(function(){s=r});for(var u=t.length-22;101010256!=pt(t,u);--u)if(!u||t.length-u>65558)return s(U(13,0,1),null),o;var f=lt(t,u+8);if(f){var h=f,c=pt(t,u+16),l=4294967295==c||65535==h;if(l){var p=pt(t,u-12);(l=101075792==pt(t,p))&&(h=f=pt(t,p+32),c=pt(t,p+48))}for(var v=n&&n.filter,d=function(n){var r=an(t,c,l),u=r[0],h=r[1],p=r[2],d=r[3],y=r[4],b=r[5],m=on(t,b);c=y;var w=function(t,n){t?(o(),s(t,null)):(n&&(a[d]=n),--f||s(null,a))};if(!v||v({name:d,size:h,originalSize:p,compression:u}))if(u)if(8==u){var z=t.subarray(m,m+h);if(p<524288||h>.8*p)try{w(null,Ct(z,{out:new e(p)}))}catch(t){w(t,null)}else i.push(At(z,{size:p},w))}else w(U(14,'unknown compression type '+u,1),null);else w(null,C(t,m,m+h));else w(null,null)},y=0;y<h;++y)d()}else s(null,{});return o},_e2.unzipSync=function(t,n){for(var r={},i=t.length-22;101010256!=pt(t,i);--i)(!i||t.length-i>65558)&&U(13);var o=lt(t,i+8);if(!o)return{};var a=pt(t,i+16),s=4294967295==a||65535==o;if(s){var u=pt(t,i-12);(s=101075792==pt(t,u))&&(o=pt(t,u+32),a=pt(t,u+48))}for(var f=n&&n.filter,h=0;h<o;++h){var c=an(t,a,s),l=c[0],p=c[1],v=c[2],d=c[3],y=c[4],b=c[5],m=on(t,b);a=y,f&&!f({name:d,size:p,originalSize:v,compression:l})||(l?8==l?r[d]=Ct(t.subarray(m,m+p),{out:new e(v)}):U(14,'unknown compression type '+l):r[d]=C(t,m,m+p))}return r};var t={},n=function(n,e,r,i,o){var a=new Worker(t[e]||(t[e]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:'text/javascript'}))));return a.onmessage=function(t){var n=t.data,e=n.$e$;if(e){var r=new Error(e[0]);r.code=e[1],r.stack=e[2],o(r,null)}else o(null,n)},a.postMessage(r,i),a},e=Uint8Array,r=Uint16Array,i=Int32Array,o=new e([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]),a=new e([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]),s=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,n){for(var e=new r(31),o=0;o<31;++o)e[o]=n+=1<<t[o-1];var a=new i(e[30]);for(o=1;o<30;++o)for(var s=e[o];s<e[o+1];++s)a[s]=s-e[o]<<5|o;return{b:e,r:a}},f=u(o,2),h=f.b,c=f.r;h[28]=258,c[258]=28;for(var l=u(a,0),p=l.b,v=l.r,d=new r(32768),y=0;y<32768;++y){var b=(43690&y)>>1|(21845&y)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,d[y]=((65280&b)>>8|(255&b)<<8)>>1}var m=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var s,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+a[o-1]<<1;if(e){s=new r(1<<n);var f=15-n;for(o=0;o<i;++o)if(t[o])for(var h=o<<4|t[o],c=n-t[o],l=u[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[d[l]>>f]=h}else for(s=new r(i),o=0;o<i;++o)t[o]&&(s[o]=d[u[t[o]-1]++]>>15-t[o]);return s},w=new e(288);for(y=0;y<144;++y)w[y]=8;for(y=144;y<256;++y)w[y]=9;for(y=256;y<280;++y)w[y]=7;for(y=280;y<288;++y)w[y]=8;var z=new e(32);for(y=0;y<32;++y)z[y]=5;var O=m(w,9,0),k=m(w,9,1),S=m(z,5,0),j=m(z,5,1),M=function(t){for(var n=t[0],e=1;e<t.length;++e)t[e]>n&&(n=t[e]);return n},P=function(t,n,e){var r=n/8|0;return(t[r]|t[r+1]<<8)>>(7&n)&e},x=function(t,n){var e=n/8|0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},C=function(t,n,r){return(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length),new e(t.subarray(n,r))},T={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},D=['unexpected EOF','invalid block type','invalid length/literal','invalid distance','stream finished','no stream handler',,'no callback','invalid UTF-8 data','extra field too long','date not in range 1980-2099','filename too long','stream finishing','invalid zip data'],U=function(t,n,e){var r=new Error(n||D[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,U),!e)throw r;return r},I=function(t,n,r,i){var u=t.length,f=i?i.length:0;if(!u||n.f&&!n.l)return r||new e(0);var c=!r,l=c||2!=n.i,v=n.i;c&&(r=new e(3*u));var d=function(t){var n=r.length;if(t>n){var i=new e(Math.max(2*n,t));i.set(r),r=i}},y=n.f||0,b=n.p||0,w=n.b||0,z=n.l,O=n.d,S=n.m,T=n.n,D=8*u;do{if(!z){y=P(t,b,1);var I=P(t,b+1,3);if(b+=3,!I){var F=t[(R=A(b)+4)-4]|t[R-3]<<8,E=R+F;if(E>u){v&&U(0);break}l&&d(w+F),r.set(t.subarray(R,E),w),n.b=w+=F,n.p=b=8*E,n.f=y;continue}if(1==I)z=k,O=j,S=9,T=5;else if(2==I){var Z=P(t,b,31)+257,q=P(t,b+10,15)+4,G=Z+P(t,b+5,31)+1;b+=14;for(var L=new e(G),$=new e(19),_=0;_<q;++_)$[s[_]]=P(t,b+3*_,7);b+=3*q;var H=M($),B=(1<<H)-1,N=m($,H,1);for(_=0;_<G;){var R,W=N[P(t,b,B)];if(b+=15&W,(R=W>>4)<16)L[_++]=R;else{var Y=0,J=0;for(16==R?(J=3+P(t,b,3),b+=2,Y=L[_-1]):17==R?(J=3+P(t,b,7),b+=3):18==R&&(J=11+P(t,b,127),b+=7);J--;)L[_++]=Y}}var K=L.subarray(0,Z),Q=L.subarray(Z);S=M(K),T=M(Q),z=m(K,S,1),O=m(Q,T,1)}else U(1);if(b>D){v&&U(0);break}}l&&d(w+131072);for(var V=(1<<S)-1,X=(1<<T)-1,tt=b;;tt=b){var nt=(Y=z[x(t,b)&V])>>4;if((b+=15&Y)>D){v&&U(0);break}if(Y||U(2),nt<256)r[w++]=nt;else{if(256==nt){tt=b,z=null;break}var et=nt-254;if(nt>264){var rt=o[_=nt-257];et=P(t,b,(1<<rt)-1)+h[_],b+=rt}var it=O[x(t,b)&X],ot=it>>4;it||U(3),b+=15⁢Q=p[ot];if(ot>3){rt=a[ot];Q+=x(t,b)&(1<<rt)-1,b+=rt}if(b>D){v&&U(0);break}l&&d(w+131072);var at=w+et;if(w<Q){var st=f-Q,ut=Math.min(Q,at);for(st+w<0&&U(3);w<ut;++w)r[w]=i[st+w]}for(;w<at;++w)r[w]=r[w-Q]}}n.l=z,n.p=tt,n.b=w,n.f=y,z&&(y=1,n.m=S,n.d=O,n.n=T)}while(!y);return w!=r.length&&c?C(r,0,w):r.subarray(0,w)},F=function(t,n,e){e<<=7&n;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},E=function(t,n,e){e<<=7&n;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Z=function(t,n){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,s=i.slice();if(!a)return{t:B,l:0};if(1==a){var u=new e(i[0].s+1);return u[i[0].s]=1,{t:u,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],h=i[1],c=0,l=1,p=2;for(i[0]={s:-1,f:f.f+h.f,l:f,r:h};l!=a-1;)f=i[i[c].f<i[p].f?c++:p++],h=i[c!=l&&i[c].f<i[p].f?c++:p++],i[l++]={s:-1,f:f.f+h.f,l:f,r:h};var v=s[0].s;for(o=1;o<a;++o)s[o].s>v&&(v=s[o].s);var d=new r(v+1),y=q(i[l-1],d,0);if(y>n){o=0;var b=0,m=y-n,w=1<<m;for(s.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<a;++o){var z=s[o].s;if(!(d[z]>n))break;b+=w-(1<<y-d[z]),d[z]=n}for(b>>=m;b>0;){var O=s[o].s;d[O]<n?b-=1<<n-d[O]++-1:++o}for(;o>=0&&b;--o){var k=s[o].s;d[k]==n&&(--d[k],++b)}y=n}return{t:new e(d),l:y}},q=function(t,n,e){return-1==t.s?Math.max(q(t.l,n,e+1),q(t.r,n,e+1)):n[t.s]=e},G=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,s=function(t){e[i++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=t[u]}return{c:e.subarray(0,i),n:n}},L=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},$=function(t,n,e){var r=e.length,i=A(n+2);t[i]=255&r,t[i+1]=r>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=e[o];return 8*(i+4+r)},_=function(t,n,e,i,u,f,h,c,l,p,v){F(n,v++,e),++u[256];for(var d=Z(u,15),y=d.t,b=d.l,k=Z(f,15),j=k.t,M=k.l,P=G(y),x=P.c,A=P.n,C=G(j),T=C.c,D=C.n,U=new r(19),I=0;I<x.length;++I)++U[31&x[I]];for(I=0;I<T.length;++I)++U[31&T[I]];for(var q=Z(U,7),_=q.t,H=q.l,B=19;B>4&&!_[s[B-1]];--B);var N,R,W,Y,J=p+5<<3,K=L(u,w)+L(f,z)+h,Q=L(u,y)+L(f,j)+h+14+3*B+L(U,_)+2*U[16]+3*U[17]+7*U[18];if(l>=0&&J<=K&&J<=Q)return $(n,v,t.subarray(l,l+p));if(F(n,v,1+(Q<K)),v+=2,Q<K){N=m(y,b,0),R=y,W=m(j,M,0),Y=j;var V=m(_,H,0);F(n,v,A-257),F(n,v+5,D-1),F(n,v+10,B-4),v+=14;for(I=0;I<B;++I)F(n,v+3*I,_[s[I]]);v+=3*B;for(var X=[x,T],tt=0;tt<2;++tt){var nt=X[tt];for(I=0;I<nt.length;++I){var et=31&nt[I];F(n,v,V[et]),v+=_[et],et>15&&(F(n,v,nt[I]>>5&127),v+=nt[I]>>12)}}}else N=O,R=w,W=S,Y=z;for(I=0;I<c;++I){var rt=i[I];if(rt>255){E(n,v,N[(et=rt>>18&31)+257]),v+=R[et+257],et>7&&(F(n,v,rt>>23&31),v+=o[et]);var it=31&rt;E(n,v,W[it]),v+=Y[it],it>3&&(E(n,v,rt>>5&8191),v+=a[it])}else E(n,v,N[rt]),v+=R[rt]}return E(n,v,N[256]),v+R[256]},H=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new e(0),N=function(t,n,s,u,f,h){var l=h.z||t.length,p=new e(u+l+5*(1+Math.ceil(l/7e3))+f),d=p.subarray(u,p.length-f),y=h.l,b=7&(h.r||0);if(n){b&&(d[0]=h.r>>3);for(var m=H[n-1],w=m>>13,z=8191&m,O=(1<<s)-1,k=h.p||new r(32768),S=h.h||new r(O+1),j=Math.ceil(s/3),M=2*j,P=function(n){return(t[n]^t[n+1]<<j^t[n+2]<<M)&O},x=new i(25e3),T=new r(288),D=new r(32),U=0,I=0,F=h.i||0,E=0,Z=h.w||0,q=0;F+2<l;++F){var G=P(F),L=32767&F,B=S[G];if(k[L]=B,S[G]=L,Z<=F){var N=l-F;if((U>7e3||E>24576)&&(N>423||!y)){b=_(t,d,0,x,T,D,I,E,q,F-q,b),E=U=I=0,q=F;for(var R=0;R<286;++R)T[R]=0;for(R=0;R<30;++R)D[R]=0}var W=2,Y=0,J=z,K=L-B&32767;if(N>2&&G==P(F-K))for(var Q=Math.min(w,N)-1,V=Math.min(32767,F),X=Math.min(258,N);K<=V&&--J&&L!=B;){if(t[F+W]==t[F+W-K]){for(var tt=0;tt<X&&t[F+tt]==t[F+tt-K];++tt);if(tt>W){if(W=tt,Y=K,tt>Q)break;var nt=Math.min(K,tt-2),et=0;for(R=0;R<nt;++R){var rt=F-K+R&32767,it=rt-k[rt]&32767;it>et&&(et=it,B=rt)}}}K+=(L=B)-(B=k[L])&32767}if(Y){x[E++]=268435456|c[W]<<18|v[Y];var ot=31&c[W],at=31&v[Y];I+=o[ot]+a[at],++T[257+ot],++D[at],Z=F+W,++U}else x[E++]=t[F],++T[t[F]]}}for(F=Math.max(F,Z);F<l;++F)x[E++]=t[F],++T[t[F]];b=_(t,d,y,x,T,D,I,E,q,F-q,b),y||(h.r=7&b|d[b/8|0]<<3,b-=7,h.h=S,h.p=k,h.i=F,h.w=Z)}else{for(F=h.w||0;F<l+y;F+=65535){var st=F+65535;st>=l&&(d[b/8|0]=y,st=l),b=$(d,b+1,t.subarray(F,st))}h.i=l}return C(p,0,u+A(b)+f)},R=(function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var e=n,r=9;--r;)e=(1&e&&-306674912)^e>>>1;t[n]=e}return t})(),W=function(){var t=-1;return{p:function(n){for(var e=t,r=0;r<n.length;++r)e=R[255&e^n[r]]^e>>>8;t=e},d:function(){return~t}}},Y=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,o=0|e.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=e[a];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}t=r,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},J=function(t,n,r,i,o){if(!o&&(o={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),s=new e(a.length+t.length);s.set(a),s.set(t,a.length),t=s,o.w=a.length}return N(t,null==n.level?6:n.level,null==n.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+n.mem,r,i,o)},K=function(t,n){var e={};for(var r in t)e[r]=t[r];for(var r in n)e[r]=n[r];return e},Q=function(t,n,e){for(var r=t(),i=t.toString(),o=i.slice(i.indexOf('[')+1,i.lastIndexOf(']')).replace(/\s+/g,'').split(','),a=0;a<r.length;++a){var s=r[a],u=o[a];if('function'==typeof s){n+=';'+u+'=';var f=s.toString();if(s.prototype)if(-1!=f.indexOf('[native code]')){var h=f.indexOf(' ',8)+1;n+=f.slice(h,f.indexOf('(',h))}else for(var c in n+=f,s.prototype)n+=';'+u+'.prototype.'+c+'='+s.prototype[c].toString();else n+=f}else e[u]=s}return n},V=[],X=function(t){var n=[];for(var e in t)t[e].buffer&&n.push((t[e]=new t[e].constructor(t[e])).buffer);return n},tt=function(t,e,r,i){if(!V[r]){for(var o='',a={},s=t.length-1,u=0;u<s;++u)o=Q(t[u],o,a);V[r]={c:Q(t[s],o,a),e:a}}var f=K({},V[r].e);return n(V[r].c+';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage='+e.toString()+'}',r,f,X(f),i)},nt=function(){return[e,r,i,o,a,s,h,p,k,j,d,D,m,M,P,x,A,C,U,I,Ct,st,ut]},et=function(){return[e,r,i,o,a,s,c,v,O,w,S,z,d,H,B,m,F,E,Z,q,G,L,$,_,A,C,N,J,Mt,st]},rt=function(){return[gt,mt,dt,W,R]},it=function(){return[yt,bt]},ot=function(){return[wt,dt,Y]},at=function(){return[zt]},st=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&{out:t.size&&new e(t.size),dictionary:t.dictionary}},ft=function(t,n,e,r,i,o){var a=tt(e,r,i,function(t,n){a.terminate(),o(t,n)});return a.postMessage([t,n],n.consume?[t.buffer]:[]),function(){a.terminate()}},ht=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data.length?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush()}},ct=function(t,n,e,r,i,o,a){var s,u=tt(t,r,i,function(t,e){t?(u.terminate(),n.ondata.call(n,t)):Array.isArray(e)?1==e.length?(n.queuedSize-=e[0],n.ondrain&&n.ondrain(e[0])):(e[1]&&u.terminate(),n.ondata.call(n,t,e[0],e[1])):a(e)});u.postMessage(e),n.queuedSize=0,n.push=function(t,e){n.ondata||U(5),s&&n.ondata(U(4,0,1),null,!!e),n.queuedSize+=t.length,u.postMessage([t,s=e],[t.buffer])},n.terminate=function(){u.terminate()},o&&(n.flush=function(){u.postMessage([])})},lt=function(t,n){return t[n]|t[n+1]<<8},pt=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},vt=function(t,n){return pt(t,n)+4294967296*pt(t,n+4)},dt=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8},gt=function(t,n){var e=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&dt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),e){t[3]=8;for(var r=0;r<=e.length;++r)t[r+10]=e.charCodeAt(r)}},yt=function(t){31==t[0]&&139==t[1]&&8==t[2]||U(6,'invalid gzip data');var n=t[3],e=10;4&n&&(e+=2+(t[10]|t[11]<<8));for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!t[e++]);return e+(2&n)},bt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},mt=function(t){return 10+(t.filename?t.filename.length+1:0)},wt=function(t,n){var e=n.level,r=0==e?0:e<6?1:9==e?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Y();i.p(n.dictionary),dt(t,2,i.d())}},zt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&U(6,'invalid zlib data'),(t[1]>>5&1)==+!n&&U(6,'invalid zlib data: '+(32&t[1]?'need':'unexpected')+' dictionary'),2+(t[1]>>3&4)};function Ot(t,n){return'function'==typeof t&&(n=t,t={}),this.ondata=n,t}var kt=(function(){function t(t,n){if('function'==typeof t&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new e(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,n){this.ondata||U(5),this.s.l&&U(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new e(-32768&r);i.set(this.b.subarray(0,this.s.z)),this.b=i}var o=this.b.length-this.s.z;this.b.set(t.subarray(0,o),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(o),32768),this.s.z=t.length-o+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||U(5),this.s.l&&U(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t})(),St=(function(){return function(t,n){ct([et,function(){return[ht,kt]}],this,Ot.call(this,t,n),function(t){var n=new kt(t.data);onmessage=ht(n)},6,1)}})();function jt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[et],function(t){return st(Mt(t.data[0],t.data[1]))},0,e)}function Mt(t,n){return J(t,n||{},0,0)}var Pt=(function(){function t(t,n){'function'==typeof t&&(n=t,t={}),this.ondata=n;var r=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new e(32768),this.p=new e(0),r&&this.o.set(r)}return t.prototype.e=function(t){if(this.ondata||U(5),this.d&&U(4),this.p.length){if(t.length){var n=new e(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,e=I(this.p,this.s,this.o);this.ondata(C(e,n,this.s.b),this.d),this.o=C(e,this.s.b-32768),this.s.b=this.o.length,this.p=C(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t})(),xt=(function(){return function(t,n){ct([nt,function(){return[ht,Pt]}],this,Ot.call(this,t,n),function(t){var n=new Pt(t.data);onmessage=ht(n)},7,0)}})();function At(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt],function(t){return st(Ct(t.data[0],ut(t.data[1])))},1,e)}function Ct(t,n){return I(t,{i:2},n&&n.out,n&&n.dictionary)}var Tt=(function(){function t(t,n){this.c=W(),this.l=0,this.v=1,kt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,kt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var e=J(t,this.o,this.v&&mt(this.o),n&&8,this.s);this.v&&(gt(e,this.o),this.v=0),n&&(dt(e,e.length-8,this.c.d()),dt(e,e.length-4,this.l)),this.ondata(e,n)},t.prototype.flush=function(){kt.prototype.flush.call(this)},t})(),Dt=(function(){return function(t,n){ct([et,rt,function(){return[ht,kt,Tt]}],this,Ot.call(this,t,n),function(t){var n=new Tt(t.data);onmessage=ht(n)},8,1)}})();function Ut(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[et,rt,function(){return[It]}],function(t){return st(It(t.data[0],t.data[1]))},2,e)}function It(t,n){n||(n={});var e=W(),r=t.length;e.p(t);var i=J(t,n,mt(n),8),o=i.length;return gt(i,n),dt(i,o-8,e.d()),dt(i,o-4,r),i}var Ft=(function(){function t(t,n){this.v=1,this.r=0,Pt.call(this,t,n)}return t.prototype.push=function(t,n){if(Pt.prototype.e.call(this,t),this.r+=t.length,this.v){var r=this.p.subarray(this.v-1),i=r.length>3?yt(r):4;if(i>r.length){if(!n)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(i),this.v=0}Pt.prototype.c.call(this,n),!this.s.f||this.s.l||n||(this.v=A(this.s.p)+9,this.s={i:0},this.o=new e(0),this.push(new e(0),n))},t})(),Et=(function(){return function(t,n){var e=this;ct([nt,it,function(){return[ht,Pt,Ft]}],this,Ot.call(this,t,n),function(t){var n=new Ft(t.data);n.onmember=function(t){return postMessage(t)},onmessage=ht(n)},9,0,function(t){return e.onmember&&e.onmember(t)})}})();function Zt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt,it,function(){return[qt]}],function(t){return st(qt(t.data[0],t.data[1]))},3,e)}function qt(t,n){var r=yt(t);return r+8>t.length&&U(6,'invalid gzip data'),I(t.subarray(r,-8),{i:2},n&&n.out||new e(bt(t)),n&&n.dictionary)}var Gt=(function(){function t(t,n){this.c=Y(),this.v=1,kt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),kt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var e=J(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(wt(e,this.o),this.v=0),n&&dt(e,e.length-4,this.c.d()),this.ondata(e,n)},t.prototype.flush=function(){kt.prototype.flush.call(this)},t})(),Lt=(function(){return function(t,n){ct([et,ot,function(){return[ht,kt,Gt]}],this,Ot.call(this,t,n),function(t){var n=new Gt(t.data);onmessage=ht(n)},10,1)}})();function $t(t,n){n||(n={});var e=Y();e.p(t);var r=J(t,n,n.dictionary?6:2,4);return wt(r,n),dt(r,r.length-4,e.d()),r}var _t=(function(){function t(t,n){Pt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Pt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(zt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&U(6,'invalid zlib data'),this.p=this.p.subarray(0,-4)),Pt.prototype.c.call(this,n)},t})(),Ht=(function(){return function(t,n){ct([nt,at,function(){return[ht,Pt,_t]}],this,Ot.call(this,t,n),function(t){var n=new _t(t.data);onmessage=ht(n)},11,0)}})();function Bt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt,at,function(){return[Nt]}],function(t){return st(Nt(t.data[0],ut(t.data[1])))},5,e)}function Nt(t,n){return I(t.subarray(zt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var Rt=(function(){function t(t,n){this.o=Ot.call(this,t,n)||{},this.G=Ft,this.I=Pt,this.Z=_t}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,e){t.ondata(n,e)}},t.prototype.push=function(t,n){if(this.ondata||U(5),this.s)this.s.push(t,n);else{if(this.p&&this.p.length){var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,n),this.p=null)}},t})(),Wt=(function(){function t(t,n){Rt.call(this,t,n),this.queuedSize=0,this.G=Et,this.I=xt,this.Z=Ht}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,e,r){t.ondata(n,e,r)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Rt.prototype.push.call(this,t,n)},t})();var Yt=function(t,n,r,i){for(var o in t){var a=t[o],s=n+o,u=i;Array.isArray(a)&&(u=K(i,a[1]),a=a[0]),a instanceof e?r[s]=[a,u]:(r[s+='/']=[new e(0),u],Yt(a,s,r,i))}},Jt='undefined'!=typeof TextEncoder&&new TextEncoder,Kt='undefined'!=typeof TextDecoder&&new TextDecoder,Qt=0;try{Kt.decode(B,{stream:!0}),Qt=1}catch(t){}var Vt=function(t){for(var n='',e=0;;){var r=t[e++],i=(r>127)+(r>223)+(r>239);if(e+i>t.length)return{s:n,r:C(t,e-1)};i?3==i?(r=((15&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r)):n+=1&i?String.fromCharCode((31&r)<<6|63&t[e++]):String.fromCharCode((15&r)<<12|(63&t[e++])<<6|63&t[e++]):n+=String.fromCharCode(r)}},Xt=(function(){function t(t){this.ondata=t,Qt?this.t=new TextDecoder:this.p=B}return t.prototype.push=function(t,n){if(this.ondata||U(5),n=!!n,this.t)return this.ondata(this.t.decode(t,{stream:!0}),n),void(n&&(this.t.decode().length&&U(8),this.t=null));this.p||U(4);var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length);var i=Vt(r),o=i.s,a=i.r;n?(a.length&&U(8),this.p=null):this.p=a,this.ondata(o,n)},t})(),tn=(function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||U(5),this.d&&U(4),this.ondata(nn(t),this.d=n||!1)},t})();function nn(t,n){if(n){for(var r=new e(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Jt)return Jt.encode(t);var o=t.length,a=new e(t.length+(t.length>>1)),s=0,u=function(t){a[s++]=t};for(i=0;i<o;++i){if(s+5>a.length){var f=new e(s+8+(o-i<<1));f.set(a),a=f}var h=t.charCodeAt(i);h<128||n?u(h):h<2048?(u(192|h>>6),u(128|63&h)):h>55295&&h<57344?(u(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),u(128|h>>12&63),u(128|h>>6&63),u(128|63&h)):(u(224|h>>12),u(128|h>>6&63),u(128|63&h))}return C(a,0,s)}function en(t,n){if(n){for(var e='',r=0;r<t.length;r+=16384)e+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return e}if(Kt)return Kt.decode(t);var i=Vt(t),o=i.s;return(e=i.r).length&&U(8),o}var rn=function(t){return 1==t?3:t<6?2:9==t?1:0},on=function(t,n){return n+30+lt(t,n+26)+lt(t,n+28)},an=function(t,n,e){var r=lt(t,n+28),i=en(t.subarray(n+46,n+46+r),!(2048<(t,n+8))),o=n+46+r,a=pt(t,n+20),s=e&&4294967295==a?sn(t,o):[a,pt(t,n+24),pt(t,n+42)],u=s[0],f=s[1],h=s[2];return[lt(t,n+10),u,f,i,o+lt(t,n+30)+lt(t,n+32),h]},sn=function(t,n){for(;1!=lt(t,n);n+=4+lt(t,n+2));return[vt(t,n+12),vt(t,n+4),vt(t,n+20)]},un=function(t){var n=0;if(t)for(var e in t){var r=t[e].length;r>65535&&U(9),n+=r+4}return n},fn=function(t,n,e,r,i,o,a,s){var u=r.length,f=e.extra,h=s&&s.length,c=un(f);dt(t,n,null!=a?33639248:67324752),n+=4,null!=a&&(t[n++]=20,t[n++]=e.os),t[n]=20,n+=2,t[n++]=e.flag<<1|(o<0&&8),t[n++]=i&&8,t[n++]=255&e.compression,t[n++]=e.compression>>8;var l=new Date(null==e.mtime?Date.now():e.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&U(10),dt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1),n+=4,-1!=o&&(dt(t,n,e.crc),dt(t,n+4,o<0?-o-2:o),dt(t,n+8,e.size)),dt(t,n+12,u),dt(t,n+14,c),n+=16,null!=a&&(dt(t,n,h),dt(t,n+6,e.attrs),dt(t,n+10,a),n+=14),t.set(r,n),n+=u,c)for(var v in f){var d=f[v],y=d.length;dt(t,n,+v),dt(t,n+2,y),t.set(d,n+4),n+=4+y}return h&&(t.set(s,n),n+=h),n},hn=function(t,n,e,r,i){dt(t,n,101010256),dt(t,n+8,e),dt(t,n+10,e),dt(t,n+12,r),dt(t,n+16,i)},cn=(function(){function t(t){this.filename=t,this.c=W(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||U(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t})(),ln=(function(){function t(t,n){var e=this;n||(n={}),cn.call(this,t),this.d=new kt(n,function(t,n){e.ondata(null,t,n)}),this.compression=8,this.flag=rn(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t})(),pn=(function(){function t(t,n){var e=this;n||(n={}),cn.call(this,t),this.d=new St(n,function(t,n,r){e.ondata(t,n,r)}),this.compression=8,this.flag=rn(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t})(),vn=(function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var n=this;if(this.ondata||U(5),2&this.d)this.ondata(U(4+8*(1&this.d),0,1),null,!1);else{var r=nn(t.filename),i=r.length,o=t.comment,a=o&&nn(o),s=i!=t.filename.length||a&&o.length!=a.length,u=i+un(t.extra)+30;i>65535&&this.ondata(U(11,0,1),null,!1);var f=new e(u);fn(f,0,t,r,s,-1);var h=[f],c=function(){for(var t=0,e=h;t<e.length;t++){var r=e[t];n.ondata(null,r,!1)}h=[]},l=this.d;this.d=0;var p=this.u.length,v=K(t,{f:r,u:s,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(c(),l){var t=n.u[p+1];t?t.r():n.d=1}l=1}}),d=0;t.ondata=function(r,i,o){if(r)n.ondata(r,i,o),n.terminate();else if(d+=i.length,h.push(i),o){var a=new e(16);dt(a,0,134695760),dt(a,4,t.crc),dt(a,8,d),dt(a,12,t.size),h.push(a),v.c=d,v.b=u+d+16,v.crc=t.crc,v.size=t.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(U(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,n=0,r=0,i=0,o=this.u;i<o.length;i++){r+=46+(f=o[i]).f.length+un(f.extra)+(f.o?f.o.length:0)}for(var a=new e(r+22),s=0,u=this.u;s<u.length;s++){var f=u[s];fn(a,t,f,f.f,f.u,-f.c-2,n,f.o),t+=46+f.f.length+un(f.extra)+(f.o?f.o.length:0),n+=f.b}hn(a,t,this.u.length,r,n),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++){n[t].t()}this.d=2},t})();var dn=(function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t})(),gn=(function(){function t(){var t=this;this.i=new Pt(function(n,e){t.ondata(null,n,e)})}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},t.compression=8,t})(),yn=(function(){function t(t,n){var e=this;n<32e4?this.i=new Pt(function(t,n){e.ondata(null,t,n)}):(this.i=new xt(function(t,n,r){e.ondata(t,n,r)}),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=C(t,0)),this.i.push(t,n)},t.compression=8,t})(),bn=(function(){function t(t){this.onfile=t,this.k=[],this.o={0:dn},this.p=B}return t.prototype.push=function(t,n){var r=this;if(this.onfile||U(5),this.p||U(4),this.c>0){var i=Math.min(this.c,t.length),o=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(i)).length)return this.push(t,n)}else{var a=0,s=0,u=void 0,f=void 0;this.p.length?t.length?((f=new e(this.p.length+t.length)).set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var h=f.length,c=this.c,l=c&&this.d,p=function(){var t,n=pt(f,s);if(67324752==n){a=1,u=s,v.d=null,v.c=0;var e=lt(f,s+6),i=lt(f,s+8),o=2048&e,l=8&e,p=lt(f,s+26),d=lt(f,s+28);if(h>s+30+p+d){var y=[];v.k.unshift(y),a=2;var b,m=pt(f,s+18),w=pt(f,s+22),z=en(f.subarray(s+30,s+=30+p),!o);4294967295==m?(t=l?[-2]:sn(f,s),m=t[0],w=t[1]):l&&(m=-1),s+=d,v.c=m;var O={name:z,compression:i,start:function(){if(O.ondata||U(5),m){var t=r.o[i];t||O.ondata(U(14,'unknown compression type '+i,1),null,!1),(b=m<0?new t(z):new t(z,m,w)).ondata=function(t,n,e){O.ondata(t,n,e)};for(var n=0,e=y;n<e.length;n++){var o=e[n];b.push(o,!1)}r.k[0]==y&&r.c?r.d=b:b.push(B,!0)}else O.ondata(null,B,!0)},terminate:function(){b&&b.terminate&&b.terminate()}};m>=0&&(O.size=m,O.originalSize=w),v.onfile(O)}return"break"}if(c){if(134695760==n)return u=s+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==n)return u=s-=4,a=3,v.c=0,"break"}},v=this;s<h-4;++s){if("break"===p())break}if(this.p=B,c<0){var d=a?f.subarray(0,u-12-(-2==c&&8)-(134695760==pt(f,u-16)&&4)):f.subarray(0,s);l?l.push(d,!!a):this.k[+(2==a)].push(d)}if(2&a)return this.push(f.subarray(s),n);this.p=f.subarray(s)}n&&(this.c&&U(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t})(),mn='function'==typeof queueMicrotask?queueMicrotask:'function'==typeof setTimeout?setTimeout:function(t){t()}},3518,[]);
|
|
231
|
-
__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(_r(d[0])),u=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));function f(e,f){return(0,t.default)(e)||(0,u.default)(e,f)||(0,n.default)(e,f)||(0,r.default)()}},
|
|
232
|
-
__d(function(g,_r,i,a,m,e,d){"use strict";function r(r){if(Array.isArray(r))return r}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}})},
|
|
233
|
-
__d(function(g,_r,_i,_a,m,_e,d){"use strict";function e(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,u,f,i=[],o=!0,a=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=u.call(r)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{if(!o&&null!=r.return&&(f=r.return(),Object(f)!==f))return}finally{if(a)throw l}}return i}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}})},
|
|
234
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},
|
|
235
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"hasPngSignature",{enumerable:!0,get:function(){return u.hasPngSignature}}),Object.defineProperty(_e,"convertIndexedToRgb",{enumerable:!0,get:function(){return c.convertIndexedToRgb}}),Object.defineProperty(_e,"decode",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"encode",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"decodeApng",{enumerable:!0,get:function(){return l}});var n=e(r(d[0])),t=e(r(d[1])),u=r(d[2]),o=r(d[3]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});var c=r(d[4]);function f(e,t){return new n.default(e,t).decode()}function b(e,n){return new t.default(e,n).encode()}function l(e,t){return new n.default(e,t).decodeApng()}},
|
|
236
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),s=r(d[1]),h=r(d[2]),i=r(d[3]),n=r(d[4]),o=r(d[5]),p=r(d[6]),c=r(d[7]);class l extends t.IOBuffer{constructor(t,h={}){super(t);const{checkCrc:i=!1}=h;this._checkCrc=i,this._inflator=new s.Inflate,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=c.CompressionMethod.UNKNOWN,this._filterMethod=c.FilterMethod.UNKNOWN,this._interlaceMethod=c.InterlaceMethod.UNKNOWN,this._colorType=c.ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for((0,o.checkSignature)(this);!this._end;){const t=this.readUint32(),s=this.readChars(4);this.decodeChunk(t,s)}return this.decodeImage(),this._png}decodeApng(){for((0,o.checkSignature)(this);!this._end;){const t=this.readUint32(),s=this.readChars(4);this.decodeApngChunk(t,s)}return this.decodeApngImage(),this._apng}decodeChunk(t,s){const i=this.offset;switch(s){case'IHDR':this.decodeIHDR();break;case'PLTE':this.decodePLTE(t);break;case'IDAT':this.decodeIDAT(t);break;case'IEND':this._end=!0;break;case'tRNS':this.decodetRNS(t);break;case'iCCP':this.decodeiCCP(t);break;case p.textChunkName:(0,p.decodetEXt)(this._png.text,this,t);break;case'pHYs':this.decodepHYs();break;default:this.skip(t)}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${s}`);this._checkCrc?(0,h.checkCrc)(this,t+4,s):this.skip(4)}decodeApngChunk(t,s){const i=this.offset;switch('fdAT'!==s&&'IDAT'!==s&&this._writingDataChunks&&this.pushDataToFrame(),s){case'acTL':this.decodeACTL();break;case'fcTL':this.decodeFCTL();break;case'fdAT':this.decodeFDAT(t);break;default:this.decodeChunk(t,s),this.offset=i+t}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${s}`);this._checkCrc?(0,h.checkCrc)(this,t+4,s):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=_(this.readUint8());const s=this.readUint8();let h;switch(this._colorType=s,s){case c.ColorType.GREYSCALE:h=1;break;case c.ColorType.TRUECOLOUR:h=3;break;case c.ColorType.INDEXED_COLOUR:h=1;break;case c.ColorType.GREYSCALE_ALPHA:h=2;break;case c.ColorType.TRUECOLOUR_ALPHA:h=4;break;case c.ColorType.UNKNOWN:default:throw new Error(`Unknown color type: ${s}`)}if(this._png.channels=h,this._compressionMethod=this.readUint8(),this._compressionMethod!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const s=t/3;this._hasPalette=!0;const h=[];this._palette=h;for(let t=0;t<s;t++)h.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const s=t,h=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,h,s)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let s=t,h=this.offset+this.byteOffset;if(h+=4,s-=4,this._inflator.push(new Uint8Array(this.buffer,h,s)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case c.ColorType.GREYSCALE:case c.ColorType.TRUECOLOUR:if(t%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let s=0;s<t/2;s++)this._transparency[s]=this.readUint16();break;case c.ColorType.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let s=0;for(;s<t;s++){const t=this.readByte();this._palette[s].push(t)}for(;s<this._palette.length;s++)this._palette[s].push(255);break}case c.ColorType.UNKNOWN:case c.ColorType.GREYSCALE_ALPHA:case c.ColorType.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const h=(0,p.readKeyword)(this),i=this.readUint8();if(i!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const n=this.readBytes(t-h.length-2);this._png.iccEmbeddedProfile={name:h,profile:(0,s.inflate)(n)}}decodepHYs(){const t=this.readUint32(),s=this.readUint32(),h=this.readByte();this._png.resolution={x:t,y:s,unit:h}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const s={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},h=this._frames.at(t);if(h){if(h.data=(0,n.decodeInterlaceNull)({data:h.data,width:h.width,height:h.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===h.xOffset&&0===h.yOffset&&h.width===this._png.width&&h.height===this._png.height)s.data=h.data;else{const i=this._apng.frames.at(t-1);this.disposeFrame(h,i,s),this.addFrameDataToCanvas(s,h)}this._apng.frames.push(s)}}return this._apng}disposeFrame(t,s,h){switch(t.disposeOp){case c.DisposeOpType.NONE:break;case c.DisposeOpType.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let i=0;i<this._png.width;i++){const n=(s*t.width+i)*this._png.channels;for(let t=0;t<this._png.channels;t++)h.data[n+t]=0}break;case c.DisposeOpType.PREVIOUS:h.data.set(s.data);break;default:throw new Error('Unknown disposeOp')}}addFrameDataToCanvas(t,s){const h=1<<this._png.depth,i=(t,h)=>({index:((t+s.yOffset)*this._png.width+s.xOffset+h)*this._png.channels,frameIndex:(t*s.width+h)*this._png.channels});switch(s.blendOp){case c.BlendOpType.SOURCE:for(let h=0;h<s.height;h++)for(let n=0;n<s.width;n++){const{index:o,frameIndex:p}=i(h,n);for(let h=0;h<this._png.channels;h++)t.data[o+h]=s.data[p+h]}break;case c.BlendOpType.OVER:for(let n=0;n<s.height;n++)for(let o=0;o<s.width;o++){const{index:p,frameIndex:c}=i(n,o);for(let i=0;i<this._png.channels;i++){const n=s.data[c+this._png.channels-1]/h,o=i%(this._png.channels-1)==0?1:s.data[c+i],l=Math.floor(n*o+(1-n)*t.data[p+i]);t.data[p+i]+=l}}break;default:throw new Error('Unknown blendOp')}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==c.FilterMethod.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===c.InterlaceMethod.NO_INTERLACE)this._png.data=(0,n.decodeInterlaceNull)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==c.InterlaceMethod.ADAM7)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=(0,i.decodeInterlaceAdam7)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,h=this._frames.at(-1);h?h.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:c.DisposeOpType.NONE,blendOp:c.BlendOpType.SOURCE,data:t}),this._inflator=new s.Inflate,this._writingDataChunks=!1}}function _(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw new Error(`invalid bit depth: ${t}`);return t}},
|
|
237
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IOBuffer",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const i=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),s={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class n{constructor(t=8192,i={}){let s=!1;'number'==typeof t?t=new ArrayBuffer(t):(s=!0,this.lastWrittenByte=t.byteLength);const h=i.offset?i.offset>>>0:0,f=t.byteLength-h;let l=h;(ArrayBuffer.isView(t)||t instanceof n)&&(t.byteLength!==t.buffer.byteLength&&(l=t.byteOffset+h),t=t.buffer),this.lastWrittenByte=s?f:0,this.buffer=t,this.length=f,this.byteLength=f,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,f),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error('Mark stack empty');return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const i=2*(this.offset+t),s=new Uint8Array(i);s.set(new Uint8Array(this.buffer)),this.buffer=s.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,'uint8')}readArray(t,n){const h=s[n].BYTES_PER_ELEMENT*t,f=this.byteOffset+this.offset,l=this.buffer.slice(f,f+h);if(this.littleEndian===i&&'uint8'!==n&&'int8'!==n){const t=new Uint8Array(this.buffer.slice(f,f+h));t.reverse();const i=new s[n](t.buffer);return this.offset+=h,i.reverse(),i}const o=new s[n](l);return this.offset+=h,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let i='';for(let s=0;s<t;s++)i+=this.readChar();return i}readUtf8(i=1){return(0,t.decode)(this.readBytes(i))}decodeText(i=1,s="utf8"){return(0,t.decode)(this.readBytes(i),s)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let i=0;i<t.length;i++)this._data.setUint8(this.offset++,t[i]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let i=0;i<t.length;i++)this.writeUint8(t.charCodeAt(i));return this}writeUtf8(i){return this.writeBytes((0,t.encode)(i))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},
|
|
238
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decode=function(n,t="utf8"){return new TextDecoder(t).decode(n)},e.encode=function(t){return n.encode(t)};const n=new TextEncoder},
|
|
239
|
-
__d(function(t,e,a,n,i,r,s){"use strict";Object.defineProperty(r,'__esModule',{value:!0}),Object.defineProperty(r,"Deflate",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(r,"Inflate",{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(r,"constants",{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(r,"deflate",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(r,"deflateRaw",{enumerable:!0,get:function(){return Za}}),Object.defineProperty(r,"gzip",{enumerable:!0,get:function(){return Ua}}),Object.defineProperty(r,"inflate",{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(r,"inflateRaw",{enumerable:!0,get:function(){return Da}}),Object.defineProperty(r,"ungzip",{enumerable:!0,get:function(){return Ta}});function o(t){let e=t.length;for(;--e>=0;)t[e]=0}const l=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]),h=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]),d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new Array(576);o(f);const c=new Array(60);o(c);const u=new Array(512);o(u);const w=new Array(256);o(w);const b=new Array(29);o(b);const m=new Array(30);function g(t,e,a,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let p,k,v;function y(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}o(m);const x=t=>t<256?u[t]:u[256+(t>>>7)],z=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},A=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,z(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=(t,e,a)=>{A(t,a[2*e],a[2*e+1])},R=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},Z=t=>{16===t.bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},U=(t,e)=>{const a=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>n||(t.bl_count[f]++,c=0,d>=o&&(c=s[d-o]),u=a[2*d],t.opt_len+=u*(f+c),r&&(t.static_len+=u*(i[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>n||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}},S=(t,e,a)=>{const n=new Array(16);let i,r,s=0;for(i=1;i<=15;i++)s=s+a[i-1]<<1,n[i]=s;for(r=0;r<=e;r++){let e=t[2*r+1];0!==e&&(t[2*r]=R(n[e]++,e))}},O=()=>{let t,e,a,n,i;const r=new Array(16);for(a=0,n=0;n<28;n++)for(b[n]=a,t=0;t<1<<l[n];t++)w[a++]=n;for(w[a-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,t=0;t<1<<h[n];t++)u[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,t=0;t<1<<h[n]-7;t++)u[256+i++]=n;for(e=0;e<=15;e++)r[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,r[8]++;for(;t<=255;)f[2*t+1]=9,t++,r[9]++;for(;t<=279;)f[2*t+1]=7,t++,r[7]++;for(;t<=287;)f[2*t+1]=8,t++,r[8]++;for(S(f,287,r),t=0;t<30;t++)c[2*t+1]=5,c[2*t]=R(t,5);p=new g(f,l,257,286,15),k=new g(c,h,0,30,15),v=new g(new Array(0),d,0,19,7)},D=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},T=t=>{t.bi_valid>8?z(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},I=(t,e,a,n)=>{const i=2*e,r=2*a;return t[i]<t[r]||t[i]===t[r]&&n[e]<=n[a]},F=(t,e,a)=>{const n=t.heap[a];let i=a<<1;for(;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,n,t.heap[i],t.depth));)t.heap[a]=t.heap[i],a=i,i<<=1;t.heap[a]=n},L=(t,e,a)=>{let n,i,r,s,o=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+o++],n+=(255&t.pending_buf[t.sym_buf+o++])<<8,i=t.pending_buf[t.sym_buf+o++],0===n?E(t,i,e):(r=w[i],E(t,r+256+1,e),s=l[r],0!==s&&(i-=b[r],A(t,i,s)),n--,r=x(n),E(t,r,a),s=h[r],0!==s&&(n-=m[r],A(t,n,s)))}while(o<t.sym_next);E(t,256,e)},N=(t,e)=>{const a=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,r=e.stat_desc.elems;let s,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,s=0;s<r;s++)0!==a[2*s]?(t.heap[++t.heap_len]=h=s,t.depth[s]=0):a[2*s+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,i&&(t.static_len-=n[2*l+1]);for(e.max_code=h,s=t.heap_len>>1;s>=1;s--)F(t,a,s);l=r;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=o,a[2*l]=a[2*s]+a[2*o],t.depth[l]=(t.depth[s]>=t.depth[o]?t.depth[s]:t.depth[o])+1,a[2*s+1]=a[2*o+1]=l,t.heap[1]=l++,F(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],U(t,e),S(a,h,t.bl_count)},B=(t,e,a)=>{let n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)i=s,s=e[2*(n+1)+1],++o<l&&i===s||(o<h?t.bl_tree[2*i]+=o:0!==i?(i!==r&&t.bl_tree[2*i]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4))},C=(t,e,a)=>{let n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=a;n++)if(i=s,s=e[2*(n+1)+1],!(++o<l&&i===s)){if(o<h)do{E(t,i,t.bl_tree)}while(0!==--o);else 0!==i?(i!==r&&(E(t,i,t.bl_tree),o--),E(t,16,t.bl_tree),A(t,o-3,2)):o<=10?(E(t,17,t.bl_tree),A(t,o-3,3)):(E(t,18,t.bl_tree),A(t,o-11,7));o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4)}},j=t=>{let e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},M=(t,e,a,n)=>{let i;for(A(t,e-257,5),A(t,a-1,5),A(t,n-4,4),i=0;i<n;i++)A(t,t.bl_tree[2*_[i]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)},H=t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0};let P=!1;const K=(t,e,a,n)=>{A(t,0+(n?1:0),3),T(t),z(t,a),z(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var Y={_tr_init:t=>{P||(O(),P=!0),t.l_desc=new y(t.dyn_ltree,p),t.d_desc=new y(t.dyn_dtree,k),t.bl_desc=new y(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,D(t)},_tr_stored_block:K,_tr_flush_block:(t,e,a,n)=>{let i,r,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=H(t)),N(t,t.l_desc),N(t,t.d_desc),s=j(t),i=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=i&&(i=r)):i=r=a+5,a+4<=i&&-1!==e?K(t,e,a,n):4===t.strategy||r===i?(A(t,2+(n?1:0),3),L(t,f,c)):(A(t,4+(n?1:0),3),M(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),L(t,t.dyn_ltree,t.dyn_dtree)),D(t),n&&T(t)},_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(w[a]+256+1)]++,t.dyn_dtree[2*x(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{A(t,2,3),E(t,256,f),Z(t)}};var G=(t,e,a,n)=>{let i=65535&t,r=t>>>16&65535,s=0;for(;0!==a;){s=a>2e3?2e3:a,a-=s;do{i=i+e[n++]|0,r=r+i|0}while(--s);i%=65521,r%=65521}return i|r<<16};const X=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var W=(t,e,a,n)=>{const i=X,r=n+a;t^=-1;for(let a=n;a<r;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},q={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'},J={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:Q,_tr_stored_block:V,_tr_flush_block:$,_tr_tally:tt,_tr_align:et}=Y,{Z_NO_FLUSH:at,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:rt,Z_BLOCK:st,Z_OK:ot,Z_STREAM_END:lt,Z_STREAM_ERROR:ht,Z_DATA_ERROR:dt,Z_BUF_ERROR:_t,Z_DEFAULT_COMPRESSION:ft,Z_FILTERED:ct,Z_HUFFMAN_ONLY:ut,Z_RLE:wt,Z_FIXED:bt,Z_DEFAULT_STRATEGY:mt,Z_UNKNOWN:gt,Z_DEFLATED:pt}=J,kt=258,vt=262,yt=42,xt=113,zt=666,At=(t,e)=>(t.msg=q[e],e),Et=t=>2*t-(t>4?9:0),Rt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Zt=t=>{let e,a,n,i=t.w_size;e=t.hash_size,n=e;do{a=t.head[--n],t.head[n]=a>=i?a-i:0}while(--e);e=i,n=e;do{a=t.prev[--n],t.prev[n]=a>=i?a-i:0}while(--e)};let Ut=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const St=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ot=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=(t,e)=>{t.pending_buf[t.pending++]=e},Tt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},It=(t,e,a,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),a),1===t.state.wrap?t.adler=G(t.adler,e,i,a):2===t.state.wrap&&(t.adler=W(t.adler,e,i,a)),t.next_in+=i,t.total_in+=i,i)},Ft=(t,e)=>{let a,n,i=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-vt?t.strstart-(t.w_size-vt):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+kt;let c=h[r+s-1],u=h[r+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+s]===u&&h[a+s-1]===c&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do{}while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&r<f);if(n=kt-(f-r),r=f-kt,n>s){if(t.match_start=e,s=n,n>=o)break;c=h[r+s-1],u=h[r+s]}}}while((e=_[e&d])>l&&0!==--i);return s<=t.lookahead?s:t.lookahead},Lt=t=>{const e=t.w_size;let a,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-vt)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Zt(t),n+=e),0===t.strm.avail_in)break;if(a=It(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ut(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ut(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<vt&&0!==t.strm.avail_in)},Nt=(t,e)=>{let a,n,i,r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,s=0,o=t.strm.avail_in;do{if(a=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,a>n+t.strm.avail_in&&(a=n+t.strm.avail_in),a>i&&(a=i),a<r&&(0===a&&e!==rt||e===at||a!==n+t.strm.avail_in))break;s=e===rt&&a===n+t.strm.avail_in?1:0,V(t,0,0,s),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,St(t.strm),n&&(n>a&&(n=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,a-=n),a&&(It(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===s);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?4:e!==at&&e!==rt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(It(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,r=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=r||(n||e===rt)&&e!==at&&0===t.strm.avail_in&&n<=i)&&(a=n>i?i:n,s=e===rt&&0===t.strm.avail_in&&a===n?1:0,V(t,t.block_start,a,s),t.block_start+=a,St(t.strm)),s?3:1)},Bt=(t,e)=>{let a,n;for(;;){if(t.lookahead<vt){if(Lt(t),t.lookahead<vt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-vt&&(t.match_length=Ft(t,a)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},Ct=(t,e)=>{let a,n,i;for(;;){if(t.lookahead<vt){if(Lt(t),t.lookahead<vt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-vt&&(t.match_length=Ft(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ot(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Ot(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},jt=(t,e)=>{let a,n,i,r;const s=t.window;for(;;){if(t.lookahead<=kt){if(Lt(t),t.lookahead<=kt&&e===at)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){r=t.strstart+kt;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<r);t.match_length=kt-(r-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},Mt=(t,e)=>{let a;for(;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===at)return 1;break}if(t.match_length=0,a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2};function Ht(t,e,a,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=i}const Pt=[new Ht(0,0,0,0,Nt),new Ht(4,4,8,4,Bt),new Ht(4,5,16,8,Bt),new Ht(4,6,32,32,Bt),new Ht(4,4,16,16,Ct),new Ht(8,16,32,32,Ct),new Ht(8,16,128,128,Ct),new Ht(8,32,128,256,Ct),new Ht(32,128,258,1024,Ct),new Ht(32,258,258,4096,Ct)];function Kt(){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=pt,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(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Rt(this.dyn_ltree),Rt(this.dyn_dtree),Rt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Rt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Rt(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 Yt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==yt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==xt&&e.status!==zt?1:0},Gt=t=>{if(Yt(t))return At(t,ht);t.total_in=t.total_out=0,t.data_type=gt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?yt:xt,t.adler=2===e.wrap?0:1,e.last_flush=-2,Q(e),ot},Xt=t=>{const e=Gt(t);var a;return e===ot&&((a=t.state).window_size=2*a.w_size,Rt(a.head),a.max_lazy_match=Pt[a.level].max_lazy,a.good_match=Pt[a.level].good_length,a.nice_match=Pt[a.level].nice_length,a.max_chain_length=Pt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Wt=(t,e,a,n,i,r)=>{if(!t)return ht;let s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||a!==pt||n<8||n>15||e<0||e>9||r<0||r>bt||8===n&&1!==s)return At(t,ht);8===n&&(n=9);const o=new Kt;return t.state=o,o.strm=t,o.status=yt,o.wrap=s,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=r,o.method=a,Xt(t)};var qt={deflateInit:(t,e)=>Wt(t,e,pt,15,8,mt),deflateInit2:Wt,deflateReset:Xt,deflateResetKeep:Gt,deflateSetHeader:(t,e)=>Yt(t)||2!==t.state.wrap?ht:(t.state.gzhead=e,ot),deflate:(t,e)=>{if(Yt(t)||e>st||e<0)return t?At(t,ht):ht;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||a.status===zt&&e!==rt)return At(t,0===t.avail_out?_t:ht);const n=a.last_flush;if(a.last_flush=e,0!==a.pending){if(St(t),0===t.avail_out)return a.last_flush=-1,ot}else if(0===t.avail_in&&Et(e)<=Et(n)&&e!==rt)return At(t,_t);if(a.status===zt&&0!==t.avail_in)return At(t,_t);if(a.status===yt&&0===a.wrap&&(a.status=xt),a.status===yt){let e=pt+(a.w_bits-8<<4)<<8,n=-1;if(n=a.strategy>=ut||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=n<<6,0!==a.strstart&&(e|=32),e+=31-e%31,Tt(a,e),0!==a.strstart&&(Tt(a,t.adler>>>16),Tt(a,65535&t.adler)),t.adler=1,a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot}if(57===a.status)if(t.adler=0,Dt(a,31),Dt(a,139),Dt(a,8),a.gzhead)Dt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Dt(a,255&a.gzhead.time),Dt(a,a.gzhead.time>>8&255),Dt(a,a.gzhead.time>>16&255),Dt(a,a.gzhead.time>>24&255),Dt(a,9===a.level?2:a.strategy>=ut||a.level<2?4:0),Dt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Dt(a,255&a.gzhead.extra.length),Dt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=W(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,9===a.level?2:a.strategy>=ut||a.level<2?4:0),Dt(a,3),a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot;if(69===a.status){if(a.gzhead.extra){let e=a.pending,n=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+n>a.pending_buf_size;){let i=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=W(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=i,St(t),0!==a.pending)return a.last_flush=-1,ot;e=0,n-=i}let i=new Uint8Array(a.gzhead.extra);a.pending_buf.set(i.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending+=n,a.gzhead.hcrc&&a.pending>e&&(t.adler=W(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,n=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),St(t),0!==a.pending)return a.last_flush=-1,ot;n=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,Dt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,n=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),St(t),0!==a.pending)return a.last_flush=-1,ot;n=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,Dt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(St(t),0!==a.pending))return a.last_flush=-1,ot;Dt(a,255&t.adler),Dt(a,t.adler>>8&255),t.adler=0}if(a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot}if(0!==t.avail_in||0!==a.lookahead||e!==at&&a.status!==zt){let n=0===a.level?Nt(a,e):a.strategy===ut?Mt(a,e):a.strategy===wt?jt(a,e):Pt[a.level].func(a,e);if(3!==n&&4!==n||(a.status=zt),1===n||3===n)return 0===t.avail_out&&(a.last_flush=-1),ot;if(2===n&&(e===nt?et(a):e!==st&&(V(a,0,0,!1),e===it&&(Rt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),St(t),0===t.avail_out))return a.last_flush=-1,ot}return e!==rt?ot:a.wrap<=0?lt:(2===a.wrap?(Dt(a,255&t.adler),Dt(a,t.adler>>8&255),Dt(a,t.adler>>16&255),Dt(a,t.adler>>24&255),Dt(a,255&t.total_in),Dt(a,t.total_in>>8&255),Dt(a,t.total_in>>16&255),Dt(a,t.total_in>>24&255)):(Tt(a,t.adler>>>16),Tt(a,65535&t.adler)),St(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?ot:lt)},deflateEnd:t=>{if(Yt(t))return ht;const e=t.state.status;return t.state=null,e===xt?At(t,dt):ot},deflateSetDictionary:(t,e)=>{let a=e.length;if(Yt(t))return ht;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==yt||n.lookahead)return ht;if(1===i&&(t.adler=G(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===i&&(Rt(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(a-n.w_size,a),0),e=t,a=n.w_size}const r=t.avail_in,s=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ut(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=o,t.avail_in=r,n.wrap=i,ot},deflateInfo:'pako deflate (from Nodeca project)'};const Jt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Qt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if('object'!=typeof a)throw new TypeError(a+'must be non-object');for(const e in a)Jt(a,e)&&(t[e]=a[e])}}return t},Vt=t=>{let e=0;for(let a=0,n=t.length;a<n;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];a.set(i,n),n+=i.length}return a};let $t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){$t=!1}const te=new Uint8Array(256);for(let t=0;t<256;t++)te[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;te[254]=te[254]=1;const ee=(t,e)=>{if(e<65534&&t.subarray&&$t)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a='';for(let n=0;n<e;n++)a+=String.fromCharCode(t[n]);return a};var ae=t=>{if('function'==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,i,r,s=t.length,o=0;for(i=0;i<s;i++)a=t.charCodeAt(i),55296==(64512&a)&&i+1<s&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),i++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),r=0,i=0;r<o;i++)a=t.charCodeAt(i),55296==(64512&a)&&i+1<s&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),i++)),a<128?e[r++]=a:a<2048?(e[r++]=192|a>>>6,e[r++]=128|63&a):a<65536?(e[r++]=224|a>>>12,e[r++]=128|a>>>6&63,e[r++]=128|63&a):(e[r++]=240|a>>>18,e[r++]=128|a>>>12&63,e[r++]=128|a>>>6&63,e[r++]=128|63&a);return e},ne=(t,e)=>{const a=e||t.length;if('function'==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const r=new Array(2*a);for(i=0,n=0;n<a;){let e=t[n++];if(e<128){r[i++]=e;continue}let s=te[e];if(s>4)r[i++]=65533,n+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&n<a;)e=e<<6|63&t[n++],s--;s>1?r[i++]=65533:e<65536?r[i++]=e:(e-=65536,r[i++]=55296|e>>10&1023,r[i++]=56320|1023&e)}}return ee(r,i)},ie=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+te[t[a]]>e?a:e};var re=function(){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};const se=Object.prototype.toString,{Z_NO_FLUSH:oe,Z_SYNC_FLUSH:le,Z_FULL_FLUSH:he,Z_FINISH:de,Z_OK:_e,Z_STREAM_END:fe,Z_DEFAULT_COMPRESSION:ce,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:we}=J;function be(t){this.options=Qt({level:ce,method:we,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let a=qt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==_e)throw new Error(q[a]);if(e.header&&qt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t='string'==typeof e.dictionary?ae(e.dictionary):'[object ArrayBuffer]'===se.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=qt.deflateSetDictionary(this.strm,t),a!==_e)throw new Error(q[a]);this._dict_set=!0}}function me(t,e){const a=new be(e);if(a.push(t,!0),a.err)throw a.msg||q[a.err];return a.result}be.prototype.push=function(t,e){const a=this.strm,n=this.options.chunkSize;let i,r;if(this.ended)return!1;for(r=e===~~e?e:!0===e?de:oe,'string'==typeof t?a.input=ae(t):'[object ArrayBuffer]'===se.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(n),a.next_out=0,a.avail_out=n),(r===le||r===he)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(i=qt.deflate(a,r),i===fe)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),i=qt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_e;if(0!==a.avail_out){if(r>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},be.prototype.onData=function(t){this.chunks.push(t)},be.prototype.onEnd=function(t){t===_e&&(this.result=Vt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ge={Deflate:be,deflate:me,deflateRaw:function(t,e){return(e=e||{}).raw=!0,me(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,me(t,e)},constants:J};const pe=16209;var ke=function(t,e){let a,n,i,r,s,o,l,h,d,_,f,c,u,w,b,m,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,n=a+(t.avail_in-5),i=t.next_out,A=t.output,r=i-(e-t.avail_out),s=i+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,b=(1<<E.lenbits)-1,m=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&b];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[i++]=65535&g;else{if(!(16&p)){if(64&p){if(32&p){E.mode=16191;break t}t.msg='invalid literal/length code',E.mode=pe;break t}g=u[(65535&g)+(f&(1<<p)-1)];continue e}for(k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&m];;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,16&p){if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg='invalid distance too far back',E.mode=pe;break t}if(f>>>=p,c-=p,p=i-r,v>p){if(p=v-p,p>h&&E.sane){t.msg='invalid distance too far back',E.mode=pe;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[i++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}for(;k>2;)A[i++]=x[y++],A[i++]=x[y++],A[i++]=x[y++],k-=3;k&&(A[i++]=x[y++],k>1&&(A[i++]=x[y++]))}else{y=i-v;do{A[i++]=A[y++],A[i++]=A[y++],A[i++]=A[y++],k-=3}while(k>2);k&&(A[i++]=A[y++],k>1&&(A[i++]=A[y++]))}break}if(64&p){t.msg='invalid distance code',E.mode=pe;break t}g=w[(65535&g)+(f&(1<<p)-1)]}}break}}while(a<n&&i<s);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=i,t.avail_in=a<n?n-a+5:5-(a-n),t.avail_out=i<s?s-i+257:257-(i-s),E.hold=f,E.bits=c};const ve=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]),ye=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]),xe=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]),ze=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 Ae=(t,e,a,n,i,r,s,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,b=0,m=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,O=null;for(w=0;w<=15;w++)E[w]=0;for(b=0;b<n;b++)E[e[a+b]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return i[r++]=20971520,i[r++]=20971520,o.bits=1,0;for(m=1;m<g&&0===E[m];m++);for(p<m&&(p=m),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(b=0;b<n;b++)0!==e[a+b]&&(s[R[e[a+b]]++]=b);if(0===t?(A=O=s,u=20):1===t?(A=ve,O=ye,u=257):(A=xe,O=ze,u=0),z=0,b=0,w=m,c=r,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,s[b]+1<u?(U=0,S=s[b]):s[b]>=u?(U=O[s[b]-u],S=A[s[b]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,m=d;do{d-=h,i[c+(z>>v)+d]=Z<<24|U<<16|S}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,b++,0===--E[w]){if(w===g)break;w=e[a+s[b]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=m,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,i[_]=p<<24|k<<16|c-r}}return 0!==z&&(i[c+z]=4194304|w-v<<24),o.bits=p,0};const{Z_FINISH:Ee,Z_BLOCK:Re,Z_TREES:Ze,Z_OK:Ue,Z_STREAM_END:Se,Z_NEED_DICT:Oe,Z_STREAM_ERROR:De,Z_DATA_ERROR:Te,Z_MEM_ERROR:Ie,Z_BUF_ERROR:Fe,Z_DEFLATED:Le}=J,Ne=16180,Be=16190,Ce=16191,je=16192,Me=16194,He=16199,Pe=16200,Ke=16206,Ye=16209,Ge=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Xe(){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 We=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ne||e.mode>16211?1:0},qe=t=>{if(We(t))return De;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg='',e.wrap&&(t.adler=1&e.wrap),e.mode=Ne,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Ue},Je=t=>{if(We(t))return De;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,qe(t)},Qe=(t,e)=>{let a;if(We(t))return De;const n=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?De:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=a,n.wbits=e,Je(t))},Ve=(t,e)=>{if(!t)return De;const a=new Xe;t.state=a,a.strm=t,a.window=null,a.mode=Ne;const n=Qe(t,e);return n!==Ue&&(t.state=null),n};let $e,ta,ea=!0;const aa=t=>{if(ea){$e=new Int32Array(512),ta=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ae(1,t.lens,0,288,$e,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ae(2,t.lens,0,32,ta,0,t.work,{bits:5}),ea=!1}t.lencode=$e,t.lenbits=9,t.distcode=ta,t.distbits=5},na=(t,e,a,n)=>{let i;const r=t.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),n>=r.wsize?(r.window.set(e.subarray(a-r.wsize,a),0),r.wnext=0,r.whave=r.wsize):(i=r.wsize-r.wnext,i>n&&(i=n),r.window.set(e.subarray(a-n,a-n+i),r.wnext),(n-=i)?(r.window.set(e.subarray(a-n,a),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=i,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=i))),0};var ia={inflateReset:Je,inflateReset2:Qe,inflateResetKeep:qe,inflateInit:t=>Ve(t,15),inflateInit2:Ve,inflate:(t,e)=>{let a,n,i,r,s,o,l,h,d,_,f,c,u,w,b,m,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(We(t)||!t.output||!t.input&&0!==t.avail_in)return De;a=t.state,a.mode===Ce&&(a.mode=je),s=t.next_out,i=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=Ue;t:for(;;)switch(a.mode){case Ne:if(0===a.wrap){a.mode=je;break}for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg='incorrect header check',a.mode=Ye;break}if((15&h)!==Le){t.msg='unknown compression method',a.mode=Ye;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg='invalid window size',a.mode=Ye;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:Ce,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==Le){t.msg='unknown compression method',a.mode=Ye;break}if(57344&a.flags){t.msg='unknown header flags set',a.mode=Ye;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=W(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(n.subarray(r,r+c),y)),512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=n[r+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=n[r+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg='header crc mismatch',a.mode=Ye;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=Ce;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}t.adler=a.check=Ge(h),h=0,d=0,a.mode=Be;case Be:if(0===a.havedict)return t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,Oe;t.adler=a.check=1,a.mode=Ce;case Ce:if(e===Re||e===Ze)break t;case je:if(a.last){h>>>=7&d,d-=7&d,a.mode=Ke;break}for(;d<3;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(aa(a),a.mode=He,e===Ze){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg='invalid block type',a.mode=Ye}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg='invalid stored block lengths',a.mode=Ye;break}if(a.length=65535&h,h=0,d=0,a.mode=Me,e===Ze)break t;case Me:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;i.set(n.subarray(r,r+c),s),o-=c,r+=c,l-=c,s+=c,a.length-=c;break}a.mode=Ce;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg='too many length or distance symbols',a.mode=Ye;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=Ae(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg='invalid code lengths set',a.mode=Ye;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(g<16)h>>>=b,d-=b,a.lens[a.have++]=g;else{if(16===g){for(R=b+2;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(h>>>=b,d-=b,0===a.have){t.msg='invalid bit length repeat',a.mode=Ye;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=b+3;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=b,d-=b,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=b+7;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=b,d-=b,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg='invalid bit length repeat',a.mode=Ye;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===Ye)break;if(0===a.lens[256]){t.msg='invalid code -- missing end-of-block',a.mode=Ye;break}if(a.lenbits=9,E={bits:a.lenbits},x=Ae(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg='invalid literal/lengths set',a.mode=Ye;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=Ae(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg='invalid distances set',a.mode=Ye;break}if(a.mode=He,e===Ze)break t;case He:a.mode=Pe;case Pe:if(o>=6&&l>=258){t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,ke(t,f),s=t.next_out,i=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=a.hold,d=a.bits,a.mode===Ce&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(m&&!(240&m)){for(p=b,k=m,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],b=z>>>24,m=z>>>16&255,g=65535&z,!(p+b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=b,d-=b,a.back+=b,a.length=g,0===m){a.mode=16205;break}if(32&m){a.back=-1,a.mode=Ce;break}if(64&m){t.msg='invalid literal/length code',a.mode=Ye;break}a.extra=15&m,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(!(240&m)){for(p=b,k=m,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],b=z>>>24,m=z>>>16&255,g=65535&z,!(p+b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=b,d-=b,a.back+=b,64&m){t.msg='invalid distance code',a.mode=Ye;break}a.offset=g,a.extra=15&m,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg='invalid distance too far back',a.mode=Ye;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg='invalid distance too far back',a.mode=Ye;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=i,u=s-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{i[s++]=w[u++]}while(--c);0===a.length&&(a.mode=Pe);break;case 16205:if(0===l)break t;i[s++]=a.length,l--,a.mode=Pe;break;case Ke:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=n[r++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?W(a.check,i,f,s-f):G(a.check,i,f,s-f)),f=l,4&a.wrap&&(a.flags?h:Ge(h))!==a.check){t.msg='incorrect data check',a.mode=Ye;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg='incorrect length check',a.mode=Ye;break}h=0,d=0}a.mode=16208;case 16208:x=Se;break t;case Ye:x=Te;break t;case 16210:return Ie;default:return De}return t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<Ye&&(a.mode<Ke||e!==Ee))&&na(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?W(a.check,i,f,t.next_out-f):G(a.check,i,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(a.mode===Ce?128:0)+(a.mode===He||a.mode===Me?256:0),(0===_&&0===f||e===Ee)&&x===Ue&&(x=Fe),x},inflateEnd:t=>{if(We(t))return De;let e=t.state;return e.window&&(e.window=null),t.state=null,Ue},inflateGetHeader:(t,e)=>{if(We(t))return De;const a=t.state;return 2&a.wrap?(a.head=e,e.done=!1,Ue):De},inflateSetDictionary:(t,e)=>{const a=e.length;let n,i,r;return We(t)?De:(n=t.state,0!==n.wrap&&n.mode!==Be?De:n.mode===Be&&(i=1,i=G(i,e,a,0),i!==n.check)?Te:(r=na(t,e,a,a),r?(n.mode=16210,Ie):(n.havedict=1,Ue)))},inflateInfo:'pako inflate (from Nodeca project)'};var ra=function(){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};const sa=Object.prototype.toString,{Z_NO_FLUSH:oa,Z_FINISH:la,Z_OK:ha,Z_STREAM_END:da,Z_NEED_DICT:_a,Z_STREAM_ERROR:fa,Z_DATA_ERROR:ca,Z_MEM_ERROR:ua}=J;function wa(t){this.options=Qt({chunkSize:65536,windowBits:15,to:''},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let a=ia.inflateInit2(this.strm,e.windowBits);if(a!==ha)throw new Error(q[a]);if(this.header=new ra,ia.inflateGetHeader(this.strm,this.header),e.dictionary&&('string'==typeof e.dictionary?e.dictionary=ae(e.dictionary):'[object ArrayBuffer]'===sa.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=ia.inflateSetDictionary(this.strm,e.dictionary),a!==ha)))throw new Error(q[a])}function ba(t,e){const a=new wa(e);if(a.push(t),a.err)throw a.msg||q[a.err];return a.result}wa.prototype.push=function(t,e){const a=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let r,s,o;if(this.ended)return!1;for(s=e===~~e?e:!0===e?la:oa,'[object ArrayBuffer]'===sa.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(n),a.next_out=0,a.avail_out=n),r=ia.inflate(a,s),r===_a&&i&&(r=ia.inflateSetDictionary(a,i),r===ha?r=ia.inflate(a,s):r===ca&&(r=_a));a.avail_in>0&&r===da&&a.state.wrap>0&&0!==t[a.next_in];)ia.inflateReset(a),r=ia.inflate(a,s);switch(r){case fa:case ca:case _a:case ua:return this.onEnd(r),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||r===da))if('string'===this.options.to){let t=ie(a.output,a.next_out),e=a.next_out-t,i=ne(a.output,t);a.next_out=e,a.avail_out=n-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(i)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==ha||0!==o){if(r===da)return r=ia.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},wa.prototype.onData=function(t){this.chunks.push(t)},wa.prototype.onEnd=function(t){t===ha&&('string'===this.options.to?this.result=this.chunks.join(''):this.result=Vt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ma={Inflate:wa,inflate:ba,inflateRaw:function(t,e){return(e=e||{}).raw=!0,ba(t,e)},ungzip:ba,constants:J};const{Deflate:ga,deflate:pa,deflateRaw:ka,gzip:va}=ge,{Inflate:ya,inflate:xa,inflateRaw:za,ungzip:Aa}=ma;var Ea=ga,Ra=pa,Za=ka,Ua=va,Sa=ya,Oa=xa,Da=za,Ta=Aa,Ia=J,Fa={Deflate:ga,deflate:pa,deflateRaw:ka,gzip:va,Inflate:ya,inflate:xa,inflateRaw:za,ungzip:Aa,constants:J}},3527,[]);
|
|
240
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.checkCrc=function(t,n,f){const c=t.readUint32(),u=o(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(u!==c)throw new Error(`CRC mismatch for chunk ${f}. Expected ${c}, found ${u}`)},e.writeCrc=function(t,n){t.writeUint32(o(new Uint8Array(t.buffer,t.byteOffset+t.offset-n,n),n))};const t=[];for(let n=0;n<256;n++){let f=n;for(let t=0;t<8;t++)1&f?f=3988292384^f>>>1:f>>>=1;t[n]=f}const n=4294967295;function f(n,f,o){let c=n;for(let n=0;n<o;n++)c=t[255&(c^f[n])]^c>>>8;return c}function o(t,o){return(f(n,t,o)^n)>>>0}},
|
|
241
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decodeInterlaceAdam7=function(n){const{data:p,width:c,height:o,channels:f,depth:x}=n,S=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(x/8)*f,s=new Uint8Array(o*c*l);let u=0;for(let n=0;n<7;n++){const y=S[n],i=Math.ceil((c-y.x)/y.xStep),f=Math.ceil((o-y.y)/y.yStep);if(i<=0||f<=0)continue;const x=i*l,h=new Uint8Array(x);for(let n=0;n<f;n++){const f=p[u++],S=p.subarray(u,u+x);u+=x;const w=new Uint8Array(x);(0,t.applyUnfilter)(f,S,w,h,x,l),h.set(w);for(let t=0;t<i;t++){const i=y.x+t*y.xStep,p=y.y+n*y.yStep;if(!(i>=c||p>=o))for(let n=0;n<l;n++)s[(p*c+i)*l+n]=w[t*l+n]}}}if(16===x){const t=new Uint16Array(s.buffer);if(y)for(let n=0;n<t.length;n++)t[n]=i(t[n]);return t}return s};var t=r(d[0]);const n=new Uint16Array([255]),y=255===new Uint8Array(n.buffer)[0];function i(t){return(255&t)<<8|t>>8&255}},
|
|
242
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyUnfilter=function(n,u,f,l,c,s){switch(n){case 0:(0,t.unfilterNone)(u,f,c);break;case 1:(0,t.unfilterSub)(u,f,c,s);break;case 2:(0,t.unfilterUp)(u,f,l,c);break;case 3:(0,t.unfilterAverage)(u,f,l,c,s);break;case 4:(0,t.unfilterPaeth)(u,f,l,c,s);break;default:throw new Error(`Unsupported filter: ${n}`)}};var t=r(d[0])},
|
|
243
|
-
__d(function(g,r,_i,_a,m,e,d){"use strict";function t(t,f,n){const o=t+f-n,l=Math.abs(o-t),i=Math.abs(o-f),u=Math.abs(o-n);return l<=i&&l<=u?t:i<=u?f:n}Object.defineProperty(e,'__esModule',{value:!0}),e.unfilterNone=function(t,f,n){for(let o=0;o<n;o++)f[o]=t[o]},e.unfilterSub=function(t,f,n,o){let l=0;for(;l<o;l++)f[l]=t[l];for(;l<n;l++)f[l]=t[l]+f[l-o]&255},e.unfilterUp=function(t,f,n,o){let l=0;if(0===n.length)for(;l<o;l++)f[l]=t[l];else for(;l<o;l++)f[l]=t[l]+n[l]&255},e.unfilterAverage=function(t,f,n,o,l){let i=0;if(0===n.length){for(;i<l;i++)f[i]=t[i];for(;i<o;i++)f[i]=t[i]+(f[i-l]>>1)&255}else{for(;i<l;i++)f[i]=t[i]+(n[i]>>1)&255;for(;i<o;i++)f[i]=t[i]+(f[i-l]+n[i]>>1)&255}},e.unfilterPaeth=function(f,n,o,l,i){let u=0;if(0===o.length){for(;u<i;u++)n[u]=f[u];for(;u<l;u++)n[u]=f[u]+n[u-i]&255}else{for(;u<i;u++)n[u]=f[u]+o[u]&255;for(;u<l;u++)n[u]=f[u]+t(n[u-i],o[u],o[u-i])&255}}},
|
|
244
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decodeInterlaceNull=function(n){const{data:f,width:l,height:s,channels:o,depth:b}=n,h=Math.ceil(b/8)*o,w=Math.ceil(b/8*o*l),y=new Uint8Array(s*w);let U,A,k=u,p=0;for(let n=0;n<s;n++){switch(U=f.subarray(p+1,p+1+w),A=y.subarray(n*w,(n+1)*w),f[p]){case 0:(0,t.unfilterNone)(U,A,w);break;case 1:(0,t.unfilterSub)(U,A,w,h);break;case 2:(0,t.unfilterUp)(U,A,k,w);break;case 3:(0,t.unfilterAverage)(U,A,k,w,h);break;case 4:(0,t.unfilterPaeth)(U,A,k,w,h);break;default:throw new Error(`Unsupported filter: ${f[p]}`)}k=A,p+=w+1}if(16===b){const t=new Uint16Array(y.buffer);if(i)for(let n=0;n<t.length;n++)t[n]=c(t[n]);return t}return y};var t=r(d[0]);const n=new Uint16Array([255]),i=255===new Uint8Array(n.buffer)[0],u=new Uint8Array(0);function c(t){return(255&t)<<8|t>>8&255}},
|
|
245
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.writeSignature=function(n){n.writeBytes(t)},e.checkSignature=function(i){if(!n(i.readBytes(t.length)))throw new Error('wrong PNG signature')},e.hasPngSignature=n;const t=Uint8Array.of(137,80,78,71,13,10,26,10);function n(n){if(n.length<t.length)return!1;for(let i=0;i<t.length;i++)if(n[i]!==t[i])return!1;return!0}},
|
|
246
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"textChunkName",{enumerable:!0,get:function(){return n}}),e.decodetEXt=function(t,n,o){const c=w(n);t[c]=h(n,o-c.length-1)},e.encodetEXt=function(c,u,w){s(u),f(w);const h=u.length+1+w.length;c.writeUint32(h),c.writeChars(n),c.writeChars(u),c.writeByte(o),c.writeChars(w),(0,t.writeCrc)(c,h+4)},e.readKeyword=w,e.readLatin1=h;var t=r(d[0]);const n='tEXt',o=0,c=new TextDecoder('latin1');function s(t){if(f(t),0===t.length||t.length>79)throw new Error('keyword length must be between 1 and 79')}const u=/^[\u0000-\u00FF]*$/;function f(t){if(!u.test(t))throw new Error('invalid latin1 text')}function w(t){for(t.mark();t.readByte()!==o;);const n=t.offset;t.reset();const u=c.decode(t.readBytes(n-t.offset-1));return t.skip(1),s(u),u}function h(t,n){return c.decode(t.readBytes(n))}},
|
|
247
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ColorType",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"CompressionMethod",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FilterMethod",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"InterlaceMethod",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"DisposeOpType",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"BlendOpType",{enumerable:!0,get:function(){return N}});const t={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},n={UNKNOWN:-1,DEFLATE:0},O={UNKNOWN:-1,ADAPTIVE:0},o={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},u={NONE:0,BACKGROUND:1,PREVIOUS:2},N={SOURCE:0,OVER:1}},
|
|
248
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),i=r(d[1]),n=r(d[2]),h=r(d[3]),o=r(d[4]),s=r(d[5]);const c={level:3};class l extends t.IOBuffer{constructor(t,i={}){super(),this._colorType=s.ColorType.UNKNOWN,this._zlibOptions={...c,...i.zlib},this._png=this._checkData(t),this._interlaceMethod=('Adam7'===i.interlace?s.InterlaceMethod.ADAM7:s.InterlaceMethod.NO_INTERLACE)??s.InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if((0,h.writeSignature)(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),4===this._png.palette[0].length&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[t,i]of Object.entries(this._png.text))(0,o.encodetEXt)(this,t,i);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars('IHDR'),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(s.CompressionMethod.DEFLATE),this.writeByte(s.FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),(0,n.writeCrc)(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars('IEND'),(0,n.writeCrc)(this,4)}encodePLTE(){const t=3*this._png.palette?.length;this.writeUint32(t),this.writeChars('PLTE');for(const t of this._png.palette)this.writeByte(t[0]),this.writeByte(t[1]),this.writeByte(t[2]);(0,n.writeCrc)(this,4+t)}encodeTRNS(){const t=this._png.palette.filter(t=>255!==t.at(-1));this.writeUint32(t.length),this.writeChars('tRNS');for(const i of t)this.writeByte(i.at(-1));(0,n.writeCrc)(this,4+t.length)}encodeIDAT(t){this.writeUint32(t.length),this.writeChars('IDAT'),this.writeBytes(t),(0,n.writeCrc)(this,t.length+4)}encodeData(){const{width:n,height:h,channels:o,depth:c,data:l}=this._png,p=c<=8?Math.ceil(n*c/8)*o:Math.ceil(n*c/8*o/2),y=(new t.IOBuffer).setBigEndian();let _=0;if(this._interlaceMethod===s.InterlaceMethod.NO_INTERLACE)for(let t=0;t<h;t++)y.writeByte(0),_=16===c?u(l,y,p,_):w(l,y,p,_);else this._interlaceMethod===s.InterlaceMethod.ADAM7&&(_=f(this._png,l,y,_));const T=y.toArray(),E=(0,i.deflate)(T,this._zlibOptions);this.encodeIDAT(E)}_checkData(t){const{colorType:i,channels:n,depth:h}=y(t,t.palette),o={width:p(t.width,'width'),height:p(t.height,'height'),channels:n,data:t.data,depth:h,text:t.text,palette:t.palette};this._colorType=i;const s=h<8?Math.ceil(o.width*h/8)*o.height*n:o.width*o.height*n;if(o.data.length!==s)throw new RangeError(`wrong data size. Found ${o.data.length}, expected ${s}`);return o}}function p(t,i){if(Number.isInteger(t)&&t>0)return t;throw new TypeError(`${i} must be a positive integer`)}function y(t,i){const{channels:n=4,depth:h=8}=t;if(4!==n&&3!==n&&2!==n&&1!==n)throw new RangeError(`unsupported number of channels: ${n}`);const o={channels:n,depth:h,colorType:s.ColorType.UNKNOWN};switch(n){case 4:o.colorType=s.ColorType.TRUECOLOUR_ALPHA;break;case 3:o.colorType=s.ColorType.TRUECOLOUR;break;case 1:o.colorType=i?s.ColorType.INDEXED_COLOUR:s.ColorType.GREYSCALE;break;case 2:o.colorType=s.ColorType.GREYSCALE_ALPHA;break;default:throw new Error('unsupported number of channels')}return o}function w(t,i,n,h){for(let o=0;o<n;o++)i.writeByte(t[h++]);return h}function f(t,i,n,h){const o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:s,height:c,channels:l,depth:p}=t;let y=0;y=16===p?l*p/8/2:l*p/8;for(let t=0;t<7;t++){const h=o[t],l=Math.floor((s-h.x+h.xStep-1)/h.xStep),w=Math.floor((c-h.y+h.yStep-1)/h.yStep);if(l<=0||w<=0)continue;const f=l*y;for(let t=0;t<w;t++){const o=h.y+t*h.yStep,w=p<=8?new Uint8Array(f):new Uint16Array(f);let u=0;for(let t=0;t<l;t++){const n=h.x+t*h.xStep;if(n<s&&o<c){const t=(o*s+n)*y;for(let n=0;n<y;n++)w[u++]=i[t+n]}}if(n.writeByte(0),8===p)n.writeBytes(w);else if(16===p)for(const t of w)n.writeByte(t>>8&255),n.writeByte(255&t)}}return h}function u(t,i,n,h){for(let o=0;o<n;o++)i.writeUint16(t[h++]);return h}},
|
|
249
|
-
__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ResolutionUnitSpecifier",{enumerable:!0,get:function(){return t}}),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(t||(t={}))},
|
|
250
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.depth<8?Math.ceil(t.width*t.depth/8)*t.height*t.channels:t.width*t.height*t.channels;if(t.data.length!==n)throw new RangeError(`wrong data size. Found ${t.data.length}, expected ${n}`)}Object.defineProperty(e,'__esModule',{value:!0}),e.convertIndexedToRgb=function(n){const o=n.palette,c=n.depth;if(!o)throw new Error('Color palette is undefined.');t(n);const h=n.width*n.height,l=h*o[0].length,s=new Uint8Array(l);let f=0,w=0;const p=new Uint8Array(h);let u=255;switch(c){case 1:u=128;break;case 2:u=192;break;case 4:u=240;break;case 8:u=255;break;default:throw new Error('Incorrect depth value')}for(const t of n.data){let o=u,h=8;for(;o&&(h-=c,p[f++]=(t&o)>>h,o>>=c,f%n.width!==0););}if(n.palette)for(const t of p){const o=n.palette.at(t);if(!o)throw new Error('Incorrect index of palette color');s.set(o,w),w+=o.length}return s}},
|
|
229
|
+
(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,a,o,s,u,c=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),r=e>>8,n=d[r];return void 0!==n?c[256*n+(255&e)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=b(t.charAt(r))))return!1;if("R"===e)return!0}return!1},w=function(t,e,o,s){var u,c,l,h,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(u=o[s-1])&&"AN"!==u||"EN"!==(c=e[s+1])&&"AN"!==c?f="N":m&&(c="AN"),f=c===u?c:"N";break;case"ES":f="EN"===(u=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(l=s+1,h=e.length;l<h&&"ET"===e[l];)l++;f=l<h&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!a){for(h=e.length,l=s+1;l<h&&"NSM"===e[l];)l++;if(l<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(u=e[l],p&&("R"===u||"AL"===u)){f="R";break}}}f=s<1||"B"===(u=e[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,f=v;break;case"S":n=!0,f="N"}return f},N=function(t,e,r){var n=t.split("");return r&&L(n,r,{hiLevel:v}),n.reverse(),e&&e.reverse(),n.join("")},L=function(t,e,i){var a,o,s,u,c,d=-1,p=t.length,g=0,y=[],N=v?h:l,L=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)L[o]=b(t[o]);for(s=0;s<p;s++){if(c=g,y[s]=w(t,L,y,s),a=240&(g=N[c][f[y[s]]]),g&=15,e[s]=u=N[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(N[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=u;d=-1}"B"===L[s]&&(e[s]=0),i.hiLevel|=u}n&&(function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=v;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=v}})(L,e,p)},x=function(t,e,n,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!r)return e.reverse(),void(n&&n.reverse());for(var o,s,u,c,l=e.length,h=0;h<l;){if(i[h]>=t){for(u=h+1;u<l&&i[u]>=t;)u++;for(c=h,s=u-1;c<s;c++,s--)o=e[c],e[c]=e[s],e[s]=o,n&&(o=n[c],n[c]=n[s],n[s]=o);h=u}h++}}},A=function(t,e,r){var n=t.split(""),i={hiLevel:v};return r||(r=[]),L(n,r,i),(function(t,e,r){if(0!==r.hiLevel&&u)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=p.indexOf(t[i]))>=0&&(t[i]=p[n+1])})(n,r,i),x(2,n,e,r,i),x(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if((function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===a&&(a=y(t)),void 0===s&&(s=y(t))})(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=N(t,e,r);else if(!i&&o&&s)v=a?1:0,t=A(t,e,r),t=N(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=N(t,e),a?(v=0,t=A(t,e,r)):(v=1,t=A(t,e,r),t=N(t,e));else if(i&&a&&!o&&s)v=1,t=A(t,e,r),t=N(t,e);else if(!i&&!o&&a^s){var n=u;a?(v=1,t=A(t,e,r),v=0,u=!1,t=A(t,e,r),u=n):(v=0,t=A(t,e,r),t=N(t,e),v=1,u=!1,t=A(t,e,r),u=n,t=N(t,e))}}else v=0,t=A(t,e,r);else v=a?1:0,t=A(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=t.isInputRtl,s=t.isOutputRtl,u=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var n=t.options||{};t.mutex,n.lang;var i=[];if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([r.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([r.doBidiReorder(e[a])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])})(V),V.API.TTFFont=(function(){function t(t){var e;if(this.rawData=t,e=this.contents=new we(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new De(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ne(this.contents),this.head=new Ae(this),this.name=new je(this),this.cmap=new _e(this),this.toUnicode={},this.hhea=new Pe(this),this.maxp=new Ce(this),this.hmtx=new Oe(this),this.post=new Fe(this),this.os2=new ke(this),this.loca=new Re(this),this.glyf=new Me(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return a*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t})();var ye,we=(function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t})(),Ne=(function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,u,c,l,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),a=Math.floor(l/s),c=16*f-l,(n=new we).writeInt(this.scalarType),n.writeShort(f),n.writeShort(l),n.writeShort(a),n.writeShort(c),i=16*f,u=n.pos+i,o=null,d=[],e)for(h=e[p],n.writeString(p),n.writeInt(t(h)),n.writeInt(u),n.writeInt(h.length),d=d.concat(h),"head"===p&&(o=u),u+=h.length;u%4;)d.push(0),u++;return n.write(d),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=Be.call(t);t.length%4;)t.push(0);for(n=new we(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e})(),Le={}.hasOwnProperty,xe=function(t,e){for(var r in e)Le.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};ye=(function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var Ae=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new we).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t})(),Se=(function(){function t(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),h=f/2,t.pos+=6,i=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),t.pos+=2,p=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),u=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),c=(function(){var e,r;for(r=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)r.push(t.readUInt16());return r})(),n=(this.length-t.pos+this.offset)/2,o=(function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r})(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===c[s]?a=r+u[s]:0!==(a=o[c[s]/2+(r-d)-(h-s)]||0)&&(a+=u[s]),this.codeMap[r]=65535&a}t.pos=l}return t.encode=function(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m,v,b,y,w,N,L,x,A,S,_,P,k,F,I,j,C,O,B,M,q,E,R,D,T,z,U,H,W,V,G,Y;switch(F=new we,a=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,g=(function(){var t=[];for(d=0;d<256;++d)t.push(0);return t})(),v={0:0},i={},I=0,B=a.length;I<B;I++)null==v[W=t[n=a[I]]]&&(v[W]=++p),i[n]={old:t[n],new:v[t[n]]},g[n]=v[t[n]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:p+1};case"unicode":for(P=[],l=[],b=0,v={},r={},m=u=null,j=0,M=a.length;j<M;j++)null==v[w=t[n=a[j]]]&&(v[w]=++b),r[n]={old:w,new:v[w]},o=v[w]-n,null!=m&&o===u||(m&&l.push(m),P.push(n),u=o),m=n;for(m&&l.push(m),l.push(65535),P.push(65535),S=2*(A=P.length),x=2*Math.pow(Math.log(A)/Math.LN2,2),h=Math.log(x/2)/Math.LN2,L=2*A-x,s=[],N=[],f=[],d=C=0,q=P.length;C<q;d=++C){if(_=P[d],c=l[d],65535===_){s.push(0),N.push(0);break}if(_-(k=r[_].new)>=32768)for(s.push(0),N.push(2*(f.length+A-d)),n=O=_;_<=c?O<=c:O>=c;n=_<=c?++O:--O)f.push(r[n].new);else s.push(k-_),N.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*A+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(x),F.writeUInt16(h),F.writeUInt16(L),U=0,E=l.length;U<E;U++)n=l[U],F.writeUInt16(n);for(F.writeUInt16(0),H=0,R=P.length;H<R;H++)n=P[H],F.writeUInt16(n);for(V=0,D=s.length;V<D;V++)o=s[V],F.writeUInt16(o);for(G=0,T=N.length;G<T;G++)y=N[G],F.writeUInt16(y);for(Y=0,z=f.length;Y<z;Y++)p=f[Y],F.writeUInt16(p);return{charMap:r,subtable:F.data,maxGlyphID:b+1}}},t})(),_e=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Se(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=Se.encode(t,e),(n=new we).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t})(),Pe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t})(),ke=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t})(),Fe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},t})(),Ie=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},je=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,n,i,a,o,s,u,c,l,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=c=0,l=r.length;c<l;i=++c)n=r[i],t.pos=n.offset,u=t.readString(n.length),a=new Ie(u,n),null==s[h=n.nameID]&&(s[h]=[]),s[n.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t})(),Ce=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t})(),Oe=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,r,n,i,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i})(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],e=a=0;0<=n?a<n:a>n;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t})(),Be=[].slice,Me=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,u,c,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new we(e.read(n))).readShort(),u=o.readShort(),l=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===a?new Ee(o,u,l,s,c):new qe(o,a,u,l,s,c),this.cache[t]))},t.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)n=t[e[o]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},t})(),qe=(function(){function t(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),Ee=(function(){function t(t,e,r,n,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,r;for(e=new we(Be.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t})(),Re=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return xe(t,ye),t.prototype.tag="loca",t.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<e.length&&e[i]==a){++i,r[a]=n;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(n+=s)}for(var u=new Array(4*r.length),c=0;c<r.length;++c)u[4*c+3]=255&r[c],u[4*c+2]=(65280&r[c])>>8,u[4*c+1]=(16711680&r[c])>>16,u[4*c]=(4278190080&r[c])>>24;return u},t})(),De=(function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a<o;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,u,c,l,h,f,d,p,g,m;for(n in r=_e.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=r.charMap)f[(s=m[n]).old]=s.new;for(d in h=r.maxGlyphID,a)d in f||(f[d]=h++);return c=(function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r})(f),l=Object.keys(c).sort(function(t,e){return t-e}),p=(function(){var t,e,r;for(r=[],t=0,e=l.length;t<e;t++)o=l[t],r.push(c[o]);return r})(),i=this.font.glyf.encode(a,p,f),u=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t})();V.API.PDFObject=(function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+(function(){var t,i,a;for(a=[],t=0,i=r.length;t<i;t++)n=r[t],a.push(e.convert(n));return a})().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+r},e})()},2545,{"0":3447,"1":3730,"2":3731,"3":3735,"4":2579,"5":1448,"6":2580,"7":2581,"paths":{"2579":"/console/_expo/static/js/web/html2canvas-8740cb909d92bcbcd5128c4265ae890c.js","2580":"/console/_expo/static/js/web/purify-d9e99834b4816b312cfc51c46b30f0dd.js","2581":"/console/_expo/static/js/web/index-379cff9e48252edc8efaf87d0f3af68f.js"}});
|
|
230
|
+
__d(function(g,_r,_i2,_a2,_m,_e2,_d2){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"FlateErrorCode",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e2,"Deflate",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e2,"AsyncDeflate",{enumerable:!0,get:function(){return St}}),_e2.deflate=jt,_e2.deflateSync=Mt,Object.defineProperty(_e2,"Inflate",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e2,"AsyncInflate",{enumerable:!0,get:function(){return xt}}),_e2.inflate=At,_e2.inflateSync=Ct,Object.defineProperty(_e2,"Gzip",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e2,"AsyncGzip",{enumerable:!0,get:function(){return Dt}}),_e2.gzip=Ut,_e2.gzipSync=It,Object.defineProperty(_e2,"Gunzip",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(_e2,"AsyncGunzip",{enumerable:!0,get:function(){return Et}}),_e2.gunzip=Zt,_e2.gunzipSync=qt,Object.defineProperty(_e2,"Zlib",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e2,"AsyncZlib",{enumerable:!0,get:function(){return Lt}}),_e2.zlib=function(t,n,e){e||(e=n,n={});'function'!=typeof e&&U(7);return ft(t,n,[et,ot,function(){return[$t]}],function(t){return st($t(t.data[0],t.data[1]))},4,e)},_e2.zlibSync=$t,Object.defineProperty(_e2,"Unzlib",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(_e2,"AsyncUnzlib",{enumerable:!0,get:function(){return Ht}}),_e2.unzlib=Bt,_e2.unzlibSync=Nt,Object.defineProperty(_e2,"compress",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(_e2,"AsyncCompress",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e2,"compressSync",{enumerable:!0,get:function(){return It}}),Object.defineProperty(_e2,"Compress",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e2,"Decompress",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e2,"AsyncDecompress",{enumerable:!0,get:function(){return Wt}}),_e2.decompress=function(t,n,e){e||(e=n,n={});'function'!=typeof e&&U(7);return 31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,e):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,e):Bt(t,n,e)},_e2.decompressSync=function(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ct(t,n):Nt(t,n)},Object.defineProperty(_e2,"DecodeUTF8",{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(_e2,"EncodeUTF8",{enumerable:!0,get:function(){return tn}}),_e2.strToU8=nn,_e2.strFromU8=en,Object.defineProperty(_e2,"ZipPassThrough",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(_e2,"ZipDeflate",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(_e2,"AsyncZipDeflate",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_e2,"Zip",{enumerable:!0,get:function(){return vn}}),_e2.zip=function(t,n,r){r||(r=n,n={});'function'!=typeof r&&U(7);var i={};Yt(t,'',i,n);var o=Object.keys(i),a=o.length,s=0,u=0,f=a,h=new Array(a),c=[],l=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(t,n){mn(function(){r(t,n)})};mn(function(){p=r});var v=function(){var t=new e(u+22),n=s,r=u-s;u=0;for(var i=0;i<f;++i){var o=h[i];try{var a=o.c.length;fn(t,u,o,o.f,o.u,a);var c=30+o.f.length+un(o.extra),l=u+c;t.set(o.c,l),fn(t,s,o,o.f,o.u,a,u,o.m),s+=16+c+(o.m?o.m.length:0),u=l+a}catch(t){return p(t,null)}}hn(t,s,h.length,r,n),p(null,t)};a||v();for(var d=function(t){var n=o[t],e=i[n],r=e[0],f=e[1],d=W(),y=r.length;d.p(r);var b=nn(n),m=b.length,w=f.comment,z=w&&nn(w),O=z&&z.length,k=un(f.extra),S=0==f.level?0:8,j=function(e,r){if(e)l(),p(e,null);else{var i=r.length;h[t]=K(f,{size:y,crc:d.d(),c:r,f:b,m:z,u:m!=n.length||z&&w.length!=O,compression:S}),s+=30+m+k+i,u+=76+2*(m+k)+(O||0)+i,--a||v()}};if(m>65535&&j(U(11,0,1),null),S)if(y<16e4)try{j(null,Mt(r,f))}catch(t){j(t,null)}else c.push(jt(r,f,j));else j(null,r)},y=0;y<f;++y)d(y);return l},_e2.zipSync=function(t,n){n||(n={});var r={},i=[];Yt(t,'',r,n);var o=0,a=0;for(var s in r){var u=r[s],f=u[0],h=u[1],c=0==h.level?0:8,l=(j=nn(s)).length,p=h.comment,v=p&&nn(p),d=v&&v.length,y=un(h.extra);l>65535&&U(11);var b=c?Mt(f,h):f,m=b.length,w=W();w.p(f),i.push(K(h,{size:f.length,crc:w.d(),c:b,f:j,m:v,u:l!=s.length||v&&p.length!=d,o:o,compression:c})),o+=30+l+y+m,a+=76+2*(l+y)+(d||0)+m}for(var z=new e(a+22),O=o,k=a-o,S=0;S<i.length;++S){var j=i[S];fn(z,j.o,j,j.f,j.u,j.c.length);var M=30+j.f.length+un(j.extra);z.set(j.c,j.o+M),fn(z,o,j,j.f,j.u,j.c.length,j.o,j.m),o+=16+M+(j.m?j.m.length:0)}return hn(z,o,i.length,k,O),z},Object.defineProperty(_e2,"UnzipPassThrough",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(_e2,"UnzipInflate",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(_e2,"AsyncUnzipInflate",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(_e2,"Unzip",{enumerable:!0,get:function(){return bn}}),_e2.unzip=function(t,n,r){r||(r=n,n={});'function'!=typeof r&&U(7);var i=[],o=function(){for(var t=0;t<i.length;++t)i[t]()},a={},s=function(t,n){mn(function(){r(t,n)})};mn(function(){s=r});for(var u=t.length-22;101010256!=pt(t,u);--u)if(!u||t.length-u>65558)return s(U(13,0,1),null),o;var f=lt(t,u+8);if(f){var h=f,c=pt(t,u+16),l=4294967295==c||65535==h;if(l){var p=pt(t,u-12);(l=101075792==pt(t,p))&&(h=f=pt(t,p+32),c=pt(t,p+48))}for(var v=n&&n.filter,d=function(n){var r=an(t,c,l),u=r[0],h=r[1],p=r[2],d=r[3],y=r[4],b=r[5],m=on(t,b);c=y;var w=function(t,n){t?(o(),s(t,null)):(n&&(a[d]=n),--f||s(null,a))};if(!v||v({name:d,size:h,originalSize:p,compression:u}))if(u)if(8==u){var z=t.subarray(m,m+h);if(p<524288||h>.8*p)try{w(null,Ct(z,{out:new e(p)}))}catch(t){w(t,null)}else i.push(At(z,{size:p},w))}else w(U(14,'unknown compression type '+u,1),null);else w(null,C(t,m,m+h));else w(null,null)},y=0;y<h;++y)d()}else s(null,{});return o},_e2.unzipSync=function(t,n){for(var r={},i=t.length-22;101010256!=pt(t,i);--i)(!i||t.length-i>65558)&&U(13);var o=lt(t,i+8);if(!o)return{};var a=pt(t,i+16),s=4294967295==a||65535==o;if(s){var u=pt(t,i-12);(s=101075792==pt(t,u))&&(o=pt(t,u+32),a=pt(t,u+48))}for(var f=n&&n.filter,h=0;h<o;++h){var c=an(t,a,s),l=c[0],p=c[1],v=c[2],d=c[3],y=c[4],b=c[5],m=on(t,b);a=y,f&&!f({name:d,size:p,originalSize:v,compression:l})||(l?8==l?r[d]=Ct(t.subarray(m,m+p),{out:new e(v)}):U(14,'unknown compression type '+l):r[d]=C(t,m,m+p))}return r};var t={},n=function(n,e,r,i,o){var a=new Worker(t[e]||(t[e]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:'text/javascript'}))));return a.onmessage=function(t){var n=t.data,e=n.$e$;if(e){var r=new Error(e[0]);r.code=e[1],r.stack=e[2],o(r,null)}else o(null,n)},a.postMessage(r,i),a},e=Uint8Array,r=Uint16Array,i=Int32Array,o=new e([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]),a=new e([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]),s=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,n){for(var e=new r(31),o=0;o<31;++o)e[o]=n+=1<<t[o-1];var a=new i(e[30]);for(o=1;o<30;++o)for(var s=e[o];s<e[o+1];++s)a[s]=s-e[o]<<5|o;return{b:e,r:a}},f=u(o,2),h=f.b,c=f.r;h[28]=258,c[258]=28;for(var l=u(a,0),p=l.b,v=l.r,d=new r(32768),y=0;y<32768;++y){var b=(43690&y)>>1|(21845&y)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,d[y]=((65280&b)>>8|(255&b)<<8)>>1}var m=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o<i;++o)t[o]&&++a[t[o]-1];var s,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+a[o-1]<<1;if(e){s=new r(1<<n);var f=15-n;for(o=0;o<i;++o)if(t[o])for(var h=o<<4|t[o],c=n-t[o],l=u[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)s[d[l]>>f]=h}else for(s=new r(i),o=0;o<i;++o)t[o]&&(s[o]=d[u[t[o]-1]++]>>15-t[o]);return s},w=new e(288);for(y=0;y<144;++y)w[y]=8;for(y=144;y<256;++y)w[y]=9;for(y=256;y<280;++y)w[y]=7;for(y=280;y<288;++y)w[y]=8;var z=new e(32);for(y=0;y<32;++y)z[y]=5;var O=m(w,9,0),k=m(w,9,1),S=m(z,5,0),j=m(z,5,1),M=function(t){for(var n=t[0],e=1;e<t.length;++e)t[e]>n&&(n=t[e]);return n},P=function(t,n,e){var r=n/8|0;return(t[r]|t[r+1]<<8)>>(7&n)&e},x=function(t,n){var e=n/8|0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},C=function(t,n,r){return(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length),new e(t.subarray(n,r))},T={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},D=['unexpected EOF','invalid block type','invalid length/literal','invalid distance','stream finished','no stream handler',,'no callback','invalid UTF-8 data','extra field too long','date not in range 1980-2099','filename too long','stream finishing','invalid zip data'],U=function(t,n,e){var r=new Error(n||D[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,U),!e)throw r;return r},I=function(t,n,r,i){var u=t.length,f=i?i.length:0;if(!u||n.f&&!n.l)return r||new e(0);var c=!r,l=c||2!=n.i,v=n.i;c&&(r=new e(3*u));var d=function(t){var n=r.length;if(t>n){var i=new e(Math.max(2*n,t));i.set(r),r=i}},y=n.f||0,b=n.p||0,w=n.b||0,z=n.l,O=n.d,S=n.m,T=n.n,D=8*u;do{if(!z){y=P(t,b,1);var I=P(t,b+1,3);if(b+=3,!I){var F=t[(R=A(b)+4)-4]|t[R-3]<<8,E=R+F;if(E>u){v&&U(0);break}l&&d(w+F),r.set(t.subarray(R,E),w),n.b=w+=F,n.p=b=8*E,n.f=y;continue}if(1==I)z=k,O=j,S=9,T=5;else if(2==I){var Z=P(t,b,31)+257,q=P(t,b+10,15)+4,G=Z+P(t,b+5,31)+1;b+=14;for(var L=new e(G),$=new e(19),_=0;_<q;++_)$[s[_]]=P(t,b+3*_,7);b+=3*q;var H=M($),B=(1<<H)-1,N=m($,H,1);for(_=0;_<G;){var R,W=N[P(t,b,B)];if(b+=15&W,(R=W>>4)<16)L[_++]=R;else{var Y=0,J=0;for(16==R?(J=3+P(t,b,3),b+=2,Y=L[_-1]):17==R?(J=3+P(t,b,7),b+=3):18==R&&(J=11+P(t,b,127),b+=7);J--;)L[_++]=Y}}var K=L.subarray(0,Z),Q=L.subarray(Z);S=M(K),T=M(Q),z=m(K,S,1),O=m(Q,T,1)}else U(1);if(b>D){v&&U(0);break}}l&&d(w+131072);for(var V=(1<<S)-1,X=(1<<T)-1,tt=b;;tt=b){var nt=(Y=z[x(t,b)&V])>>4;if((b+=15&Y)>D){v&&U(0);break}if(Y||U(2),nt<256)r[w++]=nt;else{if(256==nt){tt=b,z=null;break}var et=nt-254;if(nt>264){var rt=o[_=nt-257];et=P(t,b,(1<<rt)-1)+h[_],b+=rt}var it=O[x(t,b)&X],ot=it>>4;it||U(3),b+=15⁢Q=p[ot];if(ot>3){rt=a[ot];Q+=x(t,b)&(1<<rt)-1,b+=rt}if(b>D){v&&U(0);break}l&&d(w+131072);var at=w+et;if(w<Q){var st=f-Q,ut=Math.min(Q,at);for(st+w<0&&U(3);w<ut;++w)r[w]=i[st+w]}for(;w<at;++w)r[w]=r[w-Q]}}n.l=z,n.p=tt,n.b=w,n.f=y,z&&(y=1,n.m=S,n.d=O,n.n=T)}while(!y);return w!=r.length&&c?C(r,0,w):r.subarray(0,w)},F=function(t,n,e){e<<=7&n;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},E=function(t,n,e){e<<=7&n;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Z=function(t,n){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var a=i.length,s=i.slice();if(!a)return{t:B,l:0};if(1==a){var u=new e(i[0].s+1);return u[i[0].s]=1,{t:u,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],h=i[1],c=0,l=1,p=2;for(i[0]={s:-1,f:f.f+h.f,l:f,r:h};l!=a-1;)f=i[i[c].f<i[p].f?c++:p++],h=i[c!=l&&i[c].f<i[p].f?c++:p++],i[l++]={s:-1,f:f.f+h.f,l:f,r:h};var v=s[0].s;for(o=1;o<a;++o)s[o].s>v&&(v=s[o].s);var d=new r(v+1),y=q(i[l-1],d,0);if(y>n){o=0;var b=0,m=y-n,w=1<<m;for(s.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<a;++o){var z=s[o].s;if(!(d[z]>n))break;b+=w-(1<<y-d[z]),d[z]=n}for(b>>=m;b>0;){var O=s[o].s;d[O]<n?b-=1<<n-d[O]++-1:++o}for(;o>=0&&b;--o){var k=s[o].s;d[k]==n&&(--d[k],++b)}y=n}return{t:new e(d),l:y}},q=function(t,n,e){return-1==t.s?Math.max(q(t.l,n,e+1),q(t.r,n,e+1)):n[t.s]=e},G=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,s=function(t){e[i++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=t[u]}return{c:e.subarray(0,i),n:n}},L=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},$=function(t,n,e){var r=e.length,i=A(n+2);t[i]=255&r,t[i+1]=r>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=e[o];return 8*(i+4+r)},_=function(t,n,e,i,u,f,h,c,l,p,v){F(n,v++,e),++u[256];for(var d=Z(u,15),y=d.t,b=d.l,k=Z(f,15),j=k.t,M=k.l,P=G(y),x=P.c,A=P.n,C=G(j),T=C.c,D=C.n,U=new r(19),I=0;I<x.length;++I)++U[31&x[I]];for(I=0;I<T.length;++I)++U[31&T[I]];for(var q=Z(U,7),_=q.t,H=q.l,B=19;B>4&&!_[s[B-1]];--B);var N,R,W,Y,J=p+5<<3,K=L(u,w)+L(f,z)+h,Q=L(u,y)+L(f,j)+h+14+3*B+L(U,_)+2*U[16]+3*U[17]+7*U[18];if(l>=0&&J<=K&&J<=Q)return $(n,v,t.subarray(l,l+p));if(F(n,v,1+(Q<K)),v+=2,Q<K){N=m(y,b,0),R=y,W=m(j,M,0),Y=j;var V=m(_,H,0);F(n,v,A-257),F(n,v+5,D-1),F(n,v+10,B-4),v+=14;for(I=0;I<B;++I)F(n,v+3*I,_[s[I]]);v+=3*B;for(var X=[x,T],tt=0;tt<2;++tt){var nt=X[tt];for(I=0;I<nt.length;++I){var et=31&nt[I];F(n,v,V[et]),v+=_[et],et>15&&(F(n,v,nt[I]>>5&127),v+=nt[I]>>12)}}}else N=O,R=w,W=S,Y=z;for(I=0;I<c;++I){var rt=i[I];if(rt>255){E(n,v,N[(et=rt>>18&31)+257]),v+=R[et+257],et>7&&(F(n,v,rt>>23&31),v+=o[et]);var it=31&rt;E(n,v,W[it]),v+=Y[it],it>3&&(E(n,v,rt>>5&8191),v+=a[it])}else E(n,v,N[rt]),v+=R[rt]}return E(n,v,N[256]),v+R[256]},H=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new e(0),N=function(t,n,s,u,f,h){var l=h.z||t.length,p=new e(u+l+5*(1+Math.ceil(l/7e3))+f),d=p.subarray(u,p.length-f),y=h.l,b=7&(h.r||0);if(n){b&&(d[0]=h.r>>3);for(var m=H[n-1],w=m>>13,z=8191&m,O=(1<<s)-1,k=h.p||new r(32768),S=h.h||new r(O+1),j=Math.ceil(s/3),M=2*j,P=function(n){return(t[n]^t[n+1]<<j^t[n+2]<<M)&O},x=new i(25e3),T=new r(288),D=new r(32),U=0,I=0,F=h.i||0,E=0,Z=h.w||0,q=0;F+2<l;++F){var G=P(F),L=32767&F,B=S[G];if(k[L]=B,S[G]=L,Z<=F){var N=l-F;if((U>7e3||E>24576)&&(N>423||!y)){b=_(t,d,0,x,T,D,I,E,q,F-q,b),E=U=I=0,q=F;for(var R=0;R<286;++R)T[R]=0;for(R=0;R<30;++R)D[R]=0}var W=2,Y=0,J=z,K=L-B&32767;if(N>2&&G==P(F-K))for(var Q=Math.min(w,N)-1,V=Math.min(32767,F),X=Math.min(258,N);K<=V&&--J&&L!=B;){if(t[F+W]==t[F+W-K]){for(var tt=0;tt<X&&t[F+tt]==t[F+tt-K];++tt);if(tt>W){if(W=tt,Y=K,tt>Q)break;var nt=Math.min(K,tt-2),et=0;for(R=0;R<nt;++R){var rt=F-K+R&32767,it=rt-k[rt]&32767;it>et&&(et=it,B=rt)}}}K+=(L=B)-(B=k[L])&32767}if(Y){x[E++]=268435456|c[W]<<18|v[Y];var ot=31&c[W],at=31&v[Y];I+=o[ot]+a[at],++T[257+ot],++D[at],Z=F+W,++U}else x[E++]=t[F],++T[t[F]]}}for(F=Math.max(F,Z);F<l;++F)x[E++]=t[F],++T[t[F]];b=_(t,d,y,x,T,D,I,E,q,F-q,b),y||(h.r=7&b|d[b/8|0]<<3,b-=7,h.h=S,h.p=k,h.i=F,h.w=Z)}else{for(F=h.w||0;F<l+y;F+=65535){var st=F+65535;st>=l&&(d[b/8|0]=y,st=l),b=$(d,b+1,t.subarray(F,st))}h.i=l}return C(p,0,u+A(b)+f)},R=(function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var e=n,r=9;--r;)e=(1&e&&-306674912)^e>>>1;t[n]=e}return t})(),W=function(){var t=-1;return{p:function(n){for(var e=t,r=0;r<n.length;++r)e=R[255&e^n[r]]^e>>>8;t=e},d:function(){return~t}}},Y=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,o=0|e.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=e[a];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}t=r,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},J=function(t,n,r,i,o){if(!o&&(o={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),s=new e(a.length+t.length);s.set(a),s.set(t,a.length),t=s,o.w=a.length}return N(t,null==n.level?6:n.level,null==n.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+n.mem,r,i,o)},K=function(t,n){var e={};for(var r in t)e[r]=t[r];for(var r in n)e[r]=n[r];return e},Q=function(t,n,e){for(var r=t(),i=t.toString(),o=i.slice(i.indexOf('[')+1,i.lastIndexOf(']')).replace(/\s+/g,'').split(','),a=0;a<r.length;++a){var s=r[a],u=o[a];if('function'==typeof s){n+=';'+u+'=';var f=s.toString();if(s.prototype)if(-1!=f.indexOf('[native code]')){var h=f.indexOf(' ',8)+1;n+=f.slice(h,f.indexOf('(',h))}else for(var c in n+=f,s.prototype)n+=';'+u+'.prototype.'+c+'='+s.prototype[c].toString();else n+=f}else e[u]=s}return n},V=[],X=function(t){var n=[];for(var e in t)t[e].buffer&&n.push((t[e]=new t[e].constructor(t[e])).buffer);return n},tt=function(t,e,r,i){if(!V[r]){for(var o='',a={},s=t.length-1,u=0;u<s;++u)o=Q(t[u],o,a);V[r]={c:Q(t[s],o,a),e:a}}var f=K({},V[r].e);return n(V[r].c+';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage='+e.toString()+'}',r,f,X(f),i)},nt=function(){return[e,r,i,o,a,s,h,p,k,j,d,D,m,M,P,x,A,C,U,I,Ct,st,ut]},et=function(){return[e,r,i,o,a,s,c,v,O,w,S,z,d,H,B,m,F,E,Z,q,G,L,$,_,A,C,N,J,Mt,st]},rt=function(){return[gt,mt,dt,W,R]},it=function(){return[yt,bt]},ot=function(){return[wt,dt,Y]},at=function(){return[zt]},st=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&{out:t.size&&new e(t.size),dictionary:t.dictionary}},ft=function(t,n,e,r,i,o){var a=tt(e,r,i,function(t,n){a.terminate(),o(t,n)});return a.postMessage([t,n],n.consume?[t.buffer]:[]),function(){a.terminate()}},ht=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data.length?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush()}},ct=function(t,n,e,r,i,o,a){var s,u=tt(t,r,i,function(t,e){t?(u.terminate(),n.ondata.call(n,t)):Array.isArray(e)?1==e.length?(n.queuedSize-=e[0],n.ondrain&&n.ondrain(e[0])):(e[1]&&u.terminate(),n.ondata.call(n,t,e[0],e[1])):a(e)});u.postMessage(e),n.queuedSize=0,n.push=function(t,e){n.ondata||U(5),s&&n.ondata(U(4,0,1),null,!!e),n.queuedSize+=t.length,u.postMessage([t,s=e],[t.buffer])},n.terminate=function(){u.terminate()},o&&(n.flush=function(){u.postMessage([])})},lt=function(t,n){return t[n]|t[n+1]<<8},pt=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},vt=function(t,n){return pt(t,n)+4294967296*pt(t,n+4)},dt=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8},gt=function(t,n){var e=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&dt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),e){t[3]=8;for(var r=0;r<=e.length;++r)t[r+10]=e.charCodeAt(r)}},yt=function(t){31==t[0]&&139==t[1]&&8==t[2]||U(6,'invalid gzip data');var n=t[3],e=10;4&n&&(e+=2+(t[10]|t[11]<<8));for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!t[e++]);return e+(2&n)},bt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},mt=function(t){return 10+(t.filename?t.filename.length+1:0)},wt=function(t,n){var e=n.level,r=0==e?0:e<6?1:9==e?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Y();i.p(n.dictionary),dt(t,2,i.d())}},zt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&U(6,'invalid zlib data'),(t[1]>>5&1)==+!n&&U(6,'invalid zlib data: '+(32&t[1]?'need':'unexpected')+' dictionary'),2+(t[1]>>3&4)};function Ot(t,n){return'function'==typeof t&&(n=t,t={}),this.ondata=n,t}var kt=(function(){function t(t,n){if('function'==typeof t&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new e(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,n){this.ondata||U(5),this.s.l&&U(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new e(-32768&r);i.set(this.b.subarray(0,this.s.z)),this.b=i}var o=this.b.length-this.s.z;this.b.set(t.subarray(0,o),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(o),32768),this.s.z=t.length-o+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||U(5),this.s.l&&U(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t})(),St=(function(){return function(t,n){ct([et,function(){return[ht,kt]}],this,Ot.call(this,t,n),function(t){var n=new kt(t.data);onmessage=ht(n)},6,1)}})();function jt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[et],function(t){return st(Mt(t.data[0],t.data[1]))},0,e)}function Mt(t,n){return J(t,n||{},0,0)}var Pt=(function(){function t(t,n){'function'==typeof t&&(n=t,t={}),this.ondata=n;var r=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new e(32768),this.p=new e(0),r&&this.o.set(r)}return t.prototype.e=function(t){if(this.ondata||U(5),this.d&&U(4),this.p.length){if(t.length){var n=new e(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,e=I(this.p,this.s,this.o);this.ondata(C(e,n,this.s.b),this.d),this.o=C(e,this.s.b-32768),this.s.b=this.o.length,this.p=C(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t})(),xt=(function(){return function(t,n){ct([nt,function(){return[ht,Pt]}],this,Ot.call(this,t,n),function(t){var n=new Pt(t.data);onmessage=ht(n)},7,0)}})();function At(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt],function(t){return st(Ct(t.data[0],ut(t.data[1])))},1,e)}function Ct(t,n){return I(t,{i:2},n&&n.out,n&&n.dictionary)}var Tt=(function(){function t(t,n){this.c=W(),this.l=0,this.v=1,kt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,kt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var e=J(t,this.o,this.v&&mt(this.o),n&&8,this.s);this.v&&(gt(e,this.o),this.v=0),n&&(dt(e,e.length-8,this.c.d()),dt(e,e.length-4,this.l)),this.ondata(e,n)},t.prototype.flush=function(){kt.prototype.flush.call(this)},t})(),Dt=(function(){return function(t,n){ct([et,rt,function(){return[ht,kt,Tt]}],this,Ot.call(this,t,n),function(t){var n=new Tt(t.data);onmessage=ht(n)},8,1)}})();function Ut(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[et,rt,function(){return[It]}],function(t){return st(It(t.data[0],t.data[1]))},2,e)}function It(t,n){n||(n={});var e=W(),r=t.length;e.p(t);var i=J(t,n,mt(n),8),o=i.length;return gt(i,n),dt(i,o-8,e.d()),dt(i,o-4,r),i}var Ft=(function(){function t(t,n){this.v=1,this.r=0,Pt.call(this,t,n)}return t.prototype.push=function(t,n){if(Pt.prototype.e.call(this,t),this.r+=t.length,this.v){var r=this.p.subarray(this.v-1),i=r.length>3?yt(r):4;if(i>r.length){if(!n)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(i),this.v=0}Pt.prototype.c.call(this,n),!this.s.f||this.s.l||n||(this.v=A(this.s.p)+9,this.s={i:0},this.o=new e(0),this.push(new e(0),n))},t})(),Et=(function(){return function(t,n){var e=this;ct([nt,it,function(){return[ht,Pt,Ft]}],this,Ot.call(this,t,n),function(t){var n=new Ft(t.data);n.onmember=function(t){return postMessage(t)},onmessage=ht(n)},9,0,function(t){return e.onmember&&e.onmember(t)})}})();function Zt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt,it,function(){return[qt]}],function(t){return st(qt(t.data[0],t.data[1]))},3,e)}function qt(t,n){var r=yt(t);return r+8>t.length&&U(6,'invalid gzip data'),I(t.subarray(r,-8),{i:2},n&&n.out||new e(bt(t)),n&&n.dictionary)}var Gt=(function(){function t(t,n){this.c=Y(),this.v=1,kt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),kt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var e=J(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(wt(e,this.o),this.v=0),n&&dt(e,e.length-4,this.c.d()),this.ondata(e,n)},t.prototype.flush=function(){kt.prototype.flush.call(this)},t})(),Lt=(function(){return function(t,n){ct([et,ot,function(){return[ht,kt,Gt]}],this,Ot.call(this,t,n),function(t){var n=new Gt(t.data);onmessage=ht(n)},10,1)}})();function $t(t,n){n||(n={});var e=Y();e.p(t);var r=J(t,n,n.dictionary?6:2,4);return wt(r,n),dt(r,r.length-4,e.d()),r}var _t=(function(){function t(t,n){Pt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Pt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(zt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&U(6,'invalid zlib data'),this.p=this.p.subarray(0,-4)),Pt.prototype.c.call(this,n)},t})(),Ht=(function(){return function(t,n){ct([nt,at,function(){return[ht,Pt,_t]}],this,Ot.call(this,t,n),function(t){var n=new _t(t.data);onmessage=ht(n)},11,0)}})();function Bt(t,n,e){return e||(e=n,n={}),'function'!=typeof e&&U(7),ft(t,n,[nt,at,function(){return[Nt]}],function(t){return st(Nt(t.data[0],ut(t.data[1])))},5,e)}function Nt(t,n){return I(t.subarray(zt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var Rt=(function(){function t(t,n){this.o=Ot.call(this,t,n)||{},this.G=Ft,this.I=Pt,this.Z=_t}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,e){t.ondata(n,e)}},t.prototype.push=function(t,n){if(this.ondata||U(5),this.s)this.s.push(t,n);else{if(this.p&&this.p.length){var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,n),this.p=null)}},t})(),Wt=(function(){function t(t,n){Rt.call(this,t,n),this.queuedSize=0,this.G=Et,this.I=xt,this.Z=Ht}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,e,r){t.ondata(n,e,r)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Rt.prototype.push.call(this,t,n)},t})();var Yt=function(t,n,r,i){for(var o in t){var a=t[o],s=n+o,u=i;Array.isArray(a)&&(u=K(i,a[1]),a=a[0]),a instanceof e?r[s]=[a,u]:(r[s+='/']=[new e(0),u],Yt(a,s,r,i))}},Jt='undefined'!=typeof TextEncoder&&new TextEncoder,Kt='undefined'!=typeof TextDecoder&&new TextDecoder,Qt=0;try{Kt.decode(B,{stream:!0}),Qt=1}catch(t){}var Vt=function(t){for(var n='',e=0;;){var r=t[e++],i=(r>127)+(r>223)+(r>239);if(e+i>t.length)return{s:n,r:C(t,e-1)};i?3==i?(r=((15&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r)):n+=1&i?String.fromCharCode((31&r)<<6|63&t[e++]):String.fromCharCode((15&r)<<12|(63&t[e++])<<6|63&t[e++]):n+=String.fromCharCode(r)}},Xt=(function(){function t(t){this.ondata=t,Qt?this.t=new TextDecoder:this.p=B}return t.prototype.push=function(t,n){if(this.ondata||U(5),n=!!n,this.t)return this.ondata(this.t.decode(t,{stream:!0}),n),void(n&&(this.t.decode().length&&U(8),this.t=null));this.p||U(4);var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length);var i=Vt(r),o=i.s,a=i.r;n?(a.length&&U(8),this.p=null):this.p=a,this.ondata(o,n)},t})(),tn=(function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||U(5),this.d&&U(4),this.ondata(nn(t),this.d=n||!1)},t})();function nn(t,n){if(n){for(var r=new e(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Jt)return Jt.encode(t);var o=t.length,a=new e(t.length+(t.length>>1)),s=0,u=function(t){a[s++]=t};for(i=0;i<o;++i){if(s+5>a.length){var f=new e(s+8+(o-i<<1));f.set(a),a=f}var h=t.charCodeAt(i);h<128||n?u(h):h<2048?(u(192|h>>6),u(128|63&h)):h>55295&&h<57344?(u(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),u(128|h>>12&63),u(128|h>>6&63),u(128|63&h)):(u(224|h>>12),u(128|h>>6&63),u(128|63&h))}return C(a,0,s)}function en(t,n){if(n){for(var e='',r=0;r<t.length;r+=16384)e+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return e}if(Kt)return Kt.decode(t);var i=Vt(t),o=i.s;return(e=i.r).length&&U(8),o}var rn=function(t){return 1==t?3:t<6?2:9==t?1:0},on=function(t,n){return n+30+lt(t,n+26)+lt(t,n+28)},an=function(t,n,e){var r=lt(t,n+28),i=en(t.subarray(n+46,n+46+r),!(2048<(t,n+8))),o=n+46+r,a=pt(t,n+20),s=e&&4294967295==a?sn(t,o):[a,pt(t,n+24),pt(t,n+42)],u=s[0],f=s[1],h=s[2];return[lt(t,n+10),u,f,i,o+lt(t,n+30)+lt(t,n+32),h]},sn=function(t,n){for(;1!=lt(t,n);n+=4+lt(t,n+2));return[vt(t,n+12),vt(t,n+4),vt(t,n+20)]},un=function(t){var n=0;if(t)for(var e in t){var r=t[e].length;r>65535&&U(9),n+=r+4}return n},fn=function(t,n,e,r,i,o,a,s){var u=r.length,f=e.extra,h=s&&s.length,c=un(f);dt(t,n,null!=a?33639248:67324752),n+=4,null!=a&&(t[n++]=20,t[n++]=e.os),t[n]=20,n+=2,t[n++]=e.flag<<1|(o<0&&8),t[n++]=i&&8,t[n++]=255&e.compression,t[n++]=e.compression>>8;var l=new Date(null==e.mtime?Date.now():e.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&U(10),dt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1),n+=4,-1!=o&&(dt(t,n,e.crc),dt(t,n+4,o<0?-o-2:o),dt(t,n+8,e.size)),dt(t,n+12,u),dt(t,n+14,c),n+=16,null!=a&&(dt(t,n,h),dt(t,n+6,e.attrs),dt(t,n+10,a),n+=14),t.set(r,n),n+=u,c)for(var v in f){var d=f[v],y=d.length;dt(t,n,+v),dt(t,n+2,y),t.set(d,n+4),n+=4+y}return h&&(t.set(s,n),n+=h),n},hn=function(t,n,e,r,i){dt(t,n,101010256),dt(t,n+8,e),dt(t,n+10,e),dt(t,n+12,r),dt(t,n+16,i)},cn=(function(){function t(t){this.filename=t,this.c=W(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||U(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t})(),ln=(function(){function t(t,n){var e=this;n||(n={}),cn.call(this,t),this.d=new kt(n,function(t,n){e.ondata(null,t,n)}),this.compression=8,this.flag=rn(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t})(),pn=(function(){function t(t,n){var e=this;n||(n={}),cn.call(this,t),this.d=new St(n,function(t,n,r){e.ondata(t,n,r)}),this.compression=8,this.flag=rn(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t})(),vn=(function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var n=this;if(this.ondata||U(5),2&this.d)this.ondata(U(4+8*(1&this.d),0,1),null,!1);else{var r=nn(t.filename),i=r.length,o=t.comment,a=o&&nn(o),s=i!=t.filename.length||a&&o.length!=a.length,u=i+un(t.extra)+30;i>65535&&this.ondata(U(11,0,1),null,!1);var f=new e(u);fn(f,0,t,r,s,-1);var h=[f],c=function(){for(var t=0,e=h;t<e.length;t++){var r=e[t];n.ondata(null,r,!1)}h=[]},l=this.d;this.d=0;var p=this.u.length,v=K(t,{f:r,u:s,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(c(),l){var t=n.u[p+1];t?t.r():n.d=1}l=1}}),d=0;t.ondata=function(r,i,o){if(r)n.ondata(r,i,o),n.terminate();else if(d+=i.length,h.push(i),o){var a=new e(16);dt(a,0,134695760),dt(a,4,t.crc),dt(a,8,d),dt(a,12,t.size),h.push(a),v.c=d,v.b=u+d+16,v.crc=t.crc,v.size=t.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(U(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,n=0,r=0,i=0,o=this.u;i<o.length;i++){r+=46+(f=o[i]).f.length+un(f.extra)+(f.o?f.o.length:0)}for(var a=new e(r+22),s=0,u=this.u;s<u.length;s++){var f=u[s];fn(a,t,f,f.f,f.u,-f.c-2,n,f.o),t+=46+f.f.length+un(f.extra)+(f.o?f.o.length:0),n+=f.b}hn(a,t,this.u.length,r,n),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++){n[t].t()}this.d=2},t})();var dn=(function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t})(),gn=(function(){function t(){var t=this;this.i=new Pt(function(n,e){t.ondata(null,n,e)})}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},t.compression=8,t})(),yn=(function(){function t(t,n){var e=this;n<32e4?this.i=new Pt(function(t,n){e.ondata(null,t,n)}):(this.i=new xt(function(t,n,r){e.ondata(t,n,r)}),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=C(t,0)),this.i.push(t,n)},t.compression=8,t})(),bn=(function(){function t(t){this.onfile=t,this.k=[],this.o={0:dn},this.p=B}return t.prototype.push=function(t,n){var r=this;if(this.onfile||U(5),this.p||U(4),this.c>0){var i=Math.min(this.c,t.length),o=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(i)).length)return this.push(t,n)}else{var a=0,s=0,u=void 0,f=void 0;this.p.length?t.length?((f=new e(this.p.length+t.length)).set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var h=f.length,c=this.c,l=c&&this.d,p=function(){var t,n=pt(f,s);if(67324752==n){a=1,u=s,v.d=null,v.c=0;var e=lt(f,s+6),i=lt(f,s+8),o=2048&e,l=8&e,p=lt(f,s+26),d=lt(f,s+28);if(h>s+30+p+d){var y=[];v.k.unshift(y),a=2;var b,m=pt(f,s+18),w=pt(f,s+22),z=en(f.subarray(s+30,s+=30+p),!o);4294967295==m?(t=l?[-2]:sn(f,s),m=t[0],w=t[1]):l&&(m=-1),s+=d,v.c=m;var O={name:z,compression:i,start:function(){if(O.ondata||U(5),m){var t=r.o[i];t||O.ondata(U(14,'unknown compression type '+i,1),null,!1),(b=m<0?new t(z):new t(z,m,w)).ondata=function(t,n,e){O.ondata(t,n,e)};for(var n=0,e=y;n<e.length;n++){var o=e[n];b.push(o,!1)}r.k[0]==y&&r.c?r.d=b:b.push(B,!0)}else O.ondata(null,B,!0)},terminate:function(){b&&b.terminate&&b.terminate()}};m>=0&&(O.size=m,O.originalSize=w),v.onfile(O)}return"break"}if(c){if(134695760==n)return u=s+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==n)return u=s-=4,a=3,v.c=0,"break"}},v=this;s<h-4;++s){if("break"===p())break}if(this.p=B,c<0){var d=a?f.subarray(0,u-12-(-2==c&&8)-(134695760==pt(f,u-16)&&4)):f.subarray(0,s);l?l.push(d,!!a):this.k[+(2==a)].push(d)}if(2&a)return this.push(f.subarray(s),n);this.p=f.subarray(s)}n&&(this.c&&U(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t})(),mn='function'==typeof queueMicrotask?queueMicrotask:'function'==typeof setTimeout?setTimeout:function(t){t()}},3730,[]);
|
|
231
|
+
__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=e(_r(d[0])),u=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));function f(e,f){return(0,t.default)(e)||(0,u.default)(e,f)||(0,n.default)(e,f)||(0,r.default)()}},3731,[3732,3733,3466,3734]);
|
|
232
|
+
__d(function(g,_r,i,a,m,e,d){"use strict";function r(r){if(Array.isArray(r))return r}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}})},3732,[]);
|
|
233
|
+
__d(function(g,_r,_i,_a,m,_e,d){"use strict";function e(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,u,f,i=[],o=!0,a=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=u.call(r)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{if(!o&&null!=r.return&&(f=r.return(),Object(f)!==f))return}finally{if(a)throw l}}return i}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}})},3733,[]);
|
|
234
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}})},3734,[]);
|
|
235
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"hasPngSignature",{enumerable:!0,get:function(){return u.hasPngSignature}}),Object.defineProperty(_e,"convertIndexedToRgb",{enumerable:!0,get:function(){return c.convertIndexedToRgb}}),Object.defineProperty(_e,"decode",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"encode",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"decodeApng",{enumerable:!0,get:function(){return l}});var n=e(r(d[0])),t=e(r(d[1])),u=r(d[2]),o=r(d[3]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});var c=r(d[4]);function f(e,t){return new n.default(e,t).decode()}function b(e,n){return new t.default(e,n).encode()}function l(e,t){return new n.default(e,t).decodeApng()}},3735,[3736,3748,3745,3749,3750]);
|
|
236
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),s=r(d[1]),h=r(d[2]),i=r(d[3]),n=r(d[4]),o=r(d[5]),p=r(d[6]),c=r(d[7]);class l extends t.IOBuffer{constructor(t,h={}){super(t);const{checkCrc:i=!1}=h;this._checkCrc=i,this._inflator=new s.Inflate,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=c.CompressionMethod.UNKNOWN,this._filterMethod=c.FilterMethod.UNKNOWN,this._interlaceMethod=c.InterlaceMethod.UNKNOWN,this._colorType=c.ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for((0,o.checkSignature)(this);!this._end;){const t=this.readUint32(),s=this.readChars(4);this.decodeChunk(t,s)}return this.decodeImage(),this._png}decodeApng(){for((0,o.checkSignature)(this);!this._end;){const t=this.readUint32(),s=this.readChars(4);this.decodeApngChunk(t,s)}return this.decodeApngImage(),this._apng}decodeChunk(t,s){const i=this.offset;switch(s){case'IHDR':this.decodeIHDR();break;case'PLTE':this.decodePLTE(t);break;case'IDAT':this.decodeIDAT(t);break;case'IEND':this._end=!0;break;case'tRNS':this.decodetRNS(t);break;case'iCCP':this.decodeiCCP(t);break;case p.textChunkName:(0,p.decodetEXt)(this._png.text,this,t);break;case'pHYs':this.decodepHYs();break;default:this.skip(t)}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${s}`);this._checkCrc?(0,h.checkCrc)(this,t+4,s):this.skip(4)}decodeApngChunk(t,s){const i=this.offset;switch('fdAT'!==s&&'IDAT'!==s&&this._writingDataChunks&&this.pushDataToFrame(),s){case'acTL':this.decodeACTL();break;case'fcTL':this.decodeFCTL();break;case'fdAT':this.decodeFDAT(t);break;default:this.decodeChunk(t,s),this.offset=i+t}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${s}`);this._checkCrc?(0,h.checkCrc)(this,t+4,s):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=_(this.readUint8());const s=this.readUint8();let h;switch(this._colorType=s,s){case c.ColorType.GREYSCALE:h=1;break;case c.ColorType.TRUECOLOUR:h=3;break;case c.ColorType.INDEXED_COLOUR:h=1;break;case c.ColorType.GREYSCALE_ALPHA:h=2;break;case c.ColorType.TRUECOLOUR_ALPHA:h=4;break;case c.ColorType.UNKNOWN:default:throw new Error(`Unknown color type: ${s}`)}if(this._png.channels=h,this._compressionMethod=this.readUint8(),this._compressionMethod!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const s=t/3;this._hasPalette=!0;const h=[];this._palette=h;for(let t=0;t<s;t++)h.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const s=t,h=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,h,s)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let s=t,h=this.offset+this.byteOffset;if(h+=4,s-=4,this._inflator.push(new Uint8Array(this.buffer,h,s)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case c.ColorType.GREYSCALE:case c.ColorType.TRUECOLOUR:if(t%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let s=0;s<t/2;s++)this._transparency[s]=this.readUint16();break;case c.ColorType.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let s=0;for(;s<t;s++){const t=this.readByte();this._palette[s].push(t)}for(;s<this._palette.length;s++)this._palette[s].push(255);break}case c.ColorType.UNKNOWN:case c.ColorType.GREYSCALE_ALPHA:case c.ColorType.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const h=(0,p.readKeyword)(this),i=this.readUint8();if(i!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const n=this.readBytes(t-h.length-2);this._png.iccEmbeddedProfile={name:h,profile:(0,s.inflate)(n)}}decodepHYs(){const t=this.readUint32(),s=this.readUint32(),h=this.readByte();this._png.resolution={x:t,y:s,unit:h}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const s={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},h=this._frames.at(t);if(h){if(h.data=(0,n.decodeInterlaceNull)({data:h.data,width:h.width,height:h.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===h.xOffset&&0===h.yOffset&&h.width===this._png.width&&h.height===this._png.height)s.data=h.data;else{const i=this._apng.frames.at(t-1);this.disposeFrame(h,i,s),this.addFrameDataToCanvas(s,h)}this._apng.frames.push(s)}}return this._apng}disposeFrame(t,s,h){switch(t.disposeOp){case c.DisposeOpType.NONE:break;case c.DisposeOpType.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let i=0;i<this._png.width;i++){const n=(s*t.width+i)*this._png.channels;for(let t=0;t<this._png.channels;t++)h.data[n+t]=0}break;case c.DisposeOpType.PREVIOUS:h.data.set(s.data);break;default:throw new Error('Unknown disposeOp')}}addFrameDataToCanvas(t,s){const h=1<<this._png.depth,i=(t,h)=>({index:((t+s.yOffset)*this._png.width+s.xOffset+h)*this._png.channels,frameIndex:(t*s.width+h)*this._png.channels});switch(s.blendOp){case c.BlendOpType.SOURCE:for(let h=0;h<s.height;h++)for(let n=0;n<s.width;n++){const{index:o,frameIndex:p}=i(h,n);for(let h=0;h<this._png.channels;h++)t.data[o+h]=s.data[p+h]}break;case c.BlendOpType.OVER:for(let n=0;n<s.height;n++)for(let o=0;o<s.width;o++){const{index:p,frameIndex:c}=i(n,o);for(let i=0;i<this._png.channels;i++){const n=s.data[c+this._png.channels-1]/h,o=i%(this._png.channels-1)==0?1:s.data[c+i],l=Math.floor(n*o+(1-n)*t.data[p+i]);t.data[p+i]+=l}}break;default:throw new Error('Unknown blendOp')}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==c.FilterMethod.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===c.InterlaceMethod.NO_INTERLACE)this._png.data=(0,n.decodeInterlaceNull)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==c.InterlaceMethod.ADAM7)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=(0,i.decodeInterlaceAdam7)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,h=this._frames.at(-1);h?h.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:c.DisposeOpType.NONE,blendOp:c.BlendOpType.SOURCE,data:t}),this._inflator=new s.Inflate,this._writingDataChunks=!1}}function _(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw new Error(`invalid bit depth: ${t}`);return t}},3736,[3737,3739,3740,3741,3744,3745,3746,3747]);
|
|
237
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IOBuffer",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const i=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),s={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class n{constructor(t=8192,i={}){let s=!1;'number'==typeof t?t=new ArrayBuffer(t):(s=!0,this.lastWrittenByte=t.byteLength);const h=i.offset?i.offset>>>0:0,f=t.byteLength-h;let l=h;(ArrayBuffer.isView(t)||t instanceof n)&&(t.byteLength!==t.buffer.byteLength&&(l=t.byteOffset+h),t=t.buffer),this.lastWrittenByte=s?f:0,this.buffer=t,this.length=f,this.byteLength=f,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,f),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error('Mark stack empty');return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const i=2*(this.offset+t),s=new Uint8Array(i);s.set(new Uint8Array(this.buffer)),this.buffer=s.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,'uint8')}readArray(t,n){const h=s[n].BYTES_PER_ELEMENT*t,f=this.byteOffset+this.offset,l=this.buffer.slice(f,f+h);if(this.littleEndian===i&&'uint8'!==n&&'int8'!==n){const t=new Uint8Array(this.buffer.slice(f,f+h));t.reverse();const i=new s[n](t.buffer);return this.offset+=h,i.reverse(),i}const o=new s[n](l);return this.offset+=h,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let i='';for(let s=0;s<t;s++)i+=this.readChar();return i}readUtf8(i=1){return(0,t.decode)(this.readBytes(i))}decodeText(i=1,s="utf8"){return(0,t.decode)(this.readBytes(i),s)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let i=0;i<t.length;i++)this._data.setUint8(this.offset++,t[i]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let i=0;i<t.length;i++)this.writeUint8(t.charCodeAt(i));return this}writeUtf8(i){return this.writeBytes((0,t.encode)(i))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},3737,[3738]);
|
|
238
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decode=function(n,t="utf8"){return new TextDecoder(t).decode(n)},e.encode=function(t){return n.encode(t)};const n=new TextEncoder},3738,[]);
|
|
239
|
+
__d(function(t,e,a,n,i,r,s){"use strict";Object.defineProperty(r,'__esModule',{value:!0}),Object.defineProperty(r,"Deflate",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(r,"Inflate",{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(r,"constants",{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(r,"deflate",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(r,"deflateRaw",{enumerable:!0,get:function(){return Za}}),Object.defineProperty(r,"gzip",{enumerable:!0,get:function(){return Ua}}),Object.defineProperty(r,"inflate",{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(r,"inflateRaw",{enumerable:!0,get:function(){return Da}}),Object.defineProperty(r,"ungzip",{enumerable:!0,get:function(){return Ta}});function o(t){let e=t.length;for(;--e>=0;)t[e]=0}const l=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]),h=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]),d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new Array(576);o(f);const c=new Array(60);o(c);const u=new Array(512);o(u);const w=new Array(256);o(w);const b=new Array(29);o(b);const m=new Array(30);function g(t,e,a,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}let p,k,v;function y(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}o(m);const x=t=>t<256?u[t]:u[256+(t>>>7)],z=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},A=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,z(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=(t,e,a)=>{A(t,a[2*e],a[2*e+1])},R=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},Z=t=>{16===t.bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},U=(t,e)=>{const a=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>n||(t.bl_count[f]++,c=0,d>=o&&(c=s[d-o]),u=a[2*d],t.opt_len+=u*(f+c),r&&(t.static_len+=u*(i[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>n||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}},S=(t,e,a)=>{const n=new Array(16);let i,r,s=0;for(i=1;i<=15;i++)s=s+a[i-1]<<1,n[i]=s;for(r=0;r<=e;r++){let e=t[2*r+1];0!==e&&(t[2*r]=R(n[e]++,e))}},O=()=>{let t,e,a,n,i;const r=new Array(16);for(a=0,n=0;n<28;n++)for(b[n]=a,t=0;t<1<<l[n];t++)w[a++]=n;for(w[a-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,t=0;t<1<<h[n];t++)u[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,t=0;t<1<<h[n]-7;t++)u[256+i++]=n;for(e=0;e<=15;e++)r[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,r[8]++;for(;t<=255;)f[2*t+1]=9,t++,r[9]++;for(;t<=279;)f[2*t+1]=7,t++,r[7]++;for(;t<=287;)f[2*t+1]=8,t++,r[8]++;for(S(f,287,r),t=0;t<30;t++)c[2*t+1]=5,c[2*t]=R(t,5);p=new g(f,l,257,286,15),k=new g(c,h,0,30,15),v=new g(new Array(0),d,0,19,7)},D=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},T=t=>{t.bi_valid>8?z(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},I=(t,e,a,n)=>{const i=2*e,r=2*a;return t[i]<t[r]||t[i]===t[r]&&n[e]<=n[a]},F=(t,e,a)=>{const n=t.heap[a];let i=a<<1;for(;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,n,t.heap[i],t.depth));)t.heap[a]=t.heap[i],a=i,i<<=1;t.heap[a]=n},L=(t,e,a)=>{let n,i,r,s,o=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+o++],n+=(255&t.pending_buf[t.sym_buf+o++])<<8,i=t.pending_buf[t.sym_buf+o++],0===n?E(t,i,e):(r=w[i],E(t,r+256+1,e),s=l[r],0!==s&&(i-=b[r],A(t,i,s)),n--,r=x(n),E(t,r,a),s=h[r],0!==s&&(n-=m[r],A(t,n,s)))}while(o<t.sym_next);E(t,256,e)},N=(t,e)=>{const a=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,r=e.stat_desc.elems;let s,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,s=0;s<r;s++)0!==a[2*s]?(t.heap[++t.heap_len]=h=s,t.depth[s]=0):a[2*s+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,i&&(t.static_len-=n[2*l+1]);for(e.max_code=h,s=t.heap_len>>1;s>=1;s--)F(t,a,s);l=r;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=o,a[2*l]=a[2*s]+a[2*o],t.depth[l]=(t.depth[s]>=t.depth[o]?t.depth[s]:t.depth[o])+1,a[2*s+1]=a[2*o+1]=l,t.heap[1]=l++,F(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],U(t,e),S(a,h,t.bl_count)},B=(t,e,a)=>{let n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)i=s,s=e[2*(n+1)+1],++o<l&&i===s||(o<h?t.bl_tree[2*i]+=o:0!==i?(i!==r&&t.bl_tree[2*i]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4))},C=(t,e,a)=>{let n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=a;n++)if(i=s,s=e[2*(n+1)+1],!(++o<l&&i===s)){if(o<h)do{E(t,i,t.bl_tree)}while(0!==--o);else 0!==i?(i!==r&&(E(t,i,t.bl_tree),o--),E(t,16,t.bl_tree),A(t,o-3,2)):o<=10?(E(t,17,t.bl_tree),A(t,o-3,3)):(E(t,18,t.bl_tree),A(t,o-11,7));o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4)}},j=t=>{let e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},M=(t,e,a,n)=>{let i;for(A(t,e-257,5),A(t,a-1,5),A(t,n-4,4),i=0;i<n;i++)A(t,t.bl_tree[2*_[i]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)},H=t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0};let P=!1;const K=(t,e,a,n)=>{A(t,0+(n?1:0),3),T(t),z(t,a),z(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var Y={_tr_init:t=>{P||(O(),P=!0),t.l_desc=new y(t.dyn_ltree,p),t.d_desc=new y(t.dyn_dtree,k),t.bl_desc=new y(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,D(t)},_tr_stored_block:K,_tr_flush_block:(t,e,a,n)=>{let i,r,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=H(t)),N(t,t.l_desc),N(t,t.d_desc),s=j(t),i=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=i&&(i=r)):i=r=a+5,a+4<=i&&-1!==e?K(t,e,a,n):4===t.strategy||r===i?(A(t,2+(n?1:0),3),L(t,f,c)):(A(t,4+(n?1:0),3),M(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),L(t,t.dyn_ltree,t.dyn_dtree)),D(t),n&&T(t)},_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(w[a]+256+1)]++,t.dyn_dtree[2*x(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{A(t,2,3),E(t,256,f),Z(t)}};var G=(t,e,a,n)=>{let i=65535&t,r=t>>>16&65535,s=0;for(;0!==a;){s=a>2e3?2e3:a,a-=s;do{i=i+e[n++]|0,r=r+i|0}while(--s);i%=65521,r%=65521}return i|r<<16};const X=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var W=(t,e,a,n)=>{const i=X,r=n+a;t^=-1;for(let a=n;a<r;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},q={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'},J={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:Q,_tr_stored_block:V,_tr_flush_block:$,_tr_tally:tt,_tr_align:et}=Y,{Z_NO_FLUSH:at,Z_PARTIAL_FLUSH:nt,Z_FULL_FLUSH:it,Z_FINISH:rt,Z_BLOCK:st,Z_OK:ot,Z_STREAM_END:lt,Z_STREAM_ERROR:ht,Z_DATA_ERROR:dt,Z_BUF_ERROR:_t,Z_DEFAULT_COMPRESSION:ft,Z_FILTERED:ct,Z_HUFFMAN_ONLY:ut,Z_RLE:wt,Z_FIXED:bt,Z_DEFAULT_STRATEGY:mt,Z_UNKNOWN:gt,Z_DEFLATED:pt}=J,kt=258,vt=262,yt=42,xt=113,zt=666,At=(t,e)=>(t.msg=q[e],e),Et=t=>2*t-(t>4?9:0),Rt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Zt=t=>{let e,a,n,i=t.w_size;e=t.hash_size,n=e;do{a=t.head[--n],t.head[n]=a>=i?a-i:0}while(--e);e=i,n=e;do{a=t.prev[--n],t.prev[n]=a>=i?a-i:0}while(--e)};let Ut=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const St=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ot=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=(t,e)=>{t.pending_buf[t.pending++]=e},Tt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},It=(t,e,a,n)=>{let i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),a),1===t.state.wrap?t.adler=G(t.adler,e,i,a):2===t.state.wrap&&(t.adler=W(t.adler,e,i,a)),t.next_in+=i,t.total_in+=i,i)},Ft=(t,e)=>{let a,n,i=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-vt?t.strstart-(t.w_size-vt):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+kt;let c=h[r+s-1],u=h[r+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+s]===u&&h[a+s-1]===c&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do{}while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&r<f);if(n=kt-(f-r),r=f-kt,n>s){if(t.match_start=e,s=n,n>=o)break;c=h[r+s-1],u=h[r+s]}}}while((e=_[e&d])>l&&0!==--i);return s<=t.lookahead?s:t.lookahead},Lt=t=>{const e=t.w_size;let a,n,i;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-vt)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Zt(t),n+=e),0===t.strm.avail_in)break;if(a=It(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ut(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ut(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<vt&&0!==t.strm.avail_in)},Nt=(t,e)=>{let a,n,i,r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,s=0,o=t.strm.avail_in;do{if(a=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n=t.strstart-t.block_start,a>n+t.strm.avail_in&&(a=n+t.strm.avail_in),a>i&&(a=i),a<r&&(0===a&&e!==rt||e===at||a!==n+t.strm.avail_in))break;s=e===rt&&a===n+t.strm.avail_in?1:0,V(t,0,0,s),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,St(t.strm),n&&(n>a&&(n=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,a-=n),a&&(It(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===s);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?4:e!==at&&e!==rt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(It(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,r=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=r||(n||e===rt)&&e!==at&&0===t.strm.avail_in&&n<=i)&&(a=n>i?i:n,s=e===rt&&0===t.strm.avail_in&&a===n?1:0,V(t,t.block_start,a,s),t.block_start+=a,St(t.strm)),s?3:1)},Bt=(t,e)=>{let a,n;for(;;){if(t.lookahead<vt){if(Lt(t),t.lookahead<vt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-vt&&(t.match_length=Ft(t,a)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},Ct=(t,e)=>{let a,n,i;for(;;){if(t.lookahead<vt){if(Lt(t),t.lookahead<vt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-vt&&(t.match_length=Ft(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ot(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=tt(t,0,t.window[t.strstart-1]),n&&Ot(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},jt=(t,e)=>{let a,n,i,r;const s=t.window;for(;;){if(t.lookahead<=kt){if(Lt(t),t.lookahead<=kt&&e===at)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){r=t.strstart+kt;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<r);t.match_length=kt-(r-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2},Mt=(t,e)=>{let a;for(;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===at)return 1;break}if(t.match_length=0,a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ot(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===rt?(Ot(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Ot(t,!1),0===t.strm.avail_out)?1:2};function Ht(t,e,a,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=i}const Pt=[new Ht(0,0,0,0,Nt),new Ht(4,4,8,4,Bt),new Ht(4,5,16,8,Bt),new Ht(4,6,32,32,Bt),new Ht(4,4,16,16,Ct),new Ht(8,16,32,32,Ct),new Ht(8,16,128,128,Ct),new Ht(8,32,128,256,Ct),new Ht(32,128,258,1024,Ct),new Ht(32,258,258,4096,Ct)];function Kt(){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=pt,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(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Rt(this.dyn_ltree),Rt(this.dyn_dtree),Rt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Rt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Rt(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 Yt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==yt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==xt&&e.status!==zt?1:0},Gt=t=>{if(Yt(t))return At(t,ht);t.total_in=t.total_out=0,t.data_type=gt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?yt:xt,t.adler=2===e.wrap?0:1,e.last_flush=-2,Q(e),ot},Xt=t=>{const e=Gt(t);var a;return e===ot&&((a=t.state).window_size=2*a.w_size,Rt(a.head),a.max_lazy_match=Pt[a.level].max_lazy,a.good_match=Pt[a.level].good_length,a.nice_match=Pt[a.level].nice_length,a.max_chain_length=Pt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Wt=(t,e,a,n,i,r)=>{if(!t)return ht;let s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||a!==pt||n<8||n>15||e<0||e>9||r<0||r>bt||8===n&&1!==s)return At(t,ht);8===n&&(n=9);const o=new Kt;return t.state=o,o.strm=t,o.status=yt,o.wrap=s,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=r,o.method=a,Xt(t)};var qt={deflateInit:(t,e)=>Wt(t,e,pt,15,8,mt),deflateInit2:Wt,deflateReset:Xt,deflateResetKeep:Gt,deflateSetHeader:(t,e)=>Yt(t)||2!==t.state.wrap?ht:(t.state.gzhead=e,ot),deflate:(t,e)=>{if(Yt(t)||e>st||e<0)return t?At(t,ht):ht;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||a.status===zt&&e!==rt)return At(t,0===t.avail_out?_t:ht);const n=a.last_flush;if(a.last_flush=e,0!==a.pending){if(St(t),0===t.avail_out)return a.last_flush=-1,ot}else if(0===t.avail_in&&Et(e)<=Et(n)&&e!==rt)return At(t,_t);if(a.status===zt&&0!==t.avail_in)return At(t,_t);if(a.status===yt&&0===a.wrap&&(a.status=xt),a.status===yt){let e=pt+(a.w_bits-8<<4)<<8,n=-1;if(n=a.strategy>=ut||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=n<<6,0!==a.strstart&&(e|=32),e+=31-e%31,Tt(a,e),0!==a.strstart&&(Tt(a,t.adler>>>16),Tt(a,65535&t.adler)),t.adler=1,a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot}if(57===a.status)if(t.adler=0,Dt(a,31),Dt(a,139),Dt(a,8),a.gzhead)Dt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Dt(a,255&a.gzhead.time),Dt(a,a.gzhead.time>>8&255),Dt(a,a.gzhead.time>>16&255),Dt(a,a.gzhead.time>>24&255),Dt(a,9===a.level?2:a.strategy>=ut||a.level<2?4:0),Dt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Dt(a,255&a.gzhead.extra.length),Dt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=W(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,0),Dt(a,9===a.level?2:a.strategy>=ut||a.level<2?4:0),Dt(a,3),a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot;if(69===a.status){if(a.gzhead.extra){let e=a.pending,n=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+n>a.pending_buf_size;){let i=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=W(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=i,St(t),0!==a.pending)return a.last_flush=-1,ot;e=0,n-=i}let i=new Uint8Array(a.gzhead.extra);a.pending_buf.set(i.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending+=n,a.gzhead.hcrc&&a.pending>e&&(t.adler=W(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,n=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),St(t),0!==a.pending)return a.last_flush=-1,ot;n=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,Dt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,n=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n)),St(t),0!==a.pending)return a.last_flush=-1,ot;n=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,Dt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>n&&(t.adler=W(t.adler,a.pending_buf,a.pending-n,n))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(St(t),0!==a.pending))return a.last_flush=-1,ot;Dt(a,255&t.adler),Dt(a,t.adler>>8&255),t.adler=0}if(a.status=xt,St(t),0!==a.pending)return a.last_flush=-1,ot}if(0!==t.avail_in||0!==a.lookahead||e!==at&&a.status!==zt){let n=0===a.level?Nt(a,e):a.strategy===ut?Mt(a,e):a.strategy===wt?jt(a,e):Pt[a.level].func(a,e);if(3!==n&&4!==n||(a.status=zt),1===n||3===n)return 0===t.avail_out&&(a.last_flush=-1),ot;if(2===n&&(e===nt?et(a):e!==st&&(V(a,0,0,!1),e===it&&(Rt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),St(t),0===t.avail_out))return a.last_flush=-1,ot}return e!==rt?ot:a.wrap<=0?lt:(2===a.wrap?(Dt(a,255&t.adler),Dt(a,t.adler>>8&255),Dt(a,t.adler>>16&255),Dt(a,t.adler>>24&255),Dt(a,255&t.total_in),Dt(a,t.total_in>>8&255),Dt(a,t.total_in>>16&255),Dt(a,t.total_in>>24&255)):(Tt(a,t.adler>>>16),Tt(a,65535&t.adler)),St(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?ot:lt)},deflateEnd:t=>{if(Yt(t))return ht;const e=t.state.status;return t.state=null,e===xt?At(t,dt):ot},deflateSetDictionary:(t,e)=>{let a=e.length;if(Yt(t))return ht;const n=t.state,i=n.wrap;if(2===i||1===i&&n.status!==yt||n.lookahead)return ht;if(1===i&&(t.adler=G(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===i&&(Rt(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(a-n.w_size,a),0),e=t,a=n.w_size}const r=t.avail_in,s=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Ut(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=o,t.avail_in=r,n.wrap=i,ot},deflateInfo:'pako deflate (from Nodeca project)'};const Jt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Qt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if('object'!=typeof a)throw new TypeError(a+'must be non-object');for(const e in a)Jt(a,e)&&(t[e]=a[e])}}return t},Vt=t=>{let e=0;for(let a=0,n=t.length;a<n;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,n=0,i=t.length;e<i;e++){let i=t[e];a.set(i,n),n+=i.length}return a};let $t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){$t=!1}const te=new Uint8Array(256);for(let t=0;t<256;t++)te[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;te[254]=te[254]=1;const ee=(t,e)=>{if(e<65534&&t.subarray&&$t)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a='';for(let n=0;n<e;n++)a+=String.fromCharCode(t[n]);return a};var ae=t=>{if('function'==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,i,r,s=t.length,o=0;for(i=0;i<s;i++)a=t.charCodeAt(i),55296==(64512&a)&&i+1<s&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),i++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),r=0,i=0;r<o;i++)a=t.charCodeAt(i),55296==(64512&a)&&i+1<s&&(n=t.charCodeAt(i+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),i++)),a<128?e[r++]=a:a<2048?(e[r++]=192|a>>>6,e[r++]=128|63&a):a<65536?(e[r++]=224|a>>>12,e[r++]=128|a>>>6&63,e[r++]=128|63&a):(e[r++]=240|a>>>18,e[r++]=128|a>>>12&63,e[r++]=128|a>>>6&63,e[r++]=128|63&a);return e},ne=(t,e)=>{const a=e||t.length;if('function'==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,i;const r=new Array(2*a);for(i=0,n=0;n<a;){let e=t[n++];if(e<128){r[i++]=e;continue}let s=te[e];if(s>4)r[i++]=65533,n+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&n<a;)e=e<<6|63&t[n++],s--;s>1?r[i++]=65533:e<65536?r[i++]=e:(e-=65536,r[i++]=55296|e>>10&1023,r[i++]=56320|1023&e)}}return ee(r,i)},ie=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+te[t[a]]>e?a:e};var re=function(){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};const se=Object.prototype.toString,{Z_NO_FLUSH:oe,Z_SYNC_FLUSH:le,Z_FULL_FLUSH:he,Z_FINISH:de,Z_OK:_e,Z_STREAM_END:fe,Z_DEFAULT_COMPRESSION:ce,Z_DEFAULT_STRATEGY:ue,Z_DEFLATED:we}=J;function be(t){this.options=Qt({level:ce,method:we,chunkSize:16384,windowBits:15,memLevel:8,strategy:ue},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let a=qt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==_e)throw new Error(q[a]);if(e.header&&qt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t='string'==typeof e.dictionary?ae(e.dictionary):'[object ArrayBuffer]'===se.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=qt.deflateSetDictionary(this.strm,t),a!==_e)throw new Error(q[a]);this._dict_set=!0}}function me(t,e){const a=new be(e);if(a.push(t,!0),a.err)throw a.msg||q[a.err];return a.result}be.prototype.push=function(t,e){const a=this.strm,n=this.options.chunkSize;let i,r;if(this.ended)return!1;for(r=e===~~e?e:!0===e?de:oe,'string'==typeof t?a.input=ae(t):'[object ArrayBuffer]'===se.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(n),a.next_out=0,a.avail_out=n),(r===le||r===he)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(i=qt.deflate(a,r),i===fe)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),i=qt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_e;if(0!==a.avail_out){if(r>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},be.prototype.onData=function(t){this.chunks.push(t)},be.prototype.onEnd=function(t){t===_e&&(this.result=Vt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ge={Deflate:be,deflate:me,deflateRaw:function(t,e){return(e=e||{}).raw=!0,me(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,me(t,e)},constants:J};const pe=16209;var ke=function(t,e){let a,n,i,r,s,o,l,h,d,_,f,c,u,w,b,m,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,n=a+(t.avail_in-5),i=t.next_out,A=t.output,r=i-(e-t.avail_out),s=i+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,b=(1<<E.lenbits)-1,m=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&b];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[i++]=65535&g;else{if(!(16&p)){if(64&p){if(32&p){E.mode=16191;break t}t.msg='invalid literal/length code',E.mode=pe;break t}g=u[(65535&g)+(f&(1<<p)-1)];continue e}for(k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&m];;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,16&p){if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg='invalid distance too far back',E.mode=pe;break t}if(f>>>=p,c-=p,p=i-r,v>p){if(p=v-p,p>h&&E.sane){t.msg='invalid distance too far back',E.mode=pe;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[i++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[i++]=_[y++]}while(--p);y=i-v,x=A}for(;k>2;)A[i++]=x[y++],A[i++]=x[y++],A[i++]=x[y++],k-=3;k&&(A[i++]=x[y++],k>1&&(A[i++]=x[y++]))}else{y=i-v;do{A[i++]=A[y++],A[i++]=A[y++],A[i++]=A[y++],k-=3}while(k>2);k&&(A[i++]=A[y++],k>1&&(A[i++]=A[y++]))}break}if(64&p){t.msg='invalid distance code',E.mode=pe;break t}g=w[(65535&g)+(f&(1<<p)-1)]}}break}}while(a<n&&i<s);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=i,t.avail_in=a<n?n-a+5:5-(a-n),t.avail_out=i<s?s-i+257:257-(i-s),E.hold=f,E.bits=c};const ve=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]),ye=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]),xe=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]),ze=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 Ae=(t,e,a,n,i,r,s,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,b=0,m=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,O=null;for(w=0;w<=15;w++)E[w]=0;for(b=0;b<n;b++)E[e[a+b]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return i[r++]=20971520,i[r++]=20971520,o.bits=1,0;for(m=1;m<g&&0===E[m];m++);for(p<m&&(p=m),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(b=0;b<n;b++)0!==e[a+b]&&(s[R[e[a+b]]++]=b);if(0===t?(A=O=s,u=20):1===t?(A=ve,O=ye,u=257):(A=xe,O=ze,u=0),z=0,b=0,w=m,c=r,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,s[b]+1<u?(U=0,S=s[b]):s[b]>=u?(U=O[s[b]-u],S=A[s[b]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,m=d;do{d-=h,i[c+(z>>v)+d]=Z<<24|U<<16|S}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,b++,0===--E[w]){if(w===g)break;w=e[a+s[b]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=m,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,i[_]=p<<24|k<<16|c-r}}return 0!==z&&(i[c+z]=4194304|w-v<<24),o.bits=p,0};const{Z_FINISH:Ee,Z_BLOCK:Re,Z_TREES:Ze,Z_OK:Ue,Z_STREAM_END:Se,Z_NEED_DICT:Oe,Z_STREAM_ERROR:De,Z_DATA_ERROR:Te,Z_MEM_ERROR:Ie,Z_BUF_ERROR:Fe,Z_DEFLATED:Le}=J,Ne=16180,Be=16190,Ce=16191,je=16192,Me=16194,He=16199,Pe=16200,Ke=16206,Ye=16209,Ge=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Xe(){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 We=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ne||e.mode>16211?1:0},qe=t=>{if(We(t))return De;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg='',e.wrap&&(t.adler=1&e.wrap),e.mode=Ne,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Ue},Je=t=>{if(We(t))return De;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,qe(t)},Qe=(t,e)=>{let a;if(We(t))return De;const n=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?De:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=a,n.wbits=e,Je(t))},Ve=(t,e)=>{if(!t)return De;const a=new Xe;t.state=a,a.strm=t,a.window=null,a.mode=Ne;const n=Qe(t,e);return n!==Ue&&(t.state=null),n};let $e,ta,ea=!0;const aa=t=>{if(ea){$e=new Int32Array(512),ta=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ae(1,t.lens,0,288,$e,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ae(2,t.lens,0,32,ta,0,t.work,{bits:5}),ea=!1}t.lencode=$e,t.lenbits=9,t.distcode=ta,t.distbits=5},na=(t,e,a,n)=>{let i;const r=t.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),n>=r.wsize?(r.window.set(e.subarray(a-r.wsize,a),0),r.wnext=0,r.whave=r.wsize):(i=r.wsize-r.wnext,i>n&&(i=n),r.window.set(e.subarray(a-n,a-n+i),r.wnext),(n-=i)?(r.window.set(e.subarray(a-n,a),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=i,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=i))),0};var ia={inflateReset:Je,inflateReset2:Qe,inflateResetKeep:qe,inflateInit:t=>Ve(t,15),inflateInit2:Ve,inflate:(t,e)=>{let a,n,i,r,s,o,l,h,d,_,f,c,u,w,b,m,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(We(t)||!t.output||!t.input&&0!==t.avail_in)return De;a=t.state,a.mode===Ce&&(a.mode=je),s=t.next_out,i=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=Ue;t:for(;;)switch(a.mode){case Ne:if(0===a.wrap){a.mode=je;break}for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg='incorrect header check',a.mode=Ye;break}if((15&h)!==Le){t.msg='unknown compression method',a.mode=Ye;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg='invalid window size',a.mode=Ye;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:Ce,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==Le){t.msg='unknown compression method',a.mode=Ye;break}if(57344&a.flags){t.msg='unknown header flags set',a.mode=Ye;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=W(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=W(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(n.subarray(r,r+c),y)),512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=n[r+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=n[r+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=W(a.check,n,c,r)),o-=c,r+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg='header crc mismatch',a.mode=Ye;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=Ce;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}t.adler=a.check=Ge(h),h=0,d=0,a.mode=Be;case Be:if(0===a.havedict)return t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,Oe;t.adler=a.check=1,a.mode=Ce;case Ce:if(e===Re||e===Ze)break t;case je:if(a.last){h>>>=7&d,d-=7&d,a.mode=Ke;break}for(;d<3;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(aa(a),a.mode=He,e===Ze){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg='invalid block type',a.mode=Ye}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg='invalid stored block lengths',a.mode=Ye;break}if(a.length=65535&h,h=0,d=0,a.mode=Me,e===Ze)break t;case Me:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;i.set(n.subarray(r,r+c),s),o-=c,r+=c,l-=c,s+=c,a.length-=c;break}a.mode=Ce;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg='too many length or distance symbols',a.mode=Ye;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=Ae(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg='invalid code lengths set',a.mode=Ye;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(g<16)h>>>=b,d-=b,a.lens[a.have++]=g;else{if(16===g){for(R=b+2;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(h>>>=b,d-=b,0===a.have){t.msg='invalid bit length repeat',a.mode=Ye;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=b+3;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=b,d-=b,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=b+7;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=b,d-=b,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg='invalid bit length repeat',a.mode=Ye;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===Ye)break;if(0===a.lens[256]){t.msg='invalid code -- missing end-of-block',a.mode=Ye;break}if(a.lenbits=9,E={bits:a.lenbits},x=Ae(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg='invalid literal/lengths set',a.mode=Ye;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=Ae(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg='invalid distances set',a.mode=Ye;break}if(a.mode=He,e===Ze)break t;case He:a.mode=Pe;case Pe:if(o>=6&&l>=258){t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,ke(t,f),s=t.next_out,i=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=a.hold,d=a.bits,a.mode===Ce&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(m&&!(240&m)){for(p=b,k=m,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],b=z>>>24,m=z>>>16&255,g=65535&z,!(p+b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=b,d-=b,a.back+=b,a.length=g,0===m){a.mode=16205;break}if(32&m){a.back=-1,a.mode=Ce;break}if(64&m){t.msg='invalid literal/length code',a.mode=Ye;break}a.extra=15&m,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],b=z>>>24,m=z>>>16&255,g=65535&z,!(b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(!(240&m)){for(p=b,k=m,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],b=z>>>24,m=z>>>16&255,g=65535&z,!(p+b<=d);){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=b,d-=b,a.back+=b,64&m){t.msg='invalid distance code',a.mode=Ye;break}a.offset=g,a.extra=15&m,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg='invalid distance too far back',a.mode=Ye;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg='invalid distance too far back',a.mode=Ye;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=i,u=s-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{i[s++]=w[u++]}while(--c);0===a.length&&(a.mode=Pe);break;case 16205:if(0===l)break t;i[s++]=a.length,l--,a.mode=Pe;break;case Ke:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=n[r++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?W(a.check,i,f,s-f):G(a.check,i,f,s-f)),f=l,4&a.wrap&&(a.flags?h:Ge(h))!==a.check){t.msg='incorrect data check',a.mode=Ye;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=n[r++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg='incorrect length check',a.mode=Ye;break}h=0,d=0}a.mode=16208;case 16208:x=Se;break t;case Ye:x=Te;break t;case 16210:return Ie;default:return De}return t.next_out=s,t.avail_out=l,t.next_in=r,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<Ye&&(a.mode<Ke||e!==Ee))&&na(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?W(a.check,i,f,t.next_out-f):G(a.check,i,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(a.mode===Ce?128:0)+(a.mode===He||a.mode===Me?256:0),(0===_&&0===f||e===Ee)&&x===Ue&&(x=Fe),x},inflateEnd:t=>{if(We(t))return De;let e=t.state;return e.window&&(e.window=null),t.state=null,Ue},inflateGetHeader:(t,e)=>{if(We(t))return De;const a=t.state;return 2&a.wrap?(a.head=e,e.done=!1,Ue):De},inflateSetDictionary:(t,e)=>{const a=e.length;let n,i,r;return We(t)?De:(n=t.state,0!==n.wrap&&n.mode!==Be?De:n.mode===Be&&(i=1,i=G(i,e,a,0),i!==n.check)?Te:(r=na(t,e,a,a),r?(n.mode=16210,Ie):(n.havedict=1,Ue)))},inflateInfo:'pako inflate (from Nodeca project)'};var ra=function(){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};const sa=Object.prototype.toString,{Z_NO_FLUSH:oa,Z_FINISH:la,Z_OK:ha,Z_STREAM_END:da,Z_NEED_DICT:_a,Z_STREAM_ERROR:fa,Z_DATA_ERROR:ca,Z_MEM_ERROR:ua}=J;function wa(t){this.options=Qt({chunkSize:65536,windowBits:15,to:''},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg='',this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let a=ia.inflateInit2(this.strm,e.windowBits);if(a!==ha)throw new Error(q[a]);if(this.header=new ra,ia.inflateGetHeader(this.strm,this.header),e.dictionary&&('string'==typeof e.dictionary?e.dictionary=ae(e.dictionary):'[object ArrayBuffer]'===sa.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=ia.inflateSetDictionary(this.strm,e.dictionary),a!==ha)))throw new Error(q[a])}function ba(t,e){const a=new wa(e);if(a.push(t),a.err)throw a.msg||q[a.err];return a.result}wa.prototype.push=function(t,e){const a=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let r,s,o;if(this.ended)return!1;for(s=e===~~e?e:!0===e?la:oa,'[object ArrayBuffer]'===sa.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(n),a.next_out=0,a.avail_out=n),r=ia.inflate(a,s),r===_a&&i&&(r=ia.inflateSetDictionary(a,i),r===ha?r=ia.inflate(a,s):r===ca&&(r=_a));a.avail_in>0&&r===da&&a.state.wrap>0&&0!==t[a.next_in];)ia.inflateReset(a),r=ia.inflate(a,s);switch(r){case fa:case ca:case _a:case ua:return this.onEnd(r),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||r===da))if('string'===this.options.to){let t=ie(a.output,a.next_out),e=a.next_out-t,i=ne(a.output,t);a.next_out=e,a.avail_out=n-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(i)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(r!==ha||0!==o){if(r===da)return r=ia.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},wa.prototype.onData=function(t){this.chunks.push(t)},wa.prototype.onEnd=function(t){t===ha&&('string'===this.options.to?this.result=this.chunks.join(''):this.result=Vt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ma={Inflate:wa,inflate:ba,inflateRaw:function(t,e){return(e=e||{}).raw=!0,ba(t,e)},ungzip:ba,constants:J};const{Deflate:ga,deflate:pa,deflateRaw:ka,gzip:va}=ge,{Inflate:ya,inflate:xa,inflateRaw:za,ungzip:Aa}=ma;var Ea=ga,Ra=pa,Za=ka,Ua=va,Sa=ya,Oa=xa,Da=za,Ta=Aa,Ia=J,Fa={Deflate:ga,deflate:pa,deflateRaw:ka,gzip:va,Inflate:ya,inflate:xa,inflateRaw:za,ungzip:Aa,constants:J}},3739,[]);
|
|
240
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.checkCrc=function(t,n,f){const c=t.readUint32(),u=o(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(u!==c)throw new Error(`CRC mismatch for chunk ${f}. Expected ${c}, found ${u}`)},e.writeCrc=function(t,n){t.writeUint32(o(new Uint8Array(t.buffer,t.byteOffset+t.offset-n,n),n))};const t=[];for(let n=0;n<256;n++){let f=n;for(let t=0;t<8;t++)1&f?f=3988292384^f>>>1:f>>>=1;t[n]=f}const n=4294967295;function f(n,f,o){let c=n;for(let n=0;n<o;n++)c=t[255&(c^f[n])]^c>>>8;return c}function o(t,o){return(f(n,t,o)^n)>>>0}},3740,[]);
|
|
241
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decodeInterlaceAdam7=function(n){const{data:p,width:c,height:o,channels:f,depth:x}=n,S=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(x/8)*f,s=new Uint8Array(o*c*l);let u=0;for(let n=0;n<7;n++){const y=S[n],i=Math.ceil((c-y.x)/y.xStep),f=Math.ceil((o-y.y)/y.yStep);if(i<=0||f<=0)continue;const x=i*l,h=new Uint8Array(x);for(let n=0;n<f;n++){const f=p[u++],S=p.subarray(u,u+x);u+=x;const w=new Uint8Array(x);(0,t.applyUnfilter)(f,S,w,h,x,l),h.set(w);for(let t=0;t<i;t++){const i=y.x+t*y.xStep,p=y.y+n*y.yStep;if(!(i>=c||p>=o))for(let n=0;n<l;n++)s[(p*c+i)*l+n]=w[t*l+n]}}}if(16===x){const t=new Uint16Array(s.buffer);if(y)for(let n=0;n<t.length;n++)t[n]=i(t[n]);return t}return s};var t=r(d[0]);const n=new Uint16Array([255]),y=255===new Uint8Array(n.buffer)[0];function i(t){return(255&t)<<8|t>>8&255}},3741,[3742]);
|
|
242
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyUnfilter=function(n,u,f,l,c,s){switch(n){case 0:(0,t.unfilterNone)(u,f,c);break;case 1:(0,t.unfilterSub)(u,f,c,s);break;case 2:(0,t.unfilterUp)(u,f,l,c);break;case 3:(0,t.unfilterAverage)(u,f,l,c,s);break;case 4:(0,t.unfilterPaeth)(u,f,l,c,s);break;default:throw new Error(`Unsupported filter: ${n}`)}};var t=r(d[0])},3742,[3743]);
|
|
243
|
+
__d(function(g,r,_i,_a,m,e,d){"use strict";function t(t,f,n){const o=t+f-n,l=Math.abs(o-t),i=Math.abs(o-f),u=Math.abs(o-n);return l<=i&&l<=u?t:i<=u?f:n}Object.defineProperty(e,'__esModule',{value:!0}),e.unfilterNone=function(t,f,n){for(let o=0;o<n;o++)f[o]=t[o]},e.unfilterSub=function(t,f,n,o){let l=0;for(;l<o;l++)f[l]=t[l];for(;l<n;l++)f[l]=t[l]+f[l-o]&255},e.unfilterUp=function(t,f,n,o){let l=0;if(0===n.length)for(;l<o;l++)f[l]=t[l];else for(;l<o;l++)f[l]=t[l]+n[l]&255},e.unfilterAverage=function(t,f,n,o,l){let i=0;if(0===n.length){for(;i<l;i++)f[i]=t[i];for(;i<o;i++)f[i]=t[i]+(f[i-l]>>1)&255}else{for(;i<l;i++)f[i]=t[i]+(n[i]>>1)&255;for(;i<o;i++)f[i]=t[i]+(f[i-l]+n[i]>>1)&255}},e.unfilterPaeth=function(f,n,o,l,i){let u=0;if(0===o.length){for(;u<i;u++)n[u]=f[u];for(;u<l;u++)n[u]=f[u]+n[u-i]&255}else{for(;u<i;u++)n[u]=f[u]+o[u]&255;for(;u<l;u++)n[u]=f[u]+t(n[u-i],o[u],o[u-i])&255}}},3743,[]);
|
|
244
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.decodeInterlaceNull=function(n){const{data:f,width:l,height:s,channels:o,depth:b}=n,h=Math.ceil(b/8)*o,w=Math.ceil(b/8*o*l),y=new Uint8Array(s*w);let U,A,k=u,p=0;for(let n=0;n<s;n++){switch(U=f.subarray(p+1,p+1+w),A=y.subarray(n*w,(n+1)*w),f[p]){case 0:(0,t.unfilterNone)(U,A,w);break;case 1:(0,t.unfilterSub)(U,A,w,h);break;case 2:(0,t.unfilterUp)(U,A,k,w);break;case 3:(0,t.unfilterAverage)(U,A,k,w,h);break;case 4:(0,t.unfilterPaeth)(U,A,k,w,h);break;default:throw new Error(`Unsupported filter: ${f[p]}`)}k=A,p+=w+1}if(16===b){const t=new Uint16Array(y.buffer);if(i)for(let n=0;n<t.length;n++)t[n]=c(t[n]);return t}return y};var t=r(d[0]);const n=new Uint16Array([255]),i=255===new Uint8Array(n.buffer)[0],u=new Uint8Array(0);function c(t){return(255&t)<<8|t>>8&255}},3744,[3743]);
|
|
245
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.writeSignature=function(n){n.writeBytes(t)},e.checkSignature=function(i){if(!n(i.readBytes(t.length)))throw new Error('wrong PNG signature')},e.hasPngSignature=n;const t=Uint8Array.of(137,80,78,71,13,10,26,10);function n(n){if(n.length<t.length)return!1;for(let i=0;i<t.length;i++)if(n[i]!==t[i])return!1;return!0}},3745,[]);
|
|
246
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"textChunkName",{enumerable:!0,get:function(){return n}}),e.decodetEXt=function(t,n,o){const c=w(n);t[c]=h(n,o-c.length-1)},e.encodetEXt=function(c,u,w){s(u),f(w);const h=u.length+1+w.length;c.writeUint32(h),c.writeChars(n),c.writeChars(u),c.writeByte(o),c.writeChars(w),(0,t.writeCrc)(c,h+4)},e.readKeyword=w,e.readLatin1=h;var t=r(d[0]);const n='tEXt',o=0,c=new TextDecoder('latin1');function s(t){if(f(t),0===t.length||t.length>79)throw new Error('keyword length must be between 1 and 79')}const u=/^[\u0000-\u00FF]*$/;function f(t){if(!u.test(t))throw new Error('invalid latin1 text')}function w(t){for(t.mark();t.readByte()!==o;);const n=t.offset;t.reset();const u=c.decode(t.readBytes(n-t.offset-1));return t.skip(1),s(u),u}function h(t,n){return c.decode(t.readBytes(n))}},3746,[3740]);
|
|
247
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ColorType",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"CompressionMethod",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FilterMethod",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"InterlaceMethod",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"DisposeOpType",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"BlendOpType",{enumerable:!0,get:function(){return N}});const t={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},n={UNKNOWN:-1,DEFLATE:0},O={UNKNOWN:-1,ADAPTIVE:0},o={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},u={NONE:0,BACKGROUND:1,PREVIOUS:2},N={SOURCE:0,OVER:1}},3747,[]);
|
|
248
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),i=r(d[1]),n=r(d[2]),h=r(d[3]),o=r(d[4]),s=r(d[5]);const c={level:3};class l extends t.IOBuffer{constructor(t,i={}){super(),this._colorType=s.ColorType.UNKNOWN,this._zlibOptions={...c,...i.zlib},this._png=this._checkData(t),this._interlaceMethod=('Adam7'===i.interlace?s.InterlaceMethod.ADAM7:s.InterlaceMethod.NO_INTERLACE)??s.InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if((0,h.writeSignature)(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),4===this._png.palette[0].length&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[t,i]of Object.entries(this._png.text))(0,o.encodetEXt)(this,t,i);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars('IHDR'),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(s.CompressionMethod.DEFLATE),this.writeByte(s.FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),(0,n.writeCrc)(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars('IEND'),(0,n.writeCrc)(this,4)}encodePLTE(){const t=3*this._png.palette?.length;this.writeUint32(t),this.writeChars('PLTE');for(const t of this._png.palette)this.writeByte(t[0]),this.writeByte(t[1]),this.writeByte(t[2]);(0,n.writeCrc)(this,4+t)}encodeTRNS(){const t=this._png.palette.filter(t=>255!==t.at(-1));this.writeUint32(t.length),this.writeChars('tRNS');for(const i of t)this.writeByte(i.at(-1));(0,n.writeCrc)(this,4+t.length)}encodeIDAT(t){this.writeUint32(t.length),this.writeChars('IDAT'),this.writeBytes(t),(0,n.writeCrc)(this,t.length+4)}encodeData(){const{width:n,height:h,channels:o,depth:c,data:l}=this._png,p=c<=8?Math.ceil(n*c/8)*o:Math.ceil(n*c/8*o/2),y=(new t.IOBuffer).setBigEndian();let _=0;if(this._interlaceMethod===s.InterlaceMethod.NO_INTERLACE)for(let t=0;t<h;t++)y.writeByte(0),_=16===c?u(l,y,p,_):w(l,y,p,_);else this._interlaceMethod===s.InterlaceMethod.ADAM7&&(_=f(this._png,l,y,_));const T=y.toArray(),E=(0,i.deflate)(T,this._zlibOptions);this.encodeIDAT(E)}_checkData(t){const{colorType:i,channels:n,depth:h}=y(t,t.palette),o={width:p(t.width,'width'),height:p(t.height,'height'),channels:n,data:t.data,depth:h,text:t.text,palette:t.palette};this._colorType=i;const s=h<8?Math.ceil(o.width*h/8)*o.height*n:o.width*o.height*n;if(o.data.length!==s)throw new RangeError(`wrong data size. Found ${o.data.length}, expected ${s}`);return o}}function p(t,i){if(Number.isInteger(t)&&t>0)return t;throw new TypeError(`${i} must be a positive integer`)}function y(t,i){const{channels:n=4,depth:h=8}=t;if(4!==n&&3!==n&&2!==n&&1!==n)throw new RangeError(`unsupported number of channels: ${n}`);const o={channels:n,depth:h,colorType:s.ColorType.UNKNOWN};switch(n){case 4:o.colorType=s.ColorType.TRUECOLOUR_ALPHA;break;case 3:o.colorType=s.ColorType.TRUECOLOUR;break;case 1:o.colorType=i?s.ColorType.INDEXED_COLOUR:s.ColorType.GREYSCALE;break;case 2:o.colorType=s.ColorType.GREYSCALE_ALPHA;break;default:throw new Error('unsupported number of channels')}return o}function w(t,i,n,h){for(let o=0;o<n;o++)i.writeByte(t[h++]);return h}function f(t,i,n,h){const o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:s,height:c,channels:l,depth:p}=t;let y=0;y=16===p?l*p/8/2:l*p/8;for(let t=0;t<7;t++){const h=o[t],l=Math.floor((s-h.x+h.xStep-1)/h.xStep),w=Math.floor((c-h.y+h.yStep-1)/h.yStep);if(l<=0||w<=0)continue;const f=l*y;for(let t=0;t<w;t++){const o=h.y+t*h.yStep,w=p<=8?new Uint8Array(f):new Uint16Array(f);let u=0;for(let t=0;t<l;t++){const n=h.x+t*h.xStep;if(n<s&&o<c){const t=(o*s+n)*y;for(let n=0;n<y;n++)w[u++]=i[t+n]}}if(n.writeByte(0),8===p)n.writeBytes(w);else if(16===p)for(const t of w)n.writeByte(t>>8&255),n.writeByte(255&t)}}return h}function u(t,i,n,h){for(let o=0;o<n;o++)i.writeUint16(t[h++]);return h}},3748,[3737,3739,3740,3745,3746,3747]);
|
|
249
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ResolutionUnitSpecifier",{enumerable:!0,get:function(){return t}}),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(t||(t={}))},3749,[]);
|
|
250
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.depth<8?Math.ceil(t.width*t.depth/8)*t.height*t.channels:t.width*t.height*t.channels;if(t.data.length!==n)throw new RangeError(`wrong data size. Found ${t.data.length}, expected ${n}`)}Object.defineProperty(e,'__esModule',{value:!0}),e.convertIndexedToRgb=function(n){const o=n.palette,c=n.depth;if(!o)throw new Error('Color palette is undefined.');t(n);const h=n.width*n.height,l=h*o[0].length,s=new Uint8Array(l);let f=0,w=0;const p=new Uint8Array(h);let u=255;switch(c){case 1:u=128;break;case 2:u=192;break;case 4:u=240;break;case 8:u=255;break;default:throw new Error('Incorrect depth value')}for(const t of n.data){let o=u,h=8;for(;o&&(h-=c,p[f++]=(t&o)>>h,o>>=c,f%n.width!==0););}if(n.palette)for(const t of p){const o=n.palette.at(t);if(!o)throw new Error('Incorrect index of palette color');s.set(o,w),w+=o.length}return s}},3750,[]);
|