@ianicdev/datatables2 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datatables.js +1 -12
- package/dist/datatables.mjs +12 -0
- package/dist/{index-BwsAiFAr.js → index-B8X7LcPE.mjs} +5 -5
- package/dist/{index-DYczfLxd.cjs → index-J-U5sk2c.js} +3 -3
- package/dist/{index.es-D59PA0PX.js → index.es-C7eP8Z22.mjs} +1 -1
- package/dist/{index.es-CaShwaaY.cjs → index.es-kchJ_FE2.js} +1 -1
- package/lib/locale/el.js +1 -0
- package/lib/locale/en.js +1 -0
- package/package.json +2 -2
- package/dist/datatables.cjs +0 -1
- /package/dist/{html2canvas.esm-BA_v9SIU.cjs → html2canvas.esm-BA_v9SIU.js} +0 -0
- /package/dist/{html2canvas.esm-d2sM-0Wm.js → html2canvas.esm-d2sM-0Wm.mjs} +0 -0
- /package/dist/{purify.es-BJHiDXdY.cjs → purify.es-BJHiDXdY.js} +0 -0
- /package/dist/{purify.es-BwOkayRK.js → purify.es-BwOkayRK.mjs} +0 -0
|
@@ -176,7 +176,7 @@ T* `):z.join(` Tj
|
|
|
176
176
|
`),f}},Cross:{createAppearanceStream:function(t){var f={D:{Off:vt.RadioButton.Cross.OffPushDown},N:{}};return f.N[t]=vt.RadioButton.Cross.YesNormal,f.D[t]=vt.RadioButton.Cross.YesPushDown,f},getCA:function(){return"8"},YesNormal:function(t){var f=Di(t);f.scope=t.scope;var e=[],a=vt.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Jt(vt.internal.getWidth(t)-2)+" "+Jt(vt.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Jt(a.x1.x)+" "+Jt(a.x1.y)+" m"),e.push(Jt(a.x2.x)+" "+Jt(a.x2.y)+" l"),e.push(Jt(a.x4.x)+" "+Jt(a.x4.y)+" m"),e.push(Jt(a.x3.x)+" "+Jt(a.x3.y)+" l"),e.push("s"),e.push("Q"),f.stream=e.join(`
|
|
177
177
|
`),f},YesPushDown:function(t){var f=Di(t);f.scope=t.scope;var e=vt.internal.calculateCross(t),a=[];return a.push("0.749023 g"),a.push("0 0 "+Jt(vt.internal.getWidth(t))+" "+Jt(vt.internal.getHeight(t))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Jt(vt.internal.getWidth(t)-2)+" "+Jt(vt.internal.getHeight(t)-2)+" re"),a.push("W"),a.push("n"),a.push(Jt(e.x1.x)+" "+Jt(e.x1.y)+" m"),a.push(Jt(e.x2.x)+" "+Jt(e.x2.y)+" l"),a.push(Jt(e.x4.x)+" "+Jt(e.x4.y)+" m"),a.push(Jt(e.x3.x)+" "+Jt(e.x3.y)+" l"),a.push("s"),a.push("Q"),f.stream=a.join(`
|
|
178
178
|
`),f},OffPushDown:function(t){var f=Di(t);f.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Jt(vt.internal.getWidth(t))+" "+Jt(vt.internal.getHeight(t))+" re"),e.push("f"),f.stream=e.join(`
|
|
179
|
-
`),f}}},createDefaultAppearanceStream:function(t){var f=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+f+" "+t.fontSize+" Tf "+e}};vt.internal={Bezier_C:.551915024494,calculateCross:function(t){var f=vt.internal.getWidth(t),e=vt.internal.getHeight(t),a=Math.min(f,e);return{x1:{x:(f-a)/2,y:(e-a)/2+a},x2:{x:(f-a)/2+a,y:(e-a)/2},x3:{x:(f-a)/2,y:(e-a)/2},x4:{x:(f-a)/2+a,y:(e-a)/2+a}}}},vt.internal.getWidth=function(t){var f=0;return wr(t)==="object"&&(f=wh(t.Rect[2])),f},vt.internal.getHeight=function(t){var f=0;return wr(t)==="object"&&(f=wh(t.Rect[3])),f};var sb=jr.addField=function(t){if(ib(this,t),!(t instanceof Ii))throw new Error("Invalid argument passed to jsPDF.addField.");var f;return(f=t).scope.internal.acroformPlugin.printedOut&&(f.scope.internal.acroformPlugin.printedOut=!1,f.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),f.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(f),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};jr.AcroFormChoiceField=pa,jr.AcroFormListBox=ma,jr.AcroFormComboBox=ga,jr.AcroFormEditBox=aA,jr.AcroFormButton=on,jr.AcroFormPushButton=oA,jr.AcroFormRadioButton=wa,jr.AcroFormCheckBox=AA,jr.AcroFormTextField=zs,jr.AcroFormPasswordField=lA,jr.AcroFormAppearance=vt,jr.AcroForm={ChoiceField:pa,ListBox:ma,ComboBox:ga,EditBox:aA,Button:on,PushButton:oA,RadioButton:wa,CheckBox:AA,TextField:zs,PasswordField:lA,Appearance:vt},Dt.AcroForm={ChoiceField:pa,ListBox:ma,ComboBox:ga,EditBox:aA,Button:on,PushButton:oA,RadioButton:wa,CheckBox:AA,TextField:zs,PasswordField:lA,Appearance:vt};var ab=Dt.AcroForm;function v0(t){return t.reduce(function(f,e,a){return f[e]=a,f},{})}(function(t){t.__addimage__={};var f="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=t.__addimage__.getImageFileTypeByImageData=function(G,D){var I,M,C,b,y,E=f;if((D=D||f)==="RGBA"||G.data!==void 0&&G.data instanceof Uint8ClampedArray&&"height"in G&&"width"in G)return"RGBA";if(k(G))for(y in e)for(C=e[y],I=0;I<C.length;I+=1){for(b=!0,M=0;M<C[I].length;M+=1)if(C[I][M]!==void 0&&C[I][M]!==G[M]){b=!1;break}if(b===!0){E=y;break}}else for(y in e)for(C=e[y],I=0;I<C.length;I+=1){for(b=!0,M=0;M<C[I].length;M+=1)if(C[I][M]!==void 0&&C[I][M]!==G.charCodeAt(M)){b=!1;break}if(b===!0){E=y;break}}return E===f&&D!==f&&(E=D),E},c=function G(D){for(var I=this.internal.write,M=this.internal.putStream,C=(0,this.internal.getFilters)();C.indexOf("FlateEncode")!==-1;)C.splice(C.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var b=[];if(b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Image"}),b.push({key:"Width",value:D.width}),b.push({key:"Height",value:D.height}),D.colorSpace===h.INDEXED?b.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(b.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===h.DEVICE_CMYK&&b.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),b.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&b.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)){for(var y="",E=0,B=D.transparency.length;E<B;E++)y+=D.transparency[E]+" "+D.transparency[E]+" ";b.push({key:"Mask",value:"["+y+"]"})}D.sMask!==void 0&&b.push({key:"SMask",value:D.objectId+1+" 0 R"});var S=D.filter!==void 0?["/"+D.filter]:void 0;if(M({data:D.data,additionalKeyValues:b,alreadyAppliedFilters:S,objectId:D.objectId}),I("endobj"),"sMask"in D&&D.sMask!==void 0){var T="/Predictor "+D.predictor+" /Colors 1 /BitsPerComponent "+D.bitsPerComponent+" /Columns "+D.width,R={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:D.bitsPerComponent,decodeParameters:T,data:D.sMask};"filter"in D&&(R.filter=D.filter),G.call(this,R)}if(D.colorSpace===h.INDEXED){var V=this.internal.newObject();M({data:F(new Uint8Array(D.palette)),objectId:V}),I("endobj")}},s=function(){var G=this.internal.collections.addImage_images;for(var D in G)c.call(this,G[D])},i=function(){var G,D=this.internal.collections.addImage_images,I=this.internal.write;for(var M in D)I("/I"+(G=D[M]).index,G.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",i))},n=function(){var G=this.internal.collections.addImage_images;return o.call(this),G},r=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(G){return typeof t["process"+G.toUpperCase()]=="function"},d=function(G){return wr(G)==="object"&&G.nodeType===1},u=function(G,D){if(G.nodeName==="IMG"&&G.hasAttribute("src")){var I=""+G.getAttribute("src");if(I.indexOf("data:image/")===0)return sA(unescape(I).split("base64,").pop());var M=t.loadFile(I,!0);if(M!==void 0)return M}if(G.nodeName==="CANVAS"){if(G.width===0||G.height===0)throw new Error("Given canvas must have data. Canvas width: "+G.width+", height: "+G.height);var C;switch(D){case"PNG":C="image/png";break;case"WEBP":C="image/webp";break;case"JPEG":case"JPG":default:C="image/jpeg"}return sA(G.toDataURL(C,1).split("base64,").pop())}},l=function(G){var D=this.internal.collections.addImage_images;if(D){for(var I in D)if(G===D[I].alias)return D[I]}},p=function(G,D,I){return G||D||(G=-96,D=-96),G<0&&(G=-1*I.width*72/G/this.internal.scaleFactor),D<0&&(D=-1*I.height*72/D/this.internal.scaleFactor),G===0&&(G=D*I.width/I.height),D===0&&(D=G*I.height/I.width),[G,D]},m=function(G,D,I,M,C,b){var y=p.call(this,I,M,C),E=this.internal.getCoordinateString,B=this.internal.getVerticalCoordinateString,S=n.call(this);if(I=y[0],M=y[1],S[C.index]=C,b){b*=Math.PI/180;var T=Math.cos(b),R=Math.sin(b),V=function(q){return q.toFixed(4)},U=[V(T),V(R),V(-1*R),V(T),0,0,"cm"]}this.internal.write("q"),b?(this.internal.write([1,"0","0",1,E(G),B(D+M),"cm"].join(" ")),this.internal.write(U.join(" ")),this.internal.write([E(I),"0","0",E(M),"0","0","cm"].join(" "))):this.internal.write([E(I),"0","0",E(M),E(G),B(D+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+C.index+" Do"),this.internal.write("Q")},h=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(G){var D,I,M=0;if(typeof G=="string")for(I=G.length,D=0;D<I;D++)M=(M<<5)-M+G.charCodeAt(D),M|=0;else if(k(G))for(I=G.byteLength/2,D=0;D<I;D++)M=(M<<5)-M+G[D],M|=0;return M},v=t.__addimage__.validateStringAsBase64=function(G){(G=G||"").toString().trim();var D=!0;return G.length===0&&(D=!1),G.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(G.substr(0,G.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(G.substr(-2))===!1&&(D=!1),D},x=t.__addimage__.extractImageFromDataUrl=function(G){var D=(G=G||"").split("base64,"),I=null;if(D.length===2){var M=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(D[0]);Array.isArray(M)&&(I={mimeType:M[1],charset:M[2],data:D[1]})}return I},L=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(G){return L()&&G instanceof ArrayBuffer};var k=t.__addimage__.isArrayBufferView=function(G){return L()&&typeof Uint32Array<"u"&&(G instanceof Int8Array||G instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&G instanceof Uint8ClampedArray||G instanceof Int16Array||G instanceof Uint16Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Float32Array||G instanceof Float64Array)},Y=t.__addimage__.binaryStringToUint8Array=function(G){for(var D=G.length,I=new Uint8Array(D),M=0;M<D;M++)I[M]=G.charCodeAt(M);return I},F=t.__addimage__.arrayBufferToBinaryString=function(G){for(var D="",I=k(G)?G:new Uint8Array(G),M=0;M<I.length;M+=8192)D+=String.fromCharCode.apply(null,I.subarray(M,M+8192));return D};t.addImage=function(){var G,D,I,M,C,b,y,E,B;if(typeof arguments[1]=="number"?(D=f,I=arguments[1],M=arguments[2],C=arguments[3],b=arguments[4],y=arguments[5],E=arguments[6],B=arguments[7]):(D=arguments[1],I=arguments[2],M=arguments[3],C=arguments[4],b=arguments[5],y=arguments[6],E=arguments[7],B=arguments[8]),wr(G=arguments[0])==="object"&&!d(G)&&"imageData"in G){var S=G;G=S.imageData,D=S.format||D||f,I=S.x||I||0,M=S.y||M||0,C=S.w||S.width||C,b=S.h||S.height||b,y=S.alias||y,E=S.compression||E,B=S.rotation||S.angle||B}var T=this.internal.getFilters();if(E===void 0&&T.indexOf("FlateEncode")!==-1&&(E="SLOW"),isNaN(I)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var R=O.call(this,G,D,y,E);return m.call(this,I,M,C,b,R,B),this};var O=function(G,D,I,M){var C,b,y;if(typeof G=="string"&&a(G)===f){G=unescape(G);var E=W(G,!1);(E!==""||(E=t.loadFile(G,!0))!==void 0)&&(G=E)}if(d(G)&&(G=u(G,D)),D=a(G,D),!A(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((y=I)==null||y.length===0)&&(I=function(B){return typeof B=="string"||k(B)?w(B):k(B.data)?w(B.data):null}(G)),(C=l.call(this,I))||(L()&&(G instanceof Uint8Array||D==="RGBA"||(b=G,G=Y(G))),C=this["process"+D.toUpperCase()](G,r.call(this),I,function(B){return B&&typeof B=="string"&&(B=B.toUpperCase()),B in t.image_compression?B:g.NONE}(M),b)),!C)throw new Error("An unknown error occurred whilst processing the image.");return C},W=t.__addimage__.convertBase64ToBinaryString=function(G,D){var I;D=typeof D!="boolean"||D;var M,C="";if(typeof G=="string"){M=(I=x(G))!==null?I.data:G;try{C=sA(M)}catch(b){if(D)throw v(M)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+b.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return C};t.getImageProperties=function(G){var D,I,M="";if(d(G)&&(G=u(G)),typeof G=="string"&&a(G)===f&&((M=W(G,!1))===""&&(M=t.loadFile(G)||""),G=M),I=a(G),!A(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(!L()||G instanceof Uint8Array||(G=Y(G)),!(D=this["process"+I.toUpperCase()](G)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=I,D}})(Dt.API),function(t){var f=function(e){if(e!==void 0&&e!="")return!0};Dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var a,c,s,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,n=this.internal.getPageInfoByObjId(e.objId),r=e.pageContext.annotations,A=!1,d=0;d<r.length&&!A;d++)switch((a=r[d]).type){case"link":(f(a.options.url)||f(a.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var u=0;u<r.length;u++){a=r[u];var l=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),w=a.title||"Note";s="<</Type /Annot /Subtype /Text "+(c="/Rect ["+i(a.bounds.x)+" "+o(a.bounds.y+a.bounds.h)+" "+i(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y)+"] ")+"/Contents ("+l(g(a.contents))+")",s+=" /Popup "+h.objId+" 0 R",s+=" /P "+n.objId+" 0 R",s+=" /T ("+l(g(w))+") >>",m.content=s;var v=m.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(c="/Rect ["+i(a.bounds.x+30)+" "+o(a.bounds.y+a.bounds.h)+" "+i(a.bounds.x+a.bounds.w+30)+" "+o(a.bounds.y)+"] ")+" /Parent "+v,a.open&&(s+=" /Open true"),s+=" >>",h.content=s,this.internal.write(m.objId,"0 R",h.objId,"0 R");break;case"freetext":c="/Rect ["+i(a.bounds.x)+" "+o(a.bounds.y)+" "+i(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y+a.bounds.h)+"] ";var x=a.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+c+"/Contents ("+l(p(a.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+x+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(a.options.name){var L=this.annotations._nameMap[a.options.name];a.options.pageNumber=L.page,a.options.top=L.y}else a.options.top||(a.options.top=0);if(c="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",s="",a.options.url)s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /A <</S /URI /URI ("+l(p(a.options.url))+") >>";else if(a.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,s+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var k=o(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),s+=" /XYZ "+a.options.left+" "+k+" "+a.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var a=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":a.pageContext.annotations.push(e)}},t.link=function(e,a,c,s,i){var o=this.internal.getCurrentPageInfo(),n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:n(e),y:r(a),w:n(e+c),h:r(a+s)},options:i,type:"link"})},t.textWithLink=function(e,a,c,s){var i,o,n=this.getTextWidth(e),r=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){o=s.maxWidth;var A=this.splitTextToSize(e,o).length;i=Math.ceil(r*A)}else o=n,i=r;return this.text(e,a,c,s),c+=.2*r,s.align==="center"&&(a-=n/2),s.align==="right"&&(a-=n),this.link(a,c-r,o,i,s),n},t.getTextWidth=function(e){var a=this.internal.getFontSize();return this.getStringUnitWidth(e)*a/this.internal.scaleFactor}}(Dt.API),function(t){var f={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},c=[1570,1571,1573,1575];t.__arabicParser__={};var s=t.__arabicParser__.isInArabicSubstitutionA=function(m){return f[m.charCodeAt(0)]!==void 0},i=t.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},o=t.__arabicParser__.isArabicEndLetter=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length<=2},n=t.__arabicParser__.isArabicAlfLetter=function(m){return i(m)&&c.indexOf(m.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=1};var r=t.__arabicParser__.arabicLetterHasFinalForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=3};var A=t.__arabicParser__.arabicLetterHasMedialForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length==4},d=t.__arabicParser__.resolveLigatures=function(m){var h=0,g=e,w="",v=0;for(h=0;h<m.length;h+=1)g[m.charCodeAt(h)]!==void 0?(v++,typeof(g=g[m.charCodeAt(h)])=="number"&&(w+=String.fromCharCode(g),g=e,v=0),h===m.length-1&&(g=e,w+=m.charAt(h-(v-1)),h-=v-1,v=0)):(g=e,w+=m.charAt(h-v),h-=v,v=0);return w};t.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&a[m.charCodeAt(0)]!==void 0};var u=t.__arabicParser__.getCorrectForm=function(m,h,g){return i(m)?s(m)===!1?-1:!r(m)||!i(h)&&!i(g)||!i(g)&&o(h)||o(m)&&!i(h)||o(m)&&n(h)||o(m)&&o(h)?0:A(m)&&i(h)&&!o(h)&&i(g)&&r(g)?3:o(m)||!i(g)?1:2:-1},l=function(m){var h=0,g=0,w=0,v="",x="",L="",k=(m=m||"").split("\\s+"),Y=[];for(h=0;h<k.length;h+=1){for(Y.push(""),g=0;g<k[h].length;g+=1)v=k[h][g],x=k[h][g-1],L=k[h][g+1],i(v)?(w=u(v,x,L),Y[h]+=w!==-1?String.fromCharCode(f[v.charCodeAt(0)][w]):v):Y[h]+=v;Y[h]=d(Y[h])}return Y.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var m,h=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,g=[];if(Array.isArray(h)){var w=0;for(g=[],w=0;w<h.length;w+=1)Array.isArray(h[w])?g.push([l(h[w][0]),h[w][1],h[w][2]]):g.push([l(h[w])]);m=g}else m=l(h);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};t.events.push(["preProcessText",p])}(Dt.API),Dt.API.autoPrint=function(t){var f;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){f=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+f+" 0 R")})}return this},function(t){var f=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(o){e=o}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(o){a=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var c=300;Object.defineProperty(this,"height",{get:function(){return c},set:function(o){c=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=c+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(o){s=o}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(o){i=o}}),Object.defineProperty(this,"parentNode",{})};f.prototype.getContext=function(e,a){var c;if((e=e||"2d")!=="2d")return null;for(c in a)this.pdf.context2d.hasOwnProperty(c)&&(this.pdf.context2d[c]=a[c]);return this.pdf.context2d._canvas=this,this.pdf.context2d},f.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new f,this.canvas.pdf=this}])}(Dt.API),function(t){var f={left:0,top:0,bottom:0,right:0},e=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},f),this.internal.__cell__.margins.width=this.getPageWidth(),c.call(this))},c=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var n=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(m){n=m}});var r=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(m){r=m}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(m){A=m}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(m){d=m}});var u=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var l=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(m){p=m}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(n){return a.call(this),this.internal.__cell__.headerFunction=typeof n=="function"?n:void 0,this},t.getTextDimensions=function(n,r){a.call(this);var A=(r=r||{}).fontSize||this.getFontSize(),d=r.font||this.getFont(),u=r.scaleFactor||this.internal.scaleFactor,l=0,p=0,m=0,h=this;if(!Array.isArray(n)&&typeof n!="string"){if(typeof n!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");n=String(n)}var g=r.maxWidth;g>0?typeof n=="string"?n=this.splitTextToSize(n,g):Object.prototype.toString.call(n)==="[object Array]"&&(n=n.reduce(function(v,x){return v.concat(h.splitTextToSize(x,g))},[])):n=Array.isArray(n)?n:[n];for(var w=0;w<n.length;w++)l<(m=this.getStringUnitWidth(n[w],{font:d})*A)&&(l=m);return l!==0&&(p=n.length),{w:l/=u,h:Math.max((p*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/u,0)}},t.cellAddPage=function(){a.call(this),this.addPage();var n=this.internal.__cell__.margins||f;return this.internal.__cell__.lastCell=new s(n.left,n.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=t.cell=function(){var n;n=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var r=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,d=this.internal.__cell__.margins||f,u=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return r.lineNumber!==void 0&&(r.lineNumber===n.lineNumber?(n.x=(r.x||0)+(r.width||0),n.y=r.y||0):r.y+r.height+n.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),n.y=d.top,l&&u&&(this.printHeaderRow(n.lineNumber,!0),n.y+=u[0].height)):n.y=r.y+r.height||n.y),n.text[0]!==void 0&&(this.rect(n.x,n.y,n.width,n.height,e===!0?"FD":void 0),n.align==="right"?this.text(n.text,n.x+n.width-A,n.y+A,{align:"right",baseline:"top"}):n.align==="center"?this.text(n.text,n.x+n.width/2,n.y+A,{align:"center",baseline:"top",maxWidth:n.width-A-A}):this.text(n.text,n.x+A,n.y+A,{align:"left",baseline:"top",maxWidth:n.width-A-A})),this.internal.__cell__.lastCell=n,this};t.table=function(n,r,A,d,u){if(a.call(this),!A)throw new Error("No data for PDF table.");var l,p,m,h,g=[],w=[],v=[],x={},L={},k=[],Y=[],F=(u=u||{}).autoSize||!1,O=u.printHeaders!==!1,W=u.css&&u.css["font-size"]!==void 0?16*u.css["font-size"]:u.fontSize||12,G=u.margins||Object.assign({width:this.getPageWidth()},f),D=typeof u.padding=="number"?u.padding:3,I=u.headerBackgroundColor||"#c8c8c8",M=u.headerTextColor||"#000";if(c.call(this),this.internal.__cell__.printHeaders=O,this.internal.__cell__.margins=G,this.internal.__cell__.table_font_size=W,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=M,this.setFontSize(W),d==null)w=g=Object.keys(A[0]),v=g.map(function(){return"left"});else if(Array.isArray(d)&&wr(d[0])==="object")for(g=d.map(function(S){return S.name}),w=d.map(function(S){return S.prompt||S.name||""}),v=d.map(function(S){return S.align||"left"}),l=0;l<d.length;l+=1)L[d[l].name]=d[l].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(w=g=d,v=g.map(function(){return"left"}));if(F||Array.isArray(d)&&typeof d[0]=="string")for(l=0;l<g.length;l+=1){for(x[h=g[l]]=A.map(function(S){return S[h]}),this.setFont(void 0,"bold"),k.push(this.getTextDimensions(w[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=x[h],this.setFont(void 0,"normal"),m=0;m<p.length;m+=1)k.push(this.getTextDimensions(p[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[h]=Math.max.apply(null,k)+D+D,k=[]}if(O){var C={};for(l=0;l<g.length;l+=1)C[g[l]]={},C[g[l]].text=w[l],C[g[l]].align=v[l];var b=o.call(this,C,L);Y=g.map(function(S){return new s(n,r,L[S],b,C[S].text,void 0,C[S].align)}),this.setTableHeaderRow(Y),this.printHeaderRow(1,!1)}var y=d.reduce(function(S,T){return S[T.name]=T.align,S},{});for(l=0;l<A.length;l+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:l,data:A[l]},this);var E=o.call(this,A[l],L);for(m=0;m<g.length;m+=1){var B=A[l][g[m]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:l,col:m,data:B},this),i.call(this,new s(n,r,L[g[m]],E,B,l+2,y[g[m]]))}}return this.internal.__cell__.table_x=n,this.internal.__cell__.table_y=r,this};var o=function(n,r){var A=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,u=this.internal.scaleFactor;return Object.keys(n).map(function(l){var p=n[l];return this.splitTextToSize(p.hasOwnProperty("text")?p.text:p,r[l]-A-A)},this).map(function(l){return this.getLineHeightFactor()*l.length*d/u+A+A},this).reduce(function(l,p){return Math.max(l,p)},0)};t.setTableHeaderRow=function(n){a.call(this),this.internal.__cell__.tableHeaderRow=n},t.printHeaderRow=function(n,r){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){A=this.internal.__cell__.tableHeaderRow[l].clone(),r&&(A.y=this.internal.__cell__.margins.top||0,u.push(A)),A.lineNumber=n;var p=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,A),this.setTextColor(p)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),e=!1}}(Dt.API);var y0={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},E0=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],df=v0(E0),B0=[100,200,300,400,500,600,700,800,900],ob=v0(B0);function hf(t){var f=t.family.replace(/"|'/g,"").toLowerCase(),e=function(s){return y0[s=s||"normal"]?s:"normal"}(t.style),a=function(s){if(!s)return 400;if(typeof s=="number")return s>=100&&s<=900&&s%100==0?s:400;if(/^\d00$/.test(s))return parseInt(s);switch(s){case"bold":return 700;case"normal":default:return 400}}(t.weight),c=function(s){return typeof df[s=s||"normal"]=="number"?s:"normal"}(t.stretch);return{family:f,style:e,weight:a,stretch:c,src:t.src||[],ref:t.ref||{name:f,style:[c,e,a].join(" ")}}}function bh(t,f,e,a){var c;for(c=e;c>=0&&c<f.length;c+=a)if(t[f[c]])return t[f[c]];for(c=e;c>=0&&c<f.length;c-=a)if(t[f[c]])return t[f[c]]}var Ab={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},vh={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yh(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function lb(t,f,e){for(var a=(e=e||{}).defaultFontFamily||"times",c=Object.assign({},Ab,e.genericFontFamilies||{}),s=null,i=null,o=0;o<f.length;++o)if(c[(s=hf(f[o])).family]&&(s.family=c[s.family]),t.hasOwnProperty(s.family)){i=t[s.family];break}if(!(i=i||t[a]))throw new Error("Could not find a font-family for the rule '"+yh(s)+"' and default family '"+a+"'.");if(i=function(n,r){if(r[n])return r[n];var A=df[n],d=A<=df.normal?-1:1,u=bh(r,E0,A,d);if(!u)throw new Error("Could not find a matching font-stretch value for "+n);return u}(s.stretch,i),i=function(n,r){if(r[n])return r[n];for(var A=y0[n],d=0;d<A.length;++d)if(r[A[d]])return r[A[d]];throw new Error("Could not find a matching font-style for "+n)}(s.style,i),!(i=function(n,r){if(r[n])return r[n];if(n===400&&r[500])return r[500];if(n===500&&r[400])return r[400];var A=ob[n],d=bh(r,B0,A,n<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+n);return d}(s.weight,i)))throw new Error("Failed to resolve a font for the rule '"+yh(s)+"'.");return i}function Eh(t){return t.trimLeft()}function ub(t,f){for(var e=0;e<t.length;){if(t.charAt(e)===f)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function cb(t){var f=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return f===null?null:[f[0],t.substring(f[0].length)]}var bl,Bh,Ch,vc=["times"];(function(t){var f,e,a,c,s,i,o,n,r,A=function(R){return R=R||{},this.isStrokeTransparent=R.isStrokeTransparent||!1,this.strokeOpacity=R.strokeOpacity||1,this.strokeStyle=R.strokeStyle||"#000000",this.fillStyle=R.fillStyle||"#000000",this.isFillTransparent=R.isFillTransparent||!1,this.fillOpacity=R.fillOpacity||1,this.font=R.font||"10px sans-serif",this.textBaseline=R.textBaseline||"alphabetic",this.textAlign=R.textAlign||"left",this.lineWidth=R.lineWidth||1,this.lineJoin=R.lineJoin||"miter",this.lineCap=R.lineCap||"butt",this.path=R.path||[],this.transform=R.transform!==void 0?R.transform.clone():new n,this.globalCompositeOperation=R.globalCompositeOperation||"normal",this.globalAlpha=R.globalAlpha||1,this.clip_path=R.clip_path||[],this.currentPoint=R.currentPoint||new i,this.miterLimit=R.miterLimit||10,this.lastPoint=R.lastPoint||new i,this.lineDashOffset=R.lineDashOffset||0,this.lineDash=R.lineDash||[],this.margin=R.margin||[0,0,0,0],this.prevPageLastElemOffset=R.prevPageLastElemOffset||0,this.ignoreClearRect=typeof R.ignoreClearRect!="boolean"||R.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),f=this.internal.f2,e=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,c=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,i=this.internal.Point,o=this.internal.Rectangle,n=this.internal.Matrix,r=new A}]);var d=function(R){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var V=R;Object.defineProperty(this,"pdf",{get:function(){return V}});var U=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return U},set:function(ue){U=!!ue}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(ue){q=!!ue}});var j=0;Object.defineProperty(this,"posX",{get:function(){return j},set:function(ue){isNaN(ue)||(j=ue)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(ue){isNaN(ue)||(Z=ue)}}),Object.defineProperty(this,"margin",{get:function(){return r.margin},set:function(ue){var te;typeof ue=="number"?te=[ue,ue,ue,ue]:((te=new Array(4))[0]=ue[0],te[1]=ue.length>=2?ue[1]:te[0],te[2]=ue.length>=3?ue[2]:te[0],te[3]=ue.length>=4?ue[3]:te[1]),r.margin=te}});var N=!1;Object.defineProperty(this,"autoPaging",{get:function(){return N},set:function(ue){N=ue}});var P=0;Object.defineProperty(this,"lastBreak",{get:function(){return P},set:function(ue){P=ue}});var K=[];Object.defineProperty(this,"pageBreaks",{get:function(){return K},set:function(ue){K=ue}}),Object.defineProperty(this,"ctx",{get:function(){return r},set:function(ue){ue instanceof A&&(r=ue)}}),Object.defineProperty(this,"path",{get:function(){return r.path},set:function(ue){r.path=ue}});var $=[];Object.defineProperty(this,"ctxStack",{get:function(){return $},set:function(ue){$=ue}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ue){var te;te=u(ue),this.ctx.fillStyle=te.style,this.ctx.isFillTransparent=te.a===0,this.ctx.fillOpacity=te.a,this.pdf.setFillColor(te.r,te.g,te.b,{a:te.a}),this.pdf.setTextColor(te.r,te.g,te.b,{a:te.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ue){var te=u(ue);this.ctx.strokeStyle=te.style,this.ctx.isStrokeTransparent=te.a===0,this.ctx.strokeOpacity=te.a,te.a===0?this.pdf.setDrawColor(255,255,255):(te.a,this.pdf.setDrawColor(te.r,te.g,te.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ue){["butt","round","square"].indexOf(ue)!==-1&&(this.ctx.lineCap=ue,this.pdf.setLineCap(ue))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ue){isNaN(ue)||(this.ctx.lineWidth=ue,this.pdf.setLineWidth(ue))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ue){["bevel","round","miter"].indexOf(ue)!==-1&&(this.ctx.lineJoin=ue,this.pdf.setLineJoin(ue))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ue){isNaN(ue)||(this.ctx.miterLimit=ue,this.pdf.setMiterLimit(ue))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ue){this.ctx.textBaseline=ue}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ue){["right","end","center","left","start"].indexOf(ue)!==-1&&(this.ctx.textAlign=ue)}});var se=null;function ee(ue,te){if(se===null){var ie=function(de){var ce=[];return Object.keys(de).forEach(function(we){de[we].forEach(function(ge){var be=null;switch(ge){case"bold":be={family:we,weight:"bold"};break;case"italic":be={family:we,style:"italic"};break;case"bolditalic":be={family:we,weight:"bold",style:"italic"};break;case"":case"normal":be={family:we}}be!==null&&(be.ref={name:we,style:ge},ce.push(be))})}),ce}(ue.getFontList());se=function(de){for(var ce={},we=0;we<de.length;++we){var ge=hf(de[we]),be=ge.family,Ce=ge.stretch,Qe=ge.style,_e=ge.weight;ce[be]=ce[be]||{},ce[be][Ce]=ce[be][Ce]||{},ce[be][Ce][Qe]=ce[be][Ce][Qe]||{},ce[be][Ce][Qe][_e]=ge}return ce}(ie.concat(te))}return se}var Ae=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ae},set:function(ue){se=null,Ae=ue}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ue){var te;if(this.ctx.font=ue,(te=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ue))!==null){var ie=te[1],de=(te[2],te[3]),ce=te[4],we=(te[5],te[6]),ge=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ce)[2];ce=Math.floor(ge==="px"?parseFloat(ce)*this.pdf.internal.scaleFactor:ge==="em"?parseFloat(ce)*this.pdf.getFontSize():parseFloat(ce)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ce);var be=function(Ke){var et,ke,ct=[],He=Ke.trim();if(He==="")return vc;if(He in vh)return[vh[He]];for(;He!=="";){switch(ke=null,et=(He=Eh(He)).charAt(0)){case'"':case"'":ke=ub(He.substring(1),et);break;default:ke=cb(He)}if(ke===null||(ct.push(ke[0]),(He=Eh(ke[1]))!==""&&He.charAt(0)!==","))return vc;He=He.replace(/^,/,"")}return ct}(we);if(this.fontFaces){var Ce=lb(ee(this.pdf,this.fontFaces),be.map(function(Ke){return{family:Ke,stretch:"normal",weight:de,style:ie}}));this.pdf.setFont(Ce.ref.name,Ce.ref.style)}else{var Qe="";(de==="bold"||parseInt(de,10)>=700||ie==="bold")&&(Qe="bold"),ie==="italic"&&(Qe+="italic"),Qe.length===0&&(Qe="normal");for(var _e="",Te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ge=0;Ge<be.length;Ge++){if(this.pdf.internal.getFont(be[Ge],Qe,{noFallback:!0,disableWarning:!0})!==void 0){_e=be[Ge];break}if(Qe==="bolditalic"&&this.pdf.internal.getFont(be[Ge],"bold",{noFallback:!0,disableWarning:!0})!==void 0)_e=be[Ge],Qe="bold";else if(this.pdf.internal.getFont(be[Ge],"normal",{noFallback:!0,disableWarning:!0})!==void 0){_e=be[Ge],Qe="normal";break}}if(_e===""){for(var Ve=0;Ve<be.length;Ve++)if(Te[be[Ve]]){_e=Te[be[Ve]];break}}_e=_e===""?"Times":_e,this.pdf.setFont(_e,Qe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ue){this.ctx.globalCompositeOperation=ue}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ue){this.ctx.globalAlpha=ue}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ue){this.ctx.lineDashOffset=ue,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ue){this.ctx.lineDash=ue,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ue){this.ctx.ignoreClearRect=!!ue}})};d.prototype.setLineDash=function(R){this.lineDash=R},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){x.call(this,"fill",!1)},d.prototype.stroke=function(){x.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var U=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"mt",x:U.x,y:U.y}),this.ctx.lastPoint=new i(R,V)},d.prototype.closePath=function(){var R=new i(0,0),V=0;for(V=this.path.length-1;V!==-1;V--)if(this.path[V].type==="begin"&&wr(this.path[V+1])==="object"&&typeof this.path[V+1].x=="number"){R=new i(this.path[V+1].x,this.path[V+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new i(R.x,R.y)},d.prototype.lineTo=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var U=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"lt",x:U.x,y:U.y}),this.ctx.lastPoint=new i(U.x,U.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},d.prototype.quadraticCurveTo=function(R,V,U,q){if(isNaN(U)||isNaN(q)||isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var j=this.ctx.transform.applyToPoint(new i(U,q)),Z=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:j.x,y:j.y}),this.ctx.lastPoint=new i(j.x,j.y)},d.prototype.bezierCurveTo=function(R,V,U,q,j,Z){if(isNaN(j)||isNaN(Z)||isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var N=this.ctx.transform.applyToPoint(new i(j,Z)),P=this.ctx.transform.applyToPoint(new i(R,V)),K=this.ctx.transform.applyToPoint(new i(U,q));this.path.push({type:"bct",x1:P.x,y1:P.y,x2:K.x,y2:K.y,x:N.x,y:N.y}),this.ctx.lastPoint=new i(N.x,N.y)},d.prototype.arc=function(R,V,U,q,j,Z){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q)||isNaN(j))throw Cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Z=!!Z,!this.ctx.transform.isIdentity){var N=this.ctx.transform.applyToPoint(new i(R,V));R=N.x,V=N.y;var P=this.ctx.transform.applyToPoint(new i(0,U)),K=this.ctx.transform.applyToPoint(new i(0,0));U=Math.sqrt(Math.pow(P.x-K.x,2)+Math.pow(P.y-K.y,2))}Math.abs(j-q)>=2*Math.PI&&(q=0,j=2*Math.PI),this.path.push({type:"arc",x:R,y:V,radius:U,startAngle:q,endAngle:j,counterclockwise:Z})},d.prototype.arcTo=function(R,V,U,q,j){throw new Error("arcTo not implemented.")},d.prototype.rect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(R,V),this.lineTo(R+U,V),this.lineTo(R+U,V+q),this.lineTo(R,V+q),this.lineTo(R,V),this.lineTo(R+U,V),this.lineTo(R,V)},d.prototype.fillRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!l.call(this)){var j={};this.lineCap!=="butt"&&(j.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(j.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(R,V,U,q),this.fill(),j.hasOwnProperty("lineCap")&&(this.lineCap=j.lineCap),j.hasOwnProperty("lineJoin")&&(this.lineJoin=j.lineJoin)}},d.prototype.strokeRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(R,V,U,q),this.stroke())},d.prototype.clearRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(R,V,U,q))},d.prototype.save=function(R){R=typeof R!="boolean"||R;for(var V=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("q");if(this.pdf.setPage(V),R){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},d.prototype.restore=function(R){R=typeof R!="boolean"||R;for(var V=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("Q");this.pdf.setPage(V),R&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(R){var V,U,q,j;if(R.isCanvasGradient===!0&&(R=R.getColor()),!R)return{r:0,g:0,b:0,a:0,style:R};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(R))V=0,U=0,q=0,j=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(R);if(Z!==null)V=parseInt(Z[1]),U=parseInt(Z[2]),q=parseInt(Z[3]),j=1;else if((Z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(R))!==null)V=parseInt(Z[1]),U=parseInt(Z[2]),q=parseInt(Z[3]),j=parseFloat(Z[4]);else{if(j=1,typeof R=="string"&&R.charAt(0)!=="#"){var N=new h0(R);R=N.ok?N.toHex():"#000000"}R.length===4?(V=R.substring(1,2),V+=V,U=R.substring(2,3),U+=U,q=R.substring(3,4),q+=q):(V=R.substring(1,3),U=R.substring(3,5),q=R.substring(5,7)),V=parseInt(V,16),U=parseInt(U,16),q=parseInt(q,16)}}return{r:V,g:U,b:q,a:j,style:R}},l=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},p=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(R,V,U,q){if(isNaN(V)||isNaN(U)||typeof R!="string")throw Cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!l.call(this)){var j=E(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;D.call(this,{text:R,x:V,y:U,scale:Z,angle:j,align:this.textAlign,maxWidth:q})}},d.prototype.strokeText=function(R,V,U,q){if(isNaN(V)||isNaN(U)||typeof R!="string")throw Cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){q=isNaN(q)?void 0:q;var j=E(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;D.call(this,{text:R,x:V,y:U,scale:Z,renderingMode:"stroke",angle:j,align:this.textAlign,maxWidth:q})}},d.prototype.measureText=function(R){if(typeof R!="string")throw Cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var V=this.pdf,U=this.pdf.internal.scaleFactor,q=V.internal.getFontSize(),j=V.getStringUnitWidth(R)*q/V.internal.scaleFactor,Z=function(N){var P=(N=N||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return P}}),this};return new Z({width:j*=Math.round(96*U/72*1e4)/1e4})},d.prototype.scale=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var U=new n(R,0,0,V,0,0);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.rotate=function(R){if(isNaN(R))throw Cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var V=new n(Math.cos(R),Math.sin(R),-Math.sin(R),Math.cos(R),0,0);this.ctx.transform=this.ctx.transform.multiply(V)},d.prototype.translate=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var U=new n(1,0,0,1,R,V);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.transform=function(R,V,U,q,j,Z){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q)||isNaN(j)||isNaN(Z))throw Cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var N=new n(R,V,U,q,j,Z);this.ctx.transform=this.ctx.transform.multiply(N)},d.prototype.setTransform=function(R,V,U,q,j,Z){R=isNaN(R)?1:R,V=isNaN(V)?0:V,U=isNaN(U)?0:U,q=isNaN(q)?1:q,j=isNaN(j)?0:j,Z=isNaN(Z)?0:Z,this.ctx.transform=new n(R,V,U,q,j,Z)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(R,V,U,q,j,Z,N,P,K){var $=this.pdf.getImageProperties(R),se=1,ee=1,Ae=1,ue=1;q!==void 0&&P!==void 0&&(Ae=P/q,ue=K/j,se=$.width/q*P/q,ee=$.height/j*K/j),Z===void 0&&(Z=V,N=U,V=0,U=0),q!==void 0&&P===void 0&&(P=q,K=j),q===void 0&&P===void 0&&(P=$.width,K=$.height);for(var te,ie=this.ctx.transform.decompose(),de=E(ie.rotate.shx),ce=new n,we=(ce=(ce=(ce=ce.multiply(ie.translate)).multiply(ie.skew)).multiply(ie.scale)).applyToRectangle(new o(Z-V*Ae,N-U*ue,q*se,j*ee)),ge=h.call(this,we),be=[],Ce=0;Ce<ge.length;Ce+=1)be.indexOf(ge[Ce])===-1&&be.push(ge[Ce]);if(v(be),this.autoPaging)for(var Qe=be[0],_e=be[be.length-1],Te=Qe;Te<_e+1;Te++){this.pdf.setPage(Te);var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ve=Te===1?this.posY+this.margin[0]:this.margin[0],Ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ke=Te===1?0:Ke+(Te-2)*et;if(this.ctx.clip_path.length!==0){var ct=this.path;te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(te,this.posX+this.margin[3],-ke+Ve+this.ctx.prevPageLastElemOffset),L.call(this,"fill",!0),this.path=ct}var He=JSON.parse(JSON.stringify(we));He=w([He],this.posX+this.margin[3],-ke+Ve+this.ctx.prevPageLastElemOffset)[0];var Ze=(Te>Qe||Te<_e)&&m.call(this);Ze&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,et,null).clip().discardPath()),this.pdf.addImage(R,"JPEG",He.x,He.y,He.w,He.h,null,null,de),Ze&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(R,"JPEG",we.x,we.y,we.w,we.h,null,null,de)};var h=function(R,V,U){var q=[];V=V||this.pdf.internal.pageSize.width,U=U||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var j=this.posY+this.ctx.prevPageLastElemOffset;switch(R.type){default:case"mt":case"lt":q.push(Math.floor((R.y+j)/U)+1);break;case"arc":q.push(Math.floor((R.y+j-R.radius)/U)+1),q.push(Math.floor((R.y+j+R.radius)/U)+1);break;case"qct":var Z=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,R.x1,R.y1,R.x,R.y);q.push(Math.floor((Z.y+j)/U)+1),q.push(Math.floor((Z.y+Z.h+j)/U)+1);break;case"bct":var N=S(this.ctx.lastPoint.x,this.ctx.lastPoint.y,R.x1,R.y1,R.x2,R.y2,R.x,R.y);q.push(Math.floor((N.y+j)/U)+1),q.push(Math.floor((N.y+N.h+j)/U)+1);break;case"rect":q.push(Math.floor((R.y+j)/U)+1),q.push(Math.floor((R.y+R.h+j)/U)+1)}for(var P=0;P<q.length;P+=1)for(;this.pdf.internal.getNumberOfPages()<q[P];)g.call(this);return q},g=function(){var R=this.fillStyle,V=this.strokeStyle,U=this.font,q=this.lineCap,j=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=R,this.strokeStyle=V,this.font=U,this.lineCap=q,this.lineWidth=j,this.lineJoin=Z},w=function(R,V,U){for(var q=0;q<R.length;q++)switch(R[q].type){case"bct":R[q].x2+=V,R[q].y2+=U;case"qct":R[q].x1+=V,R[q].y1+=U;case"mt":case"lt":case"arc":default:R[q].x+=V,R[q].y+=U}return R},v=function(R){return R.sort(function(V,U){return V-U})},x=function(R,V){for(var U,q,j=this.fillStyle,Z=this.strokeStyle,N=this.lineCap,P=this.lineWidth,K=Math.abs(P*this.ctx.transform.scaleX),$=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),ee=JSON.parse(JSON.stringify(this.path)),Ae=[],ue=0;ue<ee.length;ue++)if(ee[ue].x!==void 0)for(var te=h.call(this,ee[ue]),ie=0;ie<te.length;ie+=1)Ae.indexOf(te[ie])===-1&&Ae.push(te[ie]);for(var de=0;de<Ae.length;de++)for(;this.pdf.internal.getNumberOfPages()<Ae[de];)g.call(this);if(v(Ae),this.autoPaging)for(var ce=Ae[0],we=Ae[Ae.length-1],ge=ce;ge<we+1;ge++){this.pdf.setPage(ge),this.fillStyle=j,this.strokeStyle=Z,this.lineCap=N,this.lineWidth=K,this.lineJoin=$;var be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ce=ge===1?this.posY+this.margin[0]:this.margin[0],Qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Te=ge===1?0:Qe+(ge-2)*_e;if(this.ctx.clip_path.length!==0){var Ge=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(U,this.posX+this.margin[3],-Te+Ce+this.ctx.prevPageLastElemOffset),L.call(this,R,!0),this.path=Ge}if(q=JSON.parse(JSON.stringify(se)),this.path=w(q,this.posX+this.margin[3],-Te+Ce+this.ctx.prevPageLastElemOffset),V===!1||ge===0){var Ve=(ge>ce||ge<we)&&m.call(this);Ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],be,_e,null).clip().discardPath()),L.call(this,R,V),Ve&&this.pdf.restoreGraphicsState()}this.lineWidth=P}else this.lineWidth=K,L.call(this,R,V),this.lineWidth=P;this.path=se},L=function(R,V){if((R!=="stroke"||V||!p.call(this))&&(R==="stroke"||V||!l.call(this))){for(var U,q,j=[],Z=this.path,N=0;N<Z.length;N++){var P=Z[N];switch(P.type){case"begin":j.push({begin:!0});break;case"close":j.push({close:!0});break;case"mt":j.push({start:P,deltas:[],abs:[]});break;case"lt":var K=j.length;if(Z[N-1]&&!isNaN(Z[N-1].x)&&(U=[P.x-Z[N-1].x,P.y-Z[N-1].y],K>0)){for(;K>=0;K--)if(j[K-1].close!==!0&&j[K-1].begin!==!0){j[K-1].deltas.push(U),j[K-1].abs.push(P);break}}break;case"bct":U=[P.x1-Z[N-1].x,P.y1-Z[N-1].y,P.x2-Z[N-1].x,P.y2-Z[N-1].y,P.x-Z[N-1].x,P.y-Z[N-1].y],j[j.length-1].deltas.push(U);break;case"qct":var $=Z[N-1].x+2/3*(P.x1-Z[N-1].x),se=Z[N-1].y+2/3*(P.y1-Z[N-1].y),ee=P.x+2/3*(P.x1-P.x),Ae=P.y+2/3*(P.y1-P.y),ue=P.x,te=P.y;U=[$-Z[N-1].x,se-Z[N-1].y,ee-Z[N-1].x,Ae-Z[N-1].y,ue-Z[N-1].x,te-Z[N-1].y],j[j.length-1].deltas.push(U);break;case"arc":j.push({deltas:[],abs:[],arc:!0}),Array.isArray(j[j.length-1].abs)&&j[j.length-1].abs.push(P)}}q=V?null:R==="stroke"?"stroke":"fill";for(var ie=!1,de=0;de<j.length;de++)if(j[de].arc)for(var ce=j[de].abs,we=0;we<ce.length;we++){var ge=ce[we];ge.type==="arc"?F.call(this,ge.x,ge.y,ge.radius,ge.startAngle,ge.endAngle,ge.counterclockwise,void 0,V,!ie):I.call(this,ge.x,ge.y),ie=!0}else if(j[de].close===!0)this.pdf.internal.out("h"),ie=!1;else if(j[de].begin!==!0){var be=j[de].start.x,Ce=j[de].start.y;M.call(this,j[de].deltas,be,Ce),ie=!0}q&&O.call(this,q),V&&W.call(this)}},k=function(R){var V=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,U=V*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return R-U;case"top":return R+V-U;case"hanging":return R+V-2*U;case"middle":return R+V/2-U;case"ideographic":return R;case"alphabetic":default:return R}},Y=function(R){return R+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var R=function(){};return R.colorStops=[],R.addColorStop=function(V,U){this.colorStops.push([V,U])},R.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},R.isCanvasGradient=!0,R},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(R,V,U,q,j,Z,N,P,K){for(var $=b.call(this,U,q,j,Z),se=0;se<$.length;se++){var ee=$[se];se===0&&(K?G.call(this,ee.x1+R,ee.y1+V):I.call(this,ee.x1+R,ee.y1+V)),C.call(this,R,V,ee.x2,ee.y2,ee.x3,ee.y3,ee.x4,ee.y4)}P?W.call(this):O.call(this,N)},O=function(R){switch(R){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},W=function(){this.pdf.clip(),this.pdf.discardPath()},G=function(R,V){this.pdf.internal.out(e(R)+" "+a(V)+" m")},D=function(R){var V;switch(R.align){case"right":case"end":V="right";break;case"center":V="center";break;case"left":case"start":default:V="left"}var U=this.pdf.getTextDimensions(R.text),q=k.call(this,R.y),j=Y.call(this,q)-U.h,Z=this.ctx.transform.applyToPoint(new i(R.x,q)),N=this.ctx.transform.decompose(),P=new n;P=(P=(P=P.multiply(N.translate)).multiply(N.skew)).multiply(N.scale);for(var K,$,se,ee=this.ctx.transform.applyToRectangle(new o(R.x,q,U.w,U.h)),Ae=P.applyToRectangle(new o(R.x,j,U.w,U.h)),ue=h.call(this,Ae),te=[],ie=0;ie<ue.length;ie+=1)te.indexOf(ue[ie])===-1&&te.push(ue[ie]);if(v(te),this.autoPaging)for(var de=te[0],ce=te[te.length-1],we=de;we<ce+1;we++){this.pdf.setPage(we);var ge=we===1?this.posY+this.margin[0]:this.margin[0],be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ce=this.pdf.internal.pageSize.height-this.margin[2],Qe=Ce-this.margin[0],_e=this.pdf.internal.pageSize.width-this.margin[1],Te=_e-this.margin[3],Ge=we===1?0:be+(we-2)*Qe;if(this.ctx.clip_path.length!==0){var Ve=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(K,this.posX+this.margin[3],-1*Ge+ge),L.call(this,"fill",!0),this.path=Ve}var Ke=w([JSON.parse(JSON.stringify(Ae))],this.posX+this.margin[3],-Ge+ge+this.ctx.prevPageLastElemOffset)[0];R.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*R.scale),se=this.lineWidth,this.lineWidth=se*R.scale);var et=this.autoPaging!=="text";if(et||Ke.y+Ke.h<=Ce){if(et||Ke.y>=ge&&Ke.x<=_e){var ke=et?R.text:this.pdf.splitTextToSize(R.text,R.maxWidth||_e-Ke.x)[0],ct=w([JSON.parse(JSON.stringify(ee))],this.posX+this.margin[3],-Ge+ge+this.ctx.prevPageLastElemOffset)[0],He=et&&(we>de||we<ce)&&m.call(this);He&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Te,Qe,null).clip().discardPath()),this.pdf.text(ke,ct.x,ct.y,{angle:R.angle,align:V,renderingMode:R.renderingMode}),He&&this.pdf.restoreGraphicsState()}}else Ke.y<Ce&&(this.ctx.prevPageLastElemOffset+=Ce-Ke.y);R.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=se)}else R.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*R.scale),se=this.lineWidth,this.lineWidth=se*R.scale),this.pdf.text(R.text,Z.x+this.posX,Z.y+this.posY,{angle:R.angle,align:V,renderingMode:R.renderingMode,maxWidth:R.maxWidth}),R.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=se)},I=function(R,V,U,q){U=U||0,q=q||0,this.pdf.internal.out(e(R+U)+" "+a(V+q)+" l")},M=function(R,V,U){return this.pdf.lines(R,V,U,null,null)},C=function(R,V,U,q,j,Z,N,P){this.pdf.internal.out([f(c(U+R)),f(s(q+V)),f(c(j+R)),f(s(Z+V)),f(c(N+R)),f(s(P+V)),"c"].join(" "))},b=function(R,V,U,q){for(var j=2*Math.PI,Z=Math.PI/2;V>U;)V-=j;var N=Math.abs(U-V);N<j&&q&&(N=j-N);for(var P=[],K=q?-1:1,$=V;N>1e-5;){var se=$+K*Math.min(N,Z);P.push(y.call(this,R,$,se)),N-=Math.abs(se-$),$=se}return P},y=function(R,V,U){var q=(U-V)/2,j=R*Math.cos(q),Z=R*Math.sin(q),N=j,P=-Z,K=N*N+P*P,$=K+N*j+P*Z,se=4/3*(Math.sqrt(2*K*$)-$)/(N*Z-P*j),ee=N-se*P,Ae=P+se*N,ue=ee,te=-Ae,ie=q+V,de=Math.cos(ie),ce=Math.sin(ie);return{x1:R*Math.cos(V),y1:R*Math.sin(V),x2:ee*de-Ae*ce,y2:ee*ce+Ae*de,x3:ue*de-te*ce,y3:ue*ce+te*de,x4:R*Math.cos(U),y4:R*Math.sin(U)}},E=function(R){return 180*R/Math.PI},B=function(R,V,U,q,j,Z){var N=R+.5*(U-R),P=V+.5*(q-V),K=j+.5*(U-j),$=Z+.5*(q-Z),se=Math.min(R,j,N,K),ee=Math.max(R,j,N,K),Ae=Math.min(V,Z,P,$),ue=Math.max(V,Z,P,$);return new o(se,Ae,ee-se,ue-Ae)},S=function(R,V,U,q,j,Z,N,P){var K,$,se,ee,Ae,ue,te,ie,de,ce,we,ge,be,Ce,Qe=U-R,_e=q-V,Te=j-U,Ge=Z-q,Ve=N-j,Ke=P-Z;for($=0;$<41;$++)de=(te=(se=R+(K=$/40)*Qe)+K*((Ae=U+K*Te)-se))+K*(Ae+K*(j+K*Ve-Ae)-te),ce=(ie=(ee=V+K*_e)+K*((ue=q+K*Ge)-ee))+K*(ue+K*(Z+K*Ke-ue)-ie),$==0?(we=de,ge=ce,be=de,Ce=ce):(we=Math.min(we,de),ge=Math.min(ge,ce),be=Math.max(be,de),Ce=Math.max(Ce,ce));return new o(Math.round(we),Math.round(ge),Math.round(be-we),Math.round(Ce-ge))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var R,V,U=(R=this.ctx.lineDash,V=this.ctx.lineDashOffset,JSON.stringify({lineDash:R,lineDashOffset:V}));this.prevLineDash!==U&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=U)}}})(Dt.API),function(t){var f=function(s){var i,o,n,r,A,d,u,l,p,m;for(o=[],n=0,r=(s+=i="\0\0\0\0".slice(s.length%4||4)).length;r>n;n+=4)(A=(s.charCodeAt(n)<<24)+(s.charCodeAt(n+1)<<16)+(s.charCodeAt(n+2)<<8)+s.charCodeAt(n+3))!==0?(d=(A=((A=((A=((A=(A-(m=A%85))/85)-(p=A%85))/85)-(l=A%85))/85)-(u=A%85))/85)%85,o.push(d+33,u+33,l+33,p+33,m+33)):o.push(122);return function(h,g){for(var w=g;w>0;w--)h.pop()}(o,i.length),String.fromCharCode.apply(String,o)+"~>"},e=function(s){var i,o,n,r,A,d=String,u="length",l=255,p="charCodeAt",m="slice",h="replace";for(s[m](-2),s=s[m](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],r=0,A=(s+=i="uuuuu"[m](s[u]%5||5))[u];A>r;r+=5)o=52200625*(s[p](r)-33)+614125*(s[p](r+1)-33)+7225*(s[p](r+2)-33)+85*(s[p](r+3)-33)+(s[p](r+4)-33),n.push(l&o>>24,l&o>>16,l&o>>8,l&o);return function(g,w){for(var v=w;v>0;v--)g.pop()}(n,i[u]),d.fromCharCode.apply(d,n)},a=function(s){var i=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),i.test(s)===!1)return"";for(var o="",n=0;n<s.length;n+=2)o+=String.fromCharCode("0x"+(s[n]+s[n+1]));return o},c=function(s){for(var i=new Uint8Array(s.length),o=s.length;o--;)i[o]=s.charCodeAt(o);return s=(i=Af(i)).reduce(function(n,r){return n+String.fromCharCode(r)},"")};t.processDataByFilters=function(s,i){var o=0,n=s||"",r=[];for(typeof(i=i||[])=="string"&&(i=[i]),o=0;o<i.length;o+=1)switch(i[o]){case"ASCII85Decode":case"/ASCII85Decode":n=e(n),r.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":n=f(n),r.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":n=a(n),r.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":n=n.split("").map(function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)}).join("")+">",r.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":n=c(n),r.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[o]+'" is not implemented')}return{data:n,reverseChain:r.reverse().join(" ")}}}(Dt.API),function(t){t.loadFile=function(f,e,a){return function(c,s,i){s=s!==!1,i=typeof i=="function"?i:function(){};var o=void 0;try{o=function(n,r,A){var d=new XMLHttpRequest,u=0,l=function(p){var m=p.length,h=[],g=String.fromCharCode;for(u=0;u<m;u+=1)h.push(g(255&p.charCodeAt(u)));return h.join("")};if(d.open("GET",n,!r),d.overrideMimeType("text/plain; charset=x-user-defined"),r===!1&&(d.onload=function(){d.status===200?A(l(this.responseText)):A(void 0)}),d.send(null),r&&d.status===200)return l(d.responseText)}(c,s,i)}catch{}return o}(f,e,a)},t.loadImageFile=t.loadFile}(Dt.API),function(t){function f(){return(Nt.html2canvas?Promise.resolve(Nt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-BA_v9SIU.cjs"))).catch(function(i){return Promise.reject(new Error("Could not load html2canvas: "+i))}).then(function(i){return i.default?i.default:i})}function e(){return(Nt.DOMPurify?Promise.resolve(Nt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-BJHiDXdY.cjs"))).catch(function(i){return Promise.reject(new Error("Could not load dompurify: "+i))}).then(function(i){return i.default?i.default:i})}var a=function(i){var o=wr(i);return o==="undefined"?"undefined":o==="string"||i instanceof String?"string":o==="number"||i instanceof Number?"number":o==="function"||i instanceof Function?"function":i&&i.constructor===Array?"array":i&&i.nodeType===1?"element":o==="object"?"object":"unknown"},c=function(i,o){var n=document.createElement(i);for(var r in o.className&&(n.className=o.className),o.innerHTML&&o.dompurify&&(n.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)n.style[r]=o.style[r];return n},s=function i(o){var n=Object.assign(i.convert(Promise.resolve()),JSON.parse(JSON.stringify(i.template))),r=i.convert(Promise.resolve(),n);return r=(r=r.setProgress(1,i,1,[i])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(i,o){return i.__proto__=o||s.prototype,i},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(i,o){return this.then(function(){switch(o=o||function(n){switch(a(n)){case"string":return"string";case"element":return n.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(i)){case"string":return this.then(e).then(function(n){return this.set({src:c("div",{innerHTML:i,dompurify:n})})});case"element":return this.set({src:i});case"canvas":return this.set({canvas:i});case"img":return this.set({img:i});default:return this.error("Unknown source type.")}})},s.prototype.to=function(i){switch(i){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var i={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=function n(r,A){for(var d=r.nodeType===3?document.createTextNode(r.nodeValue):r.cloneNode(!1),u=r.firstChild;u;u=u.nextSibling)A!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||d.appendChild(n(u,A));return r.nodeType===1&&(r.nodeName==="CANVAS"?(d.width=r.width,d.height=r.height,d.getContext("2d").drawImage(r,0,0)):r.nodeName!=="TEXTAREA"&&r.nodeName!=="SELECT"||(d.value=r.value),d.addEventListener("load",function(){d.scrollTop=r.scrollTop,d.scrollLeft=r.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(i.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=c("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=c("div",{className:"html2pdf__container",style:i}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(c("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var i=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(i).then(f).then(function(o){var n=Object.assign({},this.opt.html2canvas);return delete n.onrendered,o(this.prop.container,n)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var i=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(i).then(f).then(function(o){var n=this.opt.jsPDF,r=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,n.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,n.context2d.posX=this.opt.x,n.context2d.posY=this.opt.y,n.context2d.margin=this.opt.margin,n.context2d.fontFaces=r,r)for(var u=0;u<r.length;++u){var l=r[u],p=l.src.find(function(m){return m.format==="truetype"});p&&n.addFont(p.url,l.ref.name,l.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,n.context2d.save(!0),o(this.prop.container,d)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var i=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=i})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(i,o,n){return(n=n||"pdf").toLowerCase()==="img"||n.toLowerCase()==="image"?this.outputImg(i,o):this.outputPdf(i,o)},s.prototype.outputPdf=function(i,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(i,o)})},s.prototype.outputImg=function(i){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(i){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+i+'" is not supported.'}})},s.prototype.save=function(i){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(i?{filename:i}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(i){if(a(i)!=="object")return this;var o=Object.keys(i||{}).map(function(n){if(n in s.template.prop)return function(){this.prop[n]=i[n]};switch(n){case"margin":return this.setMargin.bind(this,i.margin);case"jsPDF":return function(){return this.opt.jsPDF=i.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,i.pageSize);default:return function(){this.opt[n]=i[n]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(i,o){return this.then(function(){var n=i in s.template.prop?this.prop[i]:this.opt[i];return o?o(n):n})},s.prototype.setMargin=function(i){return this.then(function(){switch(a(i)){case"number":i=[i,i,i,i];case"array":if(i.length===2&&(i=[i[0],i[1],i[0],i[1]]),i.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=i}).then(this.setPageSize)},s.prototype.setPageSize=function(i){function o(n,r){return Math.floor(n*r/72*96)}return this.then(function(){(i=i||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(i.inner={width:i.width-this.opt.margin[1]-this.opt.margin[3],height:i.height-this.opt.margin[0]-this.opt.margin[2]},i.inner.px={width:o(i.inner.width,i.k),height:o(i.inner.height,i.k)},i.inner.ratio=i.inner.height/i.inner.width),this.prop.pageSize=i})},s.prototype.setProgress=function(i,o,n,r){return i!=null&&(this.progress.val=i),o!=null&&(this.progress.state=o),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(i,o,n,r){return this.setProgress(i?this.progress.val+i:null,o||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(i,o){var n=this;return this.thenCore(i,o,function(r,A){return n.updateProgress(null,null,1,[r]),Promise.prototype.then.call(this,function(d){return n.updateProgress(null,r),d}).then(r,A).then(function(d){return n.updateProgress(1),d})})},s.prototype.thenCore=function(i,o,n){n=n||Promise.prototype.then,i&&(i=i.bind(this)),o&&(o=o.bind(this));var r=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:s.convert(Object.assign({},this),Promise.prototype),A=n.call(r,i,o);return s.convert(A,this.__proto__)},s.prototype.thenExternal=function(i,o){return Promise.prototype.then.call(this,i,o)},s.prototype.thenList=function(i){var o=this;return i.forEach(function(n){o=o.thenCore(n)}),o},s.prototype.catch=function(i){i&&(i=i.bind(this));var o=Promise.prototype.catch.call(this,i);return s.convert(o,this)},s.prototype.catchExternal=function(i){return Promise.prototype.catch.call(this,i)},s.prototype.error=function(i){return this.then(function(){throw new Error(i)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Dt.getPageSize=function(i,o,n){if(wr(i)==="object"){var r=i;i=r.orientation,o=r.unit||o,n=r.format||n}o=o||"mm",n=n||"a4",i=(""+(i||"P")).toLowerCase();var A,d=(""+n).toLowerCase(),u={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+o}var l,p=0,m=0;if(u.hasOwnProperty(d))p=u[d][1]/A,m=u[d][0]/A;else try{p=n[1],m=n[0]}catch{throw new Error("Invalid format: "+n)}if(i==="p"||i==="portrait")i="p",m>p&&(l=m,m=p,p=l);else{if(i!=="l"&&i!=="landscape")throw"Invalid orientation: "+i;i="l",p>m&&(l=m,m=p,p=l)}return{width:m,height:p,unit:o,k:A,orientation:i}},t.html=function(i,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(hf):null;var n=new s(o);return o.worker?n:n.from(i).doCallback()}}(Dt.API),Dt.API.addJS=function(t){return Ch=t,this.internal.events.subscribe("postPutResources",function(){bl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(bl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Bh=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ch+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){bl!==void 0&&Bh!==void 0&&this.internal.out("/Names <</JavaScript "+bl+" 0 R>>")}),this},function(t){var f;t.events.push(["postPutResources",function(){var e=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var c=e.outline.render().split(/\r\n/),s=0;s<c.length;s++){var i=c[s],o=a.exec(i);if(o!=null){var n=o[1];e.internal.newObjectDeferredBegin(n,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var r=this.internal.pages.length,A=[];for(s=0;s<r;s++){var d=e.internal.newObject();A.push(d);var u=e.internal.getPageInfo(s+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var l=e.internal.newObject();for(e.internal.write("<< /Names [ "),s=0;s<A.length;s++)e.internal.write("(page_"+(s+1)+")"+A[s]+" 0 R");e.internal.write(" ] >>","endobj"),f=e.internal.newObject(),e.internal.write("<< /Dests "+l+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+f+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(a,c,s){var i={title:c,options:s,children:[]};return a==null&&(a=this.root),a.children.push(i),i},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(a){a.id=e.internal.newObjectDeferred();for(var c=0;c<a.children.length;c++)this.genIds_r(a.children[c])},e.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},e.outline.renderItems=function(a){for(var c=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<a.children.length;s++){var i=a.children[s];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(a)),s>0&&this.line("/Prev "+this.makeRef(a.children[s-1])),s<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[s+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var n=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+n.objId+" 0 R /XYZ 0 "+c(0)+" 0]")}this.objEnd()}for(var r=0;r<a.children.length;r++)this.renderItems(a.children[r])},e.outline.line=function(a){this.ctx.val+=a+`\r
|
|
179
|
+
`),f}}},createDefaultAppearanceStream:function(t){var f=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+f+" "+t.fontSize+" Tf "+e}};vt.internal={Bezier_C:.551915024494,calculateCross:function(t){var f=vt.internal.getWidth(t),e=vt.internal.getHeight(t),a=Math.min(f,e);return{x1:{x:(f-a)/2,y:(e-a)/2+a},x2:{x:(f-a)/2+a,y:(e-a)/2},x3:{x:(f-a)/2,y:(e-a)/2},x4:{x:(f-a)/2+a,y:(e-a)/2+a}}}},vt.internal.getWidth=function(t){var f=0;return wr(t)==="object"&&(f=wh(t.Rect[2])),f},vt.internal.getHeight=function(t){var f=0;return wr(t)==="object"&&(f=wh(t.Rect[3])),f};var sb=jr.addField=function(t){if(ib(this,t),!(t instanceof Ii))throw new Error("Invalid argument passed to jsPDF.addField.");var f;return(f=t).scope.internal.acroformPlugin.printedOut&&(f.scope.internal.acroformPlugin.printedOut=!1,f.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),f.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(f),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};jr.AcroFormChoiceField=pa,jr.AcroFormListBox=ma,jr.AcroFormComboBox=ga,jr.AcroFormEditBox=aA,jr.AcroFormButton=on,jr.AcroFormPushButton=oA,jr.AcroFormRadioButton=wa,jr.AcroFormCheckBox=AA,jr.AcroFormTextField=zs,jr.AcroFormPasswordField=lA,jr.AcroFormAppearance=vt,jr.AcroForm={ChoiceField:pa,ListBox:ma,ComboBox:ga,EditBox:aA,Button:on,PushButton:oA,RadioButton:wa,CheckBox:AA,TextField:zs,PasswordField:lA,Appearance:vt},Dt.AcroForm={ChoiceField:pa,ListBox:ma,ComboBox:ga,EditBox:aA,Button:on,PushButton:oA,RadioButton:wa,CheckBox:AA,TextField:zs,PasswordField:lA,Appearance:vt};var ab=Dt.AcroForm;function v0(t){return t.reduce(function(f,e,a){return f[e]=a,f},{})}(function(t){t.__addimage__={};var f="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=t.__addimage__.getImageFileTypeByImageData=function(G,D){var I,M,C,b,y,E=f;if((D=D||f)==="RGBA"||G.data!==void 0&&G.data instanceof Uint8ClampedArray&&"height"in G&&"width"in G)return"RGBA";if(k(G))for(y in e)for(C=e[y],I=0;I<C.length;I+=1){for(b=!0,M=0;M<C[I].length;M+=1)if(C[I][M]!==void 0&&C[I][M]!==G[M]){b=!1;break}if(b===!0){E=y;break}}else for(y in e)for(C=e[y],I=0;I<C.length;I+=1){for(b=!0,M=0;M<C[I].length;M+=1)if(C[I][M]!==void 0&&C[I][M]!==G.charCodeAt(M)){b=!1;break}if(b===!0){E=y;break}}return E===f&&D!==f&&(E=D),E},c=function G(D){for(var I=this.internal.write,M=this.internal.putStream,C=(0,this.internal.getFilters)();C.indexOf("FlateEncode")!==-1;)C.splice(C.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var b=[];if(b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Image"}),b.push({key:"Width",value:D.width}),b.push({key:"Height",value:D.height}),D.colorSpace===h.INDEXED?b.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(b.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===h.DEVICE_CMYK&&b.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),b.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&b.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)){for(var y="",E=0,B=D.transparency.length;E<B;E++)y+=D.transparency[E]+" "+D.transparency[E]+" ";b.push({key:"Mask",value:"["+y+"]"})}D.sMask!==void 0&&b.push({key:"SMask",value:D.objectId+1+" 0 R"});var S=D.filter!==void 0?["/"+D.filter]:void 0;if(M({data:D.data,additionalKeyValues:b,alreadyAppliedFilters:S,objectId:D.objectId}),I("endobj"),"sMask"in D&&D.sMask!==void 0){var T="/Predictor "+D.predictor+" /Colors 1 /BitsPerComponent "+D.bitsPerComponent+" /Columns "+D.width,R={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:D.bitsPerComponent,decodeParameters:T,data:D.sMask};"filter"in D&&(R.filter=D.filter),G.call(this,R)}if(D.colorSpace===h.INDEXED){var V=this.internal.newObject();M({data:F(new Uint8Array(D.palette)),objectId:V}),I("endobj")}},s=function(){var G=this.internal.collections.addImage_images;for(var D in G)c.call(this,G[D])},i=function(){var G,D=this.internal.collections.addImage_images,I=this.internal.write;for(var M in D)I("/I"+(G=D[M]).index,G.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",i))},n=function(){var G=this.internal.collections.addImage_images;return o.call(this),G},r=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(G){return typeof t["process"+G.toUpperCase()]=="function"},d=function(G){return wr(G)==="object"&&G.nodeType===1},u=function(G,D){if(G.nodeName==="IMG"&&G.hasAttribute("src")){var I=""+G.getAttribute("src");if(I.indexOf("data:image/")===0)return sA(unescape(I).split("base64,").pop());var M=t.loadFile(I,!0);if(M!==void 0)return M}if(G.nodeName==="CANVAS"){if(G.width===0||G.height===0)throw new Error("Given canvas must have data. Canvas width: "+G.width+", height: "+G.height);var C;switch(D){case"PNG":C="image/png";break;case"WEBP":C="image/webp";break;case"JPEG":case"JPG":default:C="image/jpeg"}return sA(G.toDataURL(C,1).split("base64,").pop())}},l=function(G){var D=this.internal.collections.addImage_images;if(D){for(var I in D)if(G===D[I].alias)return D[I]}},p=function(G,D,I){return G||D||(G=-96,D=-96),G<0&&(G=-1*I.width*72/G/this.internal.scaleFactor),D<0&&(D=-1*I.height*72/D/this.internal.scaleFactor),G===0&&(G=D*I.width/I.height),D===0&&(D=G*I.height/I.width),[G,D]},m=function(G,D,I,M,C,b){var y=p.call(this,I,M,C),E=this.internal.getCoordinateString,B=this.internal.getVerticalCoordinateString,S=n.call(this);if(I=y[0],M=y[1],S[C.index]=C,b){b*=Math.PI/180;var T=Math.cos(b),R=Math.sin(b),V=function(q){return q.toFixed(4)},U=[V(T),V(R),V(-1*R),V(T),0,0,"cm"]}this.internal.write("q"),b?(this.internal.write([1,"0","0",1,E(G),B(D+M),"cm"].join(" ")),this.internal.write(U.join(" ")),this.internal.write([E(I),"0","0",E(M),"0","0","cm"].join(" "))):this.internal.write([E(I),"0","0",E(M),E(G),B(D+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+C.index+" Do"),this.internal.write("Q")},h=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(G){var D,I,M=0;if(typeof G=="string")for(I=G.length,D=0;D<I;D++)M=(M<<5)-M+G.charCodeAt(D),M|=0;else if(k(G))for(I=G.byteLength/2,D=0;D<I;D++)M=(M<<5)-M+G[D],M|=0;return M},v=t.__addimage__.validateStringAsBase64=function(G){(G=G||"").toString().trim();var D=!0;return G.length===0&&(D=!1),G.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(G.substr(0,G.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(G.substr(-2))===!1&&(D=!1),D},x=t.__addimage__.extractImageFromDataUrl=function(G){var D=(G=G||"").split("base64,"),I=null;if(D.length===2){var M=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(D[0]);Array.isArray(M)&&(I={mimeType:M[1],charset:M[2],data:D[1]})}return I},L=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(G){return L()&&G instanceof ArrayBuffer};var k=t.__addimage__.isArrayBufferView=function(G){return L()&&typeof Uint32Array<"u"&&(G instanceof Int8Array||G instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&G instanceof Uint8ClampedArray||G instanceof Int16Array||G instanceof Uint16Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Float32Array||G instanceof Float64Array)},Y=t.__addimage__.binaryStringToUint8Array=function(G){for(var D=G.length,I=new Uint8Array(D),M=0;M<D;M++)I[M]=G.charCodeAt(M);return I},F=t.__addimage__.arrayBufferToBinaryString=function(G){for(var D="",I=k(G)?G:new Uint8Array(G),M=0;M<I.length;M+=8192)D+=String.fromCharCode.apply(null,I.subarray(M,M+8192));return D};t.addImage=function(){var G,D,I,M,C,b,y,E,B;if(typeof arguments[1]=="number"?(D=f,I=arguments[1],M=arguments[2],C=arguments[3],b=arguments[4],y=arguments[5],E=arguments[6],B=arguments[7]):(D=arguments[1],I=arguments[2],M=arguments[3],C=arguments[4],b=arguments[5],y=arguments[6],E=arguments[7],B=arguments[8]),wr(G=arguments[0])==="object"&&!d(G)&&"imageData"in G){var S=G;G=S.imageData,D=S.format||D||f,I=S.x||I||0,M=S.y||M||0,C=S.w||S.width||C,b=S.h||S.height||b,y=S.alias||y,E=S.compression||E,B=S.rotation||S.angle||B}var T=this.internal.getFilters();if(E===void 0&&T.indexOf("FlateEncode")!==-1&&(E="SLOW"),isNaN(I)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var R=O.call(this,G,D,y,E);return m.call(this,I,M,C,b,R,B),this};var O=function(G,D,I,M){var C,b,y;if(typeof G=="string"&&a(G)===f){G=unescape(G);var E=W(G,!1);(E!==""||(E=t.loadFile(G,!0))!==void 0)&&(G=E)}if(d(G)&&(G=u(G,D)),D=a(G,D),!A(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((y=I)==null||y.length===0)&&(I=function(B){return typeof B=="string"||k(B)?w(B):k(B.data)?w(B.data):null}(G)),(C=l.call(this,I))||(L()&&(G instanceof Uint8Array||D==="RGBA"||(b=G,G=Y(G))),C=this["process"+D.toUpperCase()](G,r.call(this),I,function(B){return B&&typeof B=="string"&&(B=B.toUpperCase()),B in t.image_compression?B:g.NONE}(M),b)),!C)throw new Error("An unknown error occurred whilst processing the image.");return C},W=t.__addimage__.convertBase64ToBinaryString=function(G,D){var I;D=typeof D!="boolean"||D;var M,C="";if(typeof G=="string"){M=(I=x(G))!==null?I.data:G;try{C=sA(M)}catch(b){if(D)throw v(M)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+b.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return C};t.getImageProperties=function(G){var D,I,M="";if(d(G)&&(G=u(G)),typeof G=="string"&&a(G)===f&&((M=W(G,!1))===""&&(M=t.loadFile(G)||""),G=M),I=a(G),!A(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(!L()||G instanceof Uint8Array||(G=Y(G)),!(D=this["process"+I.toUpperCase()](G)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=I,D}})(Dt.API),function(t){var f=function(e){if(e!==void 0&&e!="")return!0};Dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var a,c,s,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,n=this.internal.getPageInfoByObjId(e.objId),r=e.pageContext.annotations,A=!1,d=0;d<r.length&&!A;d++)switch((a=r[d]).type){case"link":(f(a.options.url)||f(a.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var u=0;u<r.length;u++){a=r[u];var l=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),w=a.title||"Note";s="<</Type /Annot /Subtype /Text "+(c="/Rect ["+i(a.bounds.x)+" "+o(a.bounds.y+a.bounds.h)+" "+i(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y)+"] ")+"/Contents ("+l(g(a.contents))+")",s+=" /Popup "+h.objId+" 0 R",s+=" /P "+n.objId+" 0 R",s+=" /T ("+l(g(w))+") >>",m.content=s;var v=m.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(c="/Rect ["+i(a.bounds.x+30)+" "+o(a.bounds.y+a.bounds.h)+" "+i(a.bounds.x+a.bounds.w+30)+" "+o(a.bounds.y)+"] ")+" /Parent "+v,a.open&&(s+=" /Open true"),s+=" >>",h.content=s,this.internal.write(m.objId,"0 R",h.objId,"0 R");break;case"freetext":c="/Rect ["+i(a.bounds.x)+" "+o(a.bounds.y)+" "+i(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y+a.bounds.h)+"] ";var x=a.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+c+"/Contents ("+l(p(a.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+x+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(a.options.name){var L=this.annotations._nameMap[a.options.name];a.options.pageNumber=L.page,a.options.top=L.y}else a.options.top||(a.options.top=0);if(c="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",s="",a.options.url)s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /A <</S /URI /URI ("+l(p(a.options.url))+") >>";else if(a.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,s+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var k=o(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),s+=" /XYZ "+a.options.left+" "+k+" "+a.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var a=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":a.pageContext.annotations.push(e)}},t.link=function(e,a,c,s,i){var o=this.internal.getCurrentPageInfo(),n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:n(e),y:r(a),w:n(e+c),h:r(a+s)},options:i,type:"link"})},t.textWithLink=function(e,a,c,s){var i,o,n=this.getTextWidth(e),r=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){o=s.maxWidth;var A=this.splitTextToSize(e,o).length;i=Math.ceil(r*A)}else o=n,i=r;return this.text(e,a,c,s),c+=.2*r,s.align==="center"&&(a-=n/2),s.align==="right"&&(a-=n),this.link(a,c-r,o,i,s),n},t.getTextWidth=function(e){var a=this.internal.getFontSize();return this.getStringUnitWidth(e)*a/this.internal.scaleFactor}}(Dt.API),function(t){var f={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},c=[1570,1571,1573,1575];t.__arabicParser__={};var s=t.__arabicParser__.isInArabicSubstitutionA=function(m){return f[m.charCodeAt(0)]!==void 0},i=t.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},o=t.__arabicParser__.isArabicEndLetter=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length<=2},n=t.__arabicParser__.isArabicAlfLetter=function(m){return i(m)&&c.indexOf(m.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=1};var r=t.__arabicParser__.arabicLetterHasFinalForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length>=3};var A=t.__arabicParser__.arabicLetterHasMedialForm=function(m){return i(m)&&s(m)&&f[m.charCodeAt(0)].length==4},d=t.__arabicParser__.resolveLigatures=function(m){var h=0,g=e,w="",v=0;for(h=0;h<m.length;h+=1)g[m.charCodeAt(h)]!==void 0?(v++,typeof(g=g[m.charCodeAt(h)])=="number"&&(w+=String.fromCharCode(g),g=e,v=0),h===m.length-1&&(g=e,w+=m.charAt(h-(v-1)),h-=v-1,v=0)):(g=e,w+=m.charAt(h-v),h-=v,v=0);return w};t.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&a[m.charCodeAt(0)]!==void 0};var u=t.__arabicParser__.getCorrectForm=function(m,h,g){return i(m)?s(m)===!1?-1:!r(m)||!i(h)&&!i(g)||!i(g)&&o(h)||o(m)&&!i(h)||o(m)&&n(h)||o(m)&&o(h)?0:A(m)&&i(h)&&!o(h)&&i(g)&&r(g)?3:o(m)||!i(g)?1:2:-1},l=function(m){var h=0,g=0,w=0,v="",x="",L="",k=(m=m||"").split("\\s+"),Y=[];for(h=0;h<k.length;h+=1){for(Y.push(""),g=0;g<k[h].length;g+=1)v=k[h][g],x=k[h][g-1],L=k[h][g+1],i(v)?(w=u(v,x,L),Y[h]+=w!==-1?String.fromCharCode(f[v.charCodeAt(0)][w]):v):Y[h]+=v;Y[h]=d(Y[h])}return Y.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var m,h=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,g=[];if(Array.isArray(h)){var w=0;for(g=[],w=0;w<h.length;w+=1)Array.isArray(h[w])?g.push([l(h[w][0]),h[w][1],h[w][2]]):g.push([l(h[w])]);m=g}else m=l(h);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};t.events.push(["preProcessText",p])}(Dt.API),Dt.API.autoPrint=function(t){var f;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){f=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+f+" 0 R")})}return this},function(t){var f=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(o){e=o}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(o){a=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var c=300;Object.defineProperty(this,"height",{get:function(){return c},set:function(o){c=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=c+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(o){s=o}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(o){i=o}}),Object.defineProperty(this,"parentNode",{})};f.prototype.getContext=function(e,a){var c;if((e=e||"2d")!=="2d")return null;for(c in a)this.pdf.context2d.hasOwnProperty(c)&&(this.pdf.context2d[c]=a[c]);return this.pdf.context2d._canvas=this,this.pdf.context2d},f.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new f,this.canvas.pdf=this}])}(Dt.API),function(t){var f={left:0,top:0,bottom:0,right:0},e=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},f),this.internal.__cell__.margins.width=this.getPageWidth(),c.call(this))},c=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var n=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(m){n=m}});var r=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(m){r=m}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(m){A=m}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(m){d=m}});var u=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var l=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(m){p=m}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(n){return a.call(this),this.internal.__cell__.headerFunction=typeof n=="function"?n:void 0,this},t.getTextDimensions=function(n,r){a.call(this);var A=(r=r||{}).fontSize||this.getFontSize(),d=r.font||this.getFont(),u=r.scaleFactor||this.internal.scaleFactor,l=0,p=0,m=0,h=this;if(!Array.isArray(n)&&typeof n!="string"){if(typeof n!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");n=String(n)}var g=r.maxWidth;g>0?typeof n=="string"?n=this.splitTextToSize(n,g):Object.prototype.toString.call(n)==="[object Array]"&&(n=n.reduce(function(v,x){return v.concat(h.splitTextToSize(x,g))},[])):n=Array.isArray(n)?n:[n];for(var w=0;w<n.length;w++)l<(m=this.getStringUnitWidth(n[w],{font:d})*A)&&(l=m);return l!==0&&(p=n.length),{w:l/=u,h:Math.max((p*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/u,0)}},t.cellAddPage=function(){a.call(this),this.addPage();var n=this.internal.__cell__.margins||f;return this.internal.__cell__.lastCell=new s(n.left,n.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=t.cell=function(){var n;n=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var r=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,d=this.internal.__cell__.margins||f,u=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return r.lineNumber!==void 0&&(r.lineNumber===n.lineNumber?(n.x=(r.x||0)+(r.width||0),n.y=r.y||0):r.y+r.height+n.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),n.y=d.top,l&&u&&(this.printHeaderRow(n.lineNumber,!0),n.y+=u[0].height)):n.y=r.y+r.height||n.y),n.text[0]!==void 0&&(this.rect(n.x,n.y,n.width,n.height,e===!0?"FD":void 0),n.align==="right"?this.text(n.text,n.x+n.width-A,n.y+A,{align:"right",baseline:"top"}):n.align==="center"?this.text(n.text,n.x+n.width/2,n.y+A,{align:"center",baseline:"top",maxWidth:n.width-A-A}):this.text(n.text,n.x+A,n.y+A,{align:"left",baseline:"top",maxWidth:n.width-A-A})),this.internal.__cell__.lastCell=n,this};t.table=function(n,r,A,d,u){if(a.call(this),!A)throw new Error("No data for PDF table.");var l,p,m,h,g=[],w=[],v=[],x={},L={},k=[],Y=[],F=(u=u||{}).autoSize||!1,O=u.printHeaders!==!1,W=u.css&&u.css["font-size"]!==void 0?16*u.css["font-size"]:u.fontSize||12,G=u.margins||Object.assign({width:this.getPageWidth()},f),D=typeof u.padding=="number"?u.padding:3,I=u.headerBackgroundColor||"#c8c8c8",M=u.headerTextColor||"#000";if(c.call(this),this.internal.__cell__.printHeaders=O,this.internal.__cell__.margins=G,this.internal.__cell__.table_font_size=W,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=M,this.setFontSize(W),d==null)w=g=Object.keys(A[0]),v=g.map(function(){return"left"});else if(Array.isArray(d)&&wr(d[0])==="object")for(g=d.map(function(S){return S.name}),w=d.map(function(S){return S.prompt||S.name||""}),v=d.map(function(S){return S.align||"left"}),l=0;l<d.length;l+=1)L[d[l].name]=d[l].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(w=g=d,v=g.map(function(){return"left"}));if(F||Array.isArray(d)&&typeof d[0]=="string")for(l=0;l<g.length;l+=1){for(x[h=g[l]]=A.map(function(S){return S[h]}),this.setFont(void 0,"bold"),k.push(this.getTextDimensions(w[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=x[h],this.setFont(void 0,"normal"),m=0;m<p.length;m+=1)k.push(this.getTextDimensions(p[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[h]=Math.max.apply(null,k)+D+D,k=[]}if(O){var C={};for(l=0;l<g.length;l+=1)C[g[l]]={},C[g[l]].text=w[l],C[g[l]].align=v[l];var b=o.call(this,C,L);Y=g.map(function(S){return new s(n,r,L[S],b,C[S].text,void 0,C[S].align)}),this.setTableHeaderRow(Y),this.printHeaderRow(1,!1)}var y=d.reduce(function(S,T){return S[T.name]=T.align,S},{});for(l=0;l<A.length;l+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:l,data:A[l]},this);var E=o.call(this,A[l],L);for(m=0;m<g.length;m+=1){var B=A[l][g[m]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:l,col:m,data:B},this),i.call(this,new s(n,r,L[g[m]],E,B,l+2,y[g[m]]))}}return this.internal.__cell__.table_x=n,this.internal.__cell__.table_y=r,this};var o=function(n,r){var A=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,u=this.internal.scaleFactor;return Object.keys(n).map(function(l){var p=n[l];return this.splitTextToSize(p.hasOwnProperty("text")?p.text:p,r[l]-A-A)},this).map(function(l){return this.getLineHeightFactor()*l.length*d/u+A+A},this).reduce(function(l,p){return Math.max(l,p)},0)};t.setTableHeaderRow=function(n){a.call(this),this.internal.__cell__.tableHeaderRow=n},t.printHeaderRow=function(n,r){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){A=this.internal.__cell__.tableHeaderRow[l].clone(),r&&(A.y=this.internal.__cell__.margins.top||0,u.push(A)),A.lineNumber=n;var p=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,A),this.setTextColor(p)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),e=!1}}(Dt.API);var y0={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},E0=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],df=v0(E0),B0=[100,200,300,400,500,600,700,800,900],ob=v0(B0);function hf(t){var f=t.family.replace(/"|'/g,"").toLowerCase(),e=function(s){return y0[s=s||"normal"]?s:"normal"}(t.style),a=function(s){if(!s)return 400;if(typeof s=="number")return s>=100&&s<=900&&s%100==0?s:400;if(/^\d00$/.test(s))return parseInt(s);switch(s){case"bold":return 700;case"normal":default:return 400}}(t.weight),c=function(s){return typeof df[s=s||"normal"]=="number"?s:"normal"}(t.stretch);return{family:f,style:e,weight:a,stretch:c,src:t.src||[],ref:t.ref||{name:f,style:[c,e,a].join(" ")}}}function bh(t,f,e,a){var c;for(c=e;c>=0&&c<f.length;c+=a)if(t[f[c]])return t[f[c]];for(c=e;c>=0&&c<f.length;c-=a)if(t[f[c]])return t[f[c]]}var Ab={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},vh={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yh(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function lb(t,f,e){for(var a=(e=e||{}).defaultFontFamily||"times",c=Object.assign({},Ab,e.genericFontFamilies||{}),s=null,i=null,o=0;o<f.length;++o)if(c[(s=hf(f[o])).family]&&(s.family=c[s.family]),t.hasOwnProperty(s.family)){i=t[s.family];break}if(!(i=i||t[a]))throw new Error("Could not find a font-family for the rule '"+yh(s)+"' and default family '"+a+"'.");if(i=function(n,r){if(r[n])return r[n];var A=df[n],d=A<=df.normal?-1:1,u=bh(r,E0,A,d);if(!u)throw new Error("Could not find a matching font-stretch value for "+n);return u}(s.stretch,i),i=function(n,r){if(r[n])return r[n];for(var A=y0[n],d=0;d<A.length;++d)if(r[A[d]])return r[A[d]];throw new Error("Could not find a matching font-style for "+n)}(s.style,i),!(i=function(n,r){if(r[n])return r[n];if(n===400&&r[500])return r[500];if(n===500&&r[400])return r[400];var A=ob[n],d=bh(r,B0,A,n<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+n);return d}(s.weight,i)))throw new Error("Failed to resolve a font for the rule '"+yh(s)+"'.");return i}function Eh(t){return t.trimLeft()}function ub(t,f){for(var e=0;e<t.length;){if(t.charAt(e)===f)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function cb(t){var f=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return f===null?null:[f[0],t.substring(f[0].length)]}var bl,Bh,Ch,vc=["times"];(function(t){var f,e,a,c,s,i,o,n,r,A=function(R){return R=R||{},this.isStrokeTransparent=R.isStrokeTransparent||!1,this.strokeOpacity=R.strokeOpacity||1,this.strokeStyle=R.strokeStyle||"#000000",this.fillStyle=R.fillStyle||"#000000",this.isFillTransparent=R.isFillTransparent||!1,this.fillOpacity=R.fillOpacity||1,this.font=R.font||"10px sans-serif",this.textBaseline=R.textBaseline||"alphabetic",this.textAlign=R.textAlign||"left",this.lineWidth=R.lineWidth||1,this.lineJoin=R.lineJoin||"miter",this.lineCap=R.lineCap||"butt",this.path=R.path||[],this.transform=R.transform!==void 0?R.transform.clone():new n,this.globalCompositeOperation=R.globalCompositeOperation||"normal",this.globalAlpha=R.globalAlpha||1,this.clip_path=R.clip_path||[],this.currentPoint=R.currentPoint||new i,this.miterLimit=R.miterLimit||10,this.lastPoint=R.lastPoint||new i,this.lineDashOffset=R.lineDashOffset||0,this.lineDash=R.lineDash||[],this.margin=R.margin||[0,0,0,0],this.prevPageLastElemOffset=R.prevPageLastElemOffset||0,this.ignoreClearRect=typeof R.ignoreClearRect!="boolean"||R.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),f=this.internal.f2,e=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,c=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,i=this.internal.Point,o=this.internal.Rectangle,n=this.internal.Matrix,r=new A}]);var d=function(R){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var V=R;Object.defineProperty(this,"pdf",{get:function(){return V}});var U=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return U},set:function(ue){U=!!ue}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(ue){q=!!ue}});var j=0;Object.defineProperty(this,"posX",{get:function(){return j},set:function(ue){isNaN(ue)||(j=ue)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(ue){isNaN(ue)||(Z=ue)}}),Object.defineProperty(this,"margin",{get:function(){return r.margin},set:function(ue){var te;typeof ue=="number"?te=[ue,ue,ue,ue]:((te=new Array(4))[0]=ue[0],te[1]=ue.length>=2?ue[1]:te[0],te[2]=ue.length>=3?ue[2]:te[0],te[3]=ue.length>=4?ue[3]:te[1]),r.margin=te}});var N=!1;Object.defineProperty(this,"autoPaging",{get:function(){return N},set:function(ue){N=ue}});var P=0;Object.defineProperty(this,"lastBreak",{get:function(){return P},set:function(ue){P=ue}});var K=[];Object.defineProperty(this,"pageBreaks",{get:function(){return K},set:function(ue){K=ue}}),Object.defineProperty(this,"ctx",{get:function(){return r},set:function(ue){ue instanceof A&&(r=ue)}}),Object.defineProperty(this,"path",{get:function(){return r.path},set:function(ue){r.path=ue}});var $=[];Object.defineProperty(this,"ctxStack",{get:function(){return $},set:function(ue){$=ue}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ue){var te;te=u(ue),this.ctx.fillStyle=te.style,this.ctx.isFillTransparent=te.a===0,this.ctx.fillOpacity=te.a,this.pdf.setFillColor(te.r,te.g,te.b,{a:te.a}),this.pdf.setTextColor(te.r,te.g,te.b,{a:te.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ue){var te=u(ue);this.ctx.strokeStyle=te.style,this.ctx.isStrokeTransparent=te.a===0,this.ctx.strokeOpacity=te.a,te.a===0?this.pdf.setDrawColor(255,255,255):(te.a,this.pdf.setDrawColor(te.r,te.g,te.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ue){["butt","round","square"].indexOf(ue)!==-1&&(this.ctx.lineCap=ue,this.pdf.setLineCap(ue))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ue){isNaN(ue)||(this.ctx.lineWidth=ue,this.pdf.setLineWidth(ue))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ue){["bevel","round","miter"].indexOf(ue)!==-1&&(this.ctx.lineJoin=ue,this.pdf.setLineJoin(ue))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ue){isNaN(ue)||(this.ctx.miterLimit=ue,this.pdf.setMiterLimit(ue))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ue){this.ctx.textBaseline=ue}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ue){["right","end","center","left","start"].indexOf(ue)!==-1&&(this.ctx.textAlign=ue)}});var se=null;function ee(ue,te){if(se===null){var ie=function(de){var ce=[];return Object.keys(de).forEach(function(we){de[we].forEach(function(ge){var be=null;switch(ge){case"bold":be={family:we,weight:"bold"};break;case"italic":be={family:we,style:"italic"};break;case"bolditalic":be={family:we,weight:"bold",style:"italic"};break;case"":case"normal":be={family:we}}be!==null&&(be.ref={name:we,style:ge},ce.push(be))})}),ce}(ue.getFontList());se=function(de){for(var ce={},we=0;we<de.length;++we){var ge=hf(de[we]),be=ge.family,Ce=ge.stretch,Qe=ge.style,_e=ge.weight;ce[be]=ce[be]||{},ce[be][Ce]=ce[be][Ce]||{},ce[be][Ce][Qe]=ce[be][Ce][Qe]||{},ce[be][Ce][Qe][_e]=ge}return ce}(ie.concat(te))}return se}var Ae=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ae},set:function(ue){se=null,Ae=ue}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ue){var te;if(this.ctx.font=ue,(te=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ue))!==null){var ie=te[1],de=(te[2],te[3]),ce=te[4],we=(te[5],te[6]),ge=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ce)[2];ce=Math.floor(ge==="px"?parseFloat(ce)*this.pdf.internal.scaleFactor:ge==="em"?parseFloat(ce)*this.pdf.getFontSize():parseFloat(ce)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ce);var be=function(Ke){var et,ke,ct=[],He=Ke.trim();if(He==="")return vc;if(He in vh)return[vh[He]];for(;He!=="";){switch(ke=null,et=(He=Eh(He)).charAt(0)){case'"':case"'":ke=ub(He.substring(1),et);break;default:ke=cb(He)}if(ke===null||(ct.push(ke[0]),(He=Eh(ke[1]))!==""&&He.charAt(0)!==","))return vc;He=He.replace(/^,/,"")}return ct}(we);if(this.fontFaces){var Ce=lb(ee(this.pdf,this.fontFaces),be.map(function(Ke){return{family:Ke,stretch:"normal",weight:de,style:ie}}));this.pdf.setFont(Ce.ref.name,Ce.ref.style)}else{var Qe="";(de==="bold"||parseInt(de,10)>=700||ie==="bold")&&(Qe="bold"),ie==="italic"&&(Qe+="italic"),Qe.length===0&&(Qe="normal");for(var _e="",Te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ge=0;Ge<be.length;Ge++){if(this.pdf.internal.getFont(be[Ge],Qe,{noFallback:!0,disableWarning:!0})!==void 0){_e=be[Ge];break}if(Qe==="bolditalic"&&this.pdf.internal.getFont(be[Ge],"bold",{noFallback:!0,disableWarning:!0})!==void 0)_e=be[Ge],Qe="bold";else if(this.pdf.internal.getFont(be[Ge],"normal",{noFallback:!0,disableWarning:!0})!==void 0){_e=be[Ge],Qe="normal";break}}if(_e===""){for(var Ve=0;Ve<be.length;Ve++)if(Te[be[Ve]]){_e=Te[be[Ve]];break}}_e=_e===""?"Times":_e,this.pdf.setFont(_e,Qe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ue){this.ctx.globalCompositeOperation=ue}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ue){this.ctx.globalAlpha=ue}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ue){this.ctx.lineDashOffset=ue,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ue){this.ctx.lineDash=ue,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ue){this.ctx.ignoreClearRect=!!ue}})};d.prototype.setLineDash=function(R){this.lineDash=R},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){x.call(this,"fill",!1)},d.prototype.stroke=function(){x.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var U=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"mt",x:U.x,y:U.y}),this.ctx.lastPoint=new i(R,V)},d.prototype.closePath=function(){var R=new i(0,0),V=0;for(V=this.path.length-1;V!==-1;V--)if(this.path[V].type==="begin"&&wr(this.path[V+1])==="object"&&typeof this.path[V+1].x=="number"){R=new i(this.path[V+1].x,this.path[V+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new i(R.x,R.y)},d.prototype.lineTo=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var U=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"lt",x:U.x,y:U.y}),this.ctx.lastPoint=new i(U.x,U.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},d.prototype.quadraticCurveTo=function(R,V,U,q){if(isNaN(U)||isNaN(q)||isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var j=this.ctx.transform.applyToPoint(new i(U,q)),Z=this.ctx.transform.applyToPoint(new i(R,V));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:j.x,y:j.y}),this.ctx.lastPoint=new i(j.x,j.y)},d.prototype.bezierCurveTo=function(R,V,U,q,j,Z){if(isNaN(j)||isNaN(Z)||isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var N=this.ctx.transform.applyToPoint(new i(j,Z)),P=this.ctx.transform.applyToPoint(new i(R,V)),K=this.ctx.transform.applyToPoint(new i(U,q));this.path.push({type:"bct",x1:P.x,y1:P.y,x2:K.x,y2:K.y,x:N.x,y:N.y}),this.ctx.lastPoint=new i(N.x,N.y)},d.prototype.arc=function(R,V,U,q,j,Z){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q)||isNaN(j))throw Cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Z=!!Z,!this.ctx.transform.isIdentity){var N=this.ctx.transform.applyToPoint(new i(R,V));R=N.x,V=N.y;var P=this.ctx.transform.applyToPoint(new i(0,U)),K=this.ctx.transform.applyToPoint(new i(0,0));U=Math.sqrt(Math.pow(P.x-K.x,2)+Math.pow(P.y-K.y,2))}Math.abs(j-q)>=2*Math.PI&&(q=0,j=2*Math.PI),this.path.push({type:"arc",x:R,y:V,radius:U,startAngle:q,endAngle:j,counterclockwise:Z})},d.prototype.arcTo=function(R,V,U,q,j){throw new Error("arcTo not implemented.")},d.prototype.rect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(R,V),this.lineTo(R+U,V),this.lineTo(R+U,V+q),this.lineTo(R,V+q),this.lineTo(R,V),this.lineTo(R+U,V),this.lineTo(R,V)},d.prototype.fillRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!l.call(this)){var j={};this.lineCap!=="butt"&&(j.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(j.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(R,V,U,q),this.fill(),j.hasOwnProperty("lineCap")&&(this.lineCap=j.lineCap),j.hasOwnProperty("lineJoin")&&(this.lineJoin=j.lineJoin)}},d.prototype.strokeRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(R,V,U,q),this.stroke())},d.prototype.clearRect=function(R,V,U,q){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q))throw Cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(R,V,U,q))},d.prototype.save=function(R){R=typeof R!="boolean"||R;for(var V=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("q");if(this.pdf.setPage(V),R){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},d.prototype.restore=function(R){R=typeof R!="boolean"||R;for(var V=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("Q");this.pdf.setPage(V),R&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(R){var V,U,q,j;if(R.isCanvasGradient===!0&&(R=R.getColor()),!R)return{r:0,g:0,b:0,a:0,style:R};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(R))V=0,U=0,q=0,j=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(R);if(Z!==null)V=parseInt(Z[1]),U=parseInt(Z[2]),q=parseInt(Z[3]),j=1;else if((Z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(R))!==null)V=parseInt(Z[1]),U=parseInt(Z[2]),q=parseInt(Z[3]),j=parseFloat(Z[4]);else{if(j=1,typeof R=="string"&&R.charAt(0)!=="#"){var N=new h0(R);R=N.ok?N.toHex():"#000000"}R.length===4?(V=R.substring(1,2),V+=V,U=R.substring(2,3),U+=U,q=R.substring(3,4),q+=q):(V=R.substring(1,3),U=R.substring(3,5),q=R.substring(5,7)),V=parseInt(V,16),U=parseInt(U,16),q=parseInt(q,16)}}return{r:V,g:U,b:q,a:j,style:R}},l=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},p=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(R,V,U,q){if(isNaN(V)||isNaN(U)||typeof R!="string")throw Cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!l.call(this)){var j=E(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;D.call(this,{text:R,x:V,y:U,scale:Z,angle:j,align:this.textAlign,maxWidth:q})}},d.prototype.strokeText=function(R,V,U,q){if(isNaN(V)||isNaN(U)||typeof R!="string")throw Cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){q=isNaN(q)?void 0:q;var j=E(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;D.call(this,{text:R,x:V,y:U,scale:Z,renderingMode:"stroke",angle:j,align:this.textAlign,maxWidth:q})}},d.prototype.measureText=function(R){if(typeof R!="string")throw Cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var V=this.pdf,U=this.pdf.internal.scaleFactor,q=V.internal.getFontSize(),j=V.getStringUnitWidth(R)*q/V.internal.scaleFactor,Z=function(N){var P=(N=N||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return P}}),this};return new Z({width:j*=Math.round(96*U/72*1e4)/1e4})},d.prototype.scale=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var U=new n(R,0,0,V,0,0);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.rotate=function(R){if(isNaN(R))throw Cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var V=new n(Math.cos(R),Math.sin(R),-Math.sin(R),Math.cos(R),0,0);this.ctx.transform=this.ctx.transform.multiply(V)},d.prototype.translate=function(R,V){if(isNaN(R)||isNaN(V))throw Cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var U=new n(1,0,0,1,R,V);this.ctx.transform=this.ctx.transform.multiply(U)},d.prototype.transform=function(R,V,U,q,j,Z){if(isNaN(R)||isNaN(V)||isNaN(U)||isNaN(q)||isNaN(j)||isNaN(Z))throw Cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var N=new n(R,V,U,q,j,Z);this.ctx.transform=this.ctx.transform.multiply(N)},d.prototype.setTransform=function(R,V,U,q,j,Z){R=isNaN(R)?1:R,V=isNaN(V)?0:V,U=isNaN(U)?0:U,q=isNaN(q)?1:q,j=isNaN(j)?0:j,Z=isNaN(Z)?0:Z,this.ctx.transform=new n(R,V,U,q,j,Z)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(R,V,U,q,j,Z,N,P,K){var $=this.pdf.getImageProperties(R),se=1,ee=1,Ae=1,ue=1;q!==void 0&&P!==void 0&&(Ae=P/q,ue=K/j,se=$.width/q*P/q,ee=$.height/j*K/j),Z===void 0&&(Z=V,N=U,V=0,U=0),q!==void 0&&P===void 0&&(P=q,K=j),q===void 0&&P===void 0&&(P=$.width,K=$.height);for(var te,ie=this.ctx.transform.decompose(),de=E(ie.rotate.shx),ce=new n,we=(ce=(ce=(ce=ce.multiply(ie.translate)).multiply(ie.skew)).multiply(ie.scale)).applyToRectangle(new o(Z-V*Ae,N-U*ue,q*se,j*ee)),ge=h.call(this,we),be=[],Ce=0;Ce<ge.length;Ce+=1)be.indexOf(ge[Ce])===-1&&be.push(ge[Ce]);if(v(be),this.autoPaging)for(var Qe=be[0],_e=be[be.length-1],Te=Qe;Te<_e+1;Te++){this.pdf.setPage(Te);var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ve=Te===1?this.posY+this.margin[0]:this.margin[0],Ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ke=Te===1?0:Ke+(Te-2)*et;if(this.ctx.clip_path.length!==0){var ct=this.path;te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(te,this.posX+this.margin[3],-ke+Ve+this.ctx.prevPageLastElemOffset),L.call(this,"fill",!0),this.path=ct}var He=JSON.parse(JSON.stringify(we));He=w([He],this.posX+this.margin[3],-ke+Ve+this.ctx.prevPageLastElemOffset)[0];var Ze=(Te>Qe||Te<_e)&&m.call(this);Ze&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,et,null).clip().discardPath()),this.pdf.addImage(R,"JPEG",He.x,He.y,He.w,He.h,null,null,de),Ze&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(R,"JPEG",we.x,we.y,we.w,we.h,null,null,de)};var h=function(R,V,U){var q=[];V=V||this.pdf.internal.pageSize.width,U=U||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var j=this.posY+this.ctx.prevPageLastElemOffset;switch(R.type){default:case"mt":case"lt":q.push(Math.floor((R.y+j)/U)+1);break;case"arc":q.push(Math.floor((R.y+j-R.radius)/U)+1),q.push(Math.floor((R.y+j+R.radius)/U)+1);break;case"qct":var Z=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,R.x1,R.y1,R.x,R.y);q.push(Math.floor((Z.y+j)/U)+1),q.push(Math.floor((Z.y+Z.h+j)/U)+1);break;case"bct":var N=S(this.ctx.lastPoint.x,this.ctx.lastPoint.y,R.x1,R.y1,R.x2,R.y2,R.x,R.y);q.push(Math.floor((N.y+j)/U)+1),q.push(Math.floor((N.y+N.h+j)/U)+1);break;case"rect":q.push(Math.floor((R.y+j)/U)+1),q.push(Math.floor((R.y+R.h+j)/U)+1)}for(var P=0;P<q.length;P+=1)for(;this.pdf.internal.getNumberOfPages()<q[P];)g.call(this);return q},g=function(){var R=this.fillStyle,V=this.strokeStyle,U=this.font,q=this.lineCap,j=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=R,this.strokeStyle=V,this.font=U,this.lineCap=q,this.lineWidth=j,this.lineJoin=Z},w=function(R,V,U){for(var q=0;q<R.length;q++)switch(R[q].type){case"bct":R[q].x2+=V,R[q].y2+=U;case"qct":R[q].x1+=V,R[q].y1+=U;case"mt":case"lt":case"arc":default:R[q].x+=V,R[q].y+=U}return R},v=function(R){return R.sort(function(V,U){return V-U})},x=function(R,V){for(var U,q,j=this.fillStyle,Z=this.strokeStyle,N=this.lineCap,P=this.lineWidth,K=Math.abs(P*this.ctx.transform.scaleX),$=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),ee=JSON.parse(JSON.stringify(this.path)),Ae=[],ue=0;ue<ee.length;ue++)if(ee[ue].x!==void 0)for(var te=h.call(this,ee[ue]),ie=0;ie<te.length;ie+=1)Ae.indexOf(te[ie])===-1&&Ae.push(te[ie]);for(var de=0;de<Ae.length;de++)for(;this.pdf.internal.getNumberOfPages()<Ae[de];)g.call(this);if(v(Ae),this.autoPaging)for(var ce=Ae[0],we=Ae[Ae.length-1],ge=ce;ge<we+1;ge++){this.pdf.setPage(ge),this.fillStyle=j,this.strokeStyle=Z,this.lineCap=N,this.lineWidth=K,this.lineJoin=$;var be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ce=ge===1?this.posY+this.margin[0]:this.margin[0],Qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Te=ge===1?0:Qe+(ge-2)*_e;if(this.ctx.clip_path.length!==0){var Ge=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(U,this.posX+this.margin[3],-Te+Ce+this.ctx.prevPageLastElemOffset),L.call(this,R,!0),this.path=Ge}if(q=JSON.parse(JSON.stringify(se)),this.path=w(q,this.posX+this.margin[3],-Te+Ce+this.ctx.prevPageLastElemOffset),V===!1||ge===0){var Ve=(ge>ce||ge<we)&&m.call(this);Ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],be,_e,null).clip().discardPath()),L.call(this,R,V),Ve&&this.pdf.restoreGraphicsState()}this.lineWidth=P}else this.lineWidth=K,L.call(this,R,V),this.lineWidth=P;this.path=se},L=function(R,V){if((R!=="stroke"||V||!p.call(this))&&(R==="stroke"||V||!l.call(this))){for(var U,q,j=[],Z=this.path,N=0;N<Z.length;N++){var P=Z[N];switch(P.type){case"begin":j.push({begin:!0});break;case"close":j.push({close:!0});break;case"mt":j.push({start:P,deltas:[],abs:[]});break;case"lt":var K=j.length;if(Z[N-1]&&!isNaN(Z[N-1].x)&&(U=[P.x-Z[N-1].x,P.y-Z[N-1].y],K>0)){for(;K>=0;K--)if(j[K-1].close!==!0&&j[K-1].begin!==!0){j[K-1].deltas.push(U),j[K-1].abs.push(P);break}}break;case"bct":U=[P.x1-Z[N-1].x,P.y1-Z[N-1].y,P.x2-Z[N-1].x,P.y2-Z[N-1].y,P.x-Z[N-1].x,P.y-Z[N-1].y],j[j.length-1].deltas.push(U);break;case"qct":var $=Z[N-1].x+2/3*(P.x1-Z[N-1].x),se=Z[N-1].y+2/3*(P.y1-Z[N-1].y),ee=P.x+2/3*(P.x1-P.x),Ae=P.y+2/3*(P.y1-P.y),ue=P.x,te=P.y;U=[$-Z[N-1].x,se-Z[N-1].y,ee-Z[N-1].x,Ae-Z[N-1].y,ue-Z[N-1].x,te-Z[N-1].y],j[j.length-1].deltas.push(U);break;case"arc":j.push({deltas:[],abs:[],arc:!0}),Array.isArray(j[j.length-1].abs)&&j[j.length-1].abs.push(P)}}q=V?null:R==="stroke"?"stroke":"fill";for(var ie=!1,de=0;de<j.length;de++)if(j[de].arc)for(var ce=j[de].abs,we=0;we<ce.length;we++){var ge=ce[we];ge.type==="arc"?F.call(this,ge.x,ge.y,ge.radius,ge.startAngle,ge.endAngle,ge.counterclockwise,void 0,V,!ie):I.call(this,ge.x,ge.y),ie=!0}else if(j[de].close===!0)this.pdf.internal.out("h"),ie=!1;else if(j[de].begin!==!0){var be=j[de].start.x,Ce=j[de].start.y;M.call(this,j[de].deltas,be,Ce),ie=!0}q&&O.call(this,q),V&&W.call(this)}},k=function(R){var V=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,U=V*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return R-U;case"top":return R+V-U;case"hanging":return R+V-2*U;case"middle":return R+V/2-U;case"ideographic":return R;case"alphabetic":default:return R}},Y=function(R){return R+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var R=function(){};return R.colorStops=[],R.addColorStop=function(V,U){this.colorStops.push([V,U])},R.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},R.isCanvasGradient=!0,R},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(R,V,U,q,j,Z,N,P,K){for(var $=b.call(this,U,q,j,Z),se=0;se<$.length;se++){var ee=$[se];se===0&&(K?G.call(this,ee.x1+R,ee.y1+V):I.call(this,ee.x1+R,ee.y1+V)),C.call(this,R,V,ee.x2,ee.y2,ee.x3,ee.y3,ee.x4,ee.y4)}P?W.call(this):O.call(this,N)},O=function(R){switch(R){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},W=function(){this.pdf.clip(),this.pdf.discardPath()},G=function(R,V){this.pdf.internal.out(e(R)+" "+a(V)+" m")},D=function(R){var V;switch(R.align){case"right":case"end":V="right";break;case"center":V="center";break;case"left":case"start":default:V="left"}var U=this.pdf.getTextDimensions(R.text),q=k.call(this,R.y),j=Y.call(this,q)-U.h,Z=this.ctx.transform.applyToPoint(new i(R.x,q)),N=this.ctx.transform.decompose(),P=new n;P=(P=(P=P.multiply(N.translate)).multiply(N.skew)).multiply(N.scale);for(var K,$,se,ee=this.ctx.transform.applyToRectangle(new o(R.x,q,U.w,U.h)),Ae=P.applyToRectangle(new o(R.x,j,U.w,U.h)),ue=h.call(this,Ae),te=[],ie=0;ie<ue.length;ie+=1)te.indexOf(ue[ie])===-1&&te.push(ue[ie]);if(v(te),this.autoPaging)for(var de=te[0],ce=te[te.length-1],we=de;we<ce+1;we++){this.pdf.setPage(we);var ge=we===1?this.posY+this.margin[0]:this.margin[0],be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ce=this.pdf.internal.pageSize.height-this.margin[2],Qe=Ce-this.margin[0],_e=this.pdf.internal.pageSize.width-this.margin[1],Te=_e-this.margin[3],Ge=we===1?0:be+(we-2)*Qe;if(this.ctx.clip_path.length!==0){var Ve=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(K,this.posX+this.margin[3],-1*Ge+ge),L.call(this,"fill",!0),this.path=Ve}var Ke=w([JSON.parse(JSON.stringify(Ae))],this.posX+this.margin[3],-Ge+ge+this.ctx.prevPageLastElemOffset)[0];R.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*R.scale),se=this.lineWidth,this.lineWidth=se*R.scale);var et=this.autoPaging!=="text";if(et||Ke.y+Ke.h<=Ce){if(et||Ke.y>=ge&&Ke.x<=_e){var ke=et?R.text:this.pdf.splitTextToSize(R.text,R.maxWidth||_e-Ke.x)[0],ct=w([JSON.parse(JSON.stringify(ee))],this.posX+this.margin[3],-Ge+ge+this.ctx.prevPageLastElemOffset)[0],He=et&&(we>de||we<ce)&&m.call(this);He&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Te,Qe,null).clip().discardPath()),this.pdf.text(ke,ct.x,ct.y,{angle:R.angle,align:V,renderingMode:R.renderingMode}),He&&this.pdf.restoreGraphicsState()}}else Ke.y<Ce&&(this.ctx.prevPageLastElemOffset+=Ce-Ke.y);R.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=se)}else R.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*R.scale),se=this.lineWidth,this.lineWidth=se*R.scale),this.pdf.text(R.text,Z.x+this.posX,Z.y+this.posY,{angle:R.angle,align:V,renderingMode:R.renderingMode,maxWidth:R.maxWidth}),R.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=se)},I=function(R,V,U,q){U=U||0,q=q||0,this.pdf.internal.out(e(R+U)+" "+a(V+q)+" l")},M=function(R,V,U){return this.pdf.lines(R,V,U,null,null)},C=function(R,V,U,q,j,Z,N,P){this.pdf.internal.out([f(c(U+R)),f(s(q+V)),f(c(j+R)),f(s(Z+V)),f(c(N+R)),f(s(P+V)),"c"].join(" "))},b=function(R,V,U,q){for(var j=2*Math.PI,Z=Math.PI/2;V>U;)V-=j;var N=Math.abs(U-V);N<j&&q&&(N=j-N);for(var P=[],K=q?-1:1,$=V;N>1e-5;){var se=$+K*Math.min(N,Z);P.push(y.call(this,R,$,se)),N-=Math.abs(se-$),$=se}return P},y=function(R,V,U){var q=(U-V)/2,j=R*Math.cos(q),Z=R*Math.sin(q),N=j,P=-Z,K=N*N+P*P,$=K+N*j+P*Z,se=4/3*(Math.sqrt(2*K*$)-$)/(N*Z-P*j),ee=N-se*P,Ae=P+se*N,ue=ee,te=-Ae,ie=q+V,de=Math.cos(ie),ce=Math.sin(ie);return{x1:R*Math.cos(V),y1:R*Math.sin(V),x2:ee*de-Ae*ce,y2:ee*ce+Ae*de,x3:ue*de-te*ce,y3:ue*ce+te*de,x4:R*Math.cos(U),y4:R*Math.sin(U)}},E=function(R){return 180*R/Math.PI},B=function(R,V,U,q,j,Z){var N=R+.5*(U-R),P=V+.5*(q-V),K=j+.5*(U-j),$=Z+.5*(q-Z),se=Math.min(R,j,N,K),ee=Math.max(R,j,N,K),Ae=Math.min(V,Z,P,$),ue=Math.max(V,Z,P,$);return new o(se,Ae,ee-se,ue-Ae)},S=function(R,V,U,q,j,Z,N,P){var K,$,se,ee,Ae,ue,te,ie,de,ce,we,ge,be,Ce,Qe=U-R,_e=q-V,Te=j-U,Ge=Z-q,Ve=N-j,Ke=P-Z;for($=0;$<41;$++)de=(te=(se=R+(K=$/40)*Qe)+K*((Ae=U+K*Te)-se))+K*(Ae+K*(j+K*Ve-Ae)-te),ce=(ie=(ee=V+K*_e)+K*((ue=q+K*Ge)-ee))+K*(ue+K*(Z+K*Ke-ue)-ie),$==0?(we=de,ge=ce,be=de,Ce=ce):(we=Math.min(we,de),ge=Math.min(ge,ce),be=Math.max(be,de),Ce=Math.max(Ce,ce));return new o(Math.round(we),Math.round(ge),Math.round(be-we),Math.round(Ce-ge))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var R,V,U=(R=this.ctx.lineDash,V=this.ctx.lineDashOffset,JSON.stringify({lineDash:R,lineDashOffset:V}));this.prevLineDash!==U&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=U)}}})(Dt.API),function(t){var f=function(s){var i,o,n,r,A,d,u,l,p,m;for(o=[],n=0,r=(s+=i="\0\0\0\0".slice(s.length%4||4)).length;r>n;n+=4)(A=(s.charCodeAt(n)<<24)+(s.charCodeAt(n+1)<<16)+(s.charCodeAt(n+2)<<8)+s.charCodeAt(n+3))!==0?(d=(A=((A=((A=((A=(A-(m=A%85))/85)-(p=A%85))/85)-(l=A%85))/85)-(u=A%85))/85)%85,o.push(d+33,u+33,l+33,p+33,m+33)):o.push(122);return function(h,g){for(var w=g;w>0;w--)h.pop()}(o,i.length),String.fromCharCode.apply(String,o)+"~>"},e=function(s){var i,o,n,r,A,d=String,u="length",l=255,p="charCodeAt",m="slice",h="replace";for(s[m](-2),s=s[m](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],r=0,A=(s+=i="uuuuu"[m](s[u]%5||5))[u];A>r;r+=5)o=52200625*(s[p](r)-33)+614125*(s[p](r+1)-33)+7225*(s[p](r+2)-33)+85*(s[p](r+3)-33)+(s[p](r+4)-33),n.push(l&o>>24,l&o>>16,l&o>>8,l&o);return function(g,w){for(var v=w;v>0;v--)g.pop()}(n,i[u]),d.fromCharCode.apply(d,n)},a=function(s){var i=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),i.test(s)===!1)return"";for(var o="",n=0;n<s.length;n+=2)o+=String.fromCharCode("0x"+(s[n]+s[n+1]));return o},c=function(s){for(var i=new Uint8Array(s.length),o=s.length;o--;)i[o]=s.charCodeAt(o);return s=(i=Af(i)).reduce(function(n,r){return n+String.fromCharCode(r)},"")};t.processDataByFilters=function(s,i){var o=0,n=s||"",r=[];for(typeof(i=i||[])=="string"&&(i=[i]),o=0;o<i.length;o+=1)switch(i[o]){case"ASCII85Decode":case"/ASCII85Decode":n=e(n),r.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":n=f(n),r.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":n=a(n),r.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":n=n.split("").map(function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)}).join("")+">",r.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":n=c(n),r.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[o]+'" is not implemented')}return{data:n,reverseChain:r.reverse().join(" ")}}}(Dt.API),function(t){t.loadFile=function(f,e,a){return function(c,s,i){s=s!==!1,i=typeof i=="function"?i:function(){};var o=void 0;try{o=function(n,r,A){var d=new XMLHttpRequest,u=0,l=function(p){var m=p.length,h=[],g=String.fromCharCode;for(u=0;u<m;u+=1)h.push(g(255&p.charCodeAt(u)));return h.join("")};if(d.open("GET",n,!r),d.overrideMimeType("text/plain; charset=x-user-defined"),r===!1&&(d.onload=function(){d.status===200?A(l(this.responseText)):A(void 0)}),d.send(null),r&&d.status===200)return l(d.responseText)}(c,s,i)}catch{}return o}(f,e,a)},t.loadImageFile=t.loadFile}(Dt.API),function(t){function f(){return(Nt.html2canvas?Promise.resolve(Nt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-BA_v9SIU.js"))).catch(function(i){return Promise.reject(new Error("Could not load html2canvas: "+i))}).then(function(i){return i.default?i.default:i})}function e(){return(Nt.DOMPurify?Promise.resolve(Nt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-BJHiDXdY.js"))).catch(function(i){return Promise.reject(new Error("Could not load dompurify: "+i))}).then(function(i){return i.default?i.default:i})}var a=function(i){var o=wr(i);return o==="undefined"?"undefined":o==="string"||i instanceof String?"string":o==="number"||i instanceof Number?"number":o==="function"||i instanceof Function?"function":i&&i.constructor===Array?"array":i&&i.nodeType===1?"element":o==="object"?"object":"unknown"},c=function(i,o){var n=document.createElement(i);for(var r in o.className&&(n.className=o.className),o.innerHTML&&o.dompurify&&(n.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)n.style[r]=o.style[r];return n},s=function i(o){var n=Object.assign(i.convert(Promise.resolve()),JSON.parse(JSON.stringify(i.template))),r=i.convert(Promise.resolve(),n);return r=(r=r.setProgress(1,i,1,[i])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(i,o){return i.__proto__=o||s.prototype,i},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(i,o){return this.then(function(){switch(o=o||function(n){switch(a(n)){case"string":return"string";case"element":return n.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(i)){case"string":return this.then(e).then(function(n){return this.set({src:c("div",{innerHTML:i,dompurify:n})})});case"element":return this.set({src:i});case"canvas":return this.set({canvas:i});case"img":return this.set({img:i});default:return this.error("Unknown source type.")}})},s.prototype.to=function(i){switch(i){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var i={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=function n(r,A){for(var d=r.nodeType===3?document.createTextNode(r.nodeValue):r.cloneNode(!1),u=r.firstChild;u;u=u.nextSibling)A!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||d.appendChild(n(u,A));return r.nodeType===1&&(r.nodeName==="CANVAS"?(d.width=r.width,d.height=r.height,d.getContext("2d").drawImage(r,0,0)):r.nodeName!=="TEXTAREA"&&r.nodeName!=="SELECT"||(d.value=r.value),d.addEventListener("load",function(){d.scrollTop=r.scrollTop,d.scrollLeft=r.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(i.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=c("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=c("div",{className:"html2pdf__container",style:i}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(c("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var i=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(i).then(f).then(function(o){var n=Object.assign({},this.opt.html2canvas);return delete n.onrendered,o(this.prop.container,n)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var i=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(i).then(f).then(function(o){var n=this.opt.jsPDF,r=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,n.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,n.context2d.posX=this.opt.x,n.context2d.posY=this.opt.y,n.context2d.margin=this.opt.margin,n.context2d.fontFaces=r,r)for(var u=0;u<r.length;++u){var l=r[u],p=l.src.find(function(m){return m.format==="truetype"});p&&n.addFont(p.url,l.ref.name,l.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,n.context2d.save(!0),o(this.prop.container,d)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var i=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=i})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(i,o,n){return(n=n||"pdf").toLowerCase()==="img"||n.toLowerCase()==="image"?this.outputImg(i,o):this.outputPdf(i,o)},s.prototype.outputPdf=function(i,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(i,o)})},s.prototype.outputImg=function(i){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(i){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+i+'" is not supported.'}})},s.prototype.save=function(i){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(i?{filename:i}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(i){if(a(i)!=="object")return this;var o=Object.keys(i||{}).map(function(n){if(n in s.template.prop)return function(){this.prop[n]=i[n]};switch(n){case"margin":return this.setMargin.bind(this,i.margin);case"jsPDF":return function(){return this.opt.jsPDF=i.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,i.pageSize);default:return function(){this.opt[n]=i[n]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(i,o){return this.then(function(){var n=i in s.template.prop?this.prop[i]:this.opt[i];return o?o(n):n})},s.prototype.setMargin=function(i){return this.then(function(){switch(a(i)){case"number":i=[i,i,i,i];case"array":if(i.length===2&&(i=[i[0],i[1],i[0],i[1]]),i.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=i}).then(this.setPageSize)},s.prototype.setPageSize=function(i){function o(n,r){return Math.floor(n*r/72*96)}return this.then(function(){(i=i||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(i.inner={width:i.width-this.opt.margin[1]-this.opt.margin[3],height:i.height-this.opt.margin[0]-this.opt.margin[2]},i.inner.px={width:o(i.inner.width,i.k),height:o(i.inner.height,i.k)},i.inner.ratio=i.inner.height/i.inner.width),this.prop.pageSize=i})},s.prototype.setProgress=function(i,o,n,r){return i!=null&&(this.progress.val=i),o!=null&&(this.progress.state=o),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(i,o,n,r){return this.setProgress(i?this.progress.val+i:null,o||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(i,o){var n=this;return this.thenCore(i,o,function(r,A){return n.updateProgress(null,null,1,[r]),Promise.prototype.then.call(this,function(d){return n.updateProgress(null,r),d}).then(r,A).then(function(d){return n.updateProgress(1),d})})},s.prototype.thenCore=function(i,o,n){n=n||Promise.prototype.then,i&&(i=i.bind(this)),o&&(o=o.bind(this));var r=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:s.convert(Object.assign({},this),Promise.prototype),A=n.call(r,i,o);return s.convert(A,this.__proto__)},s.prototype.thenExternal=function(i,o){return Promise.prototype.then.call(this,i,o)},s.prototype.thenList=function(i){var o=this;return i.forEach(function(n){o=o.thenCore(n)}),o},s.prototype.catch=function(i){i&&(i=i.bind(this));var o=Promise.prototype.catch.call(this,i);return s.convert(o,this)},s.prototype.catchExternal=function(i){return Promise.prototype.catch.call(this,i)},s.prototype.error=function(i){return this.then(function(){throw new Error(i)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Dt.getPageSize=function(i,o,n){if(wr(i)==="object"){var r=i;i=r.orientation,o=r.unit||o,n=r.format||n}o=o||"mm",n=n||"a4",i=(""+(i||"P")).toLowerCase();var A,d=(""+n).toLowerCase(),u={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+o}var l,p=0,m=0;if(u.hasOwnProperty(d))p=u[d][1]/A,m=u[d][0]/A;else try{p=n[1],m=n[0]}catch{throw new Error("Invalid format: "+n)}if(i==="p"||i==="portrait")i="p",m>p&&(l=m,m=p,p=l);else{if(i!=="l"&&i!=="landscape")throw"Invalid orientation: "+i;i="l",p>m&&(l=m,m=p,p=l)}return{width:m,height:p,unit:o,k:A,orientation:i}},t.html=function(i,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(hf):null;var n=new s(o);return o.worker?n:n.from(i).doCallback()}}(Dt.API),Dt.API.addJS=function(t){return Ch=t,this.internal.events.subscribe("postPutResources",function(){bl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(bl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Bh=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ch+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){bl!==void 0&&Bh!==void 0&&this.internal.out("/Names <</JavaScript "+bl+" 0 R>>")}),this},function(t){var f;t.events.push(["postPutResources",function(){var e=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var c=e.outline.render().split(/\r\n/),s=0;s<c.length;s++){var i=c[s],o=a.exec(i);if(o!=null){var n=o[1];e.internal.newObjectDeferredBegin(n,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var r=this.internal.pages.length,A=[];for(s=0;s<r;s++){var d=e.internal.newObject();A.push(d);var u=e.internal.getPageInfo(s+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var l=e.internal.newObject();for(e.internal.write("<< /Names [ "),s=0;s<A.length;s++)e.internal.write("(page_"+(s+1)+")"+A[s]+" 0 R");e.internal.write(" ] >>","endobj"),f=e.internal.newObject(),e.internal.write("<< /Dests "+l+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+f+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(a,c,s){var i={title:c,options:s,children:[]};return a==null&&(a=this.root),a.children.push(i),i},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(a){a.id=e.internal.newObjectDeferred();for(var c=0;c<a.children.length;c++)this.genIds_r(a.children[c])},e.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},e.outline.renderItems=function(a){for(var c=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<a.children.length;s++){var i=a.children[s];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(a)),s>0&&this.line("/Prev "+this.makeRef(a.children[s-1])),s<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[s+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var n=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+n.objId+" 0 R /XYZ 0 "+c(0)+" 0]")}this.objEnd()}for(var r=0;r<a.children.length;r++)this.renderItems(a.children[r])},e.outline.line=function(a){this.ctx.val+=a+`\r
|
|
180
180
|
`},e.outline.makeRef=function(a){return a.id+" 0 R"},e.outline.makeString=function(a){return"("+e.internal.pdfEscape(a)+")"},e.outline.objStart=function(a){this.ctx.val+=`\r
|
|
181
181
|
`+a.id+` 0 obj\r
|
|
182
182
|
<<\r
|
|
@@ -272,7 +272,7 @@ endobj\r
|
|
|
272
272
|
* http://opensource.org/licenses/mit-license
|
|
273
273
|
*/function yi(t,f){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!f,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Mh(t){function f(F){if(!F)throw Error("assert :P")}function e(F,O,W){for(var G=0;4>G;G++)if(F[O+G]!=W.charCodeAt(G))return!0;return!1}function a(F,O,W,G,D){for(var I=0;I<D;I++)F[O+I]=W[G+I]}function c(F,O,W,G){for(var D=0;D<G;D++)F[O+D]=W}function s(F){return new Int32Array(F)}function i(F,O){for(var W=[],G=0;G<F;G++)W.push(new O);return W}function o(F,O){var W=[];return function G(D,I,M){for(var C=M[I],b=0;b<C&&(D.push(M.length>I+1?[]:new O),!(M.length<I+1));b++)G(D[b],I+1,M)}(W,0,F),W}var n=function(){var F=this;function O(_,H){for(var J=1<<H-1>>>0;_&J;)J>>>=1;return J?(_&J-1)+J:_}function W(_,H,J,X,re){f(!(X%J));do _[H+(X-=J)]=re;while(0<X)}function G(_,H,J,X,re){if(f(2328>=re),512>=re)var ae=s(512);else if((ae=s(re))==null)return 0;return function(oe,le,fe,he,Ee,Le){var Fe,Se,We=le,Pe=1<<fe,Be=s(16),xe=s(16);for(f(Ee!=0),f(he!=null),f(oe!=null),f(0<fe),Se=0;Se<Ee;++Se){if(15<he[Se])return 0;++Be[he[Se]]}if(Be[0]==Ee)return 0;for(xe[1]=0,Fe=1;15>Fe;++Fe){if(Be[Fe]>1<<Fe)return 0;xe[Fe+1]=xe[Fe]+Be[Fe]}for(Se=0;Se<Ee;++Se)Fe=he[Se],0<he[Se]&&(Le[xe[Fe]++]=Se);if(xe[15]==1)return(he=new D).g=0,he.value=Le[0],W(oe,We,1,Pe,he),Pe;var Ye,ze=-1,Oe=Pe-1,pt=0,ot=1,Pt=1,ut=1<<fe;for(Se=0,Fe=1,Ee=2;Fe<=fe;++Fe,Ee<<=1){if(ot+=Pt<<=1,0>(Pt-=Be[Fe]))return 0;for(;0<Be[Fe];--Be[Fe])(he=new D).g=Fe,he.value=Le[Se++],W(oe,We+pt,Ee,ut,he),pt=O(pt,Fe)}for(Fe=fe+1,Ee=2;15>=Fe;++Fe,Ee<<=1){if(ot+=Pt<<=1,0>(Pt-=Be[Fe]))return 0;for(;0<Be[Fe];--Be[Fe]){if(he=new D,(pt&Oe)!=ze){for(We+=ut,Ye=1<<(ze=Fe)-fe;15>ze&&!(0>=(Ye-=Be[ze]));)++ze,Ye<<=1;Pe+=ut=1<<(Ye=ze-fe),oe[le+(ze=pt&Oe)].g=Ye+fe,oe[le+ze].value=We-le-ze}he.g=Fe-fe,he.value=Le[Se++],W(oe,We+(pt>>fe),Ee,ut,he),pt=O(pt,Fe)}}return ot!=2*xe[15]-1?0:Pe}(_,H,J,X,re,ae)}function D(){this.value=this.g=0}function I(){this.value=this.g=0}function M(){this.G=i(5,D),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=i(Pn,I)}function C(_,H,J,X){f(_!=null),f(H!=null),f(2147483648>X),_.Ca=254,_.I=0,_.b=-8,_.Ka=0,_.oa=H,_.pa=J,_.Jd=H,_.Yc=J+X,_.Zc=4<=X?J+X-4+1:J,Z(_)}function b(_,H){for(var J=0;0<H--;)J|=P(_,128)<<H;return J}function y(_,H){var J=b(_,H);return N(_)?-J:J}function E(_,H,J,X){var re,ae=0;for(f(_!=null),f(H!=null),f(4294967288>X),_.Sb=X,_.Ra=0,_.u=0,_.h=0,4<X&&(X=4),re=0;re<X;++re)ae+=H[J+re]<<8*re;_.Ra=ae,_.bb=X,_.oa=H,_.pa=J}function B(_){for(;8<=_.u&&_.bb<_.Sb;)_.Ra>>>=8,_.Ra+=_.oa[_.pa+_.bb]<<Oa-8>>>0,++_.bb,_.u-=8;U(_)&&(_.h=1,_.u=0)}function S(_,H){if(f(0<=H),!_.h&&H<=Ya){var J=V(_)&Ta[H];return _.u+=H,B(_),J}return _.h=1,_.u=0}function T(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function V(_){return _.Ra>>>(_.u&Oa-1)>>>0}function U(_){return f(_.bb<=_.Sb),_.h||_.bb==_.Sb&&_.u>Oa}function q(_,H){_.u=H,_.h=U(_)}function j(_){_.u>=jo&&(f(_.u>=jo),B(_))}function Z(_){f(_!=null&&_.oa!=null),_.pa<_.Zc?(_.I=(_.oa[_.pa++]|_.I<<8)>>>0,_.b+=8):(f(_!=null&&_.oa!=null),_.pa<_.Yc?(_.b+=8,_.I=_.oa[_.pa++]|_.I<<8):_.Ka?_.b=0:(_.I<<=8,_.b+=8,_.Ka=1))}function N(_){return b(_,1)}function P(_,H){var J=_.Ca;0>_.b&&Z(_);var X=_.b,re=J*H>>>8,ae=(_.I>>>X>re)+0;for(ae?(J-=re,_.I-=re+1<<X>>>0):J=re+1,X=J,re=0;256<=X;)re+=8,X>>=8;return X=7^re+kn[X],_.b-=X,_.Ca=(J<<X)-1,ae}function K(_,H,J){_[H+0]=J>>24&255,_[H+1]=J>>16&255,_[H+2]=J>>8&255,_[H+3]=J>>0&255}function $(_,H){return _[H+0]<<0|_[H+1]<<8}function se(_,H){return $(_,H)|_[H+2]<<16}function ee(_,H){return $(_,H)|$(_,H+2)<<16}function Ae(_,H){var J=1<<H;return f(_!=null),f(0<H),_.X=s(J),_.X==null?0:(_.Mb=32-H,_.Xa=H,1)}function ue(_,H){f(_!=null),f(H!=null),f(_.Xa==H.Xa),a(H.X,0,_.X,0,1<<H.Xa)}function te(){this.X=[],this.Xa=this.Mb=0}function ie(_,H,J,X){f(J!=null),f(X!=null);var re=J[0],ae=X[0];return re==0&&(re=(_*ae+H/2)/H),ae==0&&(ae=(H*re+_/2)/_),0>=re||0>=ae?0:(J[0]=re,X[0]=ae,1)}function de(_,H){return _+(1<<H)-1>>>H}function ce(_,H){return((4278255360&_)+(4278255360&H)>>>0&4278255360)+((16711935&_)+(16711935&H)>>>0&16711935)>>>0}function we(_,H){F[H]=function(J,X,re,ae,oe,le,fe){var he;for(he=0;he<oe;++he){var Ee=F[_](le[fe+he-1],re,ae+he);le[fe+he]=ce(J[X+he],Ee)}}}function ge(){this.ud=this.hd=this.jd=0}function be(_,H){return((4278124286&(_^H))>>>1)+(_&H)>>>0}function Ce(_){return 0<=_&&256>_?_:0>_?0:255<_?255:void 0}function Qe(_,H){return Ce(_+(_-H+.5>>1))}function _e(_,H,J){return Math.abs(H-J)-Math.abs(_-J)}function Te(_,H,J,X,re,ae,oe){for(X=ae[oe-1],J=0;J<re;++J)ae[oe+J]=X=ce(_[H+J],X)}function Ge(_,H,J,X,re){var ae;for(ae=0;ae<J;++ae){var oe=_[H+ae],le=oe>>8&255,fe=16711935&(fe=(fe=16711935&oe)+((le<<16)+le));X[re+ae]=(4278255360&oe)+fe>>>0}}function Ve(_,H){H.jd=_>>0&255,H.hd=_>>8&255,H.ud=_>>16&255}function Ke(_,H,J,X,re,ae){var oe;for(oe=0;oe<X;++oe){var le=H[J+oe],fe=le>>>8,he=le,Ee=255&(Ee=(Ee=le>>>16)+((_.jd<<24>>24)*(fe<<24>>24)>>>5));he=255&(he=(he=he+((_.hd<<24>>24)*(fe<<24>>24)>>>5))+((_.ud<<24>>24)*(Ee<<24>>24)>>>5)),re[ae+oe]=(4278255360&le)+(Ee<<16)+he}}function et(_,H,J,X,re){F[H]=function(ae,oe,le,fe,he,Ee,Le,Fe,Se){for(fe=Le;fe<Fe;++fe)for(Le=0;Le<Se;++Le)he[Ee++]=re(le[X(ae[oe++])])},F[_]=function(ae,oe,le,fe,he,Ee,Le){var Fe=8>>ae.b,Se=ae.Ea,We=ae.K[0],Pe=ae.w;if(8>Fe)for(ae=(1<<ae.b)-1,Pe=(1<<Fe)-1;oe<le;++oe){var Be,xe=0;for(Be=0;Be<Se;++Be)Be&ae||(xe=X(fe[he++])),Ee[Le++]=re(We[xe&Pe]),xe>>=Fe}else F["VP8LMapColor"+J](fe,he,We,Pe,Ee,Le,oe,le,Se)}}function ke(_,H,J,X,re){for(J=H+J;H<J;){var ae=_[H++];X[re++]=ae>>16&255,X[re++]=ae>>8&255,X[re++]=ae>>0&255}}function ct(_,H,J,X,re){for(J=H+J;H<J;){var ae=_[H++];X[re++]=ae>>16&255,X[re++]=ae>>8&255,X[re++]=ae>>0&255,X[re++]=ae>>24&255}}function He(_,H,J,X,re){for(J=H+J;H<J;){var ae=(oe=_[H++])>>16&240|oe>>12&15,oe=oe>>0&240|oe>>28&15;X[re++]=ae,X[re++]=oe}}function Ze(_,H,J,X,re){for(J=H+J;H<J;){var ae=(oe=_[H++])>>16&248|oe>>13&7,oe=oe>>5&224|oe>>3&31;X[re++]=ae,X[re++]=oe}}function Je(_,H,J,X,re){for(J=H+J;H<J;){var ae=_[H++];X[re++]=ae>>0&255,X[re++]=ae>>8&255,X[re++]=ae>>16&255}}function it(_,H,J,X,re,ae){if(ae==0)for(J=H+J;H<J;)K(X,((ae=_[H++])[0]>>24|ae[1]>>8&65280|ae[2]<<8&16711680|ae[3]<<24)>>>0),re+=32;else a(X,re,_,H,J)}function lt(_,H){F[H][0]=F[_+"0"],F[H][1]=F[_+"1"],F[H][2]=F[_+"2"],F[H][3]=F[_+"3"],F[H][4]=F[_+"4"],F[H][5]=F[_+"5"],F[H][6]=F[_+"6"],F[H][7]=F[_+"7"],F[H][8]=F[_+"8"],F[H][9]=F[_+"9"],F[H][10]=F[_+"10"],F[H][11]=F[_+"11"],F[H][12]=F[_+"12"],F[H][13]=F[_+"13"],F[H][14]=F[_+"0"],F[H][15]=F[_+"0"]}function gt(_){return _==Xu||_==$u||_==rl||_==ec}function rr(){this.eb=[],this.size=this.A=this.fb=0}function At(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Ut(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new rr,this.f.kb=new At,this.sd=null}function Tt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ht(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ft(_){return alert("todo:WebPSamplerProcessPlane"),_.T}function yt(_,H){var J=_.T,X=H.ba.f.RGBA,re=X.eb,ae=X.fb+_.ka*X.A,oe=ai[H.ba.S],le=_.y,fe=_.O,he=_.f,Ee=_.N,Le=_.ea,Fe=_.W,Se=H.cc,We=H.dc,Pe=H.Mc,Be=H.Nc,xe=_.ka,Ye=_.ka+_.T,ze=_.U,Oe=ze+1>>1;for(xe==0?oe(le,fe,null,null,he,Ee,Le,Fe,he,Ee,Le,Fe,re,ae,null,null,ze):(oe(H.ec,H.fc,le,fe,Se,We,Pe,Be,he,Ee,Le,Fe,re,ae-X.A,re,ae,ze),++J);xe+2<Ye;xe+=2)Se=he,We=Ee,Pe=Le,Be=Fe,Ee+=_.Rc,Fe+=_.Rc,ae+=2*X.A,oe(le,(fe+=2*_.fa)-_.fa,le,fe,Se,We,Pe,Be,he,Ee,Le,Fe,re,ae-X.A,re,ae,ze);return fe+=_.fa,_.j+Ye<_.o?(a(H.ec,H.fc,le,fe,ze),a(H.cc,H.dc,he,Ee,Oe),a(H.Mc,H.Nc,Le,Fe,Oe),J--):1&Ye||oe(le,fe,null,null,he,Ee,Le,Fe,he,Ee,Le,Fe,re,ae+X.A,null,null,ze),J}function Ct(_,H,J){var X=_.F,re=[_.J];if(X!=null){var ae=_.U,oe=H.ba.S,le=oe==tl||oe==rl;H=H.ba.f.RGBA;var fe=[0],he=_.ka;fe[0]=_.T,_.Kb&&(he==0?--fe[0]:(--he,re[0]-=_.width),_.j+_.ka+_.T==_.o&&(fe[0]=_.o-_.j-he));var Ee=H.eb;he=H.fb+he*H.A,_=ZA(X,re[0],_.width,ae,fe,Ee,he+(le?0:3),H.A),f(J==fe),_&>(oe)&&Ms(Ee,he,le,ae,fe,H.A)}return 0}function Ft(_){var H=_.ma,J=H.ba.S,X=11>J,re=J==$A||J==el||J==tl||J==qu||J==12||gt(J);if(H.memory=null,H.Ib=null,H.Jb=null,H.Nd=null,!ko(H.Oa,_,re?11:12))return 0;if(re&>(J)&&Xe(),_.da)alert("todo:use_scaling");else{if(X){if(H.Ib=ft,_.Kb){if(J=_.U+1>>1,H.memory=s(_.U+2*J),H.memory==null)return 0;H.ec=H.memory,H.fc=0,H.cc=H.ec,H.dc=H.fc+_.U,H.Mc=H.cc,H.Nc=H.dc+J,H.Ib=yt,Xe()}}else alert("todo:EmitYUV");re&&(H.Jb=Ct,X&&Me())}if(X&&!Hd){for(_=0;256>_;++_)j1[_]=89858*(_-128)+il>>nl,O1[_]=-22014*(_-128)+il,Y1[_]=-45773*(_-128),T1[_]=113618*(_-128)+il>>nl;for(_=Vo;_<nc;++_)H=76283*(_-16)+il>>nl,G1[_-Vo]=Hn(H,255),W1[_-Vo]=Hn(H+8>>4,15);Hd=1}return 1}function $t(_){var H=_.ma,J=_.U,X=_.T;return f(!(1&_.ka)),0>=J||0>=X?0:(J=H.Ib(_,H),H.Jb!=null&&H.Jb(_,H,J),H.Dc+=J,1)}function xt(_){_.ma.memory=null}function st(_,H,J,X){return S(_,8)!=47?0:(H[0]=S(_,14)+1,J[0]=S(_,14)+1,X[0]=S(_,1),S(_,3)!=0?0:!_.h)}function Xt(_,H){if(4>_)return _+1;var J=_-2>>1;return(2+(1&_)<<J)+S(H,J)+1}function Rt(_,H){return 120<H?H-120:1<=(J=((J=C1[H-1])>>4)*_+(8-(15&J)))?J:1;var J}function ve(_,H,J){var X=V(J),re=_[H+=255&X].g-8;return 0<re&&(q(J,J.u+8),X=V(J),H+=_[H].value,H+=X&(1<<re)-1),q(J,J.u+_[H].g),_[H].value}function Ie(_,H,J){return J.g+=_.g,J.value+=_.value<<H>>>0,f(8>=J.g),_.g}function De(_,H,J){var X=_.xc;return f((H=X==0?0:_.vc[_.md*(J>>X)+(H>>X)])<_.Wb),_.Ya[H]}function qe(_,H,J,X){var re=_.ab,ae=_.c*H,oe=_.C;H=oe+H;var le=J,fe=X;for(X=_.Ta,J=_.Ua;0<re--;){var he=_.gc[re],Ee=oe,Le=H,Fe=le,Se=fe,We=(fe=X,le=J,he.Ea);switch(f(Ee<Le),f(Le<=he.nc),he.hc){case 2:JA(Fe,Se,(Le-Ee)*We,fe,le);break;case 0:var Pe=Ee,Be=Le,xe=fe,Ye=le,ze=(ut=he).Ea;Pe==0&&(zu(Fe,Se,null,null,1,xe,Ye),Te(Fe,Se+1,0,0,ze-1,xe,Ye+1),Se+=ze,Ye+=ze,++Pe);for(var Oe=1<<ut.b,pt=Oe-1,ot=de(ze,ut.b),Pt=ut.K,ut=ut.w+(Pe>>ut.b)*ot;Pe<Be;){var pr=Pt,br=ut,dr=1;for(To(Fe,Se,xe,Ye-ze,1,xe,Ye);dr<ze;){var ar=(dr&~pt)+Oe;ar>ze&&(ar=ze),(0,xs[pr[br++]>>8&15])(Fe,Se+ +dr,xe,Ye+dr-ze,ar-dr,xe,Ye+dr),dr=ar}Se+=ze,Ye+=ze,++Pe&pt||(ut+=ot)}Le!=he.nc&&a(fe,le-We,fe,le+(Le-Ee-1)*We,We);break;case 1:for(We=Fe,Be=Se,ze=(Fe=he.Ea)-(Ye=Fe&~(xe=(Se=1<<he.b)-1)),Pe=de(Fe,he.b),Oe=he.K,he=he.w+(Ee>>he.b)*Pe;Ee<Le;){for(pt=Oe,ot=he,Pt=new ge,ut=Be+Ye,pr=Be+Fe;Be<ut;)Ve(pt[ot++],Pt),ni(Pt,We,Be,Se,fe,le),Be+=Se,le+=Se;Be<pr&&(Ve(pt[ot++],Pt),ni(Pt,We,Be,ze,fe,le),Be+=ze,le+=ze),++Ee&xe||(he+=Pe)}break;case 3:if(Fe==fe&&Se==le&&0<he.b){for(Be=fe,Fe=We=le+(Le-Ee)*We-(Ye=(Le-Ee)*de(he.Ea,he.b)),Se=fe,xe=le,Pe=[],Ye=(ze=Ye)-1;0<=Ye;--Ye)Pe[Ye]=Se[xe+Ye];for(Ye=ze-1;0<=Ye;--Ye)Be[Fe+Ye]=Pe[Ye];hi(he,Ee,Le,fe,We,fe,le)}else hi(he,Ee,Le,Fe,Se,fe,le)}le=X,fe=J}fe!=J&&a(X,J,le,fe,ae)}function It(_,H){var J=_.V,X=_.Ba+_.c*_.C,re=H-_.C;if(f(H<=_.l.o),f(16>=re),0<re){var ae=_.l,oe=_.Ta,le=_.Ua,fe=ae.width;if(qe(_,re,J,X),re=le=[le],f((J=_.C)<(X=H)),f(ae.v<ae.va),X>ae.o&&(X=ae.o),J<ae.j){var he=ae.j-J;J=ae.j,re[0]+=he*fe}if(J>=X?J=0:(re[0]+=4*ae.v,ae.ka=J-ae.j,ae.U=ae.va-ae.v,ae.T=X-J,J=1),J){if(le=le[0],11>(J=_.ca).S){var Ee=J.f.RGBA,Le=(X=J.S,re=ae.U,ae=ae.T,he=Ee.eb,Ee.A),Fe=ae;for(Ee=Ee.fb+_.Ma*Ee.A;0<Fe--;){var Se=oe,We=le,Pe=re,Be=he,xe=Ee;switch(X){case XA:pi(Se,We,Pe,Be,xe);break;case $A:Is(Se,We,Pe,Be,xe);break;case Xu:Is(Se,We,Pe,Be,xe),Ms(Be,xe,0,Pe,1,0);break;case Pd:Ga(Se,We,Pe,Be,xe);break;case el:it(Se,We,Pe,Be,xe,1);break;case $u:it(Se,We,Pe,Be,xe,1),Ms(Be,xe,0,Pe,1,0);break;case tl:it(Se,We,Pe,Be,xe,0);break;case rl:it(Se,We,Pe,Be,xe,0),Ms(Be,xe,1,Pe,1,0);break;case qu:Ri(Se,We,Pe,Be,xe);break;case ec:Ri(Se,We,Pe,Be,xe),Ha(Be,xe,Pe,1,0);break;case kd:ts(Se,We,Pe,Be,xe);break;default:f(0)}le+=fe,Ee+=Le}_.Ma+=ae}else alert("todo:EmitRescaledRowsYUVA");f(_.Ma<=J.height)}}_.C=H,f(_.C<=_.i)}function tt(_){var H;if(0<_.ua)return 0;for(H=0;H<_.Wb;++H){var J=_.Ya[H].G,X=_.Ya[H].H;if(0<J[1][X[1]+0].g||0<J[2][X[2]+0].g||0<J[3][X[3]+0].g)return 0}return 1}function Et(_,H,J,X,re,ae){if(_.Z!=0){var oe=_.qd,le=_.rd;for(f(Ls[_.Z]!=null);H<J;++H)Ls[_.Z](oe,le,X,re,X,re,ae),oe=X,le=re,re+=ae;_.qd=oe,_.rd=le}}function bt(_,H){var J=_.l.ma,X=J.Z==0||J.Z==1?_.l.j:_.C;if(X=_.C<X?X:_.C,f(H<=_.l.o),H>X){var re=_.l.width,ae=J.ca,oe=J.tb+re*X,le=_.V,fe=_.Ba+_.c*X,he=_.gc;f(_.ab==1),f(he[0].hc==3),Ku(he[0],X,H,le,fe,ae,oe),Et(J,X,H,ae,oe,re)}_.C=_.Ma=H}function mt(_,H,J,X,re,ae,oe){var le=_.$/X,fe=_.$%X,he=_.m,Ee=_.s,Le=J+_.$,Fe=Le;re=J+X*re;var Se=J+X*ae,We=280+Ee.ua,Pe=_.Pb?le:16777216,Be=0<Ee.ua?Ee.Wa:null,xe=Ee.wc,Ye=Le<Se?De(Ee,fe,le):null;f(_.C<ae),f(Se<=re);var ze=!1;e:for(;;){for(;ze||Le<Se;){var Oe=0;if(le>=Pe){var pt=Le-J;f((Pe=_).Pb),Pe.wd=Pe.m,Pe.xd=pt,0<Pe.s.ua&&ue(Pe.s.Wa,Pe.s.vb),Pe=le+I1}if(fe&xe||(Ye=De(Ee,fe,le)),f(Ye!=null),Ye.Qb&&(H[Le]=Ye.qb,ze=!0),!ze)if(j(he),Ye.jc){Oe=he,pt=H;var ot=Le,Pt=Ye.pd[V(Oe)&Pn-1];f(Ye.jc),256>Pt.g?(q(Oe,Oe.u+Pt.g),pt[ot]=Pt.value,Oe=0):(q(Oe,Oe.u+Pt.g-256),f(256<=Pt.value),Oe=Pt.value),Oe==0&&(ze=!0)}else Oe=ve(Ye.G[0],Ye.H[0],he);if(he.h)break;if(ze||256>Oe){if(!ze)if(Ye.nd)H[Le]=(Ye.qb|Oe<<8)>>>0;else{if(j(he),ze=ve(Ye.G[1],Ye.H[1],he),j(he),pt=ve(Ye.G[2],Ye.H[2],he),ot=ve(Ye.G[3],Ye.H[3],he),he.h)break;H[Le]=(ot<<24|ze<<16|Oe<<8|pt)>>>0}if(ze=!1,++Le,++fe>=X&&(fe=0,++le,oe!=null&&le<=ae&&!(le%16)&&oe(_,le),Be!=null))for(;Fe<Le;)Oe=H[Fe++],Be.X[(506832829*Oe&4294967295)>>>Be.Mb]=Oe}else if(280>Oe){if(Oe=Xt(Oe-256,he),pt=ve(Ye.G[4],Ye.H[4],he),j(he),pt=Rt(X,pt=Xt(pt,he)),he.h)break;if(Le-J<pt||re-Le<Oe)break e;for(ot=0;ot<Oe;++ot)H[Le+ot]=H[Le+ot-pt];for(Le+=Oe,fe+=Oe;fe>=X;)fe-=X,++le,oe!=null&&le<=ae&&!(le%16)&&oe(_,le);if(f(Le<=re),fe&xe&&(Ye=De(Ee,fe,le)),Be!=null)for(;Fe<Le;)Oe=H[Fe++],Be.X[(506832829*Oe&4294967295)>>>Be.Mb]=Oe}else{if(!(Oe<We))break e;for(ze=Oe-280,f(Be!=null);Fe<Le;)Oe=H[Fe++],Be.X[(506832829*Oe&4294967295)>>>Be.Mb]=Oe;Oe=Le,f(!(ze>>>(pt=Be).Xa)),H[Oe]=pt.X[ze],ze=!0}ze||f(he.h==U(he))}if(_.Pb&&he.h&&Le<re)f(_.m.h),_.a=5,_.m=_.wd,_.$=_.xd,0<_.s.ua&&ue(_.s.vb,_.s.Wa);else{if(he.h)break e;oe!=null&&oe(_,le>ae?ae:le),_.a=0,_.$=Le-J}return 1}return _.a=3,0}function Mt(_){f(_!=null),_.vc=null,_.yc=null,_.Ya=null;var H=_.Wa;H!=null&&(H.X=null),_.vb=null,f(_!=null)}function Bt(){var _=new Uu;return _==null?null:(_.a=0,_.xb=Td,lt("Predictor","VP8LPredictors"),lt("Predictor","VP8LPredictors_C"),lt("PredictorAdd","VP8LPredictorsAdd"),lt("PredictorAdd","VP8LPredictorsAdd_C"),JA=Ge,ni=Ke,pi=ke,Is=ct,Ri=He,ts=Ze,Ga=Je,F.VP8LMapColor32b=Yo,F.VP8LMapColor8b=Ju,_)}function kt(_,H,J,X,re){var ae=1,oe=[_],le=[H],fe=X.m,he=X.s,Ee=null,Le=0;e:for(;;){if(J)for(;ae&&S(fe,1);){var Fe=oe,Se=le,We=X,Pe=1,Be=We.m,xe=We.gc[We.ab],Ye=S(Be,2);if(We.Oc&1<<Ye)ae=0;else{switch(We.Oc|=1<<Ye,xe.hc=Ye,xe.Ea=Fe[0],xe.nc=Se[0],xe.K=[null],++We.ab,f(4>=We.ab),Ye){case 0:case 1:xe.b=S(Be,3)+2,Pe=kt(de(xe.Ea,xe.b),de(xe.nc,xe.b),0,We,xe.K),xe.K=xe.K[0];break;case 3:var ze,Oe=S(Be,8)+1,pt=16<Oe?0:4<Oe?1:2<Oe?2:3;if(Fe[0]=de(xe.Ea,pt),xe.b=pt,ze=Pe=kt(Oe,1,0,We,xe.K)){var ot,Pt=Oe,ut=xe,pr=1<<(8>>ut.b),br=s(pr);if(br==null)ze=0;else{var dr=ut.K[0],ar=ut.w;for(br[0]=ut.K[0][0],ot=1;ot<1*Pt;++ot)br[ot]=ce(dr[ar+ot],br[ot-1]);for(;ot<4*pr;++ot)br[ot]=0;ut.K[0]=null,ut.K[0]=br,ze=1}}Pe=ze;break;case 2:break;default:f(0)}ae=Pe}}if(oe=oe[0],le=le[0],ae&&S(fe,1)&&!(ae=1<=(Le=S(fe,4))&&11>=Le)){X.a=3;break e}var Br;if(Br=ae)t:{var Er,qt,Xr,Nn=X,$r=oe,jn=le,vr=Le,zn=J,Kn=Nn.m,cn=Nn.s,gn=[null],Fn=1,oi=0,Li=x1[vr];r:for(;;){if(zn&&S(Kn,1)){var fn=S(Kn,3)+2,as=de($r,fn),Aa=de(jn,fn),Ua=as*Aa;if(!kt(as,Aa,0,Nn,gn))break r;for(gn=gn[0],cn.xc=fn,Er=0;Er<Ua;++Er){var Fs=gn[Er]>>8&65535;gn[Er]=Fs,Fs>=Fn&&(Fn=Fs+1)}}if(Kn.h)break r;for(qt=0;5>qt;++qt){var kr=Nd[qt];!qt&&0<vr&&(kr+=1<<vr),oi<kr&&(oi=kr)}var ic=i(Fn*Li,D),Kd=Fn,Jd=i(Kd,M);if(Jd==null)var al=null;else f(65536>=Kd),al=Jd;var Ho=s(oi);if(al==null||Ho==null||ic==null){Nn.a=1;break r}var ol=ic;for(Er=Xr=0;Er<Fn;++Er){var bi=al[Er],za=bi.G,Ka=bi.H,Zd=0,Al=1,qd=0;for(qt=0;5>qt;++qt){kr=Nd[qt],za[qt]=ol,Ka[qt]=Xr,!qt&&0<vr&&(kr+=1<<vr);i:{var ll,sc=kr,ul=Nn,Uo=Ho,U1=ol,z1=Xr,ac=0,Ds=ul.m,K1=S(Ds,1);if(c(Uo,0,0,sc),K1){var J1=S(Ds,1)+1,Z1=S(Ds,1),Xd=S(Ds,Z1==0?1:8);Uo[Xd]=1,J1==2&&(Uo[Xd=S(Ds,8)]=1);var cl=1}else{var $d=s(19),eh=S(Ds,4)+4;if(19<eh){ul.a=3;var fl=0;break i}for(ll=0;ll<eh;++ll)$d[B1[ll]]=S(Ds,3);var oc=void 0,zo=void 0,th=ul,q1=$d,dl=sc,rh=Uo,Ac=0,_s=th.m,nh=8,ih=i(128,D);n:for(;G(ih,0,7,q1,19);){if(S(_s,1)){var X1=2+2*S(_s,3);if((oc=2+S(_s,X1))>dl)break n}else oc=dl;for(zo=0;zo<dl&&oc--;){j(_s);var sh=ih[0+(127&V(_s))];q(_s,_s.u+sh.g);var Ja=sh.value;if(16>Ja)rh[zo++]=Ja,Ja!=0&&(nh=Ja);else{var $1=Ja==16,ah=Ja-16,ew=y1[ah],oh=S(_s,v1[ah])+ew;if(zo+oh>dl)break n;for(var tw=$1?nh:0;0<oh--;)rh[zo++]=tw}}Ac=1;break n}Ac||(th.a=3),cl=Ac}(cl=cl&&!Ds.h)&&(ac=G(U1,z1,8,Uo,sc)),cl&&ac!=0?fl=ac:(ul.a=3,fl=0)}if(fl==0)break r;if(Al&&E1[qt]==1&&(Al=ol[Xr].g==0),Zd+=ol[Xr].g,Xr+=fl,3>=qt){var Ko,lc=Ho[0];for(Ko=1;Ko<kr;++Ko)Ho[Ko]>lc&&(lc=Ho[Ko]);qd+=lc}}if(bi.nd=Al,bi.Qb=0,Al&&(bi.qb=(za[3][Ka[3]+0].value<<24|za[1][Ka[1]+0].value<<16|za[2][Ka[2]+0].value)>>>0,Zd==0&&256>za[0][Ka[0]+0].value&&(bi.Qb=1,bi.qb+=za[0][Ka[0]+0].value<<8)),bi.jc=!bi.Qb&&6>qd,bi.jc){var hl,os=bi;for(hl=0;hl<Pn;++hl){var Ps=hl,ks=os.pd[Ps],pl=os.G[0][os.H[0]+Ps];256<=pl.value?(ks.g=pl.g+256,ks.value=pl.value):(ks.g=0,ks.value=0,Ps>>=Ie(pl,8,ks),Ps>>=Ie(os.G[1][os.H[1]+Ps],16,ks),Ps>>=Ie(os.G[2][os.H[2]+Ps],0,ks),Ie(os.G[3][os.H[3]+Ps],24,ks))}}}cn.vc=gn,cn.Wb=Fn,cn.Ya=al,cn.yc=ic,Br=1;break t}Br=0}if(!(ae=Br)){X.a=3;break e}if(0<Le){if(he.ua=1<<Le,!Ae(he.Wa,Le)){X.a=1,ae=0;break e}}else he.ua=0;var uc=X,Ah=oe,rw=le,cc=uc.s,fc=cc.xc;if(uc.c=Ah,uc.i=rw,cc.md=de(Ah,fc),cc.wc=fc==0?-1:(1<<fc)-1,J){X.xb=D1;break e}if((Ee=s(oe*le))==null){X.a=1,ae=0;break e}ae=(ae=mt(X,Ee,0,oe,le,le,null))&&!fe.h;break e}return ae?(re!=null?re[0]=Ee:(f(Ee==null),f(J)),X.$=0,J||Mt(he)):Mt(he),ae}function gr(_,H){var J=_.c*_.i,X=J+H+16*H;return f(_.c<=H),_.V=s(X),_.V==null?(_.Ta=null,_.Ua=0,_.a=1,0):(_.Ta=_.V,_.Ua=_.Ba+J+H,1)}function lr(_,H){var J=_.C,X=H-J,re=_.V,ae=_.Ba+_.c*J;for(f(H<=_.l.o);0<X;){var oe=16<X?16:X,le=_.l.ma,fe=_.l.width,he=fe*oe,Ee=le.ca,Le=le.tb+fe*J,Fe=_.Ta,Se=_.Ua;qe(_,oe,re,ae),Md(Fe,Se,Ee,Le,he),Et(le,J,J+oe,Ee,Le,fe),X-=oe,re+=oe*_.c,J+=oe}f(J==H),_.C=_.Ma=H}function xr(){this.ub=this.yd=this.td=this.Rb=0}function Ir(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Or(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function pe(){this.Yb=function(){var _=[];return function H(J,X,re){for(var ae=re[X],oe=0;oe<ae&&(J.push(re.length>X+1?[]:0),!(re.length<X+1));oe++)H(J[oe],X+1,re)}(_,0,[3,11]),_}()}function Re(){this.jb=s(3),this.Wc=o([4,8],pe),this.Xc=o([4,17],pe)}function je(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Ue(){this.ld=this.La=this.dd=this.tc=0}function wt(){this.Na=this.la=0}function rt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function nt(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function er(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ue),this.Y=0,this.ya=Array(new nt),this.aa=0,this.l=new St}function Vt(){this.y=s(16),this.f=s(8),this.ea=s(8)}function zt(){this.cb=this.a=0,this.sc="",this.m=new T,this.Od=new xr,this.Kc=new Ir,this.ed=new je,this.Qa=new Or,this.Ic=this.$c=this.Aa=0,this.D=new er,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=i(8,T),this.ia=0,this.pb=i(4,rt),this.Pa=new Re,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Vt),this.Hd=0,this.rb=Array(new wt),this.sb=0,this.wa=Array(new Ue),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new nt),this.L=this.aa=0,this.gd=o([4,2],Ue),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function St(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ur(){var _=new zt;return _!=null&&(_.a=0,_.sc="OK",_.cb=0,_.Xb=0,Wo||(Wo=Fr)),_}function _t(_,H,J){return _.a==0&&(_.a=H,_.sc=J,_.cb=0),0}function cr(_,H,J){return 3<=J&&_[H+0]==157&&_[H+1]==1&&_[H+2]==42}function yr(_,H){if(_==null)return 0;if(_.a=0,_.sc="OK",H==null)return _t(_,2,"null VP8Io passed to VP8GetHeaders()");var J=H.data,X=H.w,re=H.ha;if(4>re)return _t(_,7,"Truncated header.");var ae=J[X+0]|J[X+1]<<8|J[X+2]<<16,oe=_.Od;if(oe.Rb=!(1&ae),oe.td=ae>>1&7,oe.yd=ae>>4&1,oe.ub=ae>>5,3<oe.td)return _t(_,3,"Incorrect keyframe parameters.");if(!oe.yd)return _t(_,4,"Frame not displayable.");X+=3,re-=3;var le=_.Kc;if(oe.Rb){if(7>re)return _t(_,7,"cannot parse picture header");if(!cr(J,X,re))return _t(_,3,"Bad code word");le.c=16383&(J[X+4]<<8|J[X+3]),le.Td=J[X+4]>>6,le.i=16383&(J[X+6]<<8|J[X+5]),le.Ud=J[X+6]>>6,X+=7,re-=7,_.za=le.c+15>>4,_.Ub=le.i+15>>4,H.width=le.c,H.height=le.i,H.Da=0,H.j=0,H.v=0,H.va=H.width,H.o=H.height,H.da=0,H.ib=H.width,H.hb=H.height,H.U=H.width,H.T=H.height,c((ae=_.Pa).jb,0,255,ae.jb.length),f((ae=_.Qa)!=null),ae.Cb=0,ae.Bb=0,ae.Fb=1,c(ae.Zb,0,0,ae.Zb.length),c(ae.Lb,0,0,ae.Lb)}if(oe.ub>re)return _t(_,7,"bad partition length");C(ae=_.m,J,X,oe.ub),X+=oe.ub,re-=oe.ub,oe.Rb&&(le.Ld=N(ae),le.Kd=N(ae)),le=_.Qa;var fe,he=_.Pa;if(f(ae!=null),f(le!=null),le.Cb=N(ae),le.Cb){if(le.Bb=N(ae),N(ae)){for(le.Fb=N(ae),fe=0;4>fe;++fe)le.Zb[fe]=N(ae)?y(ae,7):0;for(fe=0;4>fe;++fe)le.Lb[fe]=N(ae)?y(ae,6):0}if(le.Bb)for(fe=0;3>fe;++fe)he.jb[fe]=N(ae)?b(ae,8):255}else le.Bb=0;if(ae.Ka)return _t(_,3,"cannot parse segment header");if((le=_.ed).zd=N(ae),le.Tb=b(ae,6),le.wb=b(ae,3),le.Pc=N(ae),le.Pc&&N(ae)){for(he=0;4>he;++he)N(ae)&&(le.vd[he]=y(ae,6));for(he=0;4>he;++he)N(ae)&&(le.od[he]=y(ae,6))}if(_.L=le.Tb==0?0:le.zd?1:2,ae.Ka)return _t(_,3,"cannot parse filter header");var Ee=re;if(re=fe=X,X=fe+Ee,le=Ee,_.Xb=(1<<b(_.m,2))-1,Ee<3*(he=_.Xb))J=7;else{for(fe+=3*he,le-=3*he,Ee=0;Ee<he;++Ee){var Le=J[re+0]|J[re+1]<<8|J[re+2]<<16;Le>le&&(Le=le),C(_.Jc[+Ee],J,fe,Le),fe+=Le,le-=Le,re+=3}C(_.Jc[+he],J,fe,le),J=fe<X?0:5}if(J!=0)return _t(_,J,"cannot parse partitions");for(J=b(fe=_.m,7),re=N(fe)?y(fe,4):0,X=N(fe)?y(fe,4):0,le=N(fe)?y(fe,4):0,he=N(fe)?y(fe,4):0,fe=N(fe)?y(fe,4):0,Ee=_.Qa,Le=0;4>Le;++Le){if(Ee.Cb){var Fe=Ee.Zb[Le];Ee.Fb||(Fe+=J)}else{if(0<Le){_.pb[Le]=_.pb[0];continue}Fe=J}var Se=_.pb[Le];Se.Sc[0]=tc[Hn(Fe+re,127)],Se.Sc[1]=rc[Hn(Fe+0,127)],Se.Eb[0]=2*tc[Hn(Fe+X,127)],Se.Eb[1]=101581*rc[Hn(Fe+le,127)]>>16,8>Se.Eb[1]&&(Se.Eb[1]=8),Se.Qc[0]=tc[Hn(Fe+he,117)],Se.Qc[1]=rc[Hn(Fe+fe,127)],Se.lc=Fe+fe}if(!oe.Rb)return _t(_,4,"Not a key frame.");for(N(ae),oe=_.Pa,J=0;4>J;++J){for(re=0;8>re;++re)for(X=0;3>X;++X)for(le=0;11>le;++le)he=P(ae,L1[J][re][X][le])?b(ae,8):M1[J][re][X][le],oe.Wc[J][re].Yb[X][le]=he;for(re=0;17>re;++re)oe.Xc[J][re]=oe.Wc[J][F1[re]]}return _.kc=N(ae),_.kc&&(_.Bd=b(ae,8)),_.cb=1}function Fr(_,H,J,X,re,ae,oe){var le=H[re].Yb[J];for(J=0;16>re;++re){if(!P(_,le[J+0]))return re;for(;!P(_,le[J+1]);)if(le=H[++re].Yb[0],J=0,re==16)return 16;var fe=H[re+1].Yb;if(P(_,le[J+2])){var he=_,Ee=0;if(P(he,(Fe=le)[(Le=J)+3]))if(P(he,Fe[Le+6])){for(le=0,Le=2*(Ee=P(he,Fe[Le+8]))+(Fe=P(he,Fe[Le+9+Ee])),Ee=0,Fe=S1[Le];Fe[le];++le)Ee+=Ee+P(he,Fe[le]);Ee+=3+(8<<Le)}else P(he,Fe[Le+7])?(Ee=7+2*P(he,165),Ee+=P(he,145)):Ee=5+P(he,159);else Ee=P(he,Fe[Le+4])?3+P(he,Fe[Le+5]):2;le=fe[2]}else Ee=1,le=fe[1];fe=oe+Q1[re],0>(he=_).b&&Z(he);var Le,Fe=he.b,Se=(Le=he.Ca>>1)-(he.I>>Fe)>>31;--he.b,he.Ca+=Se,he.Ca|=1,he.I-=(Le+1&Se)<<Fe,ae[fe]=((Ee^Se)-Se)*X[(0<re)+0]}return 16}function Gr(_){var H=_.rb[_.sb-1];H.la=0,H.Na=0,c(_.zc,0,0,_.zc.length),_.ja=0}function Mn(_,H){if(_==null)return 0;if(H==null)return _t(_,2,"NULL VP8Io parameter in VP8Decode().");if(!_.cb&&!yr(_,H))return 0;if(f(_.cb),H.ac==null||H.ac(H)){H.ob&&(_.L=0);var J=sl[_.L];if(_.L==2?(_.yb=0,_.zb=0):(_.yb=H.v-J>>4,_.zb=H.j-J>>4,0>_.yb&&(_.yb=0),0>_.zb&&(_.zb=0)),_.Va=H.o+15+J>>4,_.Hb=H.va+15+J>>4,_.Hb>_.za&&(_.Hb=_.za),_.Va>_.Ub&&(_.Va=_.Ub),0<_.L){var X=_.ed;for(J=0;4>J;++J){var re;if(_.Qa.Cb){var ae=_.Qa.Lb[J];_.Qa.Fb||(ae+=X.Tb)}else ae=X.Tb;for(re=0;1>=re;++re){var oe=_.gd[J][re],le=ae;if(X.Pc&&(le+=X.vd[0],re&&(le+=X.od[0])),0<(le=0>le?0:63<le?63:le)){var fe=le;0<X.wb&&(fe=4<X.wb?fe>>2:fe>>1)>9-X.wb&&(fe=9-X.wb),1>fe&&(fe=1),oe.dd=fe,oe.tc=2*le+fe,oe.ld=40<=le?2:15<=le?1:0}else oe.tc=0;oe.La=re}}}J=0}else _t(_,6,"Frame setup failed"),J=_.a;if(J=J==0){if(J){_.$c=0,0<_.Aa||(_.Ic=H1);e:{J=_.Ic,X=4*(fe=_.za);var he=32*fe,Ee=fe+1,Le=0<_.L?fe*(0<_.Aa?2:1):0,Fe=(_.Aa==2?2:1)*fe;if((oe=X+832+(re=3*(16*J+sl[_.L])/2*he)+(ae=_.Fa!=null&&0<_.Fa.length?_.Kc.c*_.Kc.i:0))!=oe)J=0;else{if(oe>_.Vb){if(_.Vb=0,_.Ec=s(oe),_.Fc=0,_.Ec==null){J=_t(_,1,"no memory during frame initialization.");break e}_.Vb=oe}oe=_.Ec,le=_.Fc,_.Ac=oe,_.Bc=le,le+=X,_.Gd=i(he,Vt),_.Hd=0,_.rb=i(Ee+1,wt),_.sb=1,_.wa=Le?i(Le,Ue):null,_.Y=0,_.D.Nb=0,_.D.wa=_.wa,_.D.Y=_.Y,0<_.Aa&&(_.D.Y+=fe),f(!0),_.oc=oe,_.pc=le,le+=832,_.ya=i(Fe,nt),_.aa=0,_.D.ya=_.ya,_.D.aa=_.aa,_.Aa==2&&(_.D.aa+=fe),_.R=16*fe,_.B=8*fe,fe=(he=sl[_.L])*_.R,he=he/2*_.B,_.sa=oe,_.ta=le+fe,_.qa=_.sa,_.ra=_.ta+16*J*_.R+he,_.Ha=_.qa,_.Ia=_.ra+8*J*_.B+he,_.$c=0,le+=re,_.mb=ae?oe:null,_.nb=ae?le:null,f(le+ae<=_.Fc+_.Vb),Gr(_),c(_.Ac,_.Bc,0,X),J=1}}if(J){if(H.ka=0,H.y=_.sa,H.O=_.ta,H.f=_.qa,H.N=_.ra,H.ea=_.Ha,H.Vd=_.Ia,H.fa=_.R,H.Rc=_.B,H.F=null,H.J=0,!_d){for(J=-255;255>=J;++J)Rd[255+J]=0>J?-J:J;for(J=-1020;1020>=J;++J)Ld[1020+J]=-128>J?-128:127<J?127:J;for(J=-112;112>=J;++J)Fd[112+J]=-16>J?-16:15<J?15:J;for(J=-255;510>=J;++J)Dd[255+J]=0>J?0:255<J?255:J;_d=1}mi=mn,Wa=sr,Ss=Vn,gi=ci,rs=Ki,Oo=Ar,aa=So,Va=ia,oa=Hu,Qs=Qo,Go=Vu,ii=_a,ns=Mo,Sr=UA,Qr=HA,Vr=$i,sn=Es,is=Wu,wi[0]=Mi,wi[1]=ri,wi[2]=bs,wi[3]=vs,wi[4]=YA,wi[5]=Fa,wi[6]=OA,wi[7]=Co,wi[8]=Yu,wi[9]=Tu,Rs[0]=qi,Rs[1]=gs,Rs[2]=yn,Rs[3]=Ln,Rs[4]=Zr,Rs[5]=ws,Rs[6]=Xi,ss[0]=ys,ss[1]=Ji,ss[2]=Ou,ss[3]=xo,ss[4]=na,ss[5]=Gu,ss[6]=Io,J=1}else J=0}J&&(J=function(Se,We){for(Se.M=0;Se.M<Se.Va;++Se.M){var Pe,Be=Se.Jc[Se.M&Se.Xb],xe=Se.m,Ye=Se;for(Pe=0;Pe<Ye.za;++Pe){var ze=xe,Oe=Ye,pt=Oe.Ac,ot=Oe.Bc+4*Pe,Pt=Oe.zc,ut=Oe.ya[Oe.aa+Pe];if(Oe.Qa.Bb?ut.$b=P(ze,Oe.Pa.jb[0])?2+P(ze,Oe.Pa.jb[2]):P(ze,Oe.Pa.jb[1]):ut.$b=0,Oe.kc&&(ut.Ad=P(ze,Oe.Bd)),ut.Za=!P(ze,145)+0,ut.Za){var pr=ut.Ob,br=0;for(Oe=0;4>Oe;++Oe){var dr,ar=Pt[0+Oe];for(dr=0;4>dr;++dr){ar=R1[pt[ot+dr]][ar];for(var Br=jd[P(ze,ar[0])];0<Br;)Br=jd[2*Br+P(ze,ar[Br])];ar=-Br,pt[ot+dr]=ar}a(pr,br,pt,ot,4),br+=4,Pt[0+Oe]=ar}}else ar=P(ze,156)?P(ze,128)?1:3:P(ze,163)?2:0,ut.Ob[0]=ar,c(pt,ot,ar,4),c(Pt,0,ar,4);ut.Dd=P(ze,142)?P(ze,114)?P(ze,183)?1:3:2:0}if(Ye.m.Ka)return _t(Se,7,"Premature end-of-partition0 encountered.");for(;Se.ja<Se.za;++Se.ja){if(Ye=Be,ze=(xe=Se).rb[xe.sb-1],pt=xe.rb[xe.sb+xe.ja],Pe=xe.ya[xe.aa+xe.ja],ot=xe.kc?Pe.Ad:0)ze.la=pt.la=0,Pe.Za||(ze.Na=pt.Na=0),Pe.Hc=0,Pe.Gc=0,Pe.ia=0;else{var Er,qt;if(ze=pt,pt=Ye,ot=xe.Pa.Xc,Pt=xe.ya[xe.aa+xe.ja],ut=xe.pb[Pt.$b],Oe=Pt.ad,pr=0,br=xe.rb[xe.sb-1],ar=dr=0,c(Oe,pr,0,384),Pt.Za)var Xr=0,Nn=ot[3];else{Br=s(16);var $r=ze.Na+br.Na;if($r=Wo(pt,ot[1],$r,ut.Eb,0,Br,0),ze.Na=br.Na=(0<$r)+0,1<$r)mi(Br,0,Oe,pr);else{var jn=Br[0]+3>>3;for(Br=0;256>Br;Br+=16)Oe[pr+Br]=jn}Xr=1,Nn=ot[0]}var vr=15&ze.la,zn=15&br.la;for(Br=0;4>Br;++Br){var Kn=1&zn;for(jn=qt=0;4>jn;++jn)vr=vr>>1|(Kn=($r=Wo(pt,Nn,$r=Kn+(1&vr),ut.Sc,Xr,Oe,pr))>Xr)<<7,qt=qt<<2|(3<$r?3:1<$r?2:Oe[pr+0]!=0),pr+=16;vr>>=4,zn=zn>>1|Kn<<7,dr=(dr<<8|qt)>>>0}for(Nn=vr,Xr=zn>>4,Er=0;4>Er;Er+=2){for(qt=0,vr=ze.la>>4+Er,zn=br.la>>4+Er,Br=0;2>Br;++Br){for(Kn=1&zn,jn=0;2>jn;++jn)$r=Kn+(1&vr),vr=vr>>1|(Kn=0<($r=Wo(pt,ot[2],$r,ut.Qc,0,Oe,pr)))<<3,qt=qt<<2|(3<$r?3:1<$r?2:Oe[pr+0]!=0),pr+=16;vr>>=2,zn=zn>>1|Kn<<5}ar|=qt<<4*Er,Nn|=vr<<4<<Er,Xr|=(240&zn)<<Er}ze.la=Nn,br.la=Xr,Pt.Hc=dr,Pt.Gc=ar,Pt.ia=43690&ar?0:ut.ia,ot=!(dr|ar)}if(0<xe.L&&(xe.wa[xe.Y+xe.ja]=xe.gd[Pe.$b][Pe.Za],xe.wa[xe.Y+xe.ja].La|=!ot),Ye.Ka)return _t(Se,7,"Premature end-of-file encountered.")}if(Gr(Se),xe=We,Ye=1,Pe=(Be=Se).D,ze=0<Be.L&&Be.M>=Be.zb&&Be.M<=Be.Va,Be.Aa==0)e:{if(Pe.M=Be.M,Pe.uc=ze,Po(Be,Pe),Ye=1,Pe=(qt=Be.D).Nb,ze=(ar=sl[Be.L])*Be.R,pt=ar/2*Be.B,Br=16*Pe*Be.R,jn=8*Pe*Be.B,ot=Be.sa,Pt=Be.ta-ze+Br,ut=Be.qa,Oe=Be.ra-pt+jn,pr=Be.Ha,br=Be.Ia-pt+jn,zn=(vr=qt.M)==0,dr=vr>=Be.Va-1,Be.Aa==2&&Po(Be,qt),qt.uc)for(Kn=($r=Be).D.M,f($r.D.uc),qt=$r.yb;qt<$r.Hb;++qt){Xr=qt,Nn=Kn;var cn=(gn=(kr=$r).D).Nb;Er=kr.R;var gn=gn.wa[gn.Y+Xr],Fn=kr.sa,oi=kr.ta+16*cn*Er+16*Xr,Li=gn.dd,fn=gn.tc;if(fn!=0)if(f(3<=fn),kr.L==1)0<Xr&&Vr(Fn,oi,Er,fn+4),gn.La&&is(Fn,oi,Er,fn),0<Nn&&Qr(Fn,oi,Er,fn+4),gn.La&&sn(Fn,oi,Er,fn);else{var as=kr.B,Aa=kr.qa,Ua=kr.ra+8*cn*as+8*Xr,Fs=kr.Ha,kr=kr.Ia+8*cn*as+8*Xr;cn=gn.ld,0<Xr&&(Va(Fn,oi,Er,fn+4,Li,cn),Qs(Aa,Ua,Fs,kr,as,fn+4,Li,cn)),gn.La&&(ii(Fn,oi,Er,fn,Li,cn),Sr(Aa,Ua,Fs,kr,as,fn,Li,cn)),0<Nn&&(aa(Fn,oi,Er,fn+4,Li,cn),oa(Aa,Ua,Fs,kr,as,fn+4,Li,cn)),gn.La&&(Go(Fn,oi,Er,fn,Li,cn),ns(Aa,Ua,Fs,kr,as,fn,Li,cn))}}if(Be.ia&&alert("todo:DitherRow"),xe.put!=null){if(qt=16*vr,vr=16*(vr+1),zn?(xe.y=Be.sa,xe.O=Be.ta+Br,xe.f=Be.qa,xe.N=Be.ra+jn,xe.ea=Be.Ha,xe.W=Be.Ia+jn):(qt-=ar,xe.y=ot,xe.O=Pt,xe.f=ut,xe.N=Oe,xe.ea=pr,xe.W=br),dr||(vr-=ar),vr>xe.o&&(vr=xe.o),xe.F=null,xe.J=null,Be.Fa!=null&&0<Be.Fa.length&&qt<vr&&(xe.J=Do(Be,xe,qt,vr-qt),xe.F=Be.mb,xe.F==null&&xe.F.length==0)){Ye=_t(Be,3,"Could not decode alpha data.");break e}qt<xe.j&&(ar=xe.j-qt,qt=xe.j,f(!(1&ar)),xe.O+=Be.R*ar,xe.N+=Be.B*(ar>>1),xe.W+=Be.B*(ar>>1),xe.F!=null&&(xe.J+=xe.width*ar)),qt<vr&&(xe.O+=xe.v,xe.N+=xe.v>>1,xe.W+=xe.v>>1,xe.F!=null&&(xe.J+=xe.v),xe.ka=qt-xe.j,xe.U=xe.va-xe.v,xe.T=vr-qt,Ye=xe.put(xe))}Pe+1!=Be.Ic||dr||(a(Be.sa,Be.ta-ze,ot,Pt+16*Be.R,ze),a(Be.qa,Be.ra-pt,ut,Oe+8*Be.B,pt),a(Be.Ha,Be.Ia-pt,pr,br+8*Be.B,pt))}if(!Ye)return _t(Se,6,"Output aborted.")}return 1}(_,H)),H.bc!=null&&H.bc(H),J&=1}return J?(_.cb=0,J):0}function nn(_,H,J,X,re){re=_[H+J+32*X]+(re>>3),_[H+J+32*X]=-256&re?0>re?0:255:re}function Wn(_,H,J,X,re,ae){nn(_,H,0,J,X+re),nn(_,H,1,J,X+ae),nn(_,H,2,J,X-ae),nn(_,H,3,J,X-re)}function Wr(_){return(20091*_>>16)+_}function ti(_,H,J,X){var re,ae=0,oe=s(16);for(re=0;4>re;++re){var le=_[H+0]+_[H+8],fe=_[H+0]-_[H+8],he=(35468*_[H+4]>>16)-Wr(_[H+12]),Ee=Wr(_[H+4])+(35468*_[H+12]>>16);oe[ae+0]=le+Ee,oe[ae+1]=fe+he,oe[ae+2]=fe-he,oe[ae+3]=le-Ee,ae+=4,H++}for(re=ae=0;4>re;++re)le=(_=oe[ae+0]+4)+oe[ae+8],fe=_-oe[ae+8],he=(35468*oe[ae+4]>>16)-Wr(oe[ae+12]),nn(J,X,0,0,le+(Ee=Wr(oe[ae+4])+(35468*oe[ae+12]>>16))),nn(J,X,1,0,fe+he),nn(J,X,2,0,fe-he),nn(J,X,3,0,le-Ee),ae++,X+=32}function Ar(_,H,J,X){var re=_[H+0]+4,ae=35468*_[H+4]>>16,oe=Wr(_[H+4]),le=35468*_[H+1]>>16;Wn(J,X,0,re+oe,_=Wr(_[H+1]),le),Wn(J,X,1,re+ae,_,le),Wn(J,X,2,re-ae,_,le),Wn(J,X,3,re-oe,_,le)}function sr(_,H,J,X,re){ti(_,H,J,X),re&&ti(_,H+16,J,X+4)}function Vn(_,H,J,X){Wa(_,H+0,J,X,1),Wa(_,H+32,J,X+128,1)}function ci(_,H,J,X){var re;for(_=_[H+0]+4,re=0;4>re;++re)for(H=0;4>H;++H)nn(J,X,H,re,_)}function Ki(_,H,J,X){_[H+0]&&gi(_,H+0,J,X),_[H+16]&&gi(_,H+16,J,X+4),_[H+32]&&gi(_,H+32,J,X+128),_[H+48]&&gi(_,H+48,J,X+128+4)}function mn(_,H,J,X){var re,ae=s(16);for(re=0;4>re;++re){var oe=_[H+0+re]+_[H+12+re],le=_[H+4+re]+_[H+8+re],fe=_[H+4+re]-_[H+8+re],he=_[H+0+re]-_[H+12+re];ae[0+re]=oe+le,ae[8+re]=oe-le,ae[4+re]=he+fe,ae[12+re]=he-fe}for(re=0;4>re;++re)oe=(_=ae[0+4*re]+3)+ae[3+4*re],le=ae[1+4*re]+ae[2+4*re],fe=ae[1+4*re]-ae[2+4*re],he=_-ae[3+4*re],J[X+0]=oe+le>>3,J[X+16]=he+fe>>3,J[X+32]=oe-le>>3,J[X+48]=he-fe>>3,X+=64}function Rn(_,H,J){var X,re=H-32,ae=Un,oe=255-_[re-1];for(X=0;X<J;++X){var le,fe=ae,he=oe+_[H-1];for(le=0;le<J;++le)_[H+le]=fe[he+_[re+le]];H+=32}}function ri(_,H){Rn(_,H,4)}function Ji(_,H){Rn(_,H,8)}function gs(_,H){Rn(_,H,16)}function yn(_,H){var J;for(J=0;16>J;++J)a(_,H+32*J,_,H-32,16)}function Ln(_,H){var J;for(J=16;0<J;--J)c(_,H,_[H-1],16),H+=32}function Zi(_,H,J){var X;for(X=0;16>X;++X)c(H,J+32*X,_,16)}function qi(_,H){var J,X=16;for(J=0;16>J;++J)X+=_[H-1+32*J]+_[H+J-32];Zi(X>>5,_,H)}function Zr(_,H){var J,X=8;for(J=0;16>J;++J)X+=_[H-1+32*J];Zi(X>>4,_,H)}function ws(_,H){var J,X=8;for(J=0;16>J;++J)X+=_[H+J-32];Zi(X>>4,_,H)}function Xi(_,H){Zi(128,_,H)}function Yt(_,H,J){return _+2*H+J+2>>2}function bs(_,H){var J,X=H-32;for(X=new Uint8Array([Yt(_[X-1],_[X+0],_[X+1]),Yt(_[X+0],_[X+1],_[X+2]),Yt(_[X+1],_[X+2],_[X+3]),Yt(_[X+2],_[X+3],_[X+4])]),J=0;4>J;++J)a(_,H+32*J,X,0,X.length)}function vs(_,H){var J=_[H-1],X=_[H-1+32],re=_[H-1+64],ae=_[H-1+96];K(_,H+0,16843009*Yt(_[H-1-32],J,X)),K(_,H+32,16843009*Yt(J,X,re)),K(_,H+64,16843009*Yt(X,re,ae)),K(_,H+96,16843009*Yt(re,ae,ae))}function Mi(_,H){var J,X=4;for(J=0;4>J;++J)X+=_[H+J-32]+_[H-1+32*J];for(X>>=3,J=0;4>J;++J)c(_,H+32*J,X,4)}function YA(_,H){var J=_[H-1+0],X=_[H-1+32],re=_[H-1+64],ae=_[H-1-32],oe=_[H+0-32],le=_[H+1-32],fe=_[H+2-32],he=_[H+3-32];_[H+0+96]=Yt(X,re,_[H-1+96]),_[H+1+96]=_[H+0+64]=Yt(J,X,re),_[H+2+96]=_[H+1+64]=_[H+0+32]=Yt(ae,J,X),_[H+3+96]=_[H+2+64]=_[H+1+32]=_[H+0+0]=Yt(oe,ae,J),_[H+3+64]=_[H+2+32]=_[H+1+0]=Yt(le,oe,ae),_[H+3+32]=_[H+2+0]=Yt(fe,le,oe),_[H+3+0]=Yt(he,fe,le)}function OA(_,H){var J=_[H+1-32],X=_[H+2-32],re=_[H+3-32],ae=_[H+4-32],oe=_[H+5-32],le=_[H+6-32],fe=_[H+7-32];_[H+0+0]=Yt(_[H+0-32],J,X),_[H+1+0]=_[H+0+32]=Yt(J,X,re),_[H+2+0]=_[H+1+32]=_[H+0+64]=Yt(X,re,ae),_[H+3+0]=_[H+2+32]=_[H+1+64]=_[H+0+96]=Yt(re,ae,oe),_[H+3+32]=_[H+2+64]=_[H+1+96]=Yt(ae,oe,le),_[H+3+64]=_[H+2+96]=Yt(oe,le,fe),_[H+3+96]=Yt(le,fe,fe)}function Fa(_,H){var J=_[H-1+0],X=_[H-1+32],re=_[H-1+64],ae=_[H-1-32],oe=_[H+0-32],le=_[H+1-32],fe=_[H+2-32],he=_[H+3-32];_[H+0+0]=_[H+1+64]=ae+oe+1>>1,_[H+1+0]=_[H+2+64]=oe+le+1>>1,_[H+2+0]=_[H+3+64]=le+fe+1>>1,_[H+3+0]=fe+he+1>>1,_[H+0+96]=Yt(re,X,J),_[H+0+64]=Yt(X,J,ae),_[H+0+32]=_[H+1+96]=Yt(J,ae,oe),_[H+1+32]=_[H+2+96]=Yt(ae,oe,le),_[H+2+32]=_[H+3+96]=Yt(oe,le,fe),_[H+3+32]=Yt(le,fe,he)}function Co(_,H){var J=_[H+0-32],X=_[H+1-32],re=_[H+2-32],ae=_[H+3-32],oe=_[H+4-32],le=_[H+5-32],fe=_[H+6-32],he=_[H+7-32];_[H+0+0]=J+X+1>>1,_[H+1+0]=_[H+0+64]=X+re+1>>1,_[H+2+0]=_[H+1+64]=re+ae+1>>1,_[H+3+0]=_[H+2+64]=ae+oe+1>>1,_[H+0+32]=Yt(J,X,re),_[H+1+32]=_[H+0+96]=Yt(X,re,ae),_[H+2+32]=_[H+1+96]=Yt(re,ae,oe),_[H+3+32]=_[H+2+96]=Yt(ae,oe,le),_[H+3+64]=Yt(oe,le,fe),_[H+3+96]=Yt(le,fe,he)}function Tu(_,H){var J=_[H-1+0],X=_[H-1+32],re=_[H-1+64],ae=_[H-1+96];_[H+0+0]=J+X+1>>1,_[H+2+0]=_[H+0+32]=X+re+1>>1,_[H+2+32]=_[H+0+64]=re+ae+1>>1,_[H+1+0]=Yt(J,X,re),_[H+3+0]=_[H+1+32]=Yt(X,re,ae),_[H+3+32]=_[H+1+64]=Yt(re,ae,ae),_[H+3+64]=_[H+2+64]=_[H+0+96]=_[H+1+96]=_[H+2+96]=_[H+3+96]=ae}function Yu(_,H){var J=_[H-1+0],X=_[H-1+32],re=_[H-1+64],ae=_[H-1+96],oe=_[H-1-32],le=_[H+0-32],fe=_[H+1-32],he=_[H+2-32];_[H+0+0]=_[H+2+32]=J+oe+1>>1,_[H+0+32]=_[H+2+64]=X+J+1>>1,_[H+0+64]=_[H+2+96]=re+X+1>>1,_[H+0+96]=ae+re+1>>1,_[H+3+0]=Yt(le,fe,he),_[H+2+0]=Yt(oe,le,fe),_[H+1+0]=_[H+3+32]=Yt(J,oe,le),_[H+1+32]=_[H+3+64]=Yt(X,J,oe),_[H+1+64]=_[H+3+96]=Yt(re,X,J),_[H+1+96]=Yt(ae,re,X)}function Ou(_,H){var J;for(J=0;8>J;++J)a(_,H+32*J,_,H-32,8)}function xo(_,H){var J;for(J=0;8>J;++J)c(_,H,_[H-1],8),H+=32}function ra(_,H,J){var X;for(X=0;8>X;++X)c(H,J+32*X,_,8)}function ys(_,H){var J,X=8;for(J=0;8>J;++J)X+=_[H+J-32]+_[H-1+32*J];ra(X>>4,_,H)}function Gu(_,H){var J,X=4;for(J=0;8>J;++J)X+=_[H+J-32];ra(X>>3,_,H)}function na(_,H){var J,X=4;for(J=0;8>J;++J)X+=_[H-1+32*J];ra(X>>3,_,H)}function Io(_,H){ra(128,_,H)}function Da(_,H,J){var X=_[H-J],re=_[H+0],ae=3*(re-X)+Zu[1020+_[H-2*J]-_[H+J]],oe=qA[112+(ae+4>>3)];_[H-J]=Un[255+X+qA[112+(ae+3>>3)]],_[H+0]=Un[255+re-oe]}function GA(_,H,J,X){var re=_[H+0],ae=_[H+J];return si[255+_[H-2*J]-_[H-J]]>X||si[255+ae-re]>X}function WA(_,H,J,X){return 4*si[255+_[H-J]-_[H+0]]+si[255+_[H-2*J]-_[H+J]]<=X}function VA(_,H,J,X,re){var ae=_[H-3*J],oe=_[H-2*J],le=_[H-J],fe=_[H+0],he=_[H+J],Ee=_[H+2*J],Le=_[H+3*J];return 4*si[255+le-fe]+si[255+oe-he]>X?0:si[255+_[H-4*J]-ae]<=re&&si[255+ae-oe]<=re&&si[255+oe-le]<=re&&si[255+Le-Ee]<=re&&si[255+Ee-he]<=re&&si[255+he-fe]<=re}function HA(_,H,J,X){var re=2*X+1;for(X=0;16>X;++X)WA(_,H+X,J,re)&&Da(_,H+X,J)}function $i(_,H,J,X){var re=2*X+1;for(X=0;16>X;++X)WA(_,H+X*J,1,re)&&Da(_,H+X*J,1)}function Es(_,H,J,X){var re;for(re=3;0<re;--re)HA(_,H+=4*J,J,X)}function Wu(_,H,J,X){var re;for(re=3;0<re;--re)$i(_,H+=4,J,X)}function Bs(_,H,J,X,re,ae,oe,le){for(ae=2*ae+1;0<re--;){if(VA(_,H,J,ae,oe))if(GA(_,H,J,le))Da(_,H,J);else{var fe=_,he=H,Ee=J,Le=fe[he-2*Ee],Fe=fe[he-Ee],Se=fe[he+0],We=fe[he+Ee],Pe=fe[he+2*Ee],Be=27*(Ye=Zu[1020+3*(Se-Fe)+Zu[1020+Le-We]])+63>>7,xe=18*Ye+63>>7,Ye=9*Ye+63>>7;fe[he-3*Ee]=Un[255+fe[he-3*Ee]+Ye],fe[he-2*Ee]=Un[255+Le+xe],fe[he-Ee]=Un[255+Fe+Be],fe[he+0]=Un[255+Se-Be],fe[he+Ee]=Un[255+We-xe],fe[he+2*Ee]=Un[255+Pe-Ye]}H+=X}}function fi(_,H,J,X,re,ae,oe,le){for(ae=2*ae+1;0<re--;){if(VA(_,H,J,ae,oe))if(GA(_,H,J,le))Da(_,H,J);else{var fe=_,he=H,Ee=J,Le=fe[he-Ee],Fe=fe[he+0],Se=fe[he+Ee],We=qA[112+((Pe=3*(Fe-Le))+4>>3)],Pe=qA[112+(Pe+3>>3)],Be=We+1>>1;fe[he-2*Ee]=Un[255+fe[he-2*Ee]+Be],fe[he-Ee]=Un[255+Le+Pe],fe[he+0]=Un[255+Fe-We],fe[he+Ee]=Un[255+Se-Be]}H+=X}}function So(_,H,J,X,re,ae){Bs(_,H,J,1,16,X,re,ae)}function ia(_,H,J,X,re,ae){Bs(_,H,1,J,16,X,re,ae)}function Vu(_,H,J,X,re,ae){var oe;for(oe=3;0<oe;--oe)fi(_,H+=4*J,J,1,16,X,re,ae)}function _a(_,H,J,X,re,ae){var oe;for(oe=3;0<oe;--oe)fi(_,H+=4,1,J,16,X,re,ae)}function Hu(_,H,J,X,re,ae,oe,le){Bs(_,H,re,1,8,ae,oe,le),Bs(J,X,re,1,8,ae,oe,le)}function Qo(_,H,J,X,re,ae,oe,le){Bs(_,H,1,re,8,ae,oe,le),Bs(J,X,1,re,8,ae,oe,le)}function Mo(_,H,J,X,re,ae,oe,le){fi(_,H+4*re,re,1,8,ae,oe,le),fi(J,X+4*re,re,1,8,ae,oe,le)}function UA(_,H,J,X,re,ae,oe,le){fi(_,H+4,1,re,8,ae,oe,le),fi(J,X+4,1,re,8,ae,oe,le)}function Pa(){this.ba=new Ut,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ht,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ro(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Lo(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function zA(){this.ua=0,this.Wa=new te,this.vb=new te,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new M,this.yc=new D}function Uu(){this.xb=this.a=0,this.l=new St,this.ca=new Ut,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new zA,this.ab=0,this.gc=i(4,Lo),this.Oc=0}function ka(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new St,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sa(_,H,J,X,re,ae,oe){for(_=_==null?0:_[H+0],H=0;H<oe;++H)re[ae+H]=_+J[X+H]&255,_=re[ae+H]}function Fo(_,H,J,X,re,ae,oe){var le;if(_==null)sa(null,null,J,X,re,ae,oe);else for(le=0;le<oe;++le)re[ae+le]=_[H+le]+J[X+le]&255}function Cs(_,H,J,X,re,ae,oe){if(_==null)sa(null,null,J,X,re,ae,oe);else{var le,fe=_[H+0],he=fe,Ee=fe;for(le=0;le<oe;++le)he=Ee+(fe=_[H+le])-he,Ee=J[X+le]+(-256&he?0>he?0:255:he)&255,he=fe,re[ae+le]=Ee}}function Do(_,H,J,X){var re=H.width,ae=H.o;if(f(_!=null&&H!=null),0>J||0>=X||J+X>ae)return null;if(!_.Cc){if(_.ga==null){var oe;if(_.ga=new ka,(oe=_.ga==null)||(oe=H.width*H.o,f(_.Gb.length==0),_.Gb=s(oe),_.Uc=0,_.Gb==null?oe=0:(_.mb=_.Gb,_.nb=_.Uc,_.rc=null,oe=1),oe=!oe),!oe){oe=_.ga;var le=_.Fa,fe=_.P,he=_.qc,Ee=_.mb,Le=_.nb,Fe=fe+1,Se=he-1,We=oe.l;if(f(le!=null&&Ee!=null&&H!=null),Ls[0]=null,Ls[1]=sa,Ls[2]=Fo,Ls[3]=Cs,oe.ca=Ee,oe.tb=Le,oe.c=H.width,oe.i=H.height,f(0<oe.c&&0<oe.i),1>=he)H=0;else if(oe.$a=le[fe+0]>>0&3,oe.Z=le[fe+0]>>2&3,oe.Lc=le[fe+0]>>4&3,fe=le[fe+0]>>6&3,0>oe.$a||1<oe.$a||4<=oe.Z||1<oe.Lc||fe)H=0;else if(We.put=$t,We.ac=Ft,We.bc=xt,We.ma=oe,We.width=H.width,We.height=H.height,We.Da=H.Da,We.v=H.v,We.va=H.va,We.j=H.j,We.o=H.o,oe.$a)e:{f(oe.$a==1),H=Bt();t:for(;;){if(H==null){H=0;break e}if(f(oe!=null),oe.mc=H,H.c=oe.c,H.i=oe.i,H.l=oe.l,H.l.ma=oe,H.l.width=oe.c,H.l.height=oe.i,H.a=0,E(H.m,le,Fe,Se),!kt(oe.c,oe.i,1,H,null)||(H.ab==1&&H.gc[0].hc==3&&tt(H.s)?(oe.ic=1,le=H.c*H.i,H.Ta=null,H.Ua=0,H.V=s(le),H.Ba=0,H.V==null?(H.a=1,H=0):H=1):(oe.ic=0,H=gr(H,oe.c)),!H))break t;H=1;break e}oe.mc=null,H=0}else H=Se>=oe.c*oe.i;oe=!H}if(oe)return null;_.ga.Lc!=1?_.Ga=0:X=ae-J}f(_.ga!=null),f(J+X<=ae);e:{if(H=(le=_.ga).c,ae=le.l.o,le.$a==0){if(Fe=_.rc,Se=_.Vc,We=_.Fa,fe=_.P+1+J*H,he=_.mb,Ee=_.nb+J*H,f(fe<=_.P+_.qc),le.Z!=0)for(f(Ls[le.Z]!=null),oe=0;oe<X;++oe)Ls[le.Z](Fe,Se,We,fe,he,Ee,H),Fe=he,Se=Ee,Ee+=H,fe+=H;else for(oe=0;oe<X;++oe)a(he,Ee,We,fe,H),Fe=he,Se=Ee,Ee+=H,fe+=H;_.rc=Fe,_.Vc=Se}else{if(f(le.mc!=null),H=J+X,f((oe=le.mc)!=null),f(H<=oe.i),oe.C>=H)H=1;else if(le.ic||Me(),le.ic){le=oe.V,Fe=oe.Ba,Se=oe.c;var Pe=oe.i,Be=(We=1,fe=oe.$/Se,he=oe.$%Se,Ee=oe.m,Le=oe.s,oe.$),xe=Se*Pe,Ye=Se*H,ze=Le.wc,Oe=Be<Ye?De(Le,he,fe):null;f(Be<=xe),f(H<=Pe),f(tt(Le));t:for(;;){for(;!Ee.h&&Be<Ye;){if(he&ze||(Oe=De(Le,he,fe)),f(Oe!=null),j(Ee),256>(Pe=ve(Oe.G[0],Oe.H[0],Ee)))le[Fe+Be]=Pe,++Be,++he>=Se&&(he=0,++fe<=H&&!(fe%16)&&bt(oe,fe));else{if(!(280>Pe)){We=0;break t}Pe=Xt(Pe-256,Ee);var pt,ot=ve(Oe.G[4],Oe.H[4],Ee);if(j(Ee),!(Be>=(ot=Rt(Se,ot=Xt(ot,Ee)))&&xe-Be>=Pe)){We=0;break t}for(pt=0;pt<Pe;++pt)le[Fe+Be+pt]=le[Fe+Be+pt-ot];for(Be+=Pe,he+=Pe;he>=Se;)he-=Se,++fe<=H&&!(fe%16)&&bt(oe,fe);Be<Ye&&he&ze&&(Oe=De(Le,he,fe))}f(Ee.h==U(Ee))}bt(oe,fe>H?H:fe);break t}!We||Ee.h&&Be<xe?(We=0,oe.a=Ee.h?5:3):oe.$=Be,H=We}else H=mt(oe,oe.V,oe.Ba,oe.c,oe.i,H,lr);if(!H){X=0;break e}}J+X>=ae&&(_.Cc=1),X=1}if(!X)return null;if(_.Cc&&((X=_.ga)!=null&&(X.mc=null),_.ga=null,0<_.Ga))return alert("todo:WebPDequantizeLevels"),null}return _.nb+J*re}function z(_,H,J,X,re,ae){for(;0<re--;){var oe,le=_,fe=H+(J?1:0),he=_,Ee=H+(J?0:3);for(oe=0;oe<X;++oe){var Le=he[Ee+4*oe];Le!=255&&(Le*=32897,le[fe+4*oe+0]=le[fe+4*oe+0]*Le>>23,le[fe+4*oe+1]=le[fe+4*oe+1]*Le>>23,le[fe+4*oe+2]=le[fe+4*oe+2]*Le>>23)}H+=ae}}function ne(_,H,J,X,re){for(;0<X--;){var ae;for(ae=0;ae<J;++ae){var oe=_[H+2*ae+0],le=15&(he=_[H+2*ae+1]),fe=4369*le,he=(240&he|he>>4)*fe>>16;_[H+2*ae+0]=(240&oe|oe>>4)*fe>>16&240|(15&oe|oe<<4)*fe>>16>>4&15,_[H+2*ae+1]=240&he|le}H+=re}}function me(_,H,J,X,re,ae,oe,le){var fe,he,Ee=255;for(he=0;he<re;++he){for(fe=0;fe<X;++fe){var Le=_[H+fe];ae[oe+4*fe]=Le,Ee&=Le}H+=J,oe+=le}return Ee!=255}function ye(_,H,J,X,re){var ae;for(ae=0;ae<re;++ae)J[X+ae]=_[H+ae]>>8}function Me(){Ms=z,Ha=ne,ZA=me,Md=ye}function Ne(_,H,J){F[_]=function(X,re,ae,oe,le,fe,he,Ee,Le,Fe,Se,We,Pe,Be,xe,Ye,ze){var Oe,pt=ze-1>>1,ot=le[fe+0]|he[Ee+0]<<16,Pt=Le[Fe+0]|Se[We+0]<<16;f(X!=null);var ut=3*ot+Pt+131074>>2;for(H(X[re+0],255&ut,ut>>16,Pe,Be),ae!=null&&(ut=3*Pt+ot+131074>>2,H(ae[oe+0],255&ut,ut>>16,xe,Ye)),Oe=1;Oe<=pt;++Oe){var pr=le[fe+Oe]|he[Ee+Oe]<<16,br=Le[Fe+Oe]|Se[We+Oe]<<16,dr=ot+pr+Pt+br+524296,ar=dr+2*(pr+Pt)>>3;ut=ar+ot>>1,ot=(dr=dr+2*(ot+br)>>3)+pr>>1,H(X[re+2*Oe-1],255&ut,ut>>16,Pe,Be+(2*Oe-1)*J),H(X[re+2*Oe-0],255&ot,ot>>16,Pe,Be+(2*Oe-0)*J),ae!=null&&(ut=dr+Pt>>1,ot=ar+br>>1,H(ae[oe+2*Oe-1],255&ut,ut>>16,xe,Ye+(2*Oe-1)*J),H(ae[oe+2*Oe+0],255&ot,ot>>16,xe,Ye+(2*Oe+0)*J)),ot=pr,Pt=br}1&ze||(ut=3*ot+Pt+131074>>2,H(X[re+ze-1],255&ut,ut>>16,Pe,Be+(ze-1)*J),ae!=null&&(ut=3*Pt+ot+131074>>2,H(ae[oe+ze-1],255&ut,ut>>16,xe,Ye+(ze-1)*J)))}}function Xe(){ai[XA]=_1,ai[$A]=Yd,ai[Pd]=P1,ai[el]=Od,ai[tl]=Gd,ai[qu]=Wd,ai[kd]=k1,ai[Xu]=Yd,ai[$u]=Od,ai[rl]=Gd,ai[ec]=Wd}function dt(_){return _&~N1?0>_?0:255:_>>Vd}function Lt(_,H){return dt((19077*_>>8)+(26149*H>>8)-14234)}function Zt(_,H,J){return dt((19077*_>>8)-(6419*H>>8)-(13320*J>>8)+8708)}function tr(_,H){return dt((19077*_>>8)+(33050*H>>8)-17685)}function fr(_,H,J,X,re){X[re+0]=Lt(_,J),X[re+1]=Zt(_,H,J),X[re+2]=tr(_,H)}function Dr(_,H,J,X,re){X[re+0]=tr(_,H),X[re+1]=Zt(_,H,J),X[re+2]=Lt(_,J)}function Pr(_,H,J,X,re){var ae=Zt(_,H,J);H=ae<<3&224|tr(_,H)>>3,X[re+0]=248&Lt(_,J)|ae>>5,X[re+1]=H}function qr(_,H,J,X,re){var ae=240&tr(_,H)|15;X[re+0]=240&Lt(_,J)|Zt(_,H,J)>>4,X[re+1]=ae}function En(_,H,J,X,re){X[re+0]=255,fr(_,H,J,X,re+1)}function un(_,H,J,X,re){Dr(_,H,J,X,re),X[re+3]=255}function di(_,H,J,X,re){fr(_,H,J,X,re),X[re+3]=255}function Hn(_,H){return 0>_?0:_>H?H:_}function es(_,H,J){F[_]=function(X,re,ae,oe,le,fe,he,Ee,Le){for(var Fe=Ee+(-2&Le)*J;Ee!=Fe;)H(X[re+0],ae[oe+0],le[fe+0],he,Ee),H(X[re+1],ae[oe+0],le[fe+0],he,Ee+J),re+=2,++oe,++fe,Ee+=2*J;1&Le&&H(X[re+0],ae[oe+0],le[fe+0],he,Ee)}}function KA(_,H,J){return J==0?_==0?H==0?6:5:H==0?4:0:J}function _o(_,H,J,X,re){switch(_>>>30){case 3:Wa(H,J,X,re,0);break;case 2:Oo(H,J,X,re);break;case 1:gi(H,J,X,re)}}function Po(_,H){var J,X,re=H.M,ae=H.Nb,oe=_.oc,le=_.pc+40,fe=_.oc,he=_.pc+584,Ee=_.oc,Le=_.pc+600;for(J=0;16>J;++J)oe[le+32*J-1]=129;for(J=0;8>J;++J)fe[he+32*J-1]=129,Ee[Le+32*J-1]=129;for(0<re?oe[le-1-32]=fe[he-1-32]=Ee[Le-1-32]=129:(c(oe,le-32-1,127,21),c(fe,he-32-1,127,9),c(Ee,Le-32-1,127,9)),X=0;X<_.za;++X){var Fe=H.ya[H.aa+X];if(0<X){for(J=-1;16>J;++J)a(oe,le+32*J-4,oe,le+32*J+12,4);for(J=-1;8>J;++J)a(fe,he+32*J-4,fe,he+32*J+4,4),a(Ee,Le+32*J-4,Ee,Le+32*J+4,4)}var Se=_.Gd,We=_.Hd+X,Pe=Fe.ad,Be=Fe.Hc;if(0<re&&(a(oe,le-32,Se[We].y,0,16),a(fe,he-32,Se[We].f,0,8),a(Ee,Le-32,Se[We].ea,0,8)),Fe.Za){var xe=oe,Ye=le-32+16;for(0<re&&(X>=_.za-1?c(xe,Ye,Se[We].y[15],4):a(xe,Ye,Se[We+1].y,0,4)),J=0;4>J;J++)xe[Ye+128+J]=xe[Ye+256+J]=xe[Ye+384+J]=xe[Ye+0+J];for(J=0;16>J;++J,Be<<=2)xe=oe,Ye=le+Ud[J],wi[Fe.Ob[J]](xe,Ye),_o(Be,Pe,16*+J,xe,Ye)}else if(xe=KA(X,re,Fe.Ob[0]),Rs[xe](oe,le),Be!=0)for(J=0;16>J;++J,Be<<=2)_o(Be,Pe,16*+J,oe,le+Ud[J]);for(J=Fe.Gc,xe=KA(X,re,Fe.Dd),ss[xe](fe,he),ss[xe](Ee,Le),Be=Pe,xe=fe,Ye=he,255&(Fe=J>>0)&&(170&Fe?Ss(Be,256,xe,Ye):rs(Be,256,xe,Ye)),Fe=Ee,Be=Le,255&(J>>=8)&&(170&J?Ss(Pe,320,Fe,Be):rs(Pe,320,Fe,Be)),re<_.Ub-1&&(a(Se[We].y,0,oe,le+480,16),a(Se[We].f,0,fe,he+224,8),a(Se[We].ea,0,Ee,Le+224,8)),J=8*ae*_.B,Se=_.sa,We=_.ta+16*X+16*ae*_.R,Pe=_.qa,Fe=_.ra+8*X+J,Be=_.Ha,xe=_.Ia+8*X+J,J=0;16>J;++J)a(Se,We+J*_.R,oe,le+32*J,16);for(J=0;8>J;++J)a(Pe,Fe+J*_.B,fe,he+32*J,8),a(Be,xe+J*_.B,Ee,Le+32*J,8)}}function Na(_,H,J,X,re,ae,oe,le,fe){var he=[0],Ee=[0],Le=0,Fe=fe!=null?fe.kd:0,Se=fe??new Ro;if(_==null||12>J)return 7;Se.data=_,Se.w=H,Se.ha=J,H=[H],J=[J],Se.gb=[Se.gb];e:{var We=H,Pe=J,Be=Se.gb;if(f(_!=null),f(Pe!=null),f(Be!=null),Be[0]=0,12<=Pe[0]&&!e(_,We[0],"RIFF")){if(e(_,We[0]+8,"WEBP")){Be=3;break e}var xe=ee(_,We[0]+4);if(12>xe||4294967286<xe){Be=3;break e}if(Fe&&xe>Pe[0]-8){Be=7;break e}Be[0]=xe,We[0]+=12,Pe[0]-=12}Be=0}if(Be!=0)return Be;for(xe=0<Se.gb[0],J=J[0];;){e:{var Ye=_;Pe=H,Be=J;var ze=he,Oe=Ee,pt=We=[0];if((ut=Le=[Le])[0]=0,8>Be[0])Be=7;else{if(!e(Ye,Pe[0],"VP8X")){if(ee(Ye,Pe[0]+4)!=10){Be=3;break e}if(18>Be[0]){Be=7;break e}var ot=ee(Ye,Pe[0]+8),Pt=1+se(Ye,Pe[0]+12);if(2147483648<=Pt*(Ye=1+se(Ye,Pe[0]+15))){Be=3;break e}pt!=null&&(pt[0]=ot),ze!=null&&(ze[0]=Pt),Oe!=null&&(Oe[0]=Ye),Pe[0]+=18,Be[0]-=18,ut[0]=1}Be=0}}if(Le=Le[0],We=We[0],Be!=0)return Be;if(Pe=!!(2&We),!xe&&Le)return 3;if(ae!=null&&(ae[0]=!!(16&We)),oe!=null&&(oe[0]=Pe),le!=null&&(le[0]=0),oe=he[0],We=Ee[0],Le&&Pe&&fe==null){Be=0;break}if(4>J){Be=7;break}if(xe&&Le||!xe&&!Le&&!e(_,H[0],"ALPH")){J=[J],Se.na=[Se.na],Se.P=[Se.P],Se.Sa=[Se.Sa];e:{ot=_,Be=H,xe=J;var ut=Se.gb;ze=Se.na,Oe=Se.P,pt=Se.Sa,Pt=22,f(ot!=null),f(xe!=null),Ye=Be[0];var pr=xe[0];for(f(ze!=null),f(pt!=null),ze[0]=null,Oe[0]=null,pt[0]=0;;){if(Be[0]=Ye,xe[0]=pr,8>pr){Be=7;break e}var br=ee(ot,Ye+4);if(4294967286<br){Be=3;break e}var dr=8+br+1&-2;if(Pt+=dr,0<ut&&Pt>ut){Be=3;break e}if(!e(ot,Ye,"VP8 ")||!e(ot,Ye,"VP8L")){Be=0;break e}if(pr[0]<dr){Be=7;break e}e(ot,Ye,"ALPH")||(ze[0]=ot,Oe[0]=Ye+8,pt[0]=br),Ye+=dr,pr-=dr}}if(J=J[0],Se.na=Se.na[0],Se.P=Se.P[0],Se.Sa=Se.Sa[0],Be!=0)break}J=[J],Se.Ja=[Se.Ja],Se.xa=[Se.xa];e:if(ut=_,Be=H,xe=J,ze=Se.gb[0],Oe=Se.Ja,pt=Se.xa,ot=Be[0],Ye=!e(ut,ot,"VP8 "),Pt=!e(ut,ot,"VP8L"),f(ut!=null),f(xe!=null),f(Oe!=null),f(pt!=null),8>xe[0])Be=7;else{if(Ye||Pt){if(ut=ee(ut,ot+4),12<=ze&&ut>ze-12){Be=3;break e}if(Fe&&ut>xe[0]-8){Be=7;break e}Oe[0]=ut,Be[0]+=8,xe[0]-=8,pt[0]=Pt}else pt[0]=5<=xe[0]&&ut[ot+0]==47&&!(ut[ot+4]>>5),Oe[0]=xe[0];Be=0}if(J=J[0],Se.Ja=Se.Ja[0],Se.xa=Se.xa[0],H=H[0],Be!=0)break;if(4294967286<Se.Ja)return 3;if(le==null||Pe||(le[0]=Se.xa?2:1),oe=[oe],We=[We],Se.xa){if(5>J){Be=7;break}le=oe,Fe=We,Pe=ae,_==null||5>J?_=0:5<=J&&_[H+0]==47&&!(_[H+4]>>5)?(xe=[0],ut=[0],ze=[0],E(Oe=new R,_,H,J),st(Oe,xe,ut,ze)?(le!=null&&(le[0]=xe[0]),Fe!=null&&(Fe[0]=ut[0]),Pe!=null&&(Pe[0]=ze[0]),_=1):_=0):_=0}else{if(10>J){Be=7;break}le=We,_==null||10>J||!cr(_,H+3,J-3)?_=0:(Fe=_[H+0]|_[H+1]<<8|_[H+2]<<16,Pe=16383&(_[H+7]<<8|_[H+6]),_=16383&(_[H+9]<<8|_[H+8]),1&Fe||3<(Fe>>1&7)||!(Fe>>4&1)||Fe>>5>=Se.Ja||!Pe||!_?_=0:(oe&&(oe[0]=Pe),le&&(le[0]=_),_=1))}if(!_||(oe=oe[0],We=We[0],Le&&(he[0]!=oe||Ee[0]!=We)))return 3;fe!=null&&(fe[0]=Se,fe.offset=H-fe.w,f(4294967286>H-fe.w),f(fe.offset==fe.ha-J));break}return Be==0||Be==7&&Le&&fe==null?(ae!=null&&(ae[0]|=Se.na!=null&&0<Se.na.length),X!=null&&(X[0]=oe),re!=null&&(re[0]=We),0):Be}function ko(_,H,J){var X=H.width,re=H.height,ae=0,oe=0,le=X,fe=re;if(H.Da=_!=null&&0<_.Da,H.Da&&(le=_.cd,fe=_.bd,ae=_.v,oe=_.j,11>J||(ae&=-2,oe&=-2),0>ae||0>oe||0>=le||0>=fe||ae+le>X||oe+fe>re))return 0;if(H.v=ae,H.j=oe,H.va=ae+le,H.o=oe+fe,H.U=le,H.T=fe,H.da=_!=null&&0<_.da,H.da){if(!ie(le,fe,J=[_.ib],ae=[_.hb]))return 0;H.ib=J[0],H.hb=ae[0]}return H.ob=_!=null&&_.ob,H.Kb=_==null||!_.Sd,H.da&&(H.ob=H.ib<3*X/4&&H.hb<3*re/4,H.Kb=0),1}function No(_){if(_==null)return 2;if(11>_.S){var H=_.f.RGBA;H.fb+=(_.height-1)*H.A,H.A=-H.A}else H=_.f.kb,_=_.height,H.O+=(_-1)*H.fa,H.fa=-H.fa,H.N+=(_-1>>1)*H.Ab,H.Ab=-H.Ab,H.W+=(_-1>>1)*H.Db,H.Db=-H.Db,H.F!=null&&(H.J+=(_-1)*H.lb,H.lb=-H.lb);return 0}function ja(_,H,J,X){if(X==null||0>=_||0>=H)return 2;if(J!=null){if(J.Da){var re=J.cd,ae=J.bd,oe=-2&J.v,le=-2&J.j;if(0>oe||0>le||0>=re||0>=ae||oe+re>_||le+ae>H)return 2;_=re,H=ae}if(J.da){if(!ie(_,H,re=[J.ib],ae=[J.hb]))return 2;_=re[0],H=ae[0]}}X.width=_,X.height=H;e:{var fe=X.width,he=X.height;if(_=X.S,0>=fe||0>=he||!(_>=XA&&13>_))_=2;else{if(0>=X.Rd&&X.sd==null){oe=ae=re=H=0;var Ee=(le=fe*zd[_])*he;if(11>_||(ae=(he+1)/2*(H=(fe+1)/2),_==12&&(oe=(re=fe)*he)),(he=s(Ee+2*ae+oe))==null){_=1;break e}X.sd=he,11>_?((fe=X.f.RGBA).eb=he,fe.fb=0,fe.A=le,fe.size=Ee):((fe=X.f.kb).y=he,fe.O=0,fe.fa=le,fe.Fd=Ee,fe.f=he,fe.N=0+Ee,fe.Ab=H,fe.Cd=ae,fe.ea=he,fe.W=0+Ee+ae,fe.Db=H,fe.Ed=ae,_==12&&(fe.F=he,fe.J=0+Ee+2*ae),fe.Tc=oe,fe.lb=re)}if(H=1,re=X.S,ae=X.width,oe=X.height,re>=XA&&13>re)if(11>re)_=X.f.RGBA,H&=(le=Math.abs(_.A))*(oe-1)+ae<=_.size,H&=le>=ae*zd[re],H&=_.eb!=null;else{_=X.f.kb,le=(ae+1)/2,Ee=(oe+1)/2,fe=Math.abs(_.fa),he=Math.abs(_.Ab);var Le=Math.abs(_.Db),Fe=Math.abs(_.lb),Se=Fe*(oe-1)+ae;H&=fe*(oe-1)+ae<=_.Fd,H&=he*(Ee-1)+le<=_.Cd,H=(H&=Le*(Ee-1)+le<=_.Ed)&fe>=ae&he>=le&Le>=le,H&=_.y!=null,H&=_.f!=null,H&=_.ea!=null,re==12&&(H&=Fe>=ae,H&=Se<=_.Tc,H&=_.F!=null)}else H=0;_=H?0:2}}return _!=0||J!=null&&J.fd&&(_=No(X)),_}var Pn=64,Ta=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Ya=24,Oa=32,jo=8,kn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];we("Predictor0","PredictorAdd0"),F.Predictor0=function(){return 4278190080},F.Predictor1=function(_){return _},F.Predictor2=function(_,H,J){return H[J+0]},F.Predictor3=function(_,H,J){return H[J+1]},F.Predictor4=function(_,H,J){return H[J-1]},F.Predictor5=function(_,H,J){return be(be(_,H[J+1]),H[J+0])},F.Predictor6=function(_,H,J){return be(_,H[J-1])},F.Predictor7=function(_,H,J){return be(_,H[J+0])},F.Predictor8=function(_,H,J){return be(H[J-1],H[J+0])},F.Predictor9=function(_,H,J){return be(H[J+0],H[J+1])},F.Predictor10=function(_,H,J){return be(be(_,H[J-1]),be(H[J+0],H[J+1]))},F.Predictor11=function(_,H,J){var X=H[J+0];return 0>=_e(X>>24&255,_>>24&255,(H=H[J-1])>>24&255)+_e(X>>16&255,_>>16&255,H>>16&255)+_e(X>>8&255,_>>8&255,H>>8&255)+_e(255&X,255&_,255&H)?X:_},F.Predictor12=function(_,H,J){var X=H[J+0];return(Ce((_>>24&255)+(X>>24&255)-((H=H[J-1])>>24&255))<<24|Ce((_>>16&255)+(X>>16&255)-(H>>16&255))<<16|Ce((_>>8&255)+(X>>8&255)-(H>>8&255))<<8|Ce((255&_)+(255&X)-(255&H)))>>>0},F.Predictor13=function(_,H,J){var X=H[J-1];return(Qe((_=be(_,H[J+0]))>>24&255,X>>24&255)<<24|Qe(_>>16&255,X>>16&255)<<16|Qe(_>>8&255,X>>8&255)<<8|Qe(_>>0&255,X>>0&255))>>>0};var zu=F.PredictorAdd0;F.PredictorAdd1=Te,we("Predictor2","PredictorAdd2"),we("Predictor3","PredictorAdd3"),we("Predictor4","PredictorAdd4"),we("Predictor5","PredictorAdd5"),we("Predictor6","PredictorAdd6"),we("Predictor7","PredictorAdd7"),we("Predictor8","PredictorAdd8"),we("Predictor9","PredictorAdd9"),we("Predictor10","PredictorAdd10"),we("Predictor11","PredictorAdd11"),we("Predictor12","PredictorAdd12"),we("Predictor13","PredictorAdd13");var To=F.PredictorAdd2;et("ColorIndexInverseTransform","MapARGB","32b",function(_){return _>>8&255},function(_){return _}),et("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(_){return _},function(_){return _>>8&255});var JA,hi=F.ColorIndexInverseTransform,Yo=F.MapARGB,Ku=F.VP8LColorIndexInverseTransformAlpha,Ju=F.MapAlpha,xs=F.VP8LPredictorsAdd=[];xs.length=16,(F.VP8LPredictors=[]).length=16,(F.VP8LPredictorsAdd_C=[]).length=16,(F.VP8LPredictors_C=[]).length=16;var ni,pi,Is,Ri,ts,Ga,mi,Wa,Oo,Ss,gi,rs,aa,Va,oa,Qs,Go,ii,ns,Sr,Qr,Vr,sn,is,Ms,Ha,ZA,Md,Rd=s(511),Ld=s(2041),Fd=s(225),Dd=s(767),_d=0,Zu=Ld,qA=Fd,Un=Dd,si=Rd,XA=0,$A=1,Pd=2,el=3,tl=4,qu=5,kd=6,Xu=7,$u=8,rl=9,ec=10,v1=[2,3,7],y1=[3,3,11],Nd=[280,256,256,256,40],E1=[0,1,1,1,0],B1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],C1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],x1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],I1=8,tc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],rc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Wo=null,S1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Q1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],jd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],M1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],R1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],L1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],F1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Rs=[],wi=[],ss=[],D1=1,Td=2,Ls=[],ai=[];Ne("UpsampleRgbLinePair",fr,3),Ne("UpsampleBgrLinePair",Dr,3),Ne("UpsampleRgbaLinePair",di,4),Ne("UpsampleBgraLinePair",un,4),Ne("UpsampleArgbLinePair",En,4),Ne("UpsampleRgba4444LinePair",qr,2),Ne("UpsampleRgb565LinePair",Pr,2);var _1=F.UpsampleRgbLinePair,P1=F.UpsampleBgrLinePair,Yd=F.UpsampleRgbaLinePair,Od=F.UpsampleBgraLinePair,Gd=F.UpsampleArgbLinePair,Wd=F.UpsampleRgba4444LinePair,k1=F.UpsampleRgb565LinePair,nl=16,il=1<<nl-1,Vo=-227,nc=482,Vd=6,N1=(256<<Vd)-1,Hd=0,j1=s(256),T1=s(256),Y1=s(256),O1=s(256),G1=s(nc-Vo),W1=s(nc-Vo);es("YuvToRgbRow",fr,3),es("YuvToBgrRow",Dr,3),es("YuvToRgbaRow",di,4),es("YuvToBgraRow",un,4),es("YuvToArgbRow",En,4),es("YuvToRgba4444Row",qr,2),es("YuvToRgb565Row",Pr,2);var Ud=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],sl=[0,2,8],V1=[8,7,6,4,4,2,2,2,1,1,1,1],H1=1;this.WebPDecodeRGBA=function(_,H,J,X,re){var ae=$A,oe=new Pa,le=new Ut;oe.ba=le,le.S=ae,le.width=[le.width],le.height=[le.height];var fe=le.width,he=le.height,Ee=new Tt;if(Ee==null||_==null)var Le=2;else f(Ee!=null),Le=Na(_,H,J,Ee.width,Ee.height,Ee.Pd,Ee.Qd,Ee.format,null);if(Le!=0?fe=0:(fe!=null&&(fe[0]=Ee.width[0]),he!=null&&(he[0]=Ee.height[0]),fe=1),fe){le.width=le.width[0],le.height=le.height[0],X!=null&&(X[0]=le.width),re!=null&&(re[0]=le.height);e:{if(X=new St,(re=new Ro).data=_,re.w=H,re.ha=J,re.kd=1,H=[0],f(re!=null),((_=Na(re.data,re.w,re.ha,null,null,null,H,null,re))==0||_==7)&&H[0]&&(_=4),(H=_)==0){if(f(oe!=null),X.data=re.data,X.w=re.w+re.offset,X.ha=re.ha-re.offset,X.put=$t,X.ac=Ft,X.bc=xt,X.ma=oe,re.xa){if((_=Bt())==null){oe=1;break e}if(function(Fe,Se){var We=[0],Pe=[0],Be=[0];t:for(;;){if(Fe==null)return 0;if(Se==null)return Fe.a=2,0;if(Fe.l=Se,Fe.a=0,E(Fe.m,Se.data,Se.w,Se.ha),!st(Fe.m,We,Pe,Be)){Fe.a=3;break t}if(Fe.xb=Td,Se.width=We[0],Se.height=Pe[0],!kt(We[0],Pe[0],1,Fe,null))break t;return 1}return f(Fe.a!=0),0}(_,X)){if(X=(H=ja(X.width,X.height,oe.Oa,oe.ba))==0){t:{X=_;r:for(;;){if(X==null){X=0;break t}if(f(X.s.yc!=null),f(X.s.Ya!=null),f(0<X.s.Wb),f((J=X.l)!=null),f((re=J.ma)!=null),X.xb!=0){if(X.ca=re.ba,X.tb=re.tb,f(X.ca!=null),!ko(re.Oa,J,el)){X.a=2;break r}if(!gr(X,J.width)||J.da)break r;if((J.da||gt(X.ca.S))&&Me(),11>X.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),X.ca.f.kb.F!=null&&Me()),X.Pb&&0<X.s.ua&&X.s.vb.X==null&&!Ae(X.s.vb,X.s.Wa.Xa)){X.a=1;break r}X.xb=0}if(!mt(X,X.V,X.Ba,X.c,X.i,J.o,It))break r;re.Dc=X.Ma,X=1;break t}f(X.a!=0),X=0}X=!X}X&&(H=_.a)}else H=_.a}else{if((_=new ur)==null){oe=1;break e}if(_.Fa=re.na,_.P=re.P,_.qc=re.Sa,yr(_,X)){if((H=ja(X.width,X.height,oe.Oa,oe.ba))==0){if(_.Aa=0,J=oe.Oa,f((re=_)!=null),J!=null){if(0<(fe=0>(fe=J.Md)?0:100<fe?255:255*fe/100)){for(he=Ee=0;4>he;++he)12>(Le=re.pb[he]).lc&&(Le.ia=fe*V1[0>Le.lc?0:Le.lc]>>3),Ee|=Le.ia;Ee&&(alert("todo:VP8InitRandom"),re.ia=1)}re.Ga=J.Id,100<re.Ga?re.Ga=100:0>re.Ga&&(re.Ga=0)}Mn(_,X)||(H=_.a)}}else H=_.a}H==0&&oe.Oa!=null&&oe.Oa.fd&&(H=No(oe.ba))}oe=H}ae=oe!=0?null:11>ae?le.f.RGBA.eb:le.f.kb.y}else ae=null;return ae};var zd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function r(F,O){for(var W="",G=0;G<4;G++)W+=String.fromCharCode(F[O++]);return W}function A(F,O){return(F[O+0]<<0|F[O+1]<<8|F[O+2]<<16)>>>0}function d(F,O){return(F[O+0]<<0|F[O+1]<<8|F[O+2]<<16|F[O+3]<<24)>>>0}new n;var u=[0],l=[0],p=[],m=new n,h=t,g=function(F,O){var W={},G=0,D=!1,I=0,M=0;if(W.frames=[],!function(V,U,q,j){for(var Z=0;Z<j;Z++)if(V[U+Z]!=q.charCodeAt(Z))return!0;return!1}(F,O,"RIFF",4)){var C,b;for(d(F,O+=4),O+=8;O<F.length;){var y=r(F,O),E=d(F,O+=4);O+=4;var B=E+(1&E);switch(y){case"VP8 ":case"VP8L":W.frames[G]===void 0&&(W.frames[G]={}),(R=W.frames[G]).src_off=D?M:O-8,R.src_size=I+E+8,G++,D&&(D=!1,I=0,M=0);break;case"VP8X":(R=W.header={}).feature_flags=F[O];var S=O+4;R.canvas_width=1+A(F,S),S+=3,R.canvas_height=1+A(F,S),S+=3;break;case"ALPH":D=!0,I=B+8,M=O-8;break;case"ANIM":(R=W.header).bgcolor=d(F,O),S=O+4,R.loop_count=(C=F)[(b=S)+0]<<0|C[b+1]<<8,S+=2;break;case"ANMF":var T,R;(R=W.frames[G]={}).offset_x=2*A(F,O),O+=3,R.offset_y=2*A(F,O),O+=3,R.width=1+A(F,O),O+=3,R.height=1+A(F,O),O+=3,R.duration=A(F,O),O+=3,T=F[O++],R.dispose=1&T,R.blend=T>>1&1}y!="ANMF"&&(O+=B)}return W}}(h,0);g.response=h,g.rgbaoutput=!0,g.dataurl=!1;var w=g.header?g.header:null,v=g.frames?g.frames:null;if(w){w.loop_counter=w.loop_count,u=[w.canvas_height],l=[w.canvas_width];for(var x=0;x<v.length&&v[x].blend!=0;x++);}var L=v[0],k=m.WebPDecodeRGBA(h,L.src_off,L.src_size,l,u);L.rgba=k,L.imgwidth=l[0],L.imgheight=u[0];for(var Y=0;Y<l[0]*u[0]*4;Y++)p[Y]=k[Y];return this.width=l,this.height=u,this.data=p,this}(function(t){var f=function(){return typeof Af=="function"},e=function(u,l,p,m){var h=4,g=i;switch(m){case t.image_compression.FAST:h=1,g=s;break;case t.image_compression.MEDIUM:h=6,g=o;break;case t.image_compression.SLOW:h=9,g=n}u=a(u,l,p,g);var w=Af(u,{level:h});return t.__addimage__.arrayBufferToBinaryString(w)},a=function(u,l,p,m){for(var h,g,w,v=u.length/l,x=new Uint8Array(u.length+v),L=A(),k=0;k<v;k+=1){if(w=k*l,h=u.subarray(w,w+l),m)x.set(m(h,p,g),w+k);else{for(var Y,F=L.length,O=[];Y<F;Y+=1)O[Y]=L[Y](h,p,g);var W=d(O.concat());x.set(O[W],w+k)}g=h}return x},c=function(u){var l=Array.apply([],u);return l.unshift(0),l},s=function(u,l){var p,m=[],h=u.length;m[0]=1;for(var g=0;g<h;g+=1)p=u[g-l]||0,m[g+1]=u[g]-p+256&255;return m},i=function(u,l,p){var m,h=[],g=u.length;h[0]=2;for(var w=0;w<g;w+=1)m=p&&p[w]||0,h[w+1]=u[w]-m+256&255;return h},o=function(u,l,p){var m,h,g=[],w=u.length;g[0]=3;for(var v=0;v<w;v+=1)m=u[v-l]||0,h=p&&p[v]||0,g[v+1]=u[v]+256-(m+h>>>1)&255;return g},n=function(u,l,p){var m,h,g,w,v=[],x=u.length;v[0]=4;for(var L=0;L<x;L+=1)m=u[L-l]||0,h=p&&p[L]||0,g=p&&p[L-l]||0,w=r(m,h,g),v[L+1]=u[L]-w+256&255;return v},r=function(u,l,p){if(u===l&&l===p)return u;var m=Math.abs(l-p),h=Math.abs(u-p),g=Math.abs(u+l-p-p);return m<=h&&m<=g?u:h<=g?l:p},A=function(){return[c,s,i,o,n]},d=function(u){var l=u.map(function(p){return p.reduce(function(m,h){return m+Math.abs(h)},0)});return l.indexOf(Math.min.apply(null,l))};t.processPNG=function(u,l,p,m){var h,g,w,v,x,L,k,Y,F,O,W,G,D,I,M,C=this.decode.FLATE_DECODE,b="";if(this.__addimage__.isArrayBuffer(u)&&(u=new Uint8Array(u)),this.__addimage__.isArrayBufferView(u)){if(u=(w=new fb(u)).imgData,g=w.bits,h=w.colorSpace,x=w.colors,[4,6].indexOf(w.colorType)!==-1){if(w.bits===8){F=(Y=w.pixelBitlength==32?new Uint32Array(w.decodePixels().buffer):w.pixelBitlength==16?new Uint16Array(w.decodePixels().buffer):new Uint8Array(w.decodePixels().buffer)).length,W=new Uint8Array(F*w.colors),O=new Uint8Array(F);var y,E=w.pixelBitlength-w.bits;for(I=0,M=0;I<F;I++){for(D=Y[I],y=0;y<E;)W[M++]=D>>>y&255,y+=w.bits;O[I]=D>>>y&255}}if(w.bits===16){F=(Y=new Uint32Array(w.decodePixels().buffer)).length,W=new Uint8Array(F*(32/w.pixelBitlength)*w.colors),O=new Uint8Array(F*(32/w.pixelBitlength)),G=w.colors>1,I=0,M=0;for(var B=0;I<F;)D=Y[I++],W[M++]=D>>>0&255,G&&(W[M++]=D>>>16&255,D=Y[I++],W[M++]=D>>>0&255),O[B++]=D>>>16&255;g=8}m!==t.image_compression.NONE&&f()?(u=e(W,w.width*w.colors,w.colors,m),k=e(O,w.width,1,m)):(u=W,k=O,C=void 0)}if(w.colorType===3&&(h=this.color_spaces.INDEXED,L=w.palette,w.transparency.indexed)){var S=w.transparency.indexed,T=0;for(I=0,F=S.length;I<F;++I)T+=S[I];if((T/=255)===F-1&&S.indexOf(0)!==-1)v=[S.indexOf(0)];else if(T!==F){for(Y=w.decodePixels(),O=new Uint8Array(Y.length),I=0,F=Y.length;I<F;I++)O[I]=S[Y[I]];k=e(O,w.width,1)}}var R=function(V){var U;switch(V){case t.image_compression.FAST:U=11;break;case t.image_compression.MEDIUM:U=13;break;case t.image_compression.SLOW:U=14;break;default:U=12}return U}(m);return C===this.decode.FLATE_DECODE&&(b="/Predictor "+R+" "),b+="/Colors "+x+" /BitsPerComponent "+g+" /Columns "+w.width,(this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),(k&&this.__addimage__.isArrayBuffer(k)||this.__addimage__.isArrayBufferView(k))&&(k=this.__addimage__.arrayBufferToBinaryString(k)),{alias:p,data:u,index:l,filter:C,decodeParameters:b,transparency:v,palette:L,sMask:k,predictor:R,width:w.width,height:w.height,bitsPerComponent:g,colorSpace:h}}}})(Dt.API),function(t){t.processGIF89A=function(f,e,a,c){var s=new db(f),i=s.width,o=s.height,n=[];s.decodeAndBlitFrameRGBA(0,n);var r={data:n,width:i,height:o},A=new yc(100).encode(r,100);return t.processJPEG.call(this,A,e,a,c)},t.processGIF87A=t.processGIF89A}(Dt.API),yi.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var f=0;f<t;f++){var e=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[f]={red:c,green:a,blue:e,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},yi.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,f=this.width*this.height*4;this.data=new Uint8Array(f),this[t]()}catch(e){Cr.log("bit decode error:"+e)}},yi.prototype.bit1=function(){var t,f=Math.ceil(this.width/8),e=f%4;for(t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,c=0;c<f;c++)for(var s=this.datav.getUint8(this.pos++,!0),i=a*this.width*4+8*c*4,o=0;o<8&&8*c+o<this.width;o++){var n=this.palette[s>>7-o&1];this.data[i+4*o]=n.blue,this.data[i+4*o+1]=n.green,this.data[i+4*o+2]=n.red,this.data[i+4*o+3]=255}e!==0&&(this.pos+=4-e)}},yi.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),f=t%4,e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,c=0;c<t;c++){var s=this.datav.getUint8(this.pos++,!0),i=a*this.width*4+2*c*4,o=s>>4,n=15&s,r=this.palette[o];if(this.data[i]=r.blue,this.data[i+1]=r.green,this.data[i+2]=r.red,this.data[i+3]=255,2*c+1>=this.width)break;r=this.palette[n],this.data[i+4]=r.blue,this.data[i+4+1]=r.green,this.data[i+4+2]=r.red,this.data[i+4+3]=255}f!==0&&(this.pos+=4-f)}},yi.prototype.bit8=function(){for(var t=this.width%4,f=this.height-1;f>=0;f--){for(var e=this.bottom_up?f:this.height-1-f,a=0;a<this.width;a++){var c=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*a;if(c<this.palette.length){var i=this.palette[c];this.data[s]=i.red,this.data[s+1]=i.green,this.data[s+2]=i.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}t!==0&&(this.pos+=4-t)}},yi.prototype.bit15=function(){for(var t=this.width%3,f=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,c=0;c<this.width;c++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(s&f)/f*255|0,o=(s>>5&f)/f*255|0,n=(s>>10&f)/f*255|0,r=s>>15?255:0,A=a*this.width*4+4*c;this.data[A]=n,this.data[A+1]=o,this.data[A+2]=i,this.data[A+3]=r}this.pos+=t}},yi.prototype.bit16=function(){for(var t=this.width%3,f=parseInt("11111",2),e=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var c=this.bottom_up?a:this.height-1-a,s=0;s<this.width;s++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&f)/f*255|0,n=(i>>5&e)/e*255|0,r=(i>>11)/f*255|0,A=c*this.width*4+4*s;this.data[A]=r,this.data[A+1]=n,this.data[A+2]=o,this.data[A+3]=255}this.pos+=t}},yi.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var f=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=f*this.width*4+4*e;this.data[i]=s,this.data[i+1]=c,this.data[i+2]=a,this.data[i+3]=255}this.pos+=this.width%4}},yi.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var f=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=f*this.width*4+4*e;this.data[o]=s,this.data[o+1]=c,this.data[o+2]=a,this.data[o+3]=i}},yi.prototype.getData=function(){return this.data},function(t){t.processBMP=function(f,e,a,c){var s=new yi(f,!1),i=s.width,o=s.height,n={data:s.getData(),width:i,height:o},r=new yc(100).encode(n,100);return t.processJPEG.call(this,r,e,a,c)}}(Dt.API),Mh.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(f,e,a,c){var s=new Mh(f),i=s.width,o=s.height,n={data:s.getData(),width:i,height:o},r=new yc(100).encode(n,100);return t.processJPEG.call(this,r,e,a,c)}}(Dt.API),Dt.API.processRGBA=function(t,f,e){for(var a=t.data,c=a.length,s=new Uint8Array(c/4*3),i=new Uint8Array(c/4),o=0,n=0,r=0;r<c;r+=4){var A=a[r],d=a[r+1],u=a[r+2],l=a[r+3];s[o++]=A,s[o++]=d,s[o++]=u,i[n++]=l}var p=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(i),data:p,index:f,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Dt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},qa=Dt.API,vl=qa.getCharWidthsArray=function(t,f){var e,a,c=(f=f||{}).font||this.internal.getFont(),s=f.fontSize||this.internal.getFontSize(),i=f.charSpace||this.internal.getCharSpace(),o=f.widths?f.widths:c.metadata.Unicode.widths,n=o.fof?o.fof:1,r=f.kerning?f.kerning:c.metadata.Unicode.kerning,A=r.fof?r.fof:1,d=f.doKerning!==!1,u=0,l=t.length,p=0,m=o[0]||n,h=[];for(e=0;e<l;e++)a=t.charCodeAt(e),typeof c.metadata.widthOfString=="function"?h.push((c.metadata.widthOfGlyph(c.metadata.characterToGlyph(a))+i*(1e3/s)||0)/1e3):(u=d&&wr(r[a])==="object"&&!isNaN(parseInt(r[a][p],10))?r[a][p]/A:0,h.push((o[a]||m)/n+u)),p=a;return h},xh=qa.getStringUnitWidth=function(t,f){var e=(f=f||{}).fontSize||this.internal.getFontSize(),a=f.font||this.internal.getFont(),c=f.charSpace||this.internal.getCharSpace();return qa.processArabic&&(t=qa.processArabic(t)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(t,e,c)/e:vl.apply(this,arguments).reduce(function(s,i){return s+i},0)},Ih=function(t,f,e,a){for(var c=[],s=0,i=t.length,o=0;s!==i&&o+f[s]<e;)o+=f[s],s++;c.push(t.slice(0,s));var n=s;for(o=0;s!==i;)o+f[s]>a&&(c.push(t.slice(n,s)),o=0,n=s),o+=f[s],s++;return n!==s&&c.push(t.slice(n,s)),c},Sh=function(t,f,e){e||(e={});var a,c,s,i,o,n,r,A=[],d=[A],u=e.textIndent||0,l=0,p=0,m=t.split(" "),h=vl.apply(this,[" ",e])[0];if(n=e.lineIndent===-1?m[0].length+2:e.lineIndent||0){var g=Array(n).join(" "),w=[];m.map(function(x){(x=x.split(/\s*\n/)).length>1?w=w.concat(x.map(function(L,k){return(k&&L.length?`
|
|
274
274
|
`:"")+L})):w.push(x[0])}),m=w,n=xh.apply(this,[g,e])}for(s=0,i=m.length;s<i;s++){var v=0;if(a=m[s],n&&a[0]==`
|
|
275
|
-
`&&(a=a.substr(1),v=1),u+l+(p=(c=vl.apply(this,[a,e])).reduce(function(x,L){return x+L},0))>f||v){if(p>f){for(o=Ih.apply(this,[a,c,f-(u+l),f]),A.push(o.shift()),A=[o.pop()];o.length;)d.push([o.shift()]);p=c.slice(a.length-(A[0]?A[0].length:0)).reduce(function(x,L){return x+L},0)}else A=[a];d.push(A),u=p+n,l=h}else A.push(a),u+=l+p,l=h}return r=n?function(x,L){return(L?g:"")+x.join(" ")}:function(x){return x.join(" ")},d.map(r)},qa.splitTextToSize=function(t,f,e){var a,c=(e=e||{}).fontSize||this.internal.getFontSize(),s=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var d=this.internal.getFont(A.fontName,A.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);a=Array.isArray(t)?t:String(t).split(/\r?\n/);var i=1*this.internal.scaleFactor*f/c;s.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/c:0,s.lineIndent=e.lineIndent;var o,n,r=[];for(o=0,n=a.length;o<n;o++)r=r.concat(Sh.apply(this,[a[o],i,s]));return r},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var f="klmnopqrstuvwxyz",e={},a={},c=0;c<f.length;c++)e[f[c]]="0123456789abcdef"[c],a["0123456789abcdef"[c]]=f[c];var s=function(d){return"0x"+parseInt(d,10).toString(16)},i=t.__fontmetrics__.compress=function(d){var u,l,p,m,h=["{"];for(var g in d){if(u=d[g],isNaN(parseInt(g,10))?l="'"+g+"'":(g=parseInt(g,10),l=(l=s(g).slice(2)).slice(0,-1)+a[l.slice(-1)]),typeof u=="number")u<0?(p=s(u).slice(3),m="-"):(p=s(u).slice(2),m=""),p=m+p.slice(0,-1)+a[p.slice(-1)];else{if(wr(u)!=="object")throw new Error("Don't know what to do with value type "+wr(u)+".");p=i(u)}h.push(l+p)}return h.push("}"),h.join("")},o=t.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var u,l,p,m,h={},g=1,w=h,v=[],x="",L="",k=d.length-1,Y=1;Y<k;Y+=1)(m=d[Y])=="'"?u?(p=u.join(""),u=void 0):u=[]:u?u.push(m):m=="{"?(v.push([w,p]),w={},p=void 0):m=="}"?((l=v.pop())[0][l[1]]=w,p=void 0,w=l[0]):m=="-"?g=-1:p===void 0?e.hasOwnProperty(m)?(x+=e[m],p=parseInt(x,16)*g,g=1,x=""):x+=m:e.hasOwnProperty(m)?(L+=e[m],w[p]=parseInt(L,16)*g,g=1,p=void 0,L=""):L+=m;return h},n={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},r={Unicode:{Courier:n,"Courier-Bold":n,"Courier-BoldOblique":n,"Courier-Oblique":n,Helvetica:n,"Helvetica-Bold":n,"Helvetica-BoldOblique":n,"Helvetica-Oblique":n,"Times-Roman":n,"Times-Bold":n,"Times-BoldItalic":n,"Times-Italic":n}},A={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(d){var u=d.font,l=A.Unicode[u.postScriptName];l&&(u.metadata.Unicode={},u.metadata.Unicode.widths=l.widths,u.metadata.Unicode.kerning=l.kerning);var p=r.Unicode[u.postScriptName];p&&(u.metadata.Unicode.encoding=p,u.encoding=p.codePages[0])}])}(Dt.API),function(t){var f=function(e){for(var a=e.length,c=new Uint8Array(a),s=0;s<a;s++)c[s]=e.charCodeAt(s);return c};t.API.events.push(["addFont",function(e){var a=void 0,c=e.font,s=e.instance;if(!c.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");if(typeof(a=s.existsFileInVFS(c.postScriptName)===!1?s.loadFile(c.postScriptName):s.getFileFromVFS(c.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");(function(i,o){o=/^\x00\x01\x00\x00/.test(o)?f(o):f(sA(o)),i.metadata=t.API.TTFFont.open(o),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]})(c,a)}}])}(Dt),function(t){function f(){return(Nt.canvg?Promise.resolve(Nt.canvg):Promise.resolve().then(()=>require("./index.es-CaShwaaY.cjs"))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}Dt.API.addSvgAsImage=function(e,a,c,s,i,o,n,r){if(isNaN(a)||isNaN(c))throw Cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(i))throw Cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=s,A.height=i;var d=A.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,A.width,A.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return f().then(function(p){return p.fromString(d,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(u)}).then(function(){l.addImage(A.toDataURL("image/jpeg",1),a,c,s,i,n,r)})}}(),Dt.API.putTotalPages=function(t){var f,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(f=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(f=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var c=0;c<this.internal.pages[a].length;c++)this.internal.pages[a][c]=this.internal.pages[a][c].replace(f,e);return this},Dt.API.viewerPreferences=function(t,f){var e;t=t||{},f=f||!1;var a,c,s,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(i),n=[],r=0,A=0,d=0;function u(p,m){var h,g=!1;for(h=0;h<p.length;h+=1)p[h]===m&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||f===!0){var l=o.length;for(d=0;d<l;d+=1)e[o[d]].value=e[o[d]].defaultValue,e[o[d]].explicitSet=!1}if(wr(t)==="object"){for(c in t)if(s=t[c],u(o,c)&&s!==void 0){if(e[c].type==="boolean"&&typeof s=="boolean")e[c].value=s;else if(e[c].type==="name"&&u(e[c].valueSet,s))e[c].value=s;else if(e[c].type==="integer"&&Number.isInteger(s))e[c].value=s;else if(e[c].type==="array"){for(r=0;r<s.length;r+=1)if(a=!0,s[r].length===1&&typeof s[r][0]=="number")n.push(String(s[r]-1));else if(s[r].length>1){for(A=0;A<s[r].length;A+=1)typeof s[r][A]!="number"&&(a=!1);a===!0&&n.push([s[r][0]-1,s[r][1]-1].join(" "))}e[c].value="["+n.join(" ")+"]"}else e[c].value=e[c].defaultValue;e[c].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,m=[];for(p in e)e[p].explicitSet===!0&&(e[p].type==="name"?m.push("/"+p+" /"+e[p].value):m.push("/"+p+" "+e[p].value));m.length!==0&&this.internal.write(`/ViewerPreferences
|
|
275
|
+
`&&(a=a.substr(1),v=1),u+l+(p=(c=vl.apply(this,[a,e])).reduce(function(x,L){return x+L},0))>f||v){if(p>f){for(o=Ih.apply(this,[a,c,f-(u+l),f]),A.push(o.shift()),A=[o.pop()];o.length;)d.push([o.shift()]);p=c.slice(a.length-(A[0]?A[0].length:0)).reduce(function(x,L){return x+L},0)}else A=[a];d.push(A),u=p+n,l=h}else A.push(a),u+=l+p,l=h}return r=n?function(x,L){return(L?g:"")+x.join(" ")}:function(x){return x.join(" ")},d.map(r)},qa.splitTextToSize=function(t,f,e){var a,c=(e=e||{}).fontSize||this.internal.getFontSize(),s=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var d=this.internal.getFont(A.fontName,A.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);a=Array.isArray(t)?t:String(t).split(/\r?\n/);var i=1*this.internal.scaleFactor*f/c;s.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/c:0,s.lineIndent=e.lineIndent;var o,n,r=[];for(o=0,n=a.length;o<n;o++)r=r.concat(Sh.apply(this,[a[o],i,s]));return r},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var f="klmnopqrstuvwxyz",e={},a={},c=0;c<f.length;c++)e[f[c]]="0123456789abcdef"[c],a["0123456789abcdef"[c]]=f[c];var s=function(d){return"0x"+parseInt(d,10).toString(16)},i=t.__fontmetrics__.compress=function(d){var u,l,p,m,h=["{"];for(var g in d){if(u=d[g],isNaN(parseInt(g,10))?l="'"+g+"'":(g=parseInt(g,10),l=(l=s(g).slice(2)).slice(0,-1)+a[l.slice(-1)]),typeof u=="number")u<0?(p=s(u).slice(3),m="-"):(p=s(u).slice(2),m=""),p=m+p.slice(0,-1)+a[p.slice(-1)];else{if(wr(u)!=="object")throw new Error("Don't know what to do with value type "+wr(u)+".");p=i(u)}h.push(l+p)}return h.push("}"),h.join("")},o=t.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var u,l,p,m,h={},g=1,w=h,v=[],x="",L="",k=d.length-1,Y=1;Y<k;Y+=1)(m=d[Y])=="'"?u?(p=u.join(""),u=void 0):u=[]:u?u.push(m):m=="{"?(v.push([w,p]),w={},p=void 0):m=="}"?((l=v.pop())[0][l[1]]=w,p=void 0,w=l[0]):m=="-"?g=-1:p===void 0?e.hasOwnProperty(m)?(x+=e[m],p=parseInt(x,16)*g,g=1,x=""):x+=m:e.hasOwnProperty(m)?(L+=e[m],w[p]=parseInt(L,16)*g,g=1,p=void 0,L=""):L+=m;return h},n={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},r={Unicode:{Courier:n,"Courier-Bold":n,"Courier-BoldOblique":n,"Courier-Oblique":n,Helvetica:n,"Helvetica-Bold":n,"Helvetica-BoldOblique":n,"Helvetica-Oblique":n,"Times-Roman":n,"Times-Bold":n,"Times-BoldItalic":n,"Times-Italic":n}},A={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(d){var u=d.font,l=A.Unicode[u.postScriptName];l&&(u.metadata.Unicode={},u.metadata.Unicode.widths=l.widths,u.metadata.Unicode.kerning=l.kerning);var p=r.Unicode[u.postScriptName];p&&(u.metadata.Unicode.encoding=p,u.encoding=p.codePages[0])}])}(Dt.API),function(t){var f=function(e){for(var a=e.length,c=new Uint8Array(a),s=0;s<a;s++)c[s]=e.charCodeAt(s);return c};t.API.events.push(["addFont",function(e){var a=void 0,c=e.font,s=e.instance;if(!c.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");if(typeof(a=s.existsFileInVFS(c.postScriptName)===!1?s.loadFile(c.postScriptName):s.getFileFromVFS(c.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");(function(i,o){o=/^\x00\x01\x00\x00/.test(o)?f(o):f(sA(o)),i.metadata=t.API.TTFFont.open(o),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]})(c,a)}}])}(Dt),function(t){function f(){return(Nt.canvg?Promise.resolve(Nt.canvg):Promise.resolve().then(()=>require("./index.es-kchJ_FE2.js"))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}Dt.API.addSvgAsImage=function(e,a,c,s,i,o,n,r){if(isNaN(a)||isNaN(c))throw Cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(i))throw Cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=s,A.height=i;var d=A.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,A.width,A.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return f().then(function(p){return p.fromString(d,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(u)}).then(function(){l.addImage(A.toDataURL("image/jpeg",1),a,c,s,i,n,r)})}}(),Dt.API.putTotalPages=function(t){var f,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(f=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(f=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var c=0;c<this.internal.pages[a].length;c++)this.internal.pages[a][c]=this.internal.pages[a][c].replace(f,e);return this},Dt.API.viewerPreferences=function(t,f){var e;t=t||{},f=f||!1;var a,c,s,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(i),n=[],r=0,A=0,d=0;function u(p,m){var h,g=!1;for(h=0;h<p.length;h+=1)p[h]===m&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||f===!0){var l=o.length;for(d=0;d<l;d+=1)e[o[d]].value=e[o[d]].defaultValue,e[o[d]].explicitSet=!1}if(wr(t)==="object"){for(c in t)if(s=t[c],u(o,c)&&s!==void 0){if(e[c].type==="boolean"&&typeof s=="boolean")e[c].value=s;else if(e[c].type==="name"&&u(e[c].valueSet,s))e[c].value=s;else if(e[c].type==="integer"&&Number.isInteger(s))e[c].value=s;else if(e[c].type==="array"){for(r=0;r<s.length;r+=1)if(a=!0,s[r].length===1&&typeof s[r][0]=="number")n.push(String(s[r]-1));else if(s[r].length>1){for(A=0;A<s[r].length;A+=1)typeof s[r][A]!="number"&&(a=!1);a===!0&&n.push([s[r][0]-1,s[r][1]-1].join(" "))}e[c].value="["+n.join(" ")+"]"}else e[c].value=e[c].defaultValue;e[c].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,m=[];for(p in e)e[p].explicitSet===!0&&(e[p].type==="name"?m.push("/"+p+" /"+e[p].value):m.push("/"+p+" "+e[p].value));m.length!==0&&this.internal.write(`/ViewerPreferences
|
|
276
276
|
<<
|
|
277
277
|
`+m.join(`
|
|
278
278
|
`)+`
|
|
@@ -319,4 +319,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
|
|
|
319
319
|
*/function pp(t,f){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);f&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),e.push.apply(e,a)}return e}function Oi(t){for(var f=1;f<arguments.length;f++){var e=arguments[f]!=null?arguments[f]:{};f%2?pp(Object(e),!0).forEach(function(a){vy(t,a,e[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pp(Object(e)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))})}return t}function Nl(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nl=function(f){return typeof f}:Nl=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Nl(t)}function vy(t,f,e){return f in t?Object.defineProperty(t,f,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[f]=e,t}function fs(){return fs=Object.assign||function(t){for(var f=1;f<arguments.length;f++){var e=arguments[f];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},fs.apply(this,arguments)}function yy(t,f){if(t==null)return{};var e={},a=Object.keys(t),c,s;for(s=0;s<a.length;s++)c=a[s],!(f.indexOf(c)>=0)&&(e[c]=t[c]);return e}function Ey(t,f){if(t==null)return{};var e=yy(t,f),a,c;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(c=0;c<s.length;c++)a=s[c],!(f.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(e[a]=t[a])}return e}var By="1.15.2";function us(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var ms=us(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kA=us(/Edge/i),mp=us(/firefox/i),cA=us(/safari/i)&&!us(/chrome/i)&&!us(/android/i),jm=us(/iP(ad|od|hone)/i),Tm=us(/chrome/i)&&us(/android/i),Ym={capture:!1,passive:!1};function mr(t,f,e){t.addEventListener(f,e,!ms&&Ym)}function hr(t,f,e){t.removeEventListener(f,e,!ms&&Ym)}function ru(t,f){if(f){if(f[0]===">"&&(f=f.substring(1)),t)try{if(t.matches)return t.matches(f);if(t.msMatchesSelector)return t.msMatchesSelector(f);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(f)}catch{return!1}return!1}}function Cy(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Bi(t,f,e,a){if(t){e=e||document;do{if(f!=null&&(f[0]===">"?t.parentNode===e&&ru(t,f):ru(t,f))||a&&t===e)return t;if(t===e)break}while(t=Cy(t))}return null}var gp=/\s+/g;function Jn(t,f,e){if(t&&f)if(t.classList)t.classList[e?"add":"remove"](f);else{var a=(" "+t.className+" ").replace(gp," ").replace(" "+f+" "," ");t.className=(a+(e?" "+f:"")).replace(gp," ")}}function Ot(t,f,e){var a=t&&t.style;if(a){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),f===void 0?e:e[f];!(f in a)&&f.indexOf("webkit")===-1&&(f="-webkit-"+f),a[f]=e+(typeof e=="string"?"":"px")}}function lo(t,f){var e="";if(typeof t=="string")e=t;else do{var a=Ot(t,"transform");a&&a!=="none"&&(e=a+" "+e)}while(!f&&(t=t.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(e)}function Om(t,f,e){if(t){var a=t.getElementsByTagName(f),c=0,s=a.length;if(e)for(;c<s;c++)e(a[c],c);return a}return[]}function Ti(){var t=document.scrollingElement;return t||document.documentElement}function tn(t,f,e,a,c){if(!(!t.getBoundingClientRect&&t!==window)){var s,i,o,n,r,A,d;if(t!==window&&t.parentNode&&t!==Ti()?(s=t.getBoundingClientRect(),i=s.top,o=s.left,n=s.bottom,r=s.right,A=s.height,d=s.width):(i=0,o=0,n=window.innerHeight,r=window.innerWidth,A=window.innerHeight,d=window.innerWidth),(f||e)&&t!==window&&(c=c||t.parentNode,!ms))do if(c&&c.getBoundingClientRect&&(Ot(c,"transform")!=="none"||e&&Ot(c,"position")!=="static")){var u=c.getBoundingClientRect();i-=u.top+parseInt(Ot(c,"border-top-width")),o-=u.left+parseInt(Ot(c,"border-left-width")),n=i+s.height,r=o+s.width;break}while(c=c.parentNode);if(a&&t!==window){var l=lo(c||t),p=l&&l.a,m=l&&l.d;l&&(i/=m,o/=p,d/=p,A/=m,n=i+A,r=o+d)}return{top:i,left:o,bottom:n,right:r,width:d,height:A}}}function wp(t,f,e){for(var a=Hs(t,!0),c=tn(t)[f];a;){var s=tn(a)[e],i=void 0;if(i=c>=s,!i)return a;if(a===Ti())break;a=Hs(a,!1)}return!1}function ho(t,f,e,a){for(var c=0,s=0,i=t.children;s<i.length;){if(i[s].style.display!=="none"&&i[s]!==Gt.ghost&&(a||i[s]!==Gt.dragged)&&Bi(i[s],e.draggable,t,!1)){if(c===f)return i[s];c++}s++}return null}function ud(t,f){for(var e=t.lastElementChild;e&&(e===Gt.ghost||Ot(e,"display")==="none"||f&&!ru(e,f));)e=e.previousElementSibling;return e||null}function Ai(t,f){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Gt.clone&&(!f||ru(t,f))&&e++;return e}function bp(t){var f=0,e=0,a=Ti();if(t)do{var c=lo(t),s=c.a,i=c.d;f+=t.scrollLeft*s,e+=t.scrollTop*i}while(t!==a&&(t=t.parentNode));return[f,e]}function xy(t,f){for(var e in t)if(t.hasOwnProperty(e)){for(var a in f)if(f.hasOwnProperty(a)&&f[a]===t[e][a])return Number(e)}return-1}function Hs(t,f){if(!t||!t.getBoundingClientRect)return Ti();var e=t,a=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var c=Ot(e);if(e.clientWidth<e.scrollWidth&&(c.overflowX=="auto"||c.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(c.overflowY=="auto"||c.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Ti();if(a||f)return e;a=!0}}while(e=e.parentNode);return Ti()}function Iy(t,f){if(t&&f)for(var e in f)f.hasOwnProperty(e)&&(t[e]=f[e]);return t}function Dc(t,f){return Math.round(t.top)===Math.round(f.top)&&Math.round(t.left)===Math.round(f.left)&&Math.round(t.height)===Math.round(f.height)&&Math.round(t.width)===Math.round(f.width)}var fA;function Gm(t,f){return function(){if(!fA){var e=arguments,a=this;e.length===1?t.call(a,e[0]):t.apply(a,e),fA=setTimeout(function(){fA=void 0},f)}}}function Sy(){clearTimeout(fA),fA=void 0}function Wm(t,f,e){t.scrollLeft+=f,t.scrollTop+=e}function Vm(t){var f=window.Polymer,e=window.jQuery||window.Zepto;return f&&f.dom?f.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function Hm(t,f,e){var a={};return Array.from(t.children).forEach(function(c){var s,i,o,n;if(!(!Bi(c,f.draggable,t,!1)||c.animated||c===e)){var r=tn(c);a.left=Math.min((s=a.left)!==null&&s!==void 0?s:1/0,r.left),a.top=Math.min((i=a.top)!==null&&i!==void 0?i:1/0,r.top),a.right=Math.max((o=a.right)!==null&&o!==void 0?o:-1/0,r.right),a.bottom=Math.max((n=a.bottom)!==null&&n!==void 0?n:-1/0,r.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var Xn="Sortable"+new Date().getTime();function Qy(){var t=[],f;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(c){if(!(Ot(c,"display")==="none"||c===Gt.ghost)){t.push({target:c,rect:tn(c)});var s=Oi({},t[t.length-1].rect);if(c.thisAnimationDuration){var i=lo(c,!0);i&&(s.top-=i.f,s.left-=i.e)}c.fromRect=s}})}},addAnimationState:function(a){t.push(a)},removeAnimationState:function(a){t.splice(xy(t,{target:a}),1)},animateAll:function(a){var c=this;if(!this.options.animation){clearTimeout(f),typeof a=="function"&&a();return}var s=!1,i=0;t.forEach(function(o){var n=0,r=o.target,A=r.fromRect,d=tn(r),u=r.prevFromRect,l=r.prevToRect,p=o.rect,m=lo(r,!0);m&&(d.top-=m.f,d.left-=m.e),r.toRect=d,r.thisAnimationDuration&&Dc(u,d)&&!Dc(A,d)&&(p.top-d.top)/(p.left-d.left)===(A.top-d.top)/(A.left-d.left)&&(n=Ry(p,u,l,c.options)),Dc(d,A)||(r.prevFromRect=A,r.prevToRect=d,n||(n=c.options.animation),c.animate(r,p,d,n)),n&&(s=!0,i=Math.max(i,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout(function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null},n),r.thisAnimationDuration=n)}),clearTimeout(f),s?f=setTimeout(function(){typeof a=="function"&&a()},i):typeof a=="function"&&a(),t=[]},animate:function(a,c,s,i){if(i){Ot(a,"transition",""),Ot(a,"transform","");var o=lo(this.el),n=o&&o.a,r=o&&o.d,A=(c.left-s.left)/(n||1),d=(c.top-s.top)/(r||1);a.animatingX=!!A,a.animatingY=!!d,Ot(a,"transform","translate3d("+A+"px,"+d+"px,0)"),this.forRepaintDummy=My(a),Ot(a,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ot(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){Ot(a,"transition",""),Ot(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},i)}}}}function My(t){return t.offsetWidth}function Ry(t,f,e,a){return Math.sqrt(Math.pow(f.top-t.top,2)+Math.pow(f.left-t.left,2))/Math.sqrt(Math.pow(f.top-e.top,2)+Math.pow(f.left-e.left,2))*a.animation}var $a=[],_c={initializeByDefault:!0},NA={mount:function(f){for(var e in _c)_c.hasOwnProperty(e)&&!(e in f)&&(f[e]=_c[e]);$a.forEach(function(a){if(a.pluginName===f.pluginName)throw"Sortable: Cannot mount plugin ".concat(f.pluginName," more than once")}),$a.push(f)},pluginEvent:function(f,e,a){var c=this;this.eventCanceled=!1,a.cancel=function(){c.eventCanceled=!0};var s=f+"Global";$a.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][s]&&e[i.pluginName][s](Oi({sortable:e},a)),e.options[i.pluginName]&&e[i.pluginName][f]&&e[i.pluginName][f](Oi({sortable:e},a)))})},initializePlugins:function(f,e,a,c){$a.forEach(function(o){var n=o.pluginName;if(!(!f.options[n]&&!o.initializeByDefault)){var r=new o(f,e,f.options);r.sortable=f,r.options=f.options,f[n]=r,fs(a,r.defaults)}});for(var s in f.options)if(f.options.hasOwnProperty(s)){var i=this.modifyOption(f,s,f.options[s]);typeof i<"u"&&(f.options[s]=i)}},getEventProperties:function(f,e){var a={};return $a.forEach(function(c){typeof c.eventProperties=="function"&&fs(a,c.eventProperties.call(e[c.pluginName],f))}),a},modifyOption:function(f,e,a){var c;return $a.forEach(function(s){f[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[e]=="function"&&(c=s.optionListeners[e].call(f[s.pluginName],a))}),c}};function Ly(t){var f=t.sortable,e=t.rootEl,a=t.name,c=t.targetEl,s=t.cloneEl,i=t.toEl,o=t.fromEl,n=t.oldIndex,r=t.newIndex,A=t.oldDraggableIndex,d=t.newDraggableIndex,u=t.originalEvent,l=t.putSortable,p=t.extraEventProperties;if(f=f||e&&e[Xn],!!f){var m,h=f.options,g="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!ms&&!kA?m=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(a,!0,!0)),m.to=i||e,m.from=o||e,m.item=c||e,m.clone=s,m.oldIndex=n,m.newIndex=r,m.oldDraggableIndex=A,m.newDraggableIndex=d,m.originalEvent=u,m.pullMode=l?l.lastPutMode:void 0;var w=Oi(Oi({},p),NA.getEventProperties(a,f));for(var v in w)m[v]=w[v];e&&e.dispatchEvent(m),h[g]&&h[g].call(f,m)}}var Fy=["evt"],Tn=function(f,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=a.evt,s=Ey(a,Fy);NA.pluginEvent.bind(Gt)(f,e,Oi({dragEl:at,parentEl:Nr,ghostEl:Kt,rootEl:Lr,nextEl:fa,lastDownEl:jl,cloneEl:_r,cloneHidden:Gs,dragStarted:tA,putSortable:wn,activeSortable:Gt.active,originalEvent:c,oldIndex:Ao,oldDraggableIndex:dA,newIndex:Zn,newDraggableIndex:Ts,hideGhostForTarget:Jm,unhideGhostForTarget:Zm,cloneNowHidden:function(){Gs=!0},cloneNowShown:function(){Gs=!1},dispatchSortableEvent:function(o){Dn({sortable:e,name:o,originalEvent:c})}},s))};function Dn(t){Ly(Oi({putSortable:wn,cloneEl:_r,targetEl:at,rootEl:Lr,oldIndex:Ao,oldDraggableIndex:dA,newIndex:Zn,newDraggableIndex:Ts},t))}var at,Nr,Kt,Lr,fa,jl,_r,Gs,Ao,Zn,dA,Ts,Il,wn,so=!1,nu=!1,iu=[],la,Ei,Pc,kc,vp,yp,tA,eo,hA,pA=!1,Sl=!1,Tl,Sn,Nc=[],Qf=!1,su=[],Du=typeof document<"u",Ql=jm,Ep=kA||ms?"cssFloat":"float",Dy=Du&&!Tm&&!jm&&"draggable"in document.createElement("div"),Um=function(){if(Du){if(ms)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),zm=function(f,e){var a=Ot(f),c=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),s=ho(f,0,e),i=ho(f,1,e),o=s&&Ot(s),n=i&&Ot(i),r=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+tn(s).width,A=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+tn(i).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return i&&(n.clear==="both"||n.clear===d)?"vertical":"horizontal"}return s&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||r>=c&&a[Ep]==="none"||i&&a[Ep]==="none"&&r+A>c)?"vertical":"horizontal"},_y=function(f,e,a){var c=a?f.left:f.top,s=a?f.right:f.bottom,i=a?f.width:f.height,o=a?e.left:e.top,n=a?e.right:e.bottom,r=a?e.width:e.height;return c===o||s===n||c+i/2===o+r/2},Py=function(f,e){var a;return iu.some(function(c){var s=c[Xn].options.emptyInsertThreshold;if(!(!s||ud(c))){var i=tn(c),o=f>=i.left-s&&f<=i.right+s,n=e>=i.top-s&&e<=i.bottom+s;if(o&&n)return a=c}}),a},Km=function(f){function e(s,i){return function(o,n,r,A){var d=o.options.group.name&&n.options.group.name&&o.options.group.name===n.options.group.name;if(s==null&&(i||d))return!0;if(s==null||s===!1)return!1;if(i&&s==="clone")return s;if(typeof s=="function")return e(s(o,n,r,A),i)(o,n,r,A);var u=(i?o:n).options.group.name;return s===!0||typeof s=="string"&&s===u||s.join&&s.indexOf(u)>-1}}var a={},c=f.group;(!c||Nl(c)!="object")&&(c={name:c}),a.name=c.name,a.checkPull=e(c.pull,!0),a.checkPut=e(c.put),a.revertClone=c.revertClone,f.group=a},Jm=function(){!Um&&Kt&&Ot(Kt,"display","none")},Zm=function(){!Um&&Kt&&Ot(Kt,"display","")};Du&&!Tm&&document.addEventListener("click",function(t){if(nu)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),nu=!1,!1},!0);var ua=function(f){if(at){f=f.touches?f.touches[0]:f;var e=Py(f.clientX,f.clientY);if(e){var a={};for(var c in f)f.hasOwnProperty(c)&&(a[c]=f[c]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[Xn]._onDragOver(a)}}},ky=function(f){at&&at.parentNode[Xn]._isOutsideThisEl(f.target)};function Gt(t,f){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=f=fs({},f),t[Xn]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zm(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,o){i.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Gt.supportPointer!==!1&&"PointerEvent"in window&&!cA,emptyInsertThreshold:5};NA.initializePlugins(this,t,e);for(var a in e)!(a in f)&&(f[a]=e[a]);Km(f);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=f.forceFallback?!1:Dy,this.nativeDraggable&&(this.options.touchStartThreshold=1),f.supportPointer?mr(t,"pointerdown",this._onTapStart):(mr(t,"mousedown",this._onTapStart),mr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(mr(t,"dragover",this),mr(t,"dragenter",this)),iu.push(this.el),f.store&&f.store.get&&this.sort(f.store.get(this)||[]),fs(this,Qy())}Gt.prototype={constructor:Gt,_isOutsideThisEl:function(f){!this.el.contains(f)&&f!==this.el&&(eo=null)},_getDirection:function(f,e){return typeof this.options.direction=="function"?this.options.direction.call(this,f,e,at):this.options.direction},_onTapStart:function(f){if(f.cancelable){var e=this,a=this.el,c=this.options,s=c.preventOnFilter,i=f.type,o=f.touches&&f.touches[0]||f.pointerType&&f.pointerType==="touch"&&f,n=(o||f).target,r=f.target.shadowRoot&&(f.path&&f.path[0]||f.composedPath&&f.composedPath()[0])||n,A=c.filter;if(Vy(a),!at&&!(/mousedown|pointerdown/.test(i)&&f.button!==0||c.disabled)&&!r.isContentEditable&&!(!this.nativeDraggable&&cA&&n&&n.tagName.toUpperCase()==="SELECT")&&(n=Bi(n,c.draggable,a,!1),!(n&&n.animated)&&jl!==n)){if(Ao=Ai(n),dA=Ai(n,c.draggable),typeof A=="function"){if(A.call(this,f,n,this)){Dn({sortable:e,rootEl:r,name:"filter",targetEl:n,toEl:a,fromEl:a}),Tn("filter",e,{evt:f}),s&&f.cancelable&&f.preventDefault();return}}else if(A&&(A=A.split(",").some(function(d){if(d=Bi(r,d.trim(),a,!1),d)return Dn({sortable:e,rootEl:d,name:"filter",targetEl:n,fromEl:a,toEl:a}),Tn("filter",e,{evt:f}),!0}),A)){s&&f.cancelable&&f.preventDefault();return}c.handle&&!Bi(r,c.handle,a,!1)||this._prepareDragStart(f,o,n)}}},_prepareDragStart:function(f,e,a){var c=this,s=c.el,i=c.options,o=s.ownerDocument,n;if(a&&!at&&a.parentNode===s){var r=tn(a);if(Lr=s,at=a,Nr=at.parentNode,fa=at.nextSibling,jl=a,Il=i.group,Gt.dragged=at,la={target:at,clientX:(e||f).clientX,clientY:(e||f).clientY},vp=la.clientX-r.left,yp=la.clientY-r.top,this._lastX=(e||f).clientX,this._lastY=(e||f).clientY,at.style["will-change"]="all",n=function(){if(Tn("delayEnded",c,{evt:f}),Gt.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!mp&&c.nativeDraggable&&(at.draggable=!0),c._triggerDragStart(f,e),Dn({sortable:c,name:"choose",originalEvent:f}),Jn(at,i.chosenClass,!0)},i.ignore.split(",").forEach(function(A){Om(at,A.trim(),jc)}),mr(o,"dragover",ua),mr(o,"mousemove",ua),mr(o,"touchmove",ua),mr(o,"mouseup",c._onDrop),mr(o,"touchend",c._onDrop),mr(o,"touchcancel",c._onDrop),mp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),Tn("delayStart",this,{evt:f}),i.delay&&(!i.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(kA||ms))){if(Gt.eventCanceled){this._onDrop();return}mr(o,"mouseup",c._disableDelayedDrag),mr(o,"touchend",c._disableDelayedDrag),mr(o,"touchcancel",c._disableDelayedDrag),mr(o,"mousemove",c._delayedDragTouchMoveHandler),mr(o,"touchmove",c._delayedDragTouchMoveHandler),i.supportPointer&&mr(o,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(n,i.delay)}else n()}},_delayedDragTouchMoveHandler:function(f){var e=f.touches?f.touches[0]:f;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){at&&jc(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var f=this.el.ownerDocument;hr(f,"mouseup",this._disableDelayedDrag),hr(f,"touchend",this._disableDelayedDrag),hr(f,"touchcancel",this._disableDelayedDrag),hr(f,"mousemove",this._delayedDragTouchMoveHandler),hr(f,"touchmove",this._delayedDragTouchMoveHandler),hr(f,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(f,e){e=e||f.pointerType=="touch"&&f,!this.nativeDraggable||e?this.options.supportPointer?mr(document,"pointermove",this._onTouchMove):e?mr(document,"touchmove",this._onTouchMove):mr(document,"mousemove",this._onTouchMove):(mr(at,"dragend",this),mr(Lr,"dragstart",this._onDragStart));try{document.selection?Yl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(f,e){if(so=!1,Lr&&at){Tn("dragStarted",this,{evt:e}),this.nativeDraggable&&mr(document,"dragover",ky);var a=this.options;!f&&Jn(at,a.dragClass,!1),Jn(at,a.ghostClass,!0),Gt.active=this,f&&this._appendGhost(),Dn({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Ei){this._lastX=Ei.clientX,this._lastY=Ei.clientY,Jm();for(var f=document.elementFromPoint(Ei.clientX,Ei.clientY),e=f;f&&f.shadowRoot&&(f=f.shadowRoot.elementFromPoint(Ei.clientX,Ei.clientY),f!==e);)e=f;if(at.parentNode[Xn]._isOutsideThisEl(f),e)do{if(e[Xn]){var a=void 0;if(a=e[Xn]._onDragOver({clientX:Ei.clientX,clientY:Ei.clientY,target:f,rootEl:e}),a&&!this.options.dragoverBubble)break}f=e}while(e=e.parentNode);Zm()}},_onTouchMove:function(f){if(la){var e=this.options,a=e.fallbackTolerance,c=e.fallbackOffset,s=f.touches?f.touches[0]:f,i=Kt&&lo(Kt,!0),o=Kt&&i&&i.a,n=Kt&&i&&i.d,r=Ql&&Sn&&bp(Sn),A=(s.clientX-la.clientX+c.x)/(o||1)+(r?r[0]-Nc[0]:0)/(o||1),d=(s.clientY-la.clientY+c.y)/(n||1)+(r?r[1]-Nc[1]:0)/(n||1);if(!Gt.active&&!so){if(a&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<a)return;this._onDragStart(f,!0)}if(Kt){i?(i.e+=A-(Pc||0),i.f+=d-(kc||0)):i={a:1,b:0,c:0,d:1,e:A,f:d};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ot(Kt,"webkitTransform",u),Ot(Kt,"mozTransform",u),Ot(Kt,"msTransform",u),Ot(Kt,"transform",u),Pc=A,kc=d,Ei=s}f.cancelable&&f.preventDefault()}},_appendGhost:function(){if(!Kt){var f=this.options.fallbackOnBody?document.body:Lr,e=tn(at,!0,Ql,!0,f),a=this.options;if(Ql){for(Sn=f;Ot(Sn,"position")==="static"&&Ot(Sn,"transform")==="none"&&Sn!==document;)Sn=Sn.parentNode;Sn!==document.body&&Sn!==document.documentElement?(Sn===document&&(Sn=Ti()),e.top+=Sn.scrollTop,e.left+=Sn.scrollLeft):Sn=Ti(),Nc=bp(Sn)}Kt=at.cloneNode(!0),Jn(Kt,a.ghostClass,!1),Jn(Kt,a.fallbackClass,!0),Jn(Kt,a.dragClass,!0),Ot(Kt,"transition",""),Ot(Kt,"transform",""),Ot(Kt,"box-sizing","border-box"),Ot(Kt,"margin",0),Ot(Kt,"top",e.top),Ot(Kt,"left",e.left),Ot(Kt,"width",e.width),Ot(Kt,"height",e.height),Ot(Kt,"opacity","0.8"),Ot(Kt,"position",Ql?"absolute":"fixed"),Ot(Kt,"zIndex","100000"),Ot(Kt,"pointerEvents","none"),Gt.ghost=Kt,f.appendChild(Kt),Ot(Kt,"transform-origin",vp/parseInt(Kt.style.width)*100+"% "+yp/parseInt(Kt.style.height)*100+"%")}},_onDragStart:function(f,e){var a=this,c=f.dataTransfer,s=a.options;if(Tn("dragStart",this,{evt:f}),Gt.eventCanceled){this._onDrop();return}Tn("setupClone",this),Gt.eventCanceled||(_r=Vm(at),_r.removeAttribute("id"),_r.draggable=!1,_r.style["will-change"]="",this._hideClone(),Jn(_r,this.options.chosenClass,!1),Gt.clone=_r),a.cloneId=Yl(function(){Tn("clone",a),!Gt.eventCanceled&&(a.options.removeCloneOnHide||Lr.insertBefore(_r,at),a._hideClone(),Dn({sortable:a,name:"clone"}))}),!e&&Jn(at,s.dragClass,!0),e?(nu=!0,a._loopId=setInterval(a._emulateDragOver,50)):(hr(document,"mouseup",a._onDrop),hr(document,"touchend",a._onDrop),hr(document,"touchcancel",a._onDrop),c&&(c.effectAllowed="move",s.setData&&s.setData.call(a,c,at)),mr(document,"drop",a),Ot(at,"transform","translateZ(0)")),so=!0,a._dragStartId=Yl(a._dragStarted.bind(a,e,f)),mr(document,"selectstart",a),tA=!0,cA&&Ot(document.body,"user-select","none")},_onDragOver:function(f){var e=this.el,a=f.target,c,s,i,o=this.options,n=o.group,r=Gt.active,A=Il===n,d=o.sort,u=wn||r,l,p=this,m=!1;if(Qf)return;function h(E,B){Tn(E,p,Oi({evt:f,isOwner:A,axis:l?"vertical":"horizontal",revert:i,dragRect:c,targetRect:s,canSort:d,fromSortable:u,target:a,completed:w,onMove:function(T,R){return Ml(Lr,e,at,c,T,tn(T),f,R)},changed:v},B))}function g(){h("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function w(E){return h("dragOverCompleted",{insertion:E}),E&&(A?r._hideClone():r._showClone(p),p!==u&&(Jn(at,wn?wn.options.ghostClass:r.options.ghostClass,!1),Jn(at,o.ghostClass,!0)),wn!==p&&p!==Gt.active?wn=p:p===Gt.active&&wn&&(wn=null),u===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){h("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(a===at&&!at.animated||a===e&&!a.animated)&&(eo=null),!o.dragoverBubble&&!f.rootEl&&a!==document&&(at.parentNode[Xn]._isOutsideThisEl(f.target),!E&&ua(f)),!o.dragoverBubble&&f.stopPropagation&&f.stopPropagation(),m=!0}function v(){Zn=Ai(at),Ts=Ai(at,o.draggable),Dn({sortable:p,name:"change",toEl:e,newIndex:Zn,newDraggableIndex:Ts,originalEvent:f})}if(f.preventDefault!==void 0&&f.cancelable&&f.preventDefault(),a=Bi(a,o.draggable,e,!0),h("dragOver"),Gt.eventCanceled)return m;if(at.contains(f.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return w(!1);if(nu=!1,r&&!o.disabled&&(A?d||(i=Nr!==Lr):wn===this||(this.lastPutMode=Il.checkPull(this,r,at,f))&&n.checkPut(this,r,at,f))){if(l=this._getDirection(f,a)==="vertical",c=tn(at),h("dragOverValid"),Gt.eventCanceled)return m;if(i)return Nr=Lr,g(),this._hideClone(),h("revert"),Gt.eventCanceled||(fa?Lr.insertBefore(at,fa):Lr.appendChild(at)),w(!0);var x=ud(e,o.draggable);if(!x||Yy(f,l,this)&&!x.animated){if(x===at)return w(!1);if(x&&e===f.target&&(a=x),a&&(s=tn(a)),Ml(Lr,e,at,c,a,s,f,!!a)!==!1)return g(),x&&x.nextSibling?e.insertBefore(at,x.nextSibling):e.appendChild(at),Nr=e,v(),w(!0)}else if(x&&Ty(f,l,this)){var L=ho(e,0,o,!0);if(L===at)return w(!1);if(a=L,s=tn(a),Ml(Lr,e,at,c,a,s,f,!1)!==!1)return g(),e.insertBefore(at,L),Nr=e,v(),w(!0)}else if(a.parentNode===e){s=tn(a);var k=0,Y,F=at.parentNode!==e,O=!_y(at.animated&&at.toRect||c,a.animated&&a.toRect||s,l),W=l?"top":"left",G=wp(a,"top","top")||wp(at,"top","top"),D=G?G.scrollTop:void 0;eo!==a&&(Y=s[W],pA=!1,Sl=!O&&o.invertSwap||F),k=Oy(f,a,s,l,O?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Sl,eo===a);var I;if(k!==0){var M=Ai(at);do M-=k,I=Nr.children[M];while(I&&(Ot(I,"display")==="none"||I===Kt))}if(k===0||I===a)return w(!1);eo=a,hA=k;var C=a.nextElementSibling,b=!1;b=k===1;var y=Ml(Lr,e,at,c,a,s,f,b);if(y!==!1)return(y===1||y===-1)&&(b=y===1),Qf=!0,setTimeout(jy,30),g(),b&&!C?e.appendChild(at):a.parentNode.insertBefore(at,b?C:a),G&&Wm(G,0,D-G.scrollTop),Nr=at.parentNode,Y!==void 0&&!Sl&&(Tl=Math.abs(Y-tn(a)[W])),v(),w(!0)}if(e.contains(at))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){hr(document,"mousemove",this._onTouchMove),hr(document,"touchmove",this._onTouchMove),hr(document,"pointermove",this._onTouchMove),hr(document,"dragover",ua),hr(document,"mousemove",ua),hr(document,"touchmove",ua)},_offUpEvents:function(){var f=this.el.ownerDocument;hr(f,"mouseup",this._onDrop),hr(f,"touchend",this._onDrop),hr(f,"pointerup",this._onDrop),hr(f,"touchcancel",this._onDrop),hr(document,"selectstart",this)},_onDrop:function(f){var e=this.el,a=this.options;if(Zn=Ai(at),Ts=Ai(at,a.draggable),Tn("drop",this,{evt:f}),Nr=at&&at.parentNode,Zn=Ai(at),Ts=Ai(at,a.draggable),Gt.eventCanceled){this._nulling();return}so=!1,Sl=!1,pA=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Mf(this.cloneId),Mf(this._dragStartId),this.nativeDraggable&&(hr(document,"drop",this),hr(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),cA&&Ot(document.body,"user-select",""),Ot(at,"transform",""),f&&(tA&&(f.cancelable&&f.preventDefault(),!a.dropBubble&&f.stopPropagation()),Kt&&Kt.parentNode&&Kt.parentNode.removeChild(Kt),(Lr===Nr||wn&&wn.lastPutMode!=="clone")&&_r&&_r.parentNode&&_r.parentNode.removeChild(_r),at&&(this.nativeDraggable&&hr(at,"dragend",this),jc(at),at.style["will-change"]="",tA&&!so&&Jn(at,wn?wn.options.ghostClass:this.options.ghostClass,!1),Jn(at,this.options.chosenClass,!1),Dn({sortable:this,name:"unchoose",toEl:Nr,newIndex:null,newDraggableIndex:null,originalEvent:f}),Lr!==Nr?(Zn>=0&&(Dn({rootEl:Nr,name:"add",toEl:Nr,fromEl:Lr,originalEvent:f}),Dn({sortable:this,name:"remove",toEl:Nr,originalEvent:f}),Dn({rootEl:Nr,name:"sort",toEl:Nr,fromEl:Lr,originalEvent:f}),Dn({sortable:this,name:"sort",toEl:Nr,originalEvent:f})),wn&&wn.save()):Zn!==Ao&&Zn>=0&&(Dn({sortable:this,name:"update",toEl:Nr,originalEvent:f}),Dn({sortable:this,name:"sort",toEl:Nr,originalEvent:f})),Gt.active&&((Zn==null||Zn===-1)&&(Zn=Ao,Ts=dA),Dn({sortable:this,name:"end",toEl:Nr,originalEvent:f}),this.save()))),this._nulling()},_nulling:function(){Tn("nulling",this),Lr=at=Nr=Kt=fa=_r=jl=Gs=la=Ei=tA=Zn=Ts=Ao=dA=eo=hA=wn=Il=Gt.dragged=Gt.ghost=Gt.clone=Gt.active=null,su.forEach(function(f){f.checked=!0}),su.length=Pc=kc=0},handleEvent:function(f){switch(f.type){case"drop":case"dragend":this._onDrop(f);break;case"dragenter":case"dragover":at&&(this._onDragOver(f),Ny(f));break;case"selectstart":f.preventDefault();break}},toArray:function(){for(var f=[],e,a=this.el.children,c=0,s=a.length,i=this.options;c<s;c++)e=a[c],Bi(e,i.draggable,this.el,!1)&&f.push(e.getAttribute(i.dataIdAttr)||Wy(e));return f},sort:function(f,e){var a={},c=this.el;this.toArray().forEach(function(s,i){var o=c.children[i];Bi(o,this.options.draggable,c,!1)&&(a[s]=o)},this),e&&this.captureAnimationState(),f.forEach(function(s){a[s]&&(c.removeChild(a[s]),c.appendChild(a[s]))}),e&&this.animateAll()},save:function(){var f=this.options.store;f&&f.set&&f.set(this)},closest:function(f,e){return Bi(f,e||this.options.draggable,this.el,!1)},option:function(f,e){var a=this.options;if(e===void 0)return a[f];var c=NA.modifyOption(this,f,e);typeof c<"u"?a[f]=c:a[f]=e,f==="group"&&Km(a)},destroy:function(){Tn("destroy",this);var f=this.el;f[Xn]=null,hr(f,"mousedown",this._onTapStart),hr(f,"touchstart",this._onTapStart),hr(f,"pointerdown",this._onTapStart),this.nativeDraggable&&(hr(f,"dragover",this),hr(f,"dragenter",this)),Array.prototype.forEach.call(f.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),iu.splice(iu.indexOf(this.el),1),this.el=f=null},_hideClone:function(){if(!Gs){if(Tn("hideClone",this),Gt.eventCanceled)return;Ot(_r,"display","none"),this.options.removeCloneOnHide&&_r.parentNode&&_r.parentNode.removeChild(_r),Gs=!0}},_showClone:function(f){if(f.lastPutMode!=="clone"){this._hideClone();return}if(Gs){if(Tn("showClone",this),Gt.eventCanceled)return;at.parentNode==Lr&&!this.options.group.revertClone?Lr.insertBefore(_r,at):fa?Lr.insertBefore(_r,fa):Lr.appendChild(_r),this.options.group.revertClone&&this.animate(at,_r),Ot(_r,"display",""),Gs=!1}}};function Ny(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ml(t,f,e,a,c,s,i,o){var n,r=t[Xn],A=r.options.onMove,d;return window.CustomEvent&&!ms&&!kA?n=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(n=document.createEvent("Event"),n.initEvent("move",!0,!0)),n.to=f,n.from=t,n.dragged=e,n.draggedRect=a,n.related=c||f,n.relatedRect=s||tn(f),n.willInsertAfter=o,n.originalEvent=i,t.dispatchEvent(n),A&&(d=A.call(r,n,i)),d}function jc(t){t.draggable=!1}function jy(){Qf=!1}function Ty(t,f,e){var a=tn(ho(e.el,0,e.options,!0)),c=Hm(e.el,e.options,Kt),s=10;return f?t.clientX<c.left-s||t.clientY<a.top&&t.clientX<a.right:t.clientY<c.top-s||t.clientY<a.bottom&&t.clientX<a.left}function Yy(t,f,e){var a=tn(ud(e.el,e.options.draggable)),c=Hm(e.el,e.options,Kt),s=10;return f?t.clientX>c.right+s||t.clientY>a.bottom&&t.clientX>a.left:t.clientY>c.bottom+s||t.clientX>a.right&&t.clientY>a.top}function Oy(t,f,e,a,c,s,i,o){var n=a?t.clientY:t.clientX,r=a?e.height:e.width,A=a?e.top:e.left,d=a?e.bottom:e.right,u=!1;if(!i){if(o&&Tl<r*c){if(!pA&&(hA===1?n>A+r*s/2:n<d-r*s/2)&&(pA=!0),pA)u=!0;else if(hA===1?n<A+Tl:n>d-Tl)return-hA}else if(n>A+r*(1-c)/2&&n<d-r*(1-c)/2)return Gy(f)}return u=u||i,u&&(n<A+r*s/2||n>d-r*s/2)?n>A+r/2?1:-1:0}function Gy(t){return Ai(at)<Ai(t)?1:-1}function Wy(t){for(var f=t.tagName+t.className+t.src+t.href+t.textContent,e=f.length,a=0;e--;)a+=f.charCodeAt(e);return a.toString(36)}function Vy(t){su.length=0;for(var f=t.getElementsByTagName("input"),e=f.length;e--;){var a=f[e];a.checked&&su.push(a)}}function Yl(t){return setTimeout(t,0)}function Mf(t){return clearTimeout(t)}Du&&mr(document,"touchmove",function(t){(Gt.active||so)&&t.cancelable&&t.preventDefault()});Gt.utils={on:mr,off:hr,css:Ot,find:Om,is:function(f,e){return!!Bi(f,e,f,!1)},extend:Iy,throttle:Gm,closest:Bi,toggleClass:Jn,clone:Vm,index:Ai,nextTick:Yl,cancelNextTick:Mf,detectDirection:zm,getChild:ho};Gt.get=function(t){return t[Xn]};Gt.mount=function(){for(var t=arguments.length,f=new Array(t),e=0;e<t;e++)f[e]=arguments[e];f[0].constructor===Array&&(f=f[0]),f.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Gt.utils=Oi(Oi({},Gt.utils),a.utils)),NA.mount(a)})};Gt.create=function(t,f){return new Gt(t,f)};Gt.version=By;var en=[],rA,Rf,Lf=!1,Tc,Yc,au,nA;function Hy(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var f in this)f.charAt(0)==="_"&&typeof this[f]=="function"&&(this[f]=this[f].bind(this))}return t.prototype={dragStarted:function(e){var a=e.originalEvent;this.sortable.nativeDraggable?mr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?mr(document,"pointermove",this._handleFallbackAutoScroll):a.touches?mr(document,"touchmove",this._handleFallbackAutoScroll):mr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var a=e.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?hr(document,"dragover",this._handleAutoScroll):(hr(document,"pointermove",this._handleFallbackAutoScroll),hr(document,"touchmove",this._handleFallbackAutoScroll),hr(document,"mousemove",this._handleFallbackAutoScroll)),Bp(),Ol(),Sy()},nulling:function(){au=Rf=rA=Lf=nA=Tc=Yc=null,en.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,a){var c=this,s=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(s,i);if(au=e,a||this.options.forceAutoScrollFallback||kA||ms||cA){Oc(e,this.options,o,a);var n=Hs(o,!0);Lf&&(!nA||s!==Tc||i!==Yc)&&(nA&&Bp(),nA=setInterval(function(){var r=Hs(document.elementFromPoint(s,i),!0);r!==n&&(n=r,Ol()),Oc(e,c.options,r,a)},10),Tc=s,Yc=i)}else{if(!this.options.bubbleScroll||Hs(o,!0)===Ti()){Ol();return}Oc(e,this.options,Hs(o,!1),!1)}}},fs(t,{pluginName:"scroll",initializeByDefault:!0})}function Ol(){en.forEach(function(t){clearInterval(t.pid)}),en=[]}function Bp(){clearInterval(nA)}var Oc=Gm(function(t,f,e,a){if(f.scroll){var c=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,i=f.scrollSensitivity,o=f.scrollSpeed,n=Ti(),r=!1,A;Rf!==e&&(Rf=e,Ol(),rA=f.scroll,A=f.scrollFn,rA===!0&&(rA=Hs(e,!0)));var d=0,u=rA;do{var l=u,p=tn(l),m=p.top,h=p.bottom,g=p.left,w=p.right,v=p.width,x=p.height,L=void 0,k=void 0,Y=l.scrollWidth,F=l.scrollHeight,O=Ot(l),W=l.scrollLeft,G=l.scrollTop;l===n?(L=v<Y&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),k=x<F&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(L=v<Y&&(O.overflowX==="auto"||O.overflowX==="scroll"),k=x<F&&(O.overflowY==="auto"||O.overflowY==="scroll"));var D=L&&(Math.abs(w-c)<=i&&W+v<Y)-(Math.abs(g-c)<=i&&!!W),I=k&&(Math.abs(h-s)<=i&&G+x<F)-(Math.abs(m-s)<=i&&!!G);if(!en[d])for(var M=0;M<=d;M++)en[M]||(en[M]={});(en[d].vx!=D||en[d].vy!=I||en[d].el!==l)&&(en[d].el=l,en[d].vx=D,en[d].vy=I,clearInterval(en[d].pid),(D!=0||I!=0)&&(r=!0,en[d].pid=setInterval((function(){a&&this.layer===0&&Gt.active._onTouchMove(au);var C=en[this.layer].vy?en[this.layer].vy*o:0,b=en[this.layer].vx?en[this.layer].vx*o:0;typeof A=="function"&&A.call(Gt.dragged.parentNode[Xn],b,C,t,au,en[this.layer].el)!=="continue"||Wm(en[this.layer].el,b,C)}).bind({layer:d}),24))),d++}while(f.bubbleScroll&&u!==n&&(u=Hs(u,!1)));Lf=r}},30),qm=function(f){var e=f.originalEvent,a=f.putSortable,c=f.dragEl,s=f.activeSortable,i=f.dispatchSortableEvent,o=f.hideGhostForTarget,n=f.unhideGhostForTarget;if(e){var r=a||s;o();var A=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(A.clientX,A.clientY);n(),r&&!r.el.contains(d)&&(i("spill"),this.onSpill({dragEl:c,putSortable:a}))}};function cd(){}cd.prototype={startIndex:null,dragStart:function(f){var e=f.oldDraggableIndex;this.startIndex=e},onSpill:function(f){var e=f.dragEl,a=f.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var c=ho(this.sortable.el,this.startIndex,this.options);c?this.sortable.el.insertBefore(e,c):this.sortable.el.appendChild(e),this.sortable.animateAll(),a&&a.animateAll()},drop:qm};fs(cd,{pluginName:"revertOnSpill"});function fd(){}fd.prototype={onSpill:function(f){var e=f.dragEl,a=f.putSortable,c=a||this.sortable;c.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),c.animateAll()},drop:qm};fs(fd,{pluginName:"removeOnSpill"});Gt.mount(new Hy);Gt.mount(fd,cd);function Xm(t){const f=yo(),{getCurrentTable:e,setTableHash:a,hashString:c}=f;n0.storeToRefs(f);const s=Q.ref(!1),i=2,o=Q.computed(()=>e(t.id));Q.watch(o,async u=>{u.options.hash&&await n(u)},{deep:!0});const n=async u=>{if(s.value)return;s.value=!0,await Q.nextTick();const l=r(),p=l.findIndex(m=>m.id===t.id);p>-1?l[p]=u:l.push(u),localStorage.setItem("datatables-state",JSON.stringify(l)),s.value=!1},r=()=>{const u=localStorage.getItem("datatables-state");return JSON.parse(u??"[]")},A=()=>r().find(p=>p.id===t.id);return{saving:s,dataStateGet:A,tableDataState:o,checkTableState:async()=>{const u=localStorage.getItem("datatables-state-v");parseInt(u)!==parseInt(i)&&(localStorage.removeItem("datatables-state"),localStorage.setItem("datatables-state-v",i));const l=A(),p=l==null?void 0:l.options.hash;if(p){const m=await c(JSON.stringify(t.headers??[]));p!==m&&localStorage.removeItem("datatables-state")}a({table_id:t.id,headers:t.headers})}}}const dd=Qt()({name:"VCardActions",props:ir(),setup(t,f){let{slots:e}=f;return Yi({VBtn:{slim:!0,variant:"text"}}),jt(()=>{var a;return Q.createVNode("div",{class:["v-card-actions",t.class],style:t.style},[(a=e.default)==null?void 0:a.call(e)])}),{}}}),Uy=$e({opacity:[Number,String],...ir(),...Yr()},"VCardSubtitle"),zy=Qt()({name:"VCardSubtitle",props:Uy(),setup(t,f){let{slots:e}=f;return jt(()=>Q.createVNode(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},e)),{}}}),_u=Y0("v-card-title"),Ky=$e({appendAvatar:String,appendIcon:nr,prependAvatar:String,prependIcon:nr,subtitle:[String,Number],title:[String,Number],...ir(),...li()},"VCardItem"),Jy=Qt()({name:"VCardItem",props:Ky(),setup(t,f){let{slots:e}=f;return jt(()=>{var r;const a=!!(t.prependAvatar||t.prependIcon),c=!!(a||e.prepend),s=!!(t.appendAvatar||t.appendIcon),i=!!(s||e.append),o=!!(t.title!=null||e.title),n=!!(t.subtitle!=null||e.subtitle);return Q.createVNode("div",{class:["v-card-item",t.class],style:t.style},[c&&Q.createVNode("div",{key:"prepend",class:"v-card-item__prepend"},[e.prepend?Q.createVNode(pn,{key:"prepend-defaults",disabled:!a,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},e.prepend):Q.createVNode(Q.Fragment,null,[t.prependAvatar&&Q.createVNode(xa,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Q.createVNode(Tr,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),Q.createVNode("div",{class:"v-card-item__content"},[o&&Q.createVNode(_u,{key:"title"},{default:()=>{var A;return[((A=e.title)==null?void 0:A.call(e))??t.title]}}),n&&Q.createVNode(zy,{key:"subtitle"},{default:()=>{var A;return[((A=e.subtitle)==null?void 0:A.call(e))??t.subtitle]}}),(r=e.default)==null?void 0:r.call(e)]),i&&Q.createVNode("div",{key:"append",class:"v-card-item__append"},[e.append?Q.createVNode(pn,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},e.append):Q.createVNode(Q.Fragment,null,[t.appendIcon&&Q.createVNode(Tr,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Q.createVNode(xa,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),Zy=$e({opacity:[Number,String],...ir(),...Yr()},"VCardText"),Pu=Qt()({name:"VCardText",props:Zy(),setup(t,f){let{slots:e}=f;return jt(()=>Q.createVNode(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},e)),{}}}),qy=$e({appendAvatar:String,appendIcon:nr,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:nr,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Xs(),...ir(),...li(),...Ui(),...ds(),...Iu(),...Cu(),...ed(),...ui(),...Mu(),...Yr(),...Jr(),...hs({variant:"elevated"})},"VCard"),hd=Qt()({name:"VCard",directives:{Ripple:DA},props:qy(),setup(t,f){let{attrs:e,slots:a}=f;const{themeClasses:c}=ln(t),{borderClasses:s}=Ma(t),{colorClasses:i,colorStyles:o,variantClasses:n}=LA(t),{densityClasses:r}=Hi(t),{dimensionStyles:A}=zi(t),{elevationClasses:d}=$s(t),{loaderClasses:u}=Su(t),{locationStyles:l}=xu(t),{positionClasses:p}=td(t),{roundedClasses:m}=Qi(t),h=Qu(t,e),g=Q.computed(()=>t.link!==!1&&h.isLink.value),w=Q.computed(()=>!t.disabled&&t.link!==!1&&(t.link||h.isClickable.value));return jt(()=>{const v=g.value?"a":t.tag,x=!!(a.title||t.title!=null),L=!!(a.subtitle||t.subtitle!=null),k=x||L,Y=!!(a.append||t.appendAvatar||t.appendIcon),F=!!(a.prepend||t.prependAvatar||t.prependIcon),O=!!(a.image||t.image),W=k||F||Y,G=!!(a.text||t.text!=null);return Q.withDirectives(Q.createVNode(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":w.value},c.value,s.value,i.value,r.value,d.value,u.value,p.value,m.value,n.value,t.class],style:[o.value,A.value,l.value,t.style],href:h.href.value,onClick:w.value&&h.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var D;return[O&&Q.createVNode("div",{key:"image",class:"v-card__image"},[a.image?Q.createVNode(pn,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},a.image):Q.createVNode(bm,{key:"image-img",cover:!0,src:t.image},null)]),Q.createVNode($f,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:a.loader}),W&&Q.createVNode(Jy,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:a.item,prepend:a.prepend,title:a.title,subtitle:a.subtitle,append:a.append}),G&&Q.createVNode(Pu,{key:"text"},{default:()=>{var I;return[((I=a.text)==null?void 0:I.call(a))??t.text]}}),(D=a.default)==null?void 0:D.call(a),a.actions&&Q.createVNode(dd,null,{default:a.actions}),RA(w.value,"v-card")]}}),[[Q.resolveDirective("ripple"),w.value&&t.ripple]])}),{}}}),$m=Symbol.for("vuetify:selection-control-group"),eg=$e({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:nr,trueIcon:nr,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:qs},...ir(),...li(),...Jr()},"SelectionControlGroup"),Xy=$e({...eg({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Qt()({name:"VSelectionControlGroup",props:Xy(),emits:{"update:modelValue":t=>!0},setup(t,f){let{slots:e}=f;const a=Mr(t,"modelValue"),c=Vi(),s=Q.computed(()=>t.id||`v-selection-control-group-${c}`),i=Q.computed(()=>t.name||s.value),o=new Set;return Q.provide($m,{modelValue:a,forceUpdate:()=>{o.forEach(n=>n())},onForceUpdate:n=>{o.add(n),Q.onScopeDispose(()=>{o.delete(n)})}}),Yi({[t.defaultsTarget]:{color:Q.toRef(t,"color"),disabled:Q.toRef(t,"disabled"),density:Q.toRef(t,"density"),error:Q.toRef(t,"error"),inline:Q.toRef(t,"inline"),modelValue:a,multiple:Q.computed(()=>!!t.multiple||t.multiple==null&&Array.isArray(a.value)),name:i,falseIcon:Q.toRef(t,"falseIcon"),trueIcon:Q.toRef(t,"trueIcon"),readonly:Q.toRef(t,"readonly"),ripple:Q.toRef(t,"ripple"),type:Q.toRef(t,"type"),valueComparator:Q.toRef(t,"valueComparator")}}),jt(()=>{var n;return Q.createVNode("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(n=e.default)==null?void 0:n.call(e)])}),{}}});const tg=$e({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ir(),...eg()},"VSelectionControl");function $y(t){const f=Q.inject($m,void 0),{densityClasses:e}=Hi(t),a=Mr(t,"modelValue"),c=Q.computed(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),s=Q.computed(()=>t.falseValue!==void 0?t.falseValue:!1),i=Q.computed(()=>!!t.multiple||t.multiple==null&&Array.isArray(a.value)),o=Q.computed({get(){const l=f?f.modelValue.value:a.value;return i.value?bn(l).some(p=>t.valueComparator(p,c.value)):t.valueComparator(l,c.value)},set(l){if(t.readonly)return;const p=l?c.value:s.value;let m=p;i.value&&(m=l?[...bn(a.value),p]:bn(a.value).filter(h=>!t.valueComparator(h,c.value))),f?f.modelValue.value=m:a.value=m}}),{textColorClasses:n,textColorStyles:r}=cs(Q.computed(()=>{if(!(t.error||t.disabled))return o.value?t.color:t.baseColor})),{backgroundColorClasses:A,backgroundColorStyles:d}=xi(Q.computed(()=>o.value&&!t.error&&!t.disabled?t.color:t.baseColor)),u=Q.computed(()=>o.value?t.trueIcon:t.falseIcon);return{group:f,densityClasses:e,trueValue:c,falseValue:s,model:o,textColorClasses:n,textColorStyles:r,backgroundColorClasses:A,backgroundColorStyles:d,icon:u}}const Cp=Qt()({name:"VSelectionControl",directives:{Ripple:DA},inheritAttrs:!1,props:tg(),emits:{"update:modelValue":t=>!0},setup(t,f){let{attrs:e,slots:a}=f;const{group:c,densityClasses:s,icon:i,model:o,textColorClasses:n,textColorStyles:r,backgroundColorClasses:A,backgroundColorStyles:d,trueValue:u}=$y(t),l=Vi(),p=Q.shallowRef(!1),m=Q.shallowRef(!1),h=Q.ref(),g=Q.computed(()=>t.id||`input-${l}`),w=Q.computed(()=>!t.disabled&&!t.readonly);c==null||c.onForceUpdate(()=>{h.value&&(h.value.checked=o.value)});function v(Y){w.value&&(p.value=!0,zl(Y.target,":focus-visible")!==!1&&(m.value=!0))}function x(){p.value=!1,m.value=!1}function L(Y){Y.stopPropagation()}function k(Y){if(!w.value){h.value&&(h.value.checked=o.value);return}t.readonly&&c&&Q.nextTick(()=>c.forceUpdate()),o.value=Y.target.checked}return jt(()=>{var G,D;const Y=a.label?a.label({label:t.label,props:{for:g.value}}):t.label,[F,O]=Hf(e),W=Q.createVNode("input",Q.mergeProps({ref:h,checked:o.value,disabled:!!t.disabled,id:g.value,onBlur:x,onFocus:v,onInput:k,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:u.value,name:t.name,"aria-checked":t.type==="checkbox"?o.value:void 0},O),null);return Q.createVNode("div",Q.mergeProps({class:["v-selection-control",{"v-selection-control--dirty":o.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":t.inline},s.value,t.class]},F,{style:t.style}),[Q.createVNode("div",{class:["v-selection-control__wrapper",n.value],style:r.value},[(G=a.default)==null?void 0:G.call(a,{backgroundColorClasses:A,backgroundColorStyles:d}),Q.withDirectives(Q.createVNode("div",{class:["v-selection-control__input"]},[((D=a.input)==null?void 0:D.call(a,{model:o,textColorClasses:n,textColorStyles:r,backgroundColorClasses:A,backgroundColorStyles:d,inputNode:W,icon:i.value,props:{onFocus:v,onBlur:x,id:g.value}}))??Q.createVNode(Q.Fragment,null,[i.value&&Q.createVNode(Tr,{key:"icon",icon:i.value},null),W])]),[[Q.resolveDirective("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),Y&&Q.createVNode(Lm,{for:g.value,onClick:L},{default:()=>[Y]})])}),{isFocused:p,input:h}}}),rg=$e({indeterminate:Boolean,indeterminateIcon:{type:nr,default:"$checkboxIndeterminate"},...tg({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),po=Qt()({name:"VCheckboxBtn",props:rg(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,f){let{slots:e}=f;const a=Mr(t,"indeterminate"),c=Mr(t,"modelValue");function s(n){a.value&&(a.value=!1)}const i=Q.computed(()=>a.value?t.indeterminateIcon:t.falseIcon),o=Q.computed(()=>a.value?t.indeterminateIcon:t.trueIcon);return jt(()=>{const n=Qa(Cp.filterProps(t),["modelValue"]);return Q.createVNode(Cp,Q.mergeProps(n,{modelValue:c.value,"onUpdate:modelValue":[r=>c.value=r,s],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:i.value,trueIcon:o.value,"aria-checked":a.value?"mixed":void 0}),e)}),{}}}),eE=$e({...ld(),...Qa(rg(),["inline"])},"VCheckbox"),tE=Qt()({name:"VCheckbox",inheritAttrs:!1,props:eE(),emits:{"update:modelValue":t=>!0,"update:focused":t=>!0},setup(t,f){let{attrs:e,slots:a}=f;const c=Mr(t,"modelValue"),{isFocused:s,focus:i,blur:o}=Ad(t),n=Vi(),r=Q.computed(()=>t.id||`checkbox-${n}`);return jt(()=>{const[A,d]=Hf(e),u=eu.filterProps(t),l=po.filterProps(t);return Q.createVNode(eu,Q.mergeProps({class:["v-checkbox",t.class]},A,u,{modelValue:c.value,"onUpdate:modelValue":p=>c.value=p,id:r.value,focused:s.value,style:t.style}),{...a,default:p=>{let{id:m,messagesId:h,isDisabled:g,isReadonly:w,isValid:v}=p;return Q.createVNode(po,Q.mergeProps(l,{id:m.value,"aria-describedby":h.value,disabled:g.value,readonly:w.value},d,{error:v.value===!1,modelValue:c.value,"onUpdate:modelValue":x=>c.value=x,onFocus:i,onBlur:o}),a)}})}),{}}}),rE=$e({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...ad({origin:"center center",scrollStrategy:"block",transition:{component:rd},zIndex:2400})},"VDialog"),pd=Qt()({name:"VDialog",props:rE(),emits:{"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,f){let{emit:e,slots:a}=f;const c=Mr(t,"modelValue"),{scopeId:s}=sd(),i=Q.ref();function o(A){var l,p;const d=A.relatedTarget,u=A.target;if(d!==u&&((l=i.value)!=null&&l.contentEl)&&((p=i.value)!=null&&p.globalTop)&&![document,i.value.contentEl].includes(u)&&!i.value.contentEl.contains(u)){const m=BA(i.value.contentEl);if(!m.length)return;const h=m[0],g=m[m.length-1];d===h?g.focus():h.focus()}}An&&Q.watch(()=>c.value&&t.retainFocus,A=>{A?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0});function n(){var A;(A=i.value)!=null&&A.contentEl&&!i.value.contentEl.contains(document.activeElement)&&i.value.contentEl.focus({preventScroll:!0})}function r(){e("afterLeave")}return Q.watch(c,async A=>{var d;A||(await Q.nextTick(),(d=i.value.activatorEl)==null||d.focus({preventScroll:!0}))}),jt(()=>{const A=$l.filterProps(t),d=Q.mergeProps({"aria-haspopup":"dialog","aria-expanded":String(c.value)},t.activatorProps),u=Q.mergeProps({tabindex:-1},t.contentProps);return Q.createVNode($l,Q.mergeProps({ref:i,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},A,{modelValue:c.value,"onUpdate:modelValue":l=>c.value=l,"aria-modal":"true",activatorProps:d,contentProps:u,role:"dialog",onAfterEnter:n,onAfterLeave:r},s),{activator:a.activator,default:function(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];return Q.createVNode(pn,{root:"VDialog"},{default:()=>{var h;return[(h=a.default)==null?void 0:h.call(a,...p)]}})}})}),Fu({},i)}}),nE={class:"text-medium-emphasis ps-2"},iE={__name:"index",setup(t,{expose:f}){const e=Q.inject("table_props"),{tableState:a}=La(),{tableDataState:c}=Xm(e),s=Q.ref(0),i=Q.ref(null),o=Q.ref(!1),n=Q.ref([]),r=Q.ref([]),A=Q.ref([]),d=()=>{o.value=!0};Q.onMounted(()=>{var l,p;Gt.create(i.value.$el,{onEnd:async m=>{A.value=Array.from(m.from.children).map(function(h){return h.getAttribute("headerKeys")})}}),r.value=(l=a.value.options.columns)==null?void 0:l.selected,A.value=(p=a.value.options.columns)==null?void 0:p.sorted,n.value=A.value.map(m=>e.headers.find(h=>h.key===m))});const u=()=>{c.value.options.columns.selected=r.value,c.value.options.columns.sorted=A.value,o.value=!1};return f({openDialog:d}),(l,p)=>(Q.openBlock(),Q.createBlock(pd,{modelValue:Q.unref(o),"onUpdate:modelValue":p[1]||(p[1]=m=>Q.isRef(o)?o.value=m:null),"max-width":"500",eager:""},{default:Q.withCtx(({isActive:m})=>[Q.createVNode(hd,{rounded:"lg"},{default:Q.withCtx(()=>[Q.createVNode(_u,{class:"d-flex justify-space-between align-center"},{default:Q.withCtx(()=>[Q.createElementVNode("div",nE,Q.toDisplayString(l.$t("$datatables.selectColumns")),1),Q.createVNode(hn,{icon:"mdi-close",variant:"text",onClick:h=>m.value=!1},null,8,["onClick"])]),_:2},1024),Q.createVNode(Ia,{class:"mb-4"}),Q.createVNode(Pu,null,{default:Q.withCtx(()=>[Q.createVNode(PA,{ref_key:"list",ref:i},{default:Q.withCtx(()=>[(Q.openBlock(!0),Q.createElementBlock(Q.Fragment,null,Q.renderList(Q.unref(n),(h,g)=>(Q.openBlock(),Q.createBlock(Zs,{onClick:()=>{},key:`${Q.unref(s)}-${g}`,title:h==null?void 0:h.title,headerKeys:h==null?void 0:h.key},{prepend:Q.withCtx(()=>[Q.createVNode(tE,{modelValue:Q.unref(r),"onUpdate:modelValue":p[0]||(p[0]=w=>Q.isRef(r)?r.value=w:null),value:h==null?void 0:h.key,"hide-details":""},null,8,["modelValue","value"])]),append:Q.withCtx(()=>[Q.createVNode(Tr,null,{default:Q.withCtx(()=>[Q.createTextVNode("mdi-drag-vertical")]),_:1})]),_:2},1032,["title","headerKeys"]))),128))]),_:1},512)]),_:1}),Q.createVNode(Ia,{class:"mt-2"}),Q.createVNode(dd,{class:"my-2 d-flex justify-end"},{default:Q.withCtx(()=>[Q.createVNode(hn,{class:"text-none",text:l.$t("$datatables.cancel"),onClick:h=>m.value=!1},null,8,["text","onClick"]),Q.createVNode(hn,{class:"text-none",color:"primary",text:l.$t("$datatables.submit"),variant:"flat",onClick:u},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]))}},sE=Symbol.for("vuetify:goto");function aE(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function oE(t){return md(t)??(document.scrollingElement||document.body)}function md(t){return typeof t=="string"?document.querySelector(t):Q0(t)}function Gc(t,f,e){if(typeof t=="number")return f&&e?-t:t;let a=md(t),c=0;for(;a;)c+=f?a.offsetLeft:a.offsetTop,a=a.offsetParent;return c}async function xp(t,f,e,a){const c=e?"scrollLeft":"scrollTop",s=ls((a==null?void 0:a.options)??aE(),f),i=a==null?void 0:a.rtl.value,o=(typeof t=="number"?t:md(t))??0,n=s.container==="parent"&&o instanceof HTMLElement?o.parentElement:oE(s.container),r=typeof s.easing=="function"?s.easing:s.patterns[s.easing];if(!r)throw new TypeError(`Easing function "${s.easing}" not found.`);let A;if(typeof o=="number")A=Gc(o,e,i);else if(A=Gc(o,e,i)-Gc(n,e,i),s.layout){const p=window.getComputedStyle(o).getPropertyValue("--v-layout-top");p&&(A-=parseInt(p,10))}A+=s.offset,A=lE(n,A,!!i,!!e);const d=n[c]??0;if(A===d)return Promise.resolve(A);const u=performance.now();return new Promise(l=>requestAnimationFrame(function p(m){const g=(m-u)/s.duration,w=Math.floor(d+(A-d)*r(Ci(g,0,1)));if(n[c]=w,g>=1&&Math.abs(w-n[c])<10)return l(A);if(g>2)return ya("Scroll target is not reachable"),l(n[c]);requestAnimationFrame(p)}))}function AE(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const f=Q.inject(sE),{isRtl:e}=ea();if(!f)throw new Error("[Vuetify] Could not find injected goto instance");const a={...f,rtl:Q.computed(()=>f.rtl.value||e.value)};async function c(s,i){return xp(s,ls(t,i),!1,a)}return c.horizontal=async(s,i)=>xp(s,ls(t,i),!0,a),c}function lE(t,f,e,a){const{scrollWidth:c,scrollHeight:s}=t,[i,o]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let n,r;return a?e?(n=-(c-i),r=0):(n=0,r=c-i):(n=0,r=s+-o),Math.max(Math.min(f,r),n)}function uE(t){let{selectedElement:f,containerElement:e,isRtl:a,isHorizontal:c}=t;const s=QA(c,e),i=ng(c,a,e),o=QA(c,f),n=ig(c,f),r=o*.4;return i>n?n-r:i+s<n+o?n-s+o+r:i}function cE(t){let{selectedElement:f,containerElement:e,isHorizontal:a}=t;const c=QA(a,e),s=ig(a,f),i=QA(a,f);return s-c/2+i/2}function Ip(t,f){const e=t?"scrollWidth":"scrollHeight";return(f==null?void 0:f[e])||0}function fE(t,f){const e=t?"clientWidth":"clientHeight";return(f==null?void 0:f[e])||0}function ng(t,f,e){if(!e)return 0;const{scrollLeft:a,offsetWidth:c,scrollWidth:s}=e;return t?f?s-c+a:a:e.scrollTop}function QA(t,f){const e=t?"offsetWidth":"offsetHeight";return(f==null?void 0:f[e])||0}function ig(t,f){const e=t?"offsetLeft":"offsetTop";return(f==null?void 0:f[e])||0}const dE=Symbol.for("vuetify:v-slide-group"),sg=$e({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:dE},nextIcon:{type:nr,default:"$next"},prevIcon:{type:nr,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ir(),...Lu({mobile:null}),...Yr(),...qf({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Sp=Qt()({name:"VSlideGroup",props:sg(),emits:{"update:modelValue":t=>!0},setup(t,f){let{slots:e}=f;const{isRtl:a}=ea(),{displayClasses:c,mobile:s}=Ra(t),i=Xf(t,t.symbol),o=Q.shallowRef(!1),n=Q.shallowRef(0),r=Q.shallowRef(0),A=Q.shallowRef(0),d=Q.computed(()=>t.direction==="horizontal"),{resizeRef:u,contentRect:l}=fo(),{resizeRef:p,contentRect:m}=fo(),h=AE(),g=Q.computed(()=>({container:u.el,duration:200,easing:"easeOutQuart"})),w=Q.computed(()=>i.selected.value.length?i.items.value.findIndex(S=>S.id===i.selected.value[0]):-1),v=Q.computed(()=>i.selected.value.length?i.items.value.findIndex(S=>S.id===i.selected.value[i.selected.value.length-1]):-1);if(An){let S=-1;Q.watch(()=>[i.selected.value,l.value,m.value,d.value],()=>{cancelAnimationFrame(S),S=requestAnimationFrame(()=>{if(l.value&&m.value){const T=d.value?"width":"height";r.value=l.value[T],A.value=m.value[T],o.value=r.value+1<A.value}if(w.value>=0&&p.el){const T=p.el.children[v.value];L(T,t.centerActive)}})})}const x=Q.shallowRef(!1);function L(S,T){let R=0;T?R=cE({containerElement:u.el,isHorizontal:d.value,selectedElement:S}):R=uE({containerElement:u.el,isHorizontal:d.value,isRtl:a.value,selectedElement:S}),k(R)}function k(S){if(!An||!u.el)return;const T=QA(d.value,u.el),R=ng(d.value,a.value,u.el);if(!(Ip(d.value,u.el)<=T||Math.abs(S-R)<16)){if(d.value&&a.value&&u.el){const{scrollWidth:U,offsetWidth:q}=u.el;S=U-q-S}d.value?h.horizontal(S,g.value):h(S,g.value)}}function Y(S){const{scrollTop:T,scrollLeft:R}=S.target;n.value=d.value?R:T}function F(S){if(x.value=!0,!(!o.value||!p.el)){for(const T of S.composedPath())for(const R of p.el.children)if(R===T){L(R);return}}}function O(S){x.value=!1}let W=!1;function G(S){var T;!W&&!x.value&&!(S.relatedTarget&&((T=p.el)!=null&&T.contains(S.relatedTarget)))&&M(),W=!1}function D(){W=!0}function I(S){if(!p.el)return;function T(R){S.preventDefault(),M(R)}d.value?S.key==="ArrowRight"?T(a.value?"prev":"next"):S.key==="ArrowLeft"&&T(a.value?"next":"prev"):S.key==="ArrowDown"?T("next"):S.key==="ArrowUp"&&T("prev"),S.key==="Home"?T("first"):S.key==="End"&&T("last")}function M(S){var R,V;if(!p.el)return;let T;if(!S)T=BA(p.el)[0];else if(S==="next"){if(T=(R=p.el.querySelector(":focus"))==null?void 0:R.nextElementSibling,!T)return M("first")}else if(S==="prev"){if(T=(V=p.el.querySelector(":focus"))==null?void 0:V.previousElementSibling,!T)return M("last")}else S==="first"?T=p.el.firstElementChild:S==="last"&&(T=p.el.lastElementChild);T&&T.focus({preventScroll:!0})}function C(S){const T=d.value&&a.value?-1:1,R=(S==="prev"?-T:T)*r.value;let V=n.value+R;if(d.value&&a.value&&u.el){const{scrollWidth:U,offsetWidth:q}=u.el;V+=U-q}k(V)}const b=Q.computed(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),y=Q.computed(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return o.value||Math.abs(n.value)>0;case"mobile":return s.value||o.value||Math.abs(n.value)>0;default:return!s.value&&(o.value||Math.abs(n.value)>0)}}),E=Q.computed(()=>Math.abs(n.value)>1),B=Q.computed(()=>{if(!u.value)return!1;const S=Ip(d.value,u.el),T=fE(d.value,u.el);return S-T-Math.abs(n.value)>1});return jt(()=>Q.createVNode(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":y.value,"v-slide-group--is-overflowing":o.value},c.value,t.class],style:t.style,tabindex:x.value||i.selected.value.length?-1:0,onFocus:G},{default:()=>{var S,T,R;return[y.value&&Q.createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!E.value}],onMousedown:D,onClick:()=>E.value&&C("prev")},[((S=e.prev)==null?void 0:S.call(e,b.value))??Q.createVNode(sp,null,{default:()=>[Q.createVNode(Tr,{icon:a.value?t.nextIcon:t.prevIcon},null)]})]),Q.createVNode("div",{key:"container",ref:u,class:"v-slide-group__container",onScroll:Y},[Q.createVNode("div",{ref:p,class:"v-slide-group__content",onFocusin:F,onFocusout:O,onKeydown:I},[(T=e.default)==null?void 0:T.call(e,b.value)])]),y.value&&Q.createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!B.value}],onMousedown:D,onClick:()=>B.value&&C("next")},[((R=e.next)==null?void 0:R.call(e,b.value))??Q.createVNode(sp,null,{default:()=>[Q.createVNode(Tr,{icon:a.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:i.selected,scrollTo:C,scrollOffset:n,focus:M}}}),ag=Symbol.for("vuetify:v-chip-group"),hE=$e({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:qs},...sg(),...ir(),...qf({selectedClass:"v-chip--selected"}),...Yr(),...Jr(),...hs({variant:"tonal"})},"VChipGroup"),pE=Qt()({name:"VChipGroup",props:hE(),emits:{"update:modelValue":t=>!0},setup(t,f){let{slots:e}=f;const{themeClasses:a}=ln(t),{isSelected:c,select:s,next:i,prev:o,selected:n}=Xf(t,ag);return Yi({VChip:{color:Q.toRef(t,"color"),disabled:Q.toRef(t,"disabled"),filter:Q.toRef(t,"filter"),variant:Q.toRef(t,"variant")}}),jt(()=>{const r=Sp.filterProps(t);return Q.createVNode(Sp,Q.mergeProps(r,{class:["v-chip-group",{"v-chip-group--column":t.column},a.value,t.class],style:t.style}),{default:()=>{var A;return[(A=e.default)==null?void 0:A.call(e,{isSelected:c,select:s,next:i,prev:o,selected:n.value})]}})}),{}}}),mE=$e({activeClass:String,appendAvatar:String,appendIcon:nr,closable:Boolean,closeIcon:{type:nr,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:nr,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:vn(),onClickOnce:vn(),...Xs(),...ir(),...li(),...ds(),...V0(),...ui(),...Mu(),...vo(),...Yr({tag:"span"}),...Jr(),...hs({variant:"tonal"})},"VChip"),gd=Qt()({name:"VChip",directives:{Ripple:DA},props:mE(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,f){let{attrs:e,emit:a,slots:c}=f;const{t:s}=ps(),{borderClasses:i}=Ma(t),{colorClasses:o,colorStyles:n,variantClasses:r}=LA(t),{densityClasses:A}=Hi(t),{elevationClasses:d}=$s(t),{roundedClasses:u}=Qi(t),{sizeClasses:l}=FA(t),{themeClasses:p}=ln(t),m=Mr(t,"modelValue"),h=H0(t,ag,!1),g=Qu(t,e),w=Q.computed(()=>t.link!==!1&&g.isLink.value),v=Q.computed(()=>!t.disabled&&t.link!==!1&&(!!h||t.link||g.isClickable.value)),x=Q.computed(()=>({"aria-label":s(t.closeLabel),onClick(Y){Y.preventDefault(),Y.stopPropagation(),m.value=!1,a("click:close",Y)}}));function L(Y){var F;a("click",Y),v.value&&((F=g.navigate)==null||F.call(g,Y),h==null||h.toggle())}function k(Y){(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),L(Y))}return()=>{const Y=g.isLink.value?"a":t.tag,F=!!(t.appendIcon||t.appendAvatar),O=!!(F||c.append),W=!!(c.close||t.closable),G=!!(c.filter||t.filter)&&h,D=!!(t.prependIcon||t.prependAvatar),I=!!(D||c.prepend),M=!h||h.isSelected.value;return m.value&&Q.withDirectives(Q.createVNode(Y,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":G,"v-chip--pill":t.pill},p.value,i.value,M?o.value:void 0,A.value,d.value,u.value,l.value,r.value,h==null?void 0:h.selectedClass.value,t.class],style:[M?n.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:g.href.value,tabindex:v.value?0:void 0,onClick:L,onKeydown:v.value&&!w.value&&k},{default:()=>{var C;return[RA(v.value,"v-chip"),G&&Q.createVNode(Am,{key:"filter"},{default:()=>[Q.withDirectives(Q.createVNode("div",{class:"v-chip__filter"},[c.filter?Q.createVNode(pn,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},c.filter):Q.createVNode(Tr,{key:"filter-icon",icon:t.filterIcon},null)]),[[Q.vShow,h.isSelected.value]])]}),I&&Q.createVNode("div",{key:"prepend",class:"v-chip__prepend"},[c.prepend?Q.createVNode(pn,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},c.prepend):Q.createVNode(Q.Fragment,null,[t.prependIcon&&Q.createVNode(Tr,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&Q.createVNode(xa,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),Q.createVNode("div",{class:"v-chip__content","data-no-activator":""},[((C=c.default)==null?void 0:C.call(c,{isSelected:h==null?void 0:h.isSelected.value,selectedClass:h==null?void 0:h.selectedClass.value,select:h==null?void 0:h.select,toggle:h==null?void 0:h.toggle,value:h==null?void 0:h.value.value,disabled:t.disabled}))??t.text]),O&&Q.createVNode("div",{key:"append",class:"v-chip__append"},[c.append?Q.createVNode(pn,{key:"append-defaults",disabled:!F,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},c.append):Q.createVNode(Q.Fragment,null,[t.appendIcon&&Q.createVNode(Tr,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&Q.createVNode(xa,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),W&&Q.createVNode("button",Q.mergeProps({key:"close",class:"v-chip__close",type:"button"},x.value),[c.close?Q.createVNode(pn,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},c.close):Q.createVNode(Tr,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Q.resolveDirective("ripple"),v.value&&t.ripple,null]])}}}),gE=$e({color:String,...Xs(),...ir(),...Ui(),...ds(),...Cu(),...ed(),...ui(),...Yr(),...Jr()},"VSheet"),wE=Qt()({name:"VSheet",props:gE(),setup(t,f){let{slots:e}=f;const{themeClasses:a}=ln(t),{backgroundColorClasses:c,backgroundColorStyles:s}=xi(Q.toRef(t,"color")),{borderClasses:i}=Ma(t),{dimensionStyles:o}=zi(t),{elevationClasses:n}=$s(t),{locationStyles:r}=xu(t),{positionClasses:A}=td(t),{roundedClasses:d}=Qi(t);return jt(()=>Q.createVNode(t.tag,{class:["v-sheet",a.value,c.value,i.value,n.value,A.value,d.value,t.class],style:[s.value,o.value,r.value,t.style]},e)),{}}}),bE={__name:"Selected",props:{modelValue:{},modelModifiers:{}},emits:Q.mergeModels("save",["update:modelValue"]),setup(t,{emit:f}){const{advancedFiltersState:e}=La(),a=Q.inject("table_props"),c=Q.useModel(t,"modelValue"),s=(n,r)=>`${a.headers.find(d=>d.key===r).title}: ${n}`,i=n=>{c.value[n]=null,o("save")},o=f;return(n,r)=>(Q.openBlock(),Q.createBlock(wE,{class:"px-3"},{default:Q.withCtx(()=>[Q.createVNode(pE,{"selected-class":"text-primary",multiple:""},{default:Q.withCtx(()=>[(Q.openBlock(!0),Q.createElementBlock(Q.Fragment,null,Q.renderList(Q.unref(e),(A,d)=>(Q.openBlock(),Q.createBlock(gd,{class:"my-0",key:d,text:s(A,d),closable:"",value:A,active:"",density:"comfortable","onClick:close":u=>i(d)},null,8,["text","value","onClick:close"]))),128))]),_:1})]),_:1}))}},vE={class:"text-medium-emphasis ps-2"},yE={__name:"index",setup(t){const f=yo(),{advancedFiltersState:e}=La(),{setData:a}=f,c=Q.ref(!1),s=Q.ref({}),i=Q.inject("table_props"),o=()=>{s.value=Object.entries(s.value).filter(([r,A])=>A).reduce((r,[A,d])=>(r[A]=d,r),{}),a({table_id:i.id,name:"advancedFilters",value:{query:s.value}}),c.value=!1},n=Q.computed(()=>i.headers.filter(r=>r.advancedFilter!==!1&&!r.hidden));return Q.onMounted(()=>{s.value={...e.value}}),(r,A)=>{const d=bE;return Q.openBlock(),Q.createBlock(pd,{modelValue:Q.unref(c),"onUpdate:modelValue":A[1]||(A[1]=u=>Q.isRef(c)?c.value=u:null),"max-width":"500"},{activator:Q.withCtx(({props:u})=>[Q.createVNode(hn,Q.mergeProps(u,{variant:"text",icon:"mdi-filter-outline",density:"comfortable"}),null,16),Q.createVNode(d,{modelValue:Q.unref(s),"onUpdate:modelValue":A[0]||(A[0]=l=>Q.isRef(s)?s.value=l:null),onSave:o},null,8,["modelValue"])]),default:Q.withCtx(({isActive:u})=>[Q.createVNode(hd,{rounded:"lg"},{default:Q.withCtx(()=>[Q.createVNode(_u,{class:"d-flex justify-space-between align-center"},{default:Q.withCtx(()=>[Q.createElementVNode("div",vE,Q.toDisplayString(r.$t("$datatables.advancedFilters")),1),Q.createVNode(hn,{icon:"mdi-close",variant:"text",onClick:l=>u.value=!1},null,8,["onClick"])]),_:2},1024),Q.createVNode(Ia,{class:"mb-4"}),Q.createVNode(Pu,null,{default:Q.withCtx(()=>[(Q.openBlock(!0),Q.createElementBlock(Q.Fragment,null,Q.renderList(Q.unref(n),(l,p)=>(Q.openBlock(),Q.createBlock(tu,{modelValue:Q.unref(s)[l.key],"onUpdate:modelValue":m=>Q.unref(s)[l.key]=m,key:p,label:l.title,variant:"underlined",clearable:""},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]),_:1}),Q.createVNode(Ia,{class:"mt-2"}),Q.createVNode(dd,{class:"my-2 d-flex justify-end"},{default:Q.withCtx(()=>[Q.createVNode(hn,{class:"text-none",text:r.$t("$datatables.cancel"),onClick:l=>u.value=!1},null,8,["text","onClick"]),Q.createVNode(hn,{class:"text-none",color:"primary",text:r.$t("$datatables.submit"),variant:"flat",onClick:o},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"])}}},og=Ru.reduce((t,f)=>(t[f]={type:[Boolean,String,Number],default:!1},t),{}),Ag=Ru.reduce((t,f)=>{const e="offset"+Q.capitalize(f);return t[e]={type:[String,Number],default:null},t},{}),lg=Ru.reduce((t,f)=>{const e="order"+Q.capitalize(f);return t[e]={type:[String,Number],default:null},t},{}),Qp={col:Object.keys(og),offset:Object.keys(Ag),order:Object.keys(lg)};function EE(t,f,e){let a=t;if(!(e==null||e===!1)){if(f){const c=f.replace(t,"");a+=`-${c}`}return t==="col"&&(a="v-"+a),t==="col"&&(e===""||e===!0)||(a+=`-${e}`),a.toLowerCase()}}const BE=["auto","start","end","center","baseline","stretch"],CE=$e({cols:{type:[Boolean,String,Number],default:!1},...og,offset:{type:[String,Number],default:null},...Ag,order:{type:[String,Number],default:null},...lg,alignSelf:{type:String,default:null,validator:t=>BE.includes(t)},...ir(),...Yr()},"VCol"),Mp=Qt()({name:"VCol",props:CE(),setup(t,f){let{slots:e}=f;const a=Q.computed(()=>{const c=[];let s;for(s in Qp)Qp[s].forEach(o=>{const n=t[o],r=EE(s,o,n);r&&c.push(r)});const i=c.some(o=>o.startsWith("v-col-"));return c.push({"v-col":!i||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),c});return()=>{var c;return Q.h(t.tag,{class:[a.value,t.class],style:t.style},(c=e.default)==null?void 0:c.call(e))}}}),wd=["start","end","center"],ug=["space-between","space-around","space-evenly"];function bd(t,f){return Ru.reduce((e,a)=>{const c=t+Q.capitalize(a);return e[c]=f(),e},{})}const xE=[...wd,"baseline","stretch"],cg=t=>xE.includes(t),fg=bd("align",()=>({type:String,default:null,validator:cg})),IE=[...wd,...ug],dg=t=>IE.includes(t),hg=bd("justify",()=>({type:String,default:null,validator:dg})),SE=[...wd,...ug,"stretch"],pg=t=>SE.includes(t),mg=bd("alignContent",()=>({type:String,default:null,validator:pg})),Rp={align:Object.keys(fg),justify:Object.keys(hg),alignContent:Object.keys(mg)},QE={align:"align",justify:"justify",alignContent:"align-content"};function ME(t,f,e){let a=QE[t];if(e!=null){if(f){const c=f.replace(t,"");a+=`-${c}`}return a+=`-${e}`,a.toLowerCase()}}const RE=$e({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:cg},...fg,justify:{type:String,default:null,validator:dg},...hg,alignContent:{type:String,default:null,validator:pg},...mg,...ir(),...Yr()},"VRow"),LE=Qt()({name:"VRow",props:RE(),setup(t,f){let{slots:e}=f;const a=Q.computed(()=>{const c=[];let s;for(s in Rp)Rp[s].forEach(i=>{const o=t[i],n=ME(s,i,o);n&&c.push(n)});return c.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),c});return()=>{var c;return Q.h(t.tag,{class:["v-row",a.value,t.class],style:t.style},(c=e.default)==null?void 0:c.call(e))}}}),FE={__name:"index",setup(t){const f=Q.ref(null);return(e,a)=>{const c=yE,s=iE,i=by,o=K2,n=z2;return Q.openBlock(),Q.createBlock(LE,null,{default:Q.withCtx(()=>[Q.createVNode(Mp,{class:"d-flex align-center"},{default:Q.withCtx(()=>[Q.createVNode(c)]),_:1}),Q.createVNode(Mp,{class:"d-flex align-center justify-end"},{default:Q.withCtx(()=>[Q.createVNode(s,{ref_key:"columns",ref:f},null,512),Q.createVNode(i,{class:"me-4"}),Q.createVNode(o),Q.createVNode(n,{"component-refs":{columns:Q.unref(f)}},null,8,["component-refs"])]),_:1})]),_:1})}}};function gg(){yo();const{advancedFiltersState:t,headersState:f}=La(),e=Q.inject("table_props"),a=Q.ref(),c=Q.computed(()=>{const s=t.value;let i=a.value;return s&&Object.keys(s).forEach(o=>{s[o]&&(i=i.filter(n=>typeof n[o]=="number"?n[o]==s[o]:n[o].toLowerCase().includes(s[o].toLowerCase())))}),i});return Q.watch(e,s=>{a.value=s.data},{deep:!0,immediate:!0}),{tableData:a,filteredData:c}}const DE={__name:"ActionButtons",props:{params:{type:Object,default:()=>({})}},setup(t){const f=t,e=Q.computed(()=>{var s;const c=(s=f.params.column)==null?void 0:s.cellRendererFrameworkOptions;return c?c(f.params):{}}),a=Q.computed(()=>{var c;return((c=e.value)==null?void 0:c.buttons)??[{title:"No Items"}]});return(c,s)=>(Q.openBlock(),Q.createBlock(od,{class:"action-buttons"},{activator:Q.withCtx(({props:i})=>[Q.createVNode(hn,Q.mergeProps({icon:"mdi-dots-vertical",variant:"text"},i,{size:"small"}),null,16)]),default:Q.withCtx(()=>[Q.createVNode(PA,null,{default:Q.withCtx(()=>[(Q.openBlock(!0),Q.createElementBlock(Q.Fragment,null,Q.renderList(Q.unref(a),(i,o)=>(Q.openBlock(),Q.createBlock(Zs,Q.mergeProps({ref_for:!0},i,{key:o}),null,16))),128))]),_:1})]),_:1}))}},_E={__name:"Button",props:{params:{type:Object,default:()=>({})}},setup(t){const f=t,e=Q.computed(()=>{var c;const a=(c=f.params.column)==null?void 0:c.cellRendererFrameworkOptions;return a?a(f.params):{}});return(a,c)=>(Q.openBlock(),Q.createBlock(hn,Q.normalizeProps(Q.guardReactiveProps(Q.unref(e))),null,16))}},PE={__name:"Link",props:{params:{type:Object,default:()=>({})}},setup(t){const f=t,e=Q.computed(()=>{var c;const a=(c=f.params.column)==null?void 0:c.cellRendererFrameworkOptions;return a?a(f.params):{}});return(a,c)=>{const s=Q.resolveComponent("RouterLink");return Q.unref(e).to?(Q.openBlock(),Q.createBlock(s,Q.normalizeProps(Q.mergeProps({key:0},Q.unref(e))),{default:Q.withCtx(()=>[Q.createTextVNode(Q.toDisplayString(Q.unref(e).text),1)]),_:1},16)):(Q.openBlock(),Q.createElementBlock("a",Q.normalizeProps(Q.mergeProps({key:1},Q.unref(e))),Q.toDisplayString(Q.unref(e).text),17))}}};function wg(){return{ActionButtons:DE,Button:_E,Link:PE}}function kE(){const t=Q.ref([]);Q.onBeforeUpdate(()=>t.value=[]);function f(e,a){t.value[a]=e}return{refs:t,updateRef:f}}const NE=$e({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:nr,default:"$first"},prevIcon:{type:nr,default:"$prev"},nextIcon:{type:nr,default:"$next"},lastIcon:{type:nr,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Xs(),...ir(),...li(),...ds(),...ui(),...vo(),...Yr({tag:"nav"}),...Jr(),...hs({variant:"text"})},"VPagination"),Lp=Qt()({name:"VPagination",props:NE(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,f){let{slots:e,emit:a}=f;const c=Mr(t,"modelValue"),{t:s,n:i}=ps(),{isRtl:o}=ea(),{themeClasses:n}=ln(t),{width:r}=Ra(),A=Q.shallowRef(-1);Yi(void 0,{scoped:!0});const{resizeRef:d}=fo(F=>{if(!F.length)return;const{target:O,contentRect:W}=F[0],G=O.querySelector(".v-pagination__list > *");if(!G)return;const D=W.width,I=G.offsetWidth+parseFloat(getComputedStyle(G).marginRight)*2;A.value=m(D,I)}),u=Q.computed(()=>parseInt(t.length,10)),l=Q.computed(()=>parseInt(t.start,10)),p=Q.computed(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):A.value>=0?A.value:m(r.value,58));function m(F,O){const W=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((F-O*W)/O).toFixed(2)))}const h=Q.computed(()=>{if(u.value<=0||isNaN(u.value)||u.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[c.value];if(u.value<=p.value)return yl(u.value,l.value);const F=p.value%2===0,O=F?p.value/2:Math.floor(p.value/2),W=F?O:O+1,G=u.value-O;if(W-c.value>=0)return[...yl(Math.max(1,p.value-1),l.value),t.ellipsis,u.value];if(c.value-G>=(F?1:0)){const D=p.value-1,I=u.value-D+l.value;return[l.value,t.ellipsis,...yl(D,I)]}else{const D=Math.max(1,p.value-3),I=D===1?c.value:c.value-Math.ceil(D/2)+l.value;return[l.value,t.ellipsis,...yl(D,I),t.ellipsis,u.value]}});function g(F,O,W){F.preventDefault(),c.value=O,W&&a(W,O)}const{refs:w,updateRef:v}=kE();Yi({VPaginationBtn:{color:Q.toRef(t,"color"),border:Q.toRef(t,"border"),density:Q.toRef(t,"density"),size:Q.toRef(t,"size"),variant:Q.toRef(t,"variant"),rounded:Q.toRef(t,"rounded"),elevation:Q.toRef(t,"elevation")}});const x=Q.computed(()=>h.value.map((F,O)=>{const W=G=>v(G,O);if(typeof F=="string")return{isActive:!1,key:`ellipsis-${O}`,page:F,props:{ref:W,ellipsis:!0,icon:!0,disabled:!0}};{const G=F===c.value;return{isActive:G,key:F,page:i(F),props:{ref:W,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:G?t.activeColor:t.color,"aria-current":G,"aria-label":s(G?t.currentPageAriaLabel:t.pageAriaLabel,F),onClick:D=>g(D,F)}}}})),L=Q.computed(()=>{const F=!!t.disabled||c.value<=l.value,O=!!t.disabled||c.value>=l.value+u.value-1;return{first:t.showFirstLastPage?{icon:o.value?t.lastIcon:t.firstIcon,onClick:W=>g(W,l.value,"first"),disabled:F,"aria-label":s(t.firstAriaLabel),"aria-disabled":F}:void 0,prev:{icon:o.value?t.nextIcon:t.prevIcon,onClick:W=>g(W,c.value-1,"prev"),disabled:F,"aria-label":s(t.previousAriaLabel),"aria-disabled":F},next:{icon:o.value?t.prevIcon:t.nextIcon,onClick:W=>g(W,c.value+1,"next"),disabled:O,"aria-label":s(t.nextAriaLabel),"aria-disabled":O},last:t.showFirstLastPage?{icon:o.value?t.firstIcon:t.lastIcon,onClick:W=>g(W,l.value+u.value-1,"last"),disabled:O,"aria-label":s(t.lastAriaLabel),"aria-disabled":O}:void 0}});function k(){var O;const F=c.value-l.value;(O=w.value[F])==null||O.$el.focus()}function Y(F){F.key===Fh.left&&!t.disabled&&c.value>+t.start?(c.value=c.value-1,Q.nextTick(k)):F.key===Fh.right&&!t.disabled&&c.value<l.value+u.value-1&&(c.value=c.value+1,Q.nextTick(k))}return jt(()=>Q.createVNode(t.tag,{ref:d,class:["v-pagination",n.value,t.class],style:t.style,role:"navigation","aria-label":s(t.ariaLabel),onKeydown:Y,"data-test":"v-pagination-root"},{default:()=>[Q.createVNode("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&Q.createVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[e.first?e.first(L.value.first):Q.createVNode(hn,Q.mergeProps({_as:"VPaginationBtn"},L.value.first),null)]),Q.createVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[e.prev?e.prev(L.value.prev):Q.createVNode(hn,Q.mergeProps({_as:"VPaginationBtn"},L.value.prev),null)]),x.value.map((F,O)=>Q.createVNode("li",{key:F.key,class:["v-pagination__item",{"v-pagination__item--is-active":F.isActive}],"data-test":"v-pagination-item"},[e.item?e.item(F):Q.createVNode(hn,Q.mergeProps({_as:"VPaginationBtn"},F.props),{default:()=>[F.page]})])),Q.createVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[e.next?e.next(L.value.next):Q.createVNode(hn,Q.mergeProps({_as:"VPaginationBtn"},L.value.next),null)]),t.showFirstLastPage&&Q.createVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[e.last?e.last(L.value.last):Q.createVNode(hn,Q.mergeProps({_as:"VPaginationBtn"},L.value.last),null)])])]})),{}}}),jE=$e({renderless:Boolean,...ir()},"VVirtualScrollItem"),TE=Qt()({name:"VVirtualScrollItem",inheritAttrs:!1,props:jE(),emits:{"update:height":t=>!0},setup(t,f){let{attrs:e,emit:a,slots:c}=f;const{resizeRef:s,contentRect:i}=fo(void 0,"border");Q.watch(()=>{var o;return(o=i.value)==null?void 0:o.height},o=>{o!=null&&a("update:height",o)}),jt(()=>{var o,n;return t.renderless?Q.createVNode(Q.Fragment,null,[(o=c.default)==null?void 0:o.call(c,{itemRef:s})]):Q.createVNode("div",Q.mergeProps({ref:s,class:["v-virtual-scroll__item",t.class],style:t.style},e),[(n=c.default)==null?void 0:n.call(c)])})}}),YE=-1,OE=1,Wc=100,GE=$e({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function WE(t,f){const e=Ra(),a=Q.shallowRef(0);Q.watchEffect(()=>{a.value=parseFloat(t.itemHeight||0)});const c=Q.shallowRef(0),s=Q.shallowRef(Math.ceil((parseInt(t.height)||e.height.value)/(a.value||16))||1),i=Q.shallowRef(0),o=Q.shallowRef(0),n=Q.ref(),r=Q.ref();let A=0;const{resizeRef:d,contentRect:u}=fo();Q.watchEffect(()=>{d.value=n.value});const l=Q.computed(()=>{var B;return n.value===document.documentElement?e.height.value:((B=u.value)==null?void 0:B.height)||parseInt(t.height)||0}),p=Q.computed(()=>!!(n.value&&r.value&&l.value&&a.value));let m=Array.from({length:f.value.length}),h=Array.from({length:f.value.length});const g=Q.shallowRef(0);let w=-1;function v(B){return m[B]||a.value}const x=Yb(()=>{const B=performance.now();h[0]=0;const S=f.value.length;for(let T=1;T<=S-1;T++)h[T]=(h[T-1]||0)+v(T-1);g.value=Math.max(g.value,performance.now()-B)},g),L=Q.watch(p,B=>{B&&(L(),A=r.value.offsetTop,x.immediate(),C(),~w&&Q.nextTick(()=>{An&&window.requestAnimationFrame(()=>{y(w),w=-1})}))});Q.onScopeDispose(()=>{x.clear()});function k(B,S){const T=m[B],R=a.value;a.value=R?Math.min(a.value,S):S,(T!==S||R!==a.value)&&(m[B]=S,x())}function Y(B){return B=Ci(B,0,f.value.length-1),h[B]||0}function F(B){return VE(h,B)}let O=0,W=0,G=0;Q.watch(l,(B,S)=>{S&&(C(),B<S&&requestAnimationFrame(()=>{W=0,C()}))});function D(){if(!n.value||!r.value)return;const B=n.value.scrollTop,S=performance.now();S-G>500?(W=Math.sign(B-O),A=r.value.offsetTop):W=B-O,O=B,G=S,C()}function I(){!n.value||!r.value||(W=0,G=0,C())}let M=-1;function C(){cancelAnimationFrame(M),M=requestAnimationFrame(b)}function b(){if(!n.value||!l.value)return;const B=O-A,S=Math.sign(W),T=Math.max(0,B-Wc),R=Ci(F(T),0,f.value.length),V=B+l.value+Wc,U=Ci(F(V)+1,R+1,f.value.length);if((S!==YE||R<c.value)&&(S!==OE||U>s.value)){const q=Y(c.value)-Y(R),j=Y(U)-Y(s.value);Math.max(q,j)>Wc?(c.value=R,s.value=U):(R<=0&&(c.value=R),U>=f.value.length&&(s.value=U))}i.value=Y(c.value),o.value=Y(f.value.length)-Y(s.value)}function y(B){const S=Y(B);!n.value||B&&!S?w=B:n.value.scrollTop=S}const E=Q.computed(()=>f.value.slice(c.value,s.value).map((B,S)=>({raw:B,index:S+c.value})));return Q.watch(f,()=>{m=Array.from({length:f.value.length}),h=Array.from({length:f.value.length}),x.immediate(),C()},{deep:!0}),{containerRef:n,markerRef:r,computedItems:E,paddingTop:i,paddingBottom:o,scrollToIndex:y,handleScroll:D,handleScrollend:I,handleItemResize:k}}function VE(t,f){let e=t.length-1,a=0,c=0,s=null,i=-1;if(t[e]<f)return e;for(;a<=e;)if(c=a+e>>1,s=t[c],s>f)e=c-1;else if(s<f)i=c,a=c+1;else return s===f?c:a;return i}const HE=$e({items:{type:Array,default:()=>[]},renderless:Boolean,...GE(),...ir(),...Ui()},"VVirtualScroll"),UE=Qt()({name:"VVirtualScroll",props:HE(),setup(t,f){let{slots:e}=f;const a=rn("VVirtualScroll"),{dimensionStyles:c}=zi(t),{containerRef:s,markerRef:i,handleScroll:o,handleScrollend:n,handleItemResize:r,scrollToIndex:A,paddingTop:d,paddingBottom:u,computedItems:l}=WE(t,Q.toRef(t,"items"));return Ca(()=>t.renderless,()=>{function p(){var g,w;const h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";s.value===document.documentElement?(document[h]("scroll",o,{passive:!0}),document[h]("scrollend",n)):((g=s.value)==null||g[h]("scroll",o,{passive:!0}),(w=s.value)==null||w[h]("scrollend",n))}Q.onMounted(()=>{s.value=G0(a.vnode.el,!0),p(!0)}),Q.onScopeDispose(p)}),jt(()=>{const p=l.value.map(m=>Q.createVNode(TE,{key:m.index,renderless:t.renderless,"onUpdate:height":h=>r(m.index,h)},{default:h=>{var g;return(g=e.default)==null?void 0:g.call(e,{item:m.raw,index:m.index,...h})}}));return t.renderless?Q.createVNode(Q.Fragment,null,[Q.createVNode("div",{ref:i,class:"v-virtual-scroll__spacer",style:{paddingTop:Wt(d.value)}},null),p,Q.createVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Wt(u.value)}},null)]):Q.createVNode("div",{ref:s,class:["v-virtual-scroll",t.class],onScrollPassive:o,onScrollend:n,style:[c.value,t.style]},[Q.createVNode("div",{ref:i,class:"v-virtual-scroll__container",style:{paddingTop:Wt(d.value),paddingBottom:Wt(u.value)}},[p])])}),{scrollToIndex:A}}});function zE(t,f){const e=Q.shallowRef(!1);let a;function c(o){cancelAnimationFrame(a),e.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{e.value=!1})})}async function s(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(e.value){const n=Q.watch(e,()=>{n(),o()})}else o()})}async function i(o){var A,d;if(o.key==="Tab"&&((A=f.value)==null||A.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const n=(d=t.value)==null?void 0:d.$el;if(!n)return;(o.key==="Home"||o.key==="End")&&n.scrollTo({top:o.key==="Home"?0:n.scrollHeight,behavior:"smooth"}),await s();const r=n.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const u=n.getBoundingClientRect().top;for(const l of r)if(l.getBoundingClientRect().top>=u){l.focus();break}}else{const u=n.getBoundingClientRect().bottom;for(const l of[...r].reverse())if(l.getBoundingClientRect().bottom<=u){l.focus();break}}}return{onListScroll:c,onListKeydown:i}}const KE=$e({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:nr,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...ym({itemChildren:!1})},"Select"),JE=$e({...KE(),...Qa(Nm({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),..._A({transition:{component:rd}})},"VSelect"),bg=Qt()({name:"VSelect",props:JE(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,f){let{slots:e}=f;const{t:a}=ps(),c=Q.ref(),s=Q.ref(),i=Q.ref(),o=Mr(t,"menu"),n=Q.computed({get:()=>o.value,set:E=>{var B;o.value&&!E&&((B=s.value)!=null&&B.ΨopenChildren)||(o.value=E)}}),{items:r,transformIn:A,transformOut:d}=h2(t),u=Mr(t,"modelValue",[],E=>A(E===null?[null]:bn(E)),E=>{const B=d(E);return t.multiple?B:B[0]??null}),l=Q.computed(()=>typeof t.counterValue=="function"?t.counterValue(u.value):typeof t.counterValue=="number"?t.counterValue:u.value.length),p=km(),m=Q.computed(()=>u.value.map(E=>E.value)),h=Q.shallowRef(!1),g=Q.computed(()=>n.value?t.closeText:t.openText);let w="",v;const x=Q.computed(()=>t.hideSelected?r.value.filter(E=>!u.value.some(B=>t.valueComparator(B,E))):r.value),L=Q.computed(()=>t.hideNoData&&!x.value.length||t.readonly||(p==null?void 0:p.isReadonly.value)),k=Q.computed(()=>{var E;return{...t.menuProps,activatorProps:{...((E=t.menuProps)==null?void 0:E.activatorProps)||{},"aria-haspopup":"listbox"}}}),Y=Q.ref(),{onListScroll:F,onListKeydown:O}=zE(Y,c);function W(E){t.openOnClear&&(n.value=!0)}function G(){L.value||(n.value=!n.value)}function D(E){var V,U;if(!E.key||t.readonly||p!=null&&p.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(E.key)&&E.preventDefault(),["Enter","ArrowDown"," "].includes(E.key)&&(n.value=!0),["Escape","Tab"].includes(E.key)&&(n.value=!1),E.key==="Home"?(V=Y.value)==null||V.focus("first"):E.key==="End"&&((U=Y.value)==null||U.focus("last"));const B=1e3;function S(q){const j=q.key.length===1,Z=!q.ctrlKey&&!q.metaKey&&!q.altKey;return j&&Z}if(t.multiple||!S(E))return;const T=performance.now();T-v>B&&(w=""),w+=E.key.toLowerCase(),v=T;const R=r.value.find(q=>q.title.toLowerCase().startsWith(w));if(R!==void 0){u.value=[R];const q=x.value.indexOf(R);An&&window.requestAnimationFrame(()=>{var j;q>=0&&((j=i.value)==null||j.scrollToIndex(q))})}}function I(E){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!E.props.disabled)if(t.multiple){const S=u.value.findIndex(R=>t.valueComparator(R.value,E.value)),T=B??!~S;if(~S){const R=T?[...u.value,E]:[...u.value];R.splice(S,1),u.value=R}else T&&(u.value=[...u.value,E])}else{const S=B!==!1;u.value=S?[E]:[],Q.nextTick(()=>{n.value=!1})}}function M(E){var B;(B=Y.value)!=null&&B.$el.contains(E.relatedTarget)||(n.value=!1)}function C(){var E;h.value&&((E=c.value)==null||E.focus())}function b(E){h.value=!0}function y(E){if(E==null)u.value=[];else if(zl(c.value,":autofill")||zl(c.value,":-webkit-autofill")){const B=r.value.find(S=>S.title===E);B&&I(B)}else c.value&&(c.value.value="")}return Q.watch(n,()=>{if(!t.hideSelected&&n.value&&u.value.length){const E=x.value.findIndex(B=>u.value.some(S=>t.valueComparator(S.value,B.value)));An&&window.requestAnimationFrame(()=>{var B;E>=0&&((B=i.value)==null||B.scrollToIndex(E))})}}),Q.watch(()=>t.items,(E,B)=>{n.value||h.value&&!B.length&&E.length&&(n.value=!0)}),jt(()=>{const E=!!(t.chips||e.chip),B=!!(!t.hideNoData||x.value.length||e["prepend-item"]||e["append-item"]||e["no-data"]),S=u.value.length>0,T=tu.filterProps(t),R=S||!h.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return Q.createVNode(tu,Q.mergeProps({ref:c},T,{modelValue:u.value.map(V=>V.props.value).join(", "),"onUpdate:modelValue":y,focused:h.value,"onUpdate:focused":V=>h.value=V,validationValue:u.externalValue,counterValue:l.value,dirty:S,class:["v-select",{"v-select--active-menu":n.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":u.value.length,"v-select--selection-slot":!!e.selection},t.class],style:t.style,inputmode:"none",placeholder:R,"onClick:clear":W,"onMousedown:control":G,onBlur:M,onKeydown:D,"aria-label":a(g.value),title:a(g.value)}),{...e,default:()=>Q.createVNode(Q.Fragment,null,[Q.createVNode(od,Q.mergeProps({ref:s,modelValue:n.value,"onUpdate:modelValue":V=>n.value=V,activator:"parent",contentClass:"v-select__content",disabled:L.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:C},k.value),{default:()=>[B&&Q.createVNode(PA,Q.mergeProps({ref:Y,selected:m.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:V=>V.preventDefault(),onKeydown:O,onFocusin:b,onScrollPassive:F,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var V,U,q;return[(V=e["prepend-item"])==null?void 0:V.call(e),!x.value.length&&!t.hideNoData&&(((U=e["no-data"])==null?void 0:U.call(e))??Q.createVNode(Zs,{title:a(t.noDataText)},null)),Q.createVNode(UE,{ref:i,renderless:!0,items:x.value},{default:j=>{var $;let{item:Z,index:N,itemRef:P}=j;const K=Q.mergeProps(Z.props,{ref:P,key:N,onClick:()=>I(Z,null)});return(($=e.item)==null?void 0:$.call(e,{item:Z,index:N,props:K}))??Q.createVNode(Zs,Q.mergeProps(K,{role:"option"}),{prepend:se=>{let{isSelected:ee}=se;return Q.createVNode(Q.Fragment,null,[t.multiple&&!t.hideSelected?Q.createVNode(po,{key:Z.value,modelValue:ee,ripple:!1,tabindex:"-1"},null):void 0,Z.props.prependAvatar&&Q.createVNode(xa,{image:Z.props.prependAvatar},null),Z.props.prependIcon&&Q.createVNode(Tr,{icon:Z.props.prependIcon},null)])}})}}),(q=e["append-item"])==null?void 0:q.call(e)]}})]}),u.value.map((V,U)=>{function q(P){P.stopPropagation(),P.preventDefault(),I(V,!1)}const j={"onClick:close":q,onKeydown(P){P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.stopPropagation(),q(P))},onMousedown(P){P.preventDefault(),P.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Z=E?!!e.chip:!!e.selection,N=Z?_0(E?e.chip({item:V,index:U,props:j}):e.selection({item:V,index:U})):void 0;if(!(Z&&!N))return Q.createVNode("div",{key:V.value,class:"v-select__selection"},[E?e.chip?Q.createVNode(pn,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:V.title}}},{default:()=>[N]}):Q.createVNode(gd,Q.mergeProps({key:"chip",closable:t.closableChips,size:"small",text:V.title,disabled:V.props.disabled},j),null):N??Q.createVNode("span",{class:"v-select__selection-text"},[V.title,t.multiple&&U<u.value.length-1&&Q.createVNode("span",{class:"v-select__selection-comma"},[Q.createTextVNode(",")])])])})]),"append-inner":function(){var j;for(var V=arguments.length,U=new Array(V),q=0;q<V;q++)U[q]=arguments[q];return Q.createVNode(Q.Fragment,null,[(j=e["append-inner"])==null?void 0:j.call(e,...U),t.menuIcon?Q.createVNode(Tr,{class:"v-select__menu-icon",icon:t.menuIcon},null):void 0])}})}),Fu({isFocused:h,menu:n,select:I},c)}}),vg=$e({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),yg=Symbol.for("vuetify:data-table-pagination");function Eg(t){const f=Mr(t,"page",void 0,a=>+(a??1)),e=Mr(t,"itemsPerPage",void 0,a=>+(a??10));return{page:f,itemsPerPage:e}}function Bg(t){const{page:f,itemsPerPage:e,itemsLength:a}=t,c=Q.computed(()=>e.value===-1?0:e.value*(f.value-1)),s=Q.computed(()=>e.value===-1?a.value:Math.min(a.value,c.value+e.value)),i=Q.computed(()=>e.value===-1||a.value===0?1:Math.ceil(a.value/e.value));Q.watchEffect(()=>{f.value>i.value&&(f.value=i.value)});function o(u){e.value=u,f.value=1}function n(){f.value=Ci(f.value+1,1,i.value)}function r(){f.value=Ci(f.value-1,1,i.value)}function A(u){f.value=Ci(u,1,i.value)}const d={page:f,itemsPerPage:e,startIndex:c,stopIndex:s,pageCount:i,itemsLength:a,nextPage:n,prevPage:r,setPage:A,setItemsPerPage:o};return Q.provide(yg,d),d}function ZE(){const t=Q.inject(yg);if(!t)throw new Error("Missing pagination!");return t}function qE(t){const f=rn("usePaginatedItems"),{items:e,startIndex:a,stopIndex:c,itemsPerPage:s}=t,i=Q.computed(()=>s.value<=0?e.value:e.value.slice(a.value,c.value));return Q.watch(i,o=>{f.emit("update:currentItems",o)}),{paginatedItems:i}}const vd=$e({prevIcon:{type:nr,default:"$prev"},nextIcon:{type:nr,default:"$next"},firstIcon:{type:nr,default:"$first"},lastIcon:{type:nr,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),ou=Qt()({name:"VDataTableFooter",props:vd(),setup(t,f){let{slots:e}=f;const{t:a}=ps(),{page:c,pageCount:s,startIndex:i,stopIndex:o,itemsLength:n,itemsPerPage:r,setItemsPerPage:A}=ZE(),d=Q.computed(()=>t.itemsPerPageOptions.map(u=>typeof u=="number"?{value:u,title:u===-1?a("$vuetify.dataFooter.itemsPerPageAll"):String(u)}:{...u,title:isNaN(Number(u.title))?a(u.title):u.title}));return jt(()=>{var l;const u=Lp.filterProps(t);return Q.createVNode("div",{class:"v-data-table-footer"},[(l=e.prepend)==null?void 0:l.call(e),Q.createVNode("div",{class:"v-data-table-footer__items-per-page"},[Q.createVNode("span",null,[a(t.itemsPerPageText)]),Q.createVNode(bg,{items:d.value,modelValue:r.value,"onUpdate:modelValue":p=>A(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),Q.createVNode("div",{class:"v-data-table-footer__info"},[Q.createVNode("div",null,[a(t.pageText,n.value?i.value+1:0,o.value,n.value)])]),Q.createVNode("div",{class:"v-data-table-footer__pagination"},[Q.createVNode(Lp,Q.mergeProps({modelValue:c.value,"onUpdate:modelValue":p=>c.value=p,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:s.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},u),null)])])}),{}}}),Au=uv({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,f)=>{let{slots:e}=f;const a=t.tag??"td";return Q.createVNode(a,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:Wt(t.height),width:Wt(t.width),maxWidth:Wt(t.maxWidth),left:Wt(t.fixedOffset||null)}},{default:()=>{var c;return[(c=e.default)==null?void 0:c.call(e)]}})}),XE=$e({headers:Array},"DataTable-header"),Cg=Symbol.for("vuetify:data-table-headers"),xg={title:"",sortable:!1},$E={...xg,width:48};function e5(){const f=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(e=>({element:e,priority:0}));return{enqueue:(e,a)=>{let c=!1;for(let s=0;s<f.length;s++)if(f[s].priority>a){f.splice(s,0,{element:e,priority:a}),c=!0;break}c||f.push({element:e,priority:a})},size:()=>f.length,count:()=>{let e=0;if(!f.length)return 0;const a=Math.floor(f[0].priority);for(let c=0;c<f.length;c++)Math.floor(f[c].priority)===a&&(e+=1);return e},dequeue:()=>f.shift()}}function Ff(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)f.push(t);else for(const e of t.children)Ff(e,f);return f}function Ig(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const e of t)e.key&&f.add(e.key),e.children&&Ig(e.children,f);return f}function t5(t){if(t.key){if(t.key==="data-table-group")return xg;if(["data-table-expand","data-table-select"].includes(t.key))return $E}}function yd(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(f,...t.children.map(e=>yd(e,f+1))):f}function r5(t){let f=!1;function e(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s)if(i&&(s.fixed=!0),s.fixed)if(s.children)for(let o=s.children.length-1;o>=0;o--)e(s.children[o],!0);else f?isNaN(+s.width)&&N0(`Multiple fixed columns should have a static width (key: ${s.key})`):s.lastFixed=!0,f=!0;else if(s.children)for(let o=s.children.length-1;o>=0;o--)e(s.children[o]);else f=!1}for(let s=t.length-1;s>=0;s--)e(t[s]);function a(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!s)return i;if(s.children){s.fixedOffset=i;for(const o of s.children)i=a(o,i)}else s.fixed&&(s.fixedOffset=i,i+=parseFloat(s.width||"0")||0);return i}let c=0;for(const s of t)c=a(s,c)}function n5(t,f){const e=[];let a=0;const c=e5(t);for(;c.size()>0;){let i=c.count();const o=[];let n=1;for(;i>0;){const{element:r,priority:A}=c.dequeue(),d=f-a-yd(r);if(o.push({...r,rowspan:d??1,colspan:r.children?Ff(r).length:1}),r.children)for(const u of r.children){const l=A%1+n/Math.pow(10,a+2);c.enqueue(u,a+d+l)}n+=1,i-=1}a+=1,e.push(o)}return{columns:t.map(i=>Ff(i)).flat(),headers:e}}function Sg(t){const f=[];for(const e of t){const a={...t5(e),...e},c=a.key??(typeof a.value=="string"?a.value:null),s=a.value??c??null,i={...a,key:c,value:s,sortable:a.sortable??(a.key!=null||!!a.sort),children:a.children?Sg(a.children):void 0};f.push(i)}return f}function Qg(t,f){const e=Q.ref([]),a=Q.ref([]),c=Q.ref({}),s=Q.ref({}),i=Q.ref({});Q.watchEffect(()=>{var m,h,g;const r=(t.headers||Object.keys(t.items[0]??{}).map(w=>({key:w,title:Q.capitalize(w)}))).slice(),A=Ig(r);(m=f==null?void 0:f.groupBy)!=null&&m.value.length&&!A.has("data-table-group")&&r.unshift({key:"data-table-group",title:"Group"}),(h=f==null?void 0:f.showSelect)!=null&&h.value&&!A.has("data-table-select")&&r.unshift({key:"data-table-select"}),(g=f==null?void 0:f.showExpand)!=null&&g.value&&!A.has("data-table-expand")&&r.push({key:"data-table-expand"});const d=Sg(r);r5(d);const u=Math.max(...d.map(w=>yd(w)))+1,l=n5(d,u);e.value=l.headers,a.value=l.columns;const p=l.headers.flat(1);for(const w of p)w.key&&(w.sortable&&(w.sort&&(c.value[w.key]=w.sort),w.sortRaw&&(s.value[w.key]=w.sortRaw)),w.filter&&(i.value[w.key]=w.filter))});const o={headers:e,columns:a,sortFunctions:c,sortRawFunctions:s,filterFunctions:i};return Q.provide(Cg,o),o}function ku(){const t=Q.inject(Cg);if(!t)throw new Error("Missing headers!");return t}const i5={showSelectAll:!1,allSelected:()=>[],select:t=>{var a;let{items:f,value:e}=t;return new Set(e?[(a=f[0])==null?void 0:a.value]:[])},selectAll:t=>{let{selected:f}=t;return f}},Mg={showSelectAll:!0,allSelected:t=>{let{currentPage:f}=t;return f},select:t=>{let{items:f,value:e,selected:a}=t;for(const c of f)e?a.add(c.value):a.delete(c.value);return a},selectAll:t=>{let{value:f,currentPage:e,selected:a}=t;return Mg.select({items:e,value:f,selected:a})}},Rg={showSelectAll:!0,allSelected:t=>{let{allItems:f}=t;return f},select:t=>{let{items:f,value:e,selected:a}=t;for(const c of f)e?a.add(c.value):a.delete(c.value);return a},selectAll:t=>{let{value:f,allItems:e,selected:a}=t;return Rg.select({items:e,value:f,selected:a})}},s5=$e({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:qs}},"DataTable-select"),Lg=Symbol.for("vuetify:data-table-selection");function Fg(t,f){let{allItems:e,currentPage:a}=f;const c=Mr(t,"modelValue",t.modelValue,g=>new Set(bn(g).map(w=>{var v;return((v=e.value.find(x=>t.valueComparator(w,x.value)))==null?void 0:v.value)??w})),g=>[...g.values()]),s=Q.computed(()=>e.value.filter(g=>g.selectable)),i=Q.computed(()=>a.value.filter(g=>g.selectable)),o=Q.computed(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return i5;case"all":return Rg;case"page":default:return Mg}});function n(g){return bn(g).every(w=>c.value.has(w.value))}function r(g){return bn(g).some(w=>c.value.has(w.value))}function A(g,w){const v=o.value.select({items:g,value:w,selected:new Set(c.value)});c.value=v}function d(g){A([g],!n([g]))}function u(g){const w=o.value.selectAll({value:g,allItems:s.value,currentPage:i.value,selected:new Set(c.value)});c.value=w}const l=Q.computed(()=>c.value.size>0),p=Q.computed(()=>{const g=o.value.allSelected({allItems:s.value,currentPage:i.value});return!!g.length&&n(g)}),m=Q.computed(()=>o.value.showSelectAll),h={toggleSelect:d,select:A,selectAll:u,isSelected:n,isSomeSelected:r,someSelected:l,allSelected:p,showSelectAll:m};return Q.provide(Lg,h),h}function Nu(){const t=Q.inject(Lg);if(!t)throw new Error("Missing selection!");return t}const a5=$e({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Dg=Symbol.for("vuetify:data-table-sort");function _g(t){const f=Mr(t,"sortBy"),e=Q.toRef(t,"mustSort"),a=Q.toRef(t,"multiSort");return{sortBy:f,mustSort:e,multiSort:a}}function Pg(t){const{sortBy:f,mustSort:e,multiSort:a,page:c}=t,s=n=>{if(n.key==null)return;let r=f.value.map(d=>({...d}))??[];const A=r.find(d=>d.key===n.key);A?A.order==="desc"?e.value?A.order="asc":r=r.filter(d=>d.key!==n.key):A.order="desc":a.value?r=[...r,{key:n.key,order:"asc"}]:r=[{key:n.key,order:"asc"}],f.value=r,c&&(c.value=1)};function i(n){return!!f.value.find(r=>r.key===n.key)}const o={sortBy:f,toggleSort:s,isSorted:i};return Q.provide(Dg,o),o}function kg(){const t=Q.inject(Dg);if(!t)throw new Error("Missing sort!");return t}function o5(t,f,e,a){const c=ps();return{sortedItems:Q.computed(()=>{var i,o;return e.value.length?A5(f.value,e.value,c.current.value,{transform:a==null?void 0:a.transform,sortFunctions:{...t.customKeySort,...(i=a==null?void 0:a.sortFunctions)==null?void 0:i.value},sortRawFunctions:(o=a==null?void 0:a.sortRawFunctions)==null?void 0:o.value}):f.value})}}function A5(t,f,e,a){const c=new Intl.Collator(e,{sensitivity:"accent",usage:"sort"});return t.map(i=>[i,a!=null&&a.transform?a.transform(i):i]).sort((i,o)=>{var n,r;for(let A=0;A<f.length;A++){let d=!1;const u=f[A].key,l=f[A].order??"asc";if(l===!1)continue;let p=EA(i[1],u),m=EA(o[1],u),h=i[0].raw,g=o[0].raw;if(l==="desc"&&([p,m]=[m,p],[h,g]=[g,h]),(n=a==null?void 0:a.sortRawFunctions)!=null&&n[u]){const w=a.sortRawFunctions[u](h,g);if(w==null)continue;if(d=!0,w)return w}if((r=a==null?void 0:a.sortFunctions)!=null&&r[u]){const w=a.sortFunctions[u](p,m);if(w==null)continue;if(d=!0,w)return w}if(!d){if(p instanceof Date&&m instanceof Date)return p.getTime()-m.getTime();if([p,m]=[p,m].map(w=>w!=null?w.toString().toLocaleLowerCase():w),p!==m)return El(p)&&El(m)?0:El(p)?-1:El(m)?1:!isNaN(p)&&!isNaN(m)?Number(p)-Number(m):c.compare(p,m)}}return 0}).map(i=>{let[o]=i;return o})}const Ng=$e({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:nr,default:"$sortAsc"},sortDescIcon:{type:nr,default:"$sortDesc"},headerProps:{type:Object},...Lu(),...Iu()},"VDataTableHeaders"),lu=Qt()({name:"VDataTableHeaders",props:Ng(),setup(t,f){let{slots:e}=f;const{t:a}=ps(),{toggleSort:c,sortBy:s,isSorted:i}=kg(),{someSelected:o,allSelected:n,selectAll:r,showSelectAll:A}=Nu(),{columns:d,headers:u}=ku(),{loaderClasses:l}=Su(t);function p(F,O){if(!(!t.sticky&&!F.fixed))return{position:"sticky",left:F.fixed?Wt(F.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${O})`:void 0}}function m(F){const O=s.value.find(W=>W.key===F.key);return O?O.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:h,backgroundColorStyles:g}=xi(t,"color"),{displayClasses:w,mobile:v}=Ra(t),x=Q.computed(()=>({headers:u.value,columns:d.value,toggleSort:c,isSorted:i,sortBy:s.value,someSelected:o.value,allSelected:n.value,selectAll:r,getSortIcon:m})),L=Q.computed(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},w.value,l.value]),k=F=>{let{column:O,x:W,y:G}=F;const D=O.key==="data-table-select"||O.key==="data-table-expand",I=Q.mergeProps(t.headerProps??{},O.headerProps??{});return Q.createVNode(Au,Q.mergeProps({tag:"th",align:O.align,class:[{"v-data-table__th--sortable":O.sortable&&!t.disableSort,"v-data-table__th--sorted":i(O),"v-data-table__th--fixed":O.fixed},...L.value],style:{width:Wt(O.width),minWidth:Wt(O.minWidth),maxWidth:Wt(O.maxWidth),...p(O,G)},colspan:O.colspan,rowspan:O.rowspan,onClick:O.sortable?()=>c(O):void 0,fixed:O.fixed,nowrap:O.nowrap,lastFixed:O.lastFixed,noPadding:D},I),{default:()=>{var b;const M=`header.${O.key}`,C={column:O,selectAll:r,isSorted:i,toggleSort:c,sortBy:s.value,someSelected:o.value,allSelected:n.value,getSortIcon:m};return e[M]?e[M](C):O.key==="data-table-select"?((b=e["header.data-table-select"])==null?void 0:b.call(e,C))??(A.value&&Q.createVNode(po,{modelValue:n.value,indeterminate:o.value&&!n.value,"onUpdate:modelValue":r},null)):Q.createVNode("div",{class:"v-data-table-header__content"},[Q.createVNode("span",null,[O.title]),O.sortable&&!t.disableSort&&Q.createVNode(Tr,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(O)},null),t.multiSort&&i(O)&&Q.createVNode("div",{key:"badge",class:["v-data-table-header__sort-badge",...h.value],style:g.value},[s.value.findIndex(y=>y.key===O.key)+1])])}})},Y=()=>{const F=Q.mergeProps(t.headerProps??{}??{}),O=Q.computed(()=>d.value.filter(G=>(G==null?void 0:G.sortable)&&!t.disableSort)),W=Q.computed(()=>{if(d.value.find(D=>D.key==="data-table-select")!=null)return n.value?"$checkboxOn":o.value?"$checkboxIndeterminate":"$checkboxOff"});return Q.createVNode(Au,Q.mergeProps({tag:"th",class:[...L.value],colspan:u.value.length+1},F),{default:()=>[Q.createVNode("div",{class:"v-data-table-header__content"},[Q.createVNode(bg,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:O.value,label:a("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>s.value=[],appendIcon:W.value,"onClick:append":()=>r(!n.value)},{...e,chip:G=>{var D;return Q.createVNode(gd,{onClick:(D=G.item.raw)!=null&&D.sortable?()=>c(G.item.raw):void 0,onMousedown:I=>{I.preventDefault(),I.stopPropagation()}},{default:()=>[G.item.title,Q.createVNode(Tr,{class:["v-data-table__td-sort-icon",i(G.item.raw)&&"v-data-table__td-sort-icon-active"],icon:m(G.item.raw),size:"small"},null)]})}})])]})};jt(()=>v.value?Q.createVNode("tr",null,[Q.createVNode(Y,null,null)]):Q.createVNode(Q.Fragment,null,[e.headers?e.headers(x.value):u.value.map((F,O)=>Q.createVNode("tr",null,[F.map((W,G)=>Q.createVNode(k,{column:W,x:G,y:O},null))])),t.loading&&Q.createVNode("tr",{class:"v-data-table-progress"},[Q.createVNode("th",{colspan:d.value.length},[Q.createVNode($f,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:e.loader})])])]))}}),l5=$e({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),jg=Symbol.for("vuetify:data-table-group");function Tg(t){return{groupBy:Mr(t,"groupBy")}}function Yg(t){const{disableSort:f,groupBy:e,sortBy:a}=t,c=Q.ref(new Set),s=Q.computed(()=>e.value.map(A=>({...A,order:A.order??!1})).concat(f!=null&&f.value?[]:a.value));function i(A){return c.value.has(A.id)}function o(A){const d=new Set(c.value);i(A)?d.delete(A.id):d.add(A.id),c.value=d}function n(A){function d(u){const l=[];for(const p of u.items)"type"in p&&p.type==="group"?l.push(...d(p)):l.push(p);return l}return d({type:"group",items:A,id:"dummy",key:"dummy",value:"dummy",depth:0})}const r={sortByWithGroups:s,toggleGroup:o,opened:c,groupBy:e,extractRows:n,isGroupOpen:i};return Q.provide(jg,r),r}function Og(){const t=Q.inject(jg);if(!t)throw new Error("Missing group!");return t}function u5(t,f){if(!t.length)return[];const e=new Map;for(const a of t){const c=EA(a.raw,f);e.has(c)||e.set(c,[]),e.get(c).push(a)}return e}function Gg(t,f){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!f.length)return[];const c=u5(t,f[0]),s=[],i=f.slice(1);return c.forEach((o,n)=>{const r=f[0],A=`${a}_${r}_${n}`;s.push({depth:e,id:A,key:r,value:n,items:i.length?Gg(o,i,e+1,A):o,type:"group"})}),s}function Wg(t,f){const e=[];for(const a of t)"type"in a&&a.type==="group"?(a.value!=null&&e.push(a),(f.has(a.id)||a.value==null)&&e.push(...Wg(a.items,f))):e.push(a);return e}function Vg(t,f,e){return{flatItems:Q.computed(()=>{if(!f.value.length)return t.value;const c=Gg(t.value,f.value.map(s=>s.key));return Wg(c,e.value)})}}const c5=$e({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),f5=Qt()({name:"VDataTableGroupHeaderRow",props:c5(),setup(t,f){let{slots:e}=f;const{isGroupOpen:a,toggleGroup:c,extractRows:s}=Og(),{isSelected:i,isSomeSelected:o,select:n}=Nu(),{columns:r}=ku(),A=Q.computed(()=>s([t.item]));return()=>Q.createVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[r.value.map(d=>{var u,l;if(d.key==="data-table-group"){const p=a(t.item)?"$expand":"$next",m=()=>c(t.item);return((u=e["data-table-group"])==null?void 0:u.call(e,{item:t.item,count:A.value.length,props:{icon:p,onClick:m}}))??Q.createVNode(Au,{class:"v-data-table-group-header-row__column"},{default:()=>[Q.createVNode(hn,{size:"small",variant:"text",icon:p,onClick:m},null),Q.createVNode("span",null,[t.item.value]),Q.createVNode("span",null,[Q.createTextVNode("("),A.value.length,Q.createTextVNode(")")])]})}if(d.key==="data-table-select"){const p=i(A.value),m=o(A.value)&&!p,h=g=>n(A.value,g);return((l=e["data-table-select"])==null?void 0:l.call(e,{props:{modelValue:p,indeterminate:m,"onUpdate:modelValue":h}}))??Q.createVNode("td",null,[Q.createVNode(po,{modelValue:p,indeterminate:m,"onUpdate:modelValue":h},null)])}return Q.createVNode("td",null,null)})])}}),d5=$e({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Hg=Symbol.for("vuetify:datatable:expanded");function Ug(t){const f=Q.toRef(t,"expandOnClick"),e=Mr(t,"expanded",t.expanded,o=>new Set(o),o=>[...o.values()]);function a(o,n){const r=new Set(e.value);n?r.add(o.value):r.delete(o.value),e.value=r}function c(o){return e.value.has(o.value)}function s(o){a(o,!c(o))}const i={expand:a,expanded:e,expandOnClick:f,isExpanded:c,toggleExpand:s};return Q.provide(Hg,i),i}function zg(){const t=Q.inject(Hg);if(!t)throw new Error("foo");return t}const h5=$e({index:Number,item:Object,cellProps:[Object,Function],onClick:vn(),onContextmenu:vn(),onDblclick:vn(),...Lu()},"VDataTableRow"),p5=Qt()({name:"VDataTableRow",props:h5(),setup(t,f){let{slots:e}=f;const{displayClasses:a,mobile:c}=Ra(t,"v-data-table__tr"),{isSelected:s,toggleSelect:i,someSelected:o,allSelected:n,selectAll:r}=Nu(),{isExpanded:A,toggleExpand:d}=zg(),{toggleSort:u,sortBy:l,isSorted:p}=kg(),{columns:m}=ku();jt(()=>Q.createVNode("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},a.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&m.value.map((h,g)=>{const w=t.item,v=`item.${h.key}`,x=`header.${h.key}`,L={index:t.index,item:w.raw,internalItem:w,value:EA(w.columns,h.key),column:h,isSelected:s,toggleSelect:i,isExpanded:A,toggleExpand:d},k={column:h,selectAll:r,isSorted:p,toggleSort:u,sortBy:l.value,someSelected:o.value,allSelected:n.value,getSortIcon:()=>""},Y=typeof t.cellProps=="function"?t.cellProps({index:L.index,item:L.item,internalItem:L.internalItem,value:L.value,column:h}):t.cellProps,F=typeof h.cellProps=="function"?h.cellProps({index:L.index,item:L.item,internalItem:L.internalItem,value:L.value}):h.cellProps;return Q.createVNode(Au,Q.mergeProps({align:h.align,class:{"v-data-table__td--expanded-row":h.key==="data-table-expand","v-data-table__td--select-row":h.key==="data-table-select"},fixed:h.fixed,fixedOffset:h.fixedOffset,lastFixed:h.lastFixed,maxWidth:c.value?void 0:h.maxWidth,noPadding:h.key==="data-table-select"||h.key==="data-table-expand",nowrap:h.nowrap,width:c.value?void 0:h.width},Y,F),{default:()=>{var W,G,D,I,M;if(e[v]&&!c.value)return(W=e[v])==null?void 0:W.call(e,L);if(h.key==="data-table-select")return((G=e["item.data-table-select"])==null?void 0:G.call(e,L))??Q.createVNode(po,{disabled:!w.selectable,modelValue:s([w]),onClick:Q.withModifiers(()=>i(w),["stop"])},null);if(h.key==="data-table-expand")return((D=e["item.data-table-expand"])==null?void 0:D.call(e,L))??Q.createVNode(hn,{icon:A(w)?"$collapse":"$expand",size:"small",variant:"text",onClick:Q.withModifiers(()=>d(w),["stop"])},null);const O=Q.toDisplayString(L.value);return c.value?Q.createVNode(Q.Fragment,null,[Q.createVNode("div",{class:"v-data-table__td-title"},[((I=e[x])==null?void 0:I.call(e,k))??h.title]),Q.createVNode("div",{class:"v-data-table__td-value"},[((M=e[v])==null?void 0:M.call(e,L))??O])]):O}})})]))}}),Kg=$e({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Lu()},"VDataTableRows"),uu=Qt()({name:"VDataTableRows",inheritAttrs:!1,props:Kg(),setup(t,f){let{attrs:e,slots:a}=f;const{columns:c}=ku(),{expandOnClick:s,toggleExpand:i,isExpanded:o}=zg(),{isSelected:n,toggleSelect:r}=Nu(),{toggleGroup:A,isGroupOpen:d}=Og(),{t:u}=ps(),{mobile:l}=Ra(t);return jt(()=>{var p,m;return t.loading&&(!t.items.length||a.loading)?Q.createVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[Q.createVNode("td",{colspan:c.value.length},[((p=a.loading)==null?void 0:p.call(a))??u(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?Q.createVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[Q.createVNode("td",{colspan:c.value.length},[((m=a["no-data"])==null?void 0:m.call(a))??u(t.noDataText)])]):Q.createVNode(Q.Fragment,null,[t.items.map((h,g)=>{var x;if(h.type==="group"){const L={index:g,item:h,columns:c.value,isExpanded:o,toggleExpand:i,isSelected:n,toggleSelect:r,toggleGroup:A,isGroupOpen:d};return a["group-header"]?a["group-header"](L):Q.createVNode(f5,Q.mergeProps({key:`group-header_${h.id}`,item:h},Zh(e,":group-header",()=>L)),a)}const w={index:g,item:h.raw,internalItem:h,columns:c.value,isExpanded:o,toggleExpand:i,isSelected:n,toggleSelect:r},v={...w,props:Q.mergeProps({key:`item_${h.key??h.index}`,onClick:s.value?()=>{i(h)}:void 0,index:g,item:h,cellProps:t.cellProps,mobile:l.value},Zh(e,":row",()=>w),typeof t.rowProps=="function"?t.rowProps({item:w.item,index:w.index,internalItem:w.internalItem}):t.rowProps)};return Q.createVNode(Q.Fragment,{key:v.props.key},[a.item?a.item(v):Q.createVNode(p5,v.props,a),o(h)&&((x=a["expanded-row"])==null?void 0:x.call(a,w))])})])}),{}}}),Jg=$e({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ir(),...li(),...Yr(),...Jr()},"VTable"),cu=Qt()({name:"VTable",props:Jg(),setup(t,f){let{slots:e,emit:a}=f;const{themeClasses:c}=ln(t),{densityClasses:s}=Hi(t);return jt(()=>Q.createVNode(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":t.hover},c.value,s.value,t.class],style:t.style},{default:()=>{var i,o,n;return[(i=e.top)==null?void 0:i.call(e),e.default?Q.createVNode("div",{class:"v-table__wrapper",style:{height:Wt(t.height)}},[Q.createVNode("table",null,[e.default()])]):(o=e.wrapper)==null?void 0:o.call(e),(n=e.bottom)==null?void 0:n.call(e)]}})),{}}}),m5=$e({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function g5(t,f,e,a){const c=t.returnObject?f:Yn(f,t.itemValue),s=Yn(f,t.itemSelectable,!0),i=a.reduce((o,n)=>(n.key!=null&&(o[n.key]=Yn(f,n.value)),o),{});return{type:"item",key:t.returnObject?Yn(f,t.itemValue):c,index:e,value:c,selectable:s,columns:i,raw:f}}function w5(t,f,e){return f.map((a,c)=>g5(t,a,c,e))}function Zg(t,f){return{items:Q.computed(()=>w5(t,t.items,f.value))}}function qg(t){let{page:f,itemsPerPage:e,sortBy:a,groupBy:c,search:s}=t;const i=rn("VDataTable"),o=Q.computed(()=>({page:f.value,itemsPerPage:e.value,sortBy:a.value,groupBy:c.value,search:s.value}));let n=null;Q.watch(o,()=>{qs(n,o.value)||(n&&n.search!==o.value.search&&(f.value=1),i.emit("update:options",o.value),n=o.value)},{deep:!0,immediate:!0})}const b5=(t,f,e)=>t==null||f==null?-1:t.toString().toLocaleLowerCase().indexOf(f.toString().toLocaleLowerCase()),v5=$e({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function y5(t,f,e){var o;const a=[],c=(e==null?void 0:e.default)??b5,s=e!=null&&e.filterKeys?bn(e.filterKeys):!1,i=Object.keys((e==null?void 0:e.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return a;e:for(let n=0;n<t.length;n++){const[r,A=r]=bn(t[n]),d={},u={};let l=-1;if((f||i>0)&&!(e!=null&&e.noFilter)){if(typeof r=="object"){const h=s||Object.keys(A);for(const g of h){const w=Yn(A,g),v=(o=e==null?void 0:e.customKeyFilter)==null?void 0:o[g];if(l=v?v(w,f,r):c(w,f,r),l!==-1&&l!==!1)v?d[g]=l:u[g]=l;else if((e==null?void 0:e.filterMode)==="every")continue e}}else l=c(r,f,r),l!==-1&&l!==!1&&(u.title=l);const p=Object.keys(u).length,m=Object.keys(d).length;if(!p&&!m||(e==null?void 0:e.filterMode)==="union"&&m!==i&&!p||(e==null?void 0:e.filterMode)==="intersection"&&(m!==i||!p))continue}a.push({index:n,matches:{...u,...d}})}return a}function E5(t,f,e,a){const c=Q.ref([]),s=Q.ref(new Map),i=Q.computed(()=>a!=null&&a.transform?Q.unref(f).map(n=>[n,a.transform(n)]):Q.unref(f));Q.watchEffect(()=>{const n=typeof e=="function"?e():Q.unref(e),r=typeof n!="string"&&typeof n!="number"?"":String(n),A=y5(i.value,r,{customKeyFilter:{...t.customKeyFilter,...Q.unref(a==null?void 0:a.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),d=Q.unref(f),u=[],l=new Map;A.forEach(p=>{let{index:m,matches:h}=p;const g=d[m];u.push(g),l.set(g.value,h)}),c.value=u,s.value=l});function o(n){return s.value.get(n.value)}return{filteredItems:c,filteredMatches:s,getMatches:o}}const Xg=$e({...Kg(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...d5(),...l5(),...XE(),...m5(),...s5(),...a5(),...Ng(),...Jg()},"DataTable"),B5=$e({...vg(),...Xg(),...v5(),...vd()},"VDataTable"),C5=Qt()({name:"VDataTable",props:B5(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,f){let{attrs:e,slots:a}=f;const{groupBy:c}=Tg(t),{sortBy:s,multiSort:i,mustSort:o}=_g(t),{page:n,itemsPerPage:r}=Eg(t),{disableSort:A}=Q.toRefs(t),{columns:d,headers:u,sortFunctions:l,sortRawFunctions:p,filterFunctions:m}=Qg(t,{groupBy:c,showSelect:Q.toRef(t,"showSelect"),showExpand:Q.toRef(t,"showExpand")}),{items:h}=Zg(t,d),g=Q.toRef(t,"search"),{filteredItems:w}=E5(t,h,g,{transform:Z=>Z.columns,customKeyFilter:m}),{toggleSort:v}=Pg({sortBy:s,multiSort:i,mustSort:o,page:n}),{sortByWithGroups:x,opened:L,extractRows:k,isGroupOpen:Y,toggleGroup:F}=Yg({groupBy:c,sortBy:s,disableSort:A}),{sortedItems:O}=o5(t,w,x,{transform:Z=>({...Z.raw,...Z.columns}),sortFunctions:l,sortRawFunctions:p}),{flatItems:W}=Vg(O,c,L),G=Q.computed(()=>W.value.length),{startIndex:D,stopIndex:I,pageCount:M,setItemsPerPage:C}=Bg({page:n,itemsPerPage:r,itemsLength:G}),{paginatedItems:b}=qE({items:W,startIndex:D,stopIndex:I,itemsPerPage:r}),y=Q.computed(()=>k(b.value)),{isSelected:E,select:B,selectAll:S,toggleSelect:T,someSelected:R,allSelected:V}=Fg(t,{allItems:h,currentPage:y}),{isExpanded:U,toggleExpand:q}=Ug(t);qg({page:n,itemsPerPage:r,sortBy:s,groupBy:c,search:g}),Yi({VDataTableRows:{hideNoData:Q.toRef(t,"hideNoData"),noDataText:Q.toRef(t,"noDataText"),loading:Q.toRef(t,"loading"),loadingText:Q.toRef(t,"loadingText")}});const j=Q.computed(()=>({page:n.value,itemsPerPage:r.value,sortBy:s.value,pageCount:M.value,toggleSort:v,setItemsPerPage:C,someSelected:R.value,allSelected:V.value,isSelected:E,select:B,selectAll:S,toggleSelect:T,isExpanded:U,toggleExpand:q,isGroupOpen:Y,toggleGroup:F,items:y.value.map(Z=>Z.raw),internalItems:y.value,groupedItems:b.value,columns:d.value,headers:u.value}));return jt(()=>{const Z=ou.filterProps(t),N=lu.filterProps(t),P=uu.filterProps(t),K=cu.filterProps(t);return Q.createVNode(cu,Q.mergeProps({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},K),{top:()=>{var $;return($=a.top)==null?void 0:$.call(a,j.value)},default:()=>{var $,se,ee,Ae,ue,te;return a.default?a.default(j.value):Q.createVNode(Q.Fragment,null,[($=a.colgroup)==null?void 0:$.call(a,j.value),!t.hideDefaultHeader&&Q.createVNode("thead",{key:"thead"},[Q.createVNode(lu,N,a)]),(se=a.thead)==null?void 0:se.call(a,j.value),!t.hideDefaultBody&&Q.createVNode("tbody",null,[(ee=a["body.prepend"])==null?void 0:ee.call(a,j.value),a.body?a.body(j.value):Q.createVNode(uu,Q.mergeProps(e,P,{items:b.value}),a),(Ae=a["body.append"])==null?void 0:Ae.call(a,j.value)]),(ue=a.tbody)==null?void 0:ue.call(a,j.value),(te=a.tfoot)==null?void 0:te.call(a,j.value)])},bottom:()=>a.bottom?a.bottom(j.value):!t.hideDefaultFooter&&Q.createVNode(Q.Fragment,null,[Q.createVNode(Ia,null,null),Q.createVNode(ou,Z,{prepend:a["footer.prepend"]})])})}),{}}}),x5=$e({itemsLength:{type:[Number,String],required:!0},...vg(),...Xg(),...vd()},"VDataTableServer"),I5=Qt()({name:"VDataTableServer",props:x5(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:expanded":t=>!0,"update:groupBy":t=>!0},setup(t,f){let{attrs:e,slots:a}=f;const{groupBy:c}=Tg(t),{sortBy:s,multiSort:i,mustSort:o}=_g(t),{page:n,itemsPerPage:r}=Eg(t),{disableSort:A}=Q.toRefs(t),d=Q.computed(()=>parseInt(t.itemsLength,10)),{columns:u,headers:l}=Qg(t,{groupBy:c,showSelect:Q.toRef(t,"showSelect"),showExpand:Q.toRef(t,"showExpand")}),{items:p}=Zg(t,u),{toggleSort:m}=Pg({sortBy:s,multiSort:i,mustSort:o,page:n}),{opened:h,isGroupOpen:g,toggleGroup:w,extractRows:v}=Yg({groupBy:c,sortBy:s,disableSort:A}),{pageCount:x,setItemsPerPage:L}=Bg({page:n,itemsPerPage:r,itemsLength:d}),{flatItems:k}=Vg(p,c,h),{isSelected:Y,select:F,selectAll:O,toggleSelect:W,someSelected:G,allSelected:D}=Fg(t,{allItems:p,currentPage:p}),{isExpanded:I,toggleExpand:M}=Ug(t),C=Q.computed(()=>v(p.value));qg({page:n,itemsPerPage:r,sortBy:s,groupBy:c,search:Q.toRef(t,"search")}),Q.provide("v-data-table",{toggleSort:m,sortBy:s}),Yi({VDataTableRows:{hideNoData:Q.toRef(t,"hideNoData"),noDataText:Q.toRef(t,"noDataText"),loading:Q.toRef(t,"loading"),loadingText:Q.toRef(t,"loadingText")}});const b=Q.computed(()=>({page:n.value,itemsPerPage:r.value,sortBy:s.value,pageCount:x.value,toggleSort:m,setItemsPerPage:L,someSelected:G.value,allSelected:D.value,isSelected:Y,select:F,selectAll:O,toggleSelect:W,isExpanded:I,toggleExpand:M,isGroupOpen:g,toggleGroup:w,items:C.value.map(y=>y.raw),internalItems:C.value,groupedItems:k.value,columns:u.value,headers:l.value}));jt(()=>{const y=ou.filterProps(t),E=lu.filterProps(t),B=uu.filterProps(t),S=cu.filterProps(t);return Q.createVNode(cu,Q.mergeProps({class:["v-data-table",{"v-data-table--loading":t.loading},t.class],style:t.style},S),{top:()=>{var T;return(T=a.top)==null?void 0:T.call(a,b.value)},default:()=>{var T,R,V,U,q,j;return a.default?a.default(b.value):Q.createVNode(Q.Fragment,null,[(T=a.colgroup)==null?void 0:T.call(a,b.value),!t.hideDefaultHeader&&Q.createVNode("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[Q.createVNode(lu,Q.mergeProps(E,{sticky:t.fixedHeader}),a)]),(R=a.thead)==null?void 0:R.call(a,b.value),!t.hideDefaultBody&&Q.createVNode("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(V=a["body.prepend"])==null?void 0:V.call(a,b.value),a.body?a.body(b.value):Q.createVNode(uu,Q.mergeProps(e,B,{items:k.value}),a),(U=a["body.append"])==null?void 0:U.call(a,b.value)]),(q=a.tbody)==null?void 0:q.call(a,b.value),(j=a.tfoot)==null?void 0:j.call(a,b.value)])},bottom:()=>a.bottom?a.bottom(b.value):!t.hideDefaultFooter&&Q.createVNode(Q.Fragment,null,[Q.createVNode(Ia,null,null),Q.createVNode(ou,y,{prepend:a["footer.prepend"]})])})})}}),S5={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Q5(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Q.createVNode("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${t}`]},[f])}function Fp(t){const[f,e]=t.split("@");return Array.from({length:e}).map(()=>ju(f))}function ju(t){let f=[];if(!t)return f;const e=S5[t];if(t!==e){if(t.includes(","))return Dp(t);if(t.includes("@"))return Fp(t);e.includes(",")?f=Dp(e):e.includes("@")?f=Fp(e):e&&f.push(ju(e))}return[Q5(t,f)]}function Dp(t){return t.replace(/\s/g,"").split(",").map(ju)}const M5=$e({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Ui(),...ds(),...Jr()},"VSkeletonLoader"),$g=Qt()({name:"VSkeletonLoader",props:M5(),setup(t,f){let{slots:e}=f;const{backgroundColorClasses:a,backgroundColorStyles:c}=xi(Q.toRef(t,"color")),{dimensionStyles:s}=zi(t),{elevationClasses:i}=$s(t),{themeClasses:o}=ln(t),{t:n}=ps(),r=Q.computed(()=>ju(bn(t.type).join(",")));return jt(()=>{var d;const A=!e.default||t.loading;return Q.createVNode("div",{class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},o.value,a.value,i.value],style:[c.value,A?s.value:{}],"aria-busy":t.boilerplate?void 0:A,"aria-live":t.boilerplate?void 0:"polite","aria-label":t.boilerplate?void 0:n(t.loadingText),role:t.boilerplate?void 0:"alert"},[A?r.value:(d=e.default)==null?void 0:d.call(e)])}),{}}}),R5=["innerHTML"],L5={key:2},F5={key:3},D5=["colspan"],_5={__name:"Table",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:f}){const{searchState:e,headersState:a}=La(),{filteredData:c}=gg(),s=Q.inject("table_props"),i=Q.useModel(t,"modelValue"),o=Q.ref(null),n=A=>A!=null&&A.lock?null:`item.${A.key}`;return f({getItemsForPrint:async()=>c.value}),(A,d)=>(Q.openBlock(),Q.createBlock(C5,Q.mergeProps({ref_key:"datatable",ref:o,modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=u=>i.value=u),color:"primary","show-select":"",items:Q.unref(c),headers:Q.unref(a),loading:Q.unref(s).loading,search:Q.unref(e)},Q.unref(s).options),Q.createSlots({loading:Q.withCtx(()=>[Q.createVNode($g,{type:"table-row@10"})]),"expanded-row":Q.withCtx(({columns:u,item:l})=>[Q.createElementVNode("tr",null,[Q.createElementVNode("td",{colspan:u.length},[Q.unref(s).options.expandedRowRenderer?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(Q.unref(s).options.expandedRowRenderer),{key:0,params:{columns:u,item:l}},null,8,["params"])):Q.createCommentVNode("",!0)],8,D5)])]),_:2},[Q.renderList(Q.unref(a),(u,l)=>({name:n(u),fn:Q.withCtx(({item:p,internalItem:m,value:h,column:g})=>[Q.createElementVNode("div",{class:Q.normalizeClass(g.cellClass)},[g.cellRendererFramework?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(typeof g.cellRendererFramework=="string"?Q.unref(wg)()[g.cellRendererFramework]:g.cellRendererFramework),{key:0,params:{item:p,internalItem:m,value:h,column:g},cellRendererFrameworkParams:g.cellRendererFrameworkParams?g.cellRendererFrameworkParams({item:p,internalItem:m,value:h,column:g}):{}},null,8,["params","cellRendererFrameworkParams"])):g.cellRenderer?(Q.openBlock(),Q.createElementBlock("span",Q.mergeProps({key:1},g!=null&&g.cellRendererParams?g.cellRendererParams({item:p,internalItem:m,value:h,column:g}):{},{innerHTML:g.cellRenderer({item:p,internalItem:m,value:h,column:g})}),null,16,R5)):g.valueFormatter?(Q.openBlock(),Q.createElementBlock("span",L5,Q.toDisplayString(g.valueFormatter({item:p,internalItem:m,value:h,column:g})),1)):(Q.openBlock(),Q.createElementBlock("span",F5,Q.toDisplayString(String(h).length||String(h)==="0"?h:"-"),1))],2)])}))]),1040,["modelValue","items","headers","loading","search"]))}};var P5=Error,k5=EvalError,N5=RangeError,j5=ReferenceError,e1=SyntaxError,jA=TypeError,T5=URIError,Y5=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},e=Symbol("test"),a=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var c=42;f[e]=c;for(e in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var s=Object.getOwnPropertySymbols(f);if(s.length!==1||s[0]!==e||!Object.prototype.propertyIsEnumerable.call(f,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(f,e);if(i.value!==c||i.enumerable!==!0)return!1}return!0},_p=typeof Symbol<"u"&&Symbol,O5=Y5,G5=function(){return typeof _p!="function"||typeof Symbol!="function"||typeof _p("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:O5()},Vc={__proto__:null,foo:{}},W5=Object,V5=function(){return{__proto__:Vc}.foo===Vc.foo&&!(Vc instanceof W5)},H5="Function.prototype.bind called on incompatible ",U5=Object.prototype.toString,z5=Math.max,K5="[object Function]",Pp=function(f,e){for(var a=[],c=0;c<f.length;c+=1)a[c]=f[c];for(var s=0;s<e.length;s+=1)a[s+f.length]=e[s];return a},J5=function(f,e){for(var a=[],c=e,s=0;c<f.length;c+=1,s+=1)a[s]=f[c];return a},Z5=function(t,f){for(var e="",a=0;a<t.length;a+=1)e+=t[a],a+1<t.length&&(e+=f);return e},q5=function(f){var e=this;if(typeof e!="function"||U5.apply(e)!==K5)throw new TypeError(H5+e);for(var a=J5(arguments,1),c,s=function(){if(this instanceof c){var A=e.apply(this,Pp(a,arguments));return Object(A)===A?A:this}return e.apply(f,Pp(a,arguments))},i=z5(0,e.length-a.length),o=[],n=0;n<i;n++)o[n]="$"+n;if(c=Function("binder","return function ("+Z5(o,",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var r=function(){};r.prototype=e.prototype,c.prototype=new r,r.prototype=null}return c},X5=q5,Ed=Function.prototype.bind||X5,$5=Function.prototype.call,eB=Object.prototype.hasOwnProperty,tB=Ed,rB=tB.call($5,eB),or,nB=P5,iB=k5,sB=N5,aB=j5,mo=e1,uo=jA,oB=T5,t1=Function,Hc=function(t){try{return t1('"use strict"; return ('+t+").constructor;")()}catch{}},Ea=Object.getOwnPropertyDescriptor;if(Ea)try{Ea({},"")}catch{Ea=null}var Uc=function(){throw new uo},AB=Ea?function(){try{return arguments.callee,Uc}catch{try{return Ea(arguments,"callee").get}catch{return Uc}}}():Uc,to=G5(),lB=V5(),dn=Object.getPrototypeOf||(lB?function(t){return t.__proto__}:null),ao={},uB=typeof Uint8Array>"u"||!dn?or:dn(Uint8Array),Ba={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?or:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?or:ArrayBuffer,"%ArrayIteratorPrototype%":to&&dn?dn([][Symbol.iterator]()):or,"%AsyncFromSyncIteratorPrototype%":or,"%AsyncFunction%":ao,"%AsyncGenerator%":ao,"%AsyncGeneratorFunction%":ao,"%AsyncIteratorPrototype%":ao,"%Atomics%":typeof Atomics>"u"?or:Atomics,"%BigInt%":typeof BigInt>"u"?or:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?or:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?or:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?or:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nB,"%eval%":eval,"%EvalError%":iB,"%Float32Array%":typeof Float32Array>"u"?or:Float32Array,"%Float64Array%":typeof Float64Array>"u"?or:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?or:FinalizationRegistry,"%Function%":t1,"%GeneratorFunction%":ao,"%Int8Array%":typeof Int8Array>"u"?or:Int8Array,"%Int16Array%":typeof Int16Array>"u"?or:Int16Array,"%Int32Array%":typeof Int32Array>"u"?or:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":to&&dn?dn(dn([][Symbol.iterator]())):or,"%JSON%":typeof JSON=="object"?JSON:or,"%Map%":typeof Map>"u"?or:Map,"%MapIteratorPrototype%":typeof Map>"u"||!to||!dn?or:dn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?or:Promise,"%Proxy%":typeof Proxy>"u"?or:Proxy,"%RangeError%":sB,"%ReferenceError%":aB,"%Reflect%":typeof Reflect>"u"?or:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?or:Set,"%SetIteratorPrototype%":typeof Set>"u"||!to||!dn?or:dn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?or:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":to&&dn?dn(""[Symbol.iterator]()):or,"%Symbol%":to?Symbol:or,"%SyntaxError%":mo,"%ThrowTypeError%":AB,"%TypedArray%":uB,"%TypeError%":uo,"%Uint8Array%":typeof Uint8Array>"u"?or:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?or:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?or:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?or:Uint32Array,"%URIError%":oB,"%WeakMap%":typeof WeakMap>"u"?or:WeakMap,"%WeakRef%":typeof WeakRef>"u"?or:WeakRef,"%WeakSet%":typeof WeakSet>"u"?or:WeakSet};if(dn)try{null.error}catch(t){var cB=dn(dn(t));Ba["%Error.prototype%"]=cB}var fB=function t(f){var e;if(f==="%AsyncFunction%")e=Hc("async function () {}");else if(f==="%GeneratorFunction%")e=Hc("function* () {}");else if(f==="%AsyncGeneratorFunction%")e=Hc("async function* () {}");else if(f==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(e=a.prototype)}else if(f==="%AsyncIteratorPrototype%"){var c=t("%AsyncGenerator%");c&&dn&&(e=dn(c.prototype))}return Ba[f]=e,e},kp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},TA=Ed,fu=rB,dB=TA.call(Function.call,Array.prototype.concat),hB=TA.call(Function.apply,Array.prototype.splice),Np=TA.call(Function.call,String.prototype.replace),du=TA.call(Function.call,String.prototype.slice),pB=TA.call(Function.call,RegExp.prototype.exec),mB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gB=/\\(\\)?/g,wB=function(f){var e=du(f,0,1),a=du(f,-1);if(e==="%"&&a!=="%")throw new mo("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&e!=="%")throw new mo("invalid intrinsic syntax, expected opening `%`");var c=[];return Np(f,mB,function(s,i,o,n){c[c.length]=o?Np(n,gB,"$1"):i||s}),c},bB=function(f,e){var a=f,c;if(fu(kp,a)&&(c=kp[a],a="%"+c[0]+"%"),fu(Ba,a)){var s=Ba[a];if(s===ao&&(s=fB(a)),typeof s>"u"&&!e)throw new uo("intrinsic "+f+" exists, but is not available. Please file an issue!");return{alias:c,name:a,value:s}}throw new mo("intrinsic "+f+" does not exist!")},Eo=function(f,e){if(typeof f!="string"||f.length===0)throw new uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new uo('"allowMissing" argument must be a boolean');if(pB(/^%?[^%]*%?$/,f)===null)throw new mo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=wB(f),c=a.length>0?a[0]:"",s=bB("%"+c+"%",e),i=s.name,o=s.value,n=!1,r=s.alias;r&&(c=r[0],hB(a,dB([0,1],r)));for(var A=1,d=!0;A<a.length;A+=1){var u=a[A],l=du(u,0,1),p=du(u,-1);if((l==='"'||l==="'"||l==="`"||p==='"'||p==="'"||p==="`")&&l!==p)throw new mo("property names with quotes must have matching quotes");if((u==="constructor"||!d)&&(n=!0),c+="."+u,i="%"+c+"%",fu(Ba,i))o=Ba[i];else if(o!=null){if(!(u in o)){if(!e)throw new uo("base intrinsic for "+f+" exists, but the property is not available.");return}if(Ea&&A+1>=a.length){var m=Ea(o,u);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[u]}else d=fu(o,u),o=o[u];d&&!n&&(Ba[i]=o)}}return o},r1={exports:{}},zc,jp;function Bd(){if(jp)return zc;jp=1;var t=Eo,f=t("%Object.defineProperty%",!0)||!1;if(f)try{f({},"a",{value:1})}catch{f=!1}return zc=f,zc}var vB=Eo,Gl=vB("%Object.getOwnPropertyDescriptor%",!0);if(Gl)try{Gl([],"length")}catch{Gl=null}var n1=Gl,Tp=Bd(),yB=e1,ro=jA,Yp=n1,EB=function(f,e,a){if(!f||typeof f!="object"&&typeof f!="function")throw new ro("`obj` must be an object or a function`");if(typeof e!="string"&&typeof e!="symbol")throw new ro("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ro("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ro("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ro("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ro("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,n=!!Yp&&Yp(f,e);if(Tp)Tp(f,e,{configurable:i===null&&n?n.configurable:!i,enumerable:c===null&&n?n.enumerable:!c,value:a,writable:s===null&&n?n.writable:!s});else if(o||!c&&!s&&!i)f[e]=a;else throw new yB("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Df=Bd(),i1=function(){return!!Df};i1.hasArrayLengthDefineBug=function(){if(!Df)return null;try{return Df([],"length",{value:1}).length!==1}catch{return!0}};var BB=i1,CB=Eo,Op=EB,xB=BB(),Gp=n1,Wp=jA,IB=CB("%Math.floor%"),SB=function(f,e){if(typeof f!="function")throw new Wp("`fn` is not a function");if(typeof e!="number"||e<0||e>4294967295||IB(e)!==e)throw new Wp("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],c=!0,s=!0;if("length"in f&&Gp){var i=Gp(f,"length");i&&!i.configurable&&(c=!1),i&&!i.writable&&(s=!1)}return(c||s||!a)&&(xB?Op(f,"length",e,!0,!0):Op(f,"length",e)),f};(function(t){var f=Ed,e=Eo,a=SB,c=jA,s=e("%Function.prototype.apply%"),i=e("%Function.prototype.call%"),o=e("%Reflect.apply%",!0)||f.call(i,s),n=Bd(),r=e("%Math.max%");t.exports=function(u){if(typeof u!="function")throw new c("a function is required");var l=o(f,i,arguments);return a(l,1+r(0,u.length-(arguments.length-1)),!0)};var A=function(){return o(f,s,arguments)};n?n(t.exports,"apply",{value:A}):t.exports.apply=A})(r1);var QB=r1.exports,s1=Eo,a1=QB,MB=a1(s1("String.prototype.indexOf")),RB=function(f,e){var a=s1(f,!!e);return typeof a=="function"&&MB(f,".prototype.")>-1?a1(a):a};const LB={},FB=Object.freeze(Object.defineProperty({__proto__:null,default:LB},Symbol.toStringTag,{value:"Module"})),DB=i0(FB);var Cd=typeof Map=="function"&&Map.prototype,Kc=Object.getOwnPropertyDescriptor&&Cd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,hu=Cd&&Kc&&typeof Kc.get=="function"?Kc.get:null,Vp=Cd&&Map.prototype.forEach,xd=typeof Set=="function"&&Set.prototype,Jc=Object.getOwnPropertyDescriptor&&xd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pu=xd&&Jc&&typeof Jc.get=="function"?Jc.get:null,Hp=xd&&Set.prototype.forEach,_B=typeof WeakMap=="function"&&WeakMap.prototype,mA=_B?WeakMap.prototype.has:null,PB=typeof WeakSet=="function"&&WeakSet.prototype,gA=PB?WeakSet.prototype.has:null,kB=typeof WeakRef=="function"&&WeakRef.prototype,Up=kB?WeakRef.prototype.deref:null,NB=Boolean.prototype.valueOf,jB=Object.prototype.toString,TB=Function.prototype.toString,YB=String.prototype.match,Id=String.prototype.slice,Us=String.prototype.replace,OB=String.prototype.toUpperCase,zp=String.prototype.toLowerCase,o1=RegExp.prototype.test,Kp=Array.prototype.concat,Pi=Array.prototype.join,GB=Array.prototype.slice,Jp=Math.floor,_f=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Zc=Object.getOwnPropertySymbols,Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,go=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===go||!0)?Symbol.toStringTag:null,A1=Object.prototype.propertyIsEnumerable,Zp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function qp(t,f){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||o1.call(/e/,f))return f;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Jp(-t):Jp(t);if(a!==t){var c=String(a),s=Id.call(f,c.length+1);return Us.call(c,e,"$&_")+"."+Us.call(Us.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Us.call(f,e,"$&_")}var kf=DB,Xp=kf.custom,$p=u1(Xp)?Xp:null,WB=function t(f,e,a,c){var s=e||{};if(Ys(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ys(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Ys(s,"customInspect")?s.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ys(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ys(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof f>"u")return"undefined";if(f===null)return"null";if(typeof f=="boolean")return f?"true":"false";if(typeof f=="string")return f1(f,s);if(typeof f=="number"){if(f===0)return 1/0/f>0?"0":"-0";var n=String(f);return o?qp(f,n):n}if(typeof f=="bigint"){var r=String(f)+"n";return o?qp(f,r):r}var A=typeof s.depth>"u"?5:s.depth;if(typeof a>"u"&&(a=0),a>=A&&A>0&&typeof f=="object")return Nf(f)?"[Array]":"[Object]";var d=oC(s,a);if(typeof c>"u")c=[];else if(c1(c,f)>=0)return"[Circular]";function u(I,M,C){if(M&&(c=GB.call(c),c.push(M)),C){var b={depth:s.depth};return Ys(s,"quoteStyle")&&(b.quoteStyle=s.quoteStyle),t(I,b,a+1,c)}return t(I,s,a+1,c)}if(typeof f=="function"&&!e0(f)){var l=XB(f),p=Rl(f,u);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(p.length>0?" { "+Pi.call(p,", ")+" }":"")}if(u1(f)){var m=go?Us.call(String(f),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pf.call(f);return typeof f=="object"&&!go?Xo(m):m}if(iC(f)){for(var h="<"+zp.call(String(f.nodeName)),g=f.attributes||[],w=0;w<g.length;w++)h+=" "+g[w].name+"="+l1(VB(g[w].value),"double",s);return h+=">",f.childNodes&&f.childNodes.length&&(h+="..."),h+="</"+zp.call(String(f.nodeName))+">",h}if(Nf(f)){if(f.length===0)return"[]";var v=Rl(f,u);return d&&!aC(v)?"["+jf(v,d)+"]":"[ "+Pi.call(v,", ")+" ]"}if(UB(f)){var x=Rl(f,u);return!("cause"in Error.prototype)&&"cause"in f&&!A1.call(f,"cause")?"{ ["+String(f)+"] "+Pi.call(Kp.call("[cause]: "+u(f.cause),x),", ")+" }":x.length===0?"["+String(f)+"]":"{ ["+String(f)+"] "+Pi.call(x,", ")+" }"}if(typeof f=="object"&&i){if($p&&typeof f[$p]=="function"&&kf)return kf(f,{depth:A-a});if(i!=="symbol"&&typeof f.inspect=="function")return f.inspect()}if($B(f)){var L=[];return Vp&&Vp.call(f,function(I,M){L.push(u(M,f,!0)+" => "+u(I,f))}),t0("Map",hu.call(f),L,d)}if(rC(f)){var k=[];return Hp&&Hp.call(f,function(I){k.push(u(I,f))}),t0("Set",pu.call(f),k,d)}if(eC(f))return qc("WeakMap");if(nC(f))return qc("WeakSet");if(tC(f))return qc("WeakRef");if(KB(f))return Xo(u(Number(f)));if(ZB(f))return Xo(u(_f.call(f)));if(JB(f))return Xo(NB.call(f));if(zB(f))return Xo(u(String(f)));if(typeof window<"u"&&f===window)return"{ [object Window] }";if(f===Ht)return"{ [object globalThis] }";if(!HB(f)&&!e0(f)){var Y=Rl(f,u),F=Zp?Zp(f)===Object.prototype:f instanceof Object||f.constructor===Object,O=f instanceof Object?"":"null prototype",W=!F&&Qn&&Object(f)===f&&Qn in f?Id.call(ta(f),8,-1):O?"Object":"",G=F||typeof f.constructor!="function"?"":f.constructor.name?f.constructor.name+" ":"",D=G+(W||O?"["+Pi.call(Kp.call([],W||[],O||[]),": ")+"] ":"");return Y.length===0?D+"{}":d?D+"{"+jf(Y,d)+"}":D+"{ "+Pi.call(Y,", ")+" }"}return String(f)};function l1(t,f,e){var a=(e.quoteStyle||f)==="double"?'"':"'";return a+t+a}function VB(t){return Us.call(String(t),/"/g,""")}function Nf(t){return ta(t)==="[object Array]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function HB(t){return ta(t)==="[object Date]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function e0(t){return ta(t)==="[object RegExp]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function UB(t){return ta(t)==="[object Error]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function zB(t){return ta(t)==="[object String]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function KB(t){return ta(t)==="[object Number]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function JB(t){return ta(t)==="[object Boolean]"&&(!Qn||!(typeof t=="object"&&Qn in t))}function u1(t){if(go)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Pf)return!1;try{return Pf.call(t),!0}catch{}return!1}function ZB(t){if(!t||typeof t!="object"||!_f)return!1;try{return _f.call(t),!0}catch{}return!1}var qB=Object.prototype.hasOwnProperty||function(t){return t in this};function Ys(t,f){return qB.call(t,f)}function ta(t){return jB.call(t)}function XB(t){if(t.name)return t.name;var f=YB.call(TB.call(t),/^function\s*([\w$]+)/);return f?f[1]:null}function c1(t,f){if(t.indexOf)return t.indexOf(f);for(var e=0,a=t.length;e<a;e++)if(t[e]===f)return e;return-1}function $B(t){if(!hu||!t||typeof t!="object")return!1;try{hu.call(t);try{pu.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function eC(t){if(!mA||!t||typeof t!="object")return!1;try{mA.call(t,mA);try{gA.call(t,gA)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function tC(t){if(!Up||!t||typeof t!="object")return!1;try{return Up.call(t),!0}catch{}return!1}function rC(t){if(!pu||!t||typeof t!="object")return!1;try{pu.call(t);try{hu.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function nC(t){if(!gA||!t||typeof t!="object")return!1;try{gA.call(t,gA);try{mA.call(t,mA)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function iC(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function f1(t,f){if(t.length>f.maxStringLength){var e=t.length-f.maxStringLength,a="... "+e+" more character"+(e>1?"s":"");return f1(Id.call(t,0,f.maxStringLength),f)+a}var c=Us.call(Us.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,sC);return l1(c,"single",f)}function sC(t){var f=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[f];return e?"\\"+e:"\\x"+(f<16?"0":"")+OB.call(f.toString(16))}function Xo(t){return"Object("+t+")"}function qc(t){return t+" { ? }"}function t0(t,f,e,a){var c=a?jf(e,a):Pi.call(e,", ");return t+" ("+f+") {"+c+"}"}function aC(t){for(var f=0;f<t.length;f++)if(c1(t[f],`
|
|
320
320
|
`)>=0)return!1;return!0}function oC(t,f){var e;if(t.indent===" ")e=" ";else if(typeof t.indent=="number"&&t.indent>0)e=Pi.call(Array(t.indent+1)," ");else return null;return{base:e,prev:Pi.call(Array(f+1),e)}}function jf(t,f){if(t.length===0)return"";var e=`
|
|
321
321
|
`+f.prev+f.base;return e+Pi.call(t,","+e)+`
|
|
322
|
-
`+f.prev}function Rl(t,f){var e=Nf(t),a=[];if(e){a.length=t.length;for(var c=0;c<t.length;c++)a[c]=Ys(t,c)?f(t[c],t):""}var s=typeof Zc=="function"?Zc(t):[],i;if(go){i={};for(var o=0;o<s.length;o++)i["$"+s[o]]=s[o]}for(var n in t)Ys(t,n)&&(e&&String(Number(n))===n&&n<t.length||go&&i["$"+n]instanceof Symbol||(o1.call(/[^\w$]/,n)?a.push(f(n,t)+": "+f(t[n],t)):a.push(n+": "+f(t[n],t))));if(typeof Zc=="function")for(var r=0;r<s.length;r++)A1.call(t,s[r])&&a.push("["+f(s[r])+"]: "+f(t[s[r]],t));return a}var d1=Eo,Bo=RB,AC=WB,lC=jA,Ll=d1("%WeakMap%",!0),Fl=d1("%Map%",!0),uC=Bo("WeakMap.prototype.get",!0),cC=Bo("WeakMap.prototype.set",!0),fC=Bo("WeakMap.prototype.has",!0),dC=Bo("Map.prototype.get",!0),hC=Bo("Map.prototype.set",!0),pC=Bo("Map.prototype.has",!0),Sd=function(t,f){for(var e=t,a;(a=e.next)!==null;e=a)if(a.key===f)return e.next=a.next,a.next=t.next,t.next=a,a},mC=function(t,f){var e=Sd(t,f);return e&&e.value},gC=function(t,f,e){var a=Sd(t,f);a?a.value=e:t.next={key:f,next:t.next,value:e}},wC=function(t,f){return!!Sd(t,f)},bC=function(){var f,e,a,c={assert:function(s){if(!c.has(s))throw new lC("Side channel does not contain "+AC(s))},get:function(s){if(Ll&&s&&(typeof s=="object"||typeof s=="function")){if(f)return uC(f,s)}else if(Fl){if(e)return dC(e,s)}else if(a)return mC(a,s)},has:function(s){if(Ll&&s&&(typeof s=="object"||typeof s=="function")){if(f)return fC(f,s)}else if(Fl){if(e)return pC(e,s)}else if(a)return wC(a,s);return!1},set:function(s,i){Ll&&s&&(typeof s=="object"||typeof s=="function")?(f||(f=new Ll),cC(f,s,i)):Fl?(e||(e=new Fl),hC(e,s,i)):(a||(a={key:{},next:null}),gC(a,s,i))}};return c},vC=String.prototype.replace,yC=/%20/g,Xc={RFC1738:"RFC1738",RFC3986:"RFC3986"},Qd={default:Xc.RFC3986,formatters:{RFC1738:function(t){return vC.call(t,yC,"+")},RFC3986:function(t){return String(t)}},RFC1738:Xc.RFC1738,RFC3986:Xc.RFC3986},EC=Qd,$c=Object.prototype.hasOwnProperty,da=Array.isArray,Fi=function(){for(var t=[],f=0;f<256;++f)t.push("%"+((f<16?"0":"")+f.toString(16)).toUpperCase());return t}(),BC=function(f){for(;f.length>1;){var e=f.pop(),a=e.obj[e.prop];if(da(a)){for(var c=[],s=0;s<a.length;++s)typeof a[s]<"u"&&c.push(a[s]);e.obj[e.prop]=c}}},h1=function(f,e){for(var a=e&&e.plainObjects?Object.create(null):{},c=0;c<f.length;++c)typeof f[c]<"u"&&(a[c]=f[c]);return a},CC=function t(f,e,a){if(!e)return f;if(typeof e!="object"){if(da(f))f.push(e);else if(f&&typeof f=="object")(a&&(a.plainObjects||a.allowPrototypes)||!$c.call(Object.prototype,e))&&(f[e]=!0);else return[f,e];return f}if(!f||typeof f!="object")return[f].concat(e);var c=f;return da(f)&&!da(e)&&(c=h1(f,a)),da(f)&&da(e)?(e.forEach(function(s,i){if($c.call(f,i)){var o=f[i];o&&typeof o=="object"&&s&&typeof s=="object"?f[i]=t(o,s,a):f.push(s)}else f[i]=s}),f):Object.keys(e).reduce(function(s,i){var o=e[i];return $c.call(s,i)?s[i]=t(s[i],o,a):s[i]=o,s},c)},xC=function(f,e){return Object.keys(e).reduce(function(a,c){return a[c]=e[c],a},f)},IC=function(t,f,e){var a=t.replace(/\+/g," ");if(e==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},ef=1024,SC=function(f,e,a,c,s){if(f.length===0)return f;var i=f;if(typeof f=="symbol"?i=Symbol.prototype.toString.call(f):typeof f!="string"&&(i=String(f)),a==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var o="",n=0;n<i.length;n+=ef){for(var r=i.length>=ef?i.slice(n,n+ef):i,A=[],d=0;d<r.length;++d){var u=r.charCodeAt(d);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===EC.RFC1738&&(u===40||u===41)){A[A.length]=r.charAt(d);continue}if(u<128){A[A.length]=Fi[u];continue}if(u<2048){A[A.length]=Fi[192|u>>6]+Fi[128|u&63];continue}if(u<55296||u>=57344){A[A.length]=Fi[224|u>>12]+Fi[128|u>>6&63]+Fi[128|u&63];continue}d+=1,u=65536+((u&1023)<<10|r.charCodeAt(d)&1023),A[A.length]=Fi[240|u>>18]+Fi[128|u>>12&63]+Fi[128|u>>6&63]+Fi[128|u&63]}o+=A.join("")}return o},QC=function(f){for(var e=[{obj:{o:f},prop:"o"}],a=[],c=0;c<e.length;++c)for(var s=e[c],i=s.obj[s.prop],o=Object.keys(i),n=0;n<o.length;++n){var r=o[n],A=i[r];typeof A=="object"&&A!==null&&a.indexOf(A)===-1&&(e.push({obj:i,prop:r}),a.push(A))}return BC(e),f},MC=function(f){return Object.prototype.toString.call(f)==="[object RegExp]"},RC=function(f){return!f||typeof f!="object"?!1:!!(f.constructor&&f.constructor.isBuffer&&f.constructor.isBuffer(f))},LC=function(f,e){return[].concat(f,e)},FC=function(f,e){if(da(f)){for(var a=[],c=0;c<f.length;c+=1)a.push(e(f[c]));return a}return e(f)},p1={arrayToObject:h1,assign:xC,combine:LC,compact:QC,decode:IC,encode:SC,isBuffer:RC,isRegExp:MC,maybeMap:FC,merge:CC},m1=bC,Wl=p1,wA=Qd,DC=Object.prototype.hasOwnProperty,g1={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,e){return f+"["+e+"]"},repeat:function(f){return f}},_i=Array.isArray,_C=Array.prototype.push,w1=function(t,f){_C.apply(t,_i(f)?f:[f])},PC=Date.prototype.toISOString,r0=wA.default,an={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Wl.encode,encodeValuesOnly:!1,format:r0,formatter:wA.formatters[r0],indices:!1,serializeDate:function(f){return PC.call(f)},skipNulls:!1,strictNullHandling:!1},kC=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},tf={},NC=function t(f,e,a,c,s,i,o,n,r,A,d,u,l,p,m,h,g,w){for(var v=f,x=w,L=0,k=!1;(x=x.get(tf))!==void 0&&!k;){var Y=x.get(f);if(L+=1,typeof Y<"u"){if(Y===L)throw new RangeError("Cyclic object value");k=!0}typeof x.get(tf)>"u"&&(L=0)}if(typeof A=="function"?v=A(e,v):v instanceof Date?v=l(v):a==="comma"&&_i(v)&&(v=Wl.maybeMap(v,function(S){return S instanceof Date?l(S):S})),v===null){if(i)return r&&!h?r(e,an.encoder,g,"key",p):e;v=""}if(kC(v)||Wl.isBuffer(v)){if(r){var F=h?e:r(e,an.encoder,g,"key",p);return[m(F)+"="+m(r(v,an.encoder,g,"value",p))]}return[m(e)+"="+m(String(v))]}var O=[];if(typeof v>"u")return O;var W;if(a==="comma"&&_i(v))h&&r&&(v=Wl.maybeMap(v,r)),W=[{value:v.length>0?v.join(",")||null:void 0}];else if(_i(A))W=A;else{var G=Object.keys(v);W=d?G.sort(d):G}var D=n?e.replace(/\./g,"%2E"):e,I=c&&_i(v)&&v.length===1?D+"[]":D;if(s&&_i(v)&&v.length===0)return I+"[]";for(var M=0;M<W.length;++M){var C=W[M],b=typeof C=="object"&&typeof C.value<"u"?C.value:v[C];if(!(o&&b===null)){var y=u&&n?C.replace(/\./g,"%2E"):C,E=_i(v)?typeof a=="function"?a(I,y):I:I+(u?"."+y:"["+y+"]");w.set(f,L);var B=m1();B.set(tf,w),w1(O,t(b,E,a,c,s,i,o,n,a==="comma"&&h&&_i(v)?null:r,A,d,u,l,p,m,h,g,B))}}return O},jC=function(f){if(!f)return an;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var e=f.charset||an.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=wA.default;if(typeof f.format<"u"){if(!DC.call(wA.formatters,f.format))throw new TypeError("Unknown format option provided.");a=f.format}var c=wA.formatters[a],s=an.filter;(typeof f.filter=="function"||_i(f.filter))&&(s=f.filter);var i;if(f.arrayFormat in g1?i=f.arrayFormat:"indices"in f?i=f.indices?"indices":"repeat":i=an.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:an.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:an.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:an.allowEmptyArrays,arrayFormat:i,charset:e,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:an.charsetSentinel,commaRoundTrip:f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?an.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:an.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:an.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:an.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:an.encodeValuesOnly,filter:s,format:a,formatter:c,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:an.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:an.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:an.strictNullHandling}},TC=function(t,f){var e=t,a=jC(f),c,s;typeof a.filter=="function"?(s=a.filter,e=s("",e)):_i(a.filter)&&(s=a.filter,c=s);var i=[];if(typeof e!="object"||e===null)return"";var o=g1[a.arrayFormat],n=o==="comma"&&a.commaRoundTrip;c||(c=Object.keys(e)),a.sort&&c.sort(a.sort);for(var r=m1(),A=0;A<c.length;++A){var d=c[A];a.skipNulls&&e[d]===null||w1(i,NC(e[d],d,o,n,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,r))}var u=i.join(a.delimiter),l=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),u.length>0?l+u:""},wo=p1,Tf=Object.prototype.hasOwnProperty,YC=Array.isArray,Hr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:wo.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},OC=function(t){return t.replace(/&#(\d+);/g,function(f,e){return String.fromCharCode(parseInt(e,10))})},b1=function(t,f){return t&&typeof t=="string"&&f.comma&&t.indexOf(",")>-1?t.split(","):t},GC="utf8=%26%2310003%3B",WC="utf8=%E2%9C%93",VC=function(f,e){var a={__proto__:null},c=e.ignoreQueryPrefix?f.replace(/^\?/,""):f;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=e.parameterLimit===1/0?void 0:e.parameterLimit,i=c.split(e.delimiter,s),o=-1,n,r=e.charset;if(e.charsetSentinel)for(n=0;n<i.length;++n)i[n].indexOf("utf8=")===0&&(i[n]===WC?r="utf-8":i[n]===GC&&(r="iso-8859-1"),o=n,n=i.length);for(n=0;n<i.length;++n)if(n!==o){var A=i[n],d=A.indexOf("]="),u=d===-1?A.indexOf("="):d+1,l,p;u===-1?(l=e.decoder(A,Hr.decoder,r,"key"),p=e.strictNullHandling?null:""):(l=e.decoder(A.slice(0,u),Hr.decoder,r,"key"),p=wo.maybeMap(b1(A.slice(u+1),e),function(h){return e.decoder(h,Hr.decoder,r,"value")})),p&&e.interpretNumericEntities&&r==="iso-8859-1"&&(p=OC(p)),A.indexOf("[]=")>-1&&(p=YC(p)?[p]:p);var m=Tf.call(a,l);m&&e.duplicates==="combine"?a[l]=wo.combine(a[l],p):(!m||e.duplicates==="last")&&(a[l]=p)}return a},HC=function(t,f,e,a){for(var c=a?f:b1(f,e),s=t.length-1;s>=0;--s){var i,o=t[s];if(o==="[]"&&e.parseArrays)i=e.allowEmptyArrays&&(c===""||e.strictNullHandling&&c===null)?[]:[].concat(c);else{i=e.plainObjects?Object.create(null):{};var n=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,r=e.decodeDotInKeys?n.replace(/%2E/g,"."):n,A=parseInt(r,10);!e.parseArrays&&r===""?i={0:c}:!isNaN(A)&&o!==r&&String(A)===r&&A>=0&&e.parseArrays&&A<=e.arrayLimit?(i=[],i[A]=c):r!=="__proto__"&&(i[r]=c)}c=i}return c},UC=function(f,e,a,c){if(f){var s=a.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,n=a.depth>0&&i.exec(s),r=n?s.slice(0,n.index):s,A=[];if(r){if(!a.plainObjects&&Tf.call(Object.prototype,r)&&!a.allowPrototypes)return;A.push(r)}for(var d=0;a.depth>0&&(n=o.exec(s))!==null&&d<a.depth;){if(d+=1,!a.plainObjects&&Tf.call(Object.prototype,n[1].slice(1,-1))&&!a.allowPrototypes)return;A.push(n[1])}return n&&A.push("["+s.slice(n.index)+"]"),HC(A,e,a,c)}},zC=function(f){if(!f)return Hr;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=typeof f.charset>"u"?Hr.charset:f.charset,a=typeof f.duplicates>"u"?Hr.duplicates:f.duplicates;if(a!=="combine"&&a!=="first"&&a!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var c=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:Hr.allowDots:!!f.allowDots;return{allowDots:c,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:Hr.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:Hr.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:Hr.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:Hr.arrayLimit,charset:e,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:Hr.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:Hr.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:Hr.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:Hr.decoder,delimiter:typeof f.delimiter=="string"||wo.isRegExp(f.delimiter)?f.delimiter:Hr.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:Hr.depth,duplicates:a,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:Hr.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:Hr.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:Hr.plainObjects,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:Hr.strictNullHandling}},KC=function(t,f){var e=zC(f);if(t===""||t===null||typeof t>"u")return e.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?VC(t,e):t,c=e.plainObjects?Object.create(null):{},s=Object.keys(a),i=0;i<s.length;++i){var o=s[i],n=UC(o,a[o],e,typeof t=="string");c=wo.merge(c,n,e)}return e.allowSparse===!0?c:wo.compact(c)},JC=TC,ZC=KC,qC=Qd,XC={formats:qC,parse:ZC,stringify:JC};const $C=mu(XC),e4=["innerHTML"],t4={key:2},r4={key:3},n4=["colspan"],i4={__name:"TableServer",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:f}){const{searchState:e,headersState:a,advancedFiltersState:c}=La(),{tableData:s}=gg(),i=Q.inject("table_props"),o=Q.useModel(t,"modelValue"),n=Q.ref(null),r=Q.ref(!1),A=Q.ref(0),d=m=>m!=null&&m.lock?null:`item.${m.key}`,u=async({page:m,itemsPerPage:h,sortBy:g,search:w})=>{const{url:v,options:x}=i.api.get({search:w,page:m,itemsPerPage:h,sortBy:g,advancedFilters:c.value});let L="";return x.query&&(L=`?${$C.stringify(x.query)}`),await sy(`${v}${L}`,{...x}).json()},l=async()=>{const m=n.value.sortBy,h=n.value.search,{data:g}=await u({page:1,itemsPerPage:-1,sortBy:m,search:h});return g.value.data},p=async({page:m,itemsPerPage:h,sortBy:g,search:w})=>{r.value=!0;const{data:v}=await u({page:m,itemsPerPage:h,sortBy:g,search:w});s.value=v.value.data,A.value=v.value.total,r.value=!1};return Q.watch(c,()=>{const m=n.value.page,h=n.value.itemsPerPage,g=n.value.sortBy,w=n.value.search;p({page:m,itemsPerPage:h,sortBy:g,search:w})}),f({getItemsForPrint:l}),(m,h)=>(Q.openBlock(),Q.createBlock(I5,Q.mergeProps({ref_key:"datatableServer",ref:n,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=g=>o.value=g),color:"primary","show-select":"",items:Q.unref(s),"items-length":Q.unref(A),loading:Q.unref(r),search:Q.unref(e)},Q.unref(i).options,{"onUpdate:options":p,headers:Q.unref(a)}),Q.createSlots({loading:Q.withCtx(()=>[Q.createVNode($g,{type:"table-row@10"})]),"expanded-row":Q.withCtx(({columns:g,item:w})=>[Q.createElementVNode("tr",null,[Q.createElementVNode("td",{colspan:g.length},[Q.unref(i).options.expandedRowRenderer?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(Q.unref(i).options.expandedRowRenderer),{key:0,params:{columns:g,item:w}},null,8,["params"])):Q.createCommentVNode("",!0)],8,n4)])]),_:2},[Q.renderList(Q.unref(a),(g,w)=>({name:d(g),fn:Q.withCtx(({item:v,internalItem:x,value:L,column:k})=>[Q.createElementVNode("div",{class:Q.normalizeClass(k.cellClass)},[k.cellRendererFramework?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(typeof k.cellRendererFramework=="string"?Q.unref(wg)()[k.cellRendererFramework]:k.cellRendererFramework),{key:0,params:{item:v,internalItem:x,value:L,column:k},cellRendererFrameworkParams:k.cellRendererFrameworkParams?k.cellRendererFrameworkParams({item:v,internalItem:x,value:L,column:k}):{}},null,8,["params","cellRendererFrameworkParams"])):k.cellRenderer?(Q.openBlock(),Q.createElementBlock("span",Q.mergeProps({key:1},k!=null&&k.cellRendererParams?k.cellRendererParams({item:v,internalItem:x,value:L,column:k}):{},{innerHTML:k.cellRenderer({item:v,internalItem:x,value:L,column:k})}),null,16,e4)):k.valueFormatter?(Q.openBlock(),Q.createElementBlock("span",t4,Q.toDisplayString(k.valueFormatter({item:v,internalItem:x,value:L,column:k})),1)):(Q.openBlock(),Q.createElementBlock("span",r4,Q.toDisplayString(String(L).length||String(L)==="0"?L:"-"),1))],2)])}))]),1040,["modelValue","items","items-length","loading","search","headers"]))}},s4={class:"pe-4"},a4={__name:"Blueprint",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const f=Q.useModel(t,"modelValue"),e=Q.inject("table_props"),a=Q.ref(null),c=Q.ref(!1);return Q.provide("tableRef",a),Q.provide("downloadModal",c),(s,i)=>{const o=FE;return Q.openBlock(),Q.createElementBlock(Q.Fragment,null,[Q.createVNode(hd,null,{default:Q.withCtx(()=>[Q.createVNode(_u,null,{default:Q.withCtx(()=>[Q.createVNode(o)]),_:1}),Q.createVNode(Pu,{class:"pa-0"},{default:Q.withCtx(()=>[(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(Q.unref(e).api?i4:_5),{ref_key:"tableRef",ref:a,modelValue:f.value,"onUpdate:modelValue":i[0]||(i[0]=n=>f.value=n)},null,8,["modelValue"]))]),_:1})]),_:1}),Q.createVNode(pd,{modelValue:Q.unref(c),"onUpdate:modelValue":i[1]||(i[1]=n=>Q.isRef(c)?c.value=n:null),"max-width":"350",persistent:""},{default:Q.withCtx(()=>[Q.createVNode(PA,{class:"py-2",color:"primary",elevation:"12",rounded:"lg"},{default:Q.withCtx(()=>[Q.createVNode(Zs,{"prepend-icon":"mdi-file-download",title:"Preparing file for download..."},{prepend:Q.withCtx(()=>[Q.createElementVNode("div",s4,[Q.createVNode(Tr,{color:"primary",size:"x-large"})])]),append:Q.withCtx(()=>[Q.createVNode(J0,{color:"primary",indeterminate:"disable-shrink",size:"16",width:"2"})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}},o4={__name:"index",props:{id:{type:String,default:"default",required:!0},api:{type:Object,default:()=>{}},data:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},hardFilters:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},locale:{type:String,default:"en"},title:{type:String,default:""}},emits:["refreshTable"],setup(t,{emit:f}){const e=t,a=yo(),{dataStateGet:c,tableDataState:s,checkTableState:i}=Xm(e),{addTable:o,restoreData:n,setTableHash:r}=a,A=f,d=Q.ref(!1);return Q.onMounted(async()=>{o({table_id:e.id}),await i();const u=c();if(u)n({table_id:e.id,data:u});else{const l=s.value.options.columns;l.selected=e.headers.filter(p=>!p.hidden).map(p=>p.key),l.sorted=e.headers.map(p=>p.key)}await Q.nextTick(),d.value=!0}),Q.provide("table_props",e),Q.provide("busEmits",A),(u,l)=>{const p=a4;return Q.unref(d)?(Q.openBlock(),Q.createBlock(p,{ref:"table",id:t.id,key:t.id,onGetData:l[0]||(l[0]=m=>u.$emit("getData")),onRowData:l[1]||(l[1]=m=>u.$emit("rowData",m))},null,8,["id"])):Q.createCommentVNode("",!0)}}},A4=Object.freeze(Object.defineProperty({__proto__:null,default:o4},Symbol.toStringTag,{value:"Module"}));exports._typeof=wr;exports.commonjsGlobal=Ht;exports.getDefaultExportFromCjs=mu;exports.index=A4;
|
|
322
|
+
`+f.prev}function Rl(t,f){var e=Nf(t),a=[];if(e){a.length=t.length;for(var c=0;c<t.length;c++)a[c]=Ys(t,c)?f(t[c],t):""}var s=typeof Zc=="function"?Zc(t):[],i;if(go){i={};for(var o=0;o<s.length;o++)i["$"+s[o]]=s[o]}for(var n in t)Ys(t,n)&&(e&&String(Number(n))===n&&n<t.length||go&&i["$"+n]instanceof Symbol||(o1.call(/[^\w$]/,n)?a.push(f(n,t)+": "+f(t[n],t)):a.push(n+": "+f(t[n],t))));if(typeof Zc=="function")for(var r=0;r<s.length;r++)A1.call(t,s[r])&&a.push("["+f(s[r])+"]: "+f(t[s[r]],t));return a}var d1=Eo,Bo=RB,AC=WB,lC=jA,Ll=d1("%WeakMap%",!0),Fl=d1("%Map%",!0),uC=Bo("WeakMap.prototype.get",!0),cC=Bo("WeakMap.prototype.set",!0),fC=Bo("WeakMap.prototype.has",!0),dC=Bo("Map.prototype.get",!0),hC=Bo("Map.prototype.set",!0),pC=Bo("Map.prototype.has",!0),Sd=function(t,f){for(var e=t,a;(a=e.next)!==null;e=a)if(a.key===f)return e.next=a.next,a.next=t.next,t.next=a,a},mC=function(t,f){var e=Sd(t,f);return e&&e.value},gC=function(t,f,e){var a=Sd(t,f);a?a.value=e:t.next={key:f,next:t.next,value:e}},wC=function(t,f){return!!Sd(t,f)},bC=function(){var f,e,a,c={assert:function(s){if(!c.has(s))throw new lC("Side channel does not contain "+AC(s))},get:function(s){if(Ll&&s&&(typeof s=="object"||typeof s=="function")){if(f)return uC(f,s)}else if(Fl){if(e)return dC(e,s)}else if(a)return mC(a,s)},has:function(s){if(Ll&&s&&(typeof s=="object"||typeof s=="function")){if(f)return fC(f,s)}else if(Fl){if(e)return pC(e,s)}else if(a)return wC(a,s);return!1},set:function(s,i){Ll&&s&&(typeof s=="object"||typeof s=="function")?(f||(f=new Ll),cC(f,s,i)):Fl?(e||(e=new Fl),hC(e,s,i)):(a||(a={key:{},next:null}),gC(a,s,i))}};return c},vC=String.prototype.replace,yC=/%20/g,Xc={RFC1738:"RFC1738",RFC3986:"RFC3986"},Qd={default:Xc.RFC3986,formatters:{RFC1738:function(t){return vC.call(t,yC,"+")},RFC3986:function(t){return String(t)}},RFC1738:Xc.RFC1738,RFC3986:Xc.RFC3986},EC=Qd,$c=Object.prototype.hasOwnProperty,da=Array.isArray,Fi=function(){for(var t=[],f=0;f<256;++f)t.push("%"+((f<16?"0":"")+f.toString(16)).toUpperCase());return t}(),BC=function(f){for(;f.length>1;){var e=f.pop(),a=e.obj[e.prop];if(da(a)){for(var c=[],s=0;s<a.length;++s)typeof a[s]<"u"&&c.push(a[s]);e.obj[e.prop]=c}}},h1=function(f,e){for(var a=e&&e.plainObjects?Object.create(null):{},c=0;c<f.length;++c)typeof f[c]<"u"&&(a[c]=f[c]);return a},CC=function t(f,e,a){if(!e)return f;if(typeof e!="object"){if(da(f))f.push(e);else if(f&&typeof f=="object")(a&&(a.plainObjects||a.allowPrototypes)||!$c.call(Object.prototype,e))&&(f[e]=!0);else return[f,e];return f}if(!f||typeof f!="object")return[f].concat(e);var c=f;return da(f)&&!da(e)&&(c=h1(f,a)),da(f)&&da(e)?(e.forEach(function(s,i){if($c.call(f,i)){var o=f[i];o&&typeof o=="object"&&s&&typeof s=="object"?f[i]=t(o,s,a):f.push(s)}else f[i]=s}),f):Object.keys(e).reduce(function(s,i){var o=e[i];return $c.call(s,i)?s[i]=t(s[i],o,a):s[i]=o,s},c)},xC=function(f,e){return Object.keys(e).reduce(function(a,c){return a[c]=e[c],a},f)},IC=function(t,f,e){var a=t.replace(/\+/g," ");if(e==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},ef=1024,SC=function(f,e,a,c,s){if(f.length===0)return f;var i=f;if(typeof f=="symbol"?i=Symbol.prototype.toString.call(f):typeof f!="string"&&(i=String(f)),a==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var o="",n=0;n<i.length;n+=ef){for(var r=i.length>=ef?i.slice(n,n+ef):i,A=[],d=0;d<r.length;++d){var u=r.charCodeAt(d);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===EC.RFC1738&&(u===40||u===41)){A[A.length]=r.charAt(d);continue}if(u<128){A[A.length]=Fi[u];continue}if(u<2048){A[A.length]=Fi[192|u>>6]+Fi[128|u&63];continue}if(u<55296||u>=57344){A[A.length]=Fi[224|u>>12]+Fi[128|u>>6&63]+Fi[128|u&63];continue}d+=1,u=65536+((u&1023)<<10|r.charCodeAt(d)&1023),A[A.length]=Fi[240|u>>18]+Fi[128|u>>12&63]+Fi[128|u>>6&63]+Fi[128|u&63]}o+=A.join("")}return o},QC=function(f){for(var e=[{obj:{o:f},prop:"o"}],a=[],c=0;c<e.length;++c)for(var s=e[c],i=s.obj[s.prop],o=Object.keys(i),n=0;n<o.length;++n){var r=o[n],A=i[r];typeof A=="object"&&A!==null&&a.indexOf(A)===-1&&(e.push({obj:i,prop:r}),a.push(A))}return BC(e),f},MC=function(f){return Object.prototype.toString.call(f)==="[object RegExp]"},RC=function(f){return!f||typeof f!="object"?!1:!!(f.constructor&&f.constructor.isBuffer&&f.constructor.isBuffer(f))},LC=function(f,e){return[].concat(f,e)},FC=function(f,e){if(da(f)){for(var a=[],c=0;c<f.length;c+=1)a.push(e(f[c]));return a}return e(f)},p1={arrayToObject:h1,assign:xC,combine:LC,compact:QC,decode:IC,encode:SC,isBuffer:RC,isRegExp:MC,maybeMap:FC,merge:CC},m1=bC,Wl=p1,wA=Qd,DC=Object.prototype.hasOwnProperty,g1={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,e){return f+"["+e+"]"},repeat:function(f){return f}},_i=Array.isArray,_C=Array.prototype.push,w1=function(t,f){_C.apply(t,_i(f)?f:[f])},PC=Date.prototype.toISOString,r0=wA.default,an={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Wl.encode,encodeValuesOnly:!1,format:r0,formatter:wA.formatters[r0],indices:!1,serializeDate:function(f){return PC.call(f)},skipNulls:!1,strictNullHandling:!1},kC=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},tf={},NC=function t(f,e,a,c,s,i,o,n,r,A,d,u,l,p,m,h,g,w){for(var v=f,x=w,L=0,k=!1;(x=x.get(tf))!==void 0&&!k;){var Y=x.get(f);if(L+=1,typeof Y<"u"){if(Y===L)throw new RangeError("Cyclic object value");k=!0}typeof x.get(tf)>"u"&&(L=0)}if(typeof A=="function"?v=A(e,v):v instanceof Date?v=l(v):a==="comma"&&_i(v)&&(v=Wl.maybeMap(v,function(S){return S instanceof Date?l(S):S})),v===null){if(i)return r&&!h?r(e,an.encoder,g,"key",p):e;v=""}if(kC(v)||Wl.isBuffer(v)){if(r){var F=h?e:r(e,an.encoder,g,"key",p);return[m(F)+"="+m(r(v,an.encoder,g,"value",p))]}return[m(e)+"="+m(String(v))]}var O=[];if(typeof v>"u")return O;var W;if(a==="comma"&&_i(v))h&&r&&(v=Wl.maybeMap(v,r)),W=[{value:v.length>0?v.join(",")||null:void 0}];else if(_i(A))W=A;else{var G=Object.keys(v);W=d?G.sort(d):G}var D=n?e.replace(/\./g,"%2E"):e,I=c&&_i(v)&&v.length===1?D+"[]":D;if(s&&_i(v)&&v.length===0)return I+"[]";for(var M=0;M<W.length;++M){var C=W[M],b=typeof C=="object"&&typeof C.value<"u"?C.value:v[C];if(!(o&&b===null)){var y=u&&n?C.replace(/\./g,"%2E"):C,E=_i(v)?typeof a=="function"?a(I,y):I:I+(u?"."+y:"["+y+"]");w.set(f,L);var B=m1();B.set(tf,w),w1(O,t(b,E,a,c,s,i,o,n,a==="comma"&&h&&_i(v)?null:r,A,d,u,l,p,m,h,g,B))}}return O},jC=function(f){if(!f)return an;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var e=f.charset||an.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=wA.default;if(typeof f.format<"u"){if(!DC.call(wA.formatters,f.format))throw new TypeError("Unknown format option provided.");a=f.format}var c=wA.formatters[a],s=an.filter;(typeof f.filter=="function"||_i(f.filter))&&(s=f.filter);var i;if(f.arrayFormat in g1?i=f.arrayFormat:"indices"in f?i=f.indices?"indices":"repeat":i=an.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:an.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:an.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:an.allowEmptyArrays,arrayFormat:i,charset:e,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:an.charsetSentinel,commaRoundTrip:f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?an.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:an.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:an.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:an.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:an.encodeValuesOnly,filter:s,format:a,formatter:c,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:an.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:an.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:an.strictNullHandling}},TC=function(t,f){var e=t,a=jC(f),c,s;typeof a.filter=="function"?(s=a.filter,e=s("",e)):_i(a.filter)&&(s=a.filter,c=s);var i=[];if(typeof e!="object"||e===null)return"";var o=g1[a.arrayFormat],n=o==="comma"&&a.commaRoundTrip;c||(c=Object.keys(e)),a.sort&&c.sort(a.sort);for(var r=m1(),A=0;A<c.length;++A){var d=c[A];a.skipNulls&&e[d]===null||w1(i,NC(e[d],d,o,n,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,r))}var u=i.join(a.delimiter),l=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),u.length>0?l+u:""},wo=p1,Tf=Object.prototype.hasOwnProperty,YC=Array.isArray,Hr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:wo.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},OC=function(t){return t.replace(/&#(\d+);/g,function(f,e){return String.fromCharCode(parseInt(e,10))})},b1=function(t,f){return t&&typeof t=="string"&&f.comma&&t.indexOf(",")>-1?t.split(","):t},GC="utf8=%26%2310003%3B",WC="utf8=%E2%9C%93",VC=function(f,e){var a={__proto__:null},c=e.ignoreQueryPrefix?f.replace(/^\?/,""):f;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=e.parameterLimit===1/0?void 0:e.parameterLimit,i=c.split(e.delimiter,s),o=-1,n,r=e.charset;if(e.charsetSentinel)for(n=0;n<i.length;++n)i[n].indexOf("utf8=")===0&&(i[n]===WC?r="utf-8":i[n]===GC&&(r="iso-8859-1"),o=n,n=i.length);for(n=0;n<i.length;++n)if(n!==o){var A=i[n],d=A.indexOf("]="),u=d===-1?A.indexOf("="):d+1,l,p;u===-1?(l=e.decoder(A,Hr.decoder,r,"key"),p=e.strictNullHandling?null:""):(l=e.decoder(A.slice(0,u),Hr.decoder,r,"key"),p=wo.maybeMap(b1(A.slice(u+1),e),function(h){return e.decoder(h,Hr.decoder,r,"value")})),p&&e.interpretNumericEntities&&r==="iso-8859-1"&&(p=OC(p)),A.indexOf("[]=")>-1&&(p=YC(p)?[p]:p);var m=Tf.call(a,l);m&&e.duplicates==="combine"?a[l]=wo.combine(a[l],p):(!m||e.duplicates==="last")&&(a[l]=p)}return a},HC=function(t,f,e,a){for(var c=a?f:b1(f,e),s=t.length-1;s>=0;--s){var i,o=t[s];if(o==="[]"&&e.parseArrays)i=e.allowEmptyArrays&&(c===""||e.strictNullHandling&&c===null)?[]:[].concat(c);else{i=e.plainObjects?Object.create(null):{};var n=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,r=e.decodeDotInKeys?n.replace(/%2E/g,"."):n,A=parseInt(r,10);!e.parseArrays&&r===""?i={0:c}:!isNaN(A)&&o!==r&&String(A)===r&&A>=0&&e.parseArrays&&A<=e.arrayLimit?(i=[],i[A]=c):r!=="__proto__"&&(i[r]=c)}c=i}return c},UC=function(f,e,a,c){if(f){var s=a.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,n=a.depth>0&&i.exec(s),r=n?s.slice(0,n.index):s,A=[];if(r){if(!a.plainObjects&&Tf.call(Object.prototype,r)&&!a.allowPrototypes)return;A.push(r)}for(var d=0;a.depth>0&&(n=o.exec(s))!==null&&d<a.depth;){if(d+=1,!a.plainObjects&&Tf.call(Object.prototype,n[1].slice(1,-1))&&!a.allowPrototypes)return;A.push(n[1])}return n&&A.push("["+s.slice(n.index)+"]"),HC(A,e,a,c)}},zC=function(f){if(!f)return Hr;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=typeof f.charset>"u"?Hr.charset:f.charset,a=typeof f.duplicates>"u"?Hr.duplicates:f.duplicates;if(a!=="combine"&&a!=="first"&&a!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var c=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:Hr.allowDots:!!f.allowDots;return{allowDots:c,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:Hr.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:Hr.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:Hr.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:Hr.arrayLimit,charset:e,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:Hr.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:Hr.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:Hr.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:Hr.decoder,delimiter:typeof f.delimiter=="string"||wo.isRegExp(f.delimiter)?f.delimiter:Hr.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:Hr.depth,duplicates:a,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:Hr.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:Hr.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:Hr.plainObjects,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:Hr.strictNullHandling}},KC=function(t,f){var e=zC(f);if(t===""||t===null||typeof t>"u")return e.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?VC(t,e):t,c=e.plainObjects?Object.create(null):{},s=Object.keys(a),i=0;i<s.length;++i){var o=s[i],n=UC(o,a[o],e,typeof t=="string");c=wo.merge(c,n,e)}return e.allowSparse===!0?c:wo.compact(c)},JC=TC,ZC=KC,qC=Qd,XC={formats:qC,parse:ZC,stringify:JC};const $C=mu(XC),e4=["innerHTML"],t4={key:2},r4={key:3},n4=["colspan"],i4={__name:"TableServer",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:f}){const{searchState:e,headersState:a,advancedFiltersState:c}=La(),{tableData:s}=gg(),i=Q.inject("table_props"),o=Q.useModel(t,"modelValue"),n=Q.ref(null),r=Q.ref(!1),A=Q.ref(0),d=m=>m!=null&&m.lock?null:`item.${m.key}`,u=async({page:m,itemsPerPage:h,sortBy:g,search:w})=>{const{url:v,options:x}=i.api.get({search:w,page:m,itemsPerPage:h,sortBy:g,advancedFilters:c.value});let L="";return x.query&&(L=`?${$C.stringify(x.query)}`),await sy(`${v}${L}`,{...x}).json()},l=async()=>{const m=n.value.sortBy,h=n.value.search,{data:g}=await u({page:1,itemsPerPage:-1,sortBy:m,search:h});return g.value.data},p=async({page:m,itemsPerPage:h,sortBy:g,search:w})=>{r.value=!0;const{data:v}=await u({page:m,itemsPerPage:h,sortBy:g,search:w});s.value=v.value.data,A.value=v.value.total,r.value=!1};return Q.watch(c,()=>{const m=n.value.page,h=n.value.itemsPerPage,g=n.value.sortBy,w=n.value.search;p({page:m,itemsPerPage:h,sortBy:g,search:w})}),f({getItemsForPrint:l}),(m,h)=>(Q.openBlock(),Q.createBlock(I5,Q.mergeProps({ref_key:"datatableServer",ref:n,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=g=>o.value=g),color:"primary","show-select":"",items:Q.unref(s),"items-length":Q.unref(A),loading:Q.unref(r),search:Q.unref(e)},Q.unref(i).options,{"onUpdate:options":p,headers:Q.unref(a)}),Q.createSlots({loading:Q.withCtx(()=>[Q.createVNode($g,{type:"table-row@10"})]),"expanded-row":Q.withCtx(({columns:g,item:w})=>[Q.createElementVNode("tr",null,[Q.createElementVNode("td",{colspan:g.length},[Q.unref(i).options.expandedRowRenderer?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(Q.unref(i).options.expandedRowRenderer),{key:0,params:{columns:g,item:w}},null,8,["params"])):Q.createCommentVNode("",!0)],8,n4)])]),_:2},[Q.renderList(Q.unref(a),(g,w)=>({name:d(g),fn:Q.withCtx(({item:v,internalItem:x,value:L,column:k})=>[Q.createElementVNode("div",{class:Q.normalizeClass(k.cellClass)},[k.cellRendererFramework?(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(typeof k.cellRendererFramework=="string"?Q.unref(wg)()[k.cellRendererFramework]:k.cellRendererFramework),{key:0,params:{item:v,internalItem:x,value:L,column:k},cellRendererFrameworkParams:k.cellRendererFrameworkParams?k.cellRendererFrameworkParams({item:v,internalItem:x,value:L,column:k}):{}},null,8,["params","cellRendererFrameworkParams"])):k.cellRenderer?(Q.openBlock(),Q.createElementBlock("span",Q.mergeProps({key:1},k!=null&&k.cellRendererParams?k.cellRendererParams({item:v,internalItem:x,value:L,column:k}):{},{innerHTML:k.cellRenderer({item:v,internalItem:x,value:L,column:k})}),null,16,e4)):k.valueFormatter?(Q.openBlock(),Q.createElementBlock("span",t4,Q.toDisplayString(k.valueFormatter({item:v,internalItem:x,value:L,column:k})),1)):(Q.openBlock(),Q.createElementBlock("span",r4,Q.toDisplayString(String(L).length||String(L)==="0"?L:"-"),1))],2)])}))]),1040,["modelValue","items","items-length","loading","search","headers"]))}},s4={class:"pe-4"},a4={__name:"Blueprint",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const f=Q.useModel(t,"modelValue"),e=Q.inject("table_props"),a=Q.ref(null),c=Q.ref(!1);return Q.provide("tableRef",a),Q.provide("downloadModal",c),(s,i)=>{const o=FE;return Q.openBlock(),Q.createElementBlock(Q.Fragment,null,[Q.createVNode(hd,null,{default:Q.withCtx(()=>[Q.createVNode(_u,null,{default:Q.withCtx(()=>[Q.createVNode(o)]),_:1}),Q.createVNode(Pu,{class:"pa-0"},{default:Q.withCtx(()=>[(Q.openBlock(),Q.createBlock(Q.resolveDynamicComponent(Q.unref(e).api?i4:_5),{ref_key:"tableRef",ref:a,modelValue:f.value,"onUpdate:modelValue":i[0]||(i[0]=n=>f.value=n)},null,8,["modelValue"]))]),_:1})]),_:1}),Q.createVNode(pd,{modelValue:Q.unref(c),"onUpdate:modelValue":i[1]||(i[1]=n=>Q.isRef(c)?c.value=n:null),"max-width":"350",persistent:""},{default:Q.withCtx(()=>[Q.createVNode(PA,{class:"py-2",color:"primary",elevation:"12",rounded:"lg"},{default:Q.withCtx(()=>[Q.createVNode(Zs,{"prepend-icon":"mdi-file-download",title:s.$t("$datatables.preparing_download_file")},{prepend:Q.withCtx(()=>[Q.createElementVNode("div",s4,[Q.createVNode(Tr,{color:"primary",size:"x-large"})])]),append:Q.withCtx(()=>[Q.createVNode(J0,{color:"primary",indeterminate:"disable-shrink",size:"16",width:"2"})]),_:1},8,["title"])]),_:1})]),_:1},8,["modelValue"])],64)}}},o4={__name:"index",props:{id:{type:String,default:"default",required:!0},api:{type:Object,default:()=>{}},data:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},hardFilters:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},locale:{type:String,default:"en"},title:{type:String,default:""}},emits:["refreshTable"],setup(t,{emit:f}){const e=t,a=yo(),{dataStateGet:c,tableDataState:s,checkTableState:i}=Xm(e),{addTable:o,restoreData:n,setTableHash:r}=a,A=f,d=Q.ref(!1);return Q.onMounted(async()=>{o({table_id:e.id}),await i();const u=c();if(u)n({table_id:e.id,data:u});else{const l=s.value.options.columns;l.selected=e.headers.filter(p=>!p.hidden).map(p=>p.key),l.sorted=e.headers.map(p=>p.key)}await Q.nextTick(),d.value=!0}),Q.provide("table_props",e),Q.provide("busEmits",A),(u,l)=>{const p=a4;return Q.unref(d)?(Q.openBlock(),Q.createBlock(p,{ref:"table",id:t.id,key:t.id,onGetData:l[0]||(l[0]=m=>u.$emit("getData")),onRowData:l[1]||(l[1]=m=>u.$emit("rowData",m))},null,8,["id"])):Q.createCommentVNode("",!0)}}},A4=Object.freeze(Object.defineProperty({__proto__:null,default:o4},Symbol.toStringTag,{value:"Module"}));exports._typeof=wr;exports.commonjsGlobal=Ht;exports.getDefaultExportFromCjs=mu;exports.index=A4;
|