PageSourceSearch

https://portal.cardapioweb.com/assets/index-BmDYegP1.js

js cardapioweb.com collected 2026-09-24 11:59:07 UTC 107,678 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bd11d065-e305-558d-a1d8-0da3d920033c")}catch(e){}}();
3import{Q as At,W as xt,cP as Gt,R as H,bJ as qt,cp as St,ao as Kt,bD as Yt,bT as Qt,bU as Vt,k as Rt,c3 as Bt,i as Pt,bN as Xt,v as Jt,x as Lt,b5 as $t,b6 as te,D as ee,q as re,I as ne,s as ie,t as ae,b7 as se,c2 as oe,aS as le,b0 as ue,Y as kt,C as ce,b9 as he,bV as fe,ai as de,V as pe,bj as me,cJ as _e,kE as ge,gr as be,aj as ve,dP as ye,bY as we,bg as ke,ch as xe,bk as Ee,bs as Se,bi as Tt,aG as Ce}from"./index-Cs-In7Vx.js";import{O as ze,u as jt}from"./useOrderSessions-DlFFJX2M.js";import{u as Ae,C as Ie,O as Oe}from"./OrderSessionQRCodeDialog-B2qXMQD_.js";import{S as Re}from"./SearchInput-6k8qtIIx.js";import{c as wt}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{Q as Be}from"./browser-CZVQoyD8.js";import{h as Te,G as De}from"./SettingsPage-Bj7cHj-F.js";import"./VisibilityOutlined-CAYGdMym.js";import"./CategoryRounded-CVoUfdJC.js";import"./RoomServiceRounded-DfS0Dhfc.js";import"./Help-D_hZHZg-.js";async function Fe(tt){return(await At.post("/api/v2/orders/order_sessions",{...tt,quantity:parseInt(tt.quantity),start_number:parseInt(tt.start_number)})).data}async function Ne(tt,$){return(await At.put(`/api/v2/orders/order_sessions/${tt}`,$)).data}async function Ue(tt){return(await At.delete(`/api/v2/orders/order_sessions/${tt}`)).data}const Dt={mode:"mesa",quantity:1,start_number:1};function Pe({open:tt,onClose:$}){const d=xt(),{form:z,handleChange:y,setForm:u}=Gt(Dt),[a,i]=H.useState(!1),[l,g]=H.useState({}),{mutate:v}=qt();H.useEffect(()=>{tt&&u({...Dt})},[tt,u]);const m=H.useCallback(r=>{l[r.target.name]&&g(c=>({...c,[r.target.name]:""})),y(r)},[l,y]),_=H.useCallback(()=>{const r={};return St(z.mode)||(r.mode="Informe um tipo"),(!St(z.quantity)||z.quantity<=0)&&(r.quantity="Informe a quantidade"),(!St(z.start_number)||z.quantity<=0)&&(r.start_number="Informe o número de início"),z.quantity>100&&(r.quantity="Só é permitida a criação de até 100 mesas/comandas por vez"),Object.keys(r).length>0?(g(r),!1):!0},[z.mode,z.quantity,z.start_number]),n=H.useCallback(()=>{$&&!a&&$()},[a,$]),h=H.useCallback(async r=>{if(r.preventDefault(),_()&&!a){i(!0);try{await Fe(z),await v(ze),d.success("Criado com sucesso!"),n()}catch(c){d.error(c.response?.data?.message||"Não foi possível concluir a operação")}i(!1)}},[_,a,z,v,d,n]);return H.createElement(Kt,{open:tt,title:"Adicionar Mesa ou Comanda",loading:a,onClose:n,onSubmit:h},H.createElement("div",{className:"space-y-28"},H.createElement(Yt,{variant:"outlined",fullWidth:!0},H.createElement(Qt,{id:"gender-label"},"Tipo"),H.createElement(Vt,{labelId:"gender-label",name:"mode",value:z.mode||"",onChange:m,label:"Gênero"},H.createElement(Rt,{value:"mesa"},"Mesa"),H.createElement(Rt,{value:"comanda"},"Comanda"))),H.createElement(Bt,{name:"quantity",label:`Quantidade de ${z.mode}s`,value:z.quantity||"",onChange:m,error:!!l.quantity,helperText:l.quantity,type:"number",size:"large",placeholder:"0",variant:"outlined",InputLabelProps:{shrink:!0},className:"w-full bg-white"}),H.createElement(Bt,{name:"start_number",label:"Número de início",value:z.start_number||"",onChange:m,type:"number",size:"large",error:!!l.start_number,helperText:l.start_number,placeholder:"0",variant:"outlined",InputLabelProps:{shrink:!0},className:"w-full bg-white"})))}var Ct={exports:{}},Ft;function Le(){return Ft||(Ft=1,(function(tt,$){(function(d){tt.exports=d()})(function(){return(function d(z,y,u){function a(g,v){if(!y[g]){if(!z[g]){var m=typeof wt=="function"&&wt;if(!v&&m)return m(g,!0);if(i)return i(g,!0);var _=new Error("Cannot find module '"+g+"'");throw _.code="MODULE_NOT_FOUND",_}var n=y[g]={exports:{}};z[g][0].call(n.exports,function(h){var r=z[g][1][h];return a(r||h)},n,n.exports,d,z,y,u)}return y[g].exports}for(var i=typeof wt=="function"&&wt,l=0;l<u.length;l++)a(u[l]);return a})({1:[function(d,z,y){var u=d("./utils"),a=d("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 5,321 bytes, line 3
3+/=";y.encode=function(l){for(var g,v,m,_,n,h,r,c=[],s=0,p=l.length,w=p,E=u.getTypeOf(l)!=="string";s<l.length;)w=p-s,m=E?(g=l[s++],v=s<p?l[s++]:0,s<p?l[s++]:0):(g=l.charCodeAt(s++),v=s<p?l.charCodeAt(s++):0,s<p?l.charCodeAt(s++):0),_=g>>2,n=(3&g)<<4|v>>4,h=1<w?(15&v)<<2|m>>6:64,r=2<w?63&m:64,c.push(i.charAt(_)+i.charAt(n)+i.charAt(h)+i.charAt(r));return c.join("")},y.decode=function(l){var g,v,m,_,n,h,r=0,c=0,s="data:";if(l.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var p,w=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===i.charAt(64)&&w--,l.charAt(l.length-2)===i.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=a.uint8array?new Uint8Array(0|w):new Array(0|w);r<l.length;)g=i.indexOf(l.charAt(r++))<<2|(_=i.indexOf(l.charAt(r++)))>>4,v=(15&_)<<4|(n=i.indexOf(l.charAt(r++)))>>2,m=(3&n)<<6|(h=i.indexOf(l.charAt(r++))),p[c++]=g,n!==64&&(p[c++]=v),h!==64&&(p[c++]=m);return p}},{"./support":30,"./utils":32}],2:[function(d,z,y){var u=d("./external"),a=d("./stream/DataWorker"),i=d("./stream/Crc32Probe"),l=d("./stream/DataLengthProbe");function g(v,m,_,n,h){this.compressedSize=v,this.uncompressedSize=m,this.crc32=_,this.compression=n,this.compressedContent=h}g.prototype={getContentWorker:function(){var v=new a(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),m=this;return v.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},getCompressedWorker:function(){return new a(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(v,m,_){return v.pipe(new i).pipe(new l("uncompressedSize")).pipe(m.compressWorker(_)).pipe(new l("compressedSize")).withStreamInfo("compression",m)},z.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(d,z,y){var u=d("./stream/GenericWorker");y.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},y.DEFLATE=d("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(d,z,y){var u=d("./utils"),a=(function(){for(var i,l=[],g=0;g<256;g++){i=g;for(var v=0;v<8;v++)i=1&i?3988292384^i>>>1:i>>>1;l[g]=i}return l})();z.exports=function(i,l){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?(function(g,v,m,_){var n=a,h=_+m;g^=-1;for(var r=_;r<h;r++)g=g>>>8^n[255&(g^v[r])];return-1^g})(0|l,i,i.length,0):(function(g,v,m,_){var n=a,h=_+m;g^=-1;for(var r=_;r<h;r++)g=g>>>8^n[255&(g^v.charCodeAt(r))];return-1^g})(0|l,i,i.length,0):0}},{"./utils":32}],5:[function(d,z,y){y.base64=!1,y.binary=!1,y.dir=!1,y.createFolders=!0,y.date=null,y.compression=null,y.compressionOptions=null,y.comment=null,y.unixPermissions=null,y.dosPermissions=null},{}],6:[function(d,z,y){var u=null;u=typeof Promise<"u"?Promise:d("lie"),z.exports={Promise:u}},{lie:37}],7:[function(d,z,y){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=d("pako"),i=d("./utils"),l=d("./stream/GenericWorker"),g=u?"uint8array":"array";function v(m,_){l.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=_,this.meta={}}y.magic="\b\0",i.inherits(v,l),v.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(g,m.data),!1)},v.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},v.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},v.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(_){m.push({data:_,meta:m.meta})}},y.compressWorker=function(m){return new v("Deflate",m)},y.uncompressWorker=function(){return new v("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(d,z,y){function u(n,h){var r,c="";for(r=0;r<h;r++)c+=String.fromCharCode(255&n),n>>>=8;return c}function a(n,h,r,c,s,p){var w,E,x=n.file,F=n.compression,R=p!==g.utf8encode,L=i.transformTo("string",p(x.name)),O=i.transformTo("string",g.utf8encode(x.name)),Z=x.comment,V=i.transformTo("string",p(Z)),b=i.transformTo("string",g.utf8encode(Z)),B=O.length!==x.name.length,e=b.length!==Z.length,D="",J="",P="",et=x.dir,j=x.date,X={crc32:0,compressedSize:0,uncompressedSize:0};h&&!r||(X.crc32=n.crc32,X.compressedSize=n.compressedSize,X.uncompressedSize=n.uncompressedSize);var A=0;h&&(A|=8),R||!B&&!e||(A|=2048);var C=0,Q=0;et&&(C|=16),s==="UNIX"?(Q=798,C|=(function(G,st){var ct=G;return G||(ct=st?16893:33204),(65535&ct)<<16})(x.unixPermissions,et)):(Q=20,C|=(function(G){return 63&(G||0)})(x.dosPermissions)),w=j.getUTCHours(),w<<=6,w|=j.getUTCMinutes(),w<<=5,w|=j.getUTCSeconds()/2,E=j.getUTCFullYear()-1980,E<<=4,E|=j.getUTCMonth()+1,E<<=5,E|=j.getUTCDate(),B&&(J=u(1,1)+u(v(L),4)+O,D+="up"+u(J.length,2)+J),e&&(P=u(1,1)+u(v(V),4)+b,D+="uc"+u(P.length,2)+P);var q="";return q+=`
4\0`,q+=u(A,2),q+=F.magic,q+=u(w,2),q+=u(E,2),q+=u(X.crc32,4),q+=u(X.compressedSize,4),q+=u(X.uncompressedSize,4),q+=u(L.length,2),q+=u(D.length,2),{fileRecord:m.LOCAL_FILE_HEADER+q+L+D,dirRecord:m.CENTRAL_FILE_HEADER+u(Q,2)+q+u(V.length,2)+"\0\0\0\0"+u(C,4)+u(c,4)+L+D+V}}var i=d("../utils"),l=d("../stream/GenericWorker"),g=d("../utf8"),v=d("../crc32"),m=d("../signature");function _(n,h,r,c){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=r,this.encodeFileName=c,this.streamFiles=n,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,l),_.prototype.push=function(n){var h=n.meta.percent||0,r=this.entriesCount,c=this._sources.length;this.accumulate?this.contentBuffer.push(n):(this.bytesWritten+=n.data.length,l.prototype.push.call(this,{data:n.data,meta:{currentFile:this.currentFile,percent:r?(h+100*(r-c-1))/r:100}}))},_.prototype.openedSource=function(n){this.currentSourceOffset=this.bytesWritten,this.currentFile=n.file.name;var h=this.streamFiles&&!n.file.dir;if(h){var r=a(n,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(n){this.accumulate=!1;var h=this.streamFiles&&!n.file.dir,r=a(n,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),h)this.push({data:(function(c){return m.DATA_DESCRIPTOR+u(c.crc32,4)+u(c.compressedSize,4)+u(c.uncompressedSize,4)})(n),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var n=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var r=this.bytesWritten-n,c=(function(s,p,w,E,x){var F=i.transformTo("string",x(E));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(s,2)+u(s,2)+u(p,4)+u(w,4)+u(F.length,2)+F})(this.dirRecords.length,r,n,this.zipComment,this.encodeFileName);this.push({data:c,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(n){this._sources.push(n);var h=this;return n.on("data",function(r){h.processChunk(r)}),n.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),n.on("error",function(r){h.error(r)}),this},_.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(n){var h=this._sources;if(!l.prototype.error.call(this,n))return!1;for(var r=0;r<h.length;r++)try{h[r].error(n)}catch{}return!0},_.prototype.lock=function(){l.prototype.lock.call(this);for(var n=this._sources,h=0;h<n.length;h++)n[h].lock()},z.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(d,z,y){var u=d("../compressions"),a=d("./ZipFileWorker");y.generateWorker=function(i,l,g){var v=new a(l.streamFiles,g,l.platform,l.encodeFileName),m=0;try{i.forEach(function(_,n){m++;var h=(function(p,w){var E=p||w,x=u[E];if(!x)throw new Error(E+" is not a valid compression method !");return x})(n.options.compression,l.compression),r=n.options.compressionOptions||l.compressionOptions||{},c=n.dir,s=n.date;n._compressWorker(h,r).withStreamInfo("file",{name:_,dir:c,date:s,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(v)}),v.entriesCount=m}catch(_){v.error(_)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(d,z,y){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new u;for(var i in this)typeof this[i]!="function"&&(a[i]=this[i]);return a}}(u.prototype=d("./object")).loadAsync=d("./load"),u.support=d("./support"),u.defaults=d("./defaults"),u.ver
vendor: 27,948 bytes, line 4
4sion="3.10.1",u.loadAsync=function(a,i){return new u().loadAsync(a,i)},u.external=d("./external"),z.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(d,z,y){var u=d("./utils"),a=d("./external"),i=d("./utf8"),l=d("./zipEntries"),g=d("./stream/Crc32Probe"),v=d("./nodejsUtils");function m(_){return new a.Promise(function(n,h){var r=_.decompressed.getContentWorker().pipe(new g);r.on("error",function(c){h(c)}).on("end",function(){r.streamInfo.crc32!==_.decompressed.crc32?h(new Error("Corrupted zip : CRC32 mismatch")):n()}).resume()})}z.exports=function(_,n){var h=this;return n=u.extend(n||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),v.isNode&&v.isStream(_)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",_,!0,n.optimizedBinaryString,n.base64).then(function(r){var c=new l(n);return c.load(r),c}).then(function(r){var c=[a.Promise.resolve(r)],s=r.files;if(n.checkCRC32)for(var p=0;p<s.length;p++)c.push(m(s[p]));return a.Promise.all(c)}).then(function(r){for(var c=r.shift(),s=c.files,p=0;p<s.length;p++){var w=s[p],E=w.fileNameStr,x=u.resolve(w.fileNameStr);h.file(x,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:n.createFolders}),w.dir||(h.file(x).unsafeOriginalName=E)}return c.zipComment.length&&(h.comment=c.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(d,z,y){var u=d("../utils"),a=d("../stream/GenericWorker");function i(l,g){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(g)}u.inherits(i,a),i.prototype._bindStream=function(l){var g=this;(this._stream=l).pause(),l.on("data",function(v){g.push({data:v,meta:{percent:0}})}).on("error",function(v){g.isPaused?this.generatedError=v:g.error(v)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},z.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(d,z,y){var u=d("readable-stream").Readable;function a(i,l,g){u.call(this,l),this._helper=i;var v=this;i.on("data",function(m,_){v.push(m)||v._helper.pause(),g&&g(_)}).on("error",function(m){v.emit("error",m)}).on("end",function(){v.push(null)})}d("../utils").inherits(a,u),a.prototype._read=function(){this._helper.resume()},z.exports=a},{"../utils":32,"readable-stream":16}],14:[function(d,z,y){z.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,a);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,a)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var a=new Buffer(u);return a.fill(0),a},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(d,z,y){function u(x,F,R){var L,O=i.getTypeOf(F),Z=i.extend(R||{},v);Z.date=Z.date||new Date,Z.compression!==null&&(Z.compression=Z.compression.toUpperCase()),typeof Z.unixPermissions=="string"&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(x=s(x)),Z.createFolders&&(L=c(x))&&p.call(this,L,!0);var V=O==="string"&&Z.binary===!1&&Z.base64===!1;R&&R.binary!==void 0||(Z.binary=!V),(F instanceof m&&F.uncompressedSize===0||Z.dir||!F||F.length===0)&&(Z.base64=!1,Z.binary=!0,F="",Z.compression="STORE",O="string");var b=null;b=F instanceof m||F instanceof l?F:h.isNode&&h.isStream(F)?new r(x,F):i.prepareContent(x,F,Z.binary,Z.optimizedBinaryString,Z.base64);var B=new _(x,b,Z);this.files[x]=B}var a=d("./utf8"),i=d("./utils"),l=d("./stream/GenericWorker"),g=d("./stream/StreamHelper"),v=d("./defaults"),m=d("./compressedObject"),_=d("./zipObject"),n=d("./generate"),h=d("./nodejsUtils"),r=d("./nodejs/NodejsStreamInputAdapter"),c=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var F=x.lastIndexOf("/");return 0<F?x.substring(0,F):""},s=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},p=function(x,F){return F=F!==void 0?F:v.createFolders,x=s(x),this.files[x]||u.call(this,x,null,{dir:!0,createFolders:F}),this.files[x]};function w(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var F,R,L;for(F in this.files)L=this.files[F],(R=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&x(R,L)},filter:function(x){var F=[];return this.forEach(function(R,L){x(R,L)&&F.push(L)}),F},file:function(x,F,R){if(arguments.length!==1)return x=this.root+x,u.call(this,x,F,R),this;if(w(x)){var L=x;return this.filter(function(Z,V){return!V.dir&&L.test(Z)})}var O=this.files[this.root+x];return O&&!O.dir?O:null},folder:function(x){if(!x)return this;if(w(x))return this.filter(function(O,Z){return Z.dir&&x.test(O)});var F=this.root+x,R=p.call(this,F),L=this.clone();return L.root=R.name,L},remove:function(x){x=this.root+x;var F=this.files[x];if(F||(x.slice(-1)!=="/"&&(x+="/"),F=this.files[x]),F&&!F.dir)delete this.files[x];else for(var R=this.filter(function(O,Z){return Z.name.slice(0,x.length)===x}),L=0;L<R.length;L++)delete this.files[R[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var F,R={};try{if((R=i.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=R.type.toLowerCase(),R.compression=R.compression.toUpperCase(),R.type==="binarystring"&&(R.type="string"),!R.type)throw new Error("No output type specified.");i.checkSupport(R.type),R.platform!=="darwin"&&R.platform!=="freebsd"&&R.platform!=="linux"&&R.platform!=="sunos"||(R.platform="UNIX"),R.platform==="win32"&&(R.platform="DOS");var L=R.comment||this.comment||"";F=n.generateWorker(this,R,L)}catch(O){(F=new l("error")).error(O)}return new g(F,R.type||"string",R.mimeType)},generateAsync:function(x,F){return this.generateInternalStream(x).accumulate(F)},generateNodeStream:function(x,F){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(F)}};z.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(d,z,y){z.exports=d("stream")},{stream:void 0}],17:[function(d,z,y){var u=d("./DataReader");function a(i){u.call(this,i);for(var l=0;l<this.data.length;l++)i[l]=255&i[l]}d("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data[this.zero+i]},a.prototype.lastIndexOfSignature=function(i){for(var l=i.charCodeAt(0),g=i.charCodeAt(1),v=i.charCodeAt(2),m=i.charCodeAt(3),_=this.length-4;0<=_;--_)if(this.data[_]===l&&this.data[_+1]===g&&this.data[_+2]===v&&this.data[_+3]===m)return _-this.zero;return-1},a.prototype.readAndCheckSignature=function(i){var l=i.charCodeAt(0),g=i.charCodeAt(1),v=i.charCodeAt(2),m=i.charCodeAt(3),_=this.readData(4);return l===_[0]&&g===_[1]&&v===_[2]&&m===_[3]},a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},z.exports=a},{"../utils":32,"./DataReader":18}],18:[function(d,z,y){var u=d("../utils");function a(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var l,g=0;for(this.checkOffset(i),l=this.index+i-1;l>=this.index;l--)g=(g<<8)+this.byteAt(l);return this.index+=i,g},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},z.exports=a},{"../utils":32}],19:[function(d,z,y){var u=d("./Uint8ArrayReader");function a(i){u.call(this,i)}d("../utils").inherits(a,u),a.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},z.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(d,z,y){var u=d("./DataReader");function a(i){u.call(this,i)}d("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},z.exports=a},{"../utils":32,"./DataReader":18}],21:[function(d,z,y){var u=d("./ArrayReader");function a(i){u.call(this,i)}d("../utils").inherits(a,u),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},z.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(d,z,y){var u=d("../utils"),a=d("../support"),i=d("./ArrayReader"),l=d("./StringReader"),g=d("./NodeBufferReader"),v=d("./Uint8ArrayReader");z.exports=function(m){var _=u.getTypeOf(m);return u.checkSupport(_),_!=="string"||a.uint8array?_==="nodebuffer"?new g(m):a.uint8array?new v(u.transformTo("uint8array",m)):new i(u.transformTo("array",m)):new l(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(d,z,y){y.LOCAL_FILE_HEADER="PK��",y.CENTRAL_FILE_HEADER="PK��",y.CENTRAL_DIRECTORY_END="PK��",y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",y.ZIP64_CENTRAL_DIRECTORY_END="PK��",y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(d,z,y){var u=d("./GenericWorker"),a=d("../utils");function i(l){u.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(i,u),i.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},z.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(d,z,y){var u=d("./GenericWorker"),a=d("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}d("../utils").inherits(i,u),i.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},z.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(d,z,y){var u=d("../utils"),a=d("./GenericWorker");function i(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}u.inherits(i,a),i.prototype.processChunk=function(l){if(l){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+l.data.length}a.prototype.processChunk.call(this,l)},z.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(d,z,y){var u=d("../utils"),a=d("./GenericWorker");function i(l){a.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(v){g.dataIsReady=!0,g.data=v,g.max=v&&v.length||0,g.type=u.getTypeOf(v),g.isPaused||g._tickAndRepeat()},function(v){g.error(v)})}u.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,g);break;case"uint8array":l=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":l=this.data.slice(this.index,g)}return this.index=g,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},z.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(d,z,y){function u(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,i){return this._listeners[a].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,i){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,i)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var i=this;return a.on("data",function(l){i.processChunk(l)}),a.on("end",function(){i.end()}),a.on("error",function(l){i.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,i){return this.extraStreamInfo[a]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},z.exports=u},{}],29:[function(d,z,y){var u=d("../utils"),a=d("./ConvertWorker"),i=d("./GenericWorker"),l=d("../base64"),g=d("../support"),v=d("../external"),m=null;if(g.nodestream)try{m=d("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(h,r){return new v.Promise(function(c,s){var p=[],w=h._internalType,E=h._outputType,x=h._mimeType;h.on("data",function(F,R){p.push(F),r&&r(R)}).on("error",function(F){p=[],s(F)}).on("end",function(){try{var F=(function(R,L,O){switch(R){case"blob":return u.newBlob(u.transformTo("arraybuffer",L),O);case"base64":return l.encode(L);default:return u.transformTo(R,L)}})(E,(function(R,L){var O,Z=0,V=null,b=0;for(O=0;O<L.length;O++)b+=L[O].length;switch(R){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(V=new Uint8Array(b),O=0;O<L.length;O++)V.set(L[O],Z),Z+=L[O].length;return V;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+R+"'")}})(w,p),x);c(F)}catch(R){s(R)}p=[]}).resume()})}function n(h,r,c){var s=r;switch(r){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=r,this._mimeType=c,u.checkSupport(s),this._worker=h.pipe(new a(s)),h.lock()}catch(p){this._worker=new i("error"),this._worker.error(p)}}n.prototype={accumulate:function(h){return _(this,h)},on:function(h,r){var c=this;return h==="data"?this._worker.on(h,function(s){r.call(c,s.data,s.meta)}):this._worker.on(h,function(){u.delay(r,arguments,c)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},h)}},z.exports=n},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(d,z,y){if(y.base64=!0,y.array=!0,y.string=!0,y.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",y.nodebuffer=typeof Buffer<"u",y.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")y.blob=!1;else{var u=new ArrayBuffer(0);try{y.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(u),y.blob=a.getBlob("application/zip").size===0}catch{y.blob=!1}}}try{y.nodestream=!!d("readable-stream").Readable}catch{y.nodestream=!1}},{"readable-stream":16}],31:[function(d,z,y){for(var u=d("./utils"),a=d("./support"),i=d("./nodejsUtils"),l=d("./stream/GenericWorker"),g=new Array(256),v=0;v<256;v++)g[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;g[254]=g[254]=1;function m(){l.call(this,"utf-8 decode"),this.leftOver=null}function _(){l.call(this,"utf-8 encode")}y.utf8encode=function(n){return a.nodebuffer?i.newBufferFrom(n,"utf-8"):(function(h){var r,c,s,p,w,E=h.length,x=0;for(p=0;p<E;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<E&&(64512&(s=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(s-56320),p++),x+=c<128?1:c<2048?2:c<65536?3:4;for(r=a.uint8array?new Uint8Array(x):new Array(x),p=w=0;w<x;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<E&&(64512&(s=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(s-56320),p++),c<128?r[w++]=c:(c<2048?r[w++]=192|c>>>6:(c<65536?r[w++]=224|c>>>12:(r[w++]=240|c>>>18,r[w++]=128|c>>>12&63),r[w++]=128|c>>>6&63),r[w++]=128|63&c);return r})(n)},y.utf8decode=function(n){return a.nodebuffer?u.transformTo("nodebuffer",n).toString("utf-8"):(function(h){var r,c,s,p,w=h.length,E=new Array(2*w);for(r=c=0;r<w;)if((s=h[r++])<128)E[c++]=s;else if(4<(p=g[s]))E[c++]=65533,r+=p-1;else{for(s&=p===2?31:p===3?15:7;1<p&&r<w;)s=s<<6|63&h[r++],p--;1<p?E[c++]=65533:s<65536?E[c++]=s:(s-=65536,E[c++]=55296|s>>10&1023,E[c++]=56320|1023&s)}return E.length!==c&&(E.subarray?E=E.subarray(0,c):E.length=c),u.applyFromCharCode(E)})(n=u.transformTo(a.uint8array?"uint8array":"array",n))},u.inherits(m,l),m.prototype.processChunk=function(n){var h=u.transformTo(a.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var r=h;(h=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),h.set(r,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var c=(function(p,w){var E;for((w=w||p.length)>p.length&&(w=p.length),E=w-1;0<=E&&(192&p[E])==128;)E--;return E<0||E===0?w:E+g[p[E]]>w?E:w})(h),s=h;c!==h.length&&(a.uint8array?(s=h.subarray(0,c),this.leftOver=h.subarray(c,h.length)):(s=h.slice(0,c),this.leftOver=h.slice(c,h.length))),this.push({data:y.utf8decode(s),meta:n.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},y.Utf8DecodeWorker=m,u.inherits(_,l),_.prototype.processChunk=function(n){this.push({data:y.utf8encode(n.data),meta:n.meta})},y.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(d,z,y){var u=d("./support"),a=d("./base64"),i=d("./nodejsUtils"),l=d("./external");function g(r){return r}function v(r,c){for(var s=0;s<r.length;++s)c[s]=255&r.charCodeAt(s);return c}d("setimmediate"),y.newBlob=function(r,c){y.checkSupport("blob");try{return new Blob([r],{type:c})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(r),s.getBlob(c)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(r,c,s){var p=[],w=0,E=r.length;if(E<=s)return String.fromCharCode.apply(null,r);for(;w<E;)c==="array"||c==="nodebuffer"?p.push(String.fromCharCode.apply(null,r.slice(w,Math.min(w+s,E)))):p.push(String.fromCharCode.apply(null,r.subarray(w,Math.min(w+s,E)))),w+=s;return p.join("")},stringifyByChar:function(r){for(var c="",s=0;s<r.length;s++)c+=String.fromCharCode(r[s]);return c},applyCanBeUsed:{uint8array:(function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch{return!1}})()}};function _(r){var c=65536,s=y.getTypeOf(r),p=!0;if(s==="uint8array"?p=m.applyCanBeUsed.uint8array:s==="nodebuffer"&&(p=m.applyCanBeUsed.nodebuffer),p)for(;1<c;)try{return m.stringifyByChunk(r,s,c)}catch{c=Math.floor(c/2)}return m.stringifyByChar(r)}function n(r,c){for(var s=0;s<r.length;s++)c[s]=r[s];return c}y.applyFromCharCode=_;var h={};h.string={string:g,array:function(r){return v(r,new Array(r.length))},arraybuffer:function(r){return h.string.uint8array(r).buffer},uint8array:function(r){return v(r,new Uint8Array(r.length))},nodebuffer:function(r){return v(r,i.allocBuffer(r.length))}},h.array={string:_,array:g,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return i.newBufferFrom(r)}},h.arraybuffer={string:function(r){return _(new Uint8Array(r))},array:function(r){return n(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:g,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return i.newBufferFrom(new Uint8Array(r))}},h.uint8array={string:_,array:function(r){return n(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:g,nodebuffer:function(r){return i.newBufferFrom(r)}},h.nodebuffer={string:_,array:function(r){return n(r,new Array(r.length))},arraybuffer:function(r){return h.nodebuffer.uint8array(r).buffer},uint8array:function(r){return n(r,new Uint8Array(r.length))},nodebuffer:g},y.transformTo=function(r,c){if(c=c||"",!r)return c;y.checkSupport(r);var s=y.getTypeOf(c);return h[s][r](c)},y.resolve=function(r){for(var c=r.split("/"),s=[],p=0;p<c.length;p++){var w=c[p];w==="."||w===""&&p!==0&&p!==c.length-1||(w===".."?s.pop():s.push(w))}return s.join("/")},y.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(r)?"nodebuffer":u.uint8array&&r instanceof Uint8Array?"uint8array":u.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},y.checkSupport=function(r){if(!u[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},y.MAX_VALUE_16BITS=65535,y.MAX_VALUE_32BITS=-1,y.pretty=function(r){var c,s,p="";for(s=0;s<(r||"").length;s++)p+="\\x"+((c=r.charCodeAt(s))<16?"0":"")+c.toString(16).toUpperCase();return p},y.delay=function(r,c,s){setImmediate(function(){r.apply(s||null,c||[])})},y.inherits=function(r,c){function s(){}s.prototype=c.prototype,r.prototype=new s},y.extend=function(){var r,c,s={};for(r=0;r<arguments.length;r++)for(c in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],c)&&s[c]===void 0&&(s[c]=arguments[r][c]);return s},y.prepareContent=function(r,c,s,p,w){return l.Promise.resolve(c).then(function(E){return u.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,F){var R=new FileReader;R.onload=function(L){x(L.target.result)},R.onerror=function(L){F(L.target.error)},R.readAsArrayBuffer(E)}):E}).then(function(E){var x=y.getTypeOf(E);return x?(x==="arraybuffer"?E=y.transformTo("uint8array",E):x==="string"&&(w?E=a.decode(E):s&&p!==!0&&(E=(function(F){return v(F,u.uint8array?new Uint8Array(F.length):new Array(F.length))})(E))),E):l.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(d,z,y){var u=d("./reader/readerFor"),a=d("./utils"),i=d("./signature"),l=d("./zipEntry"),g=d("./support");function v(m){this.files=[],this.loadOptions=m}v.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var _=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(_)+", expected "+a.pretty(m)+")")}},isSignature:function(m,_){var n=this.reader.index;this.reader.setIndex(m);var h=this.reader.readString(4)===_;return this.reader.setIndex(n),h},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var m=this.reader.readData(this.zipCommentLength),_=g.uint8array?"uint8array":"array",n=a.transformTo(_,m);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,_,n,h=this.zip64EndOfCentralSize-44;0<h;)m=this.reader.readInt(2),_=this.reader.readInt(4),n=this.reader.readData(_),this.zip64ExtensibleData[m]={id:m,length:_,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,_;for(m=0;m<this.files.length;m++)_=this.files[m],this.reader.setIndex(_.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),_.readLocalPart(this.reader),_.handleUTF8(),_.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(m=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
4ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(m);var _=m;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var h=_-n;if(0<h)this.isSignature(_,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(m){this.reader=u(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},z.exports=v},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(d,z,y){var u=d("./reader/readerFor"),a=d("./utils"),i=d("./compressedObject"),l=d("./crc32"),g=d("./utf8"),v=d("./compressions"),m=d("./support");function _(n,h){this.options=n,this.loadOptions=h}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(n){var h,r;if(n.skip(22),this.fileNameLength=n.readInt(2),r=n.readInt(2),this.fileName=n.readData(this.fileNameLength),n.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((h=(function(c){for(var s in v)if(Object.prototype.hasOwnProperty.call(v,s)&&v[s].magic===c)return v[s];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,h,n.readData(this.compressedSize))},readCentralPart:function(n){this.versionMadeBy=n.readInt(2),n.skip(2),this.bitFlag=n.readInt(2),this.compressionMethod=n.readString(2),this.date=n.readDate(),this.crc32=n.readInt(4),this.compressedSize=n.readInt(4),this.uncompressedSize=n.readInt(4);var h=n.readInt(2);if(this.extraFieldsLength=n.readInt(2),this.fileCommentLength=n.readInt(2),this.diskNumberStart=n.readInt(2),this.internalFileAttributes=n.readInt(2),this.externalFileAttributes=n.readInt(4),this.localHeaderOffset=n.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");n.skip(h),this.readExtraFields(n),this.parseZIP64ExtraField(n),this.fileComment=n.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var n=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),n==0&&(this.dosPermissions=63&this.externalFileAttributes),n==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var n=u(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=n.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=n.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&
vendor: 53,785 bytes, line 4
4(this.localHeaderOffset=n.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=n.readInt(4))}},readExtraFields:function(n){var h,r,c,s=n.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});n.index+4<s;)h=n.readInt(2),r=n.readInt(2),c=n.readData(r),this.extraFields[h]={id:h,length:r,value:c};n.setIndex(s)},handleUTF8:function(){var n=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var r=a.transformTo(n,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var c=this.findExtraFieldUnicodeComment();if(c!==null)this.fileCommentStr=c;else{var s=a.transformTo(n,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var n=this.extraFields[28789];if(n){var h=u(n.value);return h.readInt(1)!==1||l(this.fileName)!==h.readInt(4)?null:g.utf8decode(h.readData(n.length-5))}return null},findExtraFieldUnicodeComment:function(){var n=this.extraFields[25461];if(n){var h=u(n.value);return h.readInt(1)!==1||l(this.fileComment)!==h.readInt(4)?null:g.utf8decode(h.readData(n.length-5))}return null}},z.exports=_},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(d,z,y){function u(h,r,c){this.name=h,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=r,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}}var a=d("./stream/StreamHelper"),i=d("./stream/DataWorker"),l=d("./utf8"),g=d("./compressedObject"),v=d("./stream/GenericWorker");u.prototype={internalStream:function(h){var r=null,c="string";try{if(!h)throw new Error("No output type specified.");var s=(c=h.toLowerCase())==="string"||c==="text";c!=="binarystring"&&c!=="text"||(c="string"),r=this._decompressWorker();var p=!this._dataBinary;p&&!s&&(r=r.pipe(new l.Utf8EncodeWorker)),!p&&s&&(r=r.pipe(new l.Utf8DecodeWorker))}catch(w){(r=new v("error")).error(w)}return new a(r,c,"")},async:function(h,r){return this.internalStream(h).accumulate(r)},nodeStream:function(h,r){return this.internalStream(h||"nodebuffer").toNodejsStream(r)},_compressWorker:function(h,r){if(this._data instanceof g&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new l.Utf8EncodeWorker)),g.createWorkerFrom(c,h,r)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof v?this._data:new i(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},n=0;n<m.length;n++)u.prototype[m[n]]=_;z.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(d,z,y){(function(u){var a,i,l=u.MutationObserver||u.WebKitMutationObserver;if(l){var g=0,v=new l(h),m=u.document.createTextNode("");v.observe(m,{characterData:!0}),a=function(){m.data=g=++g%2}}else if(u.setImmediate||u.MessageChannel===void 0)a="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var r=u.document.createElement("script");r.onreadystatechange=function(){h(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},u.document.documentElement.appendChild(r)}:function(){setTimeout(h,0)};else{var _=new u.MessageChannel;_.port1.onmessage=h,a=function(){_.port2.postMessage(0)}}var n=[];function h(){var r,c;i=!0;for(var s=n.length;s;){for(c=n,n=[],r=-1;++r<s;)c[r]();s=n.length}i=!1}z.exports=function(r){n.push(r)!==1||i||a()}}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(d,z,y){var u=d("immediate");function a(){}var i={},l=["REJECTED"],g=["FULFILLED"],v=["PENDING"];function m(s){if(typeof s!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,s!==a&&r(this,s)}function _(s,p,w){this.promise=s,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function n(s,p,w){u(function(){var E;try{E=p(w)}catch(x){return i.reject(s,x)}E===s?i.reject(s,new TypeError("Cannot resolve promise with itself")):i.resolve(s,E)})}function h(s){var p=s&&s.then;if(s&&(typeof s=="object"||typeof s=="function")&&typeof p=="function")return function(){p.apply(s,arguments)}}function r(s,p){var w=!1;function E(R){w||(w=!0,i.reject(s,R))}function x(R){w||(w=!0,i.resolve(s,R))}var F=c(function(){p(x,E)});F.status==="error"&&E(F.value)}function c(s,p){var w={};try{w.value=s(p),w.status="success"}catch(E){w.status="error",w.value=E}return w}(z.exports=m).prototype.finally=function(s){if(typeof s!="function")return this;var p=this.constructor;return this.then(function(w){return p.resolve(s()).then(function(){return w})},function(w){return p.resolve(s()).then(function(){throw w})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,p){if(typeof s!="function"&&this.state===g||typeof p!="function"&&this.state===l)return this;var w=new this.constructor(a);return this.state!==v?n(w,this.state===g?s:p,this.outcome):this.queue.push(new _(w,s,p)),w},_.prototype.callFulfilled=function(s){i.resolve(this.promise,s)},_.prototype.otherCallFulfilled=function(s){n(this.promise,this.onFulfilled,s)},_.prototype.callRejected=function(s){i.reject(this.promise,s)},_.prototype.otherCallRejected=function(s){n(this.promise,this.onRejected,s)},i.resolve=function(s,p){var w=c(h,p);if(w.status==="error")return i.reject(s,w.value);var E=w.value;if(E)r(s,E);else{s.state=g,s.outcome=p;for(var x=-1,F=s.queue.length;++x<F;)s.queue[x].callFulfilled(p)}return s},i.reject=function(s,p){s.state=l,s.outcome=p;for(var w=-1,E=s.queue.length;++w<E;)s.queue[w].callRejected(p);return s},m.resolve=function(s){return s instanceof this?s:i.resolve(new this(a),s)},m.reject=function(s){var p=new this(a);return i.reject(p,s)},m.all=function(s){var p=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=s.length,E=!1;if(!w)return this.resolve([]);for(var x=new Array(w),F=0,R=-1,L=new this(a);++R<w;)O(s[R],R);return L;function O(Z,V){p.resolve(Z).then(function(b){x[V]=b,++F!==w||E||(E=!0,i.resolve(L,x))},function(b){E||(E=!0,i.reject(L,b))})}},m.race=function(s){var p=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=s.length,E=!1;if(!w)return this.resolve([]);for(var x=-1,F=new this(a);++x<w;)R=s[x],p.resolve(R).then(function(L){E||(E=!0,i.resolve(F,L))},function(L){E||(E=!0,i.reject(F,L))});var R;return F}},{immediate:36}],38:[function(d,z,y){var u={};(0,d("./lib/utils/common").assign)(u,d("./lib/deflate"),d("./lib/inflate"),d("./lib/zlib/constants")),z.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(d,z,y){var u=d("./zlib/deflate"),a=d("./utils/common"),i=d("./utils/strings"),l=d("./zlib/messages"),g=d("./zlib/zstream"),v=Object.prototype.toString,m=0,_=-1,n=0,h=8;function r(s){if(!(this instanceof r))return new r(s);this.options=a.assign({level:_,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:n,to:""},s||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var w=u.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(w!==m)throw new Error(l[w]);if(p.header&&u.deflateSetHeader(this.strm,p.header),p.dictionary){var E;if(E=typeof p.dictionary=="string"?i.string2buf(p.dictionary):v.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(w=u.deflateSetDictionary(this.strm,E))!==m)throw new Error(l[w]);this._dict_set=!0}}function c(s,p){var w=new r(p);if(w.push(s,!0),w.err)throw w.msg||l[w.err];return w.result}r.prototype.push=function(s,p){var w,E,x=this.strm,F=this.options.chunkSize;if(this.ended)return!1;E=p===~~p?p:p===!0?4:0,typeof s=="string"?x.input=i.string2buf(s):v.call(s)==="[object ArrayBuffer]"?x.input=new Uint8Array(s):x.input=s,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new a.Buf8(F),x.next_out=0,x.avail_out=F),(w=u.deflate(x,E))!==1&&w!==m)return this.onEnd(w),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(a.shrinkBuf(x.output,x.next_out))):this.onData(a.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&w!==1);return E===4?(w=u.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===m):E!==2||(this.onEnd(m),!(x.avail_out=0))},r.prototype.onData=function(s){this.chunks.push(s)},r.prototype.onEnd=function(s){s===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},y.Deflate=r,y.deflate=c,y.deflateRaw=function(s,p){return(p=p||{}).raw=!0,c(s,p)},y.gzip=function(s,p){return(p=p||{}).gzip=!0,c(s,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(d,z,y){var u=d("./zlib/inflate"),a=d("./utils/common"),i=d("./utils/strings"),l=d("./zlib/constants"),g=d("./zlib/messages"),v=d("./zlib/zstream"),m=d("./zlib/gzheader"),_=Object.prototype.toString;function n(r){if(!(this instanceof n))return new n(r);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},r||{});var c=this.options;c.raw&&0<=c.windowBits&&c.windowBits<16&&(c.windowBits=-c.windowBits,c.windowBits===0&&(c.windowBits=-15)),!(0<=c.windowBits&&c.windowBits<16)||r&&r.windowBits||(c.windowBits+=32),15<c.windowBits&&c.windowBits<48&&(15&c.windowBits)==0&&(c.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var s=u.inflateInit2(this.strm,c.windowBits);if(s!==l.Z_OK)throw new Error(g[s]);this.header=new m,u.inflateGetHeader(this.strm,this.header)}function h(r,c){var s=new n(c);if(s.push(r,!0),s.err)throw s.msg||g[s.err];return s.result}n.prototype.push=function(r,c){var s,p,w,E,x,F,R=this.strm,L=this.options.chunkSize,O=this.options.dictionary,Z=!1;if(this.ended)return!1;p=c===~~c?c:c===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof r=="string"?R.input=i.binstring2buf(r):_.call(r)==="[object ArrayBuffer]"?R.input=new Uint8Array(r):R.input=r,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new a.Buf8(L),R.next_out=0,R.avail_out=L),(s=u.inflate(R,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&O&&(F=typeof O=="string"?i.string2buf(O):_.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,s=u.inflateSetDictionary(this.strm,F)),s===l.Z_BUF_ERROR&&Z===!0&&(s=l.Z_OK,Z=!1),s!==l.Z_STREAM_END&&s!==l.Z_OK)return this.onEnd(s),!(this.ended=!0);R.next_out&&(R.avail_out!==0&&s!==l.Z_STREAM_END&&(R.avail_in!==0||p!==l.Z_FINISH&&p!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=i.utf8border(R.output,R.next_out),E=R.next_out-w,x=i.buf2string(R.output,w),R.next_out=E,R.avail_out=L-E,E&&a.arraySet(R.output,R.output,w,E,0),this.onData(x)):this.onData(a.shrinkBuf(R.output,R.next_out)))),R.avail_in===0&&R.avail_out===0&&(Z=!0)}while((0<R.avail_in||R.avail_out===0)&&s!==l.Z_STREAM_END);return s===l.Z_STREAM_END&&(p=l.Z_FINISH),p===l.Z_FINISH?(s=u.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===l.Z_OK):p!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(R.avail_out=0))},n.prototype.onData=function(r){this.chunks.push(r)},n.prototype.onEnd=function(r){r===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},y.Inflate=n,y.inflate=h,y.inflateRaw=function(r,c){return(c=c||{}).raw=!0,h(r,c)},y.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(d,z,y){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";y.assign=function(l){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var v=g.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var m in v)v.hasOwnProperty(m)&&(l[m]=v[m])}}return l},y.shrinkBuf=function(l,g){return l.length===g?l:l.subarray?l.subarray(0,g):(l.length=g,l)};var a={arraySet:function(l,g,v,m,_){if(g.subarray&&l.subarray)l.set(g.subarray(v,v+m),_);else for(var n=0;n<m;n++)l[_+n]=g[v+n]},flattenChunks:function(l){var g,v,m,_,n,h;for(g=m=0,v=l.length;g<v;g++)m+=l[g].length;for(h=new Uint8Array(m),g=_=0,v=l.length;g<v;g++)n=l[g],h.set(n,_),_+=n.length;return h}},i={arraySet:function(l,g,v,m,_){for(var n=0;n<m;n++)l[_+n]=g[v+n]},flattenChunks:function(l){return[].concat.apply([],l)}};y.setTyped=function(l){l?(y.Buf8=Uint8Array,y.Buf16=Uint16Array,y.Buf32=Int32Array,y.assign(y,a)):(y.Buf8=Array,y.Buf16=Array,y.Buf32=Array,y.assign(y,i))},y.setTyped(u)},{}],42:[function(d,z,y){var u=d("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}for(var l=new u.Buf8(256),g=0;g<256;g++)l[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function v(m,_){if(_<65537&&(m.subarray&&i||!m.subarray&&a))return String.fromCharCode.apply(null,u.shrinkBuf(m,_));for(var n="",h=0;h<_;h++)n+=String.fromCharCode(m[h]);return n}l[254]=l[254]=1,y.string2buf=function(m){var _,n,h,r,c,s=m.length,p=0;for(r=0;r<s;r++)(64512&(n=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(h=m.charCodeAt(r+1)))==56320&&(n=65536+(n-55296<<10)+(h-56320),r++),p+=n<128?1:n<2048?2:n<65536?3:4;for(_=new u.Buf8(p),r=c=0;c<p;r++)(64512&(n=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(h=m.charCodeAt(r+1)))==56320&&(n=65536+(n-55296<<10)+(h-56320),r++),n<128?_[c++]=n:(n<2048?_[c++]=192|n>>>6:(n<65536?_[c++]=224|n>>>12:(_[c++]=240|n>>>18,_[c++]=128|n>>>12&63),_[c++]=128|n>>>6&63),_[c++]=128|63&n);return _},y.buf2binstring=function(m){return v(m,m.length)},y.binstring2buf=function(m){for(var _=new u.Buf8(m.length),n=0,h=_.length;n<h;n++)_[n]=m.charCodeAt(n);return _},y.buf2string=function(m,_){var n,h,r,c,s=_||m.length,p=new Array(2*s);for(n=h=0;n<s;)if((r=m[n++])<128)p[h++]=r;else if(4<(c=l[r]))p[h++]=65533,n+=c-1;else{for(r&=c===2?31:c===3?15:7;1<c&&n<s;)r=r<<6|63&m[n++],c--;1<c?p[h++]=65533:r<65536?p[h++]=r:(r-=65536,p[h++]=55296|r>>10&1023,p[h++]=56320|1023&r)}return v(p,h)},y.utf8border=function(m,_){var n;for((_=_||m.length)>m.length&&(_=m.length),n=_-1;0<=n&&(192&m[n])==128;)n--;return n<0||n===0?_:n+l[m[n]]>_?n:_}},{"./common":41}],43:[function(d,z,y){z.exports=function(u,a,i,l){for(var g=65535&u|0,v=u>>>16&65535|0,m=0;i!==0;){for(i-=m=2e3<i?2e3:i;v=v+(g=g+a[l++]|0)|0,--m;);g%=65521,v%=65521}return g|v<<16|0}},{}],44:[function(d,z,y){z.exports={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_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}},{}],45:[function(d,z,y){var u=(function(){for(var a,i=[],l=0;l<256;l++){a=l;for(var g=0;g<8;g++)a=1&a?3988292384^a>>>1:a>>>1;i[l]=a}return i})();z.exports=function(a,i,l,g){var v=u,m=g+l;a^=-1;for(var _=g;_<m;_++)a=a>>>8^v[255&(a^i[_])];return-1^a}},{}],46:[function(d,z,y){var u,a=d("../utils/common"),i=d("./trees"),l=d("./adler32"),g=d("./crc32"),v=d("./messages"),m=0,_=4,n=0,h=-2,r=-1,c=4,s=2,p=8,w=9,E=286,x=30,F=19,R=2*E+1,L=15,O=3,Z=258,V=Z+O+1,b=42,B=113,e=1,D=2,J=3,P=4;function et(t,T){return t.msg=v[T],T}function j(t){return(t<<1)-(4<t?9:0)}function X(t){for(var T=t.length;0<=--T;)t[T]=0}function A(t){var T=t.state,I=T.pending;I>t.avail_out&&(I=t.avail_out),I!==0&&(a.arraySet(t.output,T.pending_buf,T.pending_out,I,t.next_out),t.next_out+=I,T.pending_out+=I,t.total_out+=I,t.avail_out-=I,T.pending-=I,T.pending===0&&(T.pending_out=0))}function C(t,T){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,T),t.block_start=t.strstart,A(t.strm)}function Q(t,T){t.pending_buf[t.pending++]=T}function q(t,T){t.pending_buf[t.pending++]=T>>>8&255,t.pending_buf[t.pending++]=255&T}function G(t,T){var I,f,o=t.max_chain_length,k=t.strstart,N=t.prev_length,U=t.nice_match,S=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,W=t.window,K=t.w_mask,M=t.prev,Y=t.strstart+Z,at=W[k+N-1],nt=W[k+N];t.prev_length>=t.good_match&&(o>>=2),U>t.lookahead&&(U=t.lookahead);do if(W[(I=T)+N]===nt&&W[I+N-1]===at&&W[I]===W[k]&&W[++I]===W[k+1]){k+=2,I++;do;while(W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&W[++k]===W[++I]&&k<Y);if(f=Z-(Y-k),k=Y-Z,N<f){if(t.match_start=T,U<=(N=f))break;at=W[k+N-1],nt=W[k+N]}}while((T=M[T&K])>S&&--o!=0);return N<=t.lookahead?N:t.lookahead}function st(t){var T,I,f,o,k,N,U,S,W,K,M=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=M+(M-V)){for(a.arraySet(t.window,t.window,M,M,0),t.match_start-=M,t.strstart-=M,t.block_start-=M,T=I=t.hash_size;f=t.head[--T],t.head[T]=M<=f?f-M:0,--I;);for(T=I=M;f=t.prev[--T],t.prev[T]=M<=f?f-M:0,--I;);o+=M}if(t.strm.avail_in===0)break;if(N=t.strm,U=t.window,S=t.strstart+t.lookahead,W=o,K=void 0,K=N.avail_in,W<K&&(K=W),I=K===0?0:(N.avail_in-=K,a.arraySet(U,N.input,N.next_in,K,S),N.state.wrap===1?N.adler=l(N.adler,U,K,S):N.state.wrap===2&&(N.adler=g(N.adler,U,K,S)),N.next_in+=K,N.total_in+=K,K),t.lookahead+=I,t.lookahead+t.insert>=O)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+O-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<O)););}while(t.lookahead<V&&t.strm.avail_in!==0)}function ct(t,T){for(var I,f;;){if(t.lookahead<V){if(st(t),t.lookahead<V&&T===m)return e;if(t.lookahead===0)break}if(I=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),I!==0&&t.strstart-I<=t.w_size-V&&(t.match_length=G(t,I)),t.match_length>=O)if(f=i._tr_tally(t,t.strstart-t.match_start,t.match_length-O),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=O){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<O-1?t.strstart:O-1,T===_?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:D}function rt(t,T){for(var I,f,o;;){if(t.lookahead<V){if(st(t),t.lookahead<V&&T===m)return e;if(t.lookahead===0)break}if(I=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,I=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=O-1,I!==0&&t.prev_length<t.max_lazy_match&&t.strstart-I<=t.w_size-V&&(t.match_length=G(t,I),t.match_length<=5&&(t.strategy===1||t.match_length===O&&4096<t.strstart-t.match_start)&&(t.match_length=O-1)),t.prev_length>=O&&t.match_length<=t.prev_length){for(o=t.strstart+t.lookahead-O,f=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-O),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=O-1,t.strstart++,f&&(C(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=i._tr_tally(t,0,t.window[t.strstart-1]))&&C(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<O-1?t.strstart:O-1,T===_?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:D}function it(t,T,I,f,o){this.good_length=t,this.max_lazy=T,this.nice_length=I,this.max_chain=f,this.func=o}function ut(){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=p,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 a.Buf16(2*R),this.dyn_dtree=new a.Buf16(2*(2*x+1)),this.bl_tree=new a.Buf16(2*(2*F+1)),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(L+1),this.heap=new a.Buf16(2*E+1),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*E+1),X(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ot(t){var T;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=s,(T=t.state).pending=0,T.pending_out=0,T.wrap<0&&(T.wrap=-T.wrap),T.status=T.wrap?b:B,t.adler=T.wrap===2?0:1,T.last_flush=m,i._tr_init(T),n):et(t,h)}function dt(t){var T=ot(t);return T===n&&(function(I){I.window_size=2*I.w_size,X(I.head),I.max_lazy_match=u[I.level].max_lazy,I.good_match=u[I.level].good_length,I.nice_match=u[I.level].nice_length,I.max_chain_length=u[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=O-1,I.match_available=0,I.ins_h=0})(t.state),T}function ft(t,T,I,f,o,k){if(!t)return h;var N=1;if(T===r&&(T=6),f<0?(N=0,f=-f):15<f&&(N=2,f-=16),o<1||w<o||I!==p||f<8||15<f||T<0||9<T||k<0||c<k)return et(t,h);f===8&&(f=9);var U=new ut;return(t.state=U).strm=t,U.wrap=N,U.gzhead=null,U.w_bits=f,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=o+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+O-1)/O),U.window=new a.Buf8(2*U.w_size),U.head=new a.Buf16(U.hash_size),U.prev=new a.Buf16(U.w_size),U.lit_bufsize=1<<o+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new a.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=T,U.strategy=k,U.method=I,dt(t)}u=[new it(0,0,0,0,function(t,T){var I=65535;for(I>t.pending_buf_size-5&&(I=t.pending_buf_size-5);;){if(t.lookahead<=1){if(st(t),t.lookahead===0&&T===m)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+I;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-V&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=0,T===_?(C(t,!0),t.strm.avail_out===0?J:P):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),e)}),new it(4,4,8,4,ct),new it(4,5,16,8,ct),new it(4,6,32,32,ct),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)],y.deflateInit=function(t,T){return ft(t,T,p,15,8,0)},y.deflateInit2=ft,y.deflateReset=dt,y.deflateResetKeep=ot,y.deflateSetHeader=function(t,T){return t&&t.state?t.state.wrap!==2?h:(t.state.gzhead=T,n):h},y.deflate=function(t,T){var I,f,o,k;if(!t||!t.state||5<T||T<0)return t?et(t,h):h;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&T!==_)return et(t,t.avail_out===0?-5:h);if(f.strm=t,I=f.last_flush,f.last_flush=T,f.status===b)if(f.wrap===2)t.adler=0,Q(f,31),Q(f,139),Q(f,8),f.gzhead?(Q(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),Q(f,255&f.gzhead.time),Q(f,f.gzhead.time>>8&255),Q(f,f.gzhead.time>>16&255),Q(f,f.gzhead.time>>24&255),Q(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),Q(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(Q(f,255&f.gzhead.extra.length),Q(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=g(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(Q(f,0),Q(f,0),Q(f,0),Q(f,0),Q(f,0),Q(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),Q(f,3),f.status=B);else{var N=p+(f.w_bits-8<<4)<<8;N|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(N|=32),N+=31-N%31,f.status=B,q(f,N),f.strstart!==0&&(q(f,t.adler>>>16),q(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(o=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),A(t),o=f.pending,f.pending!==f.pending_buf_size));)Q(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){o=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),A(t),o=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,Q(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){o=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),A(t),o=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,Q(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>o&&(t.adler=g(t.adler,f.pending_buf,f.pending-o,o)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&A(t),f.pending+2<=f.pending_buf_size&&(Q(f,255&t.adler),Q(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(A(t),t.avail_out===0)return f.last_flush=-1,n}else if(t.avail_in===0&&j(T)<=j(I)&&T!==_)return et(t,-5);if(f.status===666&&t.avail_in!==0)return et(t,-5);if(t.avail_in!==0||f.lookahead!==0||T!==m&&f.status!==666){var U=f.strategy===2?(function(S,W){for(var K;;){if(S.lookahead===0&&(st(S),S.lookahead===0)){if(W===m)return e;break}if(S.match_length=0,K=i._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++,K&&(C(S,!1),S.strm.avail_out===0))return e}return S.insert=0,W===_?(C(S,!0),S.strm.avail_out===0?J:P):S.last_lit&&(C(S,!1),S.strm.avail_out===0)?e:D})(f,T):f.strategy===3?(function(S,W){for(var K,M,Y,at,nt=S.window;;){if(S.lookahead<=Z){if(st(S),S.lookahead<=Z&&W===m)return e;if(S.lookahead===0)break}if(S.match_length=0,S.lookahead>=O&&0<S.strstart&&(M=nt[Y=S.strstart-1])===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]){at=S.strstart+Z;do;while(M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&M===nt[++Y]&&Y<at);S.match_length=Z-(at-Y),S.match_length>S.lookahead&&(S.match_length=S.lookahead)}if(S.match_length>=O?(K=i._tr_tally(S,1,S.match_length-O),S.lookahead-=S.match_length,S.strstart+=S.match_length,S.match_length=0):(K=i._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++),K&&(C(S,!1),S.strm.avail_out===0))return e}return S.insert=0,W===_?(C(S,!0),S.strm.avail_out===0?J:P):S.last_lit&&(C(S,!1),S.strm.avail_out===0)?e:D})(f,T):u[f.level].func(f,T);if(U!==J&&U!==P||(f.status=666),U===e||U===J)return t.avail_out===0&&(f.last_flush=-1),n;if(U===D&&(T===1?i._tr_align(f):T!==5&&(i._tr_stored_block(f,0,0,!1),T===3&&(X(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),A(t),t.avail_out===0))return f.last_flush=-1,n}return T!==_?n:f.wrap<=0?1:(f.wrap===2?(Q(f,255&t.adler),Q(f,t.adler>>8&255),Q(f,t.adler>>16&255),Q(f,t.adler>>24&255),Q(f,255&t.total_in),Q(f,t.total_in>>8&255),Q(f,t.total_in>>16&255),Q(f,t.total_in>>24&255)):(q(f,t.adler>>>16),q(f,65535&t.adler)),A(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?n:1)},y.deflateEnd=function(t){var T;return t&&t.state?(T=t.state.status)!==b&&T!==69&&T!==73&&T!==91&&T!==103&&T!==B&&T!==666?et(t,h):(t.state=null,T===B?et(t,-3):n):h},y.deflateSetDictionary=function(t,T){var I,f,o,k,N,U,S,W,K=T.length;if(!t||!t.state||(k=(I=t.state).wrap)===2||k===1&&I.status!==b||I.lookahead)return h;for(k===1&&(t.adler=l(t.adler,T,K,0)),I.wrap=0,K>=I.w_size&&(k===0&&(X(I.head),I.strstart=0,I.block_start=0,I.insert=0),W=new a.Buf8(I.w_size),a.arraySet(W,T,K-I.w_size,I.w_size,0),T=W,K=I.w_size),N=t.avail_in,U=t.next_in,S=t.input,t.avail_in=K,t.next_in=0,t.input=T,st(I);I.lookahead>=O;){for(f=I.strstart,o=I.lookahead-(O-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[f+O-1])&I.hash_mask,I.prev[f&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=f,f++,--o;);I.strstart=f,I.lookahead=O-1,st(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=O-1,I.match_available=0,t.next_in=U,t.input=S,t.avail_in=N,I.wrap=k,n},y.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(d,z,y){z.exports=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}},{}],48:[function(d,z,y){z.exports=function(u,a){var i,l,g,v,m,_,n,h,r,c,s,p,w,E,x,F,R,L,O,Z,V,b,B,e,D;i=u.state,l=u.next_in,e=u.input,g=l+(u.avail_in-5),v=u.next_out,D=u.output,m=v-(a-u.avail_out),_=v+(u.avail_out-257),n=i.dmax,h=i.wsize,r=i.whave,c=i.wnext,s=i.window,p=i.hold,w=i.bits,E=i.lencode,x=i.distcode,F=(1<<i.lenbits)-1,R=(1<<i.distbits)-1;t:do{w<15&&(p+=e[l++]<<w,w+=8,p+=e[l++]<<w,w+=8),L=E[p&F];e:for(;;){if(p>>>=O=L>>>24,w-=O,(O=L>>>16&255)===0)D[v++]=65535&L;else{if(!(16&O)){if((64&O)==0){L=E[(65535&L)+(p&(1<<O)-1)];continue e}if(32&O){i.mode=12;break t}u.msg="invalid literal/length code",i.mode=30;break t}Z=65535&L,(O&=15)&&(w<O&&(p+=e[l++]<<w,w+=8),Z+=p&(1<<O)-1,p>>>=O,w-=O),w<15&&(p+=e[l++]<<w,w+=8,p+=e[l++]<<w,w+=8),L=x[p&R];r:for(;;){if(p>>>=O=L>>>24,w-=O,!(16&(O=L>>>16&255))){if((64&O)==0){L=x[(65535&L)+(p&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break t}if(V=65535&L,w<(O&=15)&&(p+=e[l++]<<w,(w+=8)<O&&(p+=e[l++]<<w,w+=8)),n<(V+=p&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break t}if(p>>>=O,w-=O,(O=v-m)<V){if(r<(O=V-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break t}if(B=s,(b=0)===c){if(b+=h-O,O<Z){for(Z-=O;D[v++]=s[b++],--O;);b=v-V,B=D}}else if(c<O){if(b+=h+c-O,(O-=c)<Z){for(Z-=O;D[v++]=s[b++],--O;);if(b=0,c<Z){for(Z-=O=c;D[v++]=s[b++],--O;);b=v-V,B=D}}}else if(b+=c-O,O<Z){for(Z-=O;D[v++]=s[b++],--O;);b=v-V,B=D}for(;2<Z;)D[v++]=B[b++],D[v++]=B[b++],D[v++]=B[b++],Z-=3;Z&&(D[v++]=B[b++],1<Z&&(D[v++]=B[b++]))}else{for(b=v-V;D[v++]=D[b++],D[v++]=D[b++],D[v++]=D[b++],2<(Z-=3););Z&&(D[v++]=D[b++],1<Z&&(D[v++]=D[b++]))}break}}break}}while(l<g&&v<_);l-=Z=w>>3,p&=(1<<(w-=Z<<3))-1,u.next_in=l,u.next_out=v,u.avail_in=l<g?g-l+5:5-(l-g),u.avail_out=v<_?_-v+257:257-(v-_),i.hold=p,i.bits=w}},{}],49:[function(d,z,y){var u=d("../utils/common"),a=d("./adler32"),i=d("./crc32"),l=d("./inffast"),g=d("./inftrees"),v=1,m=2,_=0,n=-2,h=1,r=852,c=592;function s(b){return(b>>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function p(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(b){var B;return b&&b.state?(B=b.state,b.total_in=b.total_out=B.total=0,b.msg="",B.wrap&&(b.adler=1&B.wrap),B.mode=h,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new u.Buf32(r),B.distcode=B.distdyn=new u.Buf32(c),B.sane=1,B.back=-1,_):n}function E(b){var B;return b&&b.state?((B=b.state).wsize=0,B.whave=0,B.wnext=0,w(b)):n}function x(b,B){var e,D;return b&&b.state?(D=b.state,B<0?(e=0,B=-B):(e=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?n:(D.window!==null&&D.wbits!==B&&(D.window=null),D.wrap=e,D.wbits=B,E(b))):n}function F(b,B){var e,D;return b?(D=new p,(b.state=D).window=null,(e=x(b,B))!==_&&(b.state=null),e):n}var R,L,O=!0;function Z(b){if(O){var B;for(R=new u.Buf32(512),L=new u.Buf32(32),B=0;B<144;)b.lens[B++]=8;for(;B<256;)b.lens[B++]=9;for(;B<280;)b.lens[B++]=7;for(;B<288;)b.lens[B++]=8;for(g(v,b.lens,0,288,R,0,b.work,{bits:9}),B=0;B<32;)b.lens[B++]=5;g(m,b.lens,0,32,L,0,b.work,{bits:5}),O=!1}b.lencode=R,b.lenbits=9,b.distcode=L,b.distbits=5}function V(b,B,e,D){var J,P=b.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new u.Buf8(P.wsize)),D>=P.wsize?(u.arraySet(P.window,B,e-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(D<(J=P.wsize-P.wnext)&&(J=D),u.arraySet(P.window,B,e-D,J,P.wnext),(D-=J)?(u.arraySet(P.window,B,e-D,D,0),P.wnext=D,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=J))),0}y.inflateReset=E,y.inflateReset2=x,y.inflateResetKeep=w,y.inflateInit=function(b){return F(b,15)},y.inflateInit2=F,y.inflate=function(b,B){var e,D,J,P,et,j,X,A,C,Q,q,G,st,ct,rt,it,ut,ot,dt,ft,t,T,I,f,o=0,k=new u.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!b||!b.state||!b.output||!b.input&&b.avail_in!==0)return n;(e=b.state).mode===12&&(e.mode=13),et=b.next_out,J=b.output,X=b.avail_out,P=b.next_in,D=b.input,j=b.avail_in,A=e.hold,C=e.bits,Q=j,q=X,T=_;t:for(;;)switch(e.mode){case h:if(e.wrap===0){e.mode=13;break}for(;C<16;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(2&e.wrap&&A===35615){k[e.check=0]=255&A,k[1]=A>>>8&255,e.check=i(e.check,k,2,0),C=A=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&A)<<8)+(A>>8))%31){b.msg="incorrect header check",e.mode=30;break}if((15&A)!=8){b.msg="unknown compression method",e.mode=30;break}if(C-=4,t=8+(15&(A>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){b.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,b.adler=e.check=1,e.mode=512&A?10:12,C=A=0;break;case 2:for(;C<16;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(e.flags=A,(255&e.flags)!=8){b.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){b.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=A>>8&1),512&e.flags&&(k[0]=255&A,k[1]=A>>>8&255,e.check=i(e.check,k,2,0)),C=A=0,e.mode=3;case 3:for(;C<32;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.head&&(e.head.time=A),512&e.flags&&(k[0]=255&A,k[1]=A>>>8&255,k[2]=A>>>16&255,k[3]=A>>>24&255,e.check=i(e.check,k,4,0)),C=A=0,e.mode=4;case 4:for(;C<16;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.head&&(e.head.xflags=255&A,e.head.os=A>>8),512&e.flags&&(k[0]=255&A,k[1]=A>>>8&255,e.check=i(e.check,k,2,0)),C=A=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.length=A,e.head&&(e.head.extra_len=A),512&e.flags&&(k[0]=255&A,k[1]=A>>>8&255,e.check=i(e.check,k,2,0)),C=A=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(j<(G=e.length)&&(G=j),G&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),u.arraySet(e.head.extra,D,P,G,t)),512&e.flags&&(e.check=i(e.check,D,G,P)),j-=G,P+=G,e.length-=G),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(j===0)break t;for(G=0;t=D[P+G++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&G<j;);if(512&e.flags&&(e.check=i(e.check,D,G,P)),j-=G,P+=G,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(j===0)break t;for(G=0;t=D[P+G++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&G<j;);if(512&e.flags&&(e.check=i(e.check,D,G,P)),j-=G,P+=G,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;C<16;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(A!==(65535&e.check)){b.msg="header crc mismatch",e.mode=30;break}C=A=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),b.adler=e.check=0,e.mode=12;break;case 10:for(;C<32;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}b.adler=e.check=s(A),C=A=0,e.mode=11;case 11:if(e.havedict===0)return b.next_out=et,b.avail_out=X,b.next_in=P,b.avail_in=j,e.hold=A,e.bits=C,2;b.adler=e.check=1,e.mode=12;case 12:if(B===5||B===6)break t;case 13:if(e.last){A>>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}switch(e.last=1&A,C-=1,3&(A>>>=1)){case 0:e.mode=14;break;case 1:if(Z(e),e.mode=20,B!==6)break;A>>>=2,C-=2;break t;case 2:e.mode=17;break;case 3:b.msg="invalid block type",e.mode=30}A>>>=2,C-=2;break;case 14:for(A>>>=7&C,C-=7&C;C<32;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if((65535&A)!=(A>>>16^65535)){b.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&A,C=A=0,e.mode=15,B===6)break t;case 15:e.mode=16;case 16:if(G=e.length){if(j<G&&(G=j),X<G&&(G=X),G===0)break t;u.arraySet(J,D,P,G,et),j-=G,P+=G,X-=G,et+=G,e.length-=G;break}e.mode=12;break;case 17:for(;C<14;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(e.nlen=257+(31&A),A>>>=5,C-=5,e.ndist=1+(31&A),A>>>=5,C-=5,e.ncode=4+(15&A),A>>>=4,C-=4,286<e.nlen||30<e.ndist){b.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;C<3;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.lens[N[e.have++]]=7&A,A>>>=3,C-=3}for(;e.have<19;)e.lens[N[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,I={bits:e.lenbits},T=g(0,e.lens,0,19,e.lencode,0,e.work,I),e.lenbits=I.bits,T){b.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;it=(o=e.lencode[A&(1<<e.lenbits)-1])>>>16&255,ut=65535&o,!((rt=o>>>24)<=C);){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(ut<16)A>>>=rt,C-=rt,e.lens[e.have++]=ut;else{if(ut===16){for(f=rt+2;C<f;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(A>>>=rt,C-=rt,e.have===0){b.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],G=3+(3&A),A>>>=2,C-=2}else if(ut===17){for(f=rt+3;C<f;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}C-=rt,t=0,G=3+(7&(A>>>=rt)),A>>>=3,C-=3}else{for(f=rt+7;C<f;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}C-=rt,t=0,G=11+(127&(A>>>=rt)),A>>>=7,C-=7}if(e.have+G>e.nlen+e.ndist){b.msg="invalid bit length repeat",e.mode=30;break}for(;G--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){b.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,I={bits:e.lenbits},T=g(v,e.lens,0,e.nlen,e.lencode,0,e.work,I),e.lenbits=I.bits,T){b.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,I={bits:e.distbits},T=g(m,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,I),e.distbits=I.bits,T){b.msg="invalid distances set",e.mode=30;break}if(e.mode=20,B===6)break t;case 20:e.mode=21;case 21:if(6<=j&&258<=X){b.next_out=et,b.avail_out=X,b.next_in=P,b.avail_in=j,e.hold=A,e.bits=C,l(b,q),et=b.next_out,J=b.output,X=b.avail_out,P=b.next_in,D=b.input,j=b.avail_in,A=e.hold,C=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;it=(o=e.lencode[A&(1<<e.lenbits)-1])>>>16&255,ut=65535&o,!((rt=o>>>24)<=C);){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(it&&(240&it)==0){for(ot=rt,dt=it,ft=ut;it=(o=e.lencode[ft+((A&(1<<ot+dt)-1)>>ot)])>>>16&255,ut=65535&o,!(ot+(rt=o>>>24)<=C);){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}A>>>=ot,C-=ot,e.back+=ot}if(A>>>=rt,C-=rt,e.back+=rt,e.length=ut,it===0){e.mode=26;break}if(32&it){e.back=-1,e.mode=12;break}if(64&it){b.msg="invalid literal/length code",e.mode=30;break}e.extra=15&it,e.mode=22;case 22:if(e.extra){for(f=e.extra;C<f;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.length+=A&(1<<e.extra)-1,A>>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;it=(o=e.distcode[A&(1<<e.distbits)-1])>>>16&255,ut=65535&o,!((rt=o>>>24)<=C);){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if((240&it)==0){for(ot=rt,dt=it,ft=ut;it=(o=e.distcode[ft+((A&(1<<ot+dt)-1)>>ot)])>>>16&255,ut=65535&o,!(ot+(rt=o>>>24)<=C);){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}A>>>=ot,C-=ot,e.back+=ot}if(A>>>=rt,C-=rt,e.back+=rt,64&it){b.msg="invalid distance code",e.mode=30;break}e.offset=ut,e.extra=15&it,e.mode=24;case 24:if(e.extra){for(f=e.extra;C<f;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}e.offset+=A&(1<<e.extra)-1,A>>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){b.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(X===0)break t;if(G=q-X,e.offset>G){if((G=e.offset-G)>e.whave&&e.sane){b.msg="invalid distance too far back",e.mode=30;break}st=G>e.wnext?(G-=e.wnext,e.wsize-G):e.wnext-G,G>e.length&&(G=e.length),ct=e.window}else ct=J,st=et-e.offset,G=e.length;for(X<G&&(G=X),X-=G,e.length-=G;J[et++]=ct[st++],--G;);e.length===0&&(e.mode=21);break;case 26:if(X===0)break t;J[et++]=e.length,X--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(j===0)break t;j--,A|=D[P++]<<C,C+=8}if(q-=X,b.total_out+=q,e.total+=q,q&&(b.adler=e.check=e.flags?i(e.check,J,q,et-q):a(e.check,J,q,et-q)),q=X,(e.flags?A:s(A))!==e.check){b.msg="incorrect data check",e.mode=30;break}C=A=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;C<32;){if(j===0)break t;j--,A+=D[P++]<<C,C+=8}if(A!==(4294967295&e.total)){b.msg="incorrect length check",e.mode=30;break}C=A=0}e.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;default:return n}return b.next_out=et,b.avail_out=X,b.next_in=P,b.avail_in=j,e.hold=A,e.bits=C,(e.wsize||q!==b.avail_out&&e.mode<30&&(e.mode<27||B!==4))&&V(b,b.output,b.next_out,q-b.avail_out)?(e.mode=31,-4):(Q-=b.avail_in,q-=b.avail_out,b.total_in+=Q,b.total_out+=q,e.total+=q,e.wrap&&q&&(b.adler=e.check=e.flags?i(e.check,J,q,b.next_out-q):a(e.check,J,q,b.next_out-q)),b.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(Q==0&&q===0||B===4)&&T===_&&(T=-5),T)},y.inflateEnd=function(b){if(!b||!b.state)return n;var B=b.state;return B.window&&(B.window=null),b.state=null,_},y.inflateGetHeader=function(b,B){var e;return b&&b.state?(2&(e=b.state).wrap)==0?n:((e.head=B).done=!1,_):n},y.inflateSetDictionary=function(b,B){var e,D=B.length;return b&&b.state?(e=b.state).wrap!==0&&e.mode!==11?n:e.mode===11&&a(1,B,D,0)!==e.check?-3:V(b,B,D,D)?(e.mode=31,-4):(e.havedict=1,_):n},y.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(d,z,y){var u=d("../utils/common"),a=[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],i=[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],l=[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],g=[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];z.exports=function(v,m,_,n,h,r,c,s){var p,w,E,x,F,R,L,O,Z,V=s.bits,b=0,B=0,e=0,D=0,J=0,P=0,et=0,j=0,X=0,A=0,C=null,Q=0,q=new u.Buf16(16),G=new u.Buf16(16),st=null,ct=0;for(b=0;b<=15;b++)q[b]=0;for(B=0;B<n;B++)q[m[_+B]]++;for(J=V,D=15;1<=D&&q[D]===0;D--);if(D<J&&(J=D),D===0)return h[r++]=20971520,h[r++]=20971520,s.bits=1,0;for(e=1;e<D&&q[e]===0;e++);for(J<e&&(J=e),b=j=1;b<=15;b++)if(j<<=1,(j-=q[b])<0)return-1;if(0<j&&(v===0||D!==1))return-1;for(G[1]=0,b=1;b<15;b++)G[b+1]=G[b]+q[b];for(B=0;B<n;B++)m[_+B]!==0&&(c[G[m[_+B]]++]=B);if(R=v===0?(C=st=c,19):v===1?(C=a,Q-=257,st=i,ct-=257,256):(C=l,st=g,-1),b=e,F=r,et=B=A=0,E=-1,x=(X=1<<(P=J))-1,v===1&&852<X||v===2&&592<X)return 1;for(;;){for(L=b-et,Z=c[B]<R?(O=0,c[B]):c[B]>R?(O=st[ct+c[B]],C[Q+c[B]]):(O=96,0),p=1<<b-et,e=w=1<<P;h[F+(A>>et)+(w-=p)]=L<<24|O<<16|Z|0,w!==0;);for(p=1<<b-1;A&p;)p>>=1;if(p!==0?(A&=p-1,A+=p):A=0,B++,--q[b]==0){if(b===D)break;b=m[_+c[B]]}if(J<b&&(A&x)!==E){for(et===0&&(et=J),F+=e,j=1<<(P=b-et);P+et<D&&!((j-=q[P+et])<=0);)P++,j<<=1;if(X+=1<<P,v===1&&852<X||v===2&&592<X)return 1;h[E=A&x]=J<<24|P<<16|F-r|0}}return A!==0&&(h[F+A]=b-et<<24|64<<16|0),s.bits=J,0}},{"../utils/common":41}],51:[function(d,z,y){z.exports={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"}},{}],52:[function(d,z,y){var u=d("../utils/common"),a=0,i=1;function l(o){for(var k=o.length;0<=--k;)o[k]=0}var g=0,v=29,m=256,_=m+1+v,n=30,h=19,r=2*_+1,c=15,s=16,p=7,w=256,E=16,x=17,F=18,R=[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],L=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(_+2));l(V);var b=new Array(2*n);l(b);var B=new Array(512);l(B);var e=new Array(256);l(e);var D=new Array(v);l(D);var J,P,et,j=new Array(n);function X(o,k,N,U,S){this.static_tree=o,this.extra_bits=k,this.extra_base=N,this.elems=U,this.max_length=S,this.has_stree=o&&o.length}function A(o,k){this.dyn_tree=o,this.max_code=0,this.stat_desc=k}function C(o){return o<256?B[o]:B[256+(o>>>7)]}function Q(o,k){o.pending_buf[o.pending++]=255&k,o.pending_buf[o.pending++]=k>>>8&255}function q(o,k,N){o.bi_valid>s-N?(o.bi_buf|=k<<o.bi_valid&65535,Q(o,o.bi_buf),o.bi_buf=k>>s-o.bi_valid,o.bi_valid+=N-s):(o.bi_buf|=k<<o.bi_valid&65535,o.bi_valid+=N)}function G(o,k,N){q(o,N[2*k],N[2*k+1])}function st(o,k){for(var N=0;N|=1&o,o>>>=1,N<<=1,0<--k;);return N>>>1}function ct(o,k,N){var U,S,W=new Array(c+1),K=0;for(U=1;U<=c;U++)W[U]=K=K+N[U-1]<<1;for(S=0;S<=k;S++){var M=o[2*S+1];M!==0&&(o[2*S]=st(W[M]++,M))}}function rt(o){var k;for(k=0;k<_;k++)o.dyn_ltree[2*k]=0;for(k=0;k<n;k++)o.dyn_dtree[2*k]=0;for(k=0;k<h;k++)o.bl_tree[2*k]=0;o.dyn_ltree[2*w]=1,o.opt_len=o.static_len=0,o.last_lit=o.matches=0}function it(o){8<o.bi_valid?Q(o,o.bi_buf):0<o.bi_valid&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0}function ut(o,k,N,U){var S=2*k,W=2*N;return o[S]<o[W]||o[S]===o[W]&&U[k]<=U[N]}function ot(o,k,N){for(var U=o.heap[N],S=N<<1;S<=o.heap_len&&(S<o.heap_len&&ut(k,o.heap[S+1],o.heap[S],o.depth)&&S++,!ut(k,U,o.heap[S],o.depth));)o.heap[N]=o.heap[S],N=S,S<<=1;o.heap[N]=U}function dt(o,k,N){var U,S,W,K,M=0;if(o.last_lit!==0)for(;U=o.pending_buf[o.d_buf+2*M]<<8|o.pending_buf[o.d_buf+2*M+1],S=o.pending_buf[o.l_buf+M],M++,U===0?G(o,S,k):(G(o,(W=e[S])+m+1,k),(K=R[W])!==0&&q(o,S-=D[W],K),G(o,W=C(--U),N),(K=L[W])!==0&&q(o,U-=j[W],K)),M<o.last_lit;);G(o,w,k)}function ft(o,k){var N,U,S,W=k.dyn_tree,K=k.stat_desc.static_tree,M=k.stat_desc.has_stree,Y=k.stat_desc.elems,at=-1;for(o.heap_len=0,o.heap_max=r,N=0;N<Y;N++)W[2*N]!==0?(o.heap[++o.heap_len]=at=N,o.depth[N]=0):W[2*N+1]=0;for(;o.heap_len<2;)W[2*(S=o.heap[++o.heap_len]=at<2?++at:0)]=1,o.depth[S]=0,o.opt_len--,M&&(o.static_len-=K[2*S+1]);for(k.max_code=at,N=o.heap_len>>1;1<=N;N--)ot(o,W,N);for(S=Y;N=o.heap[1],o.heap[1]=o.heap[o.heap_len--],ot(o,W,1),U=o.heap[1],o.heap[--o.heap_max]=N,o.heap[--o.heap_max]=U,W[2*S]=W[2*N]+W[2*U],o.depth[S]=(o.depth[N]>=o.depth[U]?o.depth[N]:o.depth[U])+1,W[2*N+1]=W[2*U+1]=S,o.heap[1]=S++,ot(o,W,1),2<=o.heap_len;);o.heap[--o.heap_max]=o.heap[1],(function(nt,ht){var _t,pt,gt,lt,vt,Et,mt=ht.dyn_tree,It=ht.max_code,Zt=ht.stat_desc.static_tree,Mt=ht.stat_desc.has_stree,Ht=ht.stat_desc.extra_bits,Ot=ht.stat_desc.extra_base,bt=ht.stat_desc.max_length,yt=0;for(lt=0;lt<=c;lt++)nt.bl_count[lt]=0;for(mt[2*nt.heap[nt.heap_max]+1]=0,_t=nt.heap_max+1;_t<r;_t++)bt<(lt=mt[2*mt[2*(pt=nt.heap[_t])+1]+1]+1)&&(lt=bt,yt++),mt[2*pt+1]=lt,It<pt||(nt.bl_count[lt]++,vt=0,Ot<=pt&&(vt=Ht[pt-Ot]),Et=mt[2*pt],nt.opt_len+=Et*(lt+vt),Mt&&(nt.static_len+=Et*(Zt[2*pt+1]+vt)));if(yt!==0){do{for(lt=bt-1;nt.bl_count[lt]===0;)lt--;nt.bl_count[lt]--,nt.bl_count[lt+1]+=2,nt.bl_count[bt]--,yt-=2}while(0<yt);for(lt=bt;lt!==0;lt--)for(pt=nt.bl_count[lt];pt!==0;)It<(gt=nt.heap[--_t])||(mt[2*gt+1]!==lt&&(nt.opt_len+=(lt-mt[2*gt+1])*mt[2*gt],mt[2*gt+1]=lt),pt--)}})(o,k),ct(W,at,o.bl_count)}function t(o,k,N){var U,S,W=-1,K=k[1],M=0,Y=7,at=4;for(K===0&&(Y=138,at=3),k[2*(N+1)+1]=65535,U=0;U<=N;U++)S=K,K=k[2*(U+1)+1],++M<Y&&S===K||(M<at?o.bl_tree[2*S]+=M:S!==0?(S!==W&&o.bl_tree[2*S]++,o.bl_tree[2*E]++):M<=10?o.bl_tree[2*x]++:o.bl_tree[2*F]++,W=S,at=(M=0)===K?(Y=138,3):S===K?(Y=6,3):(Y=7,4))}function T(o,k,N){var U,S,W=-1,K=k[1],M=0,Y=7,at=4;for(K===0&&(Y=138,at=3),U=0;U<=N;U++)if(S=K,K=k[2*(U+1)+1],!(++M<Y&&S===K)){if(M<at)for(;G(o,S,o.bl_tree),--M!=0;);else S!==0?(S!==W&&(G(o,S,o.bl_tree),M--),G(o,E,o.bl_tree),q(o,M-3,2)):M<=10?(G(o,x,o.bl_tree),q(o,M-3,3)):(G(o,F,o.bl_tree),q(o,M-11,7));W=S,at=(M=0)===K?(Y=138,3):S===K?(Y=6,3):(Y=7,4)}}l(j);var I=!1;function f(o,k,N,U){q(o,(g<<1)+(U?1:0),3),(function(S,W,K,M){it(S),Q(S,K),Q(S,~K),u.arraySet(S.pending_buf,S.window,W,K,S.pending),S.pending+=K})(o,k,N)}y._tr_init=function(o){I||((function(){var k,N,U,S,W,K=new Array(c+1);for(S=U=0;S<v-1;S++)for(D[S]=U,k=0;k<1<<R[S];k++)e[U++]=S;for(e[U-1]=S,S=W=0;S<16;S++)for(j[S]=W,k=0;k<1<<L[S];k++)B[W++]=S;for(W>>=7;S<n;S++)for(j[S]=W<<7,k=0;k<1<<L[S]-7;k++)B[256+W++]=S;for(N=0;N<=c;N++)K[N]=0;for(k=0;k<=143;)V[2*k+1]=8,k++,K[8]++;for(;k<=255;)V[2*k+1]=9,k++,K[9]++;for(;k<=279;)V[2*k+1]=7,k++,K[7]++;for(;k<=287;)V[2*k+1]=8,k++,K[8]++;for(ct(V,_+1,K),k=0;k<n;k++)b[2*k+1]=5,b[2*k]=st(k,5);J=new X(V,R,m+1,_,c),P=new X(b,L,0,n,c),et=new X(new Array(0),O,0,h,p)})(),I=!0),o.l_desc=new A(o.dyn_ltree,J),o.d_desc=new A(o.dyn_dtree,P),o.bl_desc=new A(o.bl_tree,et),o.bi_buf=0,o.bi_valid=0,rt(o)},y._tr_stored_block=f,y._tr_flush_block=function(o,k,N,U){var S,W,K=0;0<o.level?(o.strm.data_type===2&&(o.strm.data_type=(function(M){var Y,at=4093624447;for(Y=0;Y<=31;Y++,at>>>=1)if(1&at&&M.dyn_ltree[2*Y]!==0)return a;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return i;for(Y=32;Y<m;Y++)if(M.dyn_ltree[2*Y]!==0)return i;return a})(o)),ft(o,o.l_desc),ft(o,o.d_desc),K=(function(M){var Y;for(t(M,M.dyn_ltree,M.l_desc.max_code),t(M,M.dyn_dtree,M.d_desc.max_code),ft(M,M.bl_desc),Y=h-1;3<=Y&&M.bl_tree[2*Z[Y]+1]===0;Y--);return M.opt_len+=3*(Y+1)+5+5+4,Y})(o),S=o.opt_len+3+7>>>3,(W=o.static_len+3+7>>>3)<=S&&(S=W)):S=W=N+5,N+4<=S&&k!==-1?f(o,k,N,U):o.strategy===4||W===S?(q(o,2+(U?1:0),3),dt(o,V,b)):(q(o,4+(U?1:0),3),(function(M,Y,at,nt){var ht;for(q(M,Y-257,5),q(M,at-1,5),q(M,nt-4,4),ht=0;ht<nt;ht++)q(M,M.bl_tree[2*Z[ht]+1],3);T(M,M.dyn_ltree,Y-1),T(M,M.dyn_dtree,at-1)})(o,o.l_desc.max_code+1,o.d_desc.max_code+1,K+1),dt(o,o.dyn_ltree,o.dyn_dtree)),rt(o),U&&it(o)},y._tr_tally=function(o,k,N){return o.pending_buf[o.d_buf+2*o.last_lit]=k>>>8&255,o.pending_buf[o.d_buf+2*o.last_lit+1]=255&k,o.pending_buf[o.l_buf+o.last_lit]=255&N,o.last_lit++,k===0?o.dyn_ltree[2*N]++:(o.matches++,k--,o.dyn_ltree[2*(e[N]+m+1)]++,o.dyn_dtree[2*C(k)]++),o.last_lit===o.lit_bufsize-1},y._tr_align=function(o){q(o,2,3),G(o,w,V),(function(k){k.bi_valid===16?(Q(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)})(o)}},{"../utils/common":41}],53:[function(d,z,y){z.exports=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}},{}],54:[function(d,z,y){(function(u){(function(a,i){if(!a.setImmediate){var l,g,v,m,_=1,n={},h=!1,r=a.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(a);c=c&&c.setTimeout?c:a,l={}.toString.call(a.process)==="[object process]"?function(E){process.nextTick(function(){p(E)})}:(function(){if(a.postMessage&&!a.importScripts){var E=!0,x=a.onmessage;return a.onmessage=function(){E=!1},a.postMessage("","*"),a.onmessage=x,E}})()?(m="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",w,!1):a.attachEvent("onmessage",w),function(E){a.postMessage(m+E,"*")}):a.MessageChannel?((v=new MessageChannel).port1.onmessage=function(E){p(E.data)},function(E){v.port2.postMessage(E)}):r&&"onreadystatechange"in r.createElement("script")?(g=r.documentElement,function(E){var x=r.createElement("script");x.onreadystatechange=function(){p(E),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(E){setTimeout(p,0,E)},c.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var x=new Array(arguments.length-1),F=0;F<x.length;F++)x[F]=arguments[F+1];var R={callback:E,args:x};return n[_]=R,l(_),_++},c.clearImmediate=s}function s(E){delete n[E]}function p(E){if(h)setTimeout(p,0,E);else{var x=n[E];if(x){h=!0;try{(function(F){var R=F.callback,L=F.args;switch(L.length){case 0:R();break;case 1:R(L[0]);break;case 2:R(L[0],L[1]);break;case 3:R(L[0],L[1],L[2]);break;default:R.apply(i,L)}})(x)}finally{s(E),h=!1}
4}}}function w(E){E.source===a&&typeof E.data=="string"&&E.data.indexOf(m)===0&&p(+E.data.slice(m.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ct)),Ct.exports}var je=Le();const We=Pt(je),Wt=Xt(tt=>({filters:{search_text:""},updateFilter:($,d)=>tt(z=>({...z,filters:{...z.filters,[$]:d}}))}));function Ze(tt,$){return $?typeof $=="string"?parseFloat($.replace(",",".")):$:null}const Me=he().shape({service_fee:fe().typeError("Informe um valor").transform(Ze).required("Informe um valor").min(0,"Informe um valor maior ou igual a 0%").max(100,"Informe um valor inferior a 100%")}),Nt={service_fee:""};function He({open:tt,onClose:$}){const d=xt(),z=Jt(),[y,u]=H.useState(!1),a=Lt(({globalCompany:h})=>h.company.service_fee),{handleSubmit:i,reset:l,formState:g,control:v}=$t({mode:"onSubmit",defaultValues:Nt,resolver:te(Me)});H.useEffect(()=>{tt&&l({...Nt,service_fee:a})},[tt,l,a]);const m=H.useCallback(()=>{$&&!y&&$()},[y,$]),_=H.useCallback(async h=>{if(!y){u(!0);try{await z(Te("service_fee",h.service_fee)),m()}catch(r){d.error(r.response?.data?.message||"Não foi possível concluir a operação")}u(!1)}},[y,z,d,m]),{errors:n}=g;return H.createElement(ee,{open:tt,onClose:m,maxWidth:"xs",disableEnforceFocus:!0,PaperProps:{className:"shadow-md rounded-12"}},H.createElement("form",{onSubmit:i(_),className:"relative flex h-full flex-col overflow-auto"},H.createElement(re,{className:"px-20 py-12"},H.createElement("div",{className:"flex items-center justify-between space-x-16"},H.createElement("span",null,"Atualizar taxa de serviço"),H.createElement(ne,{style:{padding:9},onClick:m},H.createElement(ie,null)))),H.createElement(ae,{className:"overflow-auto p-20"},H.createElement(se,{name:"service_fee",control:v,render:({field:h})=>H.createElement(oe,{...h,id:"service_fee",label:"Taxa de serviço",placeholder:"0,0",error:!!n.service_fee,helperText:n?.service_fee?.message,InputProps:{endAdornment:H.createElement(le,{position:"end"},"%")},size:"medium",autoFocus:!0,required:!0})})),H.createElement(ue,{className:"space-x-12 px-20 py-16"},H.createElement(kt,{onClick:$,color:"primary",variant:"outlined",className:"flex-1",disableElevation:!0},"Cancelar"),H.createElement(kt,{type:"submit",color:"primary",variant:"contained",className:"flex-1",disableElevation:!0},"Salvar")),y&&H.createElement("div",{className:"absolute inset-0 flex items-center justify-center",style:{zIndex:5e3,backgroundColor:"rgba(255,255,255,0.7)"}},H.createElement(ce,{color:"primary"}))))}const Ge=async tt=>await Promise.all(tt.map(async d=>{try{return{generatedQrcode:await Be.toDataURL(d.url,{margin:2,width:800}),name:d.name}}catch(z){console.error(z)}}));function qe(tt){return tt.replace(/^data:image\/(png|jpg);base64,/,"")}function Ke(tt,$){const d=document.createElement("a");d.setAttribute("href","data:text/plain;base64,"+$),d.setAttribute("download",tt),d.style.display="none",document.body.appendChild(d),d.click(),document.body.removeChild(d)}const Ye=async tt=>{const $=new We,d=$.folder("imagens");return tt.forEach(z=>{d.file(z.name,qe(z.generatedQrcode),{base64:!0})}),$.generateAsync({type:"base64"}).then(function(z){Ke("QRCodes.zip",z)})};function Qe({openDialog:tt}){const $=xt(),d=Wt(_=>_.updateFilter),[z,y]=H.useState(""),[u,a]=H.useState(!1),i=Lt(({globalCompany:_})=>_.company.service_fee),l=Ae(),{data:g}=jt(),v=H.useMemo(()=>de(_=>{d("search_text",_)},300),[d]);H.useEffect(()=>{v(z)},[z,v]);const m=H.useCallback(async()=>{try{const _=g.map(h=>({url:l(h.uid),name:`${h.mode}${h.number}.png`})),n=await Ge(_);await Ye(n),$.success("Gerado com sucesso")}catch{$.error("Ocorreu um erro ao gerar os QR Codes")}},[g,$,l]);return H.createElement("div",{className:"flex w-full flex-col flex-wrap justify-between space-x-0 space-y-16 lg:flex-row lg:space-x-12 lg:space-y-0"},H.createElement("div",{className:"flex space-x-12"},H.createElement(Re,{placeholder:"Pesquise pelo número",value:z,onChange:_=>y(_.target.value),wrapperClassName:"w-full lg:w-288"})),H.createElement("div",{className:"flex flex-1 space-x-12"},H.createElement("div",{className:"flex flex-shrink-0 cursor-pointer items-center space-x-16 rounded-4 border border-solid border-grey-border-dark px-12 text-16 hover:bg-gray-50",onClick:()=>a(!0)},H.createElement("div",{className:"flex space-x-8"}
4,H.createElement("div",null,"Taxa de serviço:")," ",H.createElement("strong",null,pe.formatNumber(i),"%")),H.createElement(me,{className:"text-gray-400"})),H.createElement("div",{className:"flex max-w-224 flex-shrink-0 cursor-pointer items-center space-x-16 rounded-4 border border-solid border-grey-border-dark px-12 py-6 text-16 hover:bg-gray-50",onClick:m},H.createElement("div",{className:"flex space-x-8"},H.createElement("div",null,"Baixar QR Codes")),H.createElement(Ie,{className:"text-gray-400"})),H.createElement(He,{open:u,onClose:()=>a(!1)})),H.createElement(kt,{variant:"contained",color:"primary",disableElevation:!0,startIcon:H.createElement(_e,null),onClick:tt,className:"w-full lg:w-auto"},"NOVA MESA/COMANDA"))}var zt,Ut;function Ve(){if(Ut)return zt;Ut=1;var tt=ge(),$=be(),d=/^\s+/,z=tt.parseInt;function y(u,a,i){return i||a==null?a=0:a&&(a=+a),z($(u).replace(d,""),a||0)}return zt=y,zt}var Xe=Ve();const Je=Pt(Xe),$e={mesa:H.createElement(Tt,{color:"blue"},"Mesa"),comanda:H.createElement(Tt,{color:"indigo"},"Comanda")},tr=tt=>tt?tt.replace(/\D/g,""):"";function er({handleOpenQRCode:tt}){const $=xt(),d=ve(),z=Wt(n=>n.filters),{data:y,isLoading:u,isError:a,mutate:i}=jt(),[l,g]=H.useState(null),v=H.useMemo(()=>{const n=Je(tr(z.search_text)),h=n?y?.filter(r=>r.number===n):y;return ye(h,["mode","number"],["desc","asc"])},[z,y]),m=H.useCallback(async(n,h)=>{g(!0);try{await Ne(n,{active:h}),await i(),$.success("Alteração salva com sucesso!")}catch(r){$.error(r.response?.data?.message||"Não foi possível concluir a operação")}g(!1)},[$,i]),_=H.useCallback(n=>d({title:"Confirmar exclusão?",description:"Esta operação não poderá ser desfeita!",confirmationText:"Excluir"}).then(async()=>{g(!0);try{await Ue(n),await i(),$.success("Excluído com sucesso")}catch(h){$.error(h.response?.data?.message||"Não foi possível concluir a operação")}g(!1)}).catch(()=>{}),[$,i,d]);return H.createElement(we,{data:v,loading:u||l,defaultOrderBy:"mode",defaultOrder:"desc",loadingRowsQuantity:10,showError:a,stickyHeader:!0,columns:[{Header:"Tipo",accessor:"mode",sortable:!1,formatDataFunction:n=>$e[n]},{Header:"Número",accessor:"number",sortable:!1},{Header:"Ativa",accessor:"active",sortable:!1,Cell:({row:n})=>H.createElement(ke,{checked:n.active,onChange:()=>m(n.id,!n.active),color:"primary",size:"small"})},{Header:"QR Code",sortable:!1,align:"center",Cell:({row:n})=>H.createElement(kt,{tooltip:"Excluir",className:"text-gray-500",onClick:()=>tt(n)},H.createElement("div",{className:"flex items-center justify-center space-x-6"},H.createElement(xe,null)," ",H.createElement("span",null,"Visualizar")))},{sortable:!1,align:"right",Cell:({row:n})=>H.createElement(Ee,{tooltip:"Excluir",onClick:()=>_(n.id)},H.createElement(Se,null))}]})}function dr(){const[tt,$]=H.useState(!1),[d,z]=H.useState(null),y=H.useCallback(()=>$(!0),[]),u=H.useCallback(()=>$(!1),[]);return H.createElement(Ce,null,H.createElement(De,{title:"Configurar Mesas e Comandas",helperUrl:"https://ajuda.cardapioweb.com/gestao/configuracoes/mesas-comandas"},H.createElement("div",{className:"flex w-full flex-1 flex-col space-y-24 overflow-auto"},H.createElement(Qe,{openDialog:y}),H.createElement("div",{className:"sm:flex-1 sm:overflow-auto"},H.createElement(er,{handleOpenQRCode:z})),H.createElement(Pe,{open:tt,onClose:u}),H.createElement(Oe,{open:!!d,onClose:()=>z(null),orderSession:d}))))}export{dr as default};
5
6//# debugId=bd11d065-e305-558d-a1d8-0da3d920033c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.