UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

23 lines 794 kB
window.ngxZone.runOutsideAngular(() => { /** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2022 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * JavaScript code in this page */ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?globalThis["pdfjs-dist/build/pdf"]=module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeof exports?globalThis["pdfjs-dist/build/pdf"]=exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsLib=t()}(globalThis,(()=>(()=>{var __webpack_modules__=[,(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0;t.arrayByteLength=arrayByteLength;t.arraysToBytes=function arraysToBytes(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let i=0;for(let n=0;n<t;n++)i+=arrayByteLength(e[n]);let n=0;const r=new Uint8Array(i);for(let i=0;i<t;i++){let t=e[i];t instanceof Uint8Array||(t="string"==typeof t?stringToBytes(t):new Uint8Array(t));const s=t.byteLength;r.set(t,n);n+=s}return r};t.assert=function assert(e,t){e||unreachable(t)};t.bytesToString=function bytesToString(e){"object"==typeof e&&null!==e&&void 0!==e.length||unreachable("Invalid argument for bytesToString");const t=e.length,i=8192;if(t<i)return String.fromCharCode.apply(null,e);const n=[];for(let r=0;r<t;r+=i){const s=Math.min(r+i,t),a=e.subarray(r,s);n.push(String.fromCharCode.apply(null,a))}return n.join("")};t.createPromiseCapability=function createPromiseCapability(){const e=Object.create(null);let t=!1;Object.defineProperty(e,"settled",{get:()=>t});e.promise=new Promise((function(i,n){e.resolve=function(e){t=!0;i(e)};e.reject=function(e){t=!0;n(e)}}));return e};t.createValidAbsoluteUrl=function createValidAbsoluteUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(i&&"string"==typeof e){if(i.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(i.tryConvertEncoding)try{e=stringToUTF8String(e)}catch(e){}}const n=t?new URL(e,t):new URL(e);if(_isValidProtocol(n))return n}catch(e){}return null};t.escapeString=function escapeString(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))};t.getModificationDate=function getModificationDate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")};t.getVerbosityLevel=function getVerbosityLevel(){return r};t.info=function info(e){r>=n.INFOS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log(`Info: ${e}`):Window&&Window.ngxConsole?Window.ngxConsole.log(`Info: ${e}`):console.log(`Info: ${e}`))};t.isArrayBuffer=function isArrayBuffer(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength};t.isArrayEqual=function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(e[i]!==t[i])return!1;return!0};t.isAscii=function isAscii(e){return/^[\x00-\x7F]*$/.test(e)};t.objectFromMap=function objectFromMap(e){const t=Object.create(null);for(const[i,n]of e)t[i]=n;return t};t.objectSize=function objectSize(e){return Object.keys(e).length};t.setVerbosityLevel=function setVerbosityLevel(e){Number.isInteger(e)&&(r=e)};t.shadow=shadow;t.string32=function string32(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)};t.stringToBytes=stringToBytes;t.stringToPDFString=function stringToPDFString(e){if(e[0]>="ï"){let t;"þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8");if(t)try{const i=new TextDecoder(t,{fatal:!0}),n=stringToBytes(e);return i.decode(n)}catch(e){warn(`stringToPDFString: "${e}".`)}}const t=[];for(let i=0,n=e.length;i<n;i++){const n=o[e.charCodeAt(i)];t.push(n?String.fromCharCode(n):e.charAt(i))}return t.join("")};t.stringToUTF16BEString=function stringToUTF16BEString(e){const t=["þÿ"];for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);t.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return t.join("")};t.stringToUTF8String=stringToUTF8String;t.unreachable=unreachable;t.utf8StringToString=function utf8StringToString(e){return unescape(encodeURIComponent(e))};t.warn=warn;i(2);t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.LINE_FACTOR=1.35;t.LINE_DESCENT_FACTOR=.35;t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationEditorPrefix="pdfjs_internal_editor_";t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.PageActionEventType={O:"PageOpen",C:"PageClose"};t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const n={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=n;t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let r=n.WARNINGS;function warn(e){r>=n.WARNINGS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log(`Warning: ${e}`):Window&&Window.ngxConsole?Window.ngxConsole.log(`Warning: ${e}`):console.log(`Warning: ${e}`))}function unreachable(e){throw new Error(e)}function _isValidProtocol(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return!0;default:return!1}}function shadow(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!1});return i}const s=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();t.BaseException=s;t.PasswordException=class PasswordException extends s{constructor(e,t){super(e,"PasswordException");this.code=t}};t.UnknownErrorException=class UnknownErrorException extends s{constructor(e,t){super(e,"UnknownErrorException");this.details=t}};t.InvalidPDFException=class InvalidPDFException extends s{constructor(e){super(e,"InvalidPDFException")}};t.MissingPDFException=class MissingPDFException extends s{constructor(e){super(e,"MissingPDFException")}};t.UnexpectedResponseException=class UnexpectedResponseException extends s{constructor(e,t){super(e,"UnexpectedResponseException");this.status=t}};t.FormatError=class FormatError extends s{constructor(e){super(e,"FormatError")}};t.AbortException=class AbortException extends s{constructor(e){super(e,"AbortException")}};function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,i=new Uint8Array(t);for(let n=0;n<t;++n)i[n]=255&e.charCodeAt(n);return i}function arrayByteLength(e){if(void 0!==e.length)return e.length;if(void 0!==e.byteLength)return e.byteLength;unreachable("Invalid argument for arrayByteLength")}t.FeatureTest=class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const a=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class Util{static makeHexColor(e,t,i){return`#${a[e]}${a[t]}${a[i]}`}static scaleMinMax(e,t){let i;if(e[0]){if(e[0]<0){i=t[0];t[0]=t[1];t[1]=i}t[0]*=e[0];t[1]*=e[0];if(e[3]<0){i=t[2];t[2]=t[3];t[3]=i}t[2]*=e[3];t[3]*=e[3]}else{i=t[0];t[0]=t[2];t[2]=i;i=t[1];t[1]=t[3];t[3]=i;if(e[1]<0){i=t[2];t[2]=t[3];t[3]=i}t[2]*=e[1];t[3]*=e[1];if(e[2]<0){i=t[0];t[0]=t[1];t[1]=i}t[0]*=e[2];t[1]*=e[2]}t[0]+=e[4];t[1]+=e[4];t[2]+=e[5];t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const i=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/i,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/i]}static getAxialAlignedBoundingBox(e,t){const i=Util.applyTransform(e,t),n=Util.applyTransform(e.slice(2,4),t),r=Util.applyTransform([e[0],e[3]],t),s=Util.applyTransform([e[2],e[1]],t);return[Math.min(i[0],n[0],r[0],s[0]),Math.min(i[1],n[1],r[1],s[1]),Math.max(i[0],n[0],r[0],s[0]),Math.max(i[1],n[1],r[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],i=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(i+s)/2,o=Math.sqrt((i+s)**2-4*(i*s-r*n))/2,l=a+o||1,c=a-o||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t}static intersect(e,t){const i=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),n=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(i>n)return null;const r=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return r>s?null:[i,r,n,s]}static bezierBoundingBox(e,t,i,n,r,s,a,o){const l=[],c=[[],[]];let d,h,u,p,g,f,m,v;for(let c=0;c<2;++c){if(0===c){h=6*e-12*i+6*r;d=-3*e+9*i-9*r+3*a;u=3*i-3*e}else{h=6*t-12*n+6*s;d=-3*t+9*n-9*s+3*o;u=3*n-3*t}if(Math.abs(d)<1e-12){if(Math.abs(h)<1e-12)continue;p=-u/h;0<p&&p<1&&l.push(p)}else{m=h*h-4*u*d;v=Math.sqrt(m);if(!(m<0)){g=(-h+v)/(2*d);0<g&&g<1&&l.push(g);f=(-h-v)/(2*d);0<f&&f<1&&l.push(f)}}}let _,b=l.length;const w=b;for(;b--;){p=l[b];_=1-p;c[0][b]=_*_*_*e+3*_*_*p*i+3*_*p*p*r+p*p*p*a;c[1][b]=_*_*_*t+3*_*_*p*n+3*_*p*p*s+p*p*p*o}c[0][w]=e;c[1][w]=t;c[0][w+1]=a;c[1][w+1]=o;c[0].length=c[1].length=w+2;return[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=Util;const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(e){return decodeURIComponent(escape(e))}},(e,t,i)=>{"use strict";if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){globalThis.btoa}();!function checkNodeAtob(){globalThis.atob}();!function checkDOMMatrix(){globalThis.DOMMatrix}();!function checkReadableStream(){globalThis.ReadableStream}();!function checkArrayAt(){Array.prototype.at||i(3)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||i(78)}();!function checkStructuredClone(){globalThis.structuredClone||i(88)}()}},(e,t,i)=>{i(4);var n=i(77);e.exports=n("Array","at")},(e,t,i)=>{"use strict";var n=i(5),r=i(43),s=i(67),a=i(65),o=i(72);n({target:"Array",proto:!0},{at:function at(e){var t=r(this),i=s(t),n=a(e),o=n>=0?n:i+n;return o<0||o>=i?void 0:t[o]}});o("at")},(e,t,i)=>{var n=i(6),r=i(7).f,s=i(47),a=i(51),o=i(41),l=i(59),c=i(71);e.exports=function(e,t){var i,d,h,u,p,g=e.target,f=e.global,m=e.stat;if(i=f?n:m?n[g]||o(g,{}):(n[g]||{}).prototype)for(d in t){u=t[d];h=e.dontCallGetSet?(p=r(i,d))&&p.value:i[d];if(!c(f?d:g+(m?".":"#")+d,e.forced)&&void 0!==h){if(typeof u==typeof h)continue;l(u,h)}(e.sham||h&&h.sham)&&s(u,"sham",!0);a(i,d,u,e)}}},e=>{var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(e,t,i)=>{var n=i(8),r=i(10),s=i(12),a=i(13),o=i(14),l=i(21),c=i(42),d=i(45),h=Object.getOwnPropertyDescriptor;t.f=n?h:function getOwnPropertyDescriptor(e,t){e=o(e);t=l(t);if(d)try{return h(e,t)}catch(e){}if(c(e,t))return a(!r(s.f,e,t),e[t])}},(e,t,i)=>{var n=i(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,i)=>{var n=i(11),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},(e,t,i)=>{var n=i(9);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);t.f=r?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:i},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,i)=>{var n=i(15),r=i(19);e.exports=function(e){return n(r(e))}},(e,t,i)=>{var n=i(16),r=i(9),s=i(17),a=Object,o=n("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?o(e,""):a(e)}:a},(e,t,i)=>{var n=i(17),r=i(18);e.exports=function(e){if("Function"===n(e))return r(e)}},(e,t,i)=>{var n=i(18),r=n({}.toString),s=n("".slice);e.exports=function(e){return s(r(e),8,-1)}},(e,t,i)=>{var n=i(11),r=Function.prototype,s=r.call,a=n&&r.bind.bind(s,s);e.exports=n?a:function(e){return function(){return s.apply(e,arguments)}}},(e,t,i)=>{var n=i(20),r=TypeError;e.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}},e=>{e.exports=function(e){return null==e}},(e,t,i)=>{var n=i(22),r=i(26);e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},(e,t,i)=>{var n=i(10),r=i(23),s=i(26),a=i(33),o=i(36),l=i(37),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var i,l=a(e,d);if(l){void 0===t&&(t="default");i=n(l,e,t);if(!r(i)||s(i))return i;throw c("Can't convert object to primitive value")}void 0===t&&(t="number");return o(e,t)}},(e,t,i)=>{var n=i(24),r=i(25),s=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===s}:function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,i)=>{var n=i(25),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},e=>{var t="object"==typeof document&&document.all,i=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:i}},(e,t,i)=>{var n=i(27),r=i(24),s=i(28),a=i(29),o=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&s(t.prototype,o(e))}},(e,t,i)=>{var n=i(6),r=i(24),aFunction=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?aFunction(n[e]):n[e]&&n[e][t]}},(e,t,i)=>{var n=i(16);e.exports=n({}.isPrototypeOf)},(e,t,i)=>{var n=i(30);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,i)=>{var n=i(31),r=i(9);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(e,t,i)=>{var n,r,s=i(6),a=i(32),o=s.process,l=s.Deno,c=o&&o.versions||l&&l.version,d=c&&c.v8;d&&(r=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1]));!r&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(r=+n[1]);e.exports=r},(e,t,i)=>{var n=i(27);e.exports=n("navigator","userAgent")||""},(e,t,i)=>{var n=i(34),r=i(20);e.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}},(e,t,i)=>{var n=i(24),r=i(35),s=TypeError;e.exports=function(e){if(n(e))return e;throw s(r(e)+" is not a function")}},e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,i)=>{var n=i(10),r=i(24),s=i(23),a=TypeError;e.exports=function(e,t){var i,o;if("string"===t&&r(i=e.toString)&&!s(o=n(i,e)))return o;if(r(i=e.valueOf)&&!s(o=n(i,e)))return o;if("string"!==t&&r(i=e.toString)&&!s(o=n(i,e)))return o;throw a("Can't convert object to primitive value")}},(e,t,i)=>{var n=i(6),r=i(38),s=i(42),a=i(44),o=i(30),l=i(29),c=r("wks"),d=n.Symbol,h=d&&d.for,u=l?d:d&&d.withoutSetter||a;e.exports=function(e){if(!s(c,e)||!o&&"string"!=typeof c[e]){var t="Symbol."+e;o&&s(d,e)?c[e]=d[e]:c[e]=l&&h?h(t):u(t)}return c[e]}},(e,t,i)=>{var n=i(39),r=i(40);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,i)=>{var n=i(6),r=i(41),s="__core-js_shared__",a=n[s]||r(s,{});e.exports=a},(e,t,i)=>{var n=i(6),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},(e,t,i)=>{var n=i(16),r=i(43),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return s(r(e),t)}},(e,t,i)=>{var n=i(19),r=Object;e.exports=function(e){return r(n(e))}},(e,t,i)=>{var n=i(16),r=0,s=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+s,36)}},(e,t,i)=>{var n=i(8),r=i(9),s=i(46);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},(e,t,i)=>{var n=i(6),r=i(23),s=n.document,a=r(s)&&r(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},(e,t,i)=>{var n=i(8),r=i(48),s=i(13);e.exports=n?function(e,t,i){return r.f(e,t,s(1,i))}:function(e,t,i){e[t]=i;return e}},(e,t,i)=>{var n=i(8),r=i(45),s=i(49),a=i(50),o=i(21),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",u="configurable",p="writable";t.f=n?s?function defineProperty(e,t,i){a(e);t=o(t);a(i);if("function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i.writable){var n=d(e,t);if(n&&n.writable){e[t]=i.value;i={configurable:u in i?i.configurable:n.configurable,enumerable:h in i?i.enumerable:n.enumerable,writable:!1}}}return c(e,t,i)}:c:function defineProperty(e,t,i){a(e);t=o(t);a(i);if(r)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw l("Accessors not supported");"value"in i&&(e[t]=i.value);return e}},(e,t,i)=>{var n=i(8),r=i(9);e.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,i)=>{var n=i(23),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw s(r(e)+" is not an object")}},(e,t,i)=>{var n=i(24),r=i(48),s=i(52),a=i(41);e.exports=function(e,t,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:t;n(i)&&s(i,c,o);if(o.global)l?e[t]=i:a(t,i);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:r.f(e,t,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},(e,t,i)=>{var n=i(9),r=i(24),s=i(42),a=i(8),o=i(53).CONFIGURABLE,l=i(54),c=i(55),d=c.enforce,h=c.get,u=Object.defineProperty,p=a&&!n((function(){return 8!==u((function(){}),"length",{value:8}).length})),g=String(String).split("String"),f=e.exports=function(e,t,i){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");i&&i.getter&&(t="get "+t);i&&i.setter&&(t="set "+t);(!s(e,"name")||o&&e.name!==t)&&(a?u(e,"name",{value:t,configurable:!0}):e.name=t);p&&i&&s(i,"arity")&&e.length!==i.arity&&u(e,"length",{value:i.arity});try{i&&s(i,"constructor")&&i.constructor?a&&u(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);s(n,"source")||(n.source=g.join("string"==typeof t?t:""));return e};Function.prototype.toString=f((function toString(){return r(this)&&h(this).source||l(this)}),"toString")},(e,t,i)=>{var n=i(8),r=i(42),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(s,"name"),l=o&&"something"===function something(){}.name,c=o&&(!n||n&&a(s,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},(e,t,i)=>{var n=i(16),r=i(24),s=i(40),a=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return a(e)});e.exports=s.inspectSource},(e,t,i)=>{var n,r,s,a=i(56),o=i(6),l=i(23),c=i(47),d=i(42),h=i(40),u=i(57),p=i(58),g="Object already initialized",f=o.TypeError,m=o.WeakMap;if(a||h.state){var v=h.state||(h.state=new m);v.get=v.get;v.has=v.has;v.set=v.set;n=function(e,t){if(v.has(e))throw f(g);t.facade=e;v.set(e,t);return t};r=function(e){return v.get(e)||{}};s=function(e){return v.has(e)}}else{var _=u("state");p[_]=!0;n=function(e,t){if(d(e,_))throw f(g);t.facade=e;c(e,_,t);return t};r=function(e){return d(e,_)?e[_]:{}};s=function(e){return d(e,_)}}e.exports={set:n,get:r,has:s,enforce:function(e){return s(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return i}}}},(e,t,i)=>{var n=i(6),r=i(24),s=n.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},(e,t,i)=>{var n=i(38),r=i(44),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},e=>{e.exports={}},(e,t,i)=>{var n=i(42),r=i(60),s=i(7),a=i(48);e.exports=function(e,t,i){for(var o=r(t),l=a.f,c=s.f,d=0;d<o.length;d++){var h=o[d];n(e,h)||i&&n(i,h)||l(e,h,c(t,h))}}},(e,t,i)=>{var n=i(27),r=i(16),s=i(61),a=i(70),o=i(50),l=r([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=s.f(o(e)),i=a.f;return i?l(t,i(e)):t}},(e,t,i)=>{var n=i(62),r=i(69).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,r)}},(e,t,i)=>{var n=i(16),r=i(42),s=i(14),a=i(63).indexOf,o=i(58),l=n([].push);e.exports=function(e,t){var i,n=s(e),c=0,d=[];for(i in n)!r(o,i)&&r(n,i)&&l(d,i);for(;t.length>c;)r(n,i=t[c++])&&(~a(d,i)||l(d,i));return d}},(e,t,i)=>{var n=i(14),r=i(64),s=i(67),createMethod=function(e){return function(t,i,a){var o,l=n(t),c=s(l),d=r(a,c);if(e&&i!=i){for(;c>d;)if((o=l[d++])!=o)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(e,t,i)=>{var n=i(65),r=Math.max,s=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):s(i,t)}},(e,t,i)=>{var n=i(66);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},e=>{var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?i:t)(n)}},(e,t,i)=>{var n=i(68);e.exports=function(e){return n(e.length)}},(e,t,i)=>{var n=i(65),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,i)=>{var n=i(9),r=i(24),s=/#|\.prototype\./,isForced=function(e,t){var i=o[a(e)];return i==c||i!=l&&(r(t)?n(t):!!t)},a=isForced.normalize=function(e){return String(e).replace(s,".").toLowerCase()},o=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";e.exports=isForced},(e,t,i)=>{var n=i(37),r=i(73),s=i(48).f,a=n("unscopables"),o=Array.prototype;null==o[a]&&s(o,a,{configurable:!0,value:r(null)});e.exports=function(e){o[a][e]=!0}},(e,t,i)=>{var n,r=i(50),s=i(74),a=i(69),o=i(58),l=i(76),c=i(46),d=i(57),h=d("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<script>"+e+"</"+"script>"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):function(){var e,t=c("iframe");t.style.display="none";l.appendChild(t);t.src=String("javascript:");(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(n);for(var e=a.length;e--;)delete NullProtoObject.prototype[a[e]];return NullProtoObject()};o[h]=!0;e.exports=Object.create||function create(e,t){var i;if(null!==e){EmptyConstructor.prototype=r(e);i=new EmptyConstructor;EmptyConstructor.prototype=null;i[h]=e}else i=NullProtoObject();return void 0===t?i:s.f(i,t)}},(e,t,i)=>{var n=i(8),r=i(49),s=i(48),a=i(50),o=i(14),l=i(75);t.f=n&&!r?Object.defineProperties:function defineProperties(e,t){a(e);for(var i,n=o(t),r=l(t),c=r.length,d=0;c>d;)s.f(e,i=r[d++],n[i]);return e}},(e,t,i)=>{var n=i(62),r=i(69);e.exports=Object.keys||function keys(e){return n(e,r)}},(e,t,i)=>{var n=i(27);e.exports=n("document","documentElement")},(e,t,i)=>{var n=i(6),r=i(16);e.exports=function(e,t){return r(n[e].prototype[t])}},(e,t,i)=>{i(79)},(e,t,i)=>{"use strict";var n=i(80),r=i(67),s=i(65),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function at(e){var t=a(this),i=r(t),n=s(e),o=n>=0?n:i+n;return o<0||o>=i?void 0:t[o]}))},(e,t,i)=>{"use strict";var n,r,s,a=i(81),o=i(8),l=i(6),c=i(24),d=i(23),h=i(42),u=i(82),p=i(35),g=i(47),f=i(51),m=i(48).f,v=i(28),_=i(84),b=i(86),w=i(37),y=i(44),P=i(55),S=P.enforce,E=P.get,A=l.Int8Array,x=A&&A.prototype,C=l.Uint8ClampedArray,T=C&&C.prototype,M=A&&_(A),k=x&&_(x),I=Object.prototype,D=l.TypeError,L=w("toStringTag"),R=y("TYPED_ARRAY_TAG"),O="TypedArrayConstructor",N=a&&!!b&&"Opera"!==u(l.opera),B=!1,G={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(e){var t=_(e);if(d(t)){var i=E(t);return i&&h(i,O)?i.TypedArrayConstructor:getTypedArrayConstructor(t)}},isTypedArray=function(e){if(!d(e))return!1;var t=u(e);return h(G,t)||h(V,t)};for(n in G)(s=(r=l[n])&&r.prototype)?S(s).TypedArrayConstructor=r:N=!1;for(n in V)(s=(r=l[n])&&r.prototype)&&(S(s).TypedArrayConstructor=r);if(!N||!c(M)||M===Function.prototype){M=function TypedArray(){throw D("Incorrect invocation")};if(N)for(n in G)l[n]&&b(l[n],M)}if(!N||!k||k===I){k=M.prototype;if(N)for(n in G)l[n]&&b(l[n].prototype,k)}N&&_(T)!==k&&b(T,k);if(o&&!h(k,L)){B=!0;m(k,L,{get:function(){return d(this)?this[R]:void 0}});for(n in G)l[n]&&g(l[n],R,n)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:B&&R,aTypedArray:function(e){if(isTypedArray(e))return e;throw D("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(M,e)))return e;throw D(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,i,n){if(o){if(i)for(var r in G){var s=l[r];if(s&&h(s.prototype,e))try{delete s.prototype[e]}catch(i){try{s.prototype[e]=t}catch(e){}}}k[e]&&!i||f(k,e,i?t:N&&x[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,i){var n,r;if(o){if(b){if(i)for(n in G)if((r=l[n])&&h(r,e))try{delete r[e]}catch(e){}if(M[e]&&!i)return;try{return f(M,e,i?t:N&&M[e]||t)}catch(e){}}for(n in G)!(r=l[n])||r[e]&&!i||f(r,e,t)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(e){if(!d(e))return!1;var t=u(e);return"DataView"===t||h(G,t)||h(V,t)},isTypedArray:isTypedArray,TypedArray:M,TypedArrayPrototype:k}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,i)=>{var n=i(83),r=i(24),s=i(17),a=i(37)("toStringTag"),o=Object,l="Arguments"==s(function(){return arguments}());e.exports=n?s:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=o(e),a))?i:l?s(t):"Object"==(n=s(t))&&r(t.callee)?"Arguments":n}},(e,t,i)=>{var n={};n[i(37)("toStringTag")]="z";e.exports="[object z]"===String(n)},(e,t,i)=>{var n=i(42),r=i(24),s=i(43),a=i(57),o=i(85),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=o?c.getPrototypeOf:function(e){var t=s(e);if(n(t,l))return t[l];var i=t.constructor;return r(i)&&t instanceof i?i.prototype:t instanceof c?d:null}},(e,t,i)=>{var n=i(9);e.exports=!n((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(e,t,i)=>{var n=i(16),r=i(50),s=i(87);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]);t=i instanceof Array}catch(e){}return function setPrototypeOf(i,n){r(i);s(n);t?e(i,n):i.__proto__=n;return i}}():void 0)},(e,t,i)=>{var n=i(24),r=String,s=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw s("Can't set "+r(e)+" as a prototype")}},(e,t,i)=>{i(89);i(96);i(98);i(120);i(122);var n=i(131);e.exports=n.structuredClone},(e,t,i)=>{"use strict";var n=i(14),r=i(72),s=i(90),a=i(55),o=i(48).f,l=i(91),c=i(95),d=i(39),h=i(8),u="Array Iterator",p=a.set,g=a.getterFor(u);e.exports=l(Array,"Array",(function(e,t){p(this,{type:u,target:n(e),index:0,kind:t})}),(function(){var e=g(this),t=e.target,i=e.kind,n=e.index++;if(!t||n>=t.length){e.target=void 0;return c(void 0,!0)}return c("keys"==i?n:"values"==i?t[n]:[n,t[n]],!1)}),"values");var f=s.Arguments=s.Array;r("keys");r("values");r("entries");if(!d&&h&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}},e=>{e.exports={}},(e,t,i)=>{"use strict";var n=i(5),r=i(10),s=i(39),a=i(53),o=i(24),l=i(92),c=i(84),d=i(86),h=i(94),u=i(47),p=i(51),g=i(37),f=i(90),m=i(93),v=a.PROPER,_=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,y=g("iterator"),P="keys",S="values",E="entries",returnThis=function(){return this};e.exports=function(e,t,i,a,g,m,A){l(i,t,a);var x,C,T,getIterationMethod=function(e){if(e===g&&L)return L;if(!w&&e in I)return I[e];switch(e){case P:return function keys(){return new i(this,e)};case S:return function values(){return new i(this,e)};case E:return function entries(){return new i(this,e)}}return function(){return new i(this)}},M=t+" Iterator",k=!1,I=e.prototype,D=I[y]||I["@@iterator"]||g&&I[g],L=!w&&D||getIterationMethod(g),R="Array"==t&&I.entries||D;if(R&&(x=c(R.call(new e)))!==Object.prototype&&x.next){s||c(x)===b||(d?d(x,b):o(x[y])||p(x,y,returnThis));h(x,M,!0,!0);s&&(f[M]=returnThis)}if(v&&g==S&&D&&D.name!==S)if(!s&&_)u(I,"name",S);else{k=!0;L=function values(){return r(D,this)}}if(g){C={values:getIterationMethod(S),keys:m?L:getIterationMethod(P),entries:getIterationMethod(E)};if(A)for(T in C)(w||k||!(T in I))&&p(I,T,C[T]);else n({target:t,proto:!0,forced:w||k},C)}s&&!A||I[y]===L||p(I,y,L,{name:g});f[t]=L;return C}},(e,t,i)=>{"use strict";var n=i(93).IteratorPrototype,r=i(73),s=i(13),a=i(94),o=i(90),returnThis=function(){return this};e.exports=function(e,t,i,l){var c=t+" Iterator";e.prototype=r(n,{next:s(+!l,i)});a(e,c,!1,!0);o[c]=returnThis;return e}},(e,t,i)=>{"use strict";var n,r,s,a=i(9),o=i(24),l=i(23),c=i(73),d=i(84),h=i(51),u=i(37),p=i(39),g=u("iterator"),f=!1;[].keys&&("next"in(s=[].keys())?(r=d(d(s)))!==Object.prototype&&(n=r):f=!0);!l(n)||a((function(){var e={};return n[g].call(e)!==e}))?n={}:p&&(n=c(n));o(n[g])||h(n,g,(function(){return this}));e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},(e,t,i)=>{var n=i(48).f,r=i(42),s=i(37)("toStringTag");e.exports=function(e,t,i){e&&!i&&(e=e.prototype);e&&!r(e,s)&&n(e,s,{configurable:!0,value:t})}},e=>{e.exports=function(e,t){return{value:e,done:t}}},(e,t,i)=>{var n=i(83),r=i(51),s=i(97);n||r(Object.prototype,"toString",s,{unsafe:!0})},(e,t,i)=>{"use strict";var n=i(83),r=i(82);e.exports=n?{}.toString:function toString(){return"[object "+r(this)+"]"}},(e,t,i)=>{i(99)},(e,t,i)=>{"use strict";i(100)("Map",(function(e){return function Map(){return e(this,arguments.length?arguments[0]:void 0)}}),i(117))},(e,t,i)=>{"use strict";var n=i(5),r=i(6),s=i(16),a=i(71),o=i(51),l=i(101),c=i(108),d=i(114),h=i(24),u=i(20),p=i(23),g=i(9),f=i(115),m=i(94),v=i(116);e.exports=function(e,t,i){var _=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=_?"set":"add",y=r[e],P=y&&y.prototype,S=y,E={},fixMethod=function(e){var t=s(P[e]);o(P,e,"add"==e?function add(e){t(this,0===e?0:e);return this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function get(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function has(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function set(e,i){t(this,0===e?0:e,i);return this})};if(a(e,!h(y)||!(b||P.forEach&&!g((function(){(new y).entries().next()}))))){S=i.getConstructor(t,e,_,w);l.enable()}else if(a(e,!0)){var A=new S,x=A[w](b?{}:-0,1)!=A,C=g((function(){A.has(1)})),T=f((function(e){new y(e)})),M=!b&&g((function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)}));if(!T){(S=t((function(e,t){d(e,P);var i=v(new y,e,S);u(t)||c(t,i[w],{that:i,AS_ENTRIES:_});return i}))).prototype=P;P.constructor=S}if(C||M){fixMethod("delete");fixMethod("has");_&&fixMethod("get")}(M||x)&&fixMethod(w);b&&P.clear&&delete P.clear}E[e]=S;n({global:!0,constructor:!0,forced:S!=y},E);m(S,e);b||i.setStrong(S,e,_);return S}},(e,t,i)=>{var n=i(5),r=i(16),s=i(58),a=i(23),o=i(42),l=i(48).f,c=i(61),d=i(102),h=i(105),u=i(44),p=i(107),g=!1,f=u("meta"),m=0,setMetadata=function(e){l(e,f,{value:{objectID:"O"+m++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){};g=!0;var e=c.f,t=r([].splice),i={};i[f]=1;if(e(i).length){c.f=function(i){for(var n=e(i),r=0,s=n.length;r<s;r++)if(n[r]===f){t(n,r,1);break}return n};n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f})}},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,f)){if(!h(e))return"F";if(!t)return"E";setMetadata(e)}return e[f].objectID},getWeakData:function(e,t){if(!o(e,f)){if(!h(e))return!0;if(!t)return!1;setMetadata(e)}return e[f].weakData},onFreeze:function(e){p&&g&&h(e)&&!o(e,f)&&setMetadata(e);return e}};s[f]=!0},(e,t,i)=>{var n=i(17),r=i(14),s=i(61).f,a=i(103),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function getOwnPropertyNames(e){return o&&"Window"==n(e)?function(e){try{return s(e)}catch(e){return a(o)}}(e):s(r(e))}},(e,t,i)=>{var n=i(64),r=i(67),s=i(104),a=Array,o=Math.max;e.exports=function(e,t,i){for(var l=r(e),c=n(t,l),d=n(void 0===i?l:i,l),h=a(o(d-c,0)),u=0;c<d;c++,u++)s(h,u,e[c]);h.length=u;return h}},(e,t,i)=>{"use strict";var n=i(21),r=i(48),s=i(13);e.exports=function(e,t,i){var a=n(t);a in e?r.f(e,a,s(0,i)):e[a]=i}},(e,t,i)=>{var n=i(9),r=i(23),s=i(17),a=i(106),o=Object.isExtensible,l=n((function(){o(1)}));e.exports=l||a?function isExtensible(e){return!!r(e)&&((!a||"ArrayBuffer"!=s(e))&&(!o||o(e)))}:o},(e,t,i)=>{var n=i(9);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},(e,t,i)=>{var n=i(9);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(e,t,i)=>{var n=i(109),r=i(10),s=i(50),a=i(35),o=i(110),l=i(67),c=i(28),d=i(111),h=i(112),u=i(113),p=TypeError,Result=function(e,t){this.stopped=e;this.result=t},g=Result.prototype;e.exports=function(e,t,i){var f,m,v,_,b,w,y,P=i&&i.that,S=!(!i||!i.AS_ENTRIES),E=!(!i||!i.IS_RECORD),A=!(!i||!i.IS_ITERATOR),x=!(!i||!i.INTERRUPTED),C=n(t,P),stop=function(e){f&&u(f,"normal",e);return new Result(!0,e)},callFn=function(e){if(S){s(e);return x?C(e[0],e[1],stop):C(e[0],e[1])}return x?C(e,stop):C(e)};if(E)f=e.iterator;else if(A)f=e;else{if(!(m=h(e)))throw p(a(e)+" is not iterable");if(o(m)){for(v=0,_=l(e);_>v;v++)if((b=callFn(e[v]))&&c(g,b))return b;return new Result(!1)}f=d(e,m)}w=E?e.next:f.next;for(;!(y=r(w,f)).done;){try{b=callFn(y.value)}catch(e){u(f,"throw",e)}if("object"==typeof b&&b&&c(g,b))return b}return new Result(!1)}},(e,t,i)=>{var n=i(16),r=i(34),s=i(11),a=n(n.bind);e.exports=function(e,t){r(e);return void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},(e,t,i)=>{var n=i(37),r=i(90),s=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[s]===e)}},(e,t,i)=>{var n=i(10),r=i(34),s=i(50),a=i(35),o=i(112),l=TypeError;e.exports=function(e,t){var i=arguments.length<2?o(e):t;if(r(i))return s(n(i,e));throw l(a(e)+" is not iterable")}},(e,t,i)=>{var n=i(82),r=i(33),s=i(20),a=i(90),o=i(37)("iterator");e.exports=function(e){if(!s(e))return r(e,o)||r(e,"@@iterator")||a[n(e)]}},(e,t,i)=>{var n=i(10),r=i(50),s=i(33);e.exports=function(e,t,i){var a,o;r(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw i;return i}a=n(a,e)}catch(e){o=!0;a=e}if("throw"===t)throw i;if(o)throw a;r(a);return i}},(e,t,i)=>{var n=i(28),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw r("Incorrect invocation")}},(e,t,i)=>{var n=i(37)("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[n]=function(){return this};Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var i=!1;try{var s={};s[n]=function(){return{next:function(){return{done:i=!0}}}};e(s)}catch(e){}return i}},(e,t,i)=>{var n=i(24),r=i(23),s=i(86);e.exports=function(e,t,i){var a,o;s&&n(a=t.constructor)&&a!==i&&r(o=a.prototype)&&o!==i.prototype&&s(e,o);return e}},(e,t,i)=>{"use strict";var n=i(48).f,r=i(73),s=i(118),a=i(109),o=i(114),l=i(20),c=i(108),d=i(91),h=i(95),u=i(119),p=i(8),g=i(101).fastKey,f=i(55),m=f.set,v=f.getterFor;e.exports={getConstructor:function(e,t,i,d){var h=e((function(e,n){o(e,u);m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0});p||(e.size=0);l(n)||c(n,e[d],{that:e,AS_ENTRIES:i})})),u=h.prototype,f=v(t),define=function(e,t,i){var n,r,s=f(e),a=getEntry(e,t);if(a)a.value=i;else{s.last=a={index:r=g(t,!0),key:t,value:i,previous:n=s.last,next:void 0,removed:!1};s.first||(s.first=a);n&&(n.next=a);p?s.size++:e.size++;"F"!==r&&(s.index[r]=a)}return e},getEntry=function(e,t){var i,n=f(e),r=g(t);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==t)return i};s(u,{clear:function clear(){for(var e=f(this),t=e.index,i=e.first;i;){i.removed=!0;i.previous&&(i.previous=i.previous.next=void 0);delete t[i.index];i=i.next}e.first=e.last=void 0;p?e.size=0:this.size=0},delete:function(e){var t=this,i=f(t),n=getEntry(t,e);if(n){var r=n.next,s=n.previous;delete i.index[n.index];n.removed=!0;s&&(s.next=r);r&&(r.previous=s);i.first==n&&(i.first=r);i.last==n&&(i.last=s);p?i.size--:t.size--}return!!n},forEach:function forEach(e){for(var t,i=f(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:i.first;){n(t.value,t.key,this);for(;t&&t.removed;)t=t.previous}},has:function has(e){return!!getEntry(this,e)}});s(u,i?{get:function get(e){var t=getEntry(this,e);return t&&t.value},set:function set(e,t){return define(this,0===e?0:e,t)}}:{add:function add(e){return define(this,e=0===e?0:e,e)}});p&&n(u,"size",{get:function(){return f(this).size}});return h},setStrong:function(e,t,i){var n=t+" Iterator",r=v(t),s=v(n);d(e,t,(function(e,t){m(this,{type:n,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=s(this),t=e.kind,i=e.last;i&&i.removed;)i=i.previous;if(!e.target||!(e.last=i=i?i.next:e.state.first)){e.target=void 0;return h(void 0,!0)}return h("keys"==t?i.key:"values"==t?i.value:[i.key,i.value],!1)}),i?"entries":"values",!i,!0);u(t)}}},(e,t,i)=>{var n=i(51);e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},(e,t,i)=>{"use strict";var n=i(27),r=i(48),s=i(37),a=i(8),o=s("species");e.exports=function(e){var t=n(e),i=r.f;a&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},(e,t,i)=>{i(121)},(e,t,i)=>{"use strict";i(100)("Set",(function(e){return function Set(){return e(this,arguments.length?arguments[0]:void 0)}}),i(117))},(e,t,i)=>{var n,r=i(39),s=i(5),a=i(6),o=i(27),l=i(16),c=i(9),d=i(44),h=i(24),u=i(123),p=i(20),g=i(23),f=i(26),m=i(108),v=i(50),_=i(82),b=i(42),w=i(104),y=i(47),P=i(67),S=i(124),E=i(125),A=i(127),x=i(31),C=i(128),T=i(129),M=i(130),k=a.Object,I=a.Date,D=a.Error,L=a.EvalError,R=a.RangeError,O=a.ReferenceError,N=a.SyntaxError,B=a.TypeError,G=a.URIError,V=a.PerformanceMark,W=a.WebAssembly,U=W&&W.CompileError||D,j=W&&W.LinkError||D,H=W&&W.RuntimeError||D,z=o("DOMException"),q=o("Set"),$=o("Map"),X=$.prototype,K=l(X.has),Y=l(X.get),Q=l(X.set),Z=l(q.prototype.add),J=o("Object","keys"),ee=l([].push),te=l((!0).valueOf),ie=l(1..valueOf),ne=l("".valueOf),re=l(I.prototype.getTime),se=d("structuredClone"),ae="DataCloneError",oe="Transferring",checkBasicSemantic=function(e){return!c((function(){var t=new a.Set([7]),i=e(t),n=e(k(7));return i==t||!i.has(7)||"object"!=typeof n||7!=n}))&&e},checkErrorsCloning=function(e,t){return!c((function(){var i=new t,n=e({a:i,b:i});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===i.stack)}))},le=a.structuredClone,ce=r||!checkErrorsCloning(le,D)||!checkErrorsCloning(le,z)||!(n=le,!c((function(){var e=n(new a.AggregateError([1],se,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=se||3!=e.cause}))),de=!le&&checkBasicSemantic((function(e){return new V(se,{detail:e}).detail})),he=checkBasicSemantic(le)||de,throwUncloneable=function(e){throw new z("Uncloneable type: "+e,ae)},throwUnpolyfillable=function(e,t){throw new z((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",ae)},structuredCloneInternal=function(e,t){f(e)&&throwUncloneable("Symbol");if(!g(e))return e;if(t){if(K(t,e))return Y(t,e)}else t=new $;var i,n,r,s,l,c,d,u,p,m,v=_(e),S=!1;switch(v){case"Array":r=[];S=!0;break;case"Object":r={};S=!0;break;case"Map":r=new $;S=!0;break;case"Set":r=new q;S=!0;break;case"RegExp":r=new RegExp(e.source,E(e));break;case"Error":switch(n=e.name){case"AggregateError":r=o("AggregateError")([]);break;case"EvalError":r=L();break;case"RangeError":r=R();break;case"ReferenceError":r=O();break;case"SyntaxError":r=N();break;case"TypeError":r=B();break;case"URIError":r=G();break;case"CompileError":r=U();break;case"LinkError":r=j();break;case"RuntimeError":r=H();break;default:r=D()}S=!0;break;case"DOMException":r=new z(e.message,e.name);S=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":i=a[v];g(i)||throwUnpolyfillable(v);r=new i(structuredCloneInternal(e.buffer,t),e.byteOffset,"DataView"===v?e.byteLength:e.length);break;case"DOMQuad":try{r=new DOMQuad(structuredCloneInternal(e.p1,t),structuredCloneInternal(e.p2,t),structuredCloneInternal(e.p3,t),structuredCloneInternal(e.p4,t))}catch(t){he?r=he(e):throwUnpolyfillable(v)}break;case"FileList":if(s=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(l=0,c=P(e);l<c;l++)s.items.add(structuredCloneInternal(e[l],t));r=s.files}else he?r=he(e):throwUnpolyfillable(v);break;case"ImageData":try{r=new ImageData(structuredCloneInternal(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){he?r=he(e):throwUnpolyfillable(v)}break;default:if(he)r=he(e);else switch(v){case"BigInt":r=k(e.valueOf());break;case"Boolean":r=k(te(e));break;case"Number":r=k(ie(e));break;case"String":r=k(ne(e));break;case"Date":r=new I(re(e));break;case"ArrayBuffer":(i=a.DataView)||"function"==typeof e.slice||throwUnpolyfillable(v);try{if("function"==typeof e.slice)r=e.slice(0);else{c=e.byteLength;r=new ArrayBuffer(c);p=new i(e);m=new i(r);for(l=0;l<c;l++)m.setUint8(l,p.getUint8(l))}}catch(e){throw new z("ArrayBuffer is detached",ae)}break;case"SharedArrayBuffer":r=e;break;case"Blob":try{r=e.slice(0,e.size,e.type)}catch(e){throwUnpolyfillable(v)}break;case"DOMPoint":case"DOMPointReadOnly":i=a[v];try{r=i.fromPoint?i.fromPoint(e):new i(e.x,e.y,e.z,e.w)}catch(e){throwUnpolyfillable(v)}break;case"DOMRect":case"DOMRectReadOnly":i=a[v];try{r=i.fromRect?i.fromRect(e):new i(e.x,e.y,e.width,e.height)}catch(e){throwUnpolyfillable(v)}break;case"DOMMatrix":c